@grupor5/raya 0.2.1 → 0.2.2
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/README.md +47 -4
- package/dist/atoms/avatar/index.d.mts +12 -0
- package/dist/atoms/avatar/index.d.ts +12 -0
- package/dist/atoms/avatar/index.js +99 -0
- package/dist/atoms/avatar/index.mjs +76 -0
- package/dist/atoms/badge/index.d.mts +16 -0
- package/dist/atoms/badge/index.d.ts +16 -0
- package/dist/atoms/badge/index.js +149 -0
- package/dist/atoms/badge/index.mjs +146 -0
- package/dist/atoms/button/index.d.mts +11 -0
- package/dist/atoms/button/index.d.ts +11 -0
- package/dist/atoms/button/index.js +307 -0
- package/dist/atoms/button/index.mjs +301 -0
- package/dist/atoms/checkbox/index.d.mts +6 -0
- package/dist/atoms/checkbox/index.d.ts +6 -0
- package/dist/atoms/checkbox/index.js +98 -0
- package/dist/atoms/checkbox/index.mjs +75 -0
- package/dist/atoms/input/index.d.mts +12 -0
- package/dist/atoms/input/index.d.ts +12 -0
- package/dist/atoms/input/index.js +104 -0
- package/dist/atoms/input/index.mjs +82 -0
- package/dist/atoms/label/index.d.mts +8 -0
- package/dist/atoms/label/index.d.ts +8 -0
- package/dist/atoms/label/index.js +77 -0
- package/dist/atoms/label/index.mjs +54 -0
- package/dist/atoms/radio/index.d.mts +7 -0
- package/dist/atoms/radio/index.d.ts +7 -0
- package/dist/atoms/radio/index.js +97 -0
- package/dist/atoms/radio/index.mjs +73 -0
- package/dist/atoms/switch/index.d.mts +6 -0
- package/dist/atoms/switch/index.d.ts +6 -0
- package/dist/atoms/switch/index.js +97 -0
- package/dist/atoms/switch/index.mjs +74 -0
- package/dist/atoms/tag/index.d.mts +14 -0
- package/dist/atoms/tag/index.d.ts +14 -0
- package/dist/atoms/tag/index.js +128 -0
- package/dist/atoms/tag/index.mjs +122 -0
- package/dist/atoms/textarea/index.d.mts +11 -0
- package/dist/atoms/textarea/index.d.ts +11 -0
- package/dist/atoms/textarea/index.js +125 -0
- package/dist/atoms/textarea/index.mjs +103 -0
- package/dist/atoms/typography/index.d.mts +20 -0
- package/dist/atoms/typography/index.d.ts +20 -0
- package/dist/atoms/typography/index.js +140 -0
- package/dist/atoms/typography/index.mjs +115 -0
- package/dist/hooks/index.d.mts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +17 -0
- package/dist/hooks/index.mjs +15 -0
- package/dist/hooks/use-pagination.d.mts +10 -0
- package/dist/hooks/use-pagination.d.ts +10 -0
- package/dist/hooks/use-pagination.js +54 -0
- package/dist/hooks/use-pagination.mjs +51 -0
- package/dist/hooks/use-toast.d.mts +2 -0
- package/dist/hooks/use-toast.d.ts +2 -0
- package/dist/hooks/use-toast.js +2 -0
- package/dist/hooks/use-toast.mjs +1 -0
- package/dist/hooks/useModal.d.mts +7 -0
- package/dist/hooks/useModal.d.ts +7 -0
- package/dist/hooks/useModal.js +17 -0
- package/dist/hooks/useModal.mjs +15 -0
- package/dist/index.d.mts +50 -1298
- package/dist/index.d.ts +50 -1298
- package/dist/molecules/accordion/index.d.mts +17 -0
- package/dist/molecules/accordion/index.d.ts +17 -0
- package/dist/molecules/accordion/index.js +154 -0
- package/dist/molecules/accordion/index.mjs +128 -0
- package/dist/molecules/alert/index.d.mts +14 -0
- package/dist/molecules/alert/index.d.ts +14 -0
- package/dist/molecules/alert/index.js +425 -0
- package/dist/molecules/alert/index.mjs +402 -0
- package/dist/molecules/card/index.d.mts +10 -0
- package/dist/molecules/card/index.d.ts +10 -0
- package/dist/molecules/card/index.js +128 -0
- package/dist/molecules/card/index.mjs +101 -0
- package/dist/molecules/chart/index.d.mts +80 -0
- package/dist/molecules/chart/index.d.ts +80 -0
- package/dist/molecules/chart/index.js +300 -0
- package/dist/molecules/chart/index.mjs +272 -0
- package/dist/molecules/data-table/index.d.mts +57 -0
- package/dist/molecules/data-table/index.d.ts +57 -0
- package/dist/molecules/data-table/index.js +1456 -0
- package/dist/molecules/data-table/index.mjs +1430 -0
- package/dist/molecules/date-picker/index.d.mts +12 -0
- package/dist/molecules/date-picker/index.d.ts +12 -0
- package/dist/molecules/date-picker/index.js +756 -0
- package/dist/molecules/date-picker/index.mjs +734 -0
- package/dist/molecules/dropdown/index.d.mts +21 -0
- package/dist/molecules/dropdown/index.d.ts +21 -0
- package/dist/molecules/dropdown/index.js +221 -0
- package/dist/molecules/dropdown/index.mjs +198 -0
- package/dist/molecules/form/index.d.mts +19 -0
- package/dist/molecules/form/index.d.ts +19 -0
- package/dist/molecules/form/index.js +139 -0
- package/dist/molecules/form/index.mjs +114 -0
- package/dist/molecules/pagination/index.d.mts +15 -0
- package/dist/molecules/pagination/index.d.ts +15 -0
- package/dist/molecules/pagination/index.js +605 -0
- package/dist/molecules/pagination/index.mjs +583 -0
- package/dist/molecules/progress-bar/index.d.mts +15 -0
- package/dist/molecules/progress-bar/index.d.ts +15 -0
- package/dist/molecules/progress-bar/index.js +166 -0
- package/dist/molecules/progress-bar/index.mjs +144 -0
- package/dist/molecules/select/index.d.mts +15 -0
- package/dist/molecules/select/index.d.ts +15 -0
- package/dist/molecules/select/index.js +201 -0
- package/dist/molecules/select/index.mjs +169 -0
- package/dist/molecules/stepper/index.d.mts +67 -0
- package/dist/molecules/stepper/index.d.ts +67 -0
- package/dist/molecules/stepper/index.js +287 -0
- package/dist/molecules/stepper/index.mjs +260 -0
- package/dist/molecules/tabs/index.d.mts +9 -0
- package/dist/molecules/tabs/index.d.ts +9 -0
- package/dist/molecules/tabs/index.js +112 -0
- package/dist/molecules/tabs/index.mjs +86 -0
- package/dist/tokens/badge.d.mts +39 -0
- package/dist/tokens/badge.d.ts +39 -0
- package/dist/tokens/badge.js +61 -0
- package/dist/tokens/badge.mjs +59 -0
- package/dist/tokens/buttons.d.mts +277 -0
- package/dist/tokens/buttons.d.ts +277 -0
- package/dist/tokens/buttons.js +191 -0
- package/dist/tokens/buttons.mjs +173 -0
- package/dist/tokens/colors.d.mts +65 -0
- package/dist/tokens/colors.d.ts +65 -0
- package/dist/tokens/colors.js +68 -0
- package/dist/tokens/colors.mjs +66 -0
- package/dist/tokens/effects.d.mts +124 -0
- package/dist/tokens/effects.d.ts +124 -0
- package/dist/tokens/effects.js +130 -0
- package/dist/tokens/effects.mjs +115 -0
- package/dist/tokens/grids.d.mts +331 -0
- package/dist/tokens/grids.d.ts +331 -0
- package/dist/tokens/grids.js +305 -0
- package/dist/tokens/grids.mjs +292 -0
- package/dist/tokens/icons.d.mts +134 -0
- package/dist/tokens/icons.d.ts +134 -0
- package/dist/tokens/icons.js +108 -0
- package/dist/tokens/icons.mjs +97 -0
- package/dist/tokens/index.d.mts +6 -0
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.js +775 -0
- package/dist/tokens/index.mjs +743 -0
- package/dist/tokens/progress-bar.d.mts +31 -0
- package/dist/tokens/progress-bar.d.ts +31 -0
- package/dist/tokens/progress-bar.js +70 -0
- package/dist/tokens/progress-bar.mjs +68 -0
- package/dist/tokens/spacing.d.mts +90 -0
- package/dist/tokens/spacing.d.ts +90 -0
- package/dist/tokens/spacing.js +120 -0
- package/dist/tokens/spacing.mjs +109 -0
- package/dist/tokens/stroke.d.mts +292 -0
- package/dist/tokens/stroke.d.ts +292 -0
- package/dist/tokens/stroke.js +202 -0
- package/dist/tokens/stroke.mjs +186 -0
- package/dist/tokens/tab.d.mts +31 -0
- package/dist/tokens/tab.d.ts +31 -0
- package/dist/tokens/tab.js +48 -0
- package/dist/tokens/tab.mjs +46 -0
- package/dist/tokens/tag.d.mts +53 -0
- package/dist/tokens/tag.d.ts +53 -0
- package/dist/tokens/tag.js +80 -0
- package/dist/tokens/tag.mjs +78 -0
- package/dist/tokens/typography.d.mts +394 -0
- package/dist/tokens/typography.d.ts +394 -0
- package/dist/tokens/typography.js +302 -0
- package/dist/tokens/typography.mjs +292 -0
- package/dist/utils/classNames.d.mts +3 -0
- package/dist/utils/classNames.d.ts +3 -0
- package/dist/utils/classNames.js +8 -0
- package/dist/utils/classNames.mjs +6 -0
- package/dist/utils/cn.d.mts +5 -0
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.js +11 -0
- package/dist/utils/cn.mjs +9 -0
- package/dist/utils/index.d.mts +3 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +15 -0
- package/dist/utils/index.mjs +12 -0
- package/package.json +34 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
// src/tokens/stroke.ts
|
|
6
|
+
var stroke = {
|
|
7
|
+
// Stroke widths
|
|
8
|
+
1: "1px",
|
|
9
|
+
2: "2px"
|
|
10
|
+
};
|
|
11
|
+
var strokeColors = {
|
|
12
|
+
default: "hsl(var(--border))",
|
|
13
|
+
muted: "hsl(var(--muted))",
|
|
14
|
+
primary: "hsl(var(--primary))",
|
|
15
|
+
secondary: "hsl(var(--secondary))",
|
|
16
|
+
destructive: "hsl(var(--destructive))",
|
|
17
|
+
focus: "hsl(var(--ring))",
|
|
18
|
+
transparent: "transparent"
|
|
19
|
+
};
|
|
20
|
+
var strokeStyles = {
|
|
21
|
+
// Default stroke styles
|
|
22
|
+
default: {
|
|
23
|
+
width: stroke[1],
|
|
24
|
+
color: strokeColors.default,
|
|
25
|
+
style: "solid"
|
|
26
|
+
},
|
|
27
|
+
emphasized: {
|
|
28
|
+
width: stroke[2],
|
|
29
|
+
color: strokeColors.default,
|
|
30
|
+
style: "solid"
|
|
31
|
+
},
|
|
32
|
+
// Interactive stroke styles
|
|
33
|
+
focus: {
|
|
34
|
+
width: stroke[2],
|
|
35
|
+
color: strokeColors.focus,
|
|
36
|
+
style: "solid"
|
|
37
|
+
},
|
|
38
|
+
hover: {
|
|
39
|
+
width: stroke[2],
|
|
40
|
+
color: strokeColors.primary,
|
|
41
|
+
style: "solid"
|
|
42
|
+
},
|
|
43
|
+
// Semantic stroke styles
|
|
44
|
+
primary: {
|
|
45
|
+
width: stroke[1],
|
|
46
|
+
color: strokeColors.primary,
|
|
47
|
+
style: "solid"
|
|
48
|
+
},
|
|
49
|
+
primaryEmphasized: {
|
|
50
|
+
width: stroke[2],
|
|
51
|
+
color: strokeColors.primary,
|
|
52
|
+
style: "solid"
|
|
53
|
+
},
|
|
54
|
+
destructive: {
|
|
55
|
+
width: stroke[1],
|
|
56
|
+
color: strokeColors.destructive,
|
|
57
|
+
style: "solid"
|
|
58
|
+
},
|
|
59
|
+
destructiveEmphasized: {
|
|
60
|
+
width: stroke[2],
|
|
61
|
+
color: strokeColors.destructive,
|
|
62
|
+
style: "solid"
|
|
63
|
+
},
|
|
64
|
+
// Utility stroke styles
|
|
65
|
+
muted: {
|
|
66
|
+
width: stroke[1],
|
|
67
|
+
color: strokeColors.muted,
|
|
68
|
+
style: "solid"
|
|
69
|
+
},
|
|
70
|
+
transparent: {
|
|
71
|
+
width: stroke[1],
|
|
72
|
+
color: strokeColors.transparent,
|
|
73
|
+
style: "solid"
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var componentStrokes = {
|
|
77
|
+
// Button component strokes
|
|
78
|
+
button: {
|
|
79
|
+
outline: strokeStyles.primary,
|
|
80
|
+
outlineHover: strokeStyles.primaryEmphasized,
|
|
81
|
+
outlineFocus: strokeStyles.focus,
|
|
82
|
+
destructiveOutline: strokeStyles.destructive,
|
|
83
|
+
destructiveOutlineHover: strokeStyles.destructiveEmphasized
|
|
84
|
+
},
|
|
85
|
+
// Card component strokes
|
|
86
|
+
card: {
|
|
87
|
+
default: strokeStyles.default,
|
|
88
|
+
emphasized: strokeStyles.emphasized,
|
|
89
|
+
interactive: strokeStyles.default,
|
|
90
|
+
interactiveHover: strokeStyles.hover,
|
|
91
|
+
selected: strokeStyles.primaryEmphasized
|
|
92
|
+
},
|
|
93
|
+
// Form component strokes
|
|
94
|
+
form: {
|
|
95
|
+
input: strokeStyles.default,
|
|
96
|
+
inputFocus: strokeStyles.focus,
|
|
97
|
+
inputError: strokeStyles.destructive,
|
|
98
|
+
inputDisabled: strokeStyles.muted,
|
|
99
|
+
select: strokeStyles.default,
|
|
100
|
+
checkbox: strokeStyles.default,
|
|
101
|
+
checkboxChecked: strokeStyles.primary
|
|
102
|
+
},
|
|
103
|
+
// Navigation component strokes
|
|
104
|
+
navigation: {
|
|
105
|
+
divider: strokeStyles.default,
|
|
106
|
+
tabActive: strokeStyles.primaryEmphasized,
|
|
107
|
+
tabInactive: strokeStyles.transparent,
|
|
108
|
+
tabHover: strokeStyles.default
|
|
109
|
+
},
|
|
110
|
+
// Layout component strokes
|
|
111
|
+
layout: {
|
|
112
|
+
divider: strokeStyles.default,
|
|
113
|
+
section: strokeStyles.muted,
|
|
114
|
+
container: strokeStyles.default
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
var strokeDirections = {
|
|
118
|
+
all: "border",
|
|
119
|
+
top: "border-top",
|
|
120
|
+
right: "border-right",
|
|
121
|
+
bottom: "border-bottom",
|
|
122
|
+
left: "border-left",
|
|
123
|
+
horizontal: ["border-left", "border-right"],
|
|
124
|
+
vertical: ["border-top", "border-bottom"]
|
|
125
|
+
};
|
|
126
|
+
var getStroke = (token) => {
|
|
127
|
+
return stroke[token];
|
|
128
|
+
};
|
|
129
|
+
var getStrokeColor = (token) => {
|
|
130
|
+
return strokeColors[token];
|
|
131
|
+
};
|
|
132
|
+
var createStroke = (width, color = "default", style = "solid") => {
|
|
133
|
+
return `${stroke[width]} ${style} ${strokeColors[color]}`;
|
|
134
|
+
};
|
|
135
|
+
var generateStrokesCSS = () => {
|
|
136
|
+
const widthVars = Object.entries(stroke).map(([key, value]) => ` --stroke-${key}: ${value};`).join("\n");
|
|
137
|
+
const colorVars = Object.entries(strokeColors).map(([key, value]) => ` --stroke-color-${key}: ${value};`).join("\n");
|
|
138
|
+
return `:root {
|
|
139
|
+
/* Stroke width tokens */
|
|
140
|
+
${widthVars}
|
|
141
|
+
|
|
142
|
+
/* Stroke color tokens */
|
|
143
|
+
${colorVars}
|
|
144
|
+
}`;
|
|
145
|
+
};
|
|
146
|
+
var tailwindStrokes = {
|
|
147
|
+
// Border widths
|
|
148
|
+
borderWidth: {
|
|
149
|
+
"stroke-1": "var(--stroke-1)",
|
|
150
|
+
"stroke-2": "var(--stroke-2)"
|
|
151
|
+
},
|
|
152
|
+
// Outline widths
|
|
153
|
+
outlineWidth: {
|
|
154
|
+
"stroke-1": "var(--stroke-1)",
|
|
155
|
+
"stroke-2": "var(--stroke-2)"
|
|
156
|
+
},
|
|
157
|
+
// Border colors (using existing design system colors)
|
|
158
|
+
borderColor: {
|
|
159
|
+
"stroke-default": "var(--stroke-color-default)",
|
|
160
|
+
"stroke-muted": "var(--stroke-color-muted)",
|
|
161
|
+
"stroke-primary": "var(--stroke-color-primary)",
|
|
162
|
+
"stroke-destructive": "var(--stroke-color-destructive)",
|
|
163
|
+
"stroke-focus": "var(--stroke-color-focus)"
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
var strokeTransitions = {
|
|
167
|
+
fast: "border-width 0.15s ease-in-out, border-color 0.15s ease-in-out",
|
|
168
|
+
medium: "border-width 0.2s ease-in-out, border-color 0.2s ease-in-out",
|
|
169
|
+
slow: "border-width 0.3s ease-in-out, border-color 0.3s ease-in-out",
|
|
170
|
+
colorOnly: "border-color 0.2s ease-in-out",
|
|
171
|
+
widthOnly: "border-width 0.2s ease-in-out"
|
|
172
|
+
};
|
|
173
|
+
var responsiveStrokes = {
|
|
174
|
+
mobile: {
|
|
175
|
+
default: stroke[1],
|
|
176
|
+
emphasized: stroke[1]
|
|
177
|
+
// Reduce emphasis on mobile
|
|
178
|
+
},
|
|
179
|
+
tablet: {
|
|
180
|
+
default: stroke[1],
|
|
181
|
+
emphasized: stroke[2]
|
|
182
|
+
},
|
|
183
|
+
desktop: {
|
|
184
|
+
default: stroke[1],
|
|
185
|
+
emphasized: stroke[2]
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
var stroke_default = stroke;
|
|
189
|
+
|
|
190
|
+
exports.componentStrokes = componentStrokes;
|
|
191
|
+
exports.createStroke = createStroke;
|
|
192
|
+
exports.default = stroke_default;
|
|
193
|
+
exports.generateStrokesCSS = generateStrokesCSS;
|
|
194
|
+
exports.getStroke = getStroke;
|
|
195
|
+
exports.getStrokeColor = getStrokeColor;
|
|
196
|
+
exports.responsiveStrokes = responsiveStrokes;
|
|
197
|
+
exports.stroke = stroke;
|
|
198
|
+
exports.strokeColors = strokeColors;
|
|
199
|
+
exports.strokeDirections = strokeDirections;
|
|
200
|
+
exports.strokeStyles = strokeStyles;
|
|
201
|
+
exports.strokeTransitions = strokeTransitions;
|
|
202
|
+
exports.tailwindStrokes = tailwindStrokes;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// src/tokens/stroke.ts
|
|
2
|
+
var stroke = {
|
|
3
|
+
// Stroke widths
|
|
4
|
+
1: "1px",
|
|
5
|
+
2: "2px"
|
|
6
|
+
};
|
|
7
|
+
var strokeColors = {
|
|
8
|
+
default: "hsl(var(--border))",
|
|
9
|
+
muted: "hsl(var(--muted))",
|
|
10
|
+
primary: "hsl(var(--primary))",
|
|
11
|
+
secondary: "hsl(var(--secondary))",
|
|
12
|
+
destructive: "hsl(var(--destructive))",
|
|
13
|
+
focus: "hsl(var(--ring))",
|
|
14
|
+
transparent: "transparent"
|
|
15
|
+
};
|
|
16
|
+
var strokeStyles = {
|
|
17
|
+
// Default stroke styles
|
|
18
|
+
default: {
|
|
19
|
+
width: stroke[1],
|
|
20
|
+
color: strokeColors.default,
|
|
21
|
+
style: "solid"
|
|
22
|
+
},
|
|
23
|
+
emphasized: {
|
|
24
|
+
width: stroke[2],
|
|
25
|
+
color: strokeColors.default,
|
|
26
|
+
style: "solid"
|
|
27
|
+
},
|
|
28
|
+
// Interactive stroke styles
|
|
29
|
+
focus: {
|
|
30
|
+
width: stroke[2],
|
|
31
|
+
color: strokeColors.focus,
|
|
32
|
+
style: "solid"
|
|
33
|
+
},
|
|
34
|
+
hover: {
|
|
35
|
+
width: stroke[2],
|
|
36
|
+
color: strokeColors.primary,
|
|
37
|
+
style: "solid"
|
|
38
|
+
},
|
|
39
|
+
// Semantic stroke styles
|
|
40
|
+
primary: {
|
|
41
|
+
width: stroke[1],
|
|
42
|
+
color: strokeColors.primary,
|
|
43
|
+
style: "solid"
|
|
44
|
+
},
|
|
45
|
+
primaryEmphasized: {
|
|
46
|
+
width: stroke[2],
|
|
47
|
+
color: strokeColors.primary,
|
|
48
|
+
style: "solid"
|
|
49
|
+
},
|
|
50
|
+
destructive: {
|
|
51
|
+
width: stroke[1],
|
|
52
|
+
color: strokeColors.destructive,
|
|
53
|
+
style: "solid"
|
|
54
|
+
},
|
|
55
|
+
destructiveEmphasized: {
|
|
56
|
+
width: stroke[2],
|
|
57
|
+
color: strokeColors.destructive,
|
|
58
|
+
style: "solid"
|
|
59
|
+
},
|
|
60
|
+
// Utility stroke styles
|
|
61
|
+
muted: {
|
|
62
|
+
width: stroke[1],
|
|
63
|
+
color: strokeColors.muted,
|
|
64
|
+
style: "solid"
|
|
65
|
+
},
|
|
66
|
+
transparent: {
|
|
67
|
+
width: stroke[1],
|
|
68
|
+
color: strokeColors.transparent,
|
|
69
|
+
style: "solid"
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var componentStrokes = {
|
|
73
|
+
// Button component strokes
|
|
74
|
+
button: {
|
|
75
|
+
outline: strokeStyles.primary,
|
|
76
|
+
outlineHover: strokeStyles.primaryEmphasized,
|
|
77
|
+
outlineFocus: strokeStyles.focus,
|
|
78
|
+
destructiveOutline: strokeStyles.destructive,
|
|
79
|
+
destructiveOutlineHover: strokeStyles.destructiveEmphasized
|
|
80
|
+
},
|
|
81
|
+
// Card component strokes
|
|
82
|
+
card: {
|
|
83
|
+
default: strokeStyles.default,
|
|
84
|
+
emphasized: strokeStyles.emphasized,
|
|
85
|
+
interactive: strokeStyles.default,
|
|
86
|
+
interactiveHover: strokeStyles.hover,
|
|
87
|
+
selected: strokeStyles.primaryEmphasized
|
|
88
|
+
},
|
|
89
|
+
// Form component strokes
|
|
90
|
+
form: {
|
|
91
|
+
input: strokeStyles.default,
|
|
92
|
+
inputFocus: strokeStyles.focus,
|
|
93
|
+
inputError: strokeStyles.destructive,
|
|
94
|
+
inputDisabled: strokeStyles.muted,
|
|
95
|
+
select: strokeStyles.default,
|
|
96
|
+
checkbox: strokeStyles.default,
|
|
97
|
+
checkboxChecked: strokeStyles.primary
|
|
98
|
+
},
|
|
99
|
+
// Navigation component strokes
|
|
100
|
+
navigation: {
|
|
101
|
+
divider: strokeStyles.default,
|
|
102
|
+
tabActive: strokeStyles.primaryEmphasized,
|
|
103
|
+
tabInactive: strokeStyles.transparent,
|
|
104
|
+
tabHover: strokeStyles.default
|
|
105
|
+
},
|
|
106
|
+
// Layout component strokes
|
|
107
|
+
layout: {
|
|
108
|
+
divider: strokeStyles.default,
|
|
109
|
+
section: strokeStyles.muted,
|
|
110
|
+
container: strokeStyles.default
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var strokeDirections = {
|
|
114
|
+
all: "border",
|
|
115
|
+
top: "border-top",
|
|
116
|
+
right: "border-right",
|
|
117
|
+
bottom: "border-bottom",
|
|
118
|
+
left: "border-left",
|
|
119
|
+
horizontal: ["border-left", "border-right"],
|
|
120
|
+
vertical: ["border-top", "border-bottom"]
|
|
121
|
+
};
|
|
122
|
+
var getStroke = (token) => {
|
|
123
|
+
return stroke[token];
|
|
124
|
+
};
|
|
125
|
+
var getStrokeColor = (token) => {
|
|
126
|
+
return strokeColors[token];
|
|
127
|
+
};
|
|
128
|
+
var createStroke = (width, color = "default", style = "solid") => {
|
|
129
|
+
return `${stroke[width]} ${style} ${strokeColors[color]}`;
|
|
130
|
+
};
|
|
131
|
+
var generateStrokesCSS = () => {
|
|
132
|
+
const widthVars = Object.entries(stroke).map(([key, value]) => ` --stroke-${key}: ${value};`).join("\n");
|
|
133
|
+
const colorVars = Object.entries(strokeColors).map(([key, value]) => ` --stroke-color-${key}: ${value};`).join("\n");
|
|
134
|
+
return `:root {
|
|
135
|
+
/* Stroke width tokens */
|
|
136
|
+
${widthVars}
|
|
137
|
+
|
|
138
|
+
/* Stroke color tokens */
|
|
139
|
+
${colorVars}
|
|
140
|
+
}`;
|
|
141
|
+
};
|
|
142
|
+
var tailwindStrokes = {
|
|
143
|
+
// Border widths
|
|
144
|
+
borderWidth: {
|
|
145
|
+
"stroke-1": "var(--stroke-1)",
|
|
146
|
+
"stroke-2": "var(--stroke-2)"
|
|
147
|
+
},
|
|
148
|
+
// Outline widths
|
|
149
|
+
outlineWidth: {
|
|
150
|
+
"stroke-1": "var(--stroke-1)",
|
|
151
|
+
"stroke-2": "var(--stroke-2)"
|
|
152
|
+
},
|
|
153
|
+
// Border colors (using existing design system colors)
|
|
154
|
+
borderColor: {
|
|
155
|
+
"stroke-default": "var(--stroke-color-default)",
|
|
156
|
+
"stroke-muted": "var(--stroke-color-muted)",
|
|
157
|
+
"stroke-primary": "var(--stroke-color-primary)",
|
|
158
|
+
"stroke-destructive": "var(--stroke-color-destructive)",
|
|
159
|
+
"stroke-focus": "var(--stroke-color-focus)"
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
var strokeTransitions = {
|
|
163
|
+
fast: "border-width 0.15s ease-in-out, border-color 0.15s ease-in-out",
|
|
164
|
+
medium: "border-width 0.2s ease-in-out, border-color 0.2s ease-in-out",
|
|
165
|
+
slow: "border-width 0.3s ease-in-out, border-color 0.3s ease-in-out",
|
|
166
|
+
colorOnly: "border-color 0.2s ease-in-out",
|
|
167
|
+
widthOnly: "border-width 0.2s ease-in-out"
|
|
168
|
+
};
|
|
169
|
+
var responsiveStrokes = {
|
|
170
|
+
mobile: {
|
|
171
|
+
default: stroke[1],
|
|
172
|
+
emphasized: stroke[1]
|
|
173
|
+
// Reduce emphasis on mobile
|
|
174
|
+
},
|
|
175
|
+
tablet: {
|
|
176
|
+
default: stroke[1],
|
|
177
|
+
emphasized: stroke[2]
|
|
178
|
+
},
|
|
179
|
+
desktop: {
|
|
180
|
+
default: stroke[1],
|
|
181
|
+
emphasized: stroke[2]
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
var stroke_default = stroke;
|
|
185
|
+
|
|
186
|
+
export { componentStrokes, createStroke, stroke_default as default, generateStrokesCSS, getStroke, getStrokeColor, responsiveStrokes, stroke, strokeColors, strokeDirections, strokeStyles, strokeTransitions, tailwindStrokes };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const tab: {
|
|
2
|
+
background: {
|
|
3
|
+
default: string;
|
|
4
|
+
hover: string;
|
|
5
|
+
selected: string;
|
|
6
|
+
};
|
|
7
|
+
text: {
|
|
8
|
+
default: string;
|
|
9
|
+
hover: string;
|
|
10
|
+
selected: string;
|
|
11
|
+
disabled: string;
|
|
12
|
+
};
|
|
13
|
+
border: {
|
|
14
|
+
selected: string;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
padding: {
|
|
18
|
+
x: string;
|
|
19
|
+
y: string;
|
|
20
|
+
};
|
|
21
|
+
font: {
|
|
22
|
+
size: string;
|
|
23
|
+
weight: string;
|
|
24
|
+
};
|
|
25
|
+
badge: {
|
|
26
|
+
background: string;
|
|
27
|
+
text: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { tab };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const tab: {
|
|
2
|
+
background: {
|
|
3
|
+
default: string;
|
|
4
|
+
hover: string;
|
|
5
|
+
selected: string;
|
|
6
|
+
};
|
|
7
|
+
text: {
|
|
8
|
+
default: string;
|
|
9
|
+
hover: string;
|
|
10
|
+
selected: string;
|
|
11
|
+
disabled: string;
|
|
12
|
+
};
|
|
13
|
+
border: {
|
|
14
|
+
selected: string;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
padding: {
|
|
18
|
+
x: string;
|
|
19
|
+
y: string;
|
|
20
|
+
};
|
|
21
|
+
font: {
|
|
22
|
+
size: string;
|
|
23
|
+
weight: string;
|
|
24
|
+
};
|
|
25
|
+
badge: {
|
|
26
|
+
background: string;
|
|
27
|
+
text: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { tab };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/tokens/colors.ts
|
|
4
|
+
var colors = {
|
|
5
|
+
primary: {
|
|
6
|
+
200: "#eeedf1",
|
|
7
|
+
500: "#a8a3b6",
|
|
8
|
+
1200: "#222028"
|
|
9
|
+
},
|
|
10
|
+
neutral: {
|
|
11
|
+
500: "#bdb3b3",
|
|
12
|
+
300: "#d2caca",
|
|
13
|
+
10: "#ffffff"},
|
|
14
|
+
red: {
|
|
15
|
+
400: "#e86e6e"}};
|
|
16
|
+
|
|
17
|
+
// src/tokens/tab.ts
|
|
18
|
+
var tab = {
|
|
19
|
+
background: {
|
|
20
|
+
default: "transparent",
|
|
21
|
+
hover: colors.primary[200],
|
|
22
|
+
selected: "transparent"
|
|
23
|
+
},
|
|
24
|
+
text: {
|
|
25
|
+
default: colors.neutral[500],
|
|
26
|
+
hover: colors.primary[500],
|
|
27
|
+
selected: colors.primary[1200],
|
|
28
|
+
disabled: colors.neutral[300]
|
|
29
|
+
},
|
|
30
|
+
border: {
|
|
31
|
+
selected: colors.primary[1200],
|
|
32
|
+
default: "transparent"
|
|
33
|
+
},
|
|
34
|
+
padding: {
|
|
35
|
+
x: "16px",
|
|
36
|
+
y: "8px"
|
|
37
|
+
},
|
|
38
|
+
font: {
|
|
39
|
+
size: "16px",
|
|
40
|
+
weight: "400"
|
|
41
|
+
},
|
|
42
|
+
badge: {
|
|
43
|
+
background: colors.red[400],
|
|
44
|
+
text: colors.neutral[10]
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
exports.tab = tab;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// src/tokens/colors.ts
|
|
2
|
+
var colors = {
|
|
3
|
+
primary: {
|
|
4
|
+
200: "#eeedf1",
|
|
5
|
+
500: "#a8a3b6",
|
|
6
|
+
1200: "#222028"
|
|
7
|
+
},
|
|
8
|
+
neutral: {
|
|
9
|
+
500: "#bdb3b3",
|
|
10
|
+
300: "#d2caca",
|
|
11
|
+
10: "#ffffff"},
|
|
12
|
+
red: {
|
|
13
|
+
400: "#e86e6e"}};
|
|
14
|
+
|
|
15
|
+
// src/tokens/tab.ts
|
|
16
|
+
var tab = {
|
|
17
|
+
background: {
|
|
18
|
+
default: "transparent",
|
|
19
|
+
hover: colors.primary[200],
|
|
20
|
+
selected: "transparent"
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
default: colors.neutral[500],
|
|
24
|
+
hover: colors.primary[500],
|
|
25
|
+
selected: colors.primary[1200],
|
|
26
|
+
disabled: colors.neutral[300]
|
|
27
|
+
},
|
|
28
|
+
border: {
|
|
29
|
+
selected: colors.primary[1200],
|
|
30
|
+
default: "transparent"
|
|
31
|
+
},
|
|
32
|
+
padding: {
|
|
33
|
+
x: "16px",
|
|
34
|
+
y: "8px"
|
|
35
|
+
},
|
|
36
|
+
font: {
|
|
37
|
+
size: "16px",
|
|
38
|
+
weight: "400"
|
|
39
|
+
},
|
|
40
|
+
badge: {
|
|
41
|
+
background: colors.red[400],
|
|
42
|
+
text: colors.neutral[10]
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { tab };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const tagTokens: {
|
|
2
|
+
colors: {
|
|
3
|
+
default: {
|
|
4
|
+
background: string;
|
|
5
|
+
text: string;
|
|
6
|
+
bullet: string;
|
|
7
|
+
closeIconBorder: string;
|
|
8
|
+
hover: {
|
|
9
|
+
background: string;
|
|
10
|
+
closeIconBorder: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
success: {
|
|
14
|
+
background: string;
|
|
15
|
+
text: string;
|
|
16
|
+
bullet: string;
|
|
17
|
+
closeIconBorder: string;
|
|
18
|
+
hover: {
|
|
19
|
+
background: string;
|
|
20
|
+
closeIconBorder: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
warning: {
|
|
24
|
+
background: string;
|
|
25
|
+
text: string;
|
|
26
|
+
bullet: string;
|
|
27
|
+
closeIconBorder: string;
|
|
28
|
+
hover: {
|
|
29
|
+
background: string;
|
|
30
|
+
closeIconBorder: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
danger: {
|
|
34
|
+
background: string;
|
|
35
|
+
text: string;
|
|
36
|
+
bullet: string;
|
|
37
|
+
closeIconBorder: string;
|
|
38
|
+
hover: {
|
|
39
|
+
background: string;
|
|
40
|
+
closeIconBorder: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
fontSize: string;
|
|
45
|
+
padding: {
|
|
46
|
+
x: string;
|
|
47
|
+
y: string;
|
|
48
|
+
};
|
|
49
|
+
borderRadius: string;
|
|
50
|
+
iconSize: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { tagTokens };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const tagTokens: {
|
|
2
|
+
colors: {
|
|
3
|
+
default: {
|
|
4
|
+
background: string;
|
|
5
|
+
text: string;
|
|
6
|
+
bullet: string;
|
|
7
|
+
closeIconBorder: string;
|
|
8
|
+
hover: {
|
|
9
|
+
background: string;
|
|
10
|
+
closeIconBorder: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
success: {
|
|
14
|
+
background: string;
|
|
15
|
+
text: string;
|
|
16
|
+
bullet: string;
|
|
17
|
+
closeIconBorder: string;
|
|
18
|
+
hover: {
|
|
19
|
+
background: string;
|
|
20
|
+
closeIconBorder: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
warning: {
|
|
24
|
+
background: string;
|
|
25
|
+
text: string;
|
|
26
|
+
bullet: string;
|
|
27
|
+
closeIconBorder: string;
|
|
28
|
+
hover: {
|
|
29
|
+
background: string;
|
|
30
|
+
closeIconBorder: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
danger: {
|
|
34
|
+
background: string;
|
|
35
|
+
text: string;
|
|
36
|
+
bullet: string;
|
|
37
|
+
closeIconBorder: string;
|
|
38
|
+
hover: {
|
|
39
|
+
background: string;
|
|
40
|
+
closeIconBorder: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
fontSize: string;
|
|
45
|
+
padding: {
|
|
46
|
+
x: string;
|
|
47
|
+
y: string;
|
|
48
|
+
};
|
|
49
|
+
borderRadius: string;
|
|
50
|
+
iconSize: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { tagTokens };
|