@lerianstudio/sindarian-ui 2.0.0-beta.2 → 2.0.0-beta.21

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 (227) hide show
  1. package/LICENSE +93 -0
  2. package/README.md +52 -1
  3. package/dist/components/breadcrumb/index.d.ts.map +1 -1
  4. package/dist/components/breadcrumb/index.js +25 -1
  5. package/dist/components/card/account-card/index.js +5 -5
  6. package/dist/components/card/basic-card/index.d.ts.map +1 -1
  7. package/dist/components/card/basic-card/index.js +2 -2
  8. package/dist/components/card/entity-card/index.js +1 -1
  9. package/dist/components/dialog/confirmation-dialog/index.d.ts.map +1 -1
  10. package/dist/components/dialog/confirmation-dialog/index.js +4 -1
  11. package/dist/components/entity-box/index.d.ts +18 -2
  12. package/dist/components/entity-box/index.d.ts.map +1 -1
  13. package/dist/components/entity-box/index.js +32 -4
  14. package/dist/components/form/date-picker-field/index.js +1 -1
  15. package/dist/components/form/date-range-field/index.js +1 -1
  16. package/dist/components/form/date-time-picker-field/index.js +1 -1
  17. package/dist/components/form/password-field/index.d.ts +5 -1
  18. package/dist/components/form/password-field/index.d.ts.map +1 -1
  19. package/dist/components/form/password-field/index.js +2 -2
  20. package/dist/components/form/select-field/index.d.ts +15 -1
  21. package/dist/components/form/select-field/index.d.ts.map +1 -1
  22. package/dist/components/form/select-field/index.js +28 -3
  23. package/dist/components/form/switch-field/index.d.ts.map +1 -1
  24. package/dist/components/form/switch-field/index.js +6 -1
  25. package/dist/components/page/index.d.ts +35 -1
  26. package/dist/components/page/index.d.ts.map +1 -1
  27. package/dist/components/page/index.js +6 -2
  28. package/dist/components/page-header/index.js +1 -1
  29. package/dist/components/table/id-table-cell.d.ts +13 -1
  30. package/dist/components/table/id-table-cell.d.ts.map +1 -1
  31. package/dist/components/table/id-table-cell.js +99 -9
  32. package/dist/components/table/index.d.ts +1 -0
  33. package/dist/components/table/index.d.ts.map +1 -1
  34. package/dist/components/table/index.js +1 -0
  35. package/dist/components/table/locked-table-actions.d.ts +24 -0
  36. package/dist/components/table/locked-table-actions.d.ts.map +1 -1
  37. package/dist/components/table/locked-table-actions.js +31 -1
  38. package/dist/components/table/name-table-cell.d.ts +57 -4
  39. package/dist/components/table/name-table-cell.d.ts.map +1 -1
  40. package/dist/components/table/name-table-cell.js +50 -2
  41. package/dist/components/ui/autocomplete/index.d.ts +24 -0
  42. package/dist/components/ui/autocomplete/index.d.ts.map +1 -1
  43. package/dist/components/ui/autocomplete/index.js +24 -0
  44. package/dist/components/ui/badge/index.d.ts +11 -7
  45. package/dist/components/ui/badge/index.d.ts.map +1 -1
  46. package/dist/components/ui/badge/index.js +20 -8
  47. package/dist/components/ui/button/index.d.ts +3 -3
  48. package/dist/components/ui/copy-field/index.d.ts +25 -1
  49. package/dist/components/ui/copy-field/index.d.ts.map +1 -1
  50. package/dist/components/ui/copy-field/index.js +16 -8
  51. package/dist/components/ui/dialog/index.d.ts +1 -1
  52. package/dist/components/ui/dialog/index.d.ts.map +1 -1
  53. package/dist/components/ui/dialog/index.js +2 -2
  54. package/dist/components/ui/file-upload/index.d.ts +159 -0
  55. package/dist/components/ui/file-upload/index.d.ts.map +1 -1
  56. package/dist/components/ui/file-upload/index.js +308 -6
  57. package/dist/components/ui/icon-button/index.d.ts +1 -1
  58. package/dist/components/ui/icon-button/styles.css +42 -0
  59. package/dist/components/ui/input/styles.css +79 -4
  60. package/dist/components/ui/lerian-wordmark/index.d.ts +6 -0
  61. package/dist/components/ui/lerian-wordmark/index.d.ts.map +1 -0
  62. package/dist/components/ui/lerian-wordmark/index.js +7 -0
  63. package/dist/components/ui/otp-input/index.js +1 -1
  64. package/dist/components/ui/radio-group/index.js +1 -1
  65. package/dist/components/ui/select/index.d.ts.map +1 -1
  66. package/dist/components/ui/select/index.js +8 -4
  67. package/dist/components/ui/select/styles.css +1 -1
  68. package/dist/components/ui/sheet/index.d.ts +42 -0
  69. package/dist/components/ui/sheet/index.d.ts.map +1 -1
  70. package/dist/components/ui/sheet/index.js +47 -14
  71. package/dist/components/ui/sidebar/index.d.ts +1 -0
  72. package/dist/components/ui/sidebar/index.d.ts.map +1 -1
  73. package/dist/components/ui/sidebar/index.js +1 -0
  74. package/dist/components/ui/sidebar/sidebar-expand-button.d.ts +1 -1
  75. package/dist/components/ui/sidebar/sidebar-expand-button.d.ts.map +1 -1
  76. package/dist/components/ui/sidebar/sidebar-expand-button.js +15 -1
  77. package/dist/components/ui/sidebar/sidebar-item.d.ts +1 -1
  78. package/dist/components/ui/sidebar/sidebar-item.d.ts.map +1 -1
  79. package/dist/components/ui/sidebar/sidebar-item.js +28 -4
  80. package/dist/components/ui/sidebar/sidebar-provider.d.ts +58 -0
  81. package/dist/components/ui/sidebar/sidebar-provider.d.ts.map +1 -1
  82. package/dist/components/ui/sidebar/sidebar-provider.js +146 -4
  83. package/dist/components/ui/sidebar/sidebar-root.d.ts +38 -1
  84. package/dist/components/ui/sidebar/sidebar-root.d.ts.map +1 -1
  85. package/dist/components/ui/sidebar/sidebar-root.js +111 -5
  86. package/dist/components/ui/sidebar/sidebar-trigger.d.ts +45 -0
  87. package/dist/components/ui/sidebar/sidebar-trigger.d.ts.map +1 -0
  88. package/dist/components/ui/sidebar/sidebar-trigger.js +57 -0
  89. package/dist/components/ui/textarea/index.js +1 -1
  90. package/dist/components/ui/toast/toaster.d.ts +5 -1
  91. package/dist/components/ui/toast/toaster.d.ts.map +1 -1
  92. package/dist/components/ui/toast/toaster.js +3 -2
  93. package/dist/enterprise/data-table/index.d.ts +77 -7
  94. package/dist/enterprise/data-table/index.d.ts.map +1 -1
  95. package/dist/enterprise/data-table/index.js +56 -11
  96. package/dist/enterprise/date-range-picker/index.js +4 -4
  97. package/dist/enterprise/number-input/index.d.ts.map +1 -1
  98. package/dist/enterprise/number-input/index.js +1 -1
  99. package/dist/esm/components/breadcrumb/index.d.ts.map +1 -1
  100. package/dist/esm/components/breadcrumb/index.js +25 -1
  101. package/dist/esm/components/card/account-card/index.js +5 -5
  102. package/dist/esm/components/card/basic-card/index.d.ts.map +1 -1
  103. package/dist/esm/components/card/basic-card/index.js +2 -2
  104. package/dist/esm/components/card/entity-card/index.js +1 -1
  105. package/dist/esm/components/dialog/confirmation-dialog/index.d.ts.map +1 -1
  106. package/dist/esm/components/dialog/confirmation-dialog/index.js +4 -1
  107. package/dist/esm/components/entity-box/index.d.ts +18 -2
  108. package/dist/esm/components/entity-box/index.d.ts.map +1 -1
  109. package/dist/esm/components/entity-box/index.js +29 -4
  110. package/dist/esm/components/form/date-picker-field/index.js +1 -1
  111. package/dist/esm/components/form/date-range-field/index.js +1 -1
  112. package/dist/esm/components/form/date-time-picker-field/index.js +1 -1
  113. package/dist/esm/components/form/password-field/index.d.ts +5 -1
  114. package/dist/esm/components/form/password-field/index.d.ts.map +1 -1
  115. package/dist/esm/components/form/password-field/index.js +2 -2
  116. package/dist/esm/components/form/select-field/index.d.ts +15 -1
  117. package/dist/esm/components/form/select-field/index.d.ts.map +1 -1
  118. package/dist/esm/components/form/select-field/index.js +29 -4
  119. package/dist/esm/components/form/switch-field/index.d.ts.map +1 -1
  120. package/dist/esm/components/form/switch-field/index.js +7 -2
  121. package/dist/esm/components/page/index.d.ts +35 -1
  122. package/dist/esm/components/page/index.d.ts.map +1 -1
  123. package/dist/esm/components/page/index.js +6 -2
  124. package/dist/esm/components/page-header/index.js +1 -1
  125. package/dist/esm/components/table/id-table-cell.d.ts +13 -1
  126. package/dist/esm/components/table/id-table-cell.d.ts.map +1 -1
  127. package/dist/esm/components/table/id-table-cell.js +100 -7
  128. package/dist/esm/components/table/index.d.ts +1 -0
  129. package/dist/esm/components/table/index.d.ts.map +1 -1
  130. package/dist/esm/components/table/index.js +1 -0
  131. package/dist/esm/components/table/locked-table-actions.d.ts +24 -0
  132. package/dist/esm/components/table/locked-table-actions.d.ts.map +1 -1
  133. package/dist/esm/components/table/locked-table-actions.js +31 -1
  134. package/dist/esm/components/table/name-table-cell.d.ts +57 -4
  135. package/dist/esm/components/table/name-table-cell.d.ts.map +1 -1
  136. package/dist/esm/components/table/name-table-cell.js +50 -2
  137. package/dist/esm/components/ui/autocomplete/index.d.ts +24 -0
  138. package/dist/esm/components/ui/autocomplete/index.d.ts.map +1 -1
  139. package/dist/esm/components/ui/autocomplete/index.js +24 -0
  140. package/dist/esm/components/ui/badge/index.d.ts +11 -7
  141. package/dist/esm/components/ui/badge/index.d.ts.map +1 -1
  142. package/dist/esm/components/ui/badge/index.js +20 -8
  143. package/dist/esm/components/ui/button/index.d.ts +3 -3
  144. package/dist/esm/components/ui/copy-field/index.d.ts +25 -1
  145. package/dist/esm/components/ui/copy-field/index.d.ts.map +1 -1
  146. package/dist/esm/components/ui/copy-field/index.js +16 -8
  147. package/dist/esm/components/ui/dialog/index.d.ts +1 -1
  148. package/dist/esm/components/ui/dialog/index.d.ts.map +1 -1
  149. package/dist/esm/components/ui/dialog/index.js +3 -3
  150. package/dist/esm/components/ui/file-upload/index.d.ts +159 -0
  151. package/dist/esm/components/ui/file-upload/index.d.ts.map +1 -1
  152. package/dist/esm/components/ui/file-upload/index.js +307 -5
  153. package/dist/esm/components/ui/icon-button/index.d.ts +1 -1
  154. package/dist/esm/components/ui/lerian-wordmark/index.d.ts +6 -0
  155. package/dist/esm/components/ui/lerian-wordmark/index.d.ts.map +1 -0
  156. package/dist/esm/components/ui/lerian-wordmark/index.js +4 -0
  157. package/dist/esm/components/ui/otp-input/index.js +1 -1
  158. package/dist/esm/components/ui/radio-group/index.js +1 -1
  159. package/dist/esm/components/ui/select/index.d.ts.map +1 -1
  160. package/dist/esm/components/ui/select/index.js +8 -4
  161. package/dist/esm/components/ui/sheet/index.d.ts +42 -0
  162. package/dist/esm/components/ui/sheet/index.d.ts.map +1 -1
  163. package/dist/esm/components/ui/sheet/index.js +48 -15
  164. package/dist/esm/components/ui/sidebar/index.d.ts +1 -0
  165. package/dist/esm/components/ui/sidebar/index.d.ts.map +1 -1
  166. package/dist/esm/components/ui/sidebar/index.js +1 -0
  167. package/dist/esm/components/ui/sidebar/sidebar-expand-button.d.ts +1 -1
  168. package/dist/esm/components/ui/sidebar/sidebar-expand-button.d.ts.map +1 -1
  169. package/dist/esm/components/ui/sidebar/sidebar-expand-button.js +15 -1
  170. package/dist/esm/components/ui/sidebar/sidebar-item.d.ts +1 -1
  171. package/dist/esm/components/ui/sidebar/sidebar-item.d.ts.map +1 -1
  172. package/dist/esm/components/ui/sidebar/sidebar-item.js +28 -4
  173. package/dist/esm/components/ui/sidebar/sidebar-provider.d.ts +58 -0
  174. package/dist/esm/components/ui/sidebar/sidebar-provider.d.ts.map +1 -1
  175. package/dist/esm/components/ui/sidebar/sidebar-provider.js +143 -1
  176. package/dist/esm/components/ui/sidebar/sidebar-root.d.ts +38 -1
  177. package/dist/esm/components/ui/sidebar/sidebar-root.d.ts.map +1 -1
  178. package/dist/esm/components/ui/sidebar/sidebar-root.js +113 -7
  179. package/dist/esm/components/ui/sidebar/sidebar-trigger.d.ts +45 -0
  180. package/dist/esm/components/ui/sidebar/sidebar-trigger.d.ts.map +1 -0
  181. package/dist/esm/components/ui/sidebar/sidebar-trigger.js +53 -0
  182. package/dist/esm/components/ui/textarea/index.js +1 -1
  183. package/dist/esm/components/ui/toast/toaster.d.ts +5 -1
  184. package/dist/esm/components/ui/toast/toaster.d.ts.map +1 -1
  185. package/dist/esm/components/ui/toast/toaster.js +3 -2
  186. package/dist/esm/enterprise/data-table/index.d.ts +77 -7
  187. package/dist/esm/enterprise/data-table/index.d.ts.map +1 -1
  188. package/dist/esm/enterprise/data-table/index.js +57 -12
  189. package/dist/esm/enterprise/date-range-picker/index.js +4 -4
  190. package/dist/esm/enterprise/number-input/index.d.ts.map +1 -1
  191. package/dist/esm/enterprise/number-input/index.js +1 -1
  192. package/dist/esm/hooks/use-toast.d.ts +18 -2
  193. package/dist/esm/hooks/use-toast.d.ts.map +1 -1
  194. package/dist/esm/hooks/use-toast.js +60 -16
  195. package/dist/esm/index.d.ts +3 -0
  196. package/dist/esm/index.d.ts.map +1 -1
  197. package/dist/esm/index.js +3 -0
  198. package/dist/esm/lib/utils.d.ts +2 -0
  199. package/dist/esm/lib/utils.d.ts.map +1 -1
  200. package/dist/esm/lib/utils.js +10 -0
  201. package/dist/esm/toast/helpers.d.ts +13 -0
  202. package/dist/esm/toast/helpers.d.ts.map +1 -1
  203. package/dist/esm/toast/helpers.js +8 -1
  204. package/dist/fonts/OFL.txt +96 -0
  205. package/dist/fonts/ibm-plex-mono-latin-400.woff2 +0 -0
  206. package/dist/fonts/ibm-plex-mono-latin-500.woff2 +0 -0
  207. package/dist/fonts/ibm-plex-serif-latin-400.woff2 +0 -0
  208. package/dist/fonts/ibm-plex-serif-latin-500.woff2 +0 -0
  209. package/dist/fonts/inter-latin.woff2 +0 -0
  210. package/dist/fonts.css +46 -0
  211. package/dist/globals.css +62 -362
  212. package/dist/hooks/use-toast.d.ts +18 -2
  213. package/dist/hooks/use-toast.d.ts.map +1 -1
  214. package/dist/hooks/use-toast.js +61 -16
  215. package/dist/index.d.ts +3 -0
  216. package/dist/index.d.ts.map +1 -1
  217. package/dist/index.js +3 -0
  218. package/dist/lib/utils.d.ts +2 -0
  219. package/dist/lib/utils.d.ts.map +1 -1
  220. package/dist/lib/utils.js +11 -0
  221. package/dist/public/wordmark.svg +1 -0
  222. package/dist/standalone.css +10 -0
  223. package/dist/toast/helpers.d.ts +13 -0
  224. package/dist/toast/helpers.d.ts.map +1 -1
  225. package/dist/toast/helpers.js +8 -1
  226. package/dist/tokens.css +367 -0
  227. package/package.json +9 -6
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ exports.cn = exports.ApplicationBreadcrumb = void 0;
19
19
  // Primitives
20
20
  __exportStar(require("./components/ui/alert"), exports);
21
21
  __exportStar(require("./components/ui/autocomplete"), exports);
22
+ __exportStar(require("./hooks/use-click-away"), exports);
22
23
  __exportStar(require("./components/ui/autosize-textarea"), exports);
23
24
  __exportStar(require("./components/ui/avatar"), exports);
24
25
  __exportStar(require("./components/ui/badge"), exports);
@@ -36,6 +37,7 @@ __exportStar(require("./components/ui/dropdown-menu"), exports);
36
37
  __exportStar(require("./components/ui/input"), exports);
37
38
  __exportStar(require("./components/ui/otp-input"), exports);
38
39
  __exportStar(require("./components/ui/label"), exports);
40
+ __exportStar(require("./components/ui/lerian-wordmark"), exports);
39
41
  __exportStar(require("./components/ui/loading-button"), exports);
40
42
  __exportStar(require("./components/ui/multiple-select"), exports);
41
43
  __exportStar(require("./components/ui/paper"), exports);
@@ -58,6 +60,7 @@ __exportStar(require("./components/ui/toast"), exports);
58
60
  __exportStar(require("./components/ui/toast/toaster"), exports);
59
61
  __exportStar(require("./hooks/use-toast"), exports);
60
62
  __exportStar(require("./components/ui/time-picker"), exports);
63
+ __exportStar(require("./hooks/use-time"), exports);
61
64
  __exportStar(require("./components/ui/tooltip"), exports);
62
65
  __exportStar(require("./components/ui/form"), exports);
63
66
  // Components
@@ -1,3 +1,5 @@
1
1
  import { type ClassValue } from 'clsx';
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
+ /** Wraps a Radix `onInteractOutside` so a press on a toast never dismisses the layer under it. */
4
+ export declare function keepOpenOnToast<E extends Event>(onInteractOutside?: (event: E) => void): (event: E) => void;
3
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AA8B5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AA8B5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,kGAAkG;AAClG,wBAAgB,eAAe,CAAC,CAAC,SAAS,KAAK,EAC7C,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,IAE9B,OAAO,CAAC,UASjB"}
package/dist/lib/utils.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cn = cn;
4
+ exports.keepOpenOnToast = keepOpenOnToast;
4
5
  const clsx_1 = require("clsx");
5
6
  const tailwind_merge_1 = require("tailwind-merge");
6
7
  /**
@@ -32,3 +33,13 @@ const twMerge = (0, tailwind_merge_1.extendTailwindMerge)({
32
33
  function cn(...inputs) {
33
34
  return twMerge((0, clsx_1.clsx)(inputs));
34
35
  }
36
+ /** Wraps a Radix `onInteractOutside` so a press on a toast never dismisses the layer under it. */
37
+ function keepOpenOnToast(onInteractOutside) {
38
+ return (event) => {
39
+ if (event.target?.closest('[data-sonner-toaster]')) {
40
+ event.preventDefault();
41
+ return;
42
+ }
43
+ onInteractOutside?.(event);
44
+ };
45
+ }
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 1090.88 280" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M619.42,29.69c0,15.43-10.87,27.93-27.93,27.93s-27.93-12.51-27.93-27.93,10.86-27.93,27.92-27.93,27.93,12.51,27.93,27.93h0ZM158.64,242.4v33.54H12.13v-33.55h48.36c3.16,0,5.73-2.57,5.73-5.73V87.77c0-3.16-2.57-5.73-5.73-5.73H7.85v-34.31h98.33v188.94c0,3.16,2.57,5.73,5.73,5.73h46.74ZM168.85,179.86c0,58.52,37.29,98.33,99.47,98.33,49.15,0,79.7-30.6,86.27-67.08h-40.69c-6.29,24.54-26.97,33.91-48.61,33.91-48.85,0-53.41-45.18-53.83-55-.04-1.02.77-1.87,1.79-1.87h143.61c.76-5.26,1.13-10.42,1.13-15.44,0-32.71-20.25-91.92-95.33-91.92-57.04,0-93.8,41.26-93.81,99.07ZM314.47,158.39l-99.49.02c-1.08,0-1.94-.96-1.78-2.02,4.49-31.28,30.98-42.82,50.98-42.82,33.88,0,48.71,21.59,52.08,42.79.17,1.08-.69,2.04-1.78,2.04h0ZM867.2,83.16h0s0,0,0,0h0ZM826.87,83.16h40.33v192.83h-40.32v-24.53c0-3.09-3.92-4.41-5.79-1.95-.18.23-.35.47-.53.71h0s0,.02,0,.02h0c-.11.16-.23.32-.35.47-7.92,10.56-20.68,27.53-56.24,27.53-60.83,0-91.19-46.33-91.19-98.7,0-61.42,40.37-98.72,91.17-98.72,36.73,0,48.44,15.73,56.64,26.75l.49.66c1.86,2.49,5.81,1.18,5.81-1.93v-23.14ZM770.75,115.48c34.78,0,56.14,27.81,56.14,64.8h0c0,42-26.32,63.68-56.14,63.68-34.83,0-56.14-27.43-56.14-64.43,0-42.07,26.11-64.05,56.14-64.05ZM1063.39,101.7c14.42,14.06,21.64,36.67,21.64,67.8v106.25h-41.06v-103.99c0-43.98-22.35-56.14-45.96-56.14-31.99,0-51.6,23.22-51.6,62.92v97.21h-40.68V83.15h39.93v25.07c0,3.11,3.95,4.4,5.82,1.92,8.55-11.4,26.72-29.52,55.98-29.52,37.55,0,55.75,20.88,55.93,21.08ZM657.42,275.94v-33.54h0s-37.37,0-37.37,0c-3.16,0-5.73-2.57-5.73-5.73V83.14h-81.34v34.31h37.54c3.16,0,5.73,2.57,5.73,5.73v113.48c0,3.16-2.57,5.73-5.73,5.73h-38.14v33.55h125.03ZM499.27,119.27c0,.13-.1.23-.23.23h0s-36.31,0-36.31,0c-28.68,0-28.65,24.99-28.64,43.62,0,.46,0,.92,0,1.37v111.24c0,.13-.1.23-.23.23h-41.01c-.13,0-.23-.1-.23-.23V83.27c0-.13.1-.23.23-.23h36.49c.13,0,.23.1.23.23v24.03c0,4.05,5.24,5.65,7.49,2.28.22-.32.43-.64.65-.97,8.18-12.25,18.71-28.02,52.51-28.02h9.05v38.68Z"/></svg>
@@ -0,0 +1,10 @@
1
+ /* One-link entry for pages without React or Tailwind. Light is :root; dark is
2
+ class="dark" on <html>, set by the page. No element reset. */
3
+ @import './fonts.css';
4
+ @import './tokens.css';
5
+
6
+ html {
7
+ font-family: var(--font-stack-sans);
8
+ color: hsl(var(--foreground));
9
+ background: hsl(var(--background));
10
+ }
@@ -1,6 +1,12 @@
1
1
  import type { ToastActionElement } from '../components/ui/toast';
2
2
  /** Extra toast props for the severity helpers (the variant is fixed per helper). */
3
3
  export interface ToastOptions {
4
+ /**
5
+ * Caller-controlled toast identity. A repeat under the same id updates the
6
+ * toast in place instead of stacking a second one; omit it and a destructive
7
+ * toast derives its own from the title and description.
8
+ */
9
+ id?: string | number;
4
10
  /** Optional action element rendered inside the toast. */
5
11
  action?: ToastActionElement;
6
12
  /**
@@ -9,6 +15,13 @@ export interface ToastOptions {
9
15
  * it, so it is not rendered. Put it in `description` if it must be visible.
10
16
  */
11
17
  errorCode?: string;
18
+ /**
19
+ * Auto-dismiss delay in ms, overriding the variant's own lifetime for this
20
+ * one call. Must be greater than 0 -- sonner reads `0` as unset and falls
21
+ * back to the `<Toaster />` default. Omit it and `errorToast` stays until
22
+ * dismissed while `successToast` and `warningToast` close after 10s.
23
+ */
24
+ duration?: number;
12
25
  }
13
26
  export declare function successToast(title: string, description?: string, opts?: Partial<ToastOptions>): void;
14
27
  export declare function errorToast(title: string, description?: string, opts?: Partial<ToastOptions>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/toast/helpers.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE/D,oFAAoF;AACpF,MAAM,WAAW,YAAY;IAC3B,yDAAyD;IACzD,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAWD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAC3B,IAAI,CAEN;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAC3B,IAAI,CAEN;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAC3B,IAAI,CAEN"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/toast/helpers.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE/D,oFAAoF;AACpF,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,yDAAyD;IACzD,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAkBD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAC3B,IAAI,CAEN;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAC3B,IAAI,CAEN;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAC3B,IAAI,CAEN"}
@@ -21,7 +21,14 @@ exports.warningToast = warningToast;
21
21
  */
22
22
  const use_toast_1 = require("../hooks/use-toast");
23
23
  function raise(variant, title, description, opts) {
24
- (0, use_toast_1.toast)({ action: opts?.action, variant, title, description });
24
+ (0, use_toast_1.toast)({
25
+ action: opts?.action,
26
+ variant,
27
+ title,
28
+ description,
29
+ duration: opts?.duration,
30
+ id: opts?.id
31
+ });
25
32
  }
26
33
  function successToast(title, description, opts) {
27
34
  raise('success', title, description, opts);
@@ -0,0 +1,367 @@
1
+ @layer base {
2
+ :root {
3
+ color-scheme: light; /* native widgets (form controls, scrollbars) follow the theme */
4
+
5
+ /*
6
+ Sidebar geometry. These were literals inside SidebarRoot's cva
7
+ (`w-[244px]` / `w-[72px]`), which a consumer could only override by
8
+ winning a specificity argument with `cn`. As custom properties the
9
+ default still ships with this sheet.
10
+
11
+ TWO places to re-point them, and only these two:
12
+ - on the rail, via `className="[--sidebar-width:280px]"`. SidebarRoot
13
+ copies exactly these two arbitrary-property classes onto the mobile
14
+ drawer's own element, so one class moves the rail AND the drawer.
15
+ - on `:root` or `html`, which every layout inherits from.
16
+
17
+ NOT on a React-tree wrapper above the rail: that reaches the rail, but
18
+ the mobile drawer is portalled into document.body, and custom properties
19
+ inherit down the DOM tree. A wrapper is not an ancestor of the portal;
20
+ `:root` is.
21
+
22
+ They are theme-independent on purpose: a rail is not wider in the dark.
23
+ */
24
+ --sidebar-width: 244px;
25
+ --sidebar-width-collapsed: 72px;
26
+
27
+ /* Application tokens (from Figma ring-tokens) */
28
+ --body-surface: 240 5% 96%; /* base/100 = #F4F4F5 */
29
+ /*
30
+ --body-text and --container-text below both step one notch off base/500.
31
+ base/500 clears AA on white (4.86:1) but not on --body-surface, the
32
+ recessed page ground, where it read 4.43:1. That ground is exactly where
33
+ the components carrying these two tokens sit: the resting tabs trigger
34
+ (text-sm font-medium, and its hover fill is --card precisely because the
35
+ resting ground is not white), the breadcrumb page and separator, the
36
+ stepper item text and description. An axe crawl of the br-sfn cockpit
37
+ flagged .text-body-text on 2026-09-06; the ratio it printed does not
38
+ reproduce here, and the measured pair on this token's own ground is
39
+ 4.40:1 at 8-bit precision (4.43:1 in float).
40
+
41
+ 45% is the smallest step that clears it: 4.59:1 on --body-surface, up
42
+ from 4.43:1, and 5.04:1 on white. Both stay eleven notches clear of
43
+ --container-title (base/600), so the text-versus-title step holds.
44
+
45
+ Deliberately not stepped far enough to clear --muted (#E4E4E7), which
46
+ would take base/500 minus five notches and visibly darken tabs,
47
+ breadcrumbs and steppers. No component in THIS kit paints either token on
48
+ that fill. A consumer that does is a call-site fix on its side, not a
49
+ clean bill from here: product-console's extract-table pairs bg-muted with
50
+ text-body-text and reads 3.98:1 in light.
51
+ */
52
+ --body-text: 240 4% 45%; /* one notch off base/500: #6E6E77, AA on body-surface */
53
+ --body-title: 240 5% 26%; /* base/700 = #3F3F46 */
54
+ --container-surface: 0 0% 100%; /* base/white = #FFFFFF */
55
+ --container-text: 240 4% 45%; /* one notch off base/500: #6E6E77, AA on body-surface */
56
+ --container-title: 240 5% 34%; /* base/600 = #52525B */
57
+ --container-border: 0 0% 100%; /* #FFFFFF */
58
+ --link: 240 4% 16%; /* base/800 = #27272A */
59
+ --link-hover: 240 4% 16%; /* #27272A with 80% opacity via /80 */
60
+ --link-mute: 240 4% 16%; /* #27272A with 40% opacity via /40 */
61
+ --button-primary-surface: 240 4% 16%; /* base/800 = #27272A */
62
+ --button-primary-text: 0 0% 100%; /* base/white */
63
+
64
+ /* Shadcn semantic tokens (aligned with Figma) */
65
+ --background: 0 0% 100%; /* base/white = #FFFFFF */
66
+ --foreground: 240 5% 26%; /* base/700 = #3F3F46 */
67
+ --card: 0 0% 100%; /* = container-surface (white) */
68
+ /* Held at base/500, the step --container-text just moved off: this token's
69
+ own ground is --card (white), where base/500 clears AA at 4.86:1. It
70
+ measures 3.84:1 over --muted, but no component in this kit renders it
71
+ there: the data table pins its own inks rather than inheriting this one
72
+ (`ui/table/index.tsx`: cells take text-foreground, heads take
73
+ text-muted-foreground), so the hovered-row ground never sits under this
74
+ token. */
75
+ --card-foreground: 240 4% 46%; /* base/500 = #71717A */
76
+ --popover: 0 0% 100%; /* base/white */
77
+ --popover-foreground: 240 5% 34%; /* base/600 = #52525B */
78
+ --primary: 240 4% 16%; /* base/800 = #27272A */
79
+ --primary-foreground: 0 0% 100%; /* base/white */
80
+ --secondary: 0 0% 100%; /* base/white */
81
+ --secondary-foreground: 240 5% 34%; /* base/600 = #52525B */
82
+ --muted: 240 5% 90%; /* base/200 = #E4E4E7 */
83
+ --muted-foreground: 240 5% 34%; /* base/600 = #52525B */
84
+ --accent: 56 99% 50%; /* #FEED02 (sunglow) */
85
+ --accent-foreground: 240 10% 4%; /* base/800 for contrast on yellow */
86
+ /*
87
+ Shadcn — Destructive. Darkened one step to red/600. red/500 under white
88
+ was 3.78:1, under AA, for both roles this token plays: the fill beneath
89
+ `--destructive-foreground` (the Critical badge, every destructive
90
+ button) and the plain body ink of a field/form error message on white.
91
+ red/600 lifts both to 4.80:1. The hue is unchanged; only the step moved.
92
+ */
93
+ --destructive: 0 72% 51%; /* red/600 = #DC2626 */
94
+ --destructive-foreground: 0 0% 100%; /* white */
95
+ --border: 240 5% 90%; /* base/200 = #E4E4E7 */
96
+ --input: 0 0% 100%; /* base/white */
97
+ /* Lighter than --muted-foreground, which is also the label colour: a
98
+ placeholder that matches its own label has no hierarchy left to give.
99
+ Stepped off base/500 with --body-text, and for the same reason. The
100
+ field paints no fill of its own (`input/styles.css`: .input-wrapper is
101
+ border-only, .input-base is bg-transparent), so the hint sits on
102
+ whatever ground contains the form, and on --body-surface base/500 read
103
+ 4.40:1. 45% brings that to 4.59:1 and 5.04:1 on white. The retired note
104
+ here claimed 4.4:1 was acceptable "on the shadcn-100 field", which named
105
+ a fill the component never paints. */
106
+ --input-placeholder: 240 4% 45%; /* one notch off base/500: #6E6E77, AA on body-surface */
107
+ /* Field boundary, held to the 3:1 non-text floor (SC 1.4.11) on every ground a
108
+ field sits on. base/400 read 2.56:1 on white and 2.34:1 on --body-surface. */
109
+ --input-border: 240 4% 46%; /* base/500 = #71717A, 4.86:1 on white, 4.43:1 on body-surface */
110
+ /*
111
+ Focus ring. base/400 read 2.55:1 on white and 2.33:1 on --body-surface,
112
+ under the 3:1 floor a focus indicator answers to (SC 1.4.11), and this is
113
+ the ring every input, button and trigger in the kit paints: the wrapper
114
+ border on :focus-within, and the ring itself at ring-offset-0, both of
115
+ which touch the page ground directly. base/500 clears it on every light
116
+ ground: 4.84:1 on white (which is also --card and --popover here) and
117
+ 4.40:1 on --body-surface.
118
+
119
+ It does NOT serve both themes. On the dark container surface base/500
120
+ measures 2.16:1, so .dark keeps the old channel as its own declaration,
121
+ where it reads 5.81:1 on --background and 4.08:1 on --card.
122
+
123
+ No single value clears both themes with margin, and none is a palette
124
+ step: the best one channel does is an off-scale 240 5% 57%, which clears
125
+ 3:1 on all four grounds but by 0.04 on two of them. The per-theme pair
126
+ sits at 4.4+ light and 4.0+ dark, each half gated in
127
+ `__tests__/tokens-contract.test.ts`.
128
+ */
129
+ --ring: 240 4% 46%; /* base/500 = #71717A */
130
+ --radius: 0.5rem;
131
+
132
+ /* Accent variants */
133
+ --accent-hover: 56 99% 50%; /* #FEED02 - opacity handled via /70 */
134
+ --accent-mute: 56 99% 50%; /* #FEED02 - opacity handled via /50 */
135
+
136
+ /* System tokens (light mode — dark overrides in .dark) */
137
+ --system-error: 0 84% 60%; /* red/500 = #EF4444 */
138
+ --system-error-surface: 0 86% 97%; /* red/50 = #FEF2F2 */
139
+ --system-error-h1a: 0 74% 35%; /* red/800 = #991B1B */
140
+ --system-error-border: 0 84% 60% / 0.5; /* #EF4444 50% */
141
+ --system-error-text: 0 74% 35%; /* #991B1B */
142
+ --system-success: 142 76% 36%; /* green/600 = #16A34A */
143
+ --system-success-surface: 139 76% 97%; /* green/50 = #F0FDF4 */
144
+ --system-success-h1a: 143 64% 24%; /* green/800 = #166534 */
145
+ --system-success-border: 142 76% 36% / 0.5; /* #16A34A 50% */
146
+ --system-success-text: 143 64% 24%; /* #166534 */
147
+ --system-info: 221 83% 53%; /* blue/600 = #2563EB */
148
+ --system-info-surface: 214 100% 97%; /* blue/50 = #EFF6FF */
149
+ --system-info-h1a: 224 76% 40%; /* blue/800 = #1E40AF */
150
+ --system-info-border: 221 83% 53% / 0.5; /* #2563EB 50% */
151
+ --system-info-text: 224 76% 40%; /* #1E40AF */
152
+ --system-alert: 48 96% 47%; /* yellow/500 = #EAB308 */
153
+ --system-alert-surface: 55 92% 95%; /* yellow/50 = #FEFCE8 */
154
+ --system-alert-h1a: 36 92% 29%; /* yellow/800 = #854D0E */
155
+ --system-alert-border: 48 96% 47% / 0.5; /* #EAB308 50% */
156
+ --system-alert-text: 36 92% 29%; /* #854D0E */
157
+ --system-purple: 271 81% 56%; /* purple/600 = #9333EA */
158
+ --system-purple-surface: 270 100% 98%; /* purple/50 = #FAF5FF */
159
+ --system-purple-h1a: 273 67% 39%; /* purple/800 = #6B21A8 */
160
+ --system-purple-border: 271 81% 56% / 0.5; /* #9333EA 50% */
161
+ --system-purple-text: 273 67% 39%; /* #6B21A8 */
162
+
163
+ /* Shadow color token for dark mode adaptation */
164
+ --shadow-color: 0 0% 0%;
165
+
166
+ /*
167
+ Ledger credit semantic — deliberately DISTINCT from --destructive, not an
168
+ alias: --destructive is an error/alarm, --credit is the accounting reading
169
+ of a credit amount. Deeper than --destructive (red/700 vs red/500) so the
170
+ two never read as the same signal. --credit-foreground mirrors --credit:
171
+ the red itself carries the role as text.
172
+ */
173
+ --credit: 0 74% 42%; /* red/700 = #B91C1C */
174
+ --credit-foreground: 0 74% 42%; /* mirrors --credit */
175
+
176
+ /*
177
+ Reconciliation matte fills — the recessed track behind a balance bar, one
178
+ neutral step apart. Deliberately hue-neutral: the matched/unmatched signal
179
+ is carried by the bar's leading edge, so a tinted wall would double-encode.
180
+ */
181
+ --matched-surface: 240 5% 96%; /* base/100 = #F4F4F5 */
182
+ --unmatched-surface: 240 5% 90%; /* base/200 = #E4E4E7 */
183
+
184
+ /*
185
+ Chart series palette — 8 categorical slots drawn from the brand scales
186
+ (de-york, sunglow, cod-gray) plus the system hues, ordered so no adjacent
187
+ pair shares a hue neighbourhood.
188
+ */
189
+ --chart-1: 143 59% 36%; /* de-york-600 = #26934F */
190
+ --chart-2: 0 72% 51%; /* red/600 = #DC2626 */
191
+ --chart-3: 39 98% 40%; /* sunglow-600 = #CC8402 */
192
+ --chart-4: 221 83% 53%; /* blue/600 = #2563EB */
193
+ --chart-5: 333 71% 51%; /* pink/600 = #DB2777 */
194
+ --chart-6: 193 82% 31%; /* cyan/700 = #0E7490 */
195
+ --chart-7: 272 72% 47%; /* purple/700 = #7E22CE */
196
+ --chart-8: 351 9% 43%; /* cod-gray-500 = #776366 */
197
+
198
+ /* Plain-CSS twins of the @theme font slots in globals.css, for pages without
199
+ Tailwind; each must equal its --font-* value there. */
200
+ --font-stack-sans:
201
+ var(--font-inter, 'Inter'), 'Inter', ui-sans-serif, system-ui, sans-serif;
202
+ --font-stack-serif:
203
+ var(--font-plex-serif, ui-serif), ui-serif, Georgia, Cambria,
204
+ 'Times New Roman', Times, serif;
205
+ --font-stack-mono:
206
+ var(--font-plex-mono, ui-monospace), ui-monospace, SFMono-Regular, Menlo,
207
+ Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
208
+ }
209
+
210
+ .dark {
211
+ color-scheme: dark; /* native widgets (form controls, scrollbars) follow the theme */
212
+
213
+ /* Custom — Layout */
214
+ --link-hover: 240 5% 96%; /* #F4F4F5 80% (opacity via /80) */
215
+ --link-mute: 240 5% 96%; /* #F4F4F5 40% (opacity via /40) */
216
+ --container-surface: 240 5% 26%; /* base/700 = #3F3F46 */
217
+ --container-text: 240 5% 96%; /* base/100 = #F4F4F5 */
218
+ --container-title: 0 0% 100%; /* base/white */
219
+ --body-surface: 240 4% 16%; /* base/800 = #27272A */
220
+ --body-text: 240 5% 84%; /* base/300 = #D4D4D8 */
221
+ --body-title: 0 0% 100%; /* base/white */
222
+ --link: 240 5% 96%; /* base/100 = #F4F4F5 */
223
+ --button-primary-surface: 240 5% 96%; /* base/100 = #F4F4F5 */
224
+ --button-primary-text: 240 4% 16%; /* base/800 = #27272A */
225
+ --container-border: var(--border); /* shadcn/--border */
226
+
227
+ /* Shadcn — Core */
228
+ --background: 240 4% 16%; /* base/800 = #27272A */
229
+ --foreground: 240 5% 96%; /* base/100 = #F4F4F5 */
230
+ --muted: 240 5% 34%; /* base/600 = #52525B */
231
+ /*
232
+ Lifted off the base scale. base/400 read 4.09:1 on --container-surface
233
+ (which --card aliases) and 3.01:1 on --muted, both under the 4.5 AA floor
234
+ for normal text, and this is the kit's universal secondary ink: every
235
+ TableHead column label (text-sm font-medium inside a text-sm Table),
236
+ every empty-state line, every form label through LABEL_VOICE_CLASS, every
237
+ MoneyText caption. An axe crawl of the br-sfn cockpit measured both pairs
238
+ on 2026-09-06; every console on this library inherited them.
239
+
240
+ 80% is the smallest round step that clears both: 6.36:1 on
241
+ --container-surface and 4.68:1 on --muted. base/300 is the nearest scale
242
+ step that would also clear, but it is byte-identical to this theme's
243
+ --body-text, so adopting it would collapse the muted-versus-body step the
244
+ two tokens exist to express. Staying on the scale is worth less than
245
+ keeping that step, so the value leaves the scale instead.
246
+
247
+ That step is now thin, and the trade was made with eyes open: 80% sits at
248
+ L* 81 against --body-text at L* 85, so the two inks are 1.12:1 apart and
249
+ barely separable side by side. Legibility won because the weight is all
250
+ on one side: this token has 86 call sites and is read as prose on every
251
+ surface, while --body-text has one (an uppercase sidebar group label) plus
252
+ two derived theme keys. A reader who needs the step to be visible should
253
+ move --body-text, which is cheap to reposition, rather than push this one
254
+ back under the AA floor.
255
+
256
+ Repairs a fourth pair on the way: the disabled chip in autocomplete and
257
+ multiple-select paints text-muted on bg-muted-foreground, 3.01:1 before
258
+ and 4.68:1 now.
259
+ */
260
+ --muted-foreground: 240 5% 80%; /* between base/400 and base/300: #C9C9CF, AA on container-surface and muted */
261
+ --card: var(--container-surface);
262
+ --card-foreground: var(--container-text);
263
+ --popover: 240 4% 16%; /* base/800 = #27272A */
264
+ --popover-foreground: 240 5% 96%; /* base/100 = #F4F4F5 */
265
+ --border: 240 5% 34%; /* base/600 = #52525B */
266
+ --input: 240 4% 16%; /* base/800 = #27272A */
267
+ /* Held at base/400 rather than stepped down with the light theme: on the
268
+ dark field that is already only 5.8:1, and going lighter here means
269
+ darker, which would push the hint under the AA floor. */
270
+ --input-placeholder: 240 5% 80%; /* between base/400 and base/300: #C9C9CF, AA on card (6.3:1); base/400 read 4.07:1 there */
271
+ --input-border: 240 5% 65%; /* base/400 = #A1A1AA, 4.09:1 on card; light's base/500 reads 2.15:1 there */
272
+ /* Held at base/400, which light had to leave: on this ground the two
273
+ directions disagree. base/400 reads 5.81:1 on --background and 4.08:1 on
274
+ --card here, while light's base/500 would read 2.16:1 on --card. */
275
+ --ring: 240 5% 65%; /* base/400 = #A1A1AA */
276
+ --primary: 240 5% 96%; /* base/100 = #F4F4F5 */
277
+ --primary-foreground: 240 4% 16%; /* base/800 = #27272A */
278
+ --secondary: 240 4% 16%; /* base/800 = #27272A */
279
+ --secondary-foreground: 240 5% 96%; /* base/100 = #F4F4F5 */
280
+
281
+ /* Shadcn — Accent (Brand Lerian) */
282
+ --accent: 46 98% 57%; /* sunglow/400 = #FDCB28 */
283
+ --accent-hover: 46 98% 57%; /* sunglow/400 = #FDCB28 - opacity via /70 */
284
+ --accent-mute: 46 98% 57%; /* sunglow/400 = #FDCB28 - opacity via /50 */
285
+
286
+ /*
287
+ Shadcn — Destructive. Lifted to red/400 like every other red in this
288
+ block (--system-error, --credit, --chart-2): the light red/500 inherited
289
+ here before, which left `text-destructive` at 2.76:1 on a --card surface
290
+ and `bg-destructive`/`text-destructive-foreground` at 3.78:1. The
291
+ foreground inverts to red/950 — the deep end this theme already uses as
292
+ --system-error-surface — so the pair reads 5.94:1.
293
+ */
294
+ --destructive: 0 91% 71%; /* red/400 = #F87171 */
295
+ --destructive-foreground: 0 75% 15%; /* red/950 = #450A0A */
296
+
297
+ /* Shadcn — System Error */
298
+ --system-error: 0 91% 71%; /* red/400 = #F87171 */
299
+ --system-error-surface: 0 75% 15%; /* red/950 = #450A0A */
300
+ --system-error-text: 0 94% 82%; /* red/300 = #FCA5A5 */
301
+ --system-error-h1a: 0 96% 89%; /* red/200 = #FECACA */
302
+ --system-error-border: 0 94% 82% / 0.3; /* #FCA5A5 30% */
303
+
304
+ /* Shadcn — System Success */
305
+ --system-success: 142 69% 58%; /* green/400 = #4ADE80 */
306
+ --system-success-surface: 145 80% 10%; /* green/950 = #052E16 */
307
+ --system-success-text: 142 77% 73%; /* green/300 = #86EFAC */
308
+ --system-success-h1a: 141 79% 85%; /* green/200 = #BBF7D0 */
309
+ --system-success-border: 142 69% 58% / 0.3; /* #4ADE80 30% */
310
+
311
+ /* Shadcn — System Info */
312
+ --system-info: 213 94% 68%; /* blue/400 = #60A5FA */
313
+ --system-info-surface: 226 57% 21%; /* blue/950 = #172554 */
314
+ --system-info-text: 212 96% 78%; /* blue/300 = #93C5FD */
315
+ --system-info-h1a: 213 97% 87%; /* blue/200 = #BFDBFE */
316
+ --system-info-border: 213 94% 68% / 0.3; /* #60A5FA 30% */
317
+
318
+ /* Shadcn — System Alert */
319
+ --system-alert: 48 96% 53%; /* yellow/400 = #FACC15 */
320
+ --system-alert-surface: 26 83% 14%; /* yellow/950 = #422006 */
321
+ --system-alert-text: 48 97% 77%; /* yellow/300 = #FDE68A */
322
+ --system-alert-h1a: 53 98% 77%; /* yellow/200 = #FEF08A */
323
+ --system-alert-border: 48 96% 53% / 0.3; /* #FACC15 30% */
324
+
325
+ /* Shadcn — System Purple */
326
+ --system-purple: 270 95% 75%; /* purple/400 = #C084FC */
327
+ --system-purple-surface: 266 86% 13%; /* purple/950 = #3B0764 */
328
+ --system-purple-text: 269 97% 85%; /* purple/300 = #D8B4FE */
329
+ --system-purple-h1a: 269 100% 92%; /* purple/200 = #E9D5FF */
330
+ --system-purple-border: 270 95% 75% / 0.3; /* #C084FC 30% */
331
+
332
+ /* Shadow color for dark mode */
333
+ --shadow-color: 0 0% 100%;
334
+
335
+ /*
336
+ Ledger credit semantic — lifted for the dark canvas; foreground mirrors.
337
+ Sized by the composite the mirror actually produces, not by the plain
338
+ pair: components write `bg-credit/10` + `text-credit`, so the real
339
+ measurement is credit-as-text over a 10% credit tint composited on
340
+ --card. red/400 read only 3.34:1 there. red/300 — the channel this block
341
+ already uses for --system-error-text — reaches 4.59:1, and 5.54:1 as
342
+ plain text on --card.
343
+
344
+ Credit stays one step further from the canvas than --destructive
345
+ (red/400 here), the way light keeps credit at red/700 against a red/500
346
+ destructive: on a dark ground "further from the canvas" means lighter,
347
+ so the direction inverts but the separation holds and the two never read
348
+ as the same signal.
349
+ */
350
+ --credit: 0 94% 82%; /* red/300 = #FCA5A5 */
351
+ --credit-foreground: 0 94% 82%; /* mirrors --credit */
352
+
353
+ /* Reconciliation matte fills — raised surfaces over base/800, one step apart. */
354
+ --matched-surface: 240 5% 26%; /* base/700 = #3F3F46 */
355
+ --unmatched-surface: 240 5% 34%; /* base/600 = #52525B */
356
+
357
+ /* Chart series palette — same families, lifted for the dark canvas. */
358
+ --chart-1: 143 53% 58%; /* de-york-400 = #5BCD86 */
359
+ --chart-2: 0 91% 71%; /* red/400 = #F87171 */
360
+ --chart-3: 46 98% 57%; /* sunglow-400 = #FDCB28 */
361
+ --chart-4: 213 94% 68%; /* blue/400 = #60A5FA */
362
+ --chart-5: 329 86% 70%; /* pink/400 = #F472B6 */
363
+ --chart-6: 188 86% 53%; /* cyan/400 = #22D3EE */
364
+ --chart-7: 270 95% 75%; /* purple/400 = #C084FC */
365
+ --chart-8: 351 9% 69%; /* cod-gray-300 = #B7A9AB */
366
+ }
367
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@lerianstudio/sindarian-ui",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.21",
4
4
  "description": "Sindarian UI - A UI library for Midaz Console",
5
- "license": "ISC",
5
+ "license": "Elastic-2.0",
6
6
  "author": {
7
7
  "name": "Lerian Studio",
8
8
  "email": "contato@lerian.studio",
@@ -41,14 +41,17 @@
41
41
  "build": "npm run build:cjs && npm run build:esm && npm run copy:assets && npm run copy:styles",
42
42
  "build:cjs": "tsc && tsc-alias -p tsconfig.json && copyfiles -u 1 \"src/**/*.cjs\" \"src/**/*.d.cts\" \"src/**/*.json\" dist",
43
43
  "build:esm": "tsc -p tsconfig.esm.json && tsc-alias -p tsconfig.esm.json --resolve-full-paths && copyfiles -u 1 \"src/**/*.cjs\" \"src/**/*.d.cts\" \"src/**/*.json\" dist/esm && node -e \"require('fs').writeFileSync('dist/esm/package.json',JSON.stringify({type:'module'}))\" && node scripts/check-esm-output.mjs",
44
- "copy:assets": "copyfiles -f src/public/**/* dist/public",
45
- "copy:styles": "copyfiles -u 1 src/**/*.css dist",
46
- "lint": "eslint . --fix",
44
+ "copy:assets": "copyfiles -f \"src/public/**/*\" dist/public && copyfiles -u 1 \"src/fonts/*\" dist",
45
+ "copy:styles": "copyfiles -u 1 \"src/**/*.css\" dist",
46
+ "lint": "eslint .",
47
+ "lint:fix": "eslint . --fix",
47
48
  "storybook": "storybook dev -p 6007",
48
49
  "build-storybook": "storybook build",
49
50
  "test": "jest",
50
51
  "test:e2e": "exit 0",
51
- "test:cov": "jest --coverage"
52
+ "test:cov": "jest --coverage",
53
+ "measure:input-shrink": "node scripts/measure-input-shrink.mjs",
54
+ "measure:phone-shapes": "node scripts/measure-phone-shapes.mjs"
52
55
  },
53
56
  "dependencies": {
54
57
  "@radix-ui/react-accordion": "^1.2.20",