@ctlyst.id/voila-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +1 -0
- package/dist/index.js +160 -0
- package/dist/index.mjs +14225 -0
- package/dist/style.css +1 -0
- package/dist/types/@types/vanilla-sprinkles.d.ts +17 -0
- package/dist/types/assets/Spinner.d.ts +8 -0
- package/dist/types/assets/index.d.ts +1 -0
- package/dist/types/components/badge/badge.css.d.ts +40 -0
- package/dist/types/components/badge/badge.d.ts +15 -0
- package/dist/types/components/badge/index.d.ts +2 -0
- package/dist/types/components/button/button.css.d.ts +121 -0
- package/dist/types/components/button/button.d.ts +19 -0
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/close-button/close-button.css.d.ts +2 -0
- package/dist/types/components/close-button/close-button.d.ts +14 -0
- package/dist/types/components/close-button/index.d.ts +2 -0
- package/dist/types/components/form/common/action-icon.d.ts +3 -0
- package/dist/types/components/form/common/add-on.d.ts +10 -0
- package/dist/types/components/form/common/label.d.ts +10 -0
- package/dist/types/components/form/field.d.ts +15 -0
- package/dist/types/components/form/form.type.d.ts +1 -0
- package/dist/types/components/form/index.d.ts +4 -0
- package/dist/types/components/form/input.d.ts +24 -0
- package/dist/types/components/form/styles/addon.css.d.ts +29 -0
- package/dist/types/components/form/styles/common.css.d.ts +4 -0
- package/dist/types/components/form/styles/field.css.d.ts +37 -0
- package/dist/types/components/form/styles/index.d.ts +6 -0
- package/dist/types/components/form/styles/input.css.d.ts +2 -0
- package/dist/types/components/form/styles/label.css.d.ts +20 -0
- package/dist/types/components/form/styles/textarea.css.d.ts +2 -0
- package/dist/types/components/form/textarea.d.ts +18 -0
- package/dist/types/components/form/utils/resolve-form-state.d.ts +8 -0
- package/dist/types/components/icon-button/icon-button.css.d.ts +101 -0
- package/dist/types/components/icon-button/icon-button.d.ts +15 -0
- package/dist/types/components/icon-button/index.d.ts +2 -0
- package/dist/types/components/image/image.css.d.ts +21 -0
- package/dist/types/components/image/image.d.ts +34 -0
- package/dist/types/components/image/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +10 -0
- package/dist/types/components/list/index.d.ts +4 -0
- package/dist/types/components/list/list-item.css.d.ts +14 -0
- package/dist/types/components/list/list-item.d.ts +16 -0
- package/dist/types/components/list/list.css.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +11 -0
- package/dist/types/components/tabs/index.d.ts +4 -0
- package/dist/types/components/tabs/tab-item.css.d.ts +10 -0
- package/dist/types/components/tabs/tab-item.d.ts +13 -0
- package/dist/types/components/tabs/tabs.css.d.ts +20 -0
- package/dist/types/components/tabs/tabs.d.ts +23 -0
- package/dist/types/components/tooltip/index.d.ts +2 -0
- package/dist/types/components/tooltip/tooltip.css.d.ts +2 -0
- package/dist/types/components/tooltip/tooltip.d.ts +20 -0
- package/dist/types/components/utils/hooks/use-ripple/index.d.ts +2 -0
- package/dist/types/components/utils/hooks/use-ripple/ripple.css.d.ts +2 -0
- package/dist/types/components/utils/hooks/use-ripple/use-ripple.d.ts +6 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/layouts/box/box.d.ts +6979 -0
- package/dist/types/layouts/box/index.d.ts +2 -0
- package/dist/types/layouts/flex/flex.d.ts +366 -0
- package/dist/types/layouts/flex/index.d.ts +2 -0
- package/dist/types/layouts/grid/grid.d.ts +666 -0
- package/dist/types/layouts/grid/index.d.ts +2 -0
- package/dist/types/layouts/index.d.ts +5 -0
- package/dist/types/layouts/stack/index.d.ts +2 -0
- package/dist/types/layouts/stack/stack.d.ts +17 -0
- package/dist/types/layouts/stack/utils.d.ts +10 -0
- package/dist/types/layouts/text/index.d.ts +2 -0
- package/dist/types/layouts/text/text.css.d.ts +72 -0
- package/dist/types/layouts/text/text.d.ts +13959 -0
- package/dist/types/provider/index.d.ts +1 -0
- package/dist/types/provider/provider.d.ts +3 -0
- package/dist/types/provider/radix-provider.d.ts +3 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/styles/atoms/border.css.d.ts +1575 -0
- package/dist/types/theme/styles/atoms/common.css.d.ts +721 -0
- package/dist/types/theme/styles/atoms/constants.d.ts +3 -0
- package/dist/types/theme/styles/atoms/flex.css.d.ts +362 -0
- package/dist/types/theme/styles/atoms/grid.css.d.ts +661 -0
- package/dist/types/theme/styles/atoms/index.d.ts +8 -0
- package/dist/types/theme/styles/atoms/position.css.d.ts +778 -0
- package/dist/types/theme/styles/atoms/sizes.css.d.ts +1313 -0
- package/dist/types/theme/styles/atoms/space.css.d.ts +1943 -0
- package/dist/types/theme/styles/atoms/typography.css.d.ts +329 -0
- package/dist/types/theme/styles/globals.css.d.ts +3 -0
- package/dist/types/theme/styles/index.d.ts +3 -0
- package/dist/types/theme/styles/normalize.css.d.ts +0 -0
- package/dist/types/theme/styles/theme.css.d.ts +240 -0
- package/dist/types/theme/styles/utils.d.ts +17 -0
- package/dist/types/theme/tokens/animation.d.ts +21 -0
- package/dist/types/theme/tokens/border.d.ts +9 -0
- package/dist/types/theme/tokens/breakpoints.d.ts +9 -0
- package/dist/types/theme/tokens/color.d.ts +125 -0
- package/dist/types/theme/tokens/index.d.ts +241 -0
- package/dist/types/theme/tokens/opacity.d.ts +8 -0
- package/dist/types/theme/tokens/radii.d.ts +6 -0
- package/dist/types/theme/tokens/shadows.d.ts +6 -0
- package/dist/types/theme/tokens/space.d.ts +72 -0
- package/dist/types/theme/tokens/typography.d.ts +123 -0
- package/dist/types/theme/tokens/z-indices.d.ts +16 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/merge-atoms.d.ts +7 -0
- package/package.json +77 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
export type ColorScheme = 'dark' | 'light';
|
|
2
|
+
export type ColorSchemeSetting = ColorScheme | 'system';
|
|
3
|
+
export declare const base: {
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
black: string;
|
|
7
|
+
white: string;
|
|
8
|
+
grey1: string;
|
|
9
|
+
grey2: string;
|
|
10
|
+
grey3: string;
|
|
11
|
+
transparent: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const typography: {
|
|
14
|
+
blackTypoHigh: string;
|
|
15
|
+
blackTypoMedium: string;
|
|
16
|
+
blackTypoLow: string;
|
|
17
|
+
whiteTypoHigh: string;
|
|
18
|
+
whiteTypoMedium: string;
|
|
19
|
+
whiteTypoLow: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const green: {
|
|
22
|
+
green1: string;
|
|
23
|
+
green2: string;
|
|
24
|
+
green3: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const blue: {
|
|
27
|
+
blue1: string;
|
|
28
|
+
blue2: string;
|
|
29
|
+
blue3: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const yellow: {
|
|
32
|
+
yellow1: string;
|
|
33
|
+
yellow2: string;
|
|
34
|
+
yellow3: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const red: {
|
|
37
|
+
red1: string;
|
|
38
|
+
red2: string;
|
|
39
|
+
red3: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const greenAccent: {
|
|
42
|
+
greenAccent1: string;
|
|
43
|
+
greenAccent2: string;
|
|
44
|
+
greenAccent3: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const blueAccent: {
|
|
47
|
+
blueAccent1: string;
|
|
48
|
+
blueAccent2: string;
|
|
49
|
+
blueAccent3: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const yellowAccent: {
|
|
52
|
+
yellowAccent1: string;
|
|
53
|
+
yellowAccent2: string;
|
|
54
|
+
yellowAccent3: string;
|
|
55
|
+
};
|
|
56
|
+
export declare const redAccent: {
|
|
57
|
+
redAccent1: string;
|
|
58
|
+
redAccent2: string;
|
|
59
|
+
redAccent3: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const greenSurface: {
|
|
62
|
+
greenSurface1: string;
|
|
63
|
+
greenSurface2: string;
|
|
64
|
+
};
|
|
65
|
+
export declare const blueSurface: {
|
|
66
|
+
blueSurface1: string;
|
|
67
|
+
blueSurface2: string;
|
|
68
|
+
};
|
|
69
|
+
export declare const yellowSurface: {
|
|
70
|
+
yellowSurface1: string;
|
|
71
|
+
yellowSurface2: string;
|
|
72
|
+
};
|
|
73
|
+
export declare const redSurface: {
|
|
74
|
+
redSurface1: string;
|
|
75
|
+
redSurface2: string;
|
|
76
|
+
};
|
|
77
|
+
export declare const colors: {
|
|
78
|
+
blackTypoHigh: string;
|
|
79
|
+
blackTypoMedium: string;
|
|
80
|
+
blackTypoLow: string;
|
|
81
|
+
whiteTypoHigh: string;
|
|
82
|
+
whiteTypoMedium: string;
|
|
83
|
+
whiteTypoLow: string;
|
|
84
|
+
redSurface1: string;
|
|
85
|
+
redSurface2: string;
|
|
86
|
+
yellowSurface1: string;
|
|
87
|
+
yellowSurface2: string;
|
|
88
|
+
blueSurface1: string;
|
|
89
|
+
blueSurface2: string;
|
|
90
|
+
greenSurface1: string;
|
|
91
|
+
greenSurface2: string;
|
|
92
|
+
redAccent1: string;
|
|
93
|
+
redAccent2: string;
|
|
94
|
+
redAccent3: string;
|
|
95
|
+
yellowAccent1: string;
|
|
96
|
+
yellowAccent2: string;
|
|
97
|
+
yellowAccent3: string;
|
|
98
|
+
blueAccent1: string;
|
|
99
|
+
blueAccent2: string;
|
|
100
|
+
blueAccent3: string;
|
|
101
|
+
greenAccent1: string;
|
|
102
|
+
greenAccent2: string;
|
|
103
|
+
greenAccent3: string;
|
|
104
|
+
red1: string;
|
|
105
|
+
red2: string;
|
|
106
|
+
red3: string;
|
|
107
|
+
yellow1: string;
|
|
108
|
+
yellow2: string;
|
|
109
|
+
yellow3: string;
|
|
110
|
+
blue1: string;
|
|
111
|
+
blue2: string;
|
|
112
|
+
blue3: string;
|
|
113
|
+
green1: string;
|
|
114
|
+
green2: string;
|
|
115
|
+
green3: string;
|
|
116
|
+
primary: string;
|
|
117
|
+
secondary: string;
|
|
118
|
+
black: string;
|
|
119
|
+
white: string;
|
|
120
|
+
grey1: string;
|
|
121
|
+
grey2: string;
|
|
122
|
+
grey3: string;
|
|
123
|
+
transparent: string;
|
|
124
|
+
};
|
|
125
|
+
export default colors;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
export declare const tokens: {
|
|
2
|
+
breakpoints: {
|
|
3
|
+
xs: string;
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
};
|
|
9
|
+
borderStyles: {
|
|
10
|
+
none: string;
|
|
11
|
+
solid: string;
|
|
12
|
+
};
|
|
13
|
+
borderWidths: {
|
|
14
|
+
'0': string;
|
|
15
|
+
'1': string;
|
|
16
|
+
'2': string;
|
|
17
|
+
};
|
|
18
|
+
colors: {
|
|
19
|
+
blackTypoHigh: string;
|
|
20
|
+
blackTypoMedium: string;
|
|
21
|
+
blackTypoLow: string;
|
|
22
|
+
whiteTypoHigh: string;
|
|
23
|
+
whiteTypoMedium: string;
|
|
24
|
+
whiteTypoLow: string;
|
|
25
|
+
redSurface1: string;
|
|
26
|
+
redSurface2: string;
|
|
27
|
+
yellowSurface1: string;
|
|
28
|
+
yellowSurface2: string;
|
|
29
|
+
blueSurface1: string;
|
|
30
|
+
blueSurface2: string;
|
|
31
|
+
greenSurface1: string;
|
|
32
|
+
greenSurface2: string;
|
|
33
|
+
redAccent1: string;
|
|
34
|
+
redAccent2: string;
|
|
35
|
+
redAccent3: string;
|
|
36
|
+
yellowAccent1: string;
|
|
37
|
+
yellowAccent2: string;
|
|
38
|
+
yellowAccent3: string;
|
|
39
|
+
blueAccent1: string;
|
|
40
|
+
blueAccent2: string;
|
|
41
|
+
blueAccent3: string;
|
|
42
|
+
greenAccent1: string;
|
|
43
|
+
greenAccent2: string;
|
|
44
|
+
greenAccent3: string;
|
|
45
|
+
red1: string;
|
|
46
|
+
red2: string;
|
|
47
|
+
red3: string;
|
|
48
|
+
yellow1: string;
|
|
49
|
+
yellow2: string;
|
|
50
|
+
yellow3: string;
|
|
51
|
+
blue1: string;
|
|
52
|
+
blue2: string;
|
|
53
|
+
blue3: string;
|
|
54
|
+
green1: string;
|
|
55
|
+
green2: string;
|
|
56
|
+
green3: string;
|
|
57
|
+
primary: string;
|
|
58
|
+
secondary: string;
|
|
59
|
+
black: string;
|
|
60
|
+
white: string;
|
|
61
|
+
grey1: string;
|
|
62
|
+
grey2: string;
|
|
63
|
+
grey3: string;
|
|
64
|
+
transparent: string;
|
|
65
|
+
};
|
|
66
|
+
fonts: {
|
|
67
|
+
readonly playfair: "'Playfair Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
|
|
68
|
+
readonly poppins: "'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
|
|
69
|
+
};
|
|
70
|
+
fontSizes: {
|
|
71
|
+
readonly heading1: "48px";
|
|
72
|
+
readonly heading2: "40px";
|
|
73
|
+
readonly heading3: "32px";
|
|
74
|
+
readonly heading4: "24px";
|
|
75
|
+
readonly heading5: "20px";
|
|
76
|
+
readonly heading6: "16px";
|
|
77
|
+
readonly subtitle1: "20px";
|
|
78
|
+
readonly subtitle2: "18px";
|
|
79
|
+
readonly body1: "16px";
|
|
80
|
+
readonly body2: "14px";
|
|
81
|
+
readonly caption: "12px";
|
|
82
|
+
readonly footer: "10px";
|
|
83
|
+
};
|
|
84
|
+
fontWeights: {
|
|
85
|
+
readonly hairline: "100";
|
|
86
|
+
readonly thin: "200";
|
|
87
|
+
readonly light: "300";
|
|
88
|
+
readonly normal: "400";
|
|
89
|
+
readonly medium: "500";
|
|
90
|
+
readonly semibold: "600";
|
|
91
|
+
readonly bold: "700";
|
|
92
|
+
readonly extrabold: "800";
|
|
93
|
+
readonly black: "900";
|
|
94
|
+
};
|
|
95
|
+
letterSpacings: {
|
|
96
|
+
readonly tighter: "-0.2px";
|
|
97
|
+
readonly tight: "-0.05px";
|
|
98
|
+
readonly normal: "0px";
|
|
99
|
+
readonly wide: "0.2px";
|
|
100
|
+
readonly wider: "0.5px";
|
|
101
|
+
};
|
|
102
|
+
lineHeights: {
|
|
103
|
+
readonly normal: "normal";
|
|
104
|
+
readonly none: "1";
|
|
105
|
+
readonly '16': "16px";
|
|
106
|
+
readonly '20': "20px";
|
|
107
|
+
readonly '24': "24px";
|
|
108
|
+
readonly '28': "28px";
|
|
109
|
+
readonly '32': "32px";
|
|
110
|
+
readonly '40': "40px";
|
|
111
|
+
readonly '48': "48px";
|
|
112
|
+
readonly '56': "56px";
|
|
113
|
+
};
|
|
114
|
+
opacity: {
|
|
115
|
+
'0': string;
|
|
116
|
+
'30': string;
|
|
117
|
+
'60': string;
|
|
118
|
+
'90': string;
|
|
119
|
+
'100': string;
|
|
120
|
+
};
|
|
121
|
+
radii: {
|
|
122
|
+
none: string;
|
|
123
|
+
rounded: string;
|
|
124
|
+
full: string;
|
|
125
|
+
};
|
|
126
|
+
space: {
|
|
127
|
+
'0': string;
|
|
128
|
+
'1': string;
|
|
129
|
+
'2': string;
|
|
130
|
+
'4': string;
|
|
131
|
+
'6': string;
|
|
132
|
+
'8': string;
|
|
133
|
+
'10': string;
|
|
134
|
+
'12': string;
|
|
135
|
+
'14': string;
|
|
136
|
+
'16': string;
|
|
137
|
+
'18': string;
|
|
138
|
+
'20': string;
|
|
139
|
+
'22': string;
|
|
140
|
+
'24': string;
|
|
141
|
+
'32': string;
|
|
142
|
+
'40': string;
|
|
143
|
+
'48': string;
|
|
144
|
+
'56': string;
|
|
145
|
+
'64': string;
|
|
146
|
+
'72': string;
|
|
147
|
+
'80': string;
|
|
148
|
+
'88': string;
|
|
149
|
+
'96': string;
|
|
150
|
+
'104': string;
|
|
151
|
+
'112': string;
|
|
152
|
+
auto: string;
|
|
153
|
+
full: string;
|
|
154
|
+
fitContent: string;
|
|
155
|
+
maxContent: string;
|
|
156
|
+
minContent: string;
|
|
157
|
+
'100vh': string;
|
|
158
|
+
'100vw': string;
|
|
159
|
+
gapX: string;
|
|
160
|
+
gapY: string;
|
|
161
|
+
};
|
|
162
|
+
transitionDurations: {
|
|
163
|
+
'150': string;
|
|
164
|
+
'300': string;
|
|
165
|
+
'600': string;
|
|
166
|
+
'3000': string;
|
|
167
|
+
};
|
|
168
|
+
transitionEasingFunctions: {
|
|
169
|
+
linear: string;
|
|
170
|
+
in: string;
|
|
171
|
+
out: string;
|
|
172
|
+
inOut: string;
|
|
173
|
+
};
|
|
174
|
+
transitionProperties: {
|
|
175
|
+
none: string;
|
|
176
|
+
all: string;
|
|
177
|
+
default: string;
|
|
178
|
+
colors: string;
|
|
179
|
+
opacity: string;
|
|
180
|
+
shadow: string;
|
|
181
|
+
transform: string;
|
|
182
|
+
};
|
|
183
|
+
sizes: {
|
|
184
|
+
'0': string;
|
|
185
|
+
'1': string;
|
|
186
|
+
'2': string;
|
|
187
|
+
'4': string;
|
|
188
|
+
'6': string;
|
|
189
|
+
'8': string;
|
|
190
|
+
'10': string;
|
|
191
|
+
'12': string;
|
|
192
|
+
'14': string;
|
|
193
|
+
'16': string;
|
|
194
|
+
'18': string;
|
|
195
|
+
'20': string;
|
|
196
|
+
'22': string;
|
|
197
|
+
'24': string;
|
|
198
|
+
'32': string;
|
|
199
|
+
'40': string;
|
|
200
|
+
'48': string;
|
|
201
|
+
'56': string;
|
|
202
|
+
'64': string;
|
|
203
|
+
'72': string;
|
|
204
|
+
'80': string;
|
|
205
|
+
'88': string;
|
|
206
|
+
'96': string;
|
|
207
|
+
'104': string;
|
|
208
|
+
'112': string;
|
|
209
|
+
auto: string;
|
|
210
|
+
full: string;
|
|
211
|
+
fitContent: string;
|
|
212
|
+
maxContent: string;
|
|
213
|
+
minContent: string;
|
|
214
|
+
'100vh': string;
|
|
215
|
+
'100vw': string;
|
|
216
|
+
gapX: string;
|
|
217
|
+
gapY: string;
|
|
218
|
+
};
|
|
219
|
+
shadows: {
|
|
220
|
+
none: string;
|
|
221
|
+
raised: string;
|
|
222
|
+
floating: string;
|
|
223
|
+
};
|
|
224
|
+
zIndices: {
|
|
225
|
+
hide: string;
|
|
226
|
+
auto: string;
|
|
227
|
+
base: string;
|
|
228
|
+
docked: string;
|
|
229
|
+
dropdown: string;
|
|
230
|
+
sticky: string;
|
|
231
|
+
banner: string;
|
|
232
|
+
overlay: string;
|
|
233
|
+
modal: string;
|
|
234
|
+
popover: string;
|
|
235
|
+
skipLink: string;
|
|
236
|
+
toast: string;
|
|
237
|
+
tooltip: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
export type { ColorScheme, ColorSchemeSetting } from './color';
|
|
241
|
+
export type Tokens = typeof tokens;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const space: {
|
|
2
|
+
'0': string;
|
|
3
|
+
'1': string;
|
|
4
|
+
'2': string;
|
|
5
|
+
'4': string;
|
|
6
|
+
'6': string;
|
|
7
|
+
'8': string;
|
|
8
|
+
'10': string;
|
|
9
|
+
'12': string;
|
|
10
|
+
'14': string;
|
|
11
|
+
'16': string;
|
|
12
|
+
'18': string;
|
|
13
|
+
'20': string;
|
|
14
|
+
'22': string;
|
|
15
|
+
'24': string;
|
|
16
|
+
'32': string;
|
|
17
|
+
'40': string;
|
|
18
|
+
'48': string;
|
|
19
|
+
'56': string;
|
|
20
|
+
'64': string;
|
|
21
|
+
'72': string;
|
|
22
|
+
'80': string;
|
|
23
|
+
'88': string;
|
|
24
|
+
'96': string;
|
|
25
|
+
'104': string;
|
|
26
|
+
'112': string;
|
|
27
|
+
auto: string;
|
|
28
|
+
full: string;
|
|
29
|
+
fitContent: string;
|
|
30
|
+
maxContent: string;
|
|
31
|
+
minContent: string;
|
|
32
|
+
'100vh': string;
|
|
33
|
+
'100vw': string;
|
|
34
|
+
gapX: string;
|
|
35
|
+
gapY: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const sizes: {
|
|
38
|
+
'0': string;
|
|
39
|
+
'1': string;
|
|
40
|
+
'2': string;
|
|
41
|
+
'4': string;
|
|
42
|
+
'6': string;
|
|
43
|
+
'8': string;
|
|
44
|
+
'10': string;
|
|
45
|
+
'12': string;
|
|
46
|
+
'14': string;
|
|
47
|
+
'16': string;
|
|
48
|
+
'18': string;
|
|
49
|
+
'20': string;
|
|
50
|
+
'22': string;
|
|
51
|
+
'24': string;
|
|
52
|
+
'32': string;
|
|
53
|
+
'40': string;
|
|
54
|
+
'48': string;
|
|
55
|
+
'56': string;
|
|
56
|
+
'64': string;
|
|
57
|
+
'72': string;
|
|
58
|
+
'80': string;
|
|
59
|
+
'88': string;
|
|
60
|
+
'96': string;
|
|
61
|
+
'104': string;
|
|
62
|
+
'112': string;
|
|
63
|
+
auto: string;
|
|
64
|
+
full: string;
|
|
65
|
+
fitContent: string;
|
|
66
|
+
maxContent: string;
|
|
67
|
+
minContent: string;
|
|
68
|
+
'100vh': string;
|
|
69
|
+
'100vw': string;
|
|
70
|
+
gapX: string;
|
|
71
|
+
gapY: string;
|
|
72
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
declare const fonts: {
|
|
2
|
+
readonly playfair: "'Playfair Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
|
|
3
|
+
readonly poppins: "'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
|
|
4
|
+
};
|
|
5
|
+
declare const fontSizes: {
|
|
6
|
+
readonly heading1: "48px";
|
|
7
|
+
readonly heading2: "40px";
|
|
8
|
+
readonly heading3: "32px";
|
|
9
|
+
readonly heading4: "24px";
|
|
10
|
+
readonly heading5: "20px";
|
|
11
|
+
readonly heading6: "16px";
|
|
12
|
+
readonly subtitle1: "20px";
|
|
13
|
+
readonly subtitle2: "18px";
|
|
14
|
+
readonly body1: "16px";
|
|
15
|
+
readonly body2: "14px";
|
|
16
|
+
readonly caption: "12px";
|
|
17
|
+
readonly footer: "10px";
|
|
18
|
+
};
|
|
19
|
+
declare const lineHeights: {
|
|
20
|
+
readonly normal: "normal";
|
|
21
|
+
readonly none: "1";
|
|
22
|
+
readonly '16': "16px";
|
|
23
|
+
readonly '20': "20px";
|
|
24
|
+
readonly '24': "24px";
|
|
25
|
+
readonly '28': "28px";
|
|
26
|
+
readonly '32': "32px";
|
|
27
|
+
readonly '40': "40px";
|
|
28
|
+
readonly '48': "48px";
|
|
29
|
+
readonly '56': "56px";
|
|
30
|
+
};
|
|
31
|
+
declare const letterSpacings: {
|
|
32
|
+
readonly tighter: "-0.2px";
|
|
33
|
+
readonly tight: "-0.05px";
|
|
34
|
+
readonly normal: "0px";
|
|
35
|
+
readonly wide: "0.2px";
|
|
36
|
+
readonly wider: "0.5px";
|
|
37
|
+
};
|
|
38
|
+
declare const fontWeights: {
|
|
39
|
+
readonly hairline: "100";
|
|
40
|
+
readonly thin: "200";
|
|
41
|
+
readonly light: "300";
|
|
42
|
+
readonly normal: "400";
|
|
43
|
+
readonly medium: "500";
|
|
44
|
+
readonly semibold: "600";
|
|
45
|
+
readonly bold: "700";
|
|
46
|
+
readonly extrabold: "800";
|
|
47
|
+
readonly black: "900";
|
|
48
|
+
};
|
|
49
|
+
declare const textStyles: {
|
|
50
|
+
readonly heading: {
|
|
51
|
+
readonly 1: {
|
|
52
|
+
readonly fontSize: "48px";
|
|
53
|
+
readonly fontWeight: "700";
|
|
54
|
+
readonly lineHeight: "56px";
|
|
55
|
+
readonly letterSpacing: "0px";
|
|
56
|
+
};
|
|
57
|
+
readonly 2: {
|
|
58
|
+
readonly fontSize: "40px";
|
|
59
|
+
readonly fontWeight: "700";
|
|
60
|
+
readonly lineHeight: "48px";
|
|
61
|
+
readonly letterSpacing: "0px";
|
|
62
|
+
};
|
|
63
|
+
readonly 3: {
|
|
64
|
+
readonly fontSize: "32px";
|
|
65
|
+
readonly fontWeight: "700";
|
|
66
|
+
readonly lineHeight: "40px";
|
|
67
|
+
readonly letterSpacing: "0px";
|
|
68
|
+
};
|
|
69
|
+
readonly 4: {
|
|
70
|
+
readonly fontSize: "24px";
|
|
71
|
+
readonly fontWeight: "700";
|
|
72
|
+
readonly lineHeight: "32px";
|
|
73
|
+
readonly letterSpacing: "0px";
|
|
74
|
+
};
|
|
75
|
+
readonly 5: {
|
|
76
|
+
readonly fontSize: "20px";
|
|
77
|
+
readonly fontWeight: "700";
|
|
78
|
+
readonly lineHeight: "28px";
|
|
79
|
+
readonly letterSpacing: "0px";
|
|
80
|
+
};
|
|
81
|
+
readonly 6: {
|
|
82
|
+
readonly fontSize: "16px";
|
|
83
|
+
readonly fontWeight: "700";
|
|
84
|
+
readonly lineHeight: "24px";
|
|
85
|
+
readonly letterSpacing: "0px";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly subtitle: {
|
|
89
|
+
readonly 1: {
|
|
90
|
+
readonly fontSize: "20px";
|
|
91
|
+
readonly lineHeight: "32px";
|
|
92
|
+
readonly letterSpacing: "0px";
|
|
93
|
+
};
|
|
94
|
+
readonly 2: {
|
|
95
|
+
readonly fontSize: "18px";
|
|
96
|
+
readonly lineHeight: "24px";
|
|
97
|
+
readonly letterSpacing: "0px";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly body: {
|
|
101
|
+
readonly 1: {
|
|
102
|
+
readonly fontSize: "16px";
|
|
103
|
+
readonly lineHeight: "24px";
|
|
104
|
+
readonly letterSpacing: "0px";
|
|
105
|
+
};
|
|
106
|
+
readonly 2: {
|
|
107
|
+
readonly fontSize: "14px";
|
|
108
|
+
readonly lineHeight: "20px";
|
|
109
|
+
readonly letterSpacing: "0px";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly caption: {
|
|
113
|
+
readonly fontSize: "12px";
|
|
114
|
+
readonly lineHeight: "16px";
|
|
115
|
+
readonly letterSpacing: "0px";
|
|
116
|
+
};
|
|
117
|
+
readonly footer: {
|
|
118
|
+
readonly fontSize: "10px";
|
|
119
|
+
readonly lineHeight: "16px";
|
|
120
|
+
readonly letterSpacing: "0.5px";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export { fonts, fontSizes, fontWeights, letterSpacings, lineHeights, textStyles };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const zIndices: {
|
|
2
|
+
hide: string;
|
|
3
|
+
auto: string;
|
|
4
|
+
base: string;
|
|
5
|
+
docked: string;
|
|
6
|
+
dropdown: string;
|
|
7
|
+
sticky: string;
|
|
8
|
+
banner: string;
|
|
9
|
+
overlay: string;
|
|
10
|
+
modal: string;
|
|
11
|
+
popover: string;
|
|
12
|
+
skipLink: string;
|
|
13
|
+
toast: string;
|
|
14
|
+
tooltip: string;
|
|
15
|
+
};
|
|
16
|
+
export default zIndices;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './merge-atoms';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RuntimeFnReturn } from 'rainbow-sprinkles/dist/declarations/src/types';
|
|
2
|
+
type MergeParams = {
|
|
3
|
+
[key: string]: RuntimeFnReturn;
|
|
4
|
+
};
|
|
5
|
+
declare const mergeAtoms: (atoms: MergeParams) => RuntimeFnReturn;
|
|
6
|
+
export { mergeAtoms };
|
|
7
|
+
export default mergeAtoms;
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ctlyst.id/voila-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "UI library for voila user facing library.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./styles": {
|
|
14
|
+
"import": "./dist/style.css",
|
|
15
|
+
"require": "./dist/style.css"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"ui:src": "./src/index.ts",
|
|
19
|
+
"repository": "https://github.com/machtwatch/voila-ui",
|
|
20
|
+
"author": "Catalyst Tech",
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "vite build",
|
|
30
|
+
"clean": "rimraf dist",
|
|
31
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
32
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
33
|
+
"prepublish": "yarn build",
|
|
34
|
+
"start": "vite build --watch",
|
|
35
|
+
"test": "jest",
|
|
36
|
+
"test:coverage": "jest --coverage",
|
|
37
|
+
"type-check": "tsc --emitDeclarationOnly"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@ctlyst.id/icons": "^1.0.0",
|
|
41
|
+
"@ctlyst.id/utils": "^1.0.0",
|
|
42
|
+
"@radix-ui/react-portal": "^1.0.1",
|
|
43
|
+
"@radix-ui/react-switch": "^1.0.1",
|
|
44
|
+
"@radix-ui/react-tooltip": "^1.0.4",
|
|
45
|
+
"clsx": "^1.2.1",
|
|
46
|
+
"rainbow-sprinkles": "^0.15.2",
|
|
47
|
+
"tslib": "^2.5.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@vanilla-extract/css": "^1.9.4",
|
|
51
|
+
"@vanilla-extract/css-utils": "^0.1.3",
|
|
52
|
+
"@vanilla-extract/dynamic": "^2.0.3",
|
|
53
|
+
"@vanilla-extract/recipes": "^0.3.0",
|
|
54
|
+
"@vanilla-extract/sprinkles": "^1.5.1",
|
|
55
|
+
"react": "^18.2.0",
|
|
56
|
+
"react-dom": "^18.2.0"
|
|
57
|
+
},
|
|
58
|
+
"resolutions": {
|
|
59
|
+
"jest-environment-jsdom": "27.3.1"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@babel/core": "^7.20.12",
|
|
63
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
64
|
+
"@ctlyst.id/icons": "^0.1.2",
|
|
65
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
66
|
+
"@testing-library/react": "^13.4.0",
|
|
67
|
+
"@types/jest": "^29.4.0",
|
|
68
|
+
"@vanilla-extract/jest-transform": "^1.1.0",
|
|
69
|
+
"@vanilla-extract/vite-plugin": "^3.8.0",
|
|
70
|
+
"babel-loader": "^9.1.2",
|
|
71
|
+
"babel-preset-react-app": "^10.0.1",
|
|
72
|
+
"jest": "^29.4.1",
|
|
73
|
+
"jest-environment-jsdom": "29.4.1",
|
|
74
|
+
"polished": "^4.2.2"
|
|
75
|
+
},
|
|
76
|
+
"gitHead": "831dc28e0600e86f70aa49c507e7734a27769c38"
|
|
77
|
+
}
|