@nearform/quantum 1.8.0 → 1.9.1
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 +19 -1
- package/dist/animations/index.d.ts +25 -0
- package/dist/animations/index.js +14 -37
- package/dist/animations/index.js.map +1 -1
- package/dist/assets/build/open-source.icon.d.ts +2 -0
- package/dist/assets/build/open-source.icon.js +7 -0
- package/dist/assets/build/open-source.icon.js.map +1 -0
- package/dist/assets/index.d.ts +13 -0
- package/dist/assets/index.js +29 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/colors/accent.d.ts +16 -0
- package/dist/colors/accent.js +21 -0
- package/dist/colors/accent.js.map +1 -0
- package/dist/colors/background.d.ts +36 -0
- package/dist/colors/background.js +41 -0
- package/dist/colors/background.js.map +1 -0
- package/dist/colors/base.d.ts +136 -0
- package/dist/colors/base.js +140 -0
- package/dist/colors/base.js.map +1 -0
- package/dist/colors/border.d.ts +16 -0
- package/dist/colors/border.js +21 -0
- package/dist/colors/border.js.map +1 -0
- package/dist/colors/button.d.ts +106 -0
- package/dist/colors/button.js +115 -0
- package/dist/colors/button.js.map +1 -0
- package/dist/colors/feedback.d.ts +27 -0
- package/dist/colors/feedback.js +32 -0
- package/dist/colors/feedback.js.map +1 -0
- package/dist/colors/foreground.d.ts +35 -0
- package/dist/colors/foreground.js +40 -0
- package/dist/colors/foreground.js.map +1 -0
- package/dist/colors/index.d.ts +351 -0
- package/dist/colors/index.js +13 -416
- package/dist/colors/index.js.map +1 -1
- package/dist/components/Accordion/index.d.ts +13 -0
- package/dist/components/Accordion/index.js +97 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/AppHeader/index.d.ts +21 -0
- package/dist/components/AppHeader/index.js +98 -0
- package/dist/components/AppHeader/index.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +32 -0
- package/dist/components/Avatar/index.js +116 -0
- package/dist/components/Avatar/index.js.map +1 -0
- package/dist/components/BackLink/index.d.ts +9 -0
- package/dist/components/BackLink/index.js +80 -0
- package/dist/components/BackLink/index.js.map +1 -0
- package/dist/components/Badge/index.d.ts +48 -0
- package/dist/components/Badge/index.js +160 -0
- package/dist/components/Badge/index.js.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +13 -0
- package/dist/components/Breadcrumb/index.js +90 -0
- package/dist/components/Breadcrumb/index.js.map +1 -0
- package/dist/components/Button/index.d.ts +17 -0
- package/dist/components/Button/index.js +204 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/ButtonGroup/index.d.ts +11 -0
- package/dist/components/ButtonGroup/index.js +102 -0
- package/dist/components/ButtonGroup/index.js.map +1 -0
- package/dist/components/Calendar/index.d.ts +8 -0
- package/dist/components/Calendar/index.js +146 -0
- package/dist/components/Calendar/index.js.map +1 -0
- package/dist/components/Card/index.d.ts +28 -0
- package/dist/components/Card/index.js +155 -0
- package/dist/components/Card/index.js.map +1 -0
- package/dist/components/Chat/index.d.ts +39 -0
- package/dist/components/Chat/index.js +100 -0
- package/dist/components/Chat/index.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +5 -0
- package/dist/components/Checkbox/index.js +128 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +61 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +107 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroupItem.d.ts +19 -0
- package/dist/components/CheckboxGroup/CheckboxGroupItem.js +83 -0
- package/dist/components/CheckboxGroup/CheckboxGroupItem.js.map +1 -0
- package/dist/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/components/CheckboxGroup/index.js +9 -0
- package/dist/components/CheckboxGroup/index.js.map +1 -0
- package/dist/components/Chip/index.d.ts +11 -0
- package/dist/components/Chip/index.js +105 -0
- package/dist/components/Chip/index.js.map +1 -0
- package/dist/components/CodeBlock/index.d.ts +7 -0
- package/dist/components/CodeBlock/index.js +57 -0
- package/dist/components/CodeBlock/index.js.map +1 -0
- package/dist/components/ControlLabel/index.d.ts +13 -0
- package/dist/components/ControlLabel/index.js +83 -0
- package/dist/components/ControlLabel/index.js.map +1 -0
- package/dist/components/DateInput/index.d.ts +26 -0
- package/dist/components/DateInput/index.js +261 -0
- package/dist/components/DateInput/index.js.map +1 -0
- package/dist/components/DocsList/index.d.ts +18 -0
- package/dist/components/DocsList/index.js +125 -0
- package/dist/components/DocsList/index.js.map +1 -0
- package/dist/components/FormGroup/index.d.ts +121 -0
- package/dist/components/FormGroup/index.js +359 -0
- package/dist/components/FormGroup/index.js.map +1 -0
- package/dist/components/HeroButton/index.d.ts +17 -0
- package/dist/components/HeroButton/index.js +139 -0
- package/dist/components/HeroButton/index.js.map +1 -0
- package/dist/components/IconButton/index.d.ts +77 -0
- package/dist/components/IconButton/index.js +235 -0
- package/dist/components/IconButton/index.js.map +1 -0
- package/dist/components/Input/index.d.ts +27 -0
- package/dist/components/Input/index.js +179 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/Label/index.d.ts +12 -0
- package/dist/components/Label/index.js +89 -0
- package/dist/components/Label/index.js.map +1 -0
- package/dist/components/Link/index.d.ts +8 -0
- package/dist/components/Link/index.js +40 -0
- package/dist/components/Link/index.js.map +1 -0
- package/dist/components/Modal/index.d.ts +26 -0
- package/dist/components/Modal/index.js +143 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Navigation/index.d.ts +8 -0
- package/dist/components/Navigation/index.js +65 -0
- package/dist/components/Navigation/index.js.map +1 -0
- package/dist/components/Notice/index.d.ts +17 -0
- package/dist/components/Notice/index.js +134 -0
- package/dist/components/Notice/index.js.map +1 -0
- package/dist/components/PageHeader/index.d.ts +15 -0
- package/dist/components/PageHeader/index.js +90 -0
- package/dist/components/PageHeader/index.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +17 -0
- package/dist/components/Pagination/index.js +118 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/Password/index.d.ts +18 -0
- package/dist/components/Password/index.js +106 -0
- package/dist/components/Password/index.js.map +1 -0
- package/dist/components/Popover/index.d.ts +28 -0
- package/dist/components/Popover/index.js +97 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/Radio/RadioGroup.d.ts +42 -0
- package/dist/components/Radio/RadioGroup.js +82 -0
- package/dist/components/Radio/RadioGroup.js.map +1 -0
- package/dist/components/Radio/RadioGroupItem.d.ts +17 -0
- package/dist/components/Radio/RadioGroupItem.js +117 -0
- package/dist/components/Radio/RadioGroupItem.js.map +1 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +8 -0
- package/dist/components/Radio/index.js.map +1 -0
- package/dist/components/Select/index.d.ts +19 -0
- package/dist/components/Select/index.js +206 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Slider/index.d.ts +18 -0
- package/dist/components/Slider/index.js +122 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/SortAndShow/index.d.ts +15 -0
- package/dist/components/SortAndShow/index.js +68 -0
- package/dist/components/SortAndShow/index.js.map +1 -0
- package/dist/components/SplitButton/index.d.ts +25 -0
- package/dist/components/SplitButton/index.js +224 -0
- package/dist/components/SplitButton/index.js.map +1 -0
- package/dist/components/Stats/index.d.ts +10 -0
- package/dist/components/Stats/index.js +63 -0
- package/dist/components/Stats/index.js.map +1 -0
- package/dist/components/Stepper/index.d.ts +23 -0
- package/dist/components/Stepper/index.js +142 -0
- package/dist/components/Stepper/index.js.map +1 -0
- package/dist/components/StepsIndicator/Step.d.ts +6 -0
- package/dist/components/StepsIndicator/Step.js +24 -0
- package/dist/components/StepsIndicator/Step.js.map +1 -0
- package/dist/components/StepsIndicator/StepsIndicator.d.ts +12 -0
- package/dist/components/StepsIndicator/StepsIndicator.js +67 -0
- package/dist/components/StepsIndicator/StepsIndicator.js.map +1 -0
- package/dist/components/StepsIndicator/index.d.ts +2 -0
- package/dist/components/StepsIndicator/index.js +19 -0
- package/dist/components/StepsIndicator/index.js.map +1 -0
- package/dist/components/Subnav/index.d.ts +14 -0
- package/dist/components/Subnav/index.js +94 -0
- package/dist/components/Subnav/index.js.map +1 -0
- package/dist/components/Switch/index.d.ts +4 -0
- package/dist/components/Switch/index.js +103 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Table/index.d.ts +48 -0
- package/dist/components/Table/index.js +147 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +16 -0
- package/dist/components/Tabs/index.js +168 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +13 -0
- package/dist/components/Textarea/index.js +96 -0
- package/dist/components/Textarea/index.js.map +1 -0
- package/dist/components/Toast/index.d.ts +24 -0
- package/dist/components/Toast/index.js +171 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/ToggleList/index.d.ts +20 -0
- package/dist/components/ToggleList/index.js +68 -0
- package/dist/components/ToggleList/index.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +11 -0
- package/dist/components/Tooltip/index.js +66 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/WebsiteFooter/index.d.ts +23 -0
- package/dist/components/WebsiteFooter/index.js +113 -0
- package/dist/components/WebsiteFooter/index.js.map +1 -0
- package/dist/components/WebsiteHeader/index.d.ts +21 -0
- package/dist/components/WebsiteHeader/index.js +98 -0
- package/dist/components/WebsiteHeader/index.js.map +1 -0
- package/dist/components/choice-group.d.ts +109 -0
- package/dist/components/choice-group.js +200 -0
- package/dist/components/choice-group.js.map +1 -0
- package/dist/components/index.d.ts +49 -0
- package/dist/components/index.js +66 -0
- package/dist/components/index.js.map +1 -0
- package/dist/esm/animations/index.js +17 -0
- package/dist/esm/animations/index.js.map +1 -0
- package/dist/esm/colors/accent.js +18 -0
- package/dist/esm/colors/accent.js.map +1 -0
- package/dist/esm/colors/background.js +38 -0
- package/dist/esm/colors/background.js.map +1 -0
- package/dist/esm/colors/base.js +137 -0
- package/dist/esm/colors/base.js.map +1 -0
- package/dist/esm/colors/border.js +18 -0
- package/dist/esm/colors/border.js.map +1 -0
- package/dist/esm/colors/button.js +112 -0
- package/dist/esm/colors/button.js.map +1 -0
- package/dist/esm/colors/feedback.js +29 -0
- package/dist/esm/colors/feedback.js.map +1 -0
- package/dist/esm/colors/foreground.js +37 -0
- package/dist/esm/colors/foreground.js.map +1 -0
- package/dist/esm/colors/index.js +13 -0
- package/dist/esm/colors/index.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/tailwind-base.js +31 -0
- package/dist/esm/tailwind-base.js.map +1 -0
- package/dist/esm/tailwind-plugin.js +29 -0
- package/dist/esm/tailwind-plugin.js.map +1 -0
- package/dist/esm/theme.js +55 -0
- package/dist/esm/theme.js.map +1 -0
- package/dist/global.css +552 -485
- package/dist/index.d.ts +3 -1315
- package/dist/index.js +23 -6468
- package/dist/index.js.map +1 -1
- package/dist/lib/utils.d.ts +16 -0
- package/dist/lib/utils.js +23 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/tailwind-base.js +33 -0
- package/dist/tailwind-base.js.map +1 -0
- package/dist/tailwind-plugin.js +31 -497
- package/dist/tailwind-plugin.js.map +1 -1
- package/dist/theme.js +60 -0
- package/dist/theme.js.map +1 -0
- package/package.json +8 -11
- package/dist/animations/index.mjs +0 -8
- package/dist/animations/index.mjs.map +0 -1
- package/dist/chunk-36NLQKQR.mjs +0 -22
- package/dist/chunk-36NLQKQR.mjs.map +0 -1
- package/dist/chunk-3FFF7Q7C.mjs +0 -55
- package/dist/chunk-3FFF7Q7C.mjs.map +0 -1
- package/dist/chunk-GTI4HTES.mjs +0 -386
- package/dist/chunk-GTI4HTES.mjs.map +0 -1
- package/dist/colors/index.mjs +0 -8
- package/dist/colors/index.mjs.map +0 -1
- package/dist/global.css.map +0 -1
- package/dist/index.d.mts +0 -1315
- package/dist/index.mjs +0 -6043
- package/dist/index.mjs.map +0 -1
- package/dist/tailwind-plugin.mjs +0 -67
- package/dist/tailwind-plugin.mjs.map +0 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export declare const button: {
|
|
2
|
+
primary: {
|
|
3
|
+
DEFAULT: string;
|
|
4
|
+
dark: string;
|
|
5
|
+
hover: {
|
|
6
|
+
DEFAULT: string;
|
|
7
|
+
dark: string;
|
|
8
|
+
};
|
|
9
|
+
focus: {
|
|
10
|
+
DEFAULT: string;
|
|
11
|
+
dark: string;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
DEFAULT: string;
|
|
15
|
+
dark: string;
|
|
16
|
+
};
|
|
17
|
+
selected: {
|
|
18
|
+
DEFAULT: string;
|
|
19
|
+
dark: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
secondary: {
|
|
23
|
+
DEFAULT: string;
|
|
24
|
+
dark: string;
|
|
25
|
+
hover: {
|
|
26
|
+
DEFAULT: string;
|
|
27
|
+
dark: string;
|
|
28
|
+
};
|
|
29
|
+
focus: {
|
|
30
|
+
DEFAULT: string;
|
|
31
|
+
dark: string;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
DEFAULT: string;
|
|
35
|
+
dark: string;
|
|
36
|
+
};
|
|
37
|
+
border: {
|
|
38
|
+
DEFAULT: string;
|
|
39
|
+
dark: string;
|
|
40
|
+
hover: {
|
|
41
|
+
DEFAULT: string;
|
|
42
|
+
dark: string;
|
|
43
|
+
};
|
|
44
|
+
focus: {
|
|
45
|
+
DEFAULT: string;
|
|
46
|
+
dark: string;
|
|
47
|
+
};
|
|
48
|
+
disabled: {
|
|
49
|
+
DEFAULT: string;
|
|
50
|
+
dark: string;
|
|
51
|
+
};
|
|
52
|
+
selected: {
|
|
53
|
+
DEFAULT: string;
|
|
54
|
+
dark: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
tertiary: {
|
|
59
|
+
hover: {
|
|
60
|
+
DEFAULT: string;
|
|
61
|
+
dark: string;
|
|
62
|
+
};
|
|
63
|
+
focus: {
|
|
64
|
+
DEFAULT: string;
|
|
65
|
+
dark: string;
|
|
66
|
+
};
|
|
67
|
+
selected: {
|
|
68
|
+
DEFAULT: string;
|
|
69
|
+
dark: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
success: {
|
|
73
|
+
DEFAULT: string;
|
|
74
|
+
hover: {
|
|
75
|
+
DEFAULT: string;
|
|
76
|
+
};
|
|
77
|
+
focus: {
|
|
78
|
+
DEFAULT: string;
|
|
79
|
+
};
|
|
80
|
+
disabled: {
|
|
81
|
+
DEFAULT: string;
|
|
82
|
+
dark: string;
|
|
83
|
+
};
|
|
84
|
+
selected: {
|
|
85
|
+
DEFAULT: string;
|
|
86
|
+
dark: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
danger: {
|
|
90
|
+
DEFAULT: string;
|
|
91
|
+
hover: {
|
|
92
|
+
DEFAULT: string;
|
|
93
|
+
};
|
|
94
|
+
focus: {
|
|
95
|
+
DEFAULT: string;
|
|
96
|
+
};
|
|
97
|
+
disabled: {
|
|
98
|
+
DEFAULT: string;
|
|
99
|
+
dark: string;
|
|
100
|
+
};
|
|
101
|
+
selected: {
|
|
102
|
+
DEFAULT: string;
|
|
103
|
+
dark: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.button = void 0;
|
|
4
|
+
const base_ts_1 = require("./base.js");
|
|
5
|
+
const accent_ts_1 = require("./accent.js");
|
|
6
|
+
const background_ts_1 = require("./background.js");
|
|
7
|
+
const border_ts_1 = require("./border.js");
|
|
8
|
+
const feedback_ts_1 = require("./feedback.js");
|
|
9
|
+
exports.button = {
|
|
10
|
+
primary: {
|
|
11
|
+
DEFAULT: accent_ts_1.accent.DEFAULT,
|
|
12
|
+
dark: accent_ts_1.accent.dark,
|
|
13
|
+
hover: {
|
|
14
|
+
DEFAULT: accent_ts_1.accent.hover.DEFAULT,
|
|
15
|
+
dark: accent_ts_1.accent.hover.dark
|
|
16
|
+
},
|
|
17
|
+
focus: {
|
|
18
|
+
DEFAULT: accent_ts_1.accent.focus.DEFAULT,
|
|
19
|
+
dark: accent_ts_1.accent.focus.dark
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
DEFAULT: background_ts_1.background.subtle.DEFAULT,
|
|
23
|
+
dark: background_ts_1.background.subtle.dark
|
|
24
|
+
},
|
|
25
|
+
selected: {
|
|
26
|
+
DEFAULT: base_ts_1.colors.grey['100'],
|
|
27
|
+
dark: background_ts_1.background.subtle.dark
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
secondary: {
|
|
31
|
+
DEFAULT: '#FFF',
|
|
32
|
+
dark: base_ts_1.colors.grey['900'],
|
|
33
|
+
hover: {
|
|
34
|
+
DEFAULT: background_ts_1.background.subtle.DEFAULT,
|
|
35
|
+
dark: background_ts_1.background.subtle.dark
|
|
36
|
+
},
|
|
37
|
+
focus: {
|
|
38
|
+
DEFAULT: background_ts_1.background.alt.DEFAULT,
|
|
39
|
+
dark: background_ts_1.background.alt.dark
|
|
40
|
+
},
|
|
41
|
+
disabled: {
|
|
42
|
+
DEFAULT: background_ts_1.background.subtle.DEFAULT,
|
|
43
|
+
dark: background_ts_1.background.subtle.dark
|
|
44
|
+
},
|
|
45
|
+
border: {
|
|
46
|
+
DEFAULT: border_ts_1.border.DEFAULT,
|
|
47
|
+
dark: border_ts_1.border.dark,
|
|
48
|
+
hover: {
|
|
49
|
+
DEFAULT: border_ts_1.border.hover.DEFAULT,
|
|
50
|
+
dark: border_ts_1.border.hover.dark
|
|
51
|
+
},
|
|
52
|
+
focus: {
|
|
53
|
+
DEFAULT: border_ts_1.border.DEFAULT,
|
|
54
|
+
dark: border_ts_1.border.focus.dark
|
|
55
|
+
},
|
|
56
|
+
disabled: {
|
|
57
|
+
DEFAULT: border_ts_1.border.subtle.DEFAULT,
|
|
58
|
+
dark: border_ts_1.border.subtle.dark
|
|
59
|
+
},
|
|
60
|
+
selected: {
|
|
61
|
+
DEFAULT: base_ts_1.colors.grey['100'],
|
|
62
|
+
dark: background_ts_1.background.subtle.dark
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
tertiary: {
|
|
67
|
+
hover: {
|
|
68
|
+
DEFAULT: background_ts_1.background.subtle.DEFAULT,
|
|
69
|
+
dark: background_ts_1.background.subtle.dark
|
|
70
|
+
},
|
|
71
|
+
focus: {
|
|
72
|
+
DEFAULT: background_ts_1.background.DEFAULT,
|
|
73
|
+
dark: base_ts_1.colors.blue['900']
|
|
74
|
+
},
|
|
75
|
+
selected: {
|
|
76
|
+
DEFAULT: base_ts_1.colors.grey['100'],
|
|
77
|
+
dark: background_ts_1.background.subtle.dark
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
success: {
|
|
81
|
+
DEFAULT: base_ts_1.colors.green['600'],
|
|
82
|
+
hover: {
|
|
83
|
+
DEFAULT: base_ts_1.colors.green['700']
|
|
84
|
+
},
|
|
85
|
+
focus: {
|
|
86
|
+
DEFAULT: base_ts_1.colors.green['800']
|
|
87
|
+
},
|
|
88
|
+
disabled: {
|
|
89
|
+
DEFAULT: base_ts_1.colors.grey['50'],
|
|
90
|
+
dark: background_ts_1.background.subtle.dark
|
|
91
|
+
},
|
|
92
|
+
selected: {
|
|
93
|
+
DEFAULT: base_ts_1.colors.grey['100'],
|
|
94
|
+
dark: background_ts_1.background.subtle.dark
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
danger: {
|
|
98
|
+
DEFAULT: feedback_ts_1.feedback.error.DEFAULT,
|
|
99
|
+
hover: {
|
|
100
|
+
DEFAULT: base_ts_1.colors.red['700']
|
|
101
|
+
},
|
|
102
|
+
focus: {
|
|
103
|
+
DEFAULT: base_ts_1.colors.red['800']
|
|
104
|
+
},
|
|
105
|
+
disabled: {
|
|
106
|
+
DEFAULT: base_ts_1.colors.grey['50'],
|
|
107
|
+
dark: background_ts_1.background.subtle.dark
|
|
108
|
+
},
|
|
109
|
+
selected: {
|
|
110
|
+
DEFAULT: base_ts_1.colors.grey['100'],
|
|
111
|
+
dark: background_ts_1.background.subtle.dark
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/colors/button.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feedback colours named for the role they play rather than the hue they wear,
|
|
3
|
+
* so a control reaches for them by what it means, not what it looks like.
|
|
4
|
+
*
|
|
5
|
+
* `success`, `warning`, `danger` and `error` map to the green, yellow, orange
|
|
6
|
+
* and red ramps respectively. Renaming them spells the utility the variant asks
|
|
7
|
+
* for (`border-feedback-success`, `text-feedback-error`) instead of one that
|
|
8
|
+
* only describes the swatch under it.
|
|
9
|
+
*/
|
|
10
|
+
export declare const feedback: {
|
|
11
|
+
success: {
|
|
12
|
+
DEFAULT: string;
|
|
13
|
+
dark: string;
|
|
14
|
+
};
|
|
15
|
+
warning: {
|
|
16
|
+
DEFAULT: string;
|
|
17
|
+
dark: string;
|
|
18
|
+
};
|
|
19
|
+
danger: {
|
|
20
|
+
DEFAULT: string;
|
|
21
|
+
dark: string;
|
|
22
|
+
};
|
|
23
|
+
error: {
|
|
24
|
+
DEFAULT: string;
|
|
25
|
+
dark: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.feedback = void 0;
|
|
4
|
+
const base_ts_1 = require("./base.js");
|
|
5
|
+
/**
|
|
6
|
+
* Feedback colours named for the role they play rather than the hue they wear,
|
|
7
|
+
* so a control reaches for them by what it means, not what it looks like.
|
|
8
|
+
*
|
|
9
|
+
* `success`, `warning`, `danger` and `error` map to the green, yellow, orange
|
|
10
|
+
* and red ramps respectively. Renaming them spells the utility the variant asks
|
|
11
|
+
* for (`border-feedback-success`, `text-feedback-error`) instead of one that
|
|
12
|
+
* only describes the swatch under it.
|
|
13
|
+
*/
|
|
14
|
+
exports.feedback = {
|
|
15
|
+
success: {
|
|
16
|
+
DEFAULT: base_ts_1.colors.green['500'],
|
|
17
|
+
dark: base_ts_1.colors.green['300']
|
|
18
|
+
},
|
|
19
|
+
warning: {
|
|
20
|
+
DEFAULT: base_ts_1.colors.yellow['300'],
|
|
21
|
+
dark: base_ts_1.colors.yellow['300']
|
|
22
|
+
},
|
|
23
|
+
danger: {
|
|
24
|
+
DEFAULT: base_ts_1.colors.orange['400'],
|
|
25
|
+
dark: base_ts_1.colors.orange['300']
|
|
26
|
+
},
|
|
27
|
+
error: {
|
|
28
|
+
DEFAULT: base_ts_1.colors.red['700'],
|
|
29
|
+
dark: base_ts_1.colors.red['300']
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=feedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../src/colors/feedback.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC;;;;;;;;GAQG;AACU,QAAA,QAAQ,GAAG;IACtB,OAAO,EAAE;QACP,OAAO,EAAE,gBAAM,CAAC,KAAK,CAAC,KAAK,CAAC;QAC5B,IAAI,EAAE,gBAAM,CAAC,KAAK,CAAC,KAAK,CAAC;KAC1B;IACD,OAAO,EAAE;QACP,OAAO,EAAE,gBAAM,CAAC,MAAM,CAAC,KAAK,CAAC;QAC7B,IAAI,EAAE,gBAAM,CAAC,MAAM,CAAC,KAAK,CAAC;KAC3B;IACD,MAAM,EAAE;QACN,OAAO,EAAE,gBAAM,CAAC,MAAM,CAAC,KAAK,CAAC;QAC7B,IAAI,EAAE,gBAAM,CAAC,MAAM,CAAC,KAAK,CAAC;KAC3B;IACD,KAAK,EAAE;QACL,OAAO,EAAE,gBAAM,CAAC,GAAG,CAAC,KAAK,CAAC;QAC1B,IAAI,EAAE,gBAAM,CAAC,GAAG,CAAC,KAAK,CAAC;KACxB;CACF,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text colours.
|
|
3
|
+
*
|
|
4
|
+
* `DEFAULT` and `muted` are the body-text tokens: both clear WCAG AA's 4.5:1
|
|
5
|
+
* on `background`, `background-alt` and `background-subtle`, in both modes
|
|
6
|
+
* (`background-inverse` takes `inverse`). `muted` sits at
|
|
7
|
+
* `grey-600` rather than `grey-500` because `grey-500` on `background-alt`
|
|
8
|
+
* (`grey-100`) is 4.39:1 — the pair `SelectTrigger` renders for its
|
|
9
|
+
* placeholder, and `Pagination` for its page numbers.
|
|
10
|
+
*
|
|
11
|
+
* `subtle` is not a body-text token. At `grey-500` it clears 4.5:1 on
|
|
12
|
+
* `background` (4.83:1) and `background-subtle` (4.63:1) but not on
|
|
13
|
+
* `background-alt` (4.39:1), and its dark half is 2.13:1 on
|
|
14
|
+
* `background-alt-dark`. Darkening it again would land it on `grey-600` and
|
|
15
|
+
* collapse it into `muted`, so it stays where it is and is scoped to the uses
|
|
16
|
+
* 1.4.3 exempts or that only owe 3:1 under 1.4.11: disabled control text
|
|
17
|
+
* (Button, ButtonGroup, Chip), Switch's track, and StepsIndicator's dots. Text
|
|
18
|
+
* that a user reads takes `muted`.
|
|
19
|
+
*/
|
|
20
|
+
export declare const foreground: {
|
|
21
|
+
DEFAULT: string;
|
|
22
|
+
dark: string;
|
|
23
|
+
muted: {
|
|
24
|
+
DEFAULT: string;
|
|
25
|
+
dark: string;
|
|
26
|
+
};
|
|
27
|
+
subtle: {
|
|
28
|
+
DEFAULT: string;
|
|
29
|
+
dark: string;
|
|
30
|
+
};
|
|
31
|
+
inverse: {
|
|
32
|
+
DEFAULT: string;
|
|
33
|
+
dark: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.foreground = void 0;
|
|
4
|
+
const base_ts_1 = require("./base.js");
|
|
5
|
+
/**
|
|
6
|
+
* Text colours.
|
|
7
|
+
*
|
|
8
|
+
* `DEFAULT` and `muted` are the body-text tokens: both clear WCAG AA's 4.5:1
|
|
9
|
+
* on `background`, `background-alt` and `background-subtle`, in both modes
|
|
10
|
+
* (`background-inverse` takes `inverse`). `muted` sits at
|
|
11
|
+
* `grey-600` rather than `grey-500` because `grey-500` on `background-alt`
|
|
12
|
+
* (`grey-100`) is 4.39:1 — the pair `SelectTrigger` renders for its
|
|
13
|
+
* placeholder, and `Pagination` for its page numbers.
|
|
14
|
+
*
|
|
15
|
+
* `subtle` is not a body-text token. At `grey-500` it clears 4.5:1 on
|
|
16
|
+
* `background` (4.83:1) and `background-subtle` (4.63:1) but not on
|
|
17
|
+
* `background-alt` (4.39:1), and its dark half is 2.13:1 on
|
|
18
|
+
* `background-alt-dark`. Darkening it again would land it on `grey-600` and
|
|
19
|
+
* collapse it into `muted`, so it stays where it is and is scoped to the uses
|
|
20
|
+
* 1.4.3 exempts or that only owe 3:1 under 1.4.11: disabled control text
|
|
21
|
+
* (Button, ButtonGroup, Chip), Switch's track, and StepsIndicator's dots. Text
|
|
22
|
+
* that a user reads takes `muted`.
|
|
23
|
+
*/
|
|
24
|
+
exports.foreground = {
|
|
25
|
+
DEFAULT: base_ts_1.colors.grey['900'],
|
|
26
|
+
dark: '#FFF',
|
|
27
|
+
muted: {
|
|
28
|
+
DEFAULT: base_ts_1.colors.grey['600'],
|
|
29
|
+
dark: base_ts_1.colors.grey['300']
|
|
30
|
+
},
|
|
31
|
+
subtle: {
|
|
32
|
+
DEFAULT: base_ts_1.colors.grey['500'],
|
|
33
|
+
dark: base_ts_1.colors.grey['500']
|
|
34
|
+
},
|
|
35
|
+
inverse: {
|
|
36
|
+
DEFAULT: '#FFF',
|
|
37
|
+
dark: base_ts_1.colors.grey['900']
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=foreground.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foreground.js","sourceRoot":"","sources":["../../src/colors/foreground.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,UAAU,GAAG;IACxB,OAAO,EAAE,gBAAM,CAAC,IAAI,CAAC,KAAK,CAAC;IAC3B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL,OAAO,EAAE,gBAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QAC3B,IAAI,EAAE,gBAAM,CAAC,IAAI,CAAC,KAAK,CAAC;KACzB;IACD,MAAM,EAAE;QACN,OAAO,EAAE,gBAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QAC3B,IAAI,EAAE,gBAAM,CAAC,IAAI,CAAC,KAAK,CAAC;KACzB;IACD,OAAO,EAAE;QACP,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,gBAAM,CAAC,IAAI,CAAC,KAAK,CAAC;KACzB;CACF,CAAA"}
|