@vellira-ui/tokens 2.21.0 → 2.22.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/README.md +3 -3
- package/dist/css/tokens.css +119 -43
- package/dist/dark/components/checkbox.d.ts +2 -2
- package/dist/dark/components/checkbox.js +1 -1
- package/dist/dark/components/dropdown.d.ts +2 -2
- package/dist/dark/components/input.d.ts +30 -3
- package/dist/dark/components/input.d.ts.map +1 -1
- package/dist/dark/components/input.js +29 -1
- package/dist/dark/components/menu.d.ts +2 -2
- package/dist/dark/components/radio.d.ts +1 -1
- package/dist/dark/components/select.d.ts +1 -1
- package/dist/dark/components/tabs.d.ts +1 -1
- package/dist/dark/semantic/control.d.ts +6 -1
- package/dist/dark/semantic/control.d.ts.map +1 -1
- package/dist/dark/semantic/control.js +6 -0
- package/dist/dark/semantic/icons.d.ts +15 -0
- package/dist/dark/semantic/icons.d.ts.map +1 -0
- package/dist/dark/semantic/icons.js +15 -0
- package/dist/dark/semantic/navigation.d.ts +2 -2
- package/dist/dark/semantic/status.d.ts +1 -1
- package/dist/dark/semantic/status.js +1 -1
- package/dist/dark/semantic/surface.d.ts +2 -1
- package/dist/dark/semantic/surface.d.ts.map +1 -1
- package/dist/dark/semantic/surface.js +3 -1
- package/dist/generated/token-types.d.ts +5 -5
- package/dist/generated/token-types.d.ts.map +1 -1
- package/dist/generated/token-types.js +100 -0
- package/dist/highContrast/components/checkbox.d.ts +1 -1
- package/dist/highContrast/components/checkbox.d.ts.map +1 -1
- package/dist/highContrast/components/checkbox.js +2 -6
- package/dist/highContrast/components/input.d.ts +28 -1
- package/dist/highContrast/components/input.d.ts.map +1 -1
- package/dist/highContrast/components/input.js +29 -1
- package/dist/highContrast/semantic/control.d.ts +5 -0
- package/dist/highContrast/semantic/control.d.ts.map +1 -1
- package/dist/highContrast/semantic/control.js +7 -0
- package/dist/highContrast/semantic/icons.d.ts +15 -0
- package/dist/highContrast/semantic/icons.d.ts.map +1 -0
- package/dist/highContrast/semantic/icons.js +15 -0
- package/dist/highContrast/semantic/surface.d.ts +1 -0
- package/dist/highContrast/semantic/surface.d.ts.map +1 -1
- package/dist/highContrast/semantic/surface.js +2 -0
- package/dist/light/components/button.d.ts +1 -1
- package/dist/light/components/checkbox.d.ts +2 -2
- package/dist/light/components/checkbox.d.ts.map +1 -1
- package/dist/light/components/checkbox.js +2 -6
- package/dist/light/components/dropdown.d.ts +3 -3
- package/dist/light/components/formField.d.ts +3 -3
- package/dist/light/components/formField.js +1 -1
- package/dist/light/components/input.d.ts +31 -4
- package/dist/light/components/input.d.ts.map +1 -1
- package/dist/light/components/input.js +30 -2
- package/dist/light/components/menu.d.ts +1 -1
- package/dist/light/components/modal.d.ts +1 -1
- package/dist/light/components/radio.d.ts +2 -2
- package/dist/light/components/select.d.ts +2 -2
- package/dist/light/components/tabs.d.ts +1 -1
- package/dist/light/components/tooltip.d.ts +1 -1
- package/dist/light/semantic/border.d.ts +2 -1
- package/dist/light/semantic/border.d.ts.map +1 -1
- package/dist/light/semantic/border.js +2 -1
- package/dist/light/semantic/control.d.ts +5 -0
- package/dist/light/semantic/control.d.ts.map +1 -1
- package/dist/light/semantic/control.js +7 -0
- package/dist/light/semantic/icons.d.ts +15 -0
- package/dist/light/semantic/icons.d.ts.map +1 -0
- package/dist/light/semantic/icons.js +15 -0
- package/dist/light/semantic/status.d.ts +1 -1
- package/dist/light/semantic/status.js +1 -1
- package/dist/light/semantic/surface.d.ts +1 -0
- package/dist/light/semantic/surface.d.ts.map +1 -1
- package/dist/light/semantic/surface.js +2 -0
- package/dist/utils/color.d.ts +2 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/color.js +12 -0
- package/package.json +1 -1
|
@@ -189,6 +189,9 @@ export const semanticTokenPaths = [
|
|
|
189
189
|
'semantic.border.muted',
|
|
190
190
|
'semantic.border.strong',
|
|
191
191
|
'semantic.border.subtle',
|
|
192
|
+
'semantic.control.default.bg',
|
|
193
|
+
'semantic.control.default.border',
|
|
194
|
+
'semantic.control.default.fg',
|
|
192
195
|
'semantic.control.hover.bg',
|
|
193
196
|
'semantic.control.hover.border',
|
|
194
197
|
'semantic.control.hover.fg',
|
|
@@ -256,6 +259,7 @@ export const semanticTokenPaths = [
|
|
|
256
259
|
'semantic.status.warning.fg',
|
|
257
260
|
'semantic.status.warning.strong',
|
|
258
261
|
'semantic.surface.active',
|
|
262
|
+
'semantic.surface.danger',
|
|
259
263
|
'semantic.surface.default',
|
|
260
264
|
'semantic.surface.disabled',
|
|
261
265
|
'semantic.surface.elevated',
|
|
@@ -454,25 +458,46 @@ export const componentTokenPaths = [
|
|
|
454
458
|
'components.formField.helperText.warning.fg',
|
|
455
459
|
'components.formField.label.fg',
|
|
456
460
|
'components.formField.requiredMark.fg',
|
|
461
|
+
'components.input.clearButton.fg',
|
|
462
|
+
'components.input.clearButton.focusBg',
|
|
463
|
+
'components.input.clearButton.hoverBg',
|
|
464
|
+
'components.input.clearButton.hoverFg',
|
|
465
|
+
'components.input.clearButton.pressedBg',
|
|
457
466
|
'components.input.default.bg',
|
|
458
467
|
'components.input.default.border',
|
|
459
468
|
'components.input.default.fg',
|
|
469
|
+
'components.input.default.icon',
|
|
460
470
|
'components.input.default.placeholder',
|
|
461
471
|
'components.input.disabled.bg',
|
|
462
472
|
'components.input.disabled.border',
|
|
463
473
|
'components.input.disabled.fg',
|
|
474
|
+
'components.input.disabled.icon',
|
|
464
475
|
'components.input.disabled.placeholder',
|
|
465
476
|
'components.input.error.border',
|
|
466
477
|
'components.input.error.ring',
|
|
467
478
|
'components.input.focus.bg',
|
|
468
479
|
'components.input.focus.border',
|
|
469
480
|
'components.input.focus.fg',
|
|
481
|
+
'components.input.focus.icon',
|
|
470
482
|
'components.input.focus.placeholder',
|
|
471
483
|
'components.input.focus.ring',
|
|
472
484
|
'components.input.hover.bg',
|
|
473
485
|
'components.input.hover.border',
|
|
474
486
|
'components.input.hover.fg',
|
|
487
|
+
'components.input.hover.icon',
|
|
475
488
|
'components.input.hover.placeholder',
|
|
489
|
+
'components.input.icon.danger',
|
|
490
|
+
'components.input.icon.default',
|
|
491
|
+
'components.input.icon.inverse',
|
|
492
|
+
'components.input.icon.muted',
|
|
493
|
+
'components.input.icon.primary',
|
|
494
|
+
'components.input.icon.secondary',
|
|
495
|
+
'components.input.icon.success',
|
|
496
|
+
'components.input.readOnly.bg',
|
|
497
|
+
'components.input.readOnly.border',
|
|
498
|
+
'components.input.readOnly.fg',
|
|
499
|
+
'components.input.readOnly.icon',
|
|
500
|
+
'components.input.readOnly.placeholder',
|
|
476
501
|
'components.input.success.border',
|
|
477
502
|
'components.input.success.ring',
|
|
478
503
|
'components.menu.groupLabel.fg',
|
|
@@ -949,25 +974,46 @@ export const tokenPaths = [
|
|
|
949
974
|
'components.formField.helperText.warning.fg',
|
|
950
975
|
'components.formField.label.fg',
|
|
951
976
|
'components.formField.requiredMark.fg',
|
|
977
|
+
'components.input.clearButton.fg',
|
|
978
|
+
'components.input.clearButton.focusBg',
|
|
979
|
+
'components.input.clearButton.hoverBg',
|
|
980
|
+
'components.input.clearButton.hoverFg',
|
|
981
|
+
'components.input.clearButton.pressedBg',
|
|
952
982
|
'components.input.default.bg',
|
|
953
983
|
'components.input.default.border',
|
|
954
984
|
'components.input.default.fg',
|
|
985
|
+
'components.input.default.icon',
|
|
955
986
|
'components.input.default.placeholder',
|
|
956
987
|
'components.input.disabled.bg',
|
|
957
988
|
'components.input.disabled.border',
|
|
958
989
|
'components.input.disabled.fg',
|
|
990
|
+
'components.input.disabled.icon',
|
|
959
991
|
'components.input.disabled.placeholder',
|
|
960
992
|
'components.input.error.border',
|
|
961
993
|
'components.input.error.ring',
|
|
962
994
|
'components.input.focus.bg',
|
|
963
995
|
'components.input.focus.border',
|
|
964
996
|
'components.input.focus.fg',
|
|
997
|
+
'components.input.focus.icon',
|
|
965
998
|
'components.input.focus.placeholder',
|
|
966
999
|
'components.input.focus.ring',
|
|
967
1000
|
'components.input.hover.bg',
|
|
968
1001
|
'components.input.hover.border',
|
|
969
1002
|
'components.input.hover.fg',
|
|
1003
|
+
'components.input.hover.icon',
|
|
970
1004
|
'components.input.hover.placeholder',
|
|
1005
|
+
'components.input.icon.danger',
|
|
1006
|
+
'components.input.icon.default',
|
|
1007
|
+
'components.input.icon.inverse',
|
|
1008
|
+
'components.input.icon.muted',
|
|
1009
|
+
'components.input.icon.primary',
|
|
1010
|
+
'components.input.icon.secondary',
|
|
1011
|
+
'components.input.icon.success',
|
|
1012
|
+
'components.input.readOnly.bg',
|
|
1013
|
+
'components.input.readOnly.border',
|
|
1014
|
+
'components.input.readOnly.fg',
|
|
1015
|
+
'components.input.readOnly.icon',
|
|
1016
|
+
'components.input.readOnly.placeholder',
|
|
971
1017
|
'components.input.success.border',
|
|
972
1018
|
'components.input.success.ring',
|
|
973
1019
|
'components.menu.groupLabel.fg',
|
|
@@ -1153,6 +1199,9 @@ export const tokenPaths = [
|
|
|
1153
1199
|
'semantic.border.muted',
|
|
1154
1200
|
'semantic.border.strong',
|
|
1155
1201
|
'semantic.border.subtle',
|
|
1202
|
+
'semantic.control.default.bg',
|
|
1203
|
+
'semantic.control.default.border',
|
|
1204
|
+
'semantic.control.default.fg',
|
|
1156
1205
|
'semantic.control.hover.bg',
|
|
1157
1206
|
'semantic.control.hover.border',
|
|
1158
1207
|
'semantic.control.hover.fg',
|
|
@@ -1220,6 +1269,7 @@ export const tokenPaths = [
|
|
|
1220
1269
|
'semantic.status.warning.fg',
|
|
1221
1270
|
'semantic.status.warning.strong',
|
|
1222
1271
|
'semantic.surface.active',
|
|
1272
|
+
'semantic.surface.danger',
|
|
1223
1273
|
'semantic.surface.default',
|
|
1224
1274
|
'semantic.surface.disabled',
|
|
1225
1275
|
'semantic.surface.elevated',
|
|
@@ -1660,6 +1710,9 @@ export const themeCssVariableNames = [
|
|
|
1660
1710
|
'--color-warning-800',
|
|
1661
1711
|
'--color-warning-900',
|
|
1662
1712
|
'--color-warning-950',
|
|
1713
|
+
'--control-default-bg',
|
|
1714
|
+
'--control-default-border',
|
|
1715
|
+
'--control-default-fg',
|
|
1663
1716
|
'--control-hover-bg',
|
|
1664
1717
|
'--control-hover-border',
|
|
1665
1718
|
'--control-hover-fg',
|
|
@@ -1733,25 +1786,46 @@ export const themeCssVariableNames = [
|
|
|
1733
1786
|
'--form-field-helper-text-warning-fg',
|
|
1734
1787
|
'--form-field-label-fg',
|
|
1735
1788
|
'--form-field-required-mark-fg',
|
|
1789
|
+
'--input-clear-button-fg',
|
|
1790
|
+
'--input-clear-button-focus-bg',
|
|
1791
|
+
'--input-clear-button-hover-bg',
|
|
1792
|
+
'--input-clear-button-hover-fg',
|
|
1793
|
+
'--input-clear-button-pressed-bg',
|
|
1736
1794
|
'--input-default-bg',
|
|
1737
1795
|
'--input-default-border',
|
|
1738
1796
|
'--input-default-fg',
|
|
1797
|
+
'--input-default-icon',
|
|
1739
1798
|
'--input-default-placeholder',
|
|
1740
1799
|
'--input-disabled-bg',
|
|
1741
1800
|
'--input-disabled-border',
|
|
1742
1801
|
'--input-disabled-fg',
|
|
1802
|
+
'--input-disabled-icon',
|
|
1743
1803
|
'--input-disabled-placeholder',
|
|
1744
1804
|
'--input-error-border',
|
|
1745
1805
|
'--input-error-ring',
|
|
1746
1806
|
'--input-focus-bg',
|
|
1747
1807
|
'--input-focus-border',
|
|
1748
1808
|
'--input-focus-fg',
|
|
1809
|
+
'--input-focus-icon',
|
|
1749
1810
|
'--input-focus-placeholder',
|
|
1750
1811
|
'--input-focus-ring',
|
|
1751
1812
|
'--input-hover-bg',
|
|
1752
1813
|
'--input-hover-border',
|
|
1753
1814
|
'--input-hover-fg',
|
|
1815
|
+
'--input-hover-icon',
|
|
1754
1816
|
'--input-hover-placeholder',
|
|
1817
|
+
'--input-icon-danger',
|
|
1818
|
+
'--input-icon-default',
|
|
1819
|
+
'--input-icon-inverse',
|
|
1820
|
+
'--input-icon-muted',
|
|
1821
|
+
'--input-icon-primary',
|
|
1822
|
+
'--input-icon-secondary',
|
|
1823
|
+
'--input-icon-success',
|
|
1824
|
+
'--input-read-only-bg',
|
|
1825
|
+
'--input-read-only-border',
|
|
1826
|
+
'--input-read-only-fg',
|
|
1827
|
+
'--input-read-only-icon',
|
|
1828
|
+
'--input-read-only-placeholder',
|
|
1755
1829
|
'--input-success-border',
|
|
1756
1830
|
'--input-success-ring',
|
|
1757
1831
|
'--menu-group-label-fg',
|
|
@@ -1877,6 +1951,7 @@ export const themeCssVariableNames = [
|
|
|
1877
1951
|
'--status-warning-fg',
|
|
1878
1952
|
'--status-warning-strong',
|
|
1879
1953
|
'--surface-active',
|
|
1954
|
+
'--surface-danger',
|
|
1880
1955
|
'--surface-default',
|
|
1881
1956
|
'--surface-disabled',
|
|
1882
1957
|
'--surface-elevated',
|
|
@@ -2244,6 +2319,9 @@ export const cssVariableNames = [
|
|
|
2244
2319
|
'--color-warning-800',
|
|
2245
2320
|
'--color-warning-900',
|
|
2246
2321
|
'--color-warning-950',
|
|
2322
|
+
'--control-default-bg',
|
|
2323
|
+
'--control-default-border',
|
|
2324
|
+
'--control-default-fg',
|
|
2247
2325
|
'--control-hover-bg',
|
|
2248
2326
|
'--control-hover-border',
|
|
2249
2327
|
'--control-hover-fg',
|
|
@@ -2332,25 +2410,46 @@ export const cssVariableNames = [
|
|
|
2332
2410
|
'--form-field-helper-text-warning-fg',
|
|
2333
2411
|
'--form-field-label-fg',
|
|
2334
2412
|
'--form-field-required-mark-fg',
|
|
2413
|
+
'--input-clear-button-fg',
|
|
2414
|
+
'--input-clear-button-focus-bg',
|
|
2415
|
+
'--input-clear-button-hover-bg',
|
|
2416
|
+
'--input-clear-button-hover-fg',
|
|
2417
|
+
'--input-clear-button-pressed-bg',
|
|
2335
2418
|
'--input-default-bg',
|
|
2336
2419
|
'--input-default-border',
|
|
2337
2420
|
'--input-default-fg',
|
|
2421
|
+
'--input-default-icon',
|
|
2338
2422
|
'--input-default-placeholder',
|
|
2339
2423
|
'--input-disabled-bg',
|
|
2340
2424
|
'--input-disabled-border',
|
|
2341
2425
|
'--input-disabled-fg',
|
|
2426
|
+
'--input-disabled-icon',
|
|
2342
2427
|
'--input-disabled-placeholder',
|
|
2343
2428
|
'--input-error-border',
|
|
2344
2429
|
'--input-error-ring',
|
|
2345
2430
|
'--input-focus-bg',
|
|
2346
2431
|
'--input-focus-border',
|
|
2347
2432
|
'--input-focus-fg',
|
|
2433
|
+
'--input-focus-icon',
|
|
2348
2434
|
'--input-focus-placeholder',
|
|
2349
2435
|
'--input-focus-ring',
|
|
2350
2436
|
'--input-hover-bg',
|
|
2351
2437
|
'--input-hover-border',
|
|
2352
2438
|
'--input-hover-fg',
|
|
2439
|
+
'--input-hover-icon',
|
|
2353
2440
|
'--input-hover-placeholder',
|
|
2441
|
+
'--input-icon-danger',
|
|
2442
|
+
'--input-icon-default',
|
|
2443
|
+
'--input-icon-inverse',
|
|
2444
|
+
'--input-icon-muted',
|
|
2445
|
+
'--input-icon-primary',
|
|
2446
|
+
'--input-icon-secondary',
|
|
2447
|
+
'--input-icon-success',
|
|
2448
|
+
'--input-read-only-bg',
|
|
2449
|
+
'--input-read-only-border',
|
|
2450
|
+
'--input-read-only-fg',
|
|
2451
|
+
'--input-read-only-icon',
|
|
2452
|
+
'--input-read-only-placeholder',
|
|
2354
2453
|
'--input-success-border',
|
|
2355
2454
|
'--input-success-ring',
|
|
2356
2455
|
'--line-height-lg',
|
|
@@ -2500,6 +2599,7 @@ export const cssVariableNames = [
|
|
|
2500
2599
|
'--status-warning-fg',
|
|
2501
2600
|
'--status-warning-strong',
|
|
2502
2601
|
'--surface-active',
|
|
2602
|
+
'--surface-danger',
|
|
2503
2603
|
'--surface-default',
|
|
2504
2604
|
'--surface-disabled',
|
|
2505
2605
|
'--surface-elevated',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/checkbox.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/checkbox.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBX,CAAC"}
|
|
@@ -5,11 +5,7 @@ import { status } from '../semantic/status.js';
|
|
|
5
5
|
import { surface } from '../semantic/surface.js';
|
|
6
6
|
import { text } from '../semantic/text.js';
|
|
7
7
|
export const checkbox = {
|
|
8
|
-
default:
|
|
9
|
-
bg: surface.default,
|
|
10
|
-
fg: text.primary,
|
|
11
|
-
border: border.muted,
|
|
12
|
-
},
|
|
8
|
+
default: control.default,
|
|
13
9
|
hover: control.hover,
|
|
14
10
|
checked: {
|
|
15
11
|
default: control.selected.default,
|
|
@@ -25,7 +21,7 @@ export const checkbox = {
|
|
|
25
21
|
border: border.muted,
|
|
26
22
|
},
|
|
27
23
|
error: {
|
|
28
|
-
border: status.error.fg,
|
|
29
24
|
fg: status.error.fg,
|
|
25
|
+
border: status.error.fg,
|
|
30
26
|
},
|
|
31
27
|
};
|
|
@@ -4,12 +4,14 @@ export declare const input: {
|
|
|
4
4
|
readonly fg: "#FFFFFF";
|
|
5
5
|
readonly border: "#FFFFFF";
|
|
6
6
|
readonly placeholder: "#E5E7EB";
|
|
7
|
+
readonly icon: "#9B7CFF";
|
|
7
8
|
};
|
|
8
9
|
readonly hover: {
|
|
9
|
-
readonly bg: "#
|
|
10
|
+
readonly bg: "#1F2937";
|
|
10
11
|
readonly fg: "#000000";
|
|
11
12
|
readonly border: "#FBBF24";
|
|
12
13
|
readonly placeholder: "#000000";
|
|
14
|
+
readonly icon: "#9B7CFF";
|
|
13
15
|
};
|
|
14
16
|
readonly focus: {
|
|
15
17
|
readonly bg: "transparent";
|
|
@@ -17,12 +19,14 @@ export declare const input: {
|
|
|
17
19
|
readonly border: "#FBBF24";
|
|
18
20
|
readonly ring: "#F59E0B";
|
|
19
21
|
readonly placeholder: "#E5E7EB";
|
|
22
|
+
readonly icon: "#FFFFFF";
|
|
20
23
|
};
|
|
21
24
|
readonly disabled: {
|
|
22
25
|
readonly bg: "#1F2937";
|
|
23
26
|
readonly fg: "#6B7280";
|
|
24
27
|
readonly border: "#4B5563";
|
|
25
28
|
readonly placeholder: "#6B7280";
|
|
29
|
+
readonly icon: "#D1D5DB";
|
|
26
30
|
};
|
|
27
31
|
readonly error: {
|
|
28
32
|
readonly border: "#FB7185";
|
|
@@ -32,5 +36,28 @@ export declare const input: {
|
|
|
32
36
|
readonly border: "#6EE7B7";
|
|
33
37
|
readonly ring: "#6EE7B7";
|
|
34
38
|
};
|
|
39
|
+
readonly readOnly: {
|
|
40
|
+
readonly bg: "#111827";
|
|
41
|
+
readonly fg: "#EEE8FA";
|
|
42
|
+
readonly border: "#FFFFFF";
|
|
43
|
+
readonly placeholder: "#E5E7EB";
|
|
44
|
+
readonly icon: "#9CA3AF";
|
|
45
|
+
};
|
|
46
|
+
readonly icon: {
|
|
47
|
+
readonly default: "#0F0F0F";
|
|
48
|
+
readonly primary: "#B8A8FF";
|
|
49
|
+
readonly secondary: "#9CA3AF";
|
|
50
|
+
readonly success: "#10B981";
|
|
51
|
+
readonly danger: "#F43F5E";
|
|
52
|
+
readonly muted: "#9CA3AF";
|
|
53
|
+
readonly inverse: "#1A1A1A";
|
|
54
|
+
};
|
|
55
|
+
readonly clearButton: {
|
|
56
|
+
readonly fg: "#FB7185";
|
|
57
|
+
readonly hoverFg: "#FB7185";
|
|
58
|
+
readonly hoverBg: string;
|
|
59
|
+
readonly focusBg: "#FFFFFF";
|
|
60
|
+
readonly pressedBg: "#111827";
|
|
61
|
+
};
|
|
35
62
|
};
|
|
36
63
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/input.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqER,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { border } from '../semantic/border.js';
|
|
2
2
|
import { focus } from '../semantic/focus.js';
|
|
3
|
+
import { icons } from '../semantic/icons.js';
|
|
3
4
|
import { navigation } from '../semantic/navigation.js';
|
|
4
5
|
import { status } from '../semantic/status.js';
|
|
5
6
|
import { surface } from '../semantic/surface.js';
|
|
@@ -10,12 +11,14 @@ export const input = {
|
|
|
10
11
|
fg: text.primary,
|
|
11
12
|
border: border.default,
|
|
12
13
|
placeholder: text.muted,
|
|
14
|
+
icon: icons.brand,
|
|
13
15
|
},
|
|
14
16
|
hover: {
|
|
15
|
-
bg:
|
|
17
|
+
bg: surface.hover,
|
|
16
18
|
fg: navigation.hover.fg,
|
|
17
19
|
border: navigation.hover.bg,
|
|
18
20
|
placeholder: navigation.hover.fg,
|
|
21
|
+
icon: icons.hover,
|
|
19
22
|
},
|
|
20
23
|
focus: {
|
|
21
24
|
bg: 'transparent',
|
|
@@ -23,12 +26,14 @@ export const input = {
|
|
|
23
26
|
border: border.focus,
|
|
24
27
|
ring: focus.ring,
|
|
25
28
|
placeholder: text.muted,
|
|
29
|
+
icon: icons.subtle,
|
|
26
30
|
},
|
|
27
31
|
disabled: {
|
|
28
32
|
bg: surface.muted,
|
|
29
33
|
fg: text.disabled,
|
|
30
34
|
border: border.muted,
|
|
31
35
|
placeholder: text.disabled,
|
|
36
|
+
icon: icons.disabled,
|
|
32
37
|
},
|
|
33
38
|
error: {
|
|
34
39
|
border: status.error.border,
|
|
@@ -38,4 +43,27 @@ export const input = {
|
|
|
38
43
|
border: status.success.strong,
|
|
39
44
|
ring: status.success.fg,
|
|
40
45
|
},
|
|
46
|
+
readOnly: {
|
|
47
|
+
bg: surface.subtle,
|
|
48
|
+
fg: text.secondary,
|
|
49
|
+
border: border.default,
|
|
50
|
+
placeholder: text.muted,
|
|
51
|
+
icon: icons.muted,
|
|
52
|
+
},
|
|
53
|
+
icon: {
|
|
54
|
+
default: icons.default,
|
|
55
|
+
primary: icons.primary,
|
|
56
|
+
secondary: icons.secondary,
|
|
57
|
+
success: icons.success,
|
|
58
|
+
danger: icons.danger,
|
|
59
|
+
muted: icons.muted,
|
|
60
|
+
inverse: icons.inverse,
|
|
61
|
+
},
|
|
62
|
+
clearButton: {
|
|
63
|
+
fg: status.error.fg,
|
|
64
|
+
hoverFg: status.error.fg,
|
|
65
|
+
hoverBg: surface.danger,
|
|
66
|
+
focusBg: surface.inverse,
|
|
67
|
+
pressedBg: surface.active,
|
|
68
|
+
},
|
|
41
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../src/highContrast/semantic/control.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../src/highContrast/semantic/control.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CV,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { colors } from '../../primitives/colors.js';
|
|
2
|
+
import { border } from './border.js';
|
|
3
|
+
import { surface } from './surface.js';
|
|
2
4
|
import { text } from './text.js';
|
|
3
5
|
export const control = {
|
|
6
|
+
default: {
|
|
7
|
+
bg: surface.default,
|
|
8
|
+
fg: text.primary,
|
|
9
|
+
border: border.muted,
|
|
10
|
+
},
|
|
4
11
|
hover: {
|
|
5
12
|
bg: colors.gray[900],
|
|
6
13
|
fg: text.inverse,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const icons: {
|
|
2
|
+
readonly default: "#0F0F0F";
|
|
3
|
+
readonly primary: "#B8A8FF";
|
|
4
|
+
readonly secondary: "#9CA3AF";
|
|
5
|
+
readonly success: "#10B981";
|
|
6
|
+
readonly muted: "#9CA3AF";
|
|
7
|
+
readonly disabled: "#D1D5DB";
|
|
8
|
+
readonly subtle: "#FFFFFF";
|
|
9
|
+
readonly danger: "#F43F5E";
|
|
10
|
+
readonly hover: "#9B7CFF";
|
|
11
|
+
readonly inverse: "#1A1A1A";
|
|
12
|
+
readonly onInverse: "#000000";
|
|
13
|
+
readonly brand: "#9B7CFF";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/highContrast/semantic/icons.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAgBR,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { colors } from '../../primitives/colors.js';
|
|
2
|
+
export const icons = {
|
|
3
|
+
default: colors.mono[900],
|
|
4
|
+
primary: colors.primary[300],
|
|
5
|
+
secondary: colors.mono[500],
|
|
6
|
+
success: colors.success[500],
|
|
7
|
+
muted: colors.mono[500],
|
|
8
|
+
disabled: colors.mono[400],
|
|
9
|
+
subtle: colors.mono[50],
|
|
10
|
+
danger: colors.error[500],
|
|
11
|
+
hover: colors.primary[400],
|
|
12
|
+
inverse: colors.mono[800],
|
|
13
|
+
onInverse: colors.mono[950],
|
|
14
|
+
brand: colors.primary[400],
|
|
15
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/highContrast/semantic/surface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/highContrast/semantic/surface.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;;;;;;;;CAYV,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { colors } from '../../primitives/colors.js';
|
|
2
|
+
import { withAlpha } from '../../utils/color.js';
|
|
2
3
|
export const surface = {
|
|
3
4
|
default: colors.mono[950],
|
|
4
5
|
muted: colors.gray[800],
|
|
5
6
|
subtle: colors.gray[900],
|
|
6
7
|
elevated: colors.gray[700],
|
|
7
8
|
pressed: colors.gray[900],
|
|
9
|
+
danger: withAlpha(colors.error[800], 0.5),
|
|
8
10
|
hover: colors.gray[800],
|
|
9
11
|
active: colors.gray[900],
|
|
10
12
|
inverse: colors.mono[50],
|
|
@@ -35,8 +35,8 @@ export declare const checkbox: {
|
|
|
35
35
|
readonly border: "#EEE8FA";
|
|
36
36
|
};
|
|
37
37
|
readonly error: {
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
38
|
+
readonly fg: "#F43F5E";
|
|
39
|
+
readonly border: "#F43F5E";
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/light/components/checkbox.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/light/components/checkbox.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBX,CAAC"}
|
|
@@ -5,11 +5,7 @@ import { status } from '../semantic/status.js';
|
|
|
5
5
|
import { surface } from '../semantic/surface.js';
|
|
6
6
|
import { text } from '../semantic/text.js';
|
|
7
7
|
export const checkbox = {
|
|
8
|
-
default:
|
|
9
|
-
bg: surface.default,
|
|
10
|
-
fg: text.primary,
|
|
11
|
-
border: border.subtle,
|
|
12
|
-
},
|
|
8
|
+
default: control.default,
|
|
13
9
|
hover: control.hover,
|
|
14
10
|
checked: {
|
|
15
11
|
default: control.selected.default,
|
|
@@ -25,7 +21,7 @@ export const checkbox = {
|
|
|
25
21
|
border: border.muted,
|
|
26
22
|
},
|
|
27
23
|
error: {
|
|
28
|
-
border: status.error.fg,
|
|
29
24
|
fg: status.error.fg,
|
|
25
|
+
border: status.error.fg,
|
|
30
26
|
},
|
|
31
27
|
};
|
|
@@ -51,15 +51,15 @@ export declare const dropdown: {
|
|
|
51
51
|
};
|
|
52
52
|
readonly danger: {
|
|
53
53
|
readonly default: {
|
|
54
|
-
readonly fg: "#
|
|
54
|
+
readonly fg: "#F43F5E";
|
|
55
55
|
};
|
|
56
56
|
readonly hover: {
|
|
57
57
|
readonly bg: "#FFE4E6";
|
|
58
|
-
readonly fg: "#
|
|
58
|
+
readonly fg: "#F43F5E";
|
|
59
59
|
};
|
|
60
60
|
readonly active: {
|
|
61
61
|
readonly bg: "#FFE4E6";
|
|
62
|
-
readonly fg: "#
|
|
62
|
+
readonly fg: "#F43F5E";
|
|
63
63
|
readonly ring: "transparent";
|
|
64
64
|
};
|
|
65
65
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const formField: {
|
|
2
2
|
readonly label: {
|
|
3
|
-
readonly fg: "#
|
|
3
|
+
readonly fg: "#1A1A1A";
|
|
4
4
|
};
|
|
5
5
|
readonly description: {
|
|
6
6
|
readonly fg: "#6B6386";
|
|
@@ -10,7 +10,7 @@ export declare const formField: {
|
|
|
10
10
|
readonly fg: "#958CB0";
|
|
11
11
|
};
|
|
12
12
|
readonly error: {
|
|
13
|
-
readonly fg: "#
|
|
13
|
+
readonly fg: "#F43F5E";
|
|
14
14
|
};
|
|
15
15
|
readonly success: {
|
|
16
16
|
readonly fg: "#047857";
|
|
@@ -23,7 +23,7 @@ export declare const formField: {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
readonly requiredMark: {
|
|
26
|
-
readonly fg: "#
|
|
26
|
+
readonly fg: "#F43F5E";
|
|
27
27
|
};
|
|
28
28
|
readonly disabled: {
|
|
29
29
|
readonly labelFg: "#9CA3AF";
|