@crisp-ui-kit/crisp 0.53.4 → 0.54.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 (99) hide show
  1. package/dist/cjs/components/bulkbar/bulkbar.js +5 -1
  2. package/dist/cjs/components/fileupload/fileupload.js +19 -3
  3. package/dist/cjs/components/formfield/formfield.js +8 -1
  4. package/dist/cjs/components/heatmapchart/heatmapchart.js +14 -2
  5. package/dist/cjs/components/skiplink/index.js +17 -0
  6. package/dist/cjs/components/skiplink/skiplink.js +16 -0
  7. package/dist/cjs/components/skiplink/skiplink.recipe.js +33 -0
  8. package/dist/cjs/components/textlink/index.js +7 -0
  9. package/dist/cjs/components/textlink/textlink.js +16 -0
  10. package/dist/cjs/components/textlink/textlink.recipe.js +35 -0
  11. package/dist/cjs/components/visuallyhidden/index.js +17 -0
  12. package/dist/cjs/components/visuallyhidden/visuallyhidden.js +16 -0
  13. package/dist/cjs/components/visuallyhidden/visuallyhidden.recipe.js +20 -0
  14. package/dist/cjs/index.js +4 -0
  15. package/dist/cjs/product/board/board.js +11 -2
  16. package/dist/cjs/product/command/command.js +13 -1
  17. package/dist/cjs/product/flowcanvas/flowcanvas.js +9 -2
  18. package/dist/cjs/product/headerbar/headerbar.js +15 -0
  19. package/dist/cjs/product/headerbar/headerbar.recipe.js +35 -0
  20. package/dist/cjs/product/headerbar/index.js +17 -0
  21. package/dist/cjs/product/inbox/inbox.js +13 -1
  22. package/dist/cjs/product/onboarding/onboarding.js +22 -1
  23. package/dist/cjs/product/recordpage/index.js +2 -1
  24. package/dist/cjs/product/recordpage/recordpage.js +197 -123
  25. package/dist/cjs/product/recordpage/recordpage.recipe.js +5 -0
  26. package/dist/cjs/product/richtext/richtext.js +3 -3
  27. package/dist/cjs/product/settingssection/settingssection.recipe.js +11 -2
  28. package/dist/cjs/product/tasklist/tasklist.js +8 -1
  29. package/dist/esm/components/bulkbar/bulkbar.js +5 -1
  30. package/dist/esm/components/fileupload/fileupload.js +20 -4
  31. package/dist/esm/components/formfield/formfield.js +8 -1
  32. package/dist/esm/components/heatmapchart/heatmapchart.js +14 -2
  33. package/dist/esm/components/skiplink/index.js +1 -0
  34. package/dist/esm/components/skiplink/skiplink.js +13 -0
  35. package/dist/esm/components/skiplink/skiplink.recipe.js +30 -0
  36. package/dist/esm/components/textlink/index.js +2 -0
  37. package/dist/esm/components/textlink/textlink.js +13 -0
  38. package/dist/esm/components/textlink/textlink.recipe.js +32 -0
  39. package/dist/esm/components/visuallyhidden/index.js +1 -0
  40. package/dist/esm/components/visuallyhidden/visuallyhidden.js +13 -0
  41. package/dist/esm/components/visuallyhidden/visuallyhidden.recipe.js +17 -0
  42. package/dist/esm/index.js +4 -0
  43. package/dist/esm/product/board/board.js +12 -3
  44. package/dist/esm/product/command/command.js +14 -2
  45. package/dist/esm/product/flowcanvas/flowcanvas.js +9 -2
  46. package/dist/esm/product/headerbar/headerbar.js +12 -0
  47. package/dist/esm/product/headerbar/headerbar.recipe.js +32 -0
  48. package/dist/esm/product/headerbar/index.js +1 -0
  49. package/dist/esm/product/inbox/inbox.js +13 -1
  50. package/dist/esm/product/onboarding/onboarding.js +22 -1
  51. package/dist/esm/product/recordpage/index.js +1 -1
  52. package/dist/esm/product/recordpage/recordpage.js +197 -124
  53. package/dist/esm/product/recordpage/recordpage.recipe.js +5 -0
  54. package/dist/esm/product/richtext/richtext.js +3 -3
  55. package/dist/esm/product/settingssection/settingssection.recipe.js +11 -2
  56. package/dist/esm/product/tasklist/tasklist.js +8 -1
  57. package/dist/headerbar.css +7 -0
  58. package/dist/headerbar.d.ts +7 -0
  59. package/dist/headerbar.layered.css +9 -0
  60. package/dist/recordpage.css +17 -31
  61. package/dist/recordpage.layered.css +17 -31
  62. package/dist/settingssection.css +2 -2
  63. package/dist/settingssection.layered.css +2 -2
  64. package/dist/skiplink.css +5 -0
  65. package/dist/skiplink.d.ts +7 -0
  66. package/dist/skiplink.layered.css +7 -0
  67. package/dist/styles.css +49 -33
  68. package/dist/styles.layered.css +49 -33
  69. package/dist/textlink.css +11 -0
  70. package/dist/textlink.d.ts +7 -0
  71. package/dist/textlink.layered.css +13 -0
  72. package/dist/types/components/bulkbar/bulkbar.d.ts +1 -1
  73. package/dist/types/components/heatmapchart/heatmapchart.d.ts +1 -1
  74. package/dist/types/components/skiplink/index.d.ts +1 -0
  75. package/dist/types/components/skiplink/skiplink.d.ts +18 -0
  76. package/dist/types/components/skiplink/skiplink.recipe.d.ts +3 -0
  77. package/dist/types/components/textlink/index.d.ts +2 -0
  78. package/dist/types/components/textlink/textlink.d.ts +19 -0
  79. package/dist/types/components/textlink/textlink.recipe.d.ts +13 -0
  80. package/dist/types/components/visuallyhidden/index.d.ts +1 -0
  81. package/dist/types/components/visuallyhidden/visuallyhidden.d.ts +15 -0
  82. package/dist/types/components/visuallyhidden/visuallyhidden.recipe.d.ts +3 -0
  83. package/dist/types/index.d.ts +4 -0
  84. package/dist/types/product/board/board.d.ts +1 -1
  85. package/dist/types/product/command/command.d.ts +1 -1
  86. package/dist/types/product/flowcanvas/flowcanvas.d.ts +1 -1
  87. package/dist/types/product/headerbar/headerbar.d.ts +27 -0
  88. package/dist/types/product/headerbar/headerbar.recipe.d.ts +3 -0
  89. package/dist/types/product/headerbar/index.d.ts +1 -0
  90. package/dist/types/product/inbox/inbox.d.ts +1 -1
  91. package/dist/types/product/onboarding/onboarding.d.ts +1 -1
  92. package/dist/types/product/recordpage/index.d.ts +1 -1
  93. package/dist/types/product/recordpage/recordpage.d.ts +90 -1
  94. package/dist/types/product/richtext/richtext.d.ts +20 -0
  95. package/dist/types/product/tasklist/tasklist.d.ts +1 -1
  96. package/dist/visuallyhidden.css +3 -0
  97. package/dist/visuallyhidden.d.ts +7 -0
  98. package/dist/visuallyhidden.layered.css +5 -0
  99. package/package.json +21 -1
@@ -93,6 +93,16 @@ export type RichTextEditorProps = Omit<React.ComponentPropsWithoutRef<"div">, "c
93
93
  * headings/lists/marks all survive into it. No toolbar renders in this
94
94
  * mode. */
95
95
  readOnly?: boolean;
96
+ /**
97
+ * Renders the title field at all (default `true`, matching Attio's own
98
+ * preview — see `readOnly` above). `false` omits it from the DOM
99
+ * entirely, not just visually: for a consumer whose own layout already
100
+ * shows a note's title elsewhere (a list row's own heading, a record's
101
+ * collapsed-note summary), rendering it a second time here would
102
+ * duplicate it rather than match anything Attio does. `onChange`'s
103
+ * `title` is always `""` with this off; `defaultTitle` is ignored.
104
+ */
105
+ showTitle?: boolean;
96
106
  className?: string;
97
107
  };
98
108
  /**
@@ -187,5 +197,15 @@ export declare const RichTextEditor: React.ForwardRefExoticComponent<Omit<Omit<R
187
197
  * headings/lists/marks all survive into it. No toolbar renders in this
188
198
  * mode. */
189
199
  readOnly?: boolean;
200
+ /**
201
+ * Renders the title field at all (default `true`, matching Attio's own
202
+ * preview — see `readOnly` above). `false` omits it from the DOM
203
+ * entirely, not just visually: for a consumer whose own layout already
204
+ * shows a note's title elsewhere (a list row's own heading, a record's
205
+ * collapsed-note summary), rendering it a second time here would
206
+ * duplicate it rather than match anything Attio does. `onChange`'s
207
+ * `title` is always `""` with this off; `defaultTitle` is ignored.
208
+ */
209
+ showTitle?: boolean;
190
210
  className?: string;
191
211
  } & React.RefAttributes<RichTextEditorHandle>>;
@@ -34,7 +34,7 @@ export type TaskListProps = Omit<React.ComponentPropsWithoutRef<"div">, "childre
34
34
  * count, then rows of a round complete-checkbox + title + trailing meta.
35
35
  * Completed rows strike through; overdue dates go red.
36
36
  */
37
- export declare function TaskList({ tasks, groups, onToggle, emptyLabel, className, completeLabel, incompleteLabel, ...rest }: TaskListProps): React.JSX.Element;
37
+ export declare function TaskList({ tasks, groups, onToggle, emptyLabel: emptyLabelProp, className, completeLabel: completeLabelProp, incompleteLabel: incompleteLabelProp, ...rest }: TaskListProps): React.JSX.Element;
38
38
  export declare namespace TaskList {
39
39
  var displayName: string;
40
40
  }
@@ -0,0 +1,3 @@
1
+ .crisp-visuallyhidden {
2
+ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
3
+ }
@@ -0,0 +1,7 @@
1
+ import type { RecipeFn } from "../core/types";
2
+
3
+ export interface VisuallyhiddenVariants {
4
+
5
+ }
6
+
7
+ export declare const visuallyhiddenRecipe: RecipeFn<{ }>;
@@ -0,0 +1,5 @@
1
+ @layer crisp-components {
2
+ .crisp-visuallyhidden {
3
+ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
4
+ }
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crisp-ui-kit/crisp",
3
- "version": "0.53.4",
3
+ "version": "0.54.0",
4
4
  "description": "A lean React design system, measured pixel-for-pixel from Attio.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -243,6 +243,11 @@
243
243
  "import": "./dist/esm/components/skeleton/index.js",
244
244
  "require": "./dist/cjs/components/skeleton/index.js"
245
245
  },
246
+ "./skiplink": {
247
+ "types": "./dist/types/components/skiplink/index.d.ts",
248
+ "import": "./dist/esm/components/skiplink/index.js",
249
+ "require": "./dist/cjs/components/skiplink/index.js"
250
+ },
246
251
  "./slider": {
247
252
  "types": "./dist/types/components/slider/index.d.ts",
248
253
  "import": "./dist/esm/components/slider/index.js",
@@ -288,6 +293,11 @@
288
293
  "import": "./dist/esm/components/textarea/index.js",
289
294
  "require": "./dist/cjs/components/textarea/index.js"
290
295
  },
296
+ "./textlink": {
297
+ "types": "./dist/types/components/textlink/index.d.ts",
298
+ "import": "./dist/esm/components/textlink/index.js",
299
+ "require": "./dist/cjs/components/textlink/index.js"
300
+ },
291
301
  "./timepicker": {
292
302
  "types": "./dist/types/components/timepicker/index.d.ts",
293
303
  "import": "./dist/esm/components/timepicker/index.js",
@@ -303,6 +313,11 @@
303
313
  "import": "./dist/esm/components/tooltip/index.js",
304
314
  "require": "./dist/cjs/components/tooltip/index.js"
305
315
  },
316
+ "./visuallyhidden": {
317
+ "types": "./dist/types/components/visuallyhidden/index.d.ts",
318
+ "import": "./dist/esm/components/visuallyhidden/index.js",
319
+ "require": "./dist/cjs/components/visuallyhidden/index.js"
320
+ },
306
321
  "./wheelpicker": {
307
322
  "types": "./dist/types/components/wheelpicker/index.d.ts",
308
323
  "import": "./dist/esm/components/wheelpicker/index.js",
@@ -338,6 +353,11 @@
338
353
  "import": "./dist/esm/product/flowcanvas/index.js",
339
354
  "require": "./dist/cjs/product/flowcanvas/index.js"
340
355
  },
356
+ "./headerbar": {
357
+ "types": "./dist/types/product/headerbar/index.d.ts",
358
+ "import": "./dist/esm/product/headerbar/index.js",
359
+ "require": "./dist/cjs/product/headerbar/index.js"
360
+ },
341
361
  "./inbox": {
342
362
  "types": "./dist/types/product/inbox/index.d.ts",
343
363
  "import": "./dist/esm/product/inbox/index.js",