@nearform/quantum 1.8.0 → 1.9.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 +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 +30 -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
package/dist/colors/index.js
CHANGED
|
@@ -1,418 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __export = (target, all) => {
|
|
21
|
-
for (var name in all)
|
|
22
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
-
};
|
|
24
|
-
var __copyProps = (to, from, except, desc) => {
|
|
25
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
-
for (let key of __getOwnPropNames(from))
|
|
27
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
-
}
|
|
30
|
-
return to;
|
|
31
|
-
};
|
|
32
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
-
|
|
34
|
-
// src/colors/index.ts
|
|
35
|
-
var colors_exports = {};
|
|
36
|
-
__export(colors_exports, {
|
|
37
|
-
default: () => colors_default
|
|
38
|
-
});
|
|
39
|
-
module.exports = __toCommonJS(colors_exports);
|
|
40
|
-
|
|
41
|
-
// src/colors/base.ts
|
|
42
|
-
var colors = {
|
|
43
|
-
grey: {
|
|
44
|
-
50: "#F9FAFB",
|
|
45
|
-
100: "#F3F4F6",
|
|
46
|
-
200: "#E5E7EB",
|
|
47
|
-
300: "#D1D5DB",
|
|
48
|
-
400: "#9CA3AF",
|
|
49
|
-
500: "#6B7280",
|
|
50
|
-
600: "#4B5563",
|
|
51
|
-
700: "#374151",
|
|
52
|
-
800: "#1F2A37",
|
|
53
|
-
900: "#111928"
|
|
54
|
-
},
|
|
55
|
-
blue: {
|
|
56
|
-
50: "#F5FAFF",
|
|
57
|
-
100: "#E1EFFE",
|
|
58
|
-
200: "#C3DDFD",
|
|
59
|
-
300: "#A4CAFE",
|
|
60
|
-
400: "#76A9FA",
|
|
61
|
-
500: "#3F83F8",
|
|
62
|
-
600: "#2165E3",
|
|
63
|
-
700: "#1A56DB",
|
|
64
|
-
800: "#1E429F",
|
|
65
|
-
900: "#000E38"
|
|
66
|
-
},
|
|
67
|
-
red: {
|
|
68
|
-
50: "#FDF2F2",
|
|
69
|
-
100: "#FDE8E8",
|
|
70
|
-
200: "#FBD5D5",
|
|
71
|
-
300: "#F8B4B4",
|
|
72
|
-
400: "#F98080",
|
|
73
|
-
500: "#F05252",
|
|
74
|
-
600: "#E02424",
|
|
75
|
-
700: "#C81E1E",
|
|
76
|
-
800: "#9B1C1C",
|
|
77
|
-
900: "#771D1D"
|
|
78
|
-
},
|
|
79
|
-
orange: {
|
|
80
|
-
50: "#FFF8F1",
|
|
81
|
-
100: "#FEECDC",
|
|
82
|
-
200: "#FCD9BD",
|
|
83
|
-
300: "#FDBA8C",
|
|
84
|
-
400: "#FF8A4C",
|
|
85
|
-
500: "#FF5A1F",
|
|
86
|
-
600: "#D03801",
|
|
87
|
-
700: "#B43403",
|
|
88
|
-
800: "#8A2C0D",
|
|
89
|
-
900: "#771D1D"
|
|
90
|
-
},
|
|
91
|
-
yellow: {
|
|
92
|
-
50: "#FDFDEA",
|
|
93
|
-
100: "#FDF6B2",
|
|
94
|
-
200: "#FCE96A",
|
|
95
|
-
300: "#FACA15",
|
|
96
|
-
400: "#E3A008",
|
|
97
|
-
500: "#C27803",
|
|
98
|
-
600: "#9F580A",
|
|
99
|
-
700: "#8E4B10",
|
|
100
|
-
800: "#723B13",
|
|
101
|
-
900: "#633112"
|
|
102
|
-
},
|
|
103
|
-
green: {
|
|
104
|
-
50: "#F3FAF7",
|
|
105
|
-
100: "#DEF7EC",
|
|
106
|
-
200: "#BCF0DA",
|
|
107
|
-
300: "#84E1BC",
|
|
108
|
-
400: "#31C48D",
|
|
109
|
-
500: "#0E9F6E",
|
|
110
|
-
600: "#057A55",
|
|
111
|
-
700: "#046C4E",
|
|
112
|
-
800: "#03543F",
|
|
113
|
-
900: "#014737"
|
|
114
|
-
},
|
|
115
|
-
teal: {
|
|
116
|
-
50: "#EDFAFA",
|
|
117
|
-
100: "#D5F5F6",
|
|
118
|
-
200: "#AFECEF",
|
|
119
|
-
300: "#7EDCE2",
|
|
120
|
-
400: "#16BDCA",
|
|
121
|
-
500: "#0694A2",
|
|
122
|
-
600: "#047481",
|
|
123
|
-
700: "#036672",
|
|
124
|
-
800: "#05505C",
|
|
125
|
-
900: "#014451"
|
|
126
|
-
},
|
|
127
|
-
indigo: {
|
|
128
|
-
50: "#F0F5FF",
|
|
129
|
-
100: "#E5EDFF",
|
|
130
|
-
200: "#CDDBFE",
|
|
131
|
-
300: "#B4C6FC",
|
|
132
|
-
400: "#8DA2FB",
|
|
133
|
-
500: "#6875F5",
|
|
134
|
-
600: "#5850EC",
|
|
135
|
-
700: "#5145CD",
|
|
136
|
-
800: "#42389D",
|
|
137
|
-
900: "#362F78"
|
|
138
|
-
},
|
|
139
|
-
purple: {
|
|
140
|
-
50: "#F6F5FF",
|
|
141
|
-
100: "#EDEBFE",
|
|
142
|
-
200: "#DCD7FE",
|
|
143
|
-
300: "#CABFFD",
|
|
144
|
-
400: "#AC94FA",
|
|
145
|
-
500: "#8950FF",
|
|
146
|
-
600: "#7E3AF2",
|
|
147
|
-
700: "#6C2BD9",
|
|
148
|
-
800: "#5521B5",
|
|
149
|
-
900: "#4A1D96"
|
|
150
|
-
},
|
|
151
|
-
pink: {
|
|
152
|
-
50: "#FFF6F9",
|
|
153
|
-
100: "#FFF1F5",
|
|
154
|
-
200: "#FFE8EE",
|
|
155
|
-
300: "#FFD9E3",
|
|
156
|
-
400: "#FFBFD0",
|
|
157
|
-
500: "#FF9DB7",
|
|
158
|
-
600: "#FB7A9C",
|
|
159
|
-
700: "#D95477",
|
|
160
|
-
800: "#A02042",
|
|
161
|
-
900: "#731837"
|
|
162
|
-
},
|
|
163
|
-
brandMidnight: {
|
|
164
|
-
10: "#f4f8fa",
|
|
165
|
-
30: "#97a1b8",
|
|
166
|
-
50: "#526288",
|
|
167
|
-
80: "#0c3d60",
|
|
168
|
-
100: "#000e38"
|
|
169
|
-
},
|
|
170
|
-
brandGreen: {
|
|
171
|
-
10: "#e5fcf5",
|
|
172
|
-
30: "#b2f7e1",
|
|
173
|
-
50: "#78edc4",
|
|
174
|
-
80: "#32ebae",
|
|
175
|
-
100: "#03e5a4"
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
// src/colors/foreground.ts
|
|
180
|
-
var foreground = {
|
|
181
|
-
DEFAULT: colors.grey["900"],
|
|
182
|
-
dark: "#FFF",
|
|
183
|
-
muted: {
|
|
184
|
-
DEFAULT: colors.grey["600"],
|
|
185
|
-
dark: colors.grey["300"]
|
|
186
|
-
},
|
|
187
|
-
subtle: {
|
|
188
|
-
DEFAULT: colors.grey["500"],
|
|
189
|
-
dark: colors.grey["500"]
|
|
190
|
-
},
|
|
191
|
-
inverse: {
|
|
192
|
-
DEFAULT: "#FFF",
|
|
193
|
-
dark: colors.grey["900"]
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
// src/colors/background.ts
|
|
198
|
-
var background = {
|
|
199
|
-
DEFAULT: "#FFF",
|
|
200
|
-
dark: "#000",
|
|
201
|
-
alt: {
|
|
202
|
-
DEFAULT: colors.grey["100"],
|
|
203
|
-
dark: colors.grey["700"]
|
|
204
|
-
},
|
|
205
|
-
subtle: {
|
|
206
|
-
DEFAULT: colors.grey["50"],
|
|
207
|
-
dark: colors.grey["800"]
|
|
208
|
-
},
|
|
209
|
-
/**
|
|
210
|
-
* The resting fill of a container that sits on the page: a card, a popover,
|
|
211
|
-
* a table body, a dialog panel.
|
|
212
|
-
*
|
|
213
|
-
* It exists because `background` cannot play that role in both modes. In
|
|
214
|
-
* light the page is `background-alt` and `background` is a step off it, so a
|
|
215
|
-
* surface painted `background` reads as raised (1.10:1). In dark the page is
|
|
216
|
-
* `background` itself, so the same class paints the surface the colour of
|
|
217
|
-
* the page it sits on - 1.00:1, a container that is only a container because
|
|
218
|
-
* of its border.
|
|
219
|
-
*
|
|
220
|
-
* So the light value is `background`'s, unchanged, and the dark value is one
|
|
221
|
-
* step up from the page. That keeps the step `subtle` adds for a header or a
|
|
222
|
-
* zebra stripe (1.21:1 above this, against light's 1.05:1) and leaves `alt`
|
|
223
|
-
* free for the selected row, which would otherwise collide with the stripes.
|
|
224
|
-
*/
|
|
225
|
-
surface: {
|
|
226
|
-
DEFAULT: "#FFF",
|
|
227
|
-
dark: colors.grey["900"]
|
|
228
|
-
},
|
|
229
|
-
inverse: {
|
|
230
|
-
DEFAULT: colors.grey["900"],
|
|
231
|
-
dark: "#FFF"
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
// src/colors/accent.ts
|
|
236
|
-
var accent = {
|
|
237
|
-
DEFAULT: colors.brandMidnight["100"],
|
|
238
|
-
dark: colors.brandMidnight["10"],
|
|
239
|
-
alt: {
|
|
240
|
-
DEFAULT: colors.brandMidnight["80"],
|
|
241
|
-
dark: colors.grey["600"]
|
|
242
|
-
},
|
|
243
|
-
hover: {
|
|
244
|
-
DEFAULT: colors.brandMidnight["80"],
|
|
245
|
-
dark: colors.brandMidnight["30"]
|
|
246
|
-
},
|
|
247
|
-
focus: {
|
|
248
|
-
DEFAULT: colors.brandMidnight["100"],
|
|
249
|
-
dark: colors.grey["100"]
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
// src/colors/border.ts
|
|
254
|
-
var border = {
|
|
255
|
-
DEFAULT: colors.brandMidnight["30"],
|
|
256
|
-
dark: colors.brandMidnight["50"],
|
|
257
|
-
hover: {
|
|
258
|
-
DEFAULT: colors.brandMidnight["50"],
|
|
259
|
-
dark: colors.brandMidnight["80"]
|
|
260
|
-
},
|
|
261
|
-
focus: {
|
|
262
|
-
DEFAULT: colors.brandMidnight["80"],
|
|
263
|
-
dark: colors.grey["400"]
|
|
264
|
-
},
|
|
265
|
-
subtle: {
|
|
266
|
-
DEFAULT: colors.brandMidnight["10"],
|
|
267
|
-
dark: colors.grey["700"]
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
// src/colors/feedback.ts
|
|
272
|
-
var feedback = {
|
|
273
|
-
success: {
|
|
274
|
-
DEFAULT: colors.green["500"],
|
|
275
|
-
dark: colors.green["300"]
|
|
276
|
-
},
|
|
277
|
-
warning: {
|
|
278
|
-
DEFAULT: colors.yellow["300"],
|
|
279
|
-
dark: colors.yellow["300"]
|
|
280
|
-
},
|
|
281
|
-
danger: {
|
|
282
|
-
DEFAULT: colors.orange["400"],
|
|
283
|
-
dark: colors.orange["300"]
|
|
284
|
-
},
|
|
285
|
-
error: {
|
|
286
|
-
DEFAULT: colors.red["700"],
|
|
287
|
-
dark: colors.red["300"]
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
// src/colors/button.ts
|
|
292
|
-
var button = {
|
|
293
|
-
primary: {
|
|
294
|
-
DEFAULT: accent.DEFAULT,
|
|
295
|
-
dark: accent.dark,
|
|
296
|
-
hover: {
|
|
297
|
-
DEFAULT: accent.hover.DEFAULT,
|
|
298
|
-
dark: accent.hover.dark
|
|
299
|
-
},
|
|
300
|
-
focus: {
|
|
301
|
-
DEFAULT: accent.focus.DEFAULT,
|
|
302
|
-
dark: accent.focus.dark
|
|
303
|
-
},
|
|
304
|
-
disabled: {
|
|
305
|
-
DEFAULT: background.subtle.DEFAULT,
|
|
306
|
-
dark: background.subtle.dark
|
|
307
|
-
},
|
|
308
|
-
selected: {
|
|
309
|
-
DEFAULT: colors.grey["100"],
|
|
310
|
-
dark: background.subtle.dark
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
secondary: {
|
|
314
|
-
DEFAULT: "#FFF",
|
|
315
|
-
dark: colors.grey["900"],
|
|
316
|
-
hover: {
|
|
317
|
-
DEFAULT: background.subtle.DEFAULT,
|
|
318
|
-
dark: background.subtle.dark
|
|
319
|
-
},
|
|
320
|
-
focus: {
|
|
321
|
-
DEFAULT: background.alt.DEFAULT,
|
|
322
|
-
dark: background.alt.dark
|
|
323
|
-
},
|
|
324
|
-
disabled: {
|
|
325
|
-
DEFAULT: background.subtle.DEFAULT,
|
|
326
|
-
dark: background.subtle.dark
|
|
327
|
-
},
|
|
328
|
-
border: {
|
|
329
|
-
DEFAULT: border.DEFAULT,
|
|
330
|
-
dark: border.dark,
|
|
331
|
-
hover: {
|
|
332
|
-
DEFAULT: border.hover.DEFAULT,
|
|
333
|
-
dark: border.hover.dark
|
|
334
|
-
},
|
|
335
|
-
focus: {
|
|
336
|
-
DEFAULT: border.DEFAULT,
|
|
337
|
-
dark: border.focus.dark
|
|
338
|
-
},
|
|
339
|
-
disabled: {
|
|
340
|
-
DEFAULT: border.subtle.DEFAULT,
|
|
341
|
-
dark: border.subtle.dark
|
|
342
|
-
},
|
|
343
|
-
selected: {
|
|
344
|
-
DEFAULT: colors.grey["100"],
|
|
345
|
-
dark: background.subtle.dark
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
tertiary: {
|
|
350
|
-
hover: {
|
|
351
|
-
DEFAULT: background.subtle.DEFAULT,
|
|
352
|
-
dark: background.subtle.dark
|
|
353
|
-
},
|
|
354
|
-
focus: {
|
|
355
|
-
DEFAULT: background.DEFAULT,
|
|
356
|
-
dark: colors.blue["900"]
|
|
357
|
-
},
|
|
358
|
-
selected: {
|
|
359
|
-
DEFAULT: colors.grey["100"],
|
|
360
|
-
dark: background.subtle.dark
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
success: {
|
|
364
|
-
DEFAULT: colors.green["600"],
|
|
365
|
-
hover: {
|
|
366
|
-
DEFAULT: colors.green["700"]
|
|
367
|
-
},
|
|
368
|
-
focus: {
|
|
369
|
-
DEFAULT: colors.green["800"]
|
|
370
|
-
},
|
|
371
|
-
disabled: {
|
|
372
|
-
DEFAULT: colors.grey["50"],
|
|
373
|
-
dark: background.subtle.dark
|
|
374
|
-
},
|
|
375
|
-
selected: {
|
|
376
|
-
DEFAULT: colors.grey["100"],
|
|
377
|
-
dark: background.subtle.dark
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
danger: {
|
|
381
|
-
DEFAULT: feedback.error.DEFAULT,
|
|
382
|
-
hover: {
|
|
383
|
-
DEFAULT: colors.red["700"]
|
|
384
|
-
},
|
|
385
|
-
focus: {
|
|
386
|
-
DEFAULT: colors.red["800"]
|
|
387
|
-
},
|
|
388
|
-
disabled: {
|
|
389
|
-
DEFAULT: colors.grey["50"],
|
|
390
|
-
dark: background.subtle.dark
|
|
391
|
-
},
|
|
392
|
-
selected: {
|
|
393
|
-
DEFAULT: colors.grey["100"],
|
|
394
|
-
dark: background.subtle.dark
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
// src/colors/index.ts
|
|
400
|
-
var colors_default = __spreadValues({
|
|
401
|
-
transparent: "transparent",
|
|
402
|
-
current: "currentColor",
|
|
403
|
-
primary: colors.brandMidnight,
|
|
404
|
-
secondary: colors.brandGreen,
|
|
405
|
-
foreground,
|
|
406
|
-
background,
|
|
407
|
-
accent,
|
|
408
|
-
border,
|
|
409
|
-
feedback,
|
|
410
|
-
button,
|
|
411
|
-
white: {
|
|
412
|
-
DEFAULT: "#fff"
|
|
413
|
-
},
|
|
414
|
-
black: {
|
|
415
|
-
DEFAULT: "#000"
|
|
416
|
-
}
|
|
417
|
-
}, colors);
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const base_ts_1 = require("./base.js");
|
|
4
|
+
const foreground_ts_1 = require("./foreground.js");
|
|
5
|
+
const background_ts_1 = require("./background.js");
|
|
6
|
+
const button_ts_1 = require("./button.js");
|
|
7
|
+
const accent_ts_1 = require("./accent.js");
|
|
8
|
+
const border_ts_1 = require("./border.js");
|
|
9
|
+
const feedback_ts_1 = require("./feedback.js");
|
|
10
|
+
exports.default = Object.assign({ transparent: 'transparent', current: 'currentColor', primary: base_ts_1.colors.brandMidnight, secondary: base_ts_1.colors.brandGreen, foreground: foreground_ts_1.foreground, background: background_ts_1.background, accent: accent_ts_1.accent, border: border_ts_1.border, feedback: feedback_ts_1.feedback, button: button_ts_1.button, white: {
|
|
11
|
+
DEFAULT: '#fff'
|
|
12
|
+
}, black: {
|
|
13
|
+
DEFAULT: '#000'
|
|
14
|
+
} }, base_ts_1.colors);
|
|
418
15
|
//# sourceMappingURL=index.js.map
|
package/dist/colors/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/colors/index.ts","../../src/colors/base.ts","../../src/colors/foreground.ts","../../src/colors/background.ts","../../src/colors/accent.ts","../../src/colors/border.ts","../../src/colors/feedback.ts","../../src/colors/button.ts"],"sourcesContent":["import { colors } from './base'\nimport { foreground } from './foreground'\nimport { background } from './background'\nimport { button } from './button'\nimport { accent } from './accent'\nimport { border } from './border'\nimport { feedback } from './feedback'\n\nexport default {\n transparent: 'transparent',\n current: 'currentColor',\n primary: colors.brandMidnight,\n secondary: colors.brandGreen,\n foreground: foreground,\n background: background,\n accent: accent,\n border: border,\n feedback: feedback,\n button: button,\n white: {\n DEFAULT: '#fff'\n },\n black: {\n DEFAULT: '#000'\n },\n ...colors\n}\n","export const colors = {\n grey: {\n 50: '#F9FAFB',\n 100: '#F3F4F6',\n 200: '#E5E7EB',\n 300: '#D1D5DB',\n 400: '#9CA3AF',\n 500: '#6B7280',\n 600: '#4B5563',\n 700: '#374151',\n 800: '#1F2A37',\n 900: '#111928'\n },\n blue: {\n 50: '#F5FAFF',\n 100: '#E1EFFE',\n 200: '#C3DDFD',\n 300: '#A4CAFE',\n 400: '#76A9FA',\n 500: '#3F83F8',\n 600: '#2165E3',\n 700: '#1A56DB',\n 800: '#1E429F',\n 900: '#000E38'\n },\n red: {\n 50: '#FDF2F2',\n 100: '#FDE8E8',\n 200: '#FBD5D5',\n 300: '#F8B4B4',\n 400: '#F98080',\n 500: '#F05252',\n 600: '#E02424',\n 700: '#C81E1E',\n 800: '#9B1C1C',\n 900: '#771D1D'\n },\n orange: {\n 50: '#FFF8F1',\n 100: '#FEECDC',\n 200: '#FCD9BD',\n 300: '#FDBA8C',\n 400: '#FF8A4C',\n 500: '#FF5A1F',\n 600: '#D03801',\n 700: '#B43403',\n 800: '#8A2C0D',\n 900: '#771D1D'\n },\n yellow: {\n 50: '#FDFDEA',\n 100: '#FDF6B2',\n 200: '#FCE96A',\n 300: '#FACA15',\n 400: '#E3A008',\n 500: '#C27803',\n 600: '#9F580A',\n 700: '#8E4B10',\n 800: '#723B13',\n 900: '#633112'\n },\n green: {\n 50: '#F3FAF7',\n 100: '#DEF7EC',\n 200: '#BCF0DA',\n 300: '#84E1BC',\n 400: '#31C48D',\n 500: '#0E9F6E',\n 600: '#057A55',\n 700: '#046C4E',\n 800: '#03543F',\n 900: '#014737'\n },\n teal: {\n 50: '#EDFAFA',\n 100: '#D5F5F6',\n 200: '#AFECEF',\n 300: '#7EDCE2',\n 400: '#16BDCA',\n 500: '#0694A2',\n 600: '#047481',\n 700: '#036672',\n 800: '#05505C',\n 900: '#014451'\n },\n indigo: {\n 50: '#F0F5FF',\n 100: '#E5EDFF',\n 200: '#CDDBFE',\n 300: '#B4C6FC',\n 400: '#8DA2FB',\n 500: '#6875F5',\n 600: '#5850EC',\n 700: '#5145CD',\n 800: '#42389D',\n 900: '#362F78'\n },\n purple: {\n 50: '#F6F5FF',\n 100: '#EDEBFE',\n 200: '#DCD7FE',\n 300: '#CABFFD',\n 400: '#AC94FA',\n 500: '#8950FF',\n 600: '#7E3AF2',\n 700: '#6C2BD9',\n 800: '#5521B5',\n 900: '#4A1D96'\n },\n pink: {\n 50: '#FFF6F9',\n 100: '#FFF1F5',\n 200: '#FFE8EE',\n 300: '#FFD9E3',\n 400: '#FFBFD0',\n 500: '#FF9DB7',\n 600: '#FB7A9C',\n 700: '#D95477',\n 800: '#A02042',\n 900: '#731837'\n },\n brandMidnight: {\n 10: '#f4f8fa',\n 30: '#97a1b8',\n 50: '#526288',\n 80: '#0c3d60',\n 100: '#000e38'\n },\n brandGreen: {\n 10: '#e5fcf5',\n 30: '#b2f7e1',\n 50: '#78edc4',\n 80: '#32ebae',\n 100: '#03e5a4'\n }\n}\n","import { colors } from './base'\n\n/**\n * Text colours.\n *\n * `DEFAULT` and `muted` are the body-text tokens: both clear WCAG AA's 4.5:1\n * on `background`, `background-alt` and `background-subtle`, in both modes\n * (`background-inverse` takes `inverse`). `muted` sits at\n * `grey-600` rather than `grey-500` because `grey-500` on `background-alt`\n * (`grey-100`) is 4.39:1 — the pair `SelectTrigger` renders for its\n * placeholder, and `Pagination` for its page numbers.\n *\n * `subtle` is not a body-text token. At `grey-500` it clears 4.5:1 on\n * `background` (4.83:1) and `background-subtle` (4.63:1) but not on\n * `background-alt` (4.39:1), and its dark half is 2.13:1 on\n * `background-alt-dark`. Darkening it again would land it on `grey-600` and\n * collapse it into `muted`, so it stays where it is and is scoped to the uses\n * 1.4.3 exempts or that only owe 3:1 under 1.4.11: disabled control text\n * (Button, ButtonGroup, Chip), Switch's track, and StepsIndicator's dots. Text\n * that a user reads takes `muted`.\n */\nexport const foreground = {\n DEFAULT: colors.grey['900'],\n dark: '#FFF',\n muted: {\n DEFAULT: colors.grey['600'],\n dark: colors.grey['300']\n },\n subtle: {\n DEFAULT: colors.grey['500'],\n dark: colors.grey['500']\n },\n inverse: {\n DEFAULT: '#FFF',\n dark: colors.grey['900']\n }\n}\n","import { colors } from './base'\n\nexport const background = {\n DEFAULT: '#FFF',\n dark: '#000',\n alt: {\n DEFAULT: colors.grey['100'],\n dark: colors.grey['700']\n },\n subtle: {\n DEFAULT: colors.grey['50'],\n dark: colors.grey['800']\n },\n /**\n * The resting fill of a container that sits on the page: a card, a popover,\n * a table body, a dialog panel.\n *\n * It exists because `background` cannot play that role in both modes. In\n * light the page is `background-alt` and `background` is a step off it, so a\n * surface painted `background` reads as raised (1.10:1). In dark the page is\n * `background` itself, so the same class paints the surface the colour of\n * the page it sits on - 1.00:1, a container that is only a container because\n * of its border.\n *\n * So the light value is `background`'s, unchanged, and the dark value is one\n * step up from the page. That keeps the step `subtle` adds for a header or a\n * zebra stripe (1.21:1 above this, against light's 1.05:1) and leaves `alt`\n * free for the selected row, which would otherwise collide with the stripes.\n */\n surface: {\n DEFAULT: '#FFF',\n dark: colors.grey['900']\n },\n inverse: {\n DEFAULT: colors.grey['900'],\n dark: '#FFF'\n }\n}\n","import { colors } from './base'\n\nexport const accent = {\n DEFAULT: colors.brandMidnight['100'],\n dark: colors.brandMidnight['10'],\n alt: {\n DEFAULT: colors.brandMidnight['80'],\n dark: colors.grey['600']\n },\n hover: {\n DEFAULT: colors.brandMidnight['80'],\n dark: colors.brandMidnight['30']\n },\n focus: {\n DEFAULT: colors.brandMidnight['100'],\n dark: colors.grey['100']\n }\n}\n","import { colors } from './base'\n\nexport const border = {\n DEFAULT: colors.brandMidnight['30'],\n dark: colors.brandMidnight['50'],\n hover: {\n DEFAULT: colors.brandMidnight['50'],\n dark: colors.brandMidnight['80']\n },\n focus: {\n DEFAULT: colors.brandMidnight['80'],\n dark: colors.grey['400']\n },\n subtle: {\n DEFAULT: colors.brandMidnight['10'],\n dark: colors.grey['700']\n }\n}\n","import { colors } from './base'\n\n/**\n * Feedback colours named for the role they play rather than the hue they wear,\n * so a control reaches for them by what it means, not what it looks like.\n *\n * `success`, `warning`, `danger` and `error` map to the green, yellow, orange\n * and red ramps respectively. Renaming them spells the utility the variant asks\n * for (`border-feedback-success`, `text-feedback-error`) instead of one that\n * only describes the swatch under it.\n */\nexport const feedback = {\n success: {\n DEFAULT: colors.green['500'],\n dark: colors.green['300']\n },\n warning: {\n DEFAULT: colors.yellow['300'],\n dark: colors.yellow['300']\n },\n danger: {\n DEFAULT: colors.orange['400'],\n dark: colors.orange['300']\n },\n error: {\n DEFAULT: colors.red['700'],\n dark: colors.red['300']\n }\n}\n","import { colors } from './base'\nimport { accent } from './accent'\nimport { background } from './background'\nimport { border } from './border'\nimport { feedback } from './feedback'\n\nexport const button = {\n primary: {\n DEFAULT: accent.DEFAULT,\n dark: accent.dark,\n hover: {\n DEFAULT: accent.hover.DEFAULT,\n dark: accent.hover.dark\n },\n focus: {\n DEFAULT: accent.focus.DEFAULT,\n dark: accent.focus.dark\n },\n disabled: {\n DEFAULT: background.subtle.DEFAULT,\n dark: background.subtle.dark\n },\n selected: {\n DEFAULT: colors.grey['100'],\n dark: background.subtle.dark\n }\n },\n secondary: {\n DEFAULT: '#FFF',\n dark: colors.grey['900'],\n hover: {\n DEFAULT: background.subtle.DEFAULT,\n dark: background.subtle.dark\n },\n focus: {\n DEFAULT: background.alt.DEFAULT,\n dark: background.alt.dark\n },\n disabled: {\n DEFAULT: background.subtle.DEFAULT,\n dark: background.subtle.dark\n },\n border: {\n DEFAULT: border.DEFAULT,\n dark: border.dark,\n hover: {\n DEFAULT: border.hover.DEFAULT,\n dark: border.hover.dark\n },\n focus: {\n DEFAULT: border.DEFAULT,\n dark: border.focus.dark\n },\n disabled: {\n DEFAULT: border.subtle.DEFAULT,\n dark: border.subtle.dark\n },\n selected: {\n DEFAULT: colors.grey['100'],\n dark: background.subtle.dark\n }\n }\n },\n tertiary: {\n hover: {\n DEFAULT: background.subtle.DEFAULT,\n dark: background.subtle.dark\n },\n focus: {\n DEFAULT: background.DEFAULT,\n dark: colors.blue['900']\n },\n selected: {\n DEFAULT: colors.grey['100'],\n dark: background.subtle.dark\n }\n },\n success: {\n DEFAULT: colors.green['600'],\n hover: {\n DEFAULT: colors.green['700']\n },\n focus: {\n DEFAULT: colors.green['800']\n },\n disabled: {\n DEFAULT: colors.grey['50'],\n dark: background.subtle.dark\n },\n selected: {\n DEFAULT: colors.grey['100'],\n dark: background.subtle.dark\n }\n },\n danger: {\n DEFAULT: feedback.error.DEFAULT,\n hover: {\n DEFAULT: colors.red['700']\n },\n focus: {\n DEFAULT: colors.red['800']\n },\n disabled: {\n DEFAULT: colors.grey['50'],\n dark: background.subtle.dark\n },\n selected: {\n DEFAULT: colors.grey['100'],\n dark: background.subtle.dark\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,SAAS;AAAA,EACpB,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,KAAK;AAAA,IACH,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,Q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ceRoot":"","sources":["../../src/colors/index.ts"],"names":[],"mappings":";;AAAA,uCAAkC;AAClC,mDAA4C;AAC5C,mDAA4C;AAC5C,2CAAoC;AACpC,2CAAoC;AACpC,2CAAoC;AACpC,+CAAwC;AAExC,kCACE,WAAW,EAAE,aAAa,EAC1B,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,gBAAM,CAAC,aAAa,EAC7B,SAAS,EAAE,gBAAM,CAAC,UAAU,EAC5B,UAAU,EAAE,0BAAU,EACtB,UAAU,EAAE,0BAAU,EACtB,MAAM,EAAE,kBAAM,EACd,MAAM,EAAE,kBAAM,EACd,QAAQ,EAAE,sBAAQ,EAClB,MAAM,EAAE,kBAAM,EACd,KAAK,EAAE;QACL,OAAO,EAAE,MAAM;KAChB,EACD,KAAK,EAAE;QACL,OAAO,EAAE,MAAM;KAChB,IACE,gBAAM,EACV"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const sizeVariants: (props?: ({
|
|
5
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
type AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & VariantProps<typeof sizeVariants>;
|
|
8
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const AccordionHeader: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
11
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.AccordionTrigger = exports.AccordionItem = exports.AccordionHeader = exports.AccordionContent = exports.Accordion = void 0;
|
|
49
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
50
|
+
const AccordionPrimitive = __importStar(require("@radix-ui/react-accordion"));
|
|
51
|
+
const class_variance_authority_1 = require("class-variance-authority");
|
|
52
|
+
const React = __importStar(require("react"));
|
|
53
|
+
const assets_1 = require("../../assets");
|
|
54
|
+
const utils_1 = require("../../lib/utils");
|
|
55
|
+
const sizeVariants = (0, class_variance_authority_1.cva)('', {
|
|
56
|
+
variants: {
|
|
57
|
+
size: {
|
|
58
|
+
sm: ['text-sm'],
|
|
59
|
+
md: ['text-base'],
|
|
60
|
+
lg: ['text-lg']
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
defaultVariants: {
|
|
64
|
+
size: 'md'
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const Accordion = React.forwardRef((_a, ref) => {
|
|
68
|
+
var { children, className, size } = _a, props = __rest(_a, ["children", "className", "size"]);
|
|
69
|
+
return ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Root, Object.assign({ className: (0, utils_1.cn)(sizeVariants({ size }), 'dark:bg-grey-900 bg-white w-[206px] rounded-md shadow-[0_2px_10px] shadow-black/5', className) }, props, { ref: ref, children: children })));
|
|
70
|
+
});
|
|
71
|
+
exports.Accordion = Accordion;
|
|
72
|
+
Accordion.displayName = AccordionPrimitive.Root.displayName;
|
|
73
|
+
const AccordionItem = React.forwardRef((_a, ref) => {
|
|
74
|
+
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Item, Object.assign({ className: (0, utils_1.cn)('overflow-hidden first:mt-0 first:rounded-t last:rounded-b border-b border-grey-200 dark:border-grey-700 last:border-0', className) }, props, { ref: ref, children: children })));
|
|
76
|
+
});
|
|
77
|
+
exports.AccordionItem = AccordionItem;
|
|
78
|
+
AccordionItem.displayName = AccordionPrimitive.Item.displayName;
|
|
79
|
+
const AccordionHeader = React.forwardRef((_a, ref) => {
|
|
80
|
+
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
81
|
+
return ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Header, Object.assign({ className: (0, utils_1.cn)('flex font-semibold', className) }, props, { ref: ref, children: children })));
|
|
82
|
+
});
|
|
83
|
+
exports.AccordionHeader = AccordionHeader;
|
|
84
|
+
AccordionHeader.displayName = AccordionPrimitive.Header.displayName;
|
|
85
|
+
const AccordionTrigger = React.forwardRef((_a, ref) => {
|
|
86
|
+
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(AccordionHeader, { children: (0, jsx_runtime_1.jsxs)(AccordionPrimitive.Trigger, Object.assign({ className: (0, utils_1.cn)('px-4 py-4 dark:bg-grey-900 dark:text-white group flex flex-1 cursor-pointer items-center justify-between bg-white leading-none', 'focus-visible:outline-hidden focus-visible:shadow-brandGreen dark:focus-visible:shadow-brandGreen10', className) }, props, { ref: ref, children: [children, (0, jsx_runtime_1.jsx)(assets_1.BsChevronDown, { className: "ease-[cubic-bezier(0.87,_0,_0.13,_1)] transition-transform duration-300 group-data-[state=open]:rotate-180 w-3 h-3 text-gray-800", "aria-hidden": true })] })) }));
|
|
88
|
+
});
|
|
89
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
90
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
91
|
+
const AccordionContent = React.forwardRef((_a, ref) => {
|
|
92
|
+
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
93
|
+
return ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Content, Object.assign({ className: (0, utils_1.cn)('dark:text-white data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp overflow-hidden', className) }, props, { ref: ref, children: (0, jsx_runtime_1.jsx)("div", { className: "pb-3 px-4", children: children }) })));
|
|
94
|
+
});
|
|
95
|
+
exports.AccordionContent = AccordionContent;
|
|
96
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
97
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Accordion/index.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,8EAA+D;AAC/D,uEAAiE;AACjE,6CAA8B;AAE9B,yCAA4C;AAC5C,2CAAoC;AAEpC,MAAM,YAAY,GAAG,IAAA,8BAAG,EAAC,EAAE,EAAE;IAC3B,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,WAAW,CAAC;YACjB,EAAE,EAAE,CAAC,SAAS,CAAC;SAChB;KACF;IACD,eAAe,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+
import * as React from 'react';
|
|
2
|
+
declare const AppHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
3
|
+
interface AppHeaderLogoProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const AppHeaderLogo: React.ForwardRefExoticComponent<AppHeaderLogoProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
declare const AppHeaderNav: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
interface AppHeaderLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const AppHeaderLink: React.ForwardRefExoticComponent<AppHeaderLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
13
|
+
declare const AppHeaderActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
interface AppHeaderMenuButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
15
|
+
open?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const AppHeaderMenuButton: React.ForwardRefExoticComponent<AppHeaderMenuButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
declare const AppHeaderMobileMenu: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
19
|
+
open?: boolean;
|
|
20
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export { AppHeader, AppHeaderLogo, AppHeaderNav, AppHeaderLink, AppHeaderActions, AppHeaderMenuButton, AppHeaderMobileMenu, type AppHeaderLogoProps, type AppHeaderLinkProps, type AppHeaderMenuButtonProps };
|