@crisp-ui-kit/crisp 0.57.0 → 0.57.2

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 (293) hide show
  1. package/dist/accentpicker.css +5 -0
  2. package/dist/accentpicker.d.ts +7 -0
  3. package/dist/accentpicker.layered.css +7 -0
  4. package/dist/authshell.css +9 -4
  5. package/dist/authshell.layered.css +9 -4
  6. package/dist/avatar.css +1 -1
  7. package/dist/avatar.layered.css +1 -1
  8. package/dist/badge.css +5 -5
  9. package/dist/badge.layered.css +5 -5
  10. package/dist/board.css +28 -8
  11. package/dist/board.layered.css +28 -8
  12. package/dist/bottomsheet.css +26 -0
  13. package/dist/bottomsheet.d.ts +7 -0
  14. package/dist/bottomsheet.layered.css +28 -0
  15. package/dist/button.css +9 -8
  16. package/dist/button.layered.css +9 -8
  17. package/dist/checkbox.css +7 -3
  18. package/dist/checkbox.layered.css +7 -3
  19. package/dist/chip.css +15 -0
  20. package/dist/chip.d.ts +3 -1
  21. package/dist/chip.layered.css +15 -0
  22. package/dist/chipgroup.css +5 -0
  23. package/dist/chipgroup.d.ts +7 -0
  24. package/dist/chipgroup.layered.css +7 -0
  25. package/dist/cjs/components/accentpicker/accentpicker.js +66 -0
  26. package/dist/cjs/components/accentpicker/accentpicker.recipe.js +25 -0
  27. package/dist/cjs/components/accentpicker/index.js +7 -0
  28. package/dist/cjs/components/avatar/avatar.recipe.js +4 -1
  29. package/dist/cjs/components/badge/badge.recipe.js +38 -10
  30. package/dist/cjs/components/bottomsheet/bottomsheet.js +90 -0
  31. package/dist/cjs/components/bottomsheet/bottomsheet.recipe.js +77 -0
  32. package/dist/cjs/components/bottomsheet/index.js +9 -0
  33. package/dist/cjs/components/button/button.recipe.js +55 -21
  34. package/dist/cjs/components/checkbox/checkbox.recipe.js +61 -9
  35. package/dist/cjs/components/chip/chip.js +14 -2
  36. package/dist/cjs/components/chip/chip.recipe.js +69 -1
  37. package/dist/cjs/components/chipgroup/chipgroup.js +51 -0
  38. package/dist/cjs/components/chipgroup/chipgroup.recipe.js +36 -0
  39. package/dist/cjs/components/chipgroup/index.js +7 -0
  40. package/dist/cjs/components/datatable/datatable.js +5 -1
  41. package/dist/cjs/components/datatable/datatable.recipe.js +11 -2
  42. package/dist/cjs/components/dialog/dialog.recipe.js +21 -10
  43. package/dist/cjs/components/emptystate/emptystate.recipe.js +7 -2
  44. package/dist/cjs/components/fileupload/fileupload.js +21 -4
  45. package/dist/cjs/components/input/index.js +2 -1
  46. package/dist/cjs/components/input/input.js +33 -3
  47. package/dist/cjs/components/input/input.recipe.js +22 -7
  48. package/dist/cjs/components/menu/menu.recipe.js +21 -7
  49. package/dist/cjs/components/menusheet/index.js +9 -0
  50. package/dist/cjs/components/menusheet/menusheet.js +133 -0
  51. package/dist/cjs/components/menusheet/menusheet.recipe.js +103 -0
  52. package/dist/cjs/components/multiselect/multiselect.js +2 -2
  53. package/dist/cjs/components/multiselect/multiselect.recipe.js +45 -12
  54. package/dist/cjs/components/progress/progress.js +21 -4
  55. package/dist/cjs/components/progress/progress.recipe.js +30 -0
  56. package/dist/cjs/components/select/select.js +3 -3
  57. package/dist/cjs/components/select/select.recipe.js +63 -10
  58. package/dist/cjs/components/snackbar/index.js +8 -0
  59. package/dist/cjs/components/snackbar/snackbar.js +121 -0
  60. package/dist/cjs/components/snackbar/snackbar.recipe.js +71 -0
  61. package/dist/cjs/components/tabletoolbar/tabletoolbar.chrome.js +7 -2
  62. package/dist/cjs/components/tabletoolbar/tabletoolbar.js +37 -12
  63. package/dist/cjs/components/tabs/tabs.js +10 -4
  64. package/dist/cjs/components/tabs/tabs.recipe.js +23 -6
  65. package/dist/cjs/components/text/text.recipe.js +8 -7
  66. package/dist/cjs/components/textarea/textarea.js +3 -2
  67. package/dist/cjs/components/textarea/textarea.recipe.js +13 -9
  68. package/dist/cjs/components/textlink/textlink.recipe.js +6 -3
  69. package/dist/cjs/index.js +8 -0
  70. package/dist/cjs/product/authshell/authshell.recipe.js +5 -1
  71. package/dist/cjs/product/command/command.recipe.js +4 -1
  72. package/dist/cjs/product/comments/comments.js +7 -2
  73. package/dist/cjs/product/comments/comments.recipe.js +25 -7
  74. package/dist/cjs/product/memberssettings/index.js +6 -0
  75. package/dist/cjs/product/memberssettings/memberssettings.js +99 -0
  76. package/dist/cjs/product/memberssettings/memberssettings.recipe.js +83 -0
  77. package/dist/cjs/product/notificationssettings/index.js +5 -0
  78. package/dist/cjs/product/notificationssettings/notificationssettings.js +19 -0
  79. package/dist/cjs/product/notificationssettings/notificationssettings.recipe.js +44 -0
  80. package/dist/cjs/product/recordpage/recordpage.js +101 -9
  81. package/dist/cjs/product/recordpage/recordpage.recipe.js +43 -6
  82. package/dist/cjs/product/workspacegeneralsettings/index.js +5 -0
  83. package/dist/cjs/product/workspacegeneralsettings/workspacegeneralsettings.js +21 -0
  84. package/dist/cjs/product/workspacegeneralsettings/workspacegeneralsettings.recipe.js +51 -0
  85. package/dist/cjs/tokens/contract.js +1 -0
  86. package/dist/cjs/tokens/elevation.js +8 -5
  87. package/dist/cjs/tokens/palette.js +107 -33
  88. package/dist/cjs/tokens/scale.js +45 -2
  89. package/dist/cjs/tokens/semantic.js +26 -0
  90. package/dist/columncalc.css +15 -7
  91. package/dist/columncalc.layered.css +15 -7
  92. package/dist/command.css +23 -19
  93. package/dist/command.layered.css +23 -19
  94. package/dist/comments.css +28 -19
  95. package/dist/comments.d.ts +2 -2
  96. package/dist/comments.layered.css +28 -19
  97. package/dist/datatable.css +161 -67
  98. package/dist/datatable.layered.css +161 -67
  99. package/dist/datepicker.css +13 -41
  100. package/dist/datepicker.layered.css +13 -41
  101. package/dist/datepickerfield.css +4 -1
  102. package/dist/datepickerfield.layered.css +4 -1
  103. package/dist/dialog.css +12 -7
  104. package/dist/dialog.layered.css +12 -7
  105. package/dist/emptystate.css +5 -3
  106. package/dist/emptystate.layered.css +5 -3
  107. package/dist/esm/components/accentpicker/accentpicker.js +30 -0
  108. package/dist/esm/components/accentpicker/accentpicker.recipe.js +22 -0
  109. package/dist/esm/components/accentpicker/index.js +2 -0
  110. package/dist/esm/components/avatar/avatar.recipe.js +4 -1
  111. package/dist/esm/components/badge/badge.recipe.js +38 -10
  112. package/dist/esm/components/bottomsheet/bottomsheet.js +52 -0
  113. package/dist/esm/components/bottomsheet/bottomsheet.recipe.js +74 -0
  114. package/dist/esm/components/bottomsheet/index.js +2 -0
  115. package/dist/esm/components/button/button.recipe.js +56 -22
  116. package/dist/esm/components/checkbox/checkbox.recipe.js +61 -9
  117. package/dist/esm/components/chip/chip.js +14 -2
  118. package/dist/esm/components/chip/chip.recipe.js +69 -1
  119. package/dist/esm/components/chipgroup/chipgroup.js +15 -0
  120. package/dist/esm/components/chipgroup/chipgroup.recipe.js +33 -0
  121. package/dist/esm/components/chipgroup/index.js +2 -0
  122. package/dist/esm/components/datatable/datatable.js +5 -1
  123. package/dist/esm/components/datatable/datatable.recipe.js +11 -2
  124. package/dist/esm/components/dialog/dialog.recipe.js +22 -11
  125. package/dist/esm/components/emptystate/emptystate.recipe.js +7 -2
  126. package/dist/esm/components/fileupload/fileupload.js +20 -5
  127. package/dist/esm/components/input/index.js +1 -1
  128. package/dist/esm/components/input/input.js +33 -3
  129. package/dist/esm/components/input/input.recipe.js +23 -8
  130. package/dist/esm/components/menu/menu.recipe.js +21 -7
  131. package/dist/esm/components/menusheet/index.js +2 -0
  132. package/dist/esm/components/menusheet/menusheet.js +95 -0
  133. package/dist/esm/components/menusheet/menusheet.recipe.js +100 -0
  134. package/dist/esm/components/multiselect/multiselect.js +2 -2
  135. package/dist/esm/components/multiselect/multiselect.recipe.js +45 -12
  136. package/dist/esm/components/progress/progress.js +22 -5
  137. package/dist/esm/components/progress/progress.recipe.js +30 -0
  138. package/dist/esm/components/select/select.js +3 -3
  139. package/dist/esm/components/select/select.recipe.js +63 -10
  140. package/dist/esm/components/snackbar/index.js +2 -0
  141. package/dist/esm/components/snackbar/snackbar.js +84 -0
  142. package/dist/esm/components/snackbar/snackbar.recipe.js +68 -0
  143. package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +7 -2
  144. package/dist/esm/components/tabletoolbar/tabletoolbar.js +37 -12
  145. package/dist/esm/components/tabs/tabs.js +10 -4
  146. package/dist/esm/components/tabs/tabs.recipe.js +23 -6
  147. package/dist/esm/components/text/text.recipe.js +8 -7
  148. package/dist/esm/components/textarea/textarea.js +3 -2
  149. package/dist/esm/components/textarea/textarea.recipe.js +14 -10
  150. package/dist/esm/components/textlink/textlink.recipe.js +6 -3
  151. package/dist/esm/index.js +8 -0
  152. package/dist/esm/product/authshell/authshell.recipe.js +5 -1
  153. package/dist/esm/product/command/command.recipe.js +4 -1
  154. package/dist/esm/product/comments/comments.js +7 -2
  155. package/dist/esm/product/comments/comments.recipe.js +25 -7
  156. package/dist/esm/product/memberssettings/index.js +1 -0
  157. package/dist/esm/product/memberssettings/memberssettings.js +62 -0
  158. package/dist/esm/product/memberssettings/memberssettings.recipe.js +80 -0
  159. package/dist/esm/product/notificationssettings/index.js +1 -0
  160. package/dist/esm/product/notificationssettings/notificationssettings.js +16 -0
  161. package/dist/esm/product/notificationssettings/notificationssettings.recipe.js +41 -0
  162. package/dist/esm/product/recordpage/recordpage.js +102 -10
  163. package/dist/esm/product/recordpage/recordpage.recipe.js +43 -6
  164. package/dist/esm/product/workspacegeneralsettings/index.js +1 -0
  165. package/dist/esm/product/workspacegeneralsettings/workspacegeneralsettings.js +18 -0
  166. package/dist/esm/product/workspacegeneralsettings/workspacegeneralsettings.recipe.js +48 -0
  167. package/dist/esm/tokens/contract.js +2 -1
  168. package/dist/esm/tokens/elevation.js +8 -5
  169. package/dist/esm/tokens/palette.js +107 -33
  170. package/dist/esm/tokens/scale.js +44 -1
  171. package/dist/esm/tokens/semantic.js +26 -0
  172. package/dist/fileupload.css +3 -1
  173. package/dist/fileupload.layered.css +3 -1
  174. package/dist/input.css +11 -2
  175. package/dist/input.layered.css +11 -2
  176. package/dist/listpage.css +3 -1
  177. package/dist/listpage.layered.css +3 -1
  178. package/dist/memberssettings.css +67 -0
  179. package/dist/memberssettings.d.ts +7 -0
  180. package/dist/memberssettings.layered.css +69 -0
  181. package/dist/menu.css +2 -2
  182. package/dist/menu.layered.css +2 -2
  183. package/dist/menusheet.css +36 -0
  184. package/dist/menusheet.d.ts +7 -0
  185. package/dist/menusheet.layered.css +38 -0
  186. package/dist/multiselect.css +17 -6
  187. package/dist/multiselect.d.ts +2 -2
  188. package/dist/multiselect.layered.css +17 -6
  189. package/dist/native/tokens.d.ts +2 -1
  190. package/dist/native/tokens.js +53 -25
  191. package/dist/notificationssettings.css +22 -0
  192. package/dist/notificationssettings.d.ts +7 -0
  193. package/dist/notificationssettings.layered.css +24 -0
  194. package/dist/objectsettings.css +4 -4
  195. package/dist/objectsettings.layered.css +4 -4
  196. package/dist/progress.css +3 -0
  197. package/dist/progress.layered.css +3 -0
  198. package/dist/recordpage.css +67 -23
  199. package/dist/recordpage.layered.css +67 -23
  200. package/dist/recordpanel.css +35 -16
  201. package/dist/recordpanel.layered.css +35 -16
  202. package/dist/resizablepanel.css +8 -5
  203. package/dist/resizablepanel.layered.css +8 -5
  204. package/dist/richtext.css +24 -8
  205. package/dist/richtext.layered.css +24 -8
  206. package/dist/savedviews.css +9 -2
  207. package/dist/savedviews.layered.css +9 -2
  208. package/dist/select.css +47 -7
  209. package/dist/select.d.ts +2 -2
  210. package/dist/select.layered.css +47 -7
  211. package/dist/settingsshell.css +2 -3
  212. package/dist/settingsshell.layered.css +2 -3
  213. package/dist/slider.css +6 -27
  214. package/dist/slider.layered.css +6 -27
  215. package/dist/snackbar.css +24 -0
  216. package/dist/snackbar.d.ts +7 -0
  217. package/dist/snackbar.layered.css +26 -0
  218. package/dist/statcard.css +3 -1
  219. package/dist/statcard.layered.css +3 -1
  220. package/dist/styles.css +927 -365
  221. package/dist/styles.layered.css +927 -365
  222. package/dist/table.css +28 -10
  223. package/dist/table.layered.css +28 -10
  224. package/dist/tabletoolbar.css +35 -24
  225. package/dist/tabletoolbar.layered.css +35 -24
  226. package/dist/tabs.css +18 -4
  227. package/dist/tabs.layered.css +18 -4
  228. package/dist/text.css +1 -1
  229. package/dist/text.layered.css +1 -1
  230. package/dist/textarea.css +4 -7
  231. package/dist/textarea.layered.css +4 -7
  232. package/dist/textlink.css +2 -2
  233. package/dist/textlink.layered.css +2 -2
  234. package/dist/themepicker.css +2 -1
  235. package/dist/themepicker.layered.css +2 -1
  236. package/dist/tokens.css +31 -13
  237. package/dist/tokens.json +53 -25
  238. package/dist/types/components/accentpicker/accentpicker.d.ts +23 -0
  239. package/dist/types/components/accentpicker/accentpicker.recipe.d.ts +3 -0
  240. package/dist/types/components/accentpicker/index.d.ts +2 -0
  241. package/dist/types/components/bottomsheet/bottomsheet.d.ts +35 -0
  242. package/dist/types/components/bottomsheet/bottomsheet.recipe.d.ts +3 -0
  243. package/dist/types/components/bottomsheet/index.d.ts +2 -0
  244. package/dist/types/components/button/button.recipe.d.ts +13 -8
  245. package/dist/types/components/checkbox/checkbox.recipe.d.ts +28 -5
  246. package/dist/types/components/chip/chip.d.ts +22 -0
  247. package/dist/types/components/chip/chip.recipe.d.ts +48 -0
  248. package/dist/types/components/chipgroup/chipgroup.d.ts +14 -0
  249. package/dist/types/components/chipgroup/chipgroup.recipe.d.ts +5 -0
  250. package/dist/types/components/chipgroup/index.d.ts +2 -0
  251. package/dist/types/components/datatable/datatable.d.ts +19 -0
  252. package/dist/types/components/fileupload/fileupload.d.ts +26 -0
  253. package/dist/types/components/input/index.d.ts +1 -1
  254. package/dist/types/components/input/input.d.ts +84 -0
  255. package/dist/types/components/menusheet/index.d.ts +2 -0
  256. package/dist/types/components/menusheet/menusheet.d.ts +42 -0
  257. package/dist/types/components/menusheet/menusheet.recipe.d.ts +3 -0
  258. package/dist/types/components/multiselect/multiselect.d.ts +4 -3
  259. package/dist/types/components/multiselect/multiselect.recipe.d.ts +3 -0
  260. package/dist/types/components/progress/progress.d.ts +16 -4
  261. package/dist/types/components/progress/progress.recipe.d.ts +22 -0
  262. package/dist/types/components/select/select.d.ts +6 -5
  263. package/dist/types/components/select/select.recipe.d.ts +3 -0
  264. package/dist/types/components/snackbar/index.d.ts +2 -0
  265. package/dist/types/components/snackbar/snackbar.d.ts +36 -0
  266. package/dist/types/components/snackbar/snackbar.recipe.d.ts +5 -0
  267. package/dist/types/components/tabletoolbar/tabletoolbar.d.ts +28 -1
  268. package/dist/types/components/tabs/tabs.d.ts +11 -1
  269. package/dist/types/components/textarea/textarea.d.ts +16 -0
  270. package/dist/types/index.d.ts +8 -0
  271. package/dist/types/product/comments/comments.d.ts +9 -3
  272. package/dist/types/product/comments/comments.recipe.d.ts +12 -2
  273. package/dist/types/product/memberssettings/index.d.ts +1 -0
  274. package/dist/types/product/memberssettings/memberssettings.d.ts +85 -0
  275. package/dist/types/product/memberssettings/memberssettings.recipe.d.ts +3 -0
  276. package/dist/types/product/notificationssettings/index.d.ts +1 -0
  277. package/dist/types/product/notificationssettings/notificationssettings.d.ts +37 -0
  278. package/dist/types/product/notificationssettings/notificationssettings.recipe.d.ts +3 -0
  279. package/dist/types/product/recordpage/recordpage.d.ts +89 -2
  280. package/dist/types/product/workspacegeneralsettings/index.d.ts +1 -0
  281. package/dist/types/product/workspacegeneralsettings/workspacegeneralsettings.d.ts +48 -0
  282. package/dist/types/product/workspacegeneralsettings/workspacegeneralsettings.recipe.d.ts +3 -0
  283. package/dist/types/tokens/contract.d.ts +7 -1
  284. package/dist/types/tokens/elevation.d.ts +8 -5
  285. package/dist/types/tokens/palette.d.ts +28 -12
  286. package/dist/types/tokens/scale.d.ts +12 -1
  287. package/dist/types/tokens/semantic.d.ts +17 -0
  288. package/dist/wheelpicker.css +4 -2
  289. package/dist/wheelpicker.layered.css +4 -2
  290. package/dist/workspacegeneralsettings.css +30 -0
  291. package/dist/workspacegeneralsettings.d.ts +7 -0
  292. package/dist/workspacegeneralsettings.layered.css +32 -0
  293. package/package.json +41 -1
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.spec = exports.checkboxRecipe = void 0;
4
4
  const core_1 = require("../../core");
5
5
  const tokens_1 = require("../../tokens");
6
- // A 16px square checkbox measured from a record grid: r6, a subtle 1px
7
- // inset ring when empty, brand fill + white check when on. The check is a
8
- // data-URI SVG background so it renders reliably (input pseudo-content doesn't).
6
+ // A 16px square checkbox measured from a record grid: brand fill + white
7
+ // check when on. The check is a data-URI SVG background so it renders
8
+ // reliably (input pseudo-content doesn't). Radius (r4) and the real 1px
9
+ // border when empty are seed-design's own (your-moon/crisp#926),
10
+ // not the original 6px/box-shadow-ring measurement.
9
11
  const CHECK = "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\")";
10
12
  const spec = (0, core_1.defineSpec)({
11
13
  name: "checkbox",
@@ -17,25 +19,32 @@ const spec = (0, core_1.defineSpec)({
17
19
  margin: 0,
18
20
  width: "16px",
19
21
  height: "16px",
20
- border: "none",
21
- borderRadius: tokens_1.contract.radius.sm,
22
+ // your-moon/crisp#926: was `border: none` + a box-shadow
23
+ // inset ring -- seed-design's own checkmark (`checkmark.yaml`) is a real
24
+ // 1px border (`stroke.neutral-weak`, `borderDefault`'s exact value),
25
+ // removed entirely (not hidden via boxShadow:none) when selected, same
26
+ // technique change already made for Input (your-moon/crisp#910).
27
+ border: `1px solid ${tokens_1.contract.borderDefault}`,
28
+ // your-moon/crisp#926: seed's checkmark box corner is
29
+ // `$radius.r1` (4px, `radius.xs`), not the 6px `radius.sm` this shared
30
+ // with Chip's old rounded-rect shape.
31
+ borderRadius: tokens_1.contract.radius.xs,
22
32
  background: tokens_1.contract.bgSurface,
23
- boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${tokens_1.contract.fgPrimary} 9%, transparent)`,
24
33
  cursor: "pointer",
25
- transition: "background-color .12s, box-shadow .12s",
34
+ transition: "background-color .12s, border-color .12s",
26
35
  },
27
36
  parts: [
28
37
  {
29
38
  selector: "&:hover",
30
39
  decls: {
31
- boxShadow: `inset 0 0 0 1px color-mix(in srgb, ${tokens_1.contract.fgPrimary} 30%, transparent)`,
40
+ borderColor: `color-mix(in srgb, ${tokens_1.contract.fgPrimary} 30%, transparent)`,
32
41
  },
33
42
  },
34
43
  {
35
44
  selector: "&:checked, &:indeterminate",
36
45
  decls: {
37
46
  background: `${tokens_1.contract.bgBrandSolid} center / 10px no-repeat`,
38
- boxShadow: "none",
47
+ borderColor: "transparent",
39
48
  },
40
49
  },
41
50
  { selector: "&:checked", decls: { backgroundImage: CHECK } },
@@ -53,6 +62,49 @@ const spec = (0, core_1.defineSpec)({
53
62
  outlineOffset: "1px",
54
63
  },
55
64
  },
65
+ // your-moon/crisp#963: was no `:disabled` styling at all
66
+ // -- seed-design's own checkmark spec (`checkmark.yaml`) treats disabled
67
+ // as its own recolor, not a blanket opacity dim: fill `bg.disabled`
68
+ // (crisp's already-exact `bgNeutralWeak`, #f3f4f5), border
69
+ // `stroke.neutral-muted` (crisp's already-exact `borderSubtle`, applied
70
+ // here as the disabled border colour rather than its usual ring role).
71
+ // "disabled (any state)" per seed -- checked/indeterminate get the same
72
+ // muted fill/border, not the brand fill, hence the compound selectors
73
+ // below outranking the plain `:checked`/`:indeterminate` rule above.
74
+ {
75
+ selector: "&:disabled",
76
+ decls: {
77
+ background: tokens_1.contract.bgNeutralWeak,
78
+ borderColor: tokens_1.contract.borderSubtle,
79
+ cursor: "not-allowed",
80
+ },
81
+ },
82
+ {
83
+ // Higher specificity than the plain `&:checked, &:indeterminate` rule
84
+ // above (two pseudo-classes vs one), so this wins regardless of
85
+ // declaration order. Deliberately keeps the existing white check icon
86
+ // rather than recolouring it to seed's `fg.disabled` -- that glyph is
87
+ // baked into a static SVG data-URI with no theme-aware way to retint
88
+ // it without switching techniques entirely (mask + a separate colour
89
+ // layer), and white still reads clearly against the muted grey fill.
90
+ selector: "&:checked:disabled, &:indeterminate:disabled",
91
+ decls: {
92
+ background: `${tokens_1.contract.bgNeutralWeak} center / 10px no-repeat`,
93
+ borderColor: tokens_1.contract.borderSubtle,
94
+ },
95
+ },
96
+ { selector: "&:checked:disabled", decls: { backgroundImage: CHECK } },
97
+ {
98
+ // The `background` shorthand just above resets `background-image` to
99
+ // `none` on every property it doesn't restate -- without this, a
100
+ // disabled indeterminate checkbox would show the muted fill but lose
101
+ // its dash entirely.
102
+ selector: "&:indeterminate:disabled",
103
+ decls: {
104
+ backgroundImage: `linear-gradient(${tokens_1.contract.fgOnBrand}, ${tokens_1.contract.fgOnBrand})`,
105
+ backgroundSize: "8px 2px",
106
+ },
107
+ },
56
108
  ],
57
109
  });
58
110
  exports.spec = spec;
@@ -51,9 +51,21 @@ const chip_recipe_1 = require("./chip.recipe");
51
51
  * an inline ×) — so `Chip` has no `onRemove`/remove button yet. Add one once
52
52
  * that surface can be measured; don't guess the icon, its hit target, or its
53
53
  * spacing from the label.
54
+ *
55
+ * `appearance` (`"filled"` default | `"outline"`) and `selected` separate
56
+ * three visual roles crisp/#907's study found conflated: a filled chip reads
57
+ * as a status/value (not clickable), an outline chip reads as actionable (a
58
+ * tag or filter you can tap), and `selected` overrides either to a dark fill
59
+ * once tapped — see `chip.recipe.ts` for the structural reference.
54
60
  */
55
- exports.Chip = React.forwardRef(({ tone, truncate, className, asChild, children, ...props }, ref) => {
61
+ exports.Chip = React.forwardRef(({ tone, truncate, appearance, selected, className, asChild, children, ...props }, ref) => {
56
62
  const content = truncate && !asChild && typeof children === "string" ? ((0, jsx_runtime_1.jsx)("span", { className: "crisp-chip-label", children: children })) : (children);
57
- return ((0, jsx_runtime_1.jsx)(core_1.Primitive.span, { ref: ref, asChild: asChild, className: (0, chip_recipe_1.chipRecipe)({ tone, truncate, className }), ...props, children: content }));
63
+ return ((0, jsx_runtime_1.jsx)(core_1.Primitive.span, { ref: ref, asChild: asChild, className: (0, chip_recipe_1.chipRecipe)({
64
+ tone,
65
+ truncate,
66
+ appearance,
67
+ selected,
68
+ className,
69
+ }), ...props, children: content }));
58
70
  });
59
71
  exports.Chip.displayName = "Chip";
@@ -12,6 +12,15 @@ const tokens_1 = require("../../tokens");
12
12
  // can't be reused verbatim here — Chip's root IS the styled element, not a
13
13
  // wrapper around one. The values below are transcribed from recordTagCss,
14
14
  // not re-measured; keep the two in sync by hand if either changes.
15
+ //
16
+ // your-moon/crisp#919: `radius.chip` itself (tokens/scale.ts) moved
17
+ // from Attio's measured 7px to a pill (999px), matching seed-design's own
18
+ // `chip.yaml` (always a pill, no size-based radius step at all). Every
19
+ // consumer sharing this one token — DataTable/RecordPage/RecordsTable/
20
+ // MultiSelect's tag & mention chips, TableToolbar/DatePickerField's date
21
+ // presets — goes pill-shaped together from this single token change, not a
22
+ // per-file edit; that's the whole reason those rules keep re-declaring
23
+ // `border-radius: ${c.radius.chip}` instead of a literal.
15
24
  const ring = (v, pct) => `inset 0 0 0 1px color-mix(in srgb, ${v} ${pct}%, transparent)`;
16
25
  const soft = (v, pct) => `color-mix(in srgb, ${v} ${pct}%, transparent)`;
17
26
  const onFg = (v, pct) => `color-mix(in srgb, ${v} ${pct}%, ${tokens_1.contract.fgPrimary})`;
@@ -119,8 +128,67 @@ const spec = (0, core_1.defineSpec)({
119
128
  boxShadow: ring(tokens_1.contract.bgOrange, 30),
120
129
  },
121
130
  },
131
+ // your-moon/crisp#907: a three-state read (actionable / informational /
132
+ // selected), the same shape as seed-design's own `chip.yaml` (`variant:
133
+ // solid|outlineStrong|outlineWeak`, each with a `selected` state) --
134
+ // structural reference only, not Naver/Kakao's colours (the study only
135
+ // supplied the pattern: outline reads as tappable, filled reads as
136
+ // status, dark fill reads as selected). `outline` only clears
137
+ // `background`, keeping the `tone`'s own `color`/`boxShadow` ring --
138
+ // SEED's own spec keeps `label.color` identical between `solid` and
139
+ // `outlineWeak`/`outlineStrong`, so the ring is the only thing that
140
+ // changes. Declared after `tone` so its rule wins the cascade at equal
141
+ // specificity (`core/resolve.ts` emits variant blocks in declaration
142
+ // order; see `build/generate-recipes.mjs`).
143
+ appearance: {
144
+ filled: {},
145
+ outline: { background: "transparent" },
146
+ },
147
+ // Overrides `tone`+`appearance` entirely to crisp's own dark-inverted
148
+ // pair (`bgNeutralInverted`/`fgOnNeutralInverted`, already shipped for
149
+ // `Snackbar` #911) -- SEED's `solid`/`outlineStrong` selected state, not
150
+ // Daum's `rgb(44,46,51)` (crisp's own token is `#2a3038`, close but
151
+ // deliberately not copied). Declared last so it always wins regardless
152
+ // of `tone`/`appearance`. Simplified from SEED, which gives
153
+ // `outlineWeak` a DIFFERENT, lighter selected treatment (a stronger
154
+ // stroke + weak fill, not a full inversion) -- one consistent dark-fill
155
+ // "selected" reads clearer across every tone than three different
156
+ // selected looks, and matches what #907 actually asked for.
157
+ selected: {
158
+ true: {
159
+ background: tokens_1.contract.bgNeutralInverted,
160
+ color: tokens_1.contract.fgOnNeutralInverted,
161
+ boxShadow: "none",
162
+ },
163
+ false: {},
164
+ },
165
+ },
166
+ // Team-lead review of #955's screenshot: the neutral tone's outline ring
167
+ // reuses `borderSubtle` (`#eeeff1`, meant for hairline dividers under a
168
+ // fill, not a standalone edge) -- on outline's transparent background
169
+ // it's nearly invisible, defeating the "outline reads as tappable" point
170
+ // of the appearance itself. Every other tone's ring is already a 30%
171
+ // tint of a saturated colour, visible enough on white; only neutral needs
172
+ // the fix. Matches `Input`'s own border token, per the reviewer's note.
173
+ // `selected: false` keeps this from re-drawing a border under `selected`'s
174
+ // dark fill -- compound rules emit after every plain variant rule
175
+ // (including `selected`'s own), so without this an outline+selected+
176
+ // neutral chip would get its border back on top of `selected`'s
177
+ // `boxShadow: "none"`.
178
+ compoundVariants: [
179
+ {
180
+ tone: "neutral",
181
+ appearance: "outline",
182
+ selected: false,
183
+ decls: { boxShadow: `inset 0 0 0 1px ${tokens_1.contract.borderDefault}` },
184
+ },
185
+ ],
186
+ defaultVariants: {
187
+ tone: "neutral",
188
+ truncate: false,
189
+ appearance: "filled",
190
+ selected: false,
122
191
  },
123
- defaultVariants: { tone: "neutral", truncate: false },
124
192
  });
125
193
  exports.spec = spec;
126
194
  const config = (0, core_1.specToRecipe)(spec);
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ChipGroup = void 0;
37
+ const jsx_runtime_1 = require("react/jsx-runtime");
38
+ const React = __importStar(require("react"));
39
+ const core_1 = require("../../core");
40
+ const chipgroup_recipe_1 = require("./chipgroup.recipe");
41
+ /**
42
+ * A single-line, horizontally-scrolling row of `Chip`s (or anything else),
43
+ * with scroll-snap — for a filter/status row that would otherwise wrap onto
44
+ * a second line once it runs out of width (crisp#908). Every child snaps to
45
+ * the row's start edge and never shrinks, so scrolling always lands a chip
46
+ * flush against the left edge rather than mid-chip.
47
+ */
48
+ exports.ChipGroup = React.forwardRef(({ className, asChild, ...props }, ref) => {
49
+ return ((0, jsx_runtime_1.jsx)(core_1.Primitive.div, { ref: ref, asChild: asChild, role: "group", className: (0, chipgroup_recipe_1.chipgroupRecipe)({ className }), ...props }));
50
+ });
51
+ exports.ChipGroup.displayName = "ChipGroup";
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chipgroupRecipe = void 0;
4
+ const core_1 = require("../../core");
5
+ const tokens_1 = require("../../tokens");
6
+ // your-moon/crisp#908: a horizontally-scrolling, single-line row for a set of
7
+ // `Chip`s -- Naver/Kakao both solve "many filter/status chips" this way
8
+ // (docs/study/korean/: Naver home `comp_snap_list`, `scroll-snap-type: x
9
+ // mandatory`; Daum `UL.grid_xscroll`, native overflow with no snap). crisp
10
+ // had no equivalent: a consumer's own flex row wraps chips onto a second
11
+ // line once they run out of horizontal space, which breaks the one-line
12
+ // table-header density Attio parity is built on (GRC's own toolbar filter
13
+ // row and record tabs, per the issue). No new visual values -- the gap
14
+ // between chips reuses `Chip`'s own measured 3px inter-child gap
15
+ // (chip.recipe.ts's `gap: "3px"` comment), and the scrollbar is hidden the
16
+ // same way `WheelPicker`'s already-shipped scroll column does
17
+ // (`scrollbar-width: none` + the `-webkit-scrollbar` pseudo), not a new
18
+ // pattern invented for this component.
19
+ const config = (0, core_1.defineRecipe)({
20
+ name: "chipgroup",
21
+ base: `
22
+ display: flex; flex-wrap: nowrap; align-items: center; gap: ${tokens_1.contract.space["1.5"]};
23
+ overflow-x: auto; overscroll-behavior-x: contain;
24
+ scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
25
+ scrollbar-width: none; -ms-overflow-style: none;
26
+ &::-webkit-scrollbar { display: none; }
27
+ & > * { flex-shrink: 0; scroll-snap-align: start; }
28
+ `,
29
+ variants: {},
30
+ defaultVariants: {},
31
+ compoundVariants: [],
32
+ });
33
+ exports.chipgroupRecipe = Object.assign((0, core_1.resolveRecipe)(config), {
34
+ config,
35
+ });
36
+ exports.default = config;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chipgroupRecipe = exports.ChipGroup = void 0;
4
+ var chipgroup_1 = require("./chipgroup");
5
+ Object.defineProperty(exports, "ChipGroup", { enumerable: true, get: function () { return chipgroup_1.ChipGroup; } });
6
+ var chipgroup_recipe_1 = require("./chipgroup.recipe");
7
+ Object.defineProperty(exports, "chipgroupRecipe", { enumerable: true, get: function () { return chipgroup_recipe_1.chipgroupRecipe; } });
@@ -407,7 +407,11 @@ function renderTyped(col, value, avatarTone, row, display, locale = "en-US", ope
407
407
  const e = display ? { ...raw, name: display } : raw;
408
408
  if (!e.name)
409
409
  return empty;
410
- return ((0, jsx_runtime_1.jsxs)("span", { className: "crisp-datatable-entity", children: [(0, jsx_runtime_1.jsx)("span", { className: "crisp-datatable-avatar", "data-tone": avatarTone === "hashed" ? toneFor(raw.name) : undefined, children: e.avatar ? ((0, jsx_runtime_1.jsx)("img", { src: e.avatar, alt: "" })) : (initials(e.name).slice(0, 2)) }), col.onEntityClick ? ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-datatable-entity-name crisp-datatable-entity-name--link", onClick: (ev) => {
410
+ return ((0, jsx_runtime_1.jsxs)("span", { className: "crisp-datatable-entity", children: [(0, jsx_runtime_1.jsx)("span", { className: "crisp-datatable-avatar", "data-tone": avatarTone === "hashed" ? toneFor(raw.name) : undefined, "data-shape": col.avatarShape === "circle" ? "circle" : undefined, children: e.avatar ? ((0, jsx_runtime_1.jsx)("img", { src: e.avatar, alt: "" })) : (initials(e.name).slice(0, 2)) }), col.href ? ((0, jsx_runtime_1.jsx)("a", { href: col.href(row), className: "crisp-datatable-entity-name crisp-datatable-entity-name--link", onClick: (ev) => {
411
+ // same reasoning as onEntityClick's stopPropagation below --
412
+ // this must not also trigger the row's own onRowClick.
413
+ ev.stopPropagation();
414
+ }, children: e.name })) : col.onEntityClick ? ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-datatable-entity-name crisp-datatable-entity-name--link", onClick: (ev) => {
411
415
  // the cell's own click already just selects (see the
412
416
  // TableCell onClick above) -- this must additionally stop
413
417
  // the row's onRowClick from firing, since this name points
@@ -290,7 +290,10 @@ const config = (0, core_1.defineRecipe)({
290
290
  primary-column body cell regardless of type. Made explicit here so
291
291
  fixing that leak doesn't also (wrongly) drop entity names to 400. */
292
292
  & .crisp-datatable-entity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: ${tokens_1.contract.weight.medium}; text-decoration: underline; text-decoration-color: color-mix(in srgb, ${tokens_1.contract.fgPrimary} 9%, transparent); }
293
- & button.crisp-datatable-entity-name--link { margin: 0; padding: 0; border: none; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: start; cursor: pointer; max-width: 100%; }
293
+ /* #893: shared by the button (onEntityClick, a different record) and
294
+ the anchor (href, the row's own record) -- was button-only, which
295
+ silently left a real <a> unstyled the day #893 added one. */
296
+ & .crisp-datatable-entity-name--link { margin: 0; padding: 0; border: none; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: start; cursor: pointer; max-width: 100%; }
294
297
  /* crisp/#601, G-048: two 20px ghost icons, right-aligned in the primary
295
298
  column, revealed on ROW hover (the issue's own title says "row
296
299
  hover", and a live check confirmed hovering well past the name --
@@ -304,7 +307,13 @@ const config = (0, core_1.defineRecipe)({
304
307
  & tr:hover .crisp-datatable-entity-actions, & .crisp-datatable-entity-actions:focus-within { opacity: 1; }
305
308
  & .crisp-datatable-entity-action { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; padding: 0; border: none; border-radius: ${tokens_1.contract.radius.sm}; background: none; font-family: inherit; color: color-mix(in srgb, ${tokens_1.contract.fgPrimary} 55%, transparent); cursor: pointer; flex-shrink: 0; }
306
309
  & .crisp-datatable-entity-action:hover { background: color-mix(in srgb, ${tokens_1.contract.fgPrimary} 4%, transparent); color: ${tokens_1.contract.fgPrimary}; }
307
- & .crisp-datatable-avatar { width: ${tokens_1.contract.size.icon}; height: ${tokens_1.contract.size.icon}; border-radius: ${tokens_1.contract.radius.sm}; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; font-weight: ${tokens_1.contract.weight.semibold}; text-transform: uppercase; color: ${tokens_1.contract.fgOnBrand}; background: ${tokens_1.contract.bgBrandSolid}; }
310
+ /* #892: the default shape's radius was a stray literal (radius.sm, 6px)
311
+ -- Attio's own real company/object avatar measures 30%, which is
312
+ Avatar's own already-shipped shape="rounded" value, not a new number.
313
+ shape="circle" reuses Avatar's own shape="circle" value (radius.full)
314
+ the same way, measured live on a real Attio person avatar. */
315
+ & .crisp-datatable-avatar { width: ${tokens_1.contract.size.icon}; height: ${tokens_1.contract.size.icon}; border-radius: 30%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; font-weight: ${tokens_1.contract.weight.semibold}; text-transform: uppercase; color: ${tokens_1.contract.fgOnBrand}; background: ${tokens_1.contract.bgBrandSolid}; }
316
+ & .crisp-datatable-avatar[data-shape="circle"] { border-radius: ${tokens_1.contract.radius.full}; }
308
317
  & .crisp-datatable-avatar[data-tone="success"] { background: ${tokens_1.contract.bgSuccess}; } & .crisp-datatable-avatar[data-tone="warning"] { background: ${tokens_1.contract.bgWarning}; } & .crisp-datatable-avatar[data-tone="danger"] { background: ${tokens_1.contract.bgDanger}; } & .crisp-datatable-avatar[data-tone="purple"] { background: ${tokens_1.contract.bgPurple}; } & .crisp-datatable-avatar[data-tone="cyan"] { background: ${tokens_1.contract.bgCyan}; } & .crisp-datatable-avatar[data-tone="orange"] { background: ${tokens_1.contract.bgOrange}; }
309
318
  & .crisp-datatable-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
310
319
  & .crisp-datatable-tags { display: flex; align-items: center; gap: ${tokens_1.contract.space["1"]}; overflow: hidden; }
@@ -3,11 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dialogRecipe = void 0;
4
4
  const core_1 = require("../../core");
5
5
  const tokens_1 = require("../../tokens");
6
- // A modal dialog surface — measured from a create-record modal: a radius-16
7
- // frosted-glass card (60% tinted background + 15px backdrop blur, both re-measured
8
- // per theme — light uses a blue-tinted 3-layer shadow, dark drops to a plain
9
- // 2-layer black shadow) with a bordered header (title + close), a scrollable
10
- // body, and a bordered footer for the primary action.
6
+ // your-moon/crisp#934: was a radius-16 frosted-glass card (a
7
+ // 60%-tinted, 15px-backdrop-blurred outer shell wrapping a solid radius-12
8
+ // inner card) -- owner-directed: Dialog's identity now follows seed-design
9
+ // (daangn), whose own Dialog spec has no shadow/blur/tint property at all;
10
+ // elevation there is conveyed purely by a darker backdrop scrim plus the
11
+ // existing scale+fade entrance animation (which crisp already had). Flat
12
+ // single surface now: `.crisp-dialog-content` is a bare, invisible sizing
13
+ // wrapper (no background/radius/shadow of its own); `.crisp-dialog-card` is
14
+ // the one real surface, radius bumped from `xl` (12px) to `3xl` (20px,
15
+ // seed's own shared floating-surface radius, `$radius.r5`), no shadow.
16
+ // `bgScrim` itself also moved toward seed's own darker backdrop value
17
+ // (`tokens/palette.ts`). The alert variant no longer needs its own override
18
+ // of either rule -- both variants now render the identical flat surface.
11
19
  //
12
20
  // #414: the footer's submit-key caps (⌘/Enter) used to be one span drawing a
13
21
  // visible pill (18px, 22%-white background). Attio's own are two separate
@@ -21,10 +29,8 @@ const config = (0, core_1.defineRecipe)({
21
29
  & .crisp-dialog-backdrop { position: fixed; inset: 0; z-index: 60; background: ${tokens_1.contract.bgScrim}; }
22
30
  & .crisp-dialog-positioner { position: fixed; inset: 0; z-index: 61; display: flex; align-items: flex-start; justify-content: center; padding: 15vh ${tokens_1.contract.space["4"]} ${tokens_1.contract.space["4"]}; }
23
31
  & .crisp-dialog-positioner[data-variant="alert"] { align-items: center; padding: ${tokens_1.contract.space["4"]}; }
24
- & .crisp-dialog-content { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 90vw; max-height: 74vh; padding: ${tokens_1.contract.space["1"]}; border-radius: ${tokens_1.contract.radius["2xl"]}; background: color-mix(in srgb, ${tokens_1.contract.bgOverlayFrost} 60%, transparent); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: ${tokens_1.elevation.modal}; opacity: 1; transform: scale(1); transition: opacity 0.2s ease, transform 0.2s ease; @starting-style { opacity: 0; transform: scale(0.97); } }
25
- & .crisp-dialog-content[data-variant="alert"] { padding: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
26
- & .crisp-dialog-card { display: flex; flex-direction: column; flex: 1; min-height: 0; box-sizing: border-box; border-radius: ${tokens_1.contract.radius.xl}; background: ${tokens_1.contract.bgSurface}; box-shadow: 0 0 0 1px color-mix(in srgb, ${tokens_1.contract.fgPrimary} 8%, transparent); overflow: hidden; }
27
- & .crisp-dialog-content[data-variant="alert"] .crisp-dialog-card { border-radius: ${tokens_1.contract.radius.xl}; background: ${tokens_1.contract.bgPopover}; box-shadow: ${tokens_1.elevation.floating}; }
32
+ & .crisp-dialog-content { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 90vw; max-height: 74vh; opacity: 1; transform: scale(1); transition: opacity 0.2s ease, transform 0.2s ease; @starting-style { opacity: 0; transform: scale(0.97); } }
33
+ & .crisp-dialog-card { display: flex; flex-direction: column; flex: 1; min-height: 0; box-sizing: border-box; border-radius: ${tokens_1.contract.radius["3xl"]}; background: ${tokens_1.contract.bgSurface}; overflow: hidden; }
28
34
  & .crisp-dialog-header { display: flex; align-items: center; gap: ${tokens_1.contract.space["2"]}; flex-shrink: 0; height: 52px; padding: 0 ${tokens_1.contract.space["2"]} 0 ${tokens_1.contract.space["4"]}; border-bottom: 1px solid ${tokens_1.contract.borderSubtle}; }
29
35
  & .crisp-dialog-header svg { flex-shrink: 0; color: ${tokens_1.contract.fgMuted}; }
30
36
  & .crisp-dialog-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: ${tokens_1.contract.text.lg}; font-weight: ${tokens_1.contract.weight.medium}; color: ${tokens_1.contract.fgPrimary}; margin: 0; }
@@ -46,7 +52,12 @@ const config = (0, core_1.defineRecipe)({
46
52
  & .crisp-dialog-field { display: flex; flex-direction: column; gap: ${tokens_1.contract.space["1.5"]}; }
47
53
  & .crisp-dialog-field-label { font-size: ${tokens_1.contract.text.sm}; font-weight: ${tokens_1.contract.weight.medium}; color: color-mix(in srgb, ${tokens_1.contract.fgPrimary} 50%, transparent); }
48
54
  & .crisp-dialog-more { display: inline-flex; align-items: center; gap: ${tokens_1.contract.space["2"]}; margin-inline-end: auto; border: none; background: none; padding: 0; font-family: inherit; font-size: ${tokens_1.contract.text.md}; color: ${tokens_1.contract.fgMuted}; cursor: pointer; }
49
- & .crisp-dialog-submit { display: inline-flex; align-items: center; gap: ${tokens_1.contract.space["2"]}; height: 28px; padding: 0 ${tokens_1.contract.space["1"]} 0 ${tokens_1.contract.space["2.5"]}; border: none; border-radius: ${tokens_1.contract.radius.md}; background: ${tokens_1.contract.bgBrandSolid}; color: ${tokens_1.contract.fgOnBrand}; font-family: inherit; font-size: ${tokens_1.contract.text.md}; font-weight: ${tokens_1.contract.weight.medium}; cursor: pointer; }
55
+ /* your-moon/crisp#953: bgBrandContrast, not bgBrandSolid --
56
+ the accent (#0298d9) only clears 3.23:1 with white; the darker
57
+ sibling clears 4.5:1+, same fix already applied to Button/Badge/
58
+ Avatar (#897). Scoped to this one fill only -- Dialog's own frosted-
59
+ surface identity (#934) is untouched here. */
60
+ & .crisp-dialog-submit { display: inline-flex; align-items: center; gap: ${tokens_1.contract.space["2"]}; height: 28px; padding: 0 ${tokens_1.contract.space["1"]} 0 ${tokens_1.contract.space["2.5"]}; border: none; border-radius: ${tokens_1.contract.radius.md}; background: ${tokens_1.contract.bgBrandContrast}; color: ${tokens_1.contract.fgOnBrand}; font-family: inherit; font-size: ${tokens_1.contract.text.md}; font-weight: ${tokens_1.contract.weight.medium}; cursor: pointer; }
50
61
  & .crisp-dialog-submit-key { display: inline-flex; align-items: center; gap: ${tokens_1.contract.space["1"]}; }
51
62
  & .crisp-dialog-submit-key kbd { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0 3px; border-radius: 4px; background: transparent; color: ${tokens_1.contract.fgOnBrand}; font-family: inherit; font-style: normal; font-size: 10px; }`,
52
63
  variants: {},
@@ -31,9 +31,14 @@ const config = (0, core_1.defineRecipe)({
31
31
  // A full-view empty state (measured from a filtered-to-zero records table):
32
32
  // a 45px ringed circle icon, a 20/24 semibold heading, a 14/20 medium muted body,
33
33
  // then a primary action. Gaps are 16 / 8 / 16 (icon→title→desc→action).
34
+ // *Correction (crisp#933):* the original pass above didn't check letter-spacing.
35
+ // `records` below is the exact same title component (confirmed live at
36
+ // /techpartners/users and /techpartners/workspaces, both "No X records" at
37
+ // 20px/600/24px) and measures `-0.4px` -- exactly `c.tracking["20"]` (#909),
38
+ // not a coincidence, just a value nobody read off this element until now.
34
39
  page: `gap: ${tokens_1.contract.space["2"]};
35
40
  & .crisp-emptystate-icon { width: 45px; height: 45px; margin-bottom: ${tokens_1.contract.space["2"]}; border-radius: ${tokens_1.contract.radius.full}; border: 1px solid ${tokens_1.contract.borderSubtle}; background: none; color: ${tokens_1.contract.fgMuted}; }
36
- & .crisp-emptystate-title { font-size: 20px; line-height: 24px; }
41
+ & .crisp-emptystate-title { font-size: 20px; line-height: 24px; letter-spacing: ${tokens_1.contract.tracking["20"]}; }
37
42
  & .crisp-emptystate-desc { max-width: 266px; font-size: ${tokens_1.contract.text.lg}; font-weight: ${tokens_1.contract.weight.medium}; line-height: 20px; }
38
43
  & .crisp-emptystate-action { margin-top: ${tokens_1.contract.space["2"]}; }`,
39
44
  // #603: Attio's zero-*records* table state (Users/Workspaces with
@@ -48,7 +53,7 @@ const config = (0, core_1.defineRecipe)({
48
53
  // by the consumer via the existing `icon` prop, same as every
49
54
  // other variant.
50
55
  records: `& .crisp-emptystate-icon { width: 138px; height: 138px; margin-bottom: ${tokens_1.contract.space["2"]}; border-radius: 0; color: color-mix(in srgb, ${tokens_1.contract.fgPrimary} 22%, transparent); background: radial-gradient(circle, color-mix(in srgb, ${tokens_1.contract.fgPrimary} 12%, transparent) 1.2px, transparent 1.2px) 0 0 / 16px 16px; }
51
- & .crisp-emptystate-title { font-size: 20px; line-height: 24px; }
56
+ & .crisp-emptystate-title { font-size: 20px; line-height: 24px; letter-spacing: ${tokens_1.contract.tracking["20"]}; }
52
57
  & .crisp-emptystate-desc { max-width: 266px; font-size: ${tokens_1.contract.text.lg}; font-weight: ${tokens_1.contract.weight.medium}; line-height: 20px; }`,
53
58
  },
54
59
  },
@@ -35,6 +35,8 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.fileUploadLabels = void 0;
38
+ exports.FileUploadItem = FileUploadItem;
39
+ exports.formatSize = formatSize;
38
40
  exports.FileUpload = FileUpload;
39
41
  const jsx_runtime_1 = require("react/jsx-runtime");
40
42
  const react_file_upload_1 = require("@seed-design/react-file-upload");
@@ -54,6 +56,21 @@ exports.fileUploadLabels = {
54
56
  INVALID_TYPE: "That file type is not accepted.",
55
57
  },
56
58
  };
59
+ /**
60
+ * One row of `FileUpload`'s own accepted-file list (crisp#965) — icon-free
61
+ * name + trailing size + remove, `min-height: size.tableRow` on `bgRaised`
62
+ * (measured from a data-grid row, see `fileupload.recipe.ts`). Exported on
63
+ * its own because `FileUpload` internally only lists `File` objects from the
64
+ * current browser session; a caller with already-persisted attachments
65
+ * (fetched from a server, never a real `File`) has no `acceptedFileEntries`
66
+ * to hand it and needs the identical row for its own list instead of
67
+ * hand-rolling one.
68
+ */
69
+ function FileUploadItem({ name, size, status, progress, onRemove, removeLabel, className, }) {
70
+ return ((0, jsx_runtime_1.jsxs)("li", { className: className
71
+ ? `crisp-fileupload-item ${className}`
72
+ : "crisp-fileupload-item", "data-status": status, children: [(0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-item-name", children: name }), status === "uploading" && progress != null && ((0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-progress", role: "progressbar", "aria-valuenow": Math.round(progress), "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": name, children: (0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-progress-fill", style: { width: `${progress}%` } }) })), size != null && ((0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-item-size", children: formatSize(size) })), onRemove && ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-fileupload-remove", "aria-label": removeLabel, onClick: onRemove, children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 13, strokeWidth: 2 }) }))] }));
73
+ }
57
74
  /** 1000-based, matching how every file manager reports size. */
58
75
  function formatSize(bytes) {
59
76
  if (bytes < 1000)
@@ -140,8 +157,8 @@ function FileUpload({ className, labels, "aria-label": ariaLabel, id, accept, di
140
157
  // focus should land next.
141
158
  const rootRef = React.useRef(null);
142
159
  const focusAfterRemoval = (0, core_1.useFocusAfterRemoval)(rootRef, ".crisp-fileupload-remove", dropzoneRef);
143
- return ((0, jsx_runtime_1.jsxs)("div", { ref: rootRef, ...rest, className: (0, fileupload_recipe_1.fileuploadRecipe)({ className }), children: [(0, jsx_runtime_1.jsxs)("button", { ...dropzoneProps, ref: dropzoneRef, type: "button", className: "crisp-fileupload-zone", tabIndex: disabled ? -1 : 0, "aria-label": ariaLabel ?? t.hint, disabled: disabled, "data-dragging": dragging ? "" : undefined, "data-disabled": disabled ? "" : undefined, "data-invalid": invalid ? "" : undefined, onClick: () => openFilePicker(), children: [(0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-title", children: t.title }), (0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-hint", children: t.hint })] }), (0, jsx_runtime_1.jsx)("input", { ...hiddenInputProps, id: id ?? hiddenInputProps.id, ref: inputRef, className: "crisp-fileupload-input" }), acceptedFileEntries.length > 0 && ((0, jsx_runtime_1.jsx)("ul", { className: "crisp-fileupload-list", children: acceptedFileEntries.map((entry, i) => ((0, jsx_runtime_1.jsxs)("li", { className: "crisp-fileupload-item", "data-status": entry.status, children: [(0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-item-name", children: entry.file.name }), entry.status === "uploading" && entry.progress != null && ((0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-progress", role: "progressbar", "aria-valuenow": Math.round(entry.progress), "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": entry.file.name, children: (0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-progress-fill", style: { width: `${entry.progress}%` } }) })), (0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-item-size", children: formatSize(entry.file.size) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "crisp-fileupload-remove", "aria-label": `${t.remove}: ${entry.file.name}`, onClick: () => {
144
- focusAfterRemoval(i);
145
- removeFileEntry(entry.id);
146
- }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 13, strokeWidth: 2 }) })] }, entry.id))) })), (0, jsx_runtime_1.jsx)("ul", { className: "crisp-fileupload-errors", "aria-live": "polite", children: rejections.map((r) => ((0, jsx_runtime_1.jsx)("li", { className: "crisp-fileupload-error", children: `${r.file.name}: ${r.errors.map((e) => t.errors[e] ?? e).join(" ")}` }, r.file.name))) })] }));
160
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: rootRef, ...rest, className: (0, fileupload_recipe_1.fileuploadRecipe)({ className }), children: [(0, jsx_runtime_1.jsxs)("button", { ...dropzoneProps, ref: dropzoneRef, type: "button", className: "crisp-fileupload-zone", tabIndex: disabled ? -1 : 0, "aria-label": ariaLabel ?? t.hint, disabled: disabled, "data-dragging": dragging ? "" : undefined, "data-disabled": disabled ? "" : undefined, "data-invalid": invalid ? "" : undefined, onClick: () => openFilePicker(), children: [(0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-title", children: t.title }), (0, jsx_runtime_1.jsx)("span", { className: "crisp-fileupload-hint", children: t.hint })] }), (0, jsx_runtime_1.jsx)("input", { ...hiddenInputProps, id: id ?? hiddenInputProps.id, ref: inputRef, className: "crisp-fileupload-input" }), acceptedFileEntries.length > 0 && ((0, jsx_runtime_1.jsx)("ul", { className: "crisp-fileupload-list", children: acceptedFileEntries.map((entry, i) => ((0, jsx_runtime_1.jsx)(FileUploadItem, { name: entry.file.name, size: entry.file.size, status: entry.status, progress: entry.status === "uploading" ? entry.progress : undefined, removeLabel: `${t.remove}: ${entry.file.name}`, onRemove: () => {
161
+ focusAfterRemoval(i);
162
+ removeFileEntry(entry.id);
163
+ } }, entry.id))) })), (0, jsx_runtime_1.jsx)("ul", { className: "crisp-fileupload-errors", "aria-live": "polite", children: rejections.map((r) => ((0, jsx_runtime_1.jsx)("li", { className: "crisp-fileupload-error", children: `${r.file.name}: ${r.errors.map((e) => t.errors[e] ?? e).join(" ")}` }, r.file.name))) })] }));
147
164
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.inputRecipe = exports.Input = void 0;
3
+ exports.inputRecipe = exports.InputShell = exports.Input = void 0;
4
4
  var input_1 = require("./input");
5
5
  Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return input_1.Input; } });
6
+ Object.defineProperty(exports, "InputShell", { enumerable: true, get: function () { return input_1.InputShell; } });
6
7
  var input_recipe_1 = require("./input.recipe");
7
8
  Object.defineProperty(exports, "inputRecipe", { enumerable: true, get: function () { return input_recipe_1.inputRecipe; } });
@@ -33,15 +33,45 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Input = void 0;
36
+ exports.InputShell = exports.Input = void 0;
37
37
  const jsx_runtime_1 = require("react/jsx-runtime");
38
38
  const React = __importStar(require("react"));
39
39
  const input_recipe_1 = require("./input.recipe");
40
- exports.Input = React.forwardRef(({ size, invalid, className, style, ...props }, ref) => {
40
+ exports.Input = React.forwardRef(({ size, invalid, className, style, suffix, ...props }, ref) => {
41
41
  // The wrapper exists only to host the ::after focus ring — an <input> is a
42
42
  // replaced element and cannot have one. Everything the consumer passes
43
43
  // still lands on the <input> itself, so `id`, `name`, `onChange`, form
44
44
  // association and every native attribute behave exactly as before.
45
- return ((0, jsx_runtime_1.jsx)("span", { className: (0, input_recipe_1.inputRecipe)({ size, invalid, className }), style: style, children: (0, jsx_runtime_1.jsx)("input", { ref: ref, className: "crisp-input-value", "aria-invalid": invalid === true || undefined, ...props }) }));
45
+ return ((0, jsx_runtime_1.jsxs)("span", { className: (0, input_recipe_1.inputRecipe)({ size, invalid, className }), style: style, "data-readonly": props.readOnly ? "" : undefined, children: [(0, jsx_runtime_1.jsx)("input", { ref: ref, className: "crisp-input-value", "aria-invalid": invalid === true || undefined, ...props }), suffix != null && (0, jsx_runtime_1.jsx)("span", { className: "crisp-input-suffix", children: suffix })] }));
46
46
  });
47
47
  exports.Input.displayName = "Input";
48
+ /**
49
+ * crisp#917: the same field chrome `Input` draws (border, focus ring,
50
+ * radius, size, invalid/read-only states) around arbitrary children instead
51
+ * of a hardcoded `<input>` — for a third-party editor (CodeMirror, a
52
+ * rich-text widget, a masked-input library) that needs to mount into a
53
+ * plain element rather than a native `<input>`.
54
+ *
55
+ * Deliberately NOT `asChild` (crisp's usual `Primitive`/`Slot` pattern, used
56
+ * by `Button`/`Chip`/`Avatar`/etc. elsewhere): those merge the shell's own
57
+ * props onto ONE child, replacing it outright — correct when the shell
58
+ * and the interactive surface are the same element. `Input`'s real shape is
59
+ * TWO parts, an outer shell hosting the `::after` focus ring plus an inner
60
+ * value that carries the actual text/interaction; a rich editor mounts its
61
+ * own DOM subtree inside a container div, which is exactly what `children`
62
+ * gives it, not what replacing a single node would.
63
+ *
64
+ * Only draws the OUTER shell (`inputRecipe`'s own class — border, ring,
65
+ * radius, size-driven height, background, `data-readonly` tint) around
66
+ * `children` unchanged, the same granularity GRC's own pre-existing
67
+ * workaround (internal/grc#159, reaching into `.crisp-input`/
68
+ * `.crisp-input--size_medium` by hand) already used — NOT `.crisp-input-
69
+ * value`'s own text-field resets (`border: none`, `padding-inline`, `font:
70
+ * inherit`, …), which assume a real `<input>` and would fight a rich
71
+ * editor's own internal layout. A child that wants to fill the shell the
72
+ * way `Input`'s own `<input>` does should set its own sizing (e.g. `flex: 1
73
+ * 1 auto; min-width: 0; width: 100%; height: 100%`), same as any block
74
+ * content dropped into an `inline-flex` container.
75
+ */
76
+ exports.InputShell = React.forwardRef(({ size, invalid, className, style, suffix, readOnly, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)("div", { ref: ref, className: (0, input_recipe_1.inputRecipe)({ size, invalid, className }), style: style, "data-readonly": readOnly ? "" : undefined, ...props, children: [children, suffix != null && (0, jsx_runtime_1.jsx)("span", { className: "crisp-input-suffix", children: suffix })] })));
77
+ exports.InputShell.displayName = "InputShell";
@@ -4,11 +4,13 @@ exports.inputRecipe = void 0;
4
4
  const core_1 = require("../../core");
5
5
  const tokens_1 = require("../../tokens");
6
6
  // Geometry is measured: 32/36px tall, r8/r10, 10/12px side padding.
7
- // The shadow is `elevation.textField` (#466), not `elevation.field` — a real
8
- // typed field on Attio's own Settings page carries one 1px ring, not
9
- // `field`'s button-chrome glow/drop-shadow layers too; `field`'s own doc
10
- // comment had claimed "inputs, textareas" among its consumers, which this
11
- // corrects.
7
+ // your-moon/crisp#910: the rest-state edge used to be `elevation.textField`,
8
+ // a `box-shadow` ring (#466's fix for a real typed field's 1px ring, not
9
+ // `field`'s button-chrome glow/drop-shadow layers) -- now a real `border`,
10
+ // matching seed-design's own `text-input.yaml` (an actual border that
11
+ // THICKENS on focus/invalid, not a fixed-width ring that only recolors).
12
+ // `borderDefault` (#dcdee3) is seed's own `stroke.neutral-weak`, already the
13
+ // crisp token's exact value.
12
14
  // The FOCUS TREATMENT is seed-design's, measured from @seed-design/css: a 2px
13
15
  // ring on an ::after overlay that is present-but-transparent at rest, so
14
16
  // focusing cannot shift layout the way a width change would, and animates
@@ -23,7 +25,7 @@ const config = (0, core_1.defineRecipe)({
23
25
  name: "input",
24
26
  base: `
25
27
  position: relative; box-sizing: border-box; display: inline-flex; align-items: center;
26
- width: 100%; background: ${tokens_1.contract.bgSurface}; box-shadow: ${tokens_1.elevation.textField};
28
+ width: 100%; background: ${tokens_1.contract.bgSurface}; border: 1px solid ${tokens_1.contract.borderDefault};
27
29
  font-family: ${tokens_1.contract.font.sans}; font-size: ${tokens_1.contract.text.lg}; line-height: 20px;
28
30
 
29
31
  &::after {
@@ -41,6 +43,16 @@ const config = (0, core_1.defineRecipe)({
41
43
  & .crisp-input-value::placeholder { color: ${tokens_1.contract.fgMuted}; }
42
44
  & .crisp-input-value:disabled { opacity: 0.5; cursor: not-allowed; }
43
45
  &:has(.crisp-input-value:disabled) { opacity: 1; }
46
+
47
+ /* crisp#634: measured live on Attio's own Settings > Profile read-only
48
+ primary-email field -- a tinted field, not just muted text, driven off
49
+ the native \`readOnly\` attribute. \`ringField\` (rgba(0,0,0,.06)) is an
50
+ exact match for the measured ring; the 2%-fgPrimary tint reuses the
51
+ same color-mix idiom every other soft crisp surface already uses.
52
+ \`border-color: transparent\` neutralises #910's new real rest border
53
+ so this measured ring isn't drawn twice. */
54
+ &[data-readonly] { background: color-mix(in srgb, ${tokens_1.contract.fgPrimary} 2%, transparent); border-color: transparent; box-shadow: inset 0 0 0 1px ${tokens_1.contract.ringField}; }
55
+ & .crisp-input-suffix { flex-shrink: 0; margin-inline-start: ${tokens_1.contract.space["1"]}; }
44
56
  `,
45
57
  variants: {
46
58
  size: {
@@ -51,7 +63,10 @@ const config = (0, core_1.defineRecipe)({
51
63
  // padding `medium` already uses, just 4px shorter.
52
64
  sm: `height: ${tokens_1.contract.size.row}; border-radius: ${tokens_1.contract.radius.md}; & .crisp-input-value { padding-inline: ${tokens_1.contract.space["2.5"]}; }`,
53
65
  medium: `height: 32px; border-radius: ${tokens_1.contract.radius.md}; & .crisp-input-value { padding-inline: ${tokens_1.contract.space["2.5"]}; }`,
54
- large: `height: 36px; border-radius: 10px; & .crisp-input-value { padding-inline: ${tokens_1.contract.space["3"]}; }`,
66
+ // your-moon/crisp#910: was a stray literal \`10px\` -- seed's own
67
+ // large-size field radius is \`$radius.r3\` = 12px (\`text-input.yaml\`),
68
+ // matching Button's own \`lg\` fix in the same PR.
69
+ large: `height: 36px; border-radius: ${tokens_1.contract.radius.xl}; & .crisp-input-value { padding-inline: ${tokens_1.contract.space["3"]}; }`,
55
70
  },
56
71
  invalid: {
57
72
  // critical outranks focus: a field that is wrong stays visibly wrong