@vellira-ui/tokens 2.29.0 → 2.31.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/dist/css/tokens.css +2427 -16
- package/dist/dark/components/formField.d.ts +52 -0
- package/dist/dark/components/formField.d.ts.map +1 -1
- package/dist/dark/components/formField.js +55 -0
- package/dist/dark/components/input.d.ts +109 -4
- package/dist/dark/components/input.d.ts.map +1 -1
- package/dist/dark/components/input.js +81 -4
- package/dist/dark/components/select.d.ts +1702 -3
- package/dist/dark/components/select.d.ts.map +1 -1
- package/dist/dark/components/select.js +163 -6
- package/dist/factories/createInputPalette.d.ts +78 -0
- package/dist/factories/createInputPalette.d.ts.map +1 -0
- package/dist/factories/createInputPalette.js +78 -0
- package/dist/factories/createSelectPalette.d.ts +347 -0
- package/dist/factories/createSelectPalette.d.ts.map +1 -0
- package/dist/factories/createSelectPalette.js +41 -0
- package/dist/factories/index.d.ts +1 -0
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +1 -0
- package/dist/generated/token-types.d.ts +4 -4
- package/dist/generated/token-types.d.ts.map +1 -1
- package/dist/generated/token-types.js +3220 -4
- package/dist/highContrast/components/formField.d.ts +52 -0
- package/dist/highContrast/components/formField.d.ts.map +1 -1
- package/dist/highContrast/components/formField.js +55 -0
- package/dist/highContrast/components/input.d.ts +109 -4
- package/dist/highContrast/components/input.d.ts.map +1 -1
- package/dist/highContrast/components/input.js +101 -4
- package/dist/highContrast/components/select.d.ts +1701 -2
- package/dist/highContrast/components/select.d.ts.map +1 -1
- package/dist/highContrast/components/select.js +187 -5
- package/dist/light/components/formField.d.ts +52 -0
- package/dist/light/components/formField.d.ts.map +1 -1
- package/dist/light/components/formField.js +55 -0
- package/dist/light/components/input.d.ts +110 -5
- package/dist/light/components/input.d.ts.map +1 -1
- package/dist/light/components/input.js +81 -4
- package/dist/light/components/select.d.ts +1702 -3
- package/dist/light/components/select.d.ts.map +1 -1
- package/dist/light/components/select.js +164 -6
- package/dist/light/semantic/icons.d.ts +1 -1
- package/dist/light/semantic/icons.js +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/select.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/select.ts"],"names":[],"mappings":"AAuHA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyLT,CAAC"}
|
|
@@ -1,25 +1,166 @@
|
|
|
1
|
+
import { createInputColorPalette } from '../../factories/createInputPalette.js';
|
|
2
|
+
import { createSelectPalette } from '../../factories/createSelectPalette.js';
|
|
3
|
+
import { colors } from '../../primitives/colors.js';
|
|
1
4
|
import { border } from '../semantic/border.js';
|
|
2
5
|
import { control } from '../semantic/control.js';
|
|
3
6
|
import { focus } from '../semantic/focus.js';
|
|
7
|
+
import { icons } from '../semantic/icons.js';
|
|
4
8
|
import { menu } from '../semantic/menu.js';
|
|
5
|
-
import { shadow } from '../semantic/shadow.js';
|
|
6
9
|
import { status } from '../semantic/status.js';
|
|
10
|
+
import { surface } from '../semantic/surface.js';
|
|
7
11
|
import { text } from '../semantic/text.js';
|
|
12
|
+
const selectPaletteDefaults = {
|
|
13
|
+
fg: text.primary,
|
|
14
|
+
placeholder: text.secondary,
|
|
15
|
+
filledFocusBg: surface.subtle,
|
|
16
|
+
hoverBg: surface.hover,
|
|
17
|
+
};
|
|
18
|
+
const primary = createInputColorPalette({
|
|
19
|
+
...selectPaletteDefaults,
|
|
20
|
+
accent: colors.primary[300],
|
|
21
|
+
accentHover: colors.primary[400],
|
|
22
|
+
accentSoft: colors.primary[900],
|
|
23
|
+
filledBg: colors.primary[950],
|
|
24
|
+
filledHoverBg: colors.primary[900],
|
|
25
|
+
filledDefaultBorder: colors.primary[300],
|
|
26
|
+
filledHoverBorder: colors.primary[400],
|
|
27
|
+
softDefaultBorder: colors.primary[300],
|
|
28
|
+
softHoverBorder: colors.primary[400],
|
|
29
|
+
ring: colors.primary[400],
|
|
30
|
+
});
|
|
31
|
+
const neutral = createInputColorPalette({
|
|
32
|
+
...selectPaletteDefaults,
|
|
33
|
+
accent: colors.grayBlue[200],
|
|
34
|
+
accentHover: colors.gray[200],
|
|
35
|
+
accentSoft: colors.grayBlue[800],
|
|
36
|
+
filledBg: colors.grayBlue[900],
|
|
37
|
+
filledHoverBg: colors.grayBlue[800],
|
|
38
|
+
filledDefaultBorder: colors.grayBlue[200],
|
|
39
|
+
filledHoverBorder: colors.gray[200],
|
|
40
|
+
softDefaultBorder: colors.grayBlue[200],
|
|
41
|
+
softHoverBorder: colors.gray[200],
|
|
42
|
+
hoverBg: colors.grayBlue[900],
|
|
43
|
+
ring: colors.grayBlue[400],
|
|
44
|
+
});
|
|
45
|
+
const success = createInputColorPalette({
|
|
46
|
+
...selectPaletteDefaults,
|
|
47
|
+
accent: colors.success[300],
|
|
48
|
+
accentHover: colors.success[400],
|
|
49
|
+
accentSoft: colors.success[900],
|
|
50
|
+
filledBg: colors.success[950],
|
|
51
|
+
filledHoverBg: colors.success[900],
|
|
52
|
+
filledDefaultBorder: colors.success[300],
|
|
53
|
+
filledHoverBorder: colors.success[400],
|
|
54
|
+
softDefaultBorder: colors.success[300],
|
|
55
|
+
softHoverBorder: colors.success[400],
|
|
56
|
+
hoverBg: colors.success[950],
|
|
57
|
+
ring: colors.success[500],
|
|
58
|
+
});
|
|
59
|
+
const warning = createInputColorPalette({
|
|
60
|
+
...selectPaletteDefaults,
|
|
61
|
+
accent: colors.warning[500],
|
|
62
|
+
accentHover: colors.warning[400],
|
|
63
|
+
accentSoft: colors.warning[900],
|
|
64
|
+
filledBg: colors.warning[900],
|
|
65
|
+
filledHoverBg: colors.warning[800],
|
|
66
|
+
filledDefaultBorder: colors.warning[500],
|
|
67
|
+
filledHoverBorder: colors.warning[400],
|
|
68
|
+
softDefaultBorder: colors.warning[500],
|
|
69
|
+
softHoverBorder: colors.warning[400],
|
|
70
|
+
hoverBg: colors.warning[950],
|
|
71
|
+
ring: colors.warning[500],
|
|
72
|
+
});
|
|
73
|
+
const danger = createInputColorPalette({
|
|
74
|
+
...selectPaletteDefaults,
|
|
75
|
+
accent: colors.error[400],
|
|
76
|
+
accentHover: colors.error[300],
|
|
77
|
+
accentSoft: colors.error[900],
|
|
78
|
+
filledBg: colors.error[950],
|
|
79
|
+
filledHoverBg: colors.error[900],
|
|
80
|
+
filledDefaultBorder: colors.error[400],
|
|
81
|
+
filledHoverBorder: colors.error[300],
|
|
82
|
+
softDefaultBorder: colors.error[400],
|
|
83
|
+
softHoverBorder: colors.error[300],
|
|
84
|
+
hoverBg: colors.error[950],
|
|
85
|
+
ring: colors.error[500],
|
|
86
|
+
});
|
|
8
87
|
export const select = {
|
|
88
|
+
primary: createSelectPalette(primary, {
|
|
89
|
+
optionActiveBorder: 'transparent',
|
|
90
|
+
optionActiveRing: 'transparent',
|
|
91
|
+
optionHoverBg: menu.item.hover.bg,
|
|
92
|
+
optionHoverBorder: 'transparent',
|
|
93
|
+
optionHoverFg: menu.item.hover.fg,
|
|
94
|
+
optionPressedBg: menu.item.pressed.bg,
|
|
95
|
+
optionPressedBorder: 'transparent',
|
|
96
|
+
optionPressedFg: menu.item.pressed.fg,
|
|
97
|
+
}),
|
|
98
|
+
neutral: createSelectPalette(neutral, {
|
|
99
|
+
optionActiveBorder: 'transparent',
|
|
100
|
+
optionActiveRing: 'transparent',
|
|
101
|
+
optionHoverBg: menu.item.hover.bg,
|
|
102
|
+
optionHoverBorder: 'transparent',
|
|
103
|
+
optionHoverFg: menu.item.hover.fg,
|
|
104
|
+
optionPressedBg: menu.item.pressed.bg,
|
|
105
|
+
optionPressedBorder: 'transparent',
|
|
106
|
+
optionPressedFg: menu.item.pressed.fg,
|
|
107
|
+
}),
|
|
108
|
+
success: createSelectPalette(success, {
|
|
109
|
+
optionActiveBorder: 'transparent',
|
|
110
|
+
optionActiveRing: 'transparent',
|
|
111
|
+
optionHoverBg: menu.item.hover.bg,
|
|
112
|
+
optionHoverBorder: 'transparent',
|
|
113
|
+
optionHoverFg: menu.item.hover.fg,
|
|
114
|
+
optionPressedBg: menu.item.pressed.bg,
|
|
115
|
+
optionPressedBorder: 'transparent',
|
|
116
|
+
optionPressedFg: menu.item.pressed.fg,
|
|
117
|
+
}),
|
|
118
|
+
warning: createSelectPalette(warning, {
|
|
119
|
+
optionActiveBorder: 'transparent',
|
|
120
|
+
optionActiveRing: 'transparent',
|
|
121
|
+
optionHoverBg: menu.item.hover.bg,
|
|
122
|
+
optionHoverBorder: 'transparent',
|
|
123
|
+
optionHoverFg: menu.item.hover.fg,
|
|
124
|
+
optionPressedBg: menu.item.pressed.bg,
|
|
125
|
+
optionPressedBorder: 'transparent',
|
|
126
|
+
optionPressedFg: menu.item.pressed.fg,
|
|
127
|
+
}),
|
|
128
|
+
danger: createSelectPalette(danger, {
|
|
129
|
+
optionActiveBorder: 'transparent',
|
|
130
|
+
optionActiveRing: 'transparent',
|
|
131
|
+
optionHoverBg: menu.item.hover.bg,
|
|
132
|
+
optionHoverBorder: 'transparent',
|
|
133
|
+
optionHoverFg: menu.item.hover.fg,
|
|
134
|
+
optionPressedBg: menu.item.pressed.bg,
|
|
135
|
+
optionPressedBorder: 'transparent',
|
|
136
|
+
optionPressedFg: menu.item.pressed.fg,
|
|
137
|
+
}),
|
|
9
138
|
trigger: {
|
|
10
139
|
default: {
|
|
11
140
|
bg: 'transparent',
|
|
12
141
|
fg: text.primary,
|
|
13
142
|
border: border.default,
|
|
143
|
+
icon: icons.brand,
|
|
144
|
+
placeholder: text.secondary,
|
|
145
|
+
},
|
|
146
|
+
hover: {
|
|
147
|
+
...control.hover,
|
|
148
|
+
icon: icons.hover,
|
|
149
|
+
placeholder: text.secondary,
|
|
14
150
|
},
|
|
15
|
-
hover: control.hover,
|
|
16
151
|
focus: {
|
|
17
152
|
bg: 'transparent',
|
|
18
153
|
fg: text.primary,
|
|
19
154
|
border: border.focus,
|
|
20
155
|
ring: focus.ring.color,
|
|
156
|
+
icon: icons.brand,
|
|
157
|
+
placeholder: text.secondary,
|
|
158
|
+
},
|
|
159
|
+
disabled: {
|
|
160
|
+
...control.disabled,
|
|
161
|
+
icon: icons.disabled,
|
|
162
|
+
placeholder: text.disabled,
|
|
21
163
|
},
|
|
22
|
-
disabled: control.disabled,
|
|
23
164
|
placeholder: {
|
|
24
165
|
fg: text.secondary,
|
|
25
166
|
},
|
|
@@ -32,7 +173,23 @@ export const select = {
|
|
|
32
173
|
bg: menu.background,
|
|
33
174
|
fg: menu.item.default.fg,
|
|
34
175
|
border: menu.border,
|
|
35
|
-
shadow:
|
|
176
|
+
shadow: 'none',
|
|
177
|
+
search: {
|
|
178
|
+
bg: surface.default,
|
|
179
|
+
fg: text.primary,
|
|
180
|
+
border: border.muted,
|
|
181
|
+
placeholder: text.secondary,
|
|
182
|
+
ring: focus.ring.color,
|
|
183
|
+
},
|
|
184
|
+
empty: {
|
|
185
|
+
fg: text.secondary,
|
|
186
|
+
},
|
|
187
|
+
groupLabel: {
|
|
188
|
+
fg: colors.primary[300],
|
|
189
|
+
},
|
|
190
|
+
separator: {
|
|
191
|
+
bg: border.muted,
|
|
192
|
+
},
|
|
36
193
|
},
|
|
37
194
|
option: {
|
|
38
195
|
default: {
|
|
@@ -56,11 +213,36 @@ export const select = {
|
|
|
56
213
|
bg: control.selected.muted.bg,
|
|
57
214
|
fg: control.selected.muted.fg,
|
|
58
215
|
border: control.selected.muted.border,
|
|
59
|
-
shadow:
|
|
216
|
+
shadow: 'none',
|
|
60
217
|
},
|
|
61
218
|
disabled: {
|
|
62
219
|
...menu.item.disabled,
|
|
63
220
|
border: 'transparent',
|
|
64
221
|
},
|
|
222
|
+
description: {
|
|
223
|
+
fg: text.secondary,
|
|
224
|
+
},
|
|
225
|
+
icon: {
|
|
226
|
+
fg: icons.default,
|
|
227
|
+
},
|
|
228
|
+
badge: {
|
|
229
|
+
bg: surface.subtle,
|
|
230
|
+
fg: text.secondary,
|
|
231
|
+
border: border.muted,
|
|
232
|
+
},
|
|
233
|
+
shortcut: {
|
|
234
|
+
bg: surface.subtle,
|
|
235
|
+
fg: text.secondary,
|
|
236
|
+
border: border.muted,
|
|
237
|
+
},
|
|
238
|
+
success: {
|
|
239
|
+
fg: status.success.fg,
|
|
240
|
+
},
|
|
241
|
+
warning: {
|
|
242
|
+
fg: status.warning.fg,
|
|
243
|
+
},
|
|
244
|
+
danger: {
|
|
245
|
+
fg: status.error.fg,
|
|
246
|
+
},
|
|
65
247
|
},
|
|
66
248
|
};
|
|
@@ -2,6 +2,14 @@ export declare const formField: {
|
|
|
2
2
|
readonly label: {
|
|
3
3
|
readonly fg: "#3D3754";
|
|
4
4
|
};
|
|
5
|
+
readonly optional: {
|
|
6
|
+
readonly fg: "#6B6386";
|
|
7
|
+
};
|
|
8
|
+
readonly labelInfo: {
|
|
9
|
+
readonly fg: "#6B6386";
|
|
10
|
+
readonly border: "#6B6386";
|
|
11
|
+
readonly radius: 999;
|
|
12
|
+
};
|
|
5
13
|
readonly description: {
|
|
6
14
|
readonly fg: "#6B6386";
|
|
7
15
|
};
|
|
@@ -30,5 +38,49 @@ export declare const formField: {
|
|
|
30
38
|
readonly descriptionFg: "#958CB0";
|
|
31
39
|
readonly helperTextFg: "#958CB0";
|
|
32
40
|
};
|
|
41
|
+
readonly size: {
|
|
42
|
+
readonly sm: {
|
|
43
|
+
readonly gap: 4;
|
|
44
|
+
readonly horizontalGap: 12;
|
|
45
|
+
readonly labelFontSize: 14;
|
|
46
|
+
readonly labelLineHeight: 20;
|
|
47
|
+
readonly descriptionFontSize: 12;
|
|
48
|
+
readonly descriptionLineHeight: 16;
|
|
49
|
+
readonly helperTextFontSize: 12;
|
|
50
|
+
readonly helperTextLineHeight: 16;
|
|
51
|
+
readonly optionalFontSize: 12;
|
|
52
|
+
readonly optionalLineHeight: 16;
|
|
53
|
+
readonly labelInfoSize: 16;
|
|
54
|
+
readonly labelInfoFontSize: 12;
|
|
55
|
+
};
|
|
56
|
+
readonly md: {
|
|
57
|
+
readonly gap: 8;
|
|
58
|
+
readonly horizontalGap: 16;
|
|
59
|
+
readonly labelFontSize: 16;
|
|
60
|
+
readonly labelLineHeight: 24;
|
|
61
|
+
readonly descriptionFontSize: 14;
|
|
62
|
+
readonly descriptionLineHeight: 20;
|
|
63
|
+
readonly helperTextFontSize: 14;
|
|
64
|
+
readonly helperTextLineHeight: 20;
|
|
65
|
+
readonly optionalFontSize: 12;
|
|
66
|
+
readonly optionalLineHeight: 16;
|
|
67
|
+
readonly labelInfoSize: 16;
|
|
68
|
+
readonly labelInfoFontSize: 12;
|
|
69
|
+
};
|
|
70
|
+
readonly lg: {
|
|
71
|
+
readonly gap: 12;
|
|
72
|
+
readonly horizontalGap: 20;
|
|
73
|
+
readonly labelFontSize: 20;
|
|
74
|
+
readonly labelLineHeight: 28;
|
|
75
|
+
readonly descriptionFontSize: 16;
|
|
76
|
+
readonly descriptionLineHeight: 24;
|
|
77
|
+
readonly helperTextFontSize: 16;
|
|
78
|
+
readonly helperTextLineHeight: 24;
|
|
79
|
+
readonly optionalFontSize: 14;
|
|
80
|
+
readonly optionalLineHeight: 20;
|
|
81
|
+
readonly labelInfoSize: 20;
|
|
82
|
+
readonly labelInfoFontSize: 14;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
33
85
|
};
|
|
34
86
|
//# sourceMappingURL=formField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formField.d.ts","sourceRoot":"","sources":["../../../src/light/components/formField.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"formField.d.ts","sourceRoot":"","sources":["../../../src/light/components/formField.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FZ,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import { radius } from '../../tokens/radius.js';
|
|
2
|
+
import { spacing } from '../../tokens/spacing.js';
|
|
3
|
+
import { typography } from '../../tokens/typography.js';
|
|
1
4
|
import { status } from '../semantic/status.js';
|
|
2
5
|
import { text } from '../semantic/text.js';
|
|
3
6
|
export const formField = {
|
|
4
7
|
label: {
|
|
5
8
|
fg: text.primary,
|
|
6
9
|
},
|
|
10
|
+
optional: {
|
|
11
|
+
fg: text.secondary,
|
|
12
|
+
},
|
|
13
|
+
labelInfo: {
|
|
14
|
+
fg: text.secondary,
|
|
15
|
+
border: text.secondary,
|
|
16
|
+
radius: radius.full,
|
|
17
|
+
},
|
|
7
18
|
description: {
|
|
8
19
|
fg: text.secondary,
|
|
9
20
|
},
|
|
@@ -32,4 +43,48 @@ export const formField = {
|
|
|
32
43
|
descriptionFg: text.disabled,
|
|
33
44
|
helperTextFg: text.disabled,
|
|
34
45
|
},
|
|
46
|
+
size: {
|
|
47
|
+
sm: {
|
|
48
|
+
gap: spacing[1],
|
|
49
|
+
horizontalGap: spacing[3],
|
|
50
|
+
labelFontSize: typography.size.sm,
|
|
51
|
+
labelLineHeight: typography.lineHeight.sm,
|
|
52
|
+
descriptionFontSize: typography.size.xs,
|
|
53
|
+
descriptionLineHeight: typography.lineHeight.xs,
|
|
54
|
+
helperTextFontSize: typography.size.xs,
|
|
55
|
+
helperTextLineHeight: typography.lineHeight.xs,
|
|
56
|
+
optionalFontSize: typography.size.xs,
|
|
57
|
+
optionalLineHeight: typography.lineHeight.xs,
|
|
58
|
+
labelInfoSize: spacing[4],
|
|
59
|
+
labelInfoFontSize: typography.size.xs,
|
|
60
|
+
},
|
|
61
|
+
md: {
|
|
62
|
+
gap: spacing[2],
|
|
63
|
+
horizontalGap: spacing[4],
|
|
64
|
+
labelFontSize: typography.size.md,
|
|
65
|
+
labelLineHeight: typography.lineHeight.md,
|
|
66
|
+
descriptionFontSize: typography.size.sm,
|
|
67
|
+
descriptionLineHeight: typography.lineHeight.sm,
|
|
68
|
+
helperTextFontSize: typography.size.sm,
|
|
69
|
+
helperTextLineHeight: typography.lineHeight.sm,
|
|
70
|
+
optionalFontSize: typography.size.xs,
|
|
71
|
+
optionalLineHeight: typography.lineHeight.xs,
|
|
72
|
+
labelInfoSize: spacing[4],
|
|
73
|
+
labelInfoFontSize: typography.size.xs,
|
|
74
|
+
},
|
|
75
|
+
lg: {
|
|
76
|
+
gap: spacing[3],
|
|
77
|
+
horizontalGap: spacing[5],
|
|
78
|
+
labelFontSize: typography.size.lg,
|
|
79
|
+
labelLineHeight: typography.lineHeight.lg,
|
|
80
|
+
descriptionFontSize: typography.size.md,
|
|
81
|
+
descriptionLineHeight: typography.lineHeight.md,
|
|
82
|
+
helperTextFontSize: typography.size.md,
|
|
83
|
+
helperTextLineHeight: typography.lineHeight.md,
|
|
84
|
+
optionalFontSize: typography.size.sm,
|
|
85
|
+
optionalLineHeight: typography.lineHeight.sm,
|
|
86
|
+
labelInfoSize: spacing[5],
|
|
87
|
+
labelInfoFontSize: typography.size.sm,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
35
90
|
};
|
|
@@ -1,4 +1,94 @@
|
|
|
1
1
|
export declare const input: {
|
|
2
|
+
readonly primary: {
|
|
3
|
+
readonly ring: string;
|
|
4
|
+
readonly outline: {
|
|
5
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
6
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
7
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
8
|
+
};
|
|
9
|
+
readonly filled: {
|
|
10
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
11
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
12
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
13
|
+
};
|
|
14
|
+
readonly soft: {
|
|
15
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
16
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
17
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly neutral: {
|
|
21
|
+
readonly ring: string;
|
|
22
|
+
readonly outline: {
|
|
23
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
24
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
25
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
26
|
+
};
|
|
27
|
+
readonly filled: {
|
|
28
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
29
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
30
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
31
|
+
};
|
|
32
|
+
readonly soft: {
|
|
33
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
34
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
35
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly success: {
|
|
39
|
+
readonly ring: string;
|
|
40
|
+
readonly outline: {
|
|
41
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
42
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
43
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
44
|
+
};
|
|
45
|
+
readonly filled: {
|
|
46
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
47
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
48
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
49
|
+
};
|
|
50
|
+
readonly soft: {
|
|
51
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
52
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
53
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly warning: {
|
|
57
|
+
readonly ring: string;
|
|
58
|
+
readonly outline: {
|
|
59
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
60
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
61
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
62
|
+
};
|
|
63
|
+
readonly filled: {
|
|
64
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
65
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
66
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
67
|
+
};
|
|
68
|
+
readonly soft: {
|
|
69
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
70
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
71
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly danger: {
|
|
75
|
+
readonly ring: string;
|
|
76
|
+
readonly outline: {
|
|
77
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
78
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
79
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
80
|
+
};
|
|
81
|
+
readonly filled: {
|
|
82
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
83
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
84
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
85
|
+
};
|
|
86
|
+
readonly soft: {
|
|
87
|
+
default: import("../../factories/createInputPalette.js").InputState;
|
|
88
|
+
hover: import("../../factories/createInputPalette.js").InputState;
|
|
89
|
+
focus: import("../../factories/createInputPalette.js").InputState;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
2
92
|
readonly default: {
|
|
3
93
|
readonly bg: "transparent";
|
|
4
94
|
readonly fg: "#3D3754";
|
|
@@ -32,10 +122,6 @@ export declare const input: {
|
|
|
32
122
|
readonly border: "#E11D48";
|
|
33
123
|
readonly ring: "#F43F5E";
|
|
34
124
|
};
|
|
35
|
-
readonly success: {
|
|
36
|
-
readonly border: "#0F766E";
|
|
37
|
-
readonly ring: "#14B8A6";
|
|
38
|
-
};
|
|
39
125
|
readonly readOnly: {
|
|
40
126
|
readonly bg: "#FDFCFF";
|
|
41
127
|
readonly fg: "#6B6386";
|
|
@@ -47,7 +133,7 @@ export declare const input: {
|
|
|
47
133
|
readonly default: "#3D3754";
|
|
48
134
|
readonly primary: "#5037C8";
|
|
49
135
|
readonly secondary: "#6B6386";
|
|
50
|
-
readonly success: "#
|
|
136
|
+
readonly success: "#14B8A6";
|
|
51
137
|
readonly danger: "#BE123C";
|
|
52
138
|
readonly muted: "#958CB0";
|
|
53
139
|
readonly inverse: "#FFFFFF";
|
|
@@ -60,5 +146,24 @@ export declare const input: {
|
|
|
60
146
|
readonly focusBg: "#FDFCFF";
|
|
61
147
|
readonly pressedBg: "#EEE8FA";
|
|
62
148
|
};
|
|
149
|
+
readonly revealButton: {
|
|
150
|
+
readonly fg: "#3D3754";
|
|
151
|
+
readonly hoverFg: "#3D3754";
|
|
152
|
+
readonly hoverBg: "#F4F1FB";
|
|
153
|
+
};
|
|
154
|
+
readonly addon: {
|
|
155
|
+
readonly bg: "#F4F1FB";
|
|
156
|
+
readonly fg: "#6B6386";
|
|
157
|
+
readonly border: "#BBB2D2";
|
|
158
|
+
};
|
|
159
|
+
readonly affix: {
|
|
160
|
+
readonly fg: "#3D3754";
|
|
161
|
+
};
|
|
162
|
+
readonly counter: {
|
|
163
|
+
readonly fg: "#6B6386";
|
|
164
|
+
};
|
|
165
|
+
readonly spinner: {
|
|
166
|
+
readonly fg: "#958CB0";
|
|
167
|
+
};
|
|
63
168
|
};
|
|
64
169
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/light/components/input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/light/components/input.ts"],"names":[],"mappings":"AAsEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FR,CAAC"}
|
|
@@ -1,10 +1,72 @@
|
|
|
1
|
+
import { createInputColorPalette } from '../../factories/createInputPalette.js';
|
|
2
|
+
import { colors } from '../../primitives/colors.js';
|
|
1
3
|
import { border } from '../semantic/border.js';
|
|
2
4
|
import { focus } from '../semantic/focus.js';
|
|
3
5
|
import { icons } from '../semantic/icons.js';
|
|
4
6
|
import { status } from '../semantic/status.js';
|
|
5
7
|
import { surface } from '../semantic/surface.js';
|
|
6
8
|
import { text } from '../semantic/text.js';
|
|
9
|
+
const inputPaletteDefaults = {
|
|
10
|
+
fg: text.primary,
|
|
11
|
+
placeholder: text.secondary,
|
|
12
|
+
filledFocusBg: surface.subtle,
|
|
13
|
+
hoverBg: surface.hover,
|
|
14
|
+
};
|
|
15
|
+
const primary = createInputColorPalette({
|
|
16
|
+
...inputPaletteDefaults,
|
|
17
|
+
accent: colors.primary[500],
|
|
18
|
+
accentHover: colors.primary[700],
|
|
19
|
+
accentSoft: colors.primary[50],
|
|
20
|
+
filledBg: colors.primary[100],
|
|
21
|
+
filledHoverBg: colors.primary[200],
|
|
22
|
+
ring: colors.primary[400],
|
|
23
|
+
});
|
|
24
|
+
const neutral = createInputColorPalette({
|
|
25
|
+
...inputPaletteDefaults,
|
|
26
|
+
accent: colors.vellira[400],
|
|
27
|
+
accentHover: colors.vellira[600],
|
|
28
|
+
accentSoft: colors.vellira[100],
|
|
29
|
+
filledBg: colors.vellira[150],
|
|
30
|
+
filledHoverBg: colors.vellira[200],
|
|
31
|
+
hoverBg: colors.vellira[100],
|
|
32
|
+
ring: colors.vellira[400],
|
|
33
|
+
});
|
|
34
|
+
const success = createInputColorPalette({
|
|
35
|
+
...inputPaletteDefaults,
|
|
36
|
+
accent: colors.success[600],
|
|
37
|
+
accentHover: colors.success[700],
|
|
38
|
+
accentSoft: colors.success[50],
|
|
39
|
+
filledBg: colors.success[100],
|
|
40
|
+
filledHoverBg: colors.success[200],
|
|
41
|
+
hoverBg: colors.success[50],
|
|
42
|
+
ring: colors.success[500],
|
|
43
|
+
});
|
|
44
|
+
const warning = createInputColorPalette({
|
|
45
|
+
...inputPaletteDefaults,
|
|
46
|
+
accent: colors.warning[600],
|
|
47
|
+
accentHover: colors.warning[700],
|
|
48
|
+
accentSoft: colors.warning[50],
|
|
49
|
+
filledBg: colors.warning[100],
|
|
50
|
+
filledHoverBg: colors.warning[200],
|
|
51
|
+
hoverBg: colors.warning[50],
|
|
52
|
+
ring: colors.warning[500],
|
|
53
|
+
});
|
|
54
|
+
const danger = createInputColorPalette({
|
|
55
|
+
...inputPaletteDefaults,
|
|
56
|
+
accent: colors.error[600],
|
|
57
|
+
accentHover: colors.error[700],
|
|
58
|
+
accentSoft: colors.error[50],
|
|
59
|
+
filledBg: colors.error[100],
|
|
60
|
+
filledHoverBg: colors.error[200],
|
|
61
|
+
hoverBg: colors.error[50],
|
|
62
|
+
ring: colors.error[500],
|
|
63
|
+
});
|
|
7
64
|
export const input = {
|
|
65
|
+
primary,
|
|
66
|
+
neutral,
|
|
67
|
+
success,
|
|
68
|
+
warning,
|
|
69
|
+
danger,
|
|
8
70
|
default: {
|
|
9
71
|
bg: 'transparent',
|
|
10
72
|
fg: text.primary,
|
|
@@ -38,10 +100,6 @@ export const input = {
|
|
|
38
100
|
border: status.error.border,
|
|
39
101
|
ring: status.error.ring,
|
|
40
102
|
},
|
|
41
|
-
success: {
|
|
42
|
-
border: status.success.border,
|
|
43
|
-
ring: status.success.ring,
|
|
44
|
-
},
|
|
45
103
|
readOnly: {
|
|
46
104
|
bg: surface.subtle,
|
|
47
105
|
fg: text.secondary,
|
|
@@ -66,4 +124,23 @@ export const input = {
|
|
|
66
124
|
focusBg: surface.subtle,
|
|
67
125
|
pressedBg: surface.active,
|
|
68
126
|
},
|
|
127
|
+
revealButton: {
|
|
128
|
+
fg: text.primary,
|
|
129
|
+
hoverFg: text.primary,
|
|
130
|
+
hoverBg: surface.hover,
|
|
131
|
+
},
|
|
132
|
+
addon: {
|
|
133
|
+
bg: surface.muted,
|
|
134
|
+
fg: text.secondary,
|
|
135
|
+
border: border.default,
|
|
136
|
+
},
|
|
137
|
+
affix: {
|
|
138
|
+
fg: text.primary,
|
|
139
|
+
},
|
|
140
|
+
counter: {
|
|
141
|
+
fg: text.secondary,
|
|
142
|
+
},
|
|
143
|
+
spinner: {
|
|
144
|
+
fg: icons.muted,
|
|
145
|
+
},
|
|
69
146
|
};
|