@crisp-ui-kit/crisp 0.33.4 → 0.34.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.
Files changed (43) hide show
  1. package/dist/checkbox.css +1 -1
  2. package/dist/checkbox.layered.css +1 -1
  3. package/dist/cjs/components/avatargroup/avatargroup.recipe.js +21 -8
  4. package/dist/cjs/components/barchart/barchart.js +6 -1
  5. package/dist/cjs/components/checkbox/checkbox.recipe.js +50 -17
  6. package/dist/cjs/components/datepicker/datepicker.js +7 -1
  7. package/dist/cjs/components/kbd/kbd.recipe.js +22 -9
  8. package/dist/cjs/components/linechart/linechart.js +6 -1
  9. package/dist/cjs/components/skeleton/skeleton.recipe.js +14 -8
  10. package/dist/cjs/components/table/table.js +6 -2
  11. package/dist/cjs/components/textarea/textarea.js +9 -2
  12. package/dist/cjs/components/textarea/textarea.recipe.js +14 -5
  13. package/dist/cjs/components/tooltip/tooltip.recipe.js +27 -6
  14. package/dist/cjs/product/recordpage/recordpage.js +1 -1
  15. package/dist/command.css +1 -1
  16. package/dist/command.layered.css +1 -1
  17. package/dist/esm/components/avatargroup/avatargroup.recipe.js +21 -8
  18. package/dist/esm/components/barchart/barchart.js +6 -1
  19. package/dist/esm/components/checkbox/checkbox.recipe.js +50 -17
  20. package/dist/esm/components/datepicker/datepicker.js +7 -1
  21. package/dist/esm/components/kbd/kbd.recipe.js +22 -9
  22. package/dist/esm/components/linechart/linechart.js +6 -1
  23. package/dist/esm/components/skeleton/skeleton.recipe.js +14 -8
  24. package/dist/esm/components/table/table.js +6 -2
  25. package/dist/esm/components/textarea/textarea.js +9 -2
  26. package/dist/esm/components/textarea/textarea.recipe.js +14 -5
  27. package/dist/esm/components/tooltip/tooltip.recipe.js +27 -6
  28. package/dist/esm/product/recordpage/recordpage.js +1 -1
  29. package/dist/navitem.css +1 -1
  30. package/dist/navitem.layered.css +1 -1
  31. package/dist/sidebar.css +1 -1
  32. package/dist/sidebar.layered.css +1 -1
  33. package/dist/styles.css +6 -90
  34. package/dist/styles.layered.css +6 -90
  35. package/dist/textarea.css +2 -2
  36. package/dist/textarea.layered.css +2 -2
  37. package/dist/tokens.css +0 -84
  38. package/dist/types/components/avatargroup/avatargroup.recipe.d.ts +25 -2
  39. package/dist/types/components/checkbox/checkbox.recipe.d.ts +51 -3
  40. package/dist/types/components/kbd/kbd.recipe.d.ts +24 -3
  41. package/dist/types/components/skeleton/skeleton.recipe.d.ts +19 -2
  42. package/dist/types/components/tooltip/tooltip.recipe.d.ts +30 -2
  43. package/package.json +2 -1
package/dist/tokens.css CHANGED
@@ -121,87 +121,3 @@
121
121
  --crisp-weight-bold: 700;
122
122
  --crisp-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
123
123
  }
124
-
125
- /* -----------------------------------------------------------------
126
- * Deprecated unprefixed aliases (issue #276) — SCHEDULED FOR REMOVAL in
127
- * the next major version. Prefer the --crisp-* custom property
128
- * above; these only forward to it so an existing override keeps working.
129
- * ----------------------------------------------------------------- */
130
- :root {
131
- --bg-brand-solid: var(--crisp-bg-brand-solid);
132
- --bg-brand-solid-pressed: var(--crisp-bg-brand-solid-pressed);
133
- --fg-on-brand: var(--crisp-fg-on-brand);
134
- --fg-on-tone: var(--crisp-fg-on-tone);
135
- --bg-surface: var(--crisp-bg-surface);
136
- --bg-raised: var(--crisp-bg-raised);
137
- --border-default: var(--crisp-border-default);
138
- --border-subtle: var(--crisp-border-subtle);
139
- --ring-neutral: var(--crisp-ring-neutral);
140
- --bg-tile-active: var(--crisp-bg-tile-active);
141
- --shadow-tile-active: var(--crisp-shadow-tile-active);
142
- --bg-overlay-frost: var(--crisp-bg-overlay-frost);
143
- --shadow-overlay1: var(--crisp-shadow-overlay1);
144
- --shadow-overlay2: var(--crisp-shadow-overlay2);
145
- --shadow-overlay3: var(--crisp-shadow-overlay3);
146
- --bg-popover: var(--crisp-bg-popover);
147
- --ring-popover: var(--crisp-ring-popover);
148
- --shadow-popover1: var(--crisp-shadow-popover1);
149
- --shadow-popover2: var(--crisp-shadow-popover2);
150
- --shadow-popover3: var(--crisp-shadow-popover3);
151
- --fg-primary: var(--crisp-fg-primary);
152
- --fg-muted: var(--crisp-fg-muted);
153
- --bg-danger: var(--crisp-bg-danger);
154
- --bg-danger-solid: var(--crisp-bg-danger-solid);
155
- --stroke-field-focus: var(--crisp-stroke-field-focus);
156
- --fg-disabled: var(--crisp-fg-disabled);
157
- --bg-neutral-weak: var(--crisp-bg-neutral-weak);
158
- --bg-neutral-inverted: var(--crisp-bg-neutral-inverted);
159
- --fg-on-neutral-inverted: var(--crisp-fg-on-neutral-inverted);
160
- --fg-neutral-subtle: var(--crisp-fg-neutral-subtle);
161
- --fg-neutral-muted: var(--crisp-fg-neutral-muted);
162
- --stroke-focus-ring: var(--crisp-stroke-focus-ring);
163
- --bg-success: var(--crisp-bg-success);
164
- --bg-warning: var(--crisp-bg-warning);
165
- --bg-orange: var(--crisp-bg-orange);
166
- --bg-cyan: var(--crisp-bg-cyan);
167
- --bg-purple: var(--crisp-bg-purple);
168
- --bg-sidebar: var(--crisp-bg-sidebar);
169
- --bg-subtle: var(--crisp-bg-subtle);
170
- --space-1: var(--crisp-space-1);
171
- --space-2: var(--crisp-space-2);
172
- --space-3: var(--crisp-space-3);
173
- --space-4: var(--crisp-space-4);
174
- --space-5: var(--crisp-space-5);
175
- --space-6: var(--crisp-space-6);
176
- --space-8: var(--crisp-space-8);
177
- --space-px: var(--crisp-space-px);
178
- --space-0-5: var(--crisp-space-0-5);
179
- --space-1-5: var(--crisp-space-1-5);
180
- --space-2-5: var(--crisp-space-2-5);
181
- --radius-chip: var(--crisp-radius-chip);
182
- --radius-sm: var(--crisp-radius-sm);
183
- --radius-md: var(--crisp-radius-md);
184
- --radius-lg: var(--crisp-radius-lg);
185
- --radius-xl: var(--crisp-radius-xl);
186
- --radius-2xl: var(--crisp-radius-2xl);
187
- --radius-full: var(--crisp-radius-full);
188
- --size-icon: var(--crisp-size-icon);
189
- --size-chip: var(--crisp-size-chip);
190
- --size-row: var(--crisp-size-row);
191
- --size-menuRow: var(--crisp-size-menuRow);
192
- --size-tableRow: var(--crisp-size-tableRow);
193
- --size-tableHeader: var(--crisp-size-tableHeader);
194
- --size-header: var(--crisp-size-header);
195
- --size-calendarCell: var(--crisp-size-calendarCell);
196
- --size-calendarPill: var(--crisp-size-calendarPill);
197
- --text-xs: var(--crisp-text-xs);
198
- --text-sm: var(--crisp-text-sm);
199
- --text-md: var(--crisp-text-md);
200
- --text-lg: var(--crisp-text-lg);
201
- --text-xl: var(--crisp-text-xl);
202
- --weight-regular: var(--crisp-weight-regular);
203
- --weight-medium: var(--crisp-weight-medium);
204
- --weight-semibold: var(--crisp-weight-semibold);
205
- --weight-bold: var(--crisp-weight-bold);
206
- --font-sans: var(--crisp-font-sans);
207
- }
@@ -1,3 +1,26 @@
1
- declare const config: import("../..").RecipeConfig<{}>;
2
- export declare const avatargroupRecipe: import("../..").RecipeFn<{}>;
1
+ declare const spec: {
2
+ readonly name: "avatargroup";
3
+ readonly base: {
4
+ readonly display: "inline-flex";
5
+ readonly alignItems: "center";
6
+ };
7
+ readonly parts: [{
8
+ readonly slot: "member";
9
+ readonly selector: "& > *";
10
+ readonly decls: {
11
+ readonly marginInlineStart: `-var(--${string})`;
12
+ readonly boxShadow: `0 0 0 2px var(--${string})`;
13
+ readonly position: "relative";
14
+ };
15
+ }, {
16
+ readonly slot: "member";
17
+ readonly selector: "& > *:first-child";
18
+ readonly decls: {
19
+ readonly marginInlineStart: 0;
20
+ };
21
+ }];
22
+ };
23
+ declare const config: import("../..").RecipeConfig<Record<string, Record<string, string>>>;
24
+ export declare const avatargroupRecipe: import("../..").RecipeFn<Record<string, Record<string, string>>>;
25
+ export { spec };
3
26
  export default config;
@@ -1,5 +1,53 @@
1
- declare const config: import("../..").RecipeConfig<{}>;
2
- export declare const checkboxRecipe: import("../..").RecipeFn<{}> & {
3
- config: import("../..").RecipeConfig<{}>;
1
+ declare const spec: {
2
+ readonly name: "checkbox";
3
+ readonly base: {
4
+ readonly appearance: "none";
5
+ readonly WebkitAppearance: "none";
6
+ readonly boxSizing: "border-box";
7
+ readonly flexShrink: 0;
8
+ readonly margin: 0;
9
+ readonly width: "16px";
10
+ readonly height: "16px";
11
+ readonly border: "none";
12
+ readonly borderRadius: `var(--${string})`;
13
+ readonly background: `var(--${string})`;
14
+ readonly boxShadow: `inset 0 0 0 1px color-mix(in srgb, var(--${string}) 9%, transparent)`;
15
+ readonly cursor: "pointer";
16
+ readonly transition: "background-color .12s, box-shadow .12s";
17
+ };
18
+ readonly parts: [{
19
+ readonly selector: "&:hover";
20
+ readonly decls: {
21
+ readonly boxShadow: `inset 0 0 0 1px color-mix(in srgb, var(--${string}) 30%, transparent)`;
22
+ };
23
+ }, {
24
+ readonly selector: "&:checked, &:indeterminate";
25
+ readonly decls: {
26
+ readonly background: `var(--${string}) center / 10px no-repeat`;
27
+ readonly boxShadow: "none";
28
+ };
29
+ }, {
30
+ readonly selector: "&:checked";
31
+ readonly decls: {
32
+ backgroundImage: "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5 5 9l4.5-5'/%3E%3C/svg%3E\")";
33
+ };
34
+ }, {
35
+ readonly selector: "&:indeterminate";
36
+ readonly decls: {
37
+ readonly backgroundImage: `linear-gradient(var(--${string}), var(--${string}))`;
38
+ readonly backgroundSize: "8px 2px";
39
+ };
40
+ }, {
41
+ readonly selector: "&:focus-visible";
42
+ readonly decls: {
43
+ readonly outline: `2px solid var(--${string})`;
44
+ readonly outlineOffset: "1px";
45
+ };
46
+ }];
4
47
  };
48
+ declare const config: import("../..").RecipeConfig<Record<string, Record<string, string>>>;
49
+ export declare const checkboxRecipe: import("../..").RecipeFn<Record<string, Record<string, string>>> & {
50
+ config: import("../..").RecipeConfig<Record<string, Record<string, string>>>;
51
+ };
52
+ export { spec };
5
53
  export default config;
@@ -1,5 +1,26 @@
1
- declare const config: import("../..").RecipeConfig<{}>;
2
- export declare const kbdRecipe: import("../..").RecipeFn<{}> & {
3
- config: import("../..").RecipeConfig<{}>;
1
+ declare const spec: {
2
+ readonly name: "kbd";
3
+ readonly base: {
4
+ readonly boxSizing: "border-box";
5
+ readonly display: "inline-flex";
6
+ readonly alignItems: "center";
7
+ readonly justifyContent: "center";
8
+ readonly gap: `var(--${string})`;
9
+ readonly minWidth: "20px";
10
+ readonly height: "20px";
11
+ readonly paddingInline: `var(--${string})`;
12
+ readonly borderRadius: `var(--${string})`;
13
+ readonly fontFamily: `var(--${string})`;
14
+ readonly fontSize: `var(--${string})`;
15
+ readonly fontWeight: `var(--${string})`;
16
+ readonly color: `color-mix(in srgb, var(--${string}) 50%, transparent)`;
17
+ readonly background: "transparent";
18
+ readonly boxShadow: `inset 0 0 0 1px color-mix(in srgb, var(--${string}) 6%, transparent)`;
19
+ };
4
20
  };
21
+ declare const config: import("../..").RecipeConfig<Record<string, Record<string, string>>>;
22
+ export declare const kbdRecipe: import("../..").RecipeFn<Record<string, Record<string, string>>> & {
23
+ config: import("../..").RecipeConfig<Record<string, Record<string, string>>>;
24
+ };
25
+ export { spec };
5
26
  export default config;
@@ -1,3 +1,20 @@
1
- declare const config: import("../..").RecipeConfig<{}>;
2
- export declare const skeletonRecipe: import("../..").RecipeFn<{}>;
1
+ declare const spec: {
2
+ readonly name: "skeleton";
3
+ readonly globalCss: "@keyframes crisp-skeleton { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }";
4
+ readonly base: {
5
+ readonly display: "block";
6
+ readonly background: `color-mix(in srgb, var(--${string}) 8%, transparent)`;
7
+ readonly borderRadius: `var(--${string})`;
8
+ readonly animation: "crisp-skeleton 1.4s ease-in-out infinite";
9
+ };
10
+ readonly parts: [{
11
+ readonly selector: "&[data-circle]";
12
+ readonly decls: {
13
+ borderRadius: `var(--${string})`;
14
+ };
15
+ }];
16
+ };
17
+ declare const config: import("../..").RecipeConfig<Record<string, Record<string, string>>>;
18
+ export declare const skeletonRecipe: import("../..").RecipeFn<Record<string, Record<string, string>>>;
19
+ export { spec };
3
20
  export default config;
@@ -1,3 +1,31 @@
1
- declare const config: import("../..").RecipeConfig<{}>;
2
- export declare const tooltipRecipe: import("../..").RecipeFn<{}>;
1
+ declare const spec: {
2
+ readonly name: "tooltip";
3
+ readonly base: {
4
+ readonly position: "fixed";
5
+ readonly zIndex: 70;
6
+ readonly boxSizing: "border-box";
7
+ readonly pointerEvents: "none";
8
+ readonly maxWidth: "260px";
9
+ readonly padding: `var(--${string}) var(--${string})`;
10
+ readonly borderRadius: `var(--${string})`;
11
+ readonly background: "#20242c";
12
+ readonly color: "#fff";
13
+ readonly fontFamily: `var(--${string})`;
14
+ readonly fontSize: `var(--${string})`;
15
+ readonly fontWeight: `var(--${string})`;
16
+ readonly lineHeight: "1.45";
17
+ readonly boxShadow: "0 4px 14px -2px rgba(28,40,64,0.28), 0 0 0 1px rgba(255,255,255,0.04)";
18
+ readonly opacity: 1;
19
+ readonly transition: "opacity 0.12s ease";
20
+ };
21
+ readonly parts: [{
22
+ readonly selector: "@starting-style";
23
+ readonly decls: {
24
+ readonly opacity: 0;
25
+ };
26
+ }];
27
+ };
28
+ declare const config: import("../..").RecipeConfig<Record<string, Record<string, string>>>;
29
+ export declare const tooltipRecipe: import("../..").RecipeFn<Record<string, Record<string, string>>>;
30
+ export { spec };
3
31
  export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crisp-ui-kit/crisp",
3
- "version": "0.33.4",
3
+ "version": "0.34.0",
4
4
  "description": "A lean React design system, measured pixel-for-pixel from Attio.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -413,6 +413,7 @@
413
413
  "build:css": "bun run build.mjs",
414
414
  "build:types": "tsc -p tsconfig.build.json",
415
415
  "build": "bun run build:css && bun run build:tokens && bun run build:esm && bun run build:cjs && bun run build:types",
416
+ "audit:docs": "bun scripts/audit-docs.mjs",
416
417
  "check:css": "bun scripts/check-css.mjs",
417
418
  "check:dist": "bun scripts/check-dist.mjs",
418
419
  "prepublishOnly": "bun run build && bun run check:dist && bun run check:css",