Skip to content

Commit 005c75b

Browse files
committed
refactor(sbg-utility): replace unicode-symbols dependency with internal implementation
- removed `unicode-symbols` package from dependencies - added new `src/symbols/unicode-symbols-data.ts` with local symbol definitions - updated `unicode-symbols.ts` to import from internal `unicode-symbols-data` instead of external package
1 parent 347eeb9 commit 005c75b

File tree

3 files changed

+230
-4
lines changed

3 files changed

+230
-4
lines changed

packages/sbg-utility/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
"strip-ansi": "^7.1.0",
8888
"through2": "^4.0.2",
8989
"tslib": "^2.8.1",
90-
"unicode-symbols": "^7.6.0",
9190
"upath": "^2.0.1",
9291
"yaml": "^2.8.1"
9392
},
Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
// https://github.com/bevry/figures/blob/b10ba989a9dd359faf0f197e4081b144d2e72931/index.js
2+
export const circleQuestionMark = '(?)';
3+
export const questionMarkPrefix = '(?)';
4+
export const square = '█';
5+
export const squareDarkShade = '▓';
6+
export const squareMediumShade = '▒';
7+
export const squareLightShade = '░';
8+
export const squareTop = '▀';
9+
export const squareBottom = '▄';
10+
export const squareLeft = '▌';
11+
export const squareRight = '▐';
12+
export const squareCenter = '■';
13+
export const bullet = '●';
14+
export const dot = '․';
15+
export const ellipsis = '…';
16+
export const pointerSmall = '›';
17+
export const triangleUp = '▲';
18+
export const triangleUpSmall = '▴';
19+
export const triangleDown = '▼';
20+
export const triangleDownSmall = '▾';
21+
export const triangleLeftSmall = '◂';
22+
export const triangleRightSmall = '▸';
23+
export const home = '⌂';
24+
export const heart = '♥';
25+
export const musicNote = '♪';
26+
export const musicNoteBeamed = '♫';
27+
export const arrowUp = '↑';
28+
export const arrowDown = '↓';
29+
export const arrowLeft = '←';
30+
export const arrowRight = '→';
31+
export const arrowLeftRight = '↔';
32+
export const arrowUpDown = '↕';
33+
export const almostEqual = '≈';
34+
export const notEqual = '≠';
35+
export const lessOrEqual = '≤';
36+
export const greaterOrEqual = '≥';
37+
export const identical = '≡';
38+
export const infinity = '∞';
39+
export const subscriptZero = '₀';
40+
export const subscriptOne = '₁';
41+
export const subscriptTwo = '₂';
42+
export const subscriptThree = '₃';
43+
export const subscriptFour = '₄';
44+
export const subscriptFive = '₅';
45+
export const subscriptSix = '₆';
46+
export const subscriptSeven = '₇';
47+
export const subscriptEight = '₈';
48+
export const subscriptNine = '₉';
49+
export const oneHalf = '½';
50+
export const oneThird = '⅓';
51+
export const oneQuarter = '¼';
52+
export const oneFifth = '⅕';
53+
export const oneSixth = '⅙';
54+
export const oneEighth = '⅛';
55+
export const twoThirds = '⅔';
56+
export const twoFifths = '⅖';
57+
export const threeQuarters = '¾';
58+
export const threeFifths = '⅗';
59+
export const threeEighths = '⅜';
60+
export const fourFifths = '⅘';
61+
export const fiveSixths = '⅚';
62+
export const fiveEighths = '⅝';
63+
export const sevenEighths = '⅞';
64+
export const line = '─';
65+
export const lineBold = '━';
66+
export const lineDouble = '═';
67+
export const lineDashed0 = '┄';
68+
export const lineDashed1 = '┅';
69+
export const lineDashed2 = '┈';
70+
export const lineDashed3 = '┉';
71+
export const lineDashed4 = '╌';
72+
export const lineDashed5 = '╍';
73+
export const lineDashed6 = '╴';
74+
export const lineDashed7 = '╶';
75+
export const lineDashed8 = '╸';
76+
export const lineDashed9 = '╺';
77+
export const lineDashed10 = '╼';
78+
export const lineDashed11 = '╾';
79+
export const lineDashed12 = '−';
80+
export const lineDashed13 = '–';
81+
export const lineDashed14 = '‐';
82+
export const lineDashed15 = '⁃';
83+
export const lineVertical = '│';
84+
export const lineVerticalBold = '┃';
85+
export const lineVerticalDouble = '║';
86+
export const lineVerticalDashed0 = '┆';
87+
export const lineVerticalDashed1 = '┇';
88+
export const lineVerticalDashed2 = '┊';
89+
export const lineVerticalDashed3 = '┋';
90+
export const lineVerticalDashed4 = '╎';
91+
export const lineVerticalDashed5 = '╏';
92+
export const lineVerticalDashed6 = '╵';
93+
export const lineVerticalDashed7 = '╷';
94+
export const lineVerticalDashed8 = '╹';
95+
export const lineVerticalDashed9 = '╻';
96+
export const lineVerticalDashed10 = '╽';
97+
export const lineVerticalDashed11 = '╿';
98+
export const lineDownLeft = '┐';
99+
export const lineDownLeftArc = '╮';
100+
export const lineDownBoldLeftBold = '┓';
101+
export const lineDownBoldLeft = '┒';
102+
export const lineDownLeftBold = '┑';
103+
export const lineDownDoubleLeftDouble = '╗';
104+
export const lineDownDoubleLeft = '╖';
105+
export const lineDownLeftDouble = '╕';
106+
export const lineDownRight = '┌';
107+
export const lineDownRightArc = '╭';
108+
export const lineDownBoldRightBold = '┏';
109+
export const lineDownBoldRight = '┎';
110+
export const lineDownRightBold = '┍';
111+
export const lineDownDoubleRightDouble = '╔';
112+
export const lineDownDoubleRight = '╓';
113+
export const lineDownRightDouble = '╒';
114+
export const lineUpLeft = '┘';
115+
export const lineUpLeftArc = '╯';
116+
export const lineUpBoldLeftBold = '┛';
117+
export const lineUpBoldLeft = '┚';
118+
export const lineUpLeftBold = '┙';
119+
export const lineUpDoubleLeftDouble = '╝';
120+
export const lineUpDoubleLeft = '╜';
121+
export const lineUpLeftDouble = '╛';
122+
export const lineUpRight = '└';
123+
export const lineUpRightArc = '╰';
124+
export const lineUpBoldRightBold = '┗';
125+
export const lineUpBoldRight = '┖';
126+
export const lineUpRightBold = '┕';
127+
export const lineUpDoubleRightDouble = '╚';
128+
export const lineUpDoubleRight = '╙';
129+
export const lineUpRightDouble = '╘';
130+
export const lineUpDownLeft = '┤';
131+
export const lineUpBoldDownBoldLeftBold = '┫';
132+
export const lineUpBoldDownBoldLeft = '┨';
133+
export const lineUpDownLeftBold = '┥';
134+
export const lineUpBoldDownLeftBold = '┩';
135+
export const lineUpDownBoldLeftBold = '┪';
136+
export const lineUpDownBoldLeft = '┧';
137+
export const lineUpBoldDownLeft = '┦';
138+
export const lineUpDoubleDownDoubleLeftDouble = '╣';
139+
export const lineUpDoubleDownDoubleLeft = '╢';
140+
export const lineUpDownLeftDouble = '╡';
141+
export const lineUpDownRight = '├';
142+
export const lineUpBoldDownBoldRightBold = '┣';
143+
export const lineUpBoldDownBoldRight = '┠';
144+
export const lineUpDownRightBold = '┝';
145+
export const lineUpBoldDownRightBold = '┡';
146+
export const lineUpDownBoldRightBold = '┢';
147+
export const lineUpDownBoldRight = '┟';
148+
export const lineUpBoldDownRight = '┞';
149+
export const lineUpDoubleDownDoubleRightDouble = '╠';
150+
export const lineUpDoubleDownDoubleRight = '╟';
151+
export const lineUpDownRightDouble = '╞';
152+
export const lineDownLeftRight = '┬';
153+
export const lineDownBoldLeftBoldRightBold = '┳';
154+
export const lineDownLeftBoldRightBold = '┯';
155+
export const lineDownBoldLeftRight = '┰';
156+
export const lineDownBoldLeftBoldRight = '┱';
157+
export const lineDownBoldLeftRightBold = '┲';
158+
export const lineDownLeftRightBold = '┮';
159+
export const lineDownLeftBoldRight = '┭';
160+
export const lineDownDoubleLeftDoubleRightDouble = '╦';
161+
export const lineDownDoubleLeftRight = '╥';
162+
export const lineDownLeftDoubleRightDouble = '╤';
163+
export const lineUpLeftRight = '┴';
164+
export const lineUpBoldLeftBoldRightBold = '┻';
165+
export const lineUpLeftBoldRightBold = '┷';
166+
export const lineUpBoldLeftRight = '┸';
167+
export const lineUpBoldLeftBoldRight = '┹';
168+
export const lineUpBoldLeftRightBold = '┺';
169+
export const lineUpLeftRightBold = '┶';
170+
export const lineUpLeftBoldRight = '┵';
171+
export const lineUpDoubleLeftDoubleRightDouble = '╩';
172+
export const lineUpDoubleLeftRight = '╨';
173+
export const lineUpLeftDoubleRightDouble = '╧';
174+
export const lineUpDownLeftRight = '┼';
175+
export const lineUpBoldDownBoldLeftBoldRightBold = '╋';
176+
export const lineUpDownBoldLeftBoldRightBold = '╈';
177+
export const lineUpBoldDownLeftBoldRightBold = '╇';
178+
export const lineUpBoldDownBoldLeftRightBold = '╊';
179+
export const lineUpBoldDownBoldLeftBoldRight = '╉';
180+
export const lineUpBoldDownLeftRight = '╀';
181+
export const lineUpDownBoldLeftRight = '╁';
182+
export const lineUpDownLeftBoldRight = '┽';
183+
export const lineUpDownLeftRightBold = '┾';
184+
export const lineUpBoldDownBoldLeftRight = '╂';
185+
export const lineUpDownLeftBoldRightBold = '┿';
186+
export const lineUpBoldDownLeftBoldRight = '╃';
187+
export const lineUpBoldDownLeftRightBold = '╄';
188+
export const lineUpDownBoldLeftBoldRight = '╅';
189+
export const lineUpDownBoldLeftRightBold = '╆';
190+
export const lineUpDoubleDownDoubleLeftDoubleRightDouble = '╬';
191+
export const lineUpDoubleDownDoubleLeftRight = '╫';
192+
export const lineUpDownLeftDoubleRightDouble = '╪';
193+
export const lineCross = '╳';
194+
export const lineBackslash = '╲';
195+
export const lineSlash = '╱';
196+
export const tick = '✔';
197+
export const info = 'ℹ';
198+
export const warning = '⚠';
199+
export const cross = '✘';
200+
export const squareSmall = '◻';
201+
export const squareSmallFilled = '◼';
202+
export const circle = '◯';
203+
export const circleFilled = '◉';
204+
export const circleDotted = '◌';
205+
export const circleDouble = '◎';
206+
export const circleCircle = 'ⓞ';
207+
export const circleCross = 'ⓧ';
208+
export const circlePipe = 'Ⓘ';
209+
export const radioOn = '◉';
210+
export const radioOff = '◯';
211+
export const checkboxOn = '☒';
212+
export const checkboxOff = '☐';
213+
export const checkboxCircleOn = 'ⓧ';
214+
export const checkboxCircleOff = 'Ⓘ';
215+
export const pointer = '❯';
216+
export const triangleUpOutline = '△';
217+
export const triangleLeft = '◀';
218+
export const triangleRight = '▶';
219+
export const lozenge = '◆';
220+
export const lozengeOutline = '◇';
221+
export const hamburger = '☰';
222+
export const smiley = '㋡';
223+
export const mustache = '෴';
224+
export const star = '★';
225+
export const play = '▶';
226+
export const nodejs = '⬢';
227+
export const oneSeventh = '⅐';
228+
export const oneNinth = '⅑';
229+
export const oneTenth = '⅒';

packages/sbg-utility/src/symbols/unicode-symbols.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import Axios from 'axios';
22
import { setupCache } from 'axios-cache-interceptor';
3-
import * as unicodeSymbols from 'unicode-symbols';
43
import { capitalize } from '../utils/string.js';
54
import { greekLetters } from './greek-letters.js';
6-
7-
// import * as unicodeSymbols from '../../packages/unicode-symbols/source/index.js';
5+
import * as unicodeSymbols from './unicode-symbols-data.js';
86

97
export interface UnicodeSymbol {
108
codePoint: string;

0 commit comments

Comments
 (0)