@crisp-ui-kit/crisp 0.56.0 → 0.57.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/dist/accentpicker.css +5 -0
- package/dist/accentpicker.d.ts +7 -0
- package/dist/accentpicker.layered.css +7 -0
- package/dist/avatar.css +1 -1
- package/dist/avatar.layered.css +1 -1
- package/dist/badge.css +2 -2
- package/dist/badge.layered.css +2 -2
- package/dist/button.css +3 -3
- package/dist/button.layered.css +3 -3
- package/dist/callout.css +6 -0
- package/dist/callout.d.ts +2 -2
- package/dist/callout.layered.css +6 -0
- package/dist/cjs/components/accentpicker/accentpicker.js +66 -0
- package/dist/cjs/components/accentpicker/accentpicker.recipe.js +25 -0
- package/dist/cjs/components/accentpicker/index.js +7 -0
- package/dist/cjs/components/avatar/avatar.recipe.js +4 -1
- package/dist/cjs/components/badge/badge.recipe.js +16 -2
- package/dist/cjs/components/button/button.recipe.js +16 -6
- package/dist/cjs/components/callout/callout.js +2 -2
- package/dist/cjs/components/callout/callout.recipe.js +15 -2
- package/dist/cjs/components/input/input.js +2 -2
- package/dist/cjs/components/input/input.recipe.js +14 -0
- package/dist/cjs/components/menu/menu.js +2 -2
- package/dist/cjs/components/menu/menu.recipe.js +8 -0
- package/dist/cjs/components/multiselect/multiselect.js +23 -10
- package/dist/cjs/components/multiselect/multiselect.recipe.js +104 -65
- package/dist/cjs/components/progress/progress.js +21 -4
- package/dist/cjs/components/progress/progress.recipe.js +30 -0
- package/dist/cjs/components/select/listbox-keyboard.js +7 -1
- package/dist/cjs/components/select/select.js +24 -11
- package/dist/cjs/components/select/select.recipe.js +177 -78
- package/dist/cjs/components/tabletoolbar/tabletoolbar.js +3 -3
- package/dist/cjs/components/tabletoolbar/tabletoolbar.recipe.js +26 -1
- package/dist/cjs/components/tabs/tabs.js +63 -4
- package/dist/cjs/components/tabs/tabs.recipe.js +13 -0
- package/dist/cjs/components/text/text.recipe.js +8 -7
- package/dist/cjs/components/textarea/textarea.js +3 -2
- package/dist/cjs/components/textarea/textarea.recipe.js +2 -1
- package/dist/cjs/components/textlink/textlink.js +2 -2
- package/dist/cjs/components/textlink/textlink.recipe.js +24 -3
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/product/recordpage/recordpage.js +61 -7
- package/dist/cjs/tokens/elevation.js +7 -0
- package/dist/cjs/tokens/palette.js +120 -25
- package/dist/cjs/tokens/scale.js +9 -0
- package/dist/cjs/tokens/semantic.js +42 -0
- package/dist/esm/components/accentpicker/accentpicker.js +30 -0
- package/dist/esm/components/accentpicker/accentpicker.recipe.js +22 -0
- package/dist/esm/components/accentpicker/index.js +2 -0
- package/dist/esm/components/avatar/avatar.recipe.js +4 -1
- package/dist/esm/components/badge/badge.recipe.js +16 -2
- package/dist/esm/components/button/button.recipe.js +16 -6
- package/dist/esm/components/callout/callout.js +2 -2
- package/dist/esm/components/callout/callout.recipe.js +15 -2
- package/dist/esm/components/input/input.js +3 -3
- package/dist/esm/components/input/input.recipe.js +14 -0
- package/dist/esm/components/menu/menu.js +2 -2
- package/dist/esm/components/menu/menu.recipe.js +8 -0
- package/dist/esm/components/multiselect/multiselect.js +23 -10
- package/dist/esm/components/multiselect/multiselect.recipe.js +104 -65
- package/dist/esm/components/progress/progress.js +22 -5
- package/dist/esm/components/progress/progress.recipe.js +30 -0
- package/dist/esm/components/select/listbox-keyboard.js +7 -1
- package/dist/esm/components/select/select.js +24 -11
- package/dist/esm/components/select/select.recipe.js +177 -78
- package/dist/esm/components/tabletoolbar/tabletoolbar.js +3 -3
- package/dist/esm/components/tabletoolbar/tabletoolbar.recipe.js +26 -1
- package/dist/esm/components/tabs/tabs.js +63 -4
- package/dist/esm/components/tabs/tabs.recipe.js +13 -0
- package/dist/esm/components/text/text.recipe.js +8 -7
- package/dist/esm/components/textarea/textarea.js +3 -2
- package/dist/esm/components/textarea/textarea.recipe.js +2 -1
- package/dist/esm/components/textlink/textlink.js +2 -2
- package/dist/esm/components/textlink/textlink.recipe.js +24 -3
- package/dist/esm/index.js +1 -0
- package/dist/esm/product/recordpage/recordpage.js +62 -8
- package/dist/esm/tokens/elevation.js +7 -0
- package/dist/esm/tokens/palette.js +120 -25
- package/dist/esm/tokens/scale.js +9 -0
- package/dist/esm/tokens/semantic.js +42 -0
- package/dist/input.css +11 -0
- package/dist/input.d.ts +2 -2
- package/dist/input.layered.css +11 -0
- package/dist/menu.css +8 -0
- package/dist/menu.layered.css +8 -0
- package/dist/multiselect.css +57 -29
- package/dist/multiselect.d.ts +3 -1
- package/dist/multiselect.layered.css +57 -29
- package/dist/native/tokens.d.ts +1 -1
- package/dist/native/tokens.js +82 -28
- package/dist/progress.css +3 -0
- package/dist/progress.layered.css +3 -0
- package/dist/select.css +100 -42
- package/dist/select.d.ts +3 -2
- package/dist/select.layered.css +100 -42
- package/dist/styles.css +268 -93
- package/dist/styles.layered.css +268 -93
- package/dist/tabletoolbar.css +8 -1
- package/dist/tabletoolbar.layered.css +8 -1
- package/dist/tabs.css +6 -0
- package/dist/tabs.layered.css +6 -0
- package/dist/text.css +1 -1
- package/dist/text.layered.css +1 -1
- package/dist/textarea.css +2 -1
- package/dist/textarea.layered.css +2 -1
- package/dist/textlink.css +11 -2
- package/dist/textlink.d.ts +2 -1
- package/dist/textlink.layered.css +11 -2
- package/dist/tokens.css +43 -11
- package/dist/tokens.json +82 -28
- package/dist/types/components/accentpicker/accentpicker.d.ts +23 -0
- package/dist/types/components/accentpicker/accentpicker.recipe.d.ts +3 -0
- package/dist/types/components/accentpicker/index.d.ts +2 -0
- package/dist/types/components/button/button.recipe.d.ts +2 -2
- package/dist/types/components/callout/callout.d.ts +9 -1
- package/dist/types/components/callout/callout.recipe.d.ts +12 -2
- package/dist/types/components/input/input.d.ts +14 -0
- package/dist/types/components/input/input.recipe.d.ts +3 -0
- package/dist/types/components/menu/menu.d.ts +7 -1
- package/dist/types/components/multiselect/multiselect.d.ts +25 -6
- package/dist/types/components/multiselect/multiselect.recipe.d.ts +27 -0
- package/dist/types/components/progress/progress.d.ts +16 -4
- package/dist/types/components/progress/progress.recipe.d.ts +22 -0
- package/dist/types/components/select/listbox-keyboard.d.ts +10 -1
- package/dist/types/components/select/select.d.ts +29 -6
- package/dist/types/components/select/select.recipe.d.ts +25 -10
- package/dist/types/components/tabletoolbar/tabletoolbar.d.ts +14 -0
- package/dist/types/components/tabs/tabs.d.ts +9 -1
- package/dist/types/components/textarea/textarea.d.ts +16 -0
- package/dist/types/components/textlink/textlink.d.ts +8 -1
- package/dist/types/components/textlink/textlink.recipe.d.ts +10 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/product/recordpage/recordpage.d.ts +61 -1
- package/dist/types/tokens/contract.d.ts +16 -3
- package/dist/types/tokens/elevation.d.ts +7 -0
- package/dist/types/tokens/palette.d.ts +55 -11
- package/dist/types/tokens/scale.d.ts +6 -0
- package/dist/types/tokens/semantic.d.ts +33 -0
- package/package.json +6 -1
|
@@ -12,7 +12,7 @@ export declare const palette: {
|
|
|
12
12
|
readonly dark: "#101112";
|
|
13
13
|
};
|
|
14
14
|
readonly gray50: {
|
|
15
|
-
readonly light: "#
|
|
15
|
+
readonly light: "#f7f8f9";
|
|
16
16
|
readonly dark: "#101112";
|
|
17
17
|
};
|
|
18
18
|
readonly gray900: {
|
|
@@ -20,7 +20,7 @@ export declare const palette: {
|
|
|
20
20
|
readonly dark: "#f5f5f5";
|
|
21
21
|
};
|
|
22
22
|
readonly line200: {
|
|
23
|
-
readonly light: "#
|
|
23
|
+
readonly light: "#dcdee3";
|
|
24
24
|
readonly dark: "#212224";
|
|
25
25
|
};
|
|
26
26
|
readonly line100: {
|
|
@@ -47,6 +47,10 @@ export declare const palette: {
|
|
|
47
47
|
readonly light: "#d9dade";
|
|
48
48
|
readonly dark: "#212224";
|
|
49
49
|
};
|
|
50
|
+
readonly ringBrandSoft: {
|
|
51
|
+
readonly light: "#d6e5ff";
|
|
52
|
+
readonly dark: "#212224";
|
|
53
|
+
};
|
|
50
54
|
readonly tileActive: {
|
|
51
55
|
readonly light: "#ffffff";
|
|
52
56
|
readonly dark: "#101112";
|
|
@@ -104,23 +108,27 @@ export declare const palette: {
|
|
|
104
108
|
readonly dark: "#9a9aa2";
|
|
105
109
|
};
|
|
106
110
|
readonly brand600: {
|
|
107
|
-
readonly light: "#
|
|
108
|
-
readonly dark: "#
|
|
111
|
+
readonly light: "#0298d9";
|
|
112
|
+
readonly dark: "#0298d9";
|
|
109
113
|
};
|
|
110
114
|
readonly brand700: {
|
|
111
|
-
readonly light: "#
|
|
112
|
-
readonly dark: "#
|
|
115
|
+
readonly light: "#0283bb";
|
|
116
|
+
readonly dark: "#0283bb";
|
|
117
|
+
};
|
|
118
|
+
readonly brandContrast: {
|
|
119
|
+
readonly light: "#0278ac";
|
|
120
|
+
readonly dark: "#0278ac";
|
|
113
121
|
};
|
|
114
122
|
readonly red600: {
|
|
115
|
-
readonly light: "#
|
|
123
|
+
readonly light: "#fa342c";
|
|
116
124
|
readonly dark: "#ff5a5f";
|
|
117
125
|
};
|
|
118
126
|
readonly red700: {
|
|
119
|
-
readonly light: "#
|
|
127
|
+
readonly light: "#ca1d13";
|
|
120
128
|
readonly dark: "#ba2525";
|
|
121
129
|
};
|
|
122
130
|
readonly red500: {
|
|
123
|
-
readonly light: "#
|
|
131
|
+
readonly light: "#fa342c";
|
|
124
132
|
readonly dark: "#ff5a5f";
|
|
125
133
|
};
|
|
126
134
|
readonly fieldFocus: {
|
|
@@ -156,11 +164,15 @@ export declare const palette: {
|
|
|
156
164
|
readonly dark: "#5e98fe";
|
|
157
165
|
};
|
|
158
166
|
readonly green600: {
|
|
159
|
-
readonly light: "#
|
|
167
|
+
readonly light: "#079171";
|
|
160
168
|
readonly dark: "#2ea968";
|
|
161
169
|
};
|
|
162
170
|
readonly amber600: {
|
|
163
|
-
readonly light: "#
|
|
171
|
+
readonly light: "#9b7821";
|
|
172
|
+
readonly dark: "#e0982a";
|
|
173
|
+
};
|
|
174
|
+
readonly amberSolid: {
|
|
175
|
+
readonly light: "#fbdc65";
|
|
164
176
|
readonly dark: "#e0982a";
|
|
165
177
|
};
|
|
166
178
|
readonly orange600: {
|
|
@@ -211,5 +223,37 @@ export declare const palette: {
|
|
|
211
223
|
readonly light: "#e8ddfe";
|
|
212
224
|
readonly dark: "#45297d";
|
|
213
225
|
};
|
|
226
|
+
readonly selectListboxBg: {
|
|
227
|
+
readonly light: "#ffffff";
|
|
228
|
+
readonly dark: "#1d2025";
|
|
229
|
+
};
|
|
230
|
+
readonly selectTriggerStroke: {
|
|
231
|
+
readonly light: "#dcdee3";
|
|
232
|
+
readonly dark: "#393d46";
|
|
233
|
+
};
|
|
234
|
+
readonly selectPressedTint: {
|
|
235
|
+
readonly light: "#00000007";
|
|
236
|
+
readonly dark: "#ffffff0d";
|
|
237
|
+
};
|
|
238
|
+
readonly selectDisabledBg: {
|
|
239
|
+
readonly light: "#f3f4f5";
|
|
240
|
+
readonly dark: "#2b2e35";
|
|
241
|
+
};
|
|
242
|
+
readonly selectInvalidStroke: {
|
|
243
|
+
readonly light: "#fa342c";
|
|
244
|
+
readonly dark: "#ff6e60";
|
|
245
|
+
};
|
|
246
|
+
readonly selectDivider: {
|
|
247
|
+
readonly light: "#00000010";
|
|
248
|
+
readonly dark: "#ffffff17";
|
|
249
|
+
};
|
|
250
|
+
readonly selectPlaceholder: {
|
|
251
|
+
readonly light: "#b0b3ba";
|
|
252
|
+
readonly dark: "#868b94";
|
|
253
|
+
};
|
|
254
|
+
readonly selectShadow: {
|
|
255
|
+
readonly light: "#0000001f";
|
|
256
|
+
readonly dark: "#000000cc";
|
|
257
|
+
};
|
|
214
258
|
};
|
|
215
259
|
export type PaletteKey = keyof typeof palette;
|
|
@@ -6,18 +6,21 @@ export declare const space: {
|
|
|
6
6
|
readonly "2": "8px";
|
|
7
7
|
readonly "2.5": "10px";
|
|
8
8
|
readonly "3": "12px";
|
|
9
|
+
readonly "3.5": "14px";
|
|
9
10
|
readonly "4": "16px";
|
|
10
11
|
readonly "5": "20px";
|
|
11
12
|
readonly "6": "24px";
|
|
12
13
|
readonly "8": "32px";
|
|
13
14
|
};
|
|
14
15
|
export declare const radius: {
|
|
16
|
+
readonly xs: "4px";
|
|
15
17
|
readonly chip: "7px";
|
|
16
18
|
readonly sm: "6px";
|
|
17
19
|
readonly md: "8px";
|
|
18
20
|
readonly lg: "9px";
|
|
19
21
|
readonly xl: "12px";
|
|
20
22
|
readonly "2xl": "16px";
|
|
23
|
+
readonly "3xl": "20px";
|
|
21
24
|
readonly full: "999px";
|
|
22
25
|
};
|
|
23
26
|
export declare const size: {
|
|
@@ -30,6 +33,9 @@ export declare const size: {
|
|
|
30
33
|
readonly header: "48px";
|
|
31
34
|
readonly calendarCell: "34px";
|
|
32
35
|
readonly calendarPill: "32px";
|
|
36
|
+
readonly selectTriggerMd: "40px";
|
|
37
|
+
readonly selectTriggerLg: "52px";
|
|
38
|
+
readonly selectIconLg: "20px";
|
|
33
39
|
};
|
|
34
40
|
export declare const font: {
|
|
35
41
|
readonly sans: '"VK Sans Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif';
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
export declare const semantic: {
|
|
2
2
|
bgBrandSolid: "brand600";
|
|
3
3
|
bgBrandSolidPressed: "brand700";
|
|
4
|
+
/** your-moon/crisp#897: the AA-safe darker sibling of `bgBrandSolid` — a
|
|
5
|
+
* SOLID fill carrying white text (Button primary, Badge solid+brand,
|
|
6
|
+
* Avatar's brand tone). `bgBrandSolid` itself stays the exact brand
|
|
7
|
+
* accent (focus rings, selected states, icons, tints), unpaired with
|
|
8
|
+
* white text anywhere that matters for contrast. */
|
|
9
|
+
bgBrandContrast: "brandContrast";
|
|
10
|
+
/** your-moon/crisp#897: brand-coloured TEXT sitting on a white page
|
|
11
|
+
* (TextLink/Text's `brand` tone) — same value as `bgBrandContrast`,
|
|
12
|
+
* named separately because one's a background and one's a foreground,
|
|
13
|
+
* matching every other fg/bg pair in this file. */
|
|
14
|
+
fgBrandContrast: "brandContrast";
|
|
4
15
|
fgOnBrand: "white";
|
|
5
16
|
fgOnTone: "ink";
|
|
6
17
|
bgSurface: "gray00";
|
|
@@ -60,6 +71,10 @@ export declare const semantic: {
|
|
|
60
71
|
strokeFocusRing: "focusRing";
|
|
61
72
|
bgSuccess: "green600";
|
|
62
73
|
bgWarning: "amber600";
|
|
74
|
+
/** A SOLID warning fill (Badge's `variant="solid" tone="warning"`) — seed's
|
|
75
|
+
* own warning-solid is a distinct, paler yellow, not `bgWarning` tinted
|
|
76
|
+
* lighter. See `amberSolid` in palette.ts. */
|
|
77
|
+
bgWarningSolid: "amberSolid";
|
|
63
78
|
bgOrange: "orange600";
|
|
64
79
|
bgCyan: "cyan600";
|
|
65
80
|
bgPurple: "purple600";
|
|
@@ -77,5 +92,23 @@ export declare const semantic: {
|
|
|
77
92
|
bgPurpleSoft: "purpleTint";
|
|
78
93
|
fgPurpleSoft: "softPurpleText";
|
|
79
94
|
ringPurpleSoft: "purpleRing";
|
|
95
|
+
/** Callout's bordered/banner look (crisp#869) — an opaque measured ring,
|
|
96
|
+
* not a `color-mix` tint of `bgBrandSolid` (see palette.ts's own comment). */
|
|
97
|
+
ringBrandSoft: "ringBrandSoft";
|
|
98
|
+
/** Select rebuilt to seed-design parity (crisp/#867) — see palette.ts's
|
|
99
|
+
* comment above `selectListboxBg` for why these are their own tokens
|
|
100
|
+
* rather than a reuse of an Attio-measured one. */
|
|
101
|
+
/** Seed's neutral ink (gray-1000) used as TEXT/icon colour — same palette
|
|
102
|
+
* entry as `strokeFieldFocus` (a ring), aliased separately because the
|
|
103
|
+
* role here is content colour, not a focus ring. */
|
|
104
|
+
fgSelectNeutral: "fieldFocus";
|
|
105
|
+
bgSelectListbox: "selectListboxBg";
|
|
106
|
+
strokeSelectTrigger: "selectTriggerStroke";
|
|
107
|
+
bgSelectPressed: "selectPressedTint";
|
|
108
|
+
bgSelectDisabled: "selectDisabledBg";
|
|
109
|
+
strokeSelectInvalid: "selectInvalidStroke";
|
|
110
|
+
strokeSelectDivider: "selectDivider";
|
|
111
|
+
fgSelectPlaceholder: "selectPlaceholder";
|
|
112
|
+
shadowSelect: "selectShadow";
|
|
80
113
|
};
|
|
81
114
|
export type Tokens = typeof semantic;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crisp-ui-kit/crisp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.1",
|
|
4
4
|
"description": "A lean React design system, measured pixel-for-pixel from Attio.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,6 +33,11 @@
|
|
|
33
33
|
"./styles.css": "./dist/styles.css",
|
|
34
34
|
"./styles.layered.css": "./dist/styles.layered.css",
|
|
35
35
|
"./base.css": "./dist/base.css",
|
|
36
|
+
"./accentpicker": {
|
|
37
|
+
"types": "./dist/types/components/accentpicker/index.d.ts",
|
|
38
|
+
"import": "./dist/esm/components/accentpicker/index.js",
|
|
39
|
+
"require": "./dist/cjs/components/accentpicker/index.js"
|
|
40
|
+
},
|
|
36
41
|
"./accordion": {
|
|
37
42
|
"types": "./dist/types/components/accordion/index.d.ts",
|
|
38
43
|
"import": "./dist/esm/components/accordion/index.js",
|