@cimpress-ui/react 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/commonjs/components/checkbox/checkbox-group.d.ts +2 -2
  2. package/dist/commonjs/components/checkbox/checkbox-group.d.ts.map +1 -1
  3. package/dist/commonjs/components/checkbox/checkbox-group.js +8 -1
  4. package/dist/commonjs/components/checkbox/checkbox-group.js.map +1 -1
  5. package/dist/commonjs/components/combo-box/combo-box.d.ts +2 -2
  6. package/dist/commonjs/components/combo-box/combo-box.d.ts.map +1 -1
  7. package/dist/commonjs/components/combo-box/combo-box.js +9 -5
  8. package/dist/commonjs/components/combo-box/combo-box.js.map +1 -1
  9. package/dist/commonjs/components/drawer/drawer.d.ts +19 -18
  10. package/dist/commonjs/components/drawer/drawer.d.ts.map +1 -1
  11. package/dist/commonjs/components/drawer/drawer.js +16 -21
  12. package/dist/commonjs/components/drawer/drawer.js.map +1 -1
  13. package/dist/commonjs/components/file-trigger.d.ts +6 -0
  14. package/dist/commonjs/components/file-trigger.d.ts.map +1 -0
  15. package/dist/commonjs/components/file-trigger.js +18 -0
  16. package/dist/commonjs/components/file-trigger.js.map +1 -0
  17. package/dist/commonjs/components/modal-dialog/modal-dialog.d.ts +2 -1
  18. package/dist/commonjs/components/modal-dialog/modal-dialog.d.ts.map +1 -1
  19. package/dist/commonjs/components/modal-dialog/modal-dialog.js +1 -1
  20. package/dist/commonjs/components/modal-dialog/modal-dialog.js.map +1 -1
  21. package/dist/commonjs/components/radio/radio-group.d.ts +2 -2
  22. package/dist/commonjs/components/radio/radio-group.d.ts.map +1 -1
  23. package/dist/commonjs/components/radio/radio-group.js +8 -1
  24. package/dist/commonjs/components/radio/radio-group.js.map +1 -1
  25. package/dist/commonjs/components/select/select.d.ts +2 -2
  26. package/dist/commonjs/components/select/select.d.ts.map +1 -1
  27. package/dist/commonjs/components/select/select.js +9 -5
  28. package/dist/commonjs/components/select/select.js.map +1 -1
  29. package/dist/commonjs/components/toast/toast-queue.d.ts +39 -0
  30. package/dist/commonjs/components/toast/toast-queue.d.ts.map +1 -0
  31. package/dist/commonjs/components/toast/toast-queue.js +53 -0
  32. package/dist/commonjs/components/toast/toast-queue.js.map +1 -0
  33. package/dist/commonjs/components/toast/toast-region.d.ts +5 -3
  34. package/dist/commonjs/components/toast/toast-region.d.ts.map +1 -1
  35. package/dist/commonjs/components/toast/toast-region.js +7 -15
  36. package/dist/commonjs/components/toast/toast-region.js.map +1 -1
  37. package/dist/commonjs/components/toast/toast.js +1 -1
  38. package/dist/commonjs/components/toast/toast.js.map +1 -1
  39. package/dist/commonjs/components/toast/types.d.ts +10 -2
  40. package/dist/commonjs/components/toast/types.d.ts.map +1 -1
  41. package/dist/commonjs/components/toast/types.js.map +1 -1
  42. package/dist/commonjs/components/types.d.ts +7 -0
  43. package/dist/commonjs/components/types.d.ts.map +1 -1
  44. package/dist/commonjs/components/types.js.map +1 -1
  45. package/dist/commonjs/i18n/messages/en-US.d.ts.map +1 -1
  46. package/dist/commonjs/i18n/messages/en-US.js +1 -0
  47. package/dist/commonjs/i18n/messages/en-US.js.map +1 -1
  48. package/dist/commonjs/i18n/messages/types.d.ts +6 -0
  49. package/dist/commonjs/i18n/messages/types.d.ts.map +1 -1
  50. package/dist/commonjs/i18n/messages/types.js.map +1 -1
  51. package/dist/commonjs/icons/category-apparel.d.ts.map +1 -1
  52. package/dist/commonjs/icons/category-apparel.js +1 -1
  53. package/dist/commonjs/icons/category-apparel.js.map +1 -1
  54. package/dist/commonjs/icons/clock-user.d.ts +8 -0
  55. package/dist/commonjs/icons/clock-user.d.ts.map +1 -0
  56. package/dist/commonjs/icons/clock-user.js +24 -0
  57. package/dist/commonjs/icons/clock-user.js.map +1 -0
  58. package/dist/commonjs/icons/external-link.d.ts +8 -0
  59. package/dist/commonjs/icons/external-link.d.ts.map +1 -0
  60. package/dist/commonjs/icons/external-link.js +24 -0
  61. package/dist/commonjs/icons/external-link.js.map +1 -0
  62. package/dist/commonjs/icons/file-design.d.ts +8 -0
  63. package/dist/commonjs/icons/file-design.d.ts.map +1 -0
  64. package/dist/commonjs/icons/file-design.js +24 -0
  65. package/dist/commonjs/icons/file-design.js.map +1 -0
  66. package/dist/commonjs/icons/index.d.ts +11 -0
  67. package/dist/commonjs/icons/index.d.ts.map +1 -1
  68. package/dist/commonjs/icons/index.js +24 -2
  69. package/dist/commonjs/icons/index.js.map +1 -1
  70. package/dist/commonjs/icons/invoice.d.ts +8 -0
  71. package/dist/commonjs/icons/invoice.d.ts.map +1 -0
  72. package/dist/commonjs/icons/invoice.js +24 -0
  73. package/dist/commonjs/icons/invoice.js.map +1 -0
  74. package/dist/commonjs/icons/print.d.ts +8 -0
  75. package/dist/commonjs/icons/print.d.ts.map +1 -0
  76. package/dist/commonjs/icons/print.js +24 -0
  77. package/dist/commonjs/icons/print.js.map +1 -0
  78. package/dist/commonjs/icons/refresh.d.ts +8 -0
  79. package/dist/commonjs/icons/refresh.d.ts.map +1 -0
  80. package/dist/commonjs/icons/refresh.js +24 -0
  81. package/dist/commonjs/icons/refresh.js.map +1 -0
  82. package/dist/commonjs/icons/share-alt.d.ts +8 -0
  83. package/dist/commonjs/icons/share-alt.d.ts.map +1 -0
  84. package/dist/commonjs/icons/share-alt.js +24 -0
  85. package/dist/commonjs/icons/share-alt.js.map +1 -0
  86. package/dist/commonjs/icons/share.d.ts +8 -0
  87. package/dist/commonjs/icons/share.d.ts.map +1 -0
  88. package/dist/commonjs/icons/share.js +24 -0
  89. package/dist/commonjs/icons/share.js.map +1 -0
  90. package/dist/commonjs/icons/style-color.d.ts +8 -0
  91. package/dist/commonjs/icons/style-color.d.ts.map +1 -0
  92. package/dist/commonjs/icons/style-color.js +24 -0
  93. package/dist/commonjs/icons/style-color.js.map +1 -0
  94. package/dist/commonjs/icons/style-embroidery.d.ts +8 -0
  95. package/dist/commonjs/icons/style-embroidery.d.ts.map +1 -0
  96. package/dist/commonjs/icons/style-embroidery.js +24 -0
  97. package/dist/commonjs/icons/style-embroidery.js.map +1 -0
  98. package/dist/commonjs/icons/style-monochrome.d.ts +8 -0
  99. package/dist/commonjs/icons/style-monochrome.d.ts.map +1 -0
  100. package/dist/commonjs/icons/style-monochrome.js +24 -0
  101. package/dist/commonjs/icons/style-monochrome.js.map +1 -0
  102. package/dist/commonjs/index.d.ts +3 -1
  103. package/dist/commonjs/index.d.ts.map +1 -1
  104. package/dist/commonjs/index.js +4 -0
  105. package/dist/commonjs/index.js.map +1 -1
  106. package/dist/esm/components/checkbox/checkbox-group.d.ts +2 -2
  107. package/dist/esm/components/checkbox/checkbox-group.d.ts.map +1 -1
  108. package/dist/esm/components/checkbox/checkbox-group.js +8 -1
  109. package/dist/esm/components/checkbox/checkbox-group.js.map +1 -1
  110. package/dist/esm/components/combo-box/combo-box.d.ts +2 -2
  111. package/dist/esm/components/combo-box/combo-box.d.ts.map +1 -1
  112. package/dist/esm/components/combo-box/combo-box.js +7 -3
  113. package/dist/esm/components/combo-box/combo-box.js.map +1 -1
  114. package/dist/esm/components/drawer/drawer.d.ts +19 -18
  115. package/dist/esm/components/drawer/drawer.d.ts.map +1 -1
  116. package/dist/esm/components/drawer/drawer.js +12 -17
  117. package/dist/esm/components/drawer/drawer.js.map +1 -1
  118. package/dist/esm/components/file-trigger.d.ts +6 -0
  119. package/dist/esm/components/file-trigger.d.ts.map +1 -0
  120. package/dist/esm/components/file-trigger.js +15 -0
  121. package/dist/esm/components/file-trigger.js.map +1 -0
  122. package/dist/esm/components/modal-dialog/modal-dialog.d.ts +2 -1
  123. package/dist/esm/components/modal-dialog/modal-dialog.d.ts.map +1 -1
  124. package/dist/esm/components/modal-dialog/modal-dialog.js +1 -1
  125. package/dist/esm/components/modal-dialog/modal-dialog.js.map +1 -1
  126. package/dist/esm/components/radio/radio-group.d.ts +2 -2
  127. package/dist/esm/components/radio/radio-group.d.ts.map +1 -1
  128. package/dist/esm/components/radio/radio-group.js +8 -1
  129. package/dist/esm/components/radio/radio-group.js.map +1 -1
  130. package/dist/esm/components/select/select.d.ts +2 -2
  131. package/dist/esm/components/select/select.d.ts.map +1 -1
  132. package/dist/esm/components/select/select.js +7 -3
  133. package/dist/esm/components/select/select.js.map +1 -1
  134. package/dist/esm/components/toast/toast-queue.d.ts +39 -0
  135. package/dist/esm/components/toast/toast-queue.d.ts.map +1 -0
  136. package/dist/esm/components/toast/toast-queue.js +50 -0
  137. package/dist/esm/components/toast/toast-queue.js.map +1 -0
  138. package/dist/esm/components/toast/toast-region.d.ts +5 -3
  139. package/dist/esm/components/toast/toast-region.d.ts.map +1 -1
  140. package/dist/esm/components/toast/toast-region.js +8 -15
  141. package/dist/esm/components/toast/toast-region.js.map +1 -1
  142. package/dist/esm/components/toast/toast.js +1 -1
  143. package/dist/esm/components/toast/toast.js.map +1 -1
  144. package/dist/esm/components/toast/types.d.ts +10 -2
  145. package/dist/esm/components/toast/types.d.ts.map +1 -1
  146. package/dist/esm/components/toast/types.js.map +1 -1
  147. package/dist/esm/components/types.d.ts +7 -0
  148. package/dist/esm/components/types.d.ts.map +1 -1
  149. package/dist/esm/components/types.js.map +1 -1
  150. package/dist/esm/i18n/messages/en-US.d.ts.map +1 -1
  151. package/dist/esm/i18n/messages/en-US.js +1 -0
  152. package/dist/esm/i18n/messages/en-US.js.map +1 -1
  153. package/dist/esm/i18n/messages/types.d.ts +6 -0
  154. package/dist/esm/i18n/messages/types.d.ts.map +1 -1
  155. package/dist/esm/i18n/messages/types.js.map +1 -1
  156. package/dist/esm/icons/category-apparel.d.ts.map +1 -1
  157. package/dist/esm/icons/category-apparel.js +1 -1
  158. package/dist/esm/icons/category-apparel.js.map +1 -1
  159. package/dist/esm/icons/clock-user.d.ts +8 -0
  160. package/dist/esm/icons/clock-user.d.ts.map +1 -0
  161. package/dist/esm/icons/clock-user.js +19 -0
  162. package/dist/esm/icons/clock-user.js.map +1 -0
  163. package/dist/esm/icons/external-link.d.ts +8 -0
  164. package/dist/esm/icons/external-link.d.ts.map +1 -0
  165. package/dist/esm/icons/external-link.js +19 -0
  166. package/dist/esm/icons/external-link.js.map +1 -0
  167. package/dist/esm/icons/file-design.d.ts +8 -0
  168. package/dist/esm/icons/file-design.d.ts.map +1 -0
  169. package/dist/esm/icons/file-design.js +19 -0
  170. package/dist/esm/icons/file-design.js.map +1 -0
  171. package/dist/esm/icons/index.d.ts +11 -0
  172. package/dist/esm/icons/index.d.ts.map +1 -1
  173. package/dist/esm/icons/index.js +11 -0
  174. package/dist/esm/icons/index.js.map +1 -1
  175. package/dist/esm/icons/invoice.d.ts +8 -0
  176. package/dist/esm/icons/invoice.d.ts.map +1 -0
  177. package/dist/esm/icons/invoice.js +19 -0
  178. package/dist/esm/icons/invoice.js.map +1 -0
  179. package/dist/esm/icons/print.d.ts +8 -0
  180. package/dist/esm/icons/print.d.ts.map +1 -0
  181. package/dist/esm/icons/print.js +19 -0
  182. package/dist/esm/icons/print.js.map +1 -0
  183. package/dist/esm/icons/refresh.d.ts +8 -0
  184. package/dist/esm/icons/refresh.d.ts.map +1 -0
  185. package/dist/esm/icons/refresh.js +19 -0
  186. package/dist/esm/icons/refresh.js.map +1 -0
  187. package/dist/esm/icons/share-alt.d.ts +8 -0
  188. package/dist/esm/icons/share-alt.d.ts.map +1 -0
  189. package/dist/esm/icons/share-alt.js +19 -0
  190. package/dist/esm/icons/share-alt.js.map +1 -0
  191. package/dist/esm/icons/share.d.ts +8 -0
  192. package/dist/esm/icons/share.d.ts.map +1 -0
  193. package/dist/esm/icons/share.js +19 -0
  194. package/dist/esm/icons/share.js.map +1 -0
  195. package/dist/esm/icons/style-color.d.ts +8 -0
  196. package/dist/esm/icons/style-color.d.ts.map +1 -0
  197. package/dist/esm/icons/style-color.js +19 -0
  198. package/dist/esm/icons/style-color.js.map +1 -0
  199. package/dist/esm/icons/style-embroidery.d.ts +8 -0
  200. package/dist/esm/icons/style-embroidery.d.ts.map +1 -0
  201. package/dist/esm/icons/style-embroidery.js +19 -0
  202. package/dist/esm/icons/style-embroidery.js.map +1 -0
  203. package/dist/esm/icons/style-monochrome.d.ts +8 -0
  204. package/dist/esm/icons/style-monochrome.d.ts.map +1 -0
  205. package/dist/esm/icons/style-monochrome.js +19 -0
  206. package/dist/esm/icons/style-monochrome.js.map +1 -0
  207. package/dist/esm/index.d.ts +3 -1
  208. package/dist/esm/index.d.ts.map +1 -1
  209. package/dist/esm/index.js +2 -0
  210. package/dist/esm/index.js.map +1 -1
  211. package/dist-styles/core.css +1 -1
  212. package/dist-styles/styles.css +1 -1
  213. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const clsx_1 = __importDefault(require("clsx"));
8
+ const tone_js_1 = require("../utils/style/tone.js");
9
+ const displayName = 'IconRefresh';
10
+ /** Renders an SVG icon. */
11
+ const SvgRefresh = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }) => {
12
+ const props = {
13
+ ...rest,
14
+ 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),
15
+ className: (0, clsx_1.default)('cim-icon', tone && (0, tone_js_1.fgTone)(tone), UNSAFE_className),
16
+ style: UNSAFE_style,
17
+ width: size != null ? size + 'px' : '1em',
18
+ height: size != null ? size + 'px' : '1em',
19
+ };
20
+ return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "data-icon": "true", fill: "currentColor", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M2.875 16a1.125 1.125 0 0 0 2.25 0c0-6.27 4.26-10.875 10.413-10.875 3.706 0 7.204 1.867 9.251 4.623a1.126 1.126 0 0 0 1.807-1.342c-2.462-3.314-6.623-5.531-11.058-5.531C8.028 2.875 2.875 8.607 2.875 16" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M25.029 4v4.413h-4.414a1.125 1.125 0 0 0 0 2.25h5.539a1.127 1.127 0 0 0 1.125-1.125V4a1.125 1.125 0 0 0-2.25 0m4.096 12a1.125 1.125 0 0 0-2.25 0c0 6.27-4.26 10.875-10.413 10.875-3.707 0-7.204-1.867-9.251-4.623a1.126 1.126 0 0 0-1.807 1.342c2.462 3.314 6.623 5.531 11.058 5.531 7.51 0 12.663-5.732 12.663-13.125" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M6.972 28v-4.413h4.413a1.125 1.125 0 1 0 0-2.25H5.847a1.126 1.126 0 0 0-1.125 1.125V28a1.125 1.125 0 0 0 2.25 0" })] }));
21
+ };
22
+ SvgRefresh.displayName = displayName;
23
+ exports.default = SvgRefresh;
24
+ //# sourceMappingURL=refresh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refresh.js","sourceRoot":"","sources":["../../../src/icons/refresh.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,oDAAgD;AAChD,MAAM,WAAW,GAAG,aAAa,CAAC;AAClC,2BAA2B;AAC3B,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAa,EAAE,EAAE;IACnH,MAAM,KAAK,GAAG;QACZ,GAAG,IAAI;QACP,aAAa,EAAE,UAAU,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC;QAC5F,SAAS,EAAE,IAAA,cAAI,EAAC,UAAU,EAAE,IAAI,IAAI,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;QACnE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;QACzC,MAAM,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;KAC3C,CAAC;IACF,OAAO,CACL,iCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,eAAW,MAAM,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,aACxG,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,0MAA0M,GAC5M,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,wTAAwT,GAC1T,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,iHAAiH,GACnH,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;AACrC,kBAAe,UAAU,CAAC","sourcesContent":["import clsx from 'clsx';\nimport type { IconProps } from '../components/types.js';\nimport { fgTone } from '../utils/style/tone.js';\nconst displayName = 'IconRefresh';\n/** Renders an SVG icon. */\nconst SvgRefresh = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }: IconProps) => {\n const props = {\n ...rest,\n 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),\n className: clsx('cim-icon', tone && fgTone(tone), UNSAFE_className),\n style: UNSAFE_style,\n width: size != null ? size + 'px' : '1em',\n height: size != null ? size + 'px' : '1em',\n };\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" data-icon=\"true\" fill=\"currentColor\" {...props}>\n <path\n fill=\"currentColor\"\n d=\"M2.875 16a1.125 1.125 0 0 0 2.25 0c0-6.27 4.26-10.875 10.413-10.875 3.706 0 7.204 1.867 9.251 4.623a1.126 1.126 0 0 0 1.807-1.342c-2.462-3.314-6.623-5.531-11.058-5.531C8.028 2.875 2.875 8.607 2.875 16\"\n />\n <path\n fill=\"currentColor\"\n d=\"M25.029 4v4.413h-4.414a1.125 1.125 0 0 0 0 2.25h5.539a1.127 1.127 0 0 0 1.125-1.125V4a1.125 1.125 0 0 0-2.25 0m4.096 12a1.125 1.125 0 0 0-2.25 0c0 6.27-4.26 10.875-10.413 10.875-3.707 0-7.204-1.867-9.251-4.623a1.126 1.126 0 0 0-1.807 1.342c2.462 3.314 6.623 5.531 11.058 5.531 7.51 0 12.663-5.732 12.663-13.125\"\n />\n <path\n fill=\"currentColor\"\n d=\"M6.972 28v-4.413h4.413a1.125 1.125 0 1 0 0-2.25H5.847a1.126 1.126 0 0 0-1.125 1.125V28a1.125 1.125 0 0 0 2.25 0\"\n />\n </svg>\n );\n};\nSvgRefresh.displayName = displayName;\nexport default SvgRefresh;\n"]}
@@ -0,0 +1,8 @@
1
+ import type { IconProps } from '../components/types.js';
2
+ /** Renders an SVG icon. */
3
+ declare const SvgShareAlt: {
4
+ ({ size, "aria-hidden": ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default SvgShareAlt;
8
+ //# sourceMappingURL=share-alt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-alt.d.ts","sourceRoot":"","sources":["../../../src/icons/share-alt.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,2BAA2B;AAC3B,QAAA,MAAM,WAAW;yFAAwF,SAAS;;CAiBjH,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const clsx_1 = __importDefault(require("clsx"));
8
+ const tone_js_1 = require("../utils/style/tone.js");
9
+ const displayName = 'IconShareAlt';
10
+ /** Renders an SVG icon. */
11
+ const SvgShareAlt = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }) => {
12
+ const props = {
13
+ ...rest,
14
+ 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),
15
+ className: (0, clsx_1.default)('cim-icon', tone && (0, tone_js_1.fgTone)(tone), UNSAFE_className),
16
+ style: UNSAFE_style,
17
+ width: size != null ? size + 'px' : '1em',
18
+ height: size != null ? size + 'px' : '1em',
19
+ };
20
+ return ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "data-icon": "true", fill: "currentColor", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M6 25V13a3 3 0 0 1 3-3h2a1 1 0 1 1 0 2H9a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1h-2a1 1 0 1 1 0-2h2a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3m9-7V4.703l-2.342 2.05a1 1 0 0 1-1.316-1.506l4-3.5.072-.057a1 1 0 0 1 1.244.057l4 3.5a1 1 0 0 1-1.236 1.57l-.08-.064L17 4.703V18a1 1 0 1 1-2 0" }) }));
21
+ };
22
+ SvgShareAlt.displayName = displayName;
23
+ exports.default = SvgShareAlt;
24
+ //# sourceMappingURL=share-alt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-alt.js","sourceRoot":"","sources":["../../../src/icons/share-alt.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,oDAAgD;AAChD,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,2BAA2B;AAC3B,MAAM,WAAW,GAAG,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAa,EAAE,EAAE;IACpH,MAAM,KAAK,GAAG;QACZ,GAAG,IAAI;QACP,aAAa,EAAE,UAAU,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC;QAC5F,SAAS,EAAE,IAAA,cAAI,EAAC,UAAU,EAAE,IAAI,IAAI,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;QACnE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;QACzC,MAAM,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;KAC3C,CAAC;IACF,OAAO,CACL,gCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,eAAW,MAAM,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,YACxG,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,2TAA2T,GAC7T,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AACF,WAAW,CAAC,WAAW,GAAG,WAAW,CAAC;AACtC,kBAAe,WAAW,CAAC","sourcesContent":["import clsx from 'clsx';\nimport type { IconProps } from '../components/types.js';\nimport { fgTone } from '../utils/style/tone.js';\nconst displayName = 'IconShareAlt';\n/** Renders an SVG icon. */\nconst SvgShareAlt = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }: IconProps) => {\n const props = {\n ...rest,\n 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),\n className: clsx('cim-icon', tone && fgTone(tone), UNSAFE_className),\n style: UNSAFE_style,\n width: size != null ? size + 'px' : '1em',\n height: size != null ? size + 'px' : '1em',\n };\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" data-icon=\"true\" fill=\"currentColor\" {...props}>\n <path\n fill=\"currentColor\"\n d=\"M6 25V13a3 3 0 0 1 3-3h2a1 1 0 1 1 0 2H9a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1h-2a1 1 0 1 1 0-2h2a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3m9-7V4.703l-2.342 2.05a1 1 0 0 1-1.316-1.506l4-3.5.072-.057a1 1 0 0 1 1.244.057l4 3.5a1 1 0 0 1-1.236 1.57l-.08-.064L17 4.703V18a1 1 0 1 1-2 0\"\n />\n </svg>\n );\n};\nSvgShareAlt.displayName = displayName;\nexport default SvgShareAlt;\n"]}
@@ -0,0 +1,8 @@
1
+ import type { IconProps } from '../components/types.js';
2
+ /** Renders an SVG icon. */
3
+ declare const SvgShare: {
4
+ ({ size, "aria-hidden": ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default SvgShare;
8
+ //# sourceMappingURL=share.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../../src/icons/share.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,2BAA2B;AAC3B,QAAA,MAAM,QAAQ;yFAAwF,SAAS;;CAqB9G,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const clsx_1 = __importDefault(require("clsx"));
8
+ const tone_js_1 = require("../utils/style/tone.js");
9
+ const displayName = 'IconShare';
10
+ /** Renders an SVG icon. */
11
+ const SvgShare = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }) => {
12
+ const props = {
13
+ ...rest,
14
+ 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),
15
+ className: (0, clsx_1.default)('cim-icon', tone && (0, tone_js_1.fgTone)(tone), UNSAFE_className),
16
+ style: UNSAFE_style,
17
+ width: size != null ? size + 'px' : '1em',
18
+ height: size != null ? size + 'px' : '1em',
19
+ };
20
+ return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "data-icon": "true", fill: "currentColor", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "m20.345 18.112-5.39 3.828-1.16-1.63 5.391-3.829zm-.672-5.768-.846 1.812-7.5-3.5.846-1.812z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M11 8a3 3 0 1 0-6 0 3 3 0 0 0 6 0m2 0A5 5 0 1 1 3 8a5 5 0 0 1 10 0m1 15a3 3 0 1 0-6 0 3 3 0 0 0 6 0m2 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0m10-8a3 3 0 1 0-6 0 3 3 0 0 0 6 0m2 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0" })] }));
21
+ };
22
+ SvgShare.displayName = displayName;
23
+ exports.default = SvgShare;
24
+ //# sourceMappingURL=share.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share.js","sourceRoot":"","sources":["../../../src/icons/share.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,oDAAgD;AAChD,MAAM,WAAW,GAAG,WAAW,CAAC;AAChC,2BAA2B;AAC3B,MAAM,QAAQ,GAAG,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,IAAI,EAAa,EAAE,EAAE;IACjH,MAAM,KAAK,GAAG;QACZ,GAAG,IAAI;QACP,aAAa,EAAE,UAAU,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC;QAC5F,SAAS,EAAE,IAAA,cAAI,EAAC,UAAU,EAAE,IAAI,IAAI,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;QACnE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;QACzC,MAAM,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;KAC3C,CAAC;IACF,OAAO,CACL,iCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,eAAW,MAAM,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,aACxG,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,4FAA4F,GAC9F,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,0MAA0M,GAC5M,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AACF,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;AACnC,kBAAe,QAAQ,CAAC","sourcesContent":["import clsx from 'clsx';\nimport type { IconProps } from '../components/types.js';\nimport { fgTone } from '../utils/style/tone.js';\nconst displayName = 'IconShare';\n/** Renders an SVG icon. */\nconst SvgShare = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }: IconProps) => {\n const props = {\n ...rest,\n 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),\n className: clsx('cim-icon', tone && fgTone(tone), UNSAFE_className),\n style: UNSAFE_style,\n width: size != null ? size + 'px' : '1em',\n height: size != null ? size + 'px' : '1em',\n };\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" data-icon=\"true\" fill=\"currentColor\" {...props}>\n <path\n fill=\"currentColor\"\n d=\"m20.345 18.112-5.39 3.828-1.16-1.63 5.391-3.829zm-.672-5.768-.846 1.812-7.5-3.5.846-1.812z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M11 8a3 3 0 1 0-6 0 3 3 0 0 0 6 0m2 0A5 5 0 1 1 3 8a5 5 0 0 1 10 0m1 15a3 3 0 1 0-6 0 3 3 0 0 0 6 0m2 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0m10-8a3 3 0 1 0-6 0 3 3 0 0 0 6 0m2 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0\"\n />\n </svg>\n );\n};\nSvgShare.displayName = displayName;\nexport default SvgShare;\n"]}
@@ -0,0 +1,8 @@
1
+ import type { IconProps } from '../components/types.js';
2
+ /** Renders an SVG icon. */
3
+ declare const SvgStyleColor: {
4
+ ({ size, "aria-hidden": ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default SvgStyleColor;
8
+ //# sourceMappingURL=style-color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-color.d.ts","sourceRoot":"","sources":["../../../src/icons/style-color.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,2BAA2B;AAC3B,QAAA,MAAM,aAAa;yFAOhB,SAAS;;CAqBX,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const clsx_1 = __importDefault(require("clsx"));
8
+ const tone_js_1 = require("../utils/style/tone.js");
9
+ const displayName = 'IconStyleColor';
10
+ /** Renders an SVG icon. */
11
+ const SvgStyleColor = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }) => {
12
+ const props = {
13
+ ...rest,
14
+ 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),
15
+ className: (0, clsx_1.default)('cim-icon', tone && (0, tone_js_1.fgTone)(tone), UNSAFE_className),
16
+ style: UNSAFE_style,
17
+ width: size != null ? size + 'px' : '1em',
18
+ height: size != null ? size + 'px' : '1em',
19
+ };
20
+ return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "data-icon": "true", fill: "currentColor", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M15.944 29.999c2.528.01 4.425-2.183 4.165-4.637l-.032-.238c-.46-2.841 2.175-5.511 5.047-5.046l.238.031c2.375.252 4.506-1.517 4.632-3.923l.006-.243C29.966 8.43 23.83 2.196 16.352 2.005L15.996 2C8.388 2.002 2.2 8.073 2.005 15.635L2 15.996C1.998 23.626 8.31 29.973 15.944 30ZM4.004 15.687C4.17 9.204 9.475 4.002 15.996 4l.306.004C22.7 4.168 27.972 9.52 28 15.952a2.18 2.18 0 0 1-2.304 2.178l-.252-.026c-4.23-.686-8.018 3.163-7.34 7.34l.026.252a2.18 2.18 0 0 1-1.93 2.291l-.249.013C9.42 27.978 3.998 22.526 4 15.996z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M14 22.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0m-7-5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0m1-7a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0m5-2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0m3 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0" })] }));
21
+ };
22
+ SvgStyleColor.displayName = displayName;
23
+ exports.default = SvgStyleColor;
24
+ //# sourceMappingURL=style-color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-color.js","sourceRoot":"","sources":["../../../src/icons/style-color.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,oDAAgD;AAChD,MAAM,WAAW,GAAG,gBAAgB,CAAC;AACrC,2BAA2B;AAC3B,MAAM,aAAa,GAAG,CAAC,EACrB,IAAI,EACJ,aAAa,EAAE,UAAU,EACzB,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,GAAG,IAAI,EACG,EAAE,EAAE;IACd,MAAM,KAAK,GAAG;QACZ,GAAG,IAAI;QACP,aAAa,EAAE,UAAU,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC;QAC5F,SAAS,EAAE,IAAA,cAAI,EAAC,UAAU,EAAE,IAAI,IAAI,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;QACnE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;QACzC,MAAM,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;KAC3C,CAAC;IACF,OAAO,CACL,iCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,eAAW,MAAM,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,aACxG,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,kgBAAkgB,GACpgB,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,yXAAyX,GAC3X,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AACF,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;AACxC,kBAAe,aAAa,CAAC","sourcesContent":["import clsx from 'clsx';\nimport type { IconProps } from '../components/types.js';\nimport { fgTone } from '../utils/style/tone.js';\nconst displayName = 'IconStyleColor';\n/** Renders an SVG icon. */\nconst SvgStyleColor = ({\n size,\n 'aria-hidden': ariaHidden,\n tone,\n UNSAFE_className,\n UNSAFE_style,\n ...rest\n}: IconProps) => {\n const props = {\n ...rest,\n 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),\n className: clsx('cim-icon', tone && fgTone(tone), UNSAFE_className),\n style: UNSAFE_style,\n width: size != null ? size + 'px' : '1em',\n height: size != null ? size + 'px' : '1em',\n };\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" data-icon=\"true\" fill=\"currentColor\" {...props}>\n <path\n fill=\"currentColor\"\n d=\"M15.944 29.999c2.528.01 4.425-2.183 4.165-4.637l-.032-.238c-.46-2.841 2.175-5.511 5.047-5.046l.238.031c2.375.252 4.506-1.517 4.632-3.923l.006-.243C29.966 8.43 23.83 2.196 16.352 2.005L15.996 2C8.388 2.002 2.2 8.073 2.005 15.635L2 15.996C1.998 23.626 8.31 29.973 15.944 30ZM4.004 15.687C4.17 9.204 9.475 4.002 15.996 4l.306.004C22.7 4.168 27.972 9.52 28 15.952a2.18 2.18 0 0 1-2.304 2.178l-.252-.026c-4.23-.686-8.018 3.163-7.34 7.34l.026.252a2.18 2.18 0 0 1-1.93 2.291l-.249.013C9.42 27.978 3.998 22.526 4 15.996z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M14 22.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0m-7-5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0m1-7a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0m5-2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0m3 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0\"\n />\n </svg>\n );\n};\nSvgStyleColor.displayName = displayName;\nexport default SvgStyleColor;\n"]}
@@ -0,0 +1,8 @@
1
+ import type { IconProps } from '../components/types.js';
2
+ /** Renders an SVG icon. */
3
+ declare const SvgStyleEmbroidery: {
4
+ ({ size, "aria-hidden": ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default SvgStyleEmbroidery;
8
+ //# sourceMappingURL=style-embroidery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-embroidery.d.ts","sourceRoot":"","sources":["../../../src/icons/style-embroidery.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,2BAA2B;AAC3B,QAAA,MAAM,kBAAkB;yFAOrB,SAAS;;CAqBX,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const clsx_1 = __importDefault(require("clsx"));
8
+ const tone_js_1 = require("../utils/style/tone.js");
9
+ const displayName = 'IconStyleEmbroidery';
10
+ /** Renders an SVG icon. */
11
+ const SvgStyleEmbroidery = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }) => {
12
+ const props = {
13
+ ...rest,
14
+ 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),
15
+ className: (0, clsx_1.default)('cim-icon', tone && (0, tone_js_1.fgTone)(tone), UNSAFE_className),
16
+ style: UNSAFE_style,
17
+ width: size != null ? size + 'px' : '1em',
18
+ height: size != null ? size + 'px' : '1em',
19
+ };
20
+ return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "data-icon": "true", fill: "currentColor", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M9.632 28h5.734l-.25-2H9.882zM8.8 7a1 1 0 0 0-.98.802l-.015.094-1.578 15A1 1 0 0 0 7.22 24h10.556a1 1 0 0 0 .995-1.105l-1.578-15A1 1 0 0 0 16.198 7zM11 5h3V4h-3zm5 0h.198a3 3 0 0 1 2.984 2.686l1.579 15A3 3 0 0 1 17.778 26h-.646l.219 1.752.015.222a2 2 0 0 1-2 2.026H9.632a2 2 0 0 1-1.984-2.248L7.866 26h-.645a3 3 0 0 1-2.983-3.314l1.579-15 .043-.282A3 3 0 0 1 8.8 5H9V3.5A1.5 1.5 0 0 1 10.5 2h4A1.5 1.5 0 0 1 16 3.5zm7 22V12.74a2.07 2.07 0 0 1-1.07-1.666l-.321-4.507a2.397 2.397 0 1 1 4.78 0l-.321 4.507a2.07 2.07 0 0 1-1.069 1.666V27a1 1 0 1 1-2 0Zm1-21a.397.397 0 0 0-.396.425l.321 4.507a.074.074 0 0 0 .148 0l.322-4.507A.396.396 0 0 0 23.999 6Z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "m19.293 20.956-13 4-.588-1.912 13-4zm0-4-13 4-.588-1.912 13-4zm0-4-13 4-.588-1.912 13-4zm-.812-3.75-12.188 3.75-.588-1.912 12.188-3.75z" })] }));
21
+ };
22
+ SvgStyleEmbroidery.displayName = displayName;
23
+ exports.default = SvgStyleEmbroidery;
24
+ //# sourceMappingURL=style-embroidery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-embroidery.js","sourceRoot":"","sources":["../../../src/icons/style-embroidery.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,oDAAgD;AAChD,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAC1C,2BAA2B;AAC3B,MAAM,kBAAkB,GAAG,CAAC,EAC1B,IAAI,EACJ,aAAa,EAAE,UAAU,EACzB,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,GAAG,IAAI,EACG,EAAE,EAAE;IACd,MAAM,KAAK,GAAG;QACZ,GAAG,IAAI;QACP,aAAa,EAAE,UAAU,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC;QAC5F,SAAS,EAAE,IAAA,cAAI,EAAC,UAAU,EAAE,IAAI,IAAI,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;QACnE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;QACzC,MAAM,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;KAC3C,CAAC;IACF,OAAO,CACL,iCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,eAAW,MAAM,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,aACxG,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,woBAAwoB,GAC1oB,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,yIAAyI,GAC3I,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AACF,kBAAkB,CAAC,WAAW,GAAG,WAAW,CAAC;AAC7C,kBAAe,kBAAkB,CAAC","sourcesContent":["import clsx from 'clsx';\nimport type { IconProps } from '../components/types.js';\nimport { fgTone } from '../utils/style/tone.js';\nconst displayName = 'IconStyleEmbroidery';\n/** Renders an SVG icon. */\nconst SvgStyleEmbroidery = ({\n size,\n 'aria-hidden': ariaHidden,\n tone,\n UNSAFE_className,\n UNSAFE_style,\n ...rest\n}: IconProps) => {\n const props = {\n ...rest,\n 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),\n className: clsx('cim-icon', tone && fgTone(tone), UNSAFE_className),\n style: UNSAFE_style,\n width: size != null ? size + 'px' : '1em',\n height: size != null ? size + 'px' : '1em',\n };\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" data-icon=\"true\" fill=\"currentColor\" {...props}>\n <path\n fill=\"currentColor\"\n d=\"M9.632 28h5.734l-.25-2H9.882zM8.8 7a1 1 0 0 0-.98.802l-.015.094-1.578 15A1 1 0 0 0 7.22 24h10.556a1 1 0 0 0 .995-1.105l-1.578-15A1 1 0 0 0 16.198 7zM11 5h3V4h-3zm5 0h.198a3 3 0 0 1 2.984 2.686l1.579 15A3 3 0 0 1 17.778 26h-.646l.219 1.752.015.222a2 2 0 0 1-2 2.026H9.632a2 2 0 0 1-1.984-2.248L7.866 26h-.645a3 3 0 0 1-2.983-3.314l1.579-15 .043-.282A3 3 0 0 1 8.8 5H9V3.5A1.5 1.5 0 0 1 10.5 2h4A1.5 1.5 0 0 1 16 3.5zm7 22V12.74a2.07 2.07 0 0 1-1.07-1.666l-.321-4.507a2.397 2.397 0 1 1 4.78 0l-.321 4.507a2.07 2.07 0 0 1-1.069 1.666V27a1 1 0 1 1-2 0Zm1-21a.397.397 0 0 0-.396.425l.321 4.507a.074.074 0 0 0 .148 0l.322-4.507A.396.396 0 0 0 23.999 6Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"m19.293 20.956-13 4-.588-1.912 13-4zm0-4-13 4-.588-1.912 13-4zm0-4-13 4-.588-1.912 13-4zm-.812-3.75-12.188 3.75-.588-1.912 12.188-3.75z\"\n />\n </svg>\n );\n};\nSvgStyleEmbroidery.displayName = displayName;\nexport default SvgStyleEmbroidery;\n"]}
@@ -0,0 +1,8 @@
1
+ import type { IconProps } from '../components/types.js';
2
+ /** Renders an SVG icon. */
3
+ declare const SvgStyleMonochrome: {
4
+ ({ size, "aria-hidden": ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default SvgStyleMonochrome;
8
+ //# sourceMappingURL=style-monochrome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-monochrome.d.ts","sourceRoot":"","sources":["../../../src/icons/style-monochrome.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,2BAA2B;AAC3B,QAAA,MAAM,kBAAkB;yFAOrB,SAAS;;CAqBX,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const clsx_1 = __importDefault(require("clsx"));
8
+ const tone_js_1 = require("../utils/style/tone.js");
9
+ const displayName = 'IconStyleMonochrome';
10
+ /** Renders an SVG icon. */
11
+ const SvgStyleMonochrome = ({ size, 'aria-hidden': ariaHidden, tone, UNSAFE_className, UNSAFE_style, ...rest }) => {
12
+ const props = {
13
+ ...rest,
14
+ 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),
15
+ className: (0, clsx_1.default)('cim-icon', tone && (0, tone_js_1.fgTone)(tone), UNSAFE_className),
16
+ style: UNSAFE_style,
17
+ width: size != null ? size + 'px' : '1em',
18
+ height: size != null ? size + 'px' : '1em',
19
+ };
20
+ return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "data-icon": "true", fill: "currentColor", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M25 17.873c0-2.438-1.222-4.748-3.02-7.012-1.52-1.91-3.314-3.637-4.98-5.34v22.414c4.417-.56 8-4.77 8-10.062m-18 0c0 5.292 3.583 9.503 8 10.061V5.521c-1.666 1.703-3.46 3.43-4.98 5.34C8.223 13.125 7 15.435 7 17.873m20 0C27 24.458 22.164 30 16 30S5 24.458 5 17.873c0-3.114 1.556-5.868 3.455-8.257 1.88-2.366 4.287-4.589 6.054-6.467l.157-.15a2.05 2.05 0 0 1 2.825.15c1.767 1.878 4.173 4.101 6.054 6.467C25.444 12.006 27 14.76 27 17.873" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "m26.707 17.707-10 10-1.414-1.414 10-10zm-1.5-3.5-8.5 8.5-1.414-1.414 8.5-8.5zm-2-3-6.5 6.5-1.414-1.414 6.5-6.5zm-2-3-4.5 4.5-1.414-1.414 4.5-4.5z" })] }));
21
+ };
22
+ SvgStyleMonochrome.displayName = displayName;
23
+ exports.default = SvgStyleMonochrome;
24
+ //# sourceMappingURL=style-monochrome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-monochrome.js","sourceRoot":"","sources":["../../../src/icons/style-monochrome.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,oDAAgD;AAChD,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAC1C,2BAA2B;AAC3B,MAAM,kBAAkB,GAAG,CAAC,EAC1B,IAAI,EACJ,aAAa,EAAE,UAAU,EACzB,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,GAAG,IAAI,EACG,EAAE,EAAE;IACd,MAAM,KAAK,GAAG;QACZ,GAAG,IAAI;QACP,aAAa,EAAE,UAAU,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC;QAC5F,SAAS,EAAE,IAAA,cAAI,EAAC,UAAU,EAAE,IAAI,IAAI,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;QACnE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;QACzC,MAAM,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK;KAC3C,CAAC;IACF,OAAO,CACL,iCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,eAAW,MAAM,EAAC,IAAI,EAAC,cAAc,KAAK,KAAK,aACxG,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,gbAAgb,GAClb,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,mJAAmJ,GACrJ,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AACF,kBAAkB,CAAC,WAAW,GAAG,WAAW,CAAC;AAC7C,kBAAe,kBAAkB,CAAC","sourcesContent":["import clsx from 'clsx';\nimport type { IconProps } from '../components/types.js';\nimport { fgTone } from '../utils/style/tone.js';\nconst displayName = 'IconStyleMonochrome';\n/** Renders an SVG icon. */\nconst SvgStyleMonochrome = ({\n size,\n 'aria-hidden': ariaHidden,\n tone,\n UNSAFE_className,\n UNSAFE_style,\n ...rest\n}: IconProps) => {\n const props = {\n ...rest,\n 'aria-hidden': ariaHidden ?? (rest['aria-label'] == null && rest['aria-labelledby'] == null),\n className: clsx('cim-icon', tone && fgTone(tone), UNSAFE_className),\n style: UNSAFE_style,\n width: size != null ? size + 'px' : '1em',\n height: size != null ? size + 'px' : '1em',\n };\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" data-icon=\"true\" fill=\"currentColor\" {...props}>\n <path\n fill=\"currentColor\"\n d=\"M25 17.873c0-2.438-1.222-4.748-3.02-7.012-1.52-1.91-3.314-3.637-4.98-5.34v22.414c4.417-.56 8-4.77 8-10.062m-18 0c0 5.292 3.583 9.503 8 10.061V5.521c-1.666 1.703-3.46 3.43-4.98 5.34C8.223 13.125 7 15.435 7 17.873m20 0C27 24.458 22.164 30 16 30S5 24.458 5 17.873c0-3.114 1.556-5.868 3.455-8.257 1.88-2.366 4.287-4.589 6.054-6.467l.157-.15a2.05 2.05 0 0 1 2.825.15c1.767 1.878 4.173 4.101 6.054 6.467C25.444 12.006 27 14.76 27 17.873\"\n />\n <path\n fill=\"currentColor\"\n d=\"m26.707 17.707-10 10-1.414-1.414 10-10zm-1.5-3.5-8.5 8.5-1.414-1.414 8.5-8.5zm-2-3-6.5 6.5-1.414-1.414 6.5-6.5zm-2-3-4.5 4.5-1.414-1.414 4.5-4.5z\"\n />\n </svg>\n );\n};\nSvgStyleMonochrome.displayName = displayName;\nexport default SvgStyleMonochrome;\n"]}
@@ -52,6 +52,7 @@ export * from './components/tag-field/tag-field.js';
52
52
  export * from './components/toggle-button/toggle-button.js';
53
53
  export * from './components/toggle-button/toggle-icon-button.js';
54
54
  export * from './components/toggle-button/toggle-button-group.js';
55
+ export * from './components/file-trigger.js';
55
56
  export * from './components/spacing/box/box.js';
56
57
  export * from './components/spacing/stack/stack.js';
57
58
  export * from './components/typography/text.js';
@@ -68,7 +69,8 @@ export * from './components/container/container.js';
68
69
  export * from './components/toggle/toggle.js';
69
70
  export * from './components/internal/x-button/x-button.js';
70
71
  export * from './components/toast/toast-region.js';
71
- export type { UNSTABLE_ToastContent } from './components/toast/types.js';
72
+ export { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';
73
+ export type { UNSTABLE_ToastOptions } from './components/toast/types.js';
72
74
  export * from './components/alert-dialog/alert-dialog.js';
73
75
  export * from './components/drawer/drawer.js';
74
76
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5F,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc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AAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC"}
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.UNSTABLE_toastQueue = void 0;
17
18
  __exportStar(require("./components/alert/alert.js"), exports);
18
19
  __exportStar(require("./components/app-header/app-header.js"), exports);
19
20
  __exportStar(require("./components/app-header/simple-auth-tool.js"), exports);
@@ -65,6 +66,7 @@ __exportStar(require("./components/tag-field/tag-field.js"), exports);
65
66
  __exportStar(require("./components/toggle-button/toggle-button.js"), exports);
66
67
  __exportStar(require("./components/toggle-button/toggle-icon-button.js"), exports);
67
68
  __exportStar(require("./components/toggle-button/toggle-button-group.js"), exports);
69
+ __exportStar(require("./components/file-trigger.js"), exports);
68
70
  __exportStar(require("./components/spacing/box/box.js"), exports);
69
71
  __exportStar(require("./components/spacing/stack/stack.js"), exports);
70
72
  __exportStar(require("./components/typography/text.js"), exports);
@@ -78,6 +80,8 @@ __exportStar(require("./components/container/container.js"), exports);
78
80
  __exportStar(require("./components/toggle/toggle.js"), exports);
79
81
  __exportStar(require("./components/internal/x-button/x-button.js"), exports);
80
82
  __exportStar(require("./components/toast/toast-region.js"), exports);
83
+ var toast_queue_js_1 = require("./components/toast/toast-queue.js");
84
+ Object.defineProperty(exports, "UNSTABLE_toastQueue", { enumerable: true, get: function () { return toast_queue_js_1.UNSTABLE_toastQueue; } });
81
85
  __exportStar(require("./components/alert-dialog/alert-dialog.js"), exports);
82
86
  __exportStar(require("./components/drawer/drawer.js"), exports);
83
87
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,wEAAsD;AACtD,8EAA4D;AAC5D,8DAA4C;AAC5C,gEAA8C;AAC9C,qEAAmD;AACnD,qEAAmD;AACnD,0EAAwD;AACxD,kEAAgD;AAChD,4DAA0C;AAC1C,oEAAkD;AAClD,0EAAwD;AACxD,sEAAoD;AACpD,0EAAwD;AACxD,0EAAwD;AACxD,wEAAsD;AACtD,8EAA4D;AAE5D,kEAAgD;AAChD,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,4EAA0D;AAC1D,4EAA0D;AAC1D,wEAAsD;AACtD,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,kEAAgD;AAChD,yEAAuD;AACvD,wEAAsD;AACtD,0EAAwD;AACxD,kEAAgD;AAChD,kEAAgD;AAChD,wEAAsD;AACtD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,0EAAwD;AACxD,mEAAiD;AACjD,uEAAqD;AACrD,wEAAsD;AACtD,2EAAyD;AACzD,gFAA8D;AAC9D,0EAAwD;AAGxD,4DAA0C;AAC1C,0DAAwC;AACxC,gEAA8C;AAC9C,sEAAoD;AACpD,8EAA4D;AAC5D,mFAAiE;AACjE,oFAAkE;AAElE,kEAAgD;AAChD,sEAAoD;AAEpD,kEAAgD;AAChD,kEAAgD;AAoBhD,kEAAgD;AAChD,wEAAsD;AAEtD,2BAA2B;AAC3B,kFAAgE;AAChE,0EAAwD;AACxD,sEAAoD;AACpD,gEAA8C;AAC9C,6EAA2D;AAC3D,qEAAmD;AAEnD,4EAA0D;AAC1D,gEAA8C","sourcesContent":["export * from './components/alert/alert.js';\nexport * from './components/app-header/app-header.js';\nexport * from './components/app-header/simple-auth-tool.js';\nexport * from './components/badge/badge.js';\nexport * from './components/button/button.js';\nexport * from './components/button/link-button.js';\nexport * from './components/button/icon-button.js';\nexport * from './components/button/icon-link-button.js';\nexport * from './components/callout/callout.js';\nexport * from './components/card/card.js';\nexport * from './components/checkbox/checkbox.js';\nexport * from './components/checkbox/checkbox-group.js';\nexport * from './components/combo-box/combo-box.js';\nexport * from './components/date-picker/date-picker.js';\nexport * from './components/dialog-root/dialog-root.js';\nexport * from './components/disclosure/disclosure.js';\nexport * from './components/disclosure/disclosure-group.js';\nexport type { DisclosureSize, DisclosureVariant } from './components/disclosure/context.js';\nexport * from './components/divider/divider.js';\nexport * from './components/form/form.js';\nexport * from './components/link-tabs/link-tabs.js';\nexport * from './components/menu/menu.js';\nexport * from './components/modal-dialog/modal-dialog.js';\nexport * from './components/number-field/number-field.js';\nexport * from './components/pagination/pagination.js';\nexport * from './components/radio/radio.js';\nexport * from './components/radio/radio-group.js';\nexport * from './components/select/select.js';\nexport * from './components/spinner/spinner.js';\nexport * from './components/text-inputs/text-field.js';\nexport * from './components/text-inputs/text-area.js';\nexport * from './components/breadcrumbs/breadcrumbs.js';\nexport * from './components/tooltip/tooltip.js';\nexport * from './components/popover/popover.js';\nexport * from './components/table/table-container.js';\nexport * from './components/table/table.js';\nexport * from './components/table/table-header.js';\nexport * from './components/table/table-header-row.js';\nexport * from './components/table/table-header-cell.js';\nexport * from './components/table/table-body.js';\nexport * from './components/table/table-body-row.js';\nexport * from './components/table/table-body-cell.js';\nexport * from './components/table/table-row-selector.js';\nexport * from './components/table/table-all-rows-selector.js';\nexport * from './components/table/table-empty-state.js';\nexport type { RowSelectionMode as TableRowSelectionMode } from './components/table/contexts/table-state.js';\nexport type { ColumnContentAlignment as TableColumnContentAlignment } from './components/table/contexts/column-collection.js';\nexport * from './components/tabs/tabs.js';\nexport * from './components/tag/tag.js';\nexport * from './components/tag/tag-group.js';\nexport * from './components/tag-field/tag-field.js';\nexport * from './components/toggle-button/toggle-button.js';\nexport * from './components/toggle-button/toggle-icon-button.js';\nexport * from './components/toggle-button/toggle-button-group.js';\n\nexport * from './components/spacing/box/box.js';\nexport * from './components/spacing/stack/stack.js';\n\nexport * from './components/typography/text.js';\nexport * from './components/typography/link.js';\n\nexport type { ForegroundTone } from './utils/style/types.js';\n\nexport type {\n CollectionItem,\n Direction,\n FieldError,\n HoverEvent,\n Key,\n Selection,\n PressEvent,\n RouterConfig,\n Href,\n RouterOptions,\n ValidationResult,\n} from './components/types.js';\nexport type { Spacing, Responsive } from './components/spacing/types.js';\nexport type { StyleProps } from './with-style-props.js';\n\nexport * from './providers/ssr/ssr-provider.js';\nexport * from './providers/router/router-provider.js';\n\n// Unfinished exports below\nexport * from './components/visually-hidden/visually-hidden.js';\nexport * from './components/file-picker/file-picker.js';\nexport * from './components/container/container.js';\nexport * from './components/toggle/toggle.js';\nexport * from './components/internal/x-button/x-button.js';\nexport * from './components/toast/toast-region.js';\nexport type { UNSTABLE_ToastContent } from './components/toast/types.js';\nexport * from './components/alert-dialog/alert-dialog.js';\nexport * from './components/drawer/drawer.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,wEAAsD;AACtD,8EAA4D;AAC5D,8DAA4C;AAC5C,gEAA8C;AAC9C,qEAAmD;AACnD,qEAAmD;AACnD,0EAAwD;AACxD,kEAAgD;AAChD,4DAA0C;AAC1C,oEAAkD;AAClD,0EAAwD;AACxD,sEAAoD;AACpD,0EAAwD;AACxD,0EAAwD;AACxD,wEAAsD;AACtD,8EAA4D;AAE5D,kEAAgD;AAChD,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,4EAA0D;AAC1D,4EAA0D;AAC1D,wEAAsD;AACtD,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,kEAAgD;AAChD,yEAAuD;AACvD,wEAAsD;AACtD,0EAAwD;AACxD,kEAAgD;AAChD,kEAAgD;AAChD,wEAAsD;AACtD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,0EAAwD;AACxD,mEAAiD;AACjD,uEAAqD;AACrD,wEAAsD;AACtD,2EAAyD;AACzD,gFAA8D;AAC9D,0EAAwD;AAGxD,4DAA0C;AAC1C,0DAAwC;AACxC,gEAA8C;AAC9C,sEAAoD;AACpD,8EAA4D;AAC5D,mFAAiE;AACjE,oFAAkE;AAClE,+DAA6C;AAE7C,kEAAgD;AAChD,sEAAoD;AAEpD,kEAAgD;AAChD,kEAAgD;AAoBhD,kEAAgD;AAChD,wEAAsD;AAEtD,2BAA2B;AAC3B,kFAAgE;AAChE,0EAAwD;AACxD,sEAAoD;AACpD,gEAA8C;AAC9C,6EAA2D;AAC3D,qEAAmD;AACnD,oEAAkG;AAAzF,qHAAA,mBAAmB,OAAA;AAE5B,4EAA0D;AAC1D,gEAA8C","sourcesContent":["export * from './components/alert/alert.js';\nexport * from './components/app-header/app-header.js';\nexport * from './components/app-header/simple-auth-tool.js';\nexport * from './components/badge/badge.js';\nexport * from './components/button/button.js';\nexport * from './components/button/link-button.js';\nexport * from './components/button/icon-button.js';\nexport * from './components/button/icon-link-button.js';\nexport * from './components/callout/callout.js';\nexport * from './components/card/card.js';\nexport * from './components/checkbox/checkbox.js';\nexport * from './components/checkbox/checkbox-group.js';\nexport * from './components/combo-box/combo-box.js';\nexport * from './components/date-picker/date-picker.js';\nexport * from './components/dialog-root/dialog-root.js';\nexport * from './components/disclosure/disclosure.js';\nexport * from './components/disclosure/disclosure-group.js';\nexport type { DisclosureSize, DisclosureVariant } from './components/disclosure/context.js';\nexport * from './components/divider/divider.js';\nexport * from './components/form/form.js';\nexport * from './components/link-tabs/link-tabs.js';\nexport * from './components/menu/menu.js';\nexport * from './components/modal-dialog/modal-dialog.js';\nexport * from './components/number-field/number-field.js';\nexport * from './components/pagination/pagination.js';\nexport * from './components/radio/radio.js';\nexport * from './components/radio/radio-group.js';\nexport * from './components/select/select.js';\nexport * from './components/spinner/spinner.js';\nexport * from './components/text-inputs/text-field.js';\nexport * from './components/text-inputs/text-area.js';\nexport * from './components/breadcrumbs/breadcrumbs.js';\nexport * from './components/tooltip/tooltip.js';\nexport * from './components/popover/popover.js';\nexport * from './components/table/table-container.js';\nexport * from './components/table/table.js';\nexport * from './components/table/table-header.js';\nexport * from './components/table/table-header-row.js';\nexport * from './components/table/table-header-cell.js';\nexport * from './components/table/table-body.js';\nexport * from './components/table/table-body-row.js';\nexport * from './components/table/table-body-cell.js';\nexport * from './components/table/table-row-selector.js';\nexport * from './components/table/table-all-rows-selector.js';\nexport * from './components/table/table-empty-state.js';\nexport type { RowSelectionMode as TableRowSelectionMode } from './components/table/contexts/table-state.js';\nexport type { ColumnContentAlignment as TableColumnContentAlignment } from './components/table/contexts/column-collection.js';\nexport * from './components/tabs/tabs.js';\nexport * from './components/tag/tag.js';\nexport * from './components/tag/tag-group.js';\nexport * from './components/tag-field/tag-field.js';\nexport * from './components/toggle-button/toggle-button.js';\nexport * from './components/toggle-button/toggle-icon-button.js';\nexport * from './components/toggle-button/toggle-button-group.js';\nexport * from './components/file-trigger.js';\n\nexport * from './components/spacing/box/box.js';\nexport * from './components/spacing/stack/stack.js';\n\nexport * from './components/typography/text.js';\nexport * from './components/typography/link.js';\n\nexport type { ForegroundTone } from './utils/style/types.js';\n\nexport type {\n CollectionItem,\n Direction,\n FieldError,\n HoverEvent,\n Key,\n Selection,\n PressEvent,\n RouterConfig,\n Href,\n RouterOptions,\n ValidationResult,\n} from './components/types.js';\nexport type { Spacing, Responsive } from './components/spacing/types.js';\nexport type { StyleProps } from './with-style-props.js';\n\nexport * from './providers/ssr/ssr-provider.js';\nexport * from './providers/router/router-provider.js';\n\n// Unfinished exports below\nexport * from './components/visually-hidden/visually-hidden.js';\nexport * from './components/file-picker/file-picker.js';\nexport * from './components/container/container.js';\nexport * from './components/toggle/toggle.js';\nexport * from './components/internal/x-button/x-button.js';\nexport * from './components/toast/toast-region.js';\nexport { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';\nexport type { UNSTABLE_ToastOptions } from './components/toast/types.js';\nexport * from './components/alert-dialog/alert-dialog.js';\nexport * from './components/drawer/drawer.js';\n"]}
@@ -1,8 +1,8 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { type CheckboxGroupProps as RACCheckboxGroupProps } from 'react-aria-components';
3
3
  import type { Responsive } from '../spacing/types.js';
4
- import type { Direction, CommonProps, FieldProps, WithRequired } from '../types.js';
5
- export interface CheckboxGroupProps extends CommonProps, WithRequired<FieldProps<string[]>, 'label'>, Pick<RACCheckboxGroupProps, 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'value' | 'onChange' | 'defaultValue'> {
4
+ import type { Direction, CommonProps, FieldProps } from '../types.js';
5
+ export interface CheckboxGroupProps extends CommonProps, FieldProps<string[]>, Pick<RACCheckboxGroupProps, 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'value' | 'onChange' | 'defaultValue'> {
6
6
  /** Checkboxes belonging to the group. Each checkbox must have a `value` prop defined. */
7
7
  children: ReactNode;
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-group.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/checkbox-group.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEL,KAAK,kBAAkB,IAAI,qBAAqB,EACjD,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAc,UAAU,EAAW,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEpF,MAAM,WAAW,kBACf,SAAQ,WAAW,EACjB,YAAY,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAC3C,IAAI,CACF,qBAAqB,EACrB,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,cAAc,CACjG;IACH,yFAAyF;IACzF,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACnC;AAgCD;;;;GAIG;AACH,QAAA,MAAM,cAAc,oKAA6D,CAAC;AAElF,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"checkbox-group.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/checkbox-group.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEL,KAAK,kBAAkB,IAAI,qBAAqB,EACjD,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EAAc,UAAU,EAAW,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtE,MAAM,WAAW,kBACf,SAAQ,WAAW,EACjB,UAAU,CAAC,MAAM,EAAE,CAAC,EACpB,IAAI,CACF,qBAAqB,EACrB,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,cAAc,CACjG;IACH,yFAAyF;IACzF,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACnC;AA0CD;;;;GAIG;AACH,QAAA,MAAM,cAAc,oKAA6D,CAAC;AAElF,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,CAAC"}
@@ -3,11 +3,18 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import clsx from 'clsx';
4
4
  import { CheckboxGroup as RACCheckboxGroup, } from 'react-aria-components';
5
5
  import { forwardRef } from '../../forward-ref.js';
6
+ import { useProductionWarning } from '../../utils/use-production-warning.js';
6
7
  import { withStyleProps } from '../../with-style-props.js';
7
8
  import { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';
8
9
  import { Stack } from '../spacing/stack/stack.js';
9
10
  function CheckboxGroup({ label, description, error: errorMessage, direction = 'vertical', children, UNSAFE_className, UNSAFE_style, ...props }, ref) {
10
- return (_jsxs(RACCheckboxGroup, { ...props, ref: ref, className: clsx('cim-checkbox-group', UNSAFE_className), style: UNSAFE_style, children: [_jsx(FormFieldLabel, { isRequired: props.isRequired, children: label }), _jsx(Stack, { gap: getGapFromDirection(direction), direction: direction, wrap: true, children: children }), _jsx(FormFieldError, { children: errorMessage }), _jsx(FormFieldDescription, { children: description })] }));
11
+ const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;
12
+ useProductionWarning(() => {
13
+ if (!label && !ariaLabel && !ariaLabelledBy) {
14
+ console.warn('CheckboxGroup requires one of label / aria-label / aria-labelledby for accessibility');
15
+ }
16
+ }, [label, ariaLabel, ariaLabelledBy]);
17
+ return (_jsxs(RACCheckboxGroup, { ...props, ref: ref, className: clsx('cim-checkbox-group', UNSAFE_className), style: UNSAFE_style, children: [_jsx(FormFieldLabel, { isRequired: props.isRequired, isDisabled: props.isDisabled, children: label }), _jsx(Stack, { gap: getGapFromDirection(direction), direction: direction, wrap: true, children: children }), _jsx(FormFieldError, { children: errorMessage }), _jsx(FormFieldDescription, { children: description })] }));
11
18
  }
12
19
  /**
13
20
  * Allows users to select one or more items from a visible list.
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-group.js","sourceRoot":"","sources":["../../../../src/components/checkbox/checkbox-group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EACL,aAAa,IAAI,gBAAgB,GAElC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC5G,OAAO,EAAE,KAAK,EAA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E,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC","sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport type { ReactNode } from 'react';\nimport type { ForwardedRef } from 'react';\nimport {\n CheckboxGroup as RACCheckboxGroup,\n type CheckboxGroupProps as RACCheckboxGroupProps,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';\nimport { Stack } from '../spacing/stack/stack.js';\nimport type { Breakpoint, Responsive, Spacing } from '../spacing/types.js';\nimport type { Direction, CommonProps, FieldProps, WithRequired } from '../types.js';\n\nexport interface CheckboxGroupProps\n extends CommonProps,\n WithRequired<FieldProps<string[]>, 'label'>,\n Pick<\n RACCheckboxGroupProps,\n 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'value' | 'onChange' | 'defaultValue'\n > {\n /** Checkboxes belonging to the group. Each checkbox must have a `value` prop defined. */\n children: ReactNode;\n /**\n * Determines the direction in which checkboxes will be stacked.\n * @default 'vertical'\n */\n direction?: Responsive<Direction>;\n}\n\nfunction CheckboxGroup(\n {\n label,\n description,\n error: errorMessage,\n direction = 'vertical',\n children,\n UNSAFE_className,\n UNSAFE_style,\n ...props\n }: CheckboxGroupProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n return (\n <RACCheckboxGroup\n {...props}\n ref={ref}\n className={clsx('cim-checkbox-group', UNSAFE_className)}\n style={UNSAFE_style}\n >\n <FormFieldLabel isRequired={props.isRequired}>{label}</FormFieldLabel>\n <Stack gap={getGapFromDirection(direction)} direction={direction} wrap>\n {children}\n </Stack>\n <FormFieldError>{errorMessage}</FormFieldError>\n <FormFieldDescription>{description}</FormFieldDescription>\n </RACCheckboxGroup>\n );\n}\n\n/**\n * Allows users to select one or more items from a visible list.\n *\n * See [checkbox usage guidelines](https://ui.cimpress.io/components/checkbox/).\n */\nconst _CheckboxGroup = withStyleProps(forwardRef(CheckboxGroup), 'CheckboxGroup');\n\nexport { _CheckboxGroup as CheckboxGroup };\n\n// Make sure that checkboxes are spaced by 16px when stacked horizontally, and 8px otherwise.\nfunction getGapFromDirection(direction: Responsive<Direction>): Responsive<Spacing> {\n if (typeof direction === 'object') {\n const gap: Responsive<Spacing> = { sm: direction.sm === 'horizontal' ? 16 : 8 };\n\n (Object.entries(direction) as [Breakpoint, Direction][]).reduce((acc, curr) => {\n gap[curr[0]] = curr[1] === 'horizontal' ? 16 : 8;\n return acc;\n }, gap);\n\n return gap;\n }\n\n return direction === 'horizontal' ? 16 : 8;\n}\n"]}
1
+ {"version":3,"file":"checkbox-group.js","sourceRoot":"","sources":["../../../../src/components/checkbox/checkbox-group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EACL,aAAa,IAAI,gBAAgB,GAElC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC5G,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAoBlD,SAAS,aAAa,CACpB,EACE,KAAK,EACL,WAAW,EACX,KAAK,EAAE,YAAY,EACnB,SAAS,GAAG,UAAU,EACtB,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,GAAG,KAAK,EACW,EACrB,GAAiC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+B,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAC5E,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC","sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport type { ReactNode } from 'react';\nimport type { ForwardedRef } from 'react';\nimport {\n CheckboxGroup as RACCheckboxGroup,\n type CheckboxGroupProps as RACCheckboxGroupProps,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { useProductionWarning } from '../../utils/use-production-warning.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';\nimport { Stack } from '../spacing/stack/stack.js';\nimport type { Breakpoint, Responsive, Spacing } from '../spacing/types.js';\nimport type { Direction, CommonProps, FieldProps } from '../types.js';\n\nexport interface CheckboxGroupProps\n extends CommonProps,\n FieldProps<string[]>,\n Pick<\n RACCheckboxGroupProps,\n 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'value' | 'onChange' | 'defaultValue'\n > {\n /** Checkboxes belonging to the group. Each checkbox must have a `value` prop defined. */\n children: ReactNode;\n /**\n * Determines the direction in which checkboxes will be stacked.\n * @default 'vertical'\n */\n direction?: Responsive<Direction>;\n}\n\nfunction CheckboxGroup(\n {\n label,\n description,\n error: errorMessage,\n direction = 'vertical',\n children,\n UNSAFE_className,\n UNSAFE_style,\n ...props\n }: CheckboxGroupProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;\n\n useProductionWarning(() => {\n if (!label && !ariaLabel && !ariaLabelledBy) {\n console.warn('CheckboxGroup requires one of label / aria-label / aria-labelledby for accessibility');\n }\n }, [label, ariaLabel, ariaLabelledBy]);\n\n return (\n <RACCheckboxGroup\n {...props}\n ref={ref}\n className={clsx('cim-checkbox-group', UNSAFE_className)}\n style={UNSAFE_style}\n >\n <FormFieldLabel isRequired={props.isRequired} isDisabled={props.isDisabled}>\n {label}\n </FormFieldLabel>\n <Stack gap={getGapFromDirection(direction)} direction={direction} wrap>\n {children}\n </Stack>\n <FormFieldError>{errorMessage}</FormFieldError>\n <FormFieldDescription>{description}</FormFieldDescription>\n </RACCheckboxGroup>\n );\n}\n\n/**\n * Allows users to select one or more items from a visible list.\n *\n * See [checkbox usage guidelines](https://ui.cimpress.io/components/checkbox/).\n */\nconst _CheckboxGroup = withStyleProps(forwardRef(CheckboxGroup), 'CheckboxGroup');\n\nexport { _CheckboxGroup as CheckboxGroup };\n\n// Make sure that checkboxes are spaced by 16px when stacked horizontally, and 8px otherwise.\nfunction getGapFromDirection(direction: Responsive<Direction>): Responsive<Spacing> {\n if (typeof direction === 'object') {\n const gap: Responsive<Spacing> = { sm: direction.sm === 'horizontal' ? 16 : 8 };\n\n (Object.entries(direction) as [Breakpoint, Direction][]).reduce((acc, curr) => {\n gap[curr[0]] = curr[1] === 'horizontal' ? 16 : 8;\n return acc;\n }, gap);\n\n return gap;\n }\n\n return direction === 'horizontal' ? 16 : 8;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { type ListBoxProps as RACListBoxProps, type ComboBoxProps as RACComboBoxProps, type ListBoxItemProps as RACListBoxItemProps } from 'react-aria-components';
2
- import type { CollectionItem, CollectionProps, CommonProps, FieldWithPlaceholderProps, Key, StringLikeChildren } from '../types.js';
2
+ import type { AsyncItemLoadingProps, CollectionItem, CollectionProps, CommonProps, FieldWithPlaceholderProps, Key, StringLikeChildren } from '../types.js';
3
3
  /** Represents the state of the `ComboBox` component for validation purposes. */
4
4
  export interface ComboBoxValidationValue {
5
5
  /** The selected key in the ComboBox. */
@@ -7,7 +7,7 @@ export interface ComboBoxValidationValue {
7
7
  /** The value of the ComboBox input. */
8
8
  inputValue: string;
9
9
  }
10
- export interface ComboBoxProps<T extends CollectionItem = CollectionItem> extends CommonProps, FieldWithPlaceholderProps<ComboBoxValidationValue>, CollectionProps<T>, Pick<RACComboBoxProps<T>, 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'selectedKey' | 'defaultSelectedKey' | 'inputValue' | 'defaultInputValue' | 'autoFocus' | 'onSelectionChange' | 'onInputChange' | 'onFocus' | 'onBlur' | 'onOpenChange'>, Pick<RACListBoxProps<T>, 'onScroll'> {
10
+ export interface ComboBoxProps<T extends CollectionItem = CollectionItem> extends CommonProps, FieldWithPlaceholderProps<ComboBoxValidationValue>, CollectionProps<T>, AsyncItemLoadingProps, Pick<RACComboBoxProps<T>, 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'selectedKey' | 'defaultSelectedKey' | 'inputValue' | 'defaultInputValue' | 'autoFocus' | 'onSelectionChange' | 'onInputChange' | 'onFocus' | 'onBlur' | 'onOpenChange'>, Pick<RACListBoxProps<T>, 'onScroll'> {
11
11
  /**
12
12
  * Whether the list of options should be virtualized. Use this as a performance optimization for large lists.
13
13
  * @default false
@@ -1 +1 @@
1
- {"version":3,"file":"combo-box.d.ts","sourceRoot":"","sources":["../../../../src/components/combo-box/combo-box.tsx"],"names":[],"mappings":"AAIA,OAAO,EASL,KAAK,YAAY,IAAI,eAAe,EAMpC,KAAK,aAAa,IAAI,gBAAgB,EACtC,KAAK,gBAAgB,IAAI,mBAAmB,EAE7C,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,WAAW,EACX,yBAAyB,EACzB,GAAG,EACH,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAUrB,gFAAgF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AE,CAAC,EAAE,GAAG,CAAC;IACT,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,0DAA0D;AAC1D,wBAAgB,eAAe,CAAC,CAAC,SAAS,cAAc,EAAE,EACxD,KAAK,EACL,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAezB;yBApBe,eAAe"}
1
+ {"version":3,"file":"combo-box.d.ts","sourceRoot":"","sources":["../../../../src/components/combo-box/combo-box.tsx"],"names":[],"mappings":"AAIA,OAAO,EASL,KAAK,YAAY,IAAI,eAAe,EAOpC,KAAK,aAAa,IAAI,gBAAgB,EACtC,KAAK,gBAAgB,IAAI,mBAAmB,EAE7C,MAAM,uBAAuB,CAAC;AAU/B,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,WAAW,EACX,yBAAyB,EACzB,GAAG,EACH,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAWrB,gFAAgF;AAChF,MAAM,WAAW,uBAAuB;IACtC,wCAAwC;IACxC,WAAW,EAAE,GAAG,GAAG,IAAI,CAAC;IACxB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CACtE,SAAQ,WAAW,EACjB,yBAAyB,CAAC,uBAAuB,CAAC,EAClD,eAAe,CAAC,CAAC,CAAC,EAClB,qBAAqB,EACrB,IAAI,CACF,gBAAgB,CAAC,CAAC,CAAC,EACjB,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,aAAa,GACb,oBAAoB,GACpB,YAAY,GACZ,mBAAmB,GACnB,WAAW,GACX,mBAAmB,GACnB,eAAe,GACf,SAAS,GACT,QAAQ,GACR,cAAc,CACjB,EACD,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IACtC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAuFD;;;;GAIG;AACH,QAAA,MAAM,SAAS,GA1FG,CAAC,SAAS,cAAc,iKA0FwB,CAAC;AAEnE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAsBjC,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,cAAc,CACzD,SAAQ,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY,CAAC;IACzF,2CAA2C;IAC3C,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED,oDAAoD;AACpD,wBAAgB,YAAY,CAAC,CAAC,SAAS,cAAc,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAiBlG;yBAjBe,YAAY;;;AAqB5B,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,cAAc,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxF,6EAA6E;IAC7E,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,0DAA0D;AAC1D,wBAAgB,eAAe,CAAC,CAAC,SAAS,cAAc,EAAE,EACxD,KAAK,EACL,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAezB;yBApBe,eAAe"}
@@ -2,22 +2,25 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import clsx from 'clsx';
4
4
  import { useContext } from 'react';
5
- import { Button as RACButton, Collection as RACCollection, ComboBox as RACComboBox, ComboBoxStateContext as RACComboBoxStateContext, Group as RACGroup, Header as RACHeader, Input as RACInput, ListBox as RACListBox, ListBoxItem as RACListBoxItem, ListBoxSection as RACListBoxSection, ListLayout as RACListLayout, Text as RACText, Virtualizer as RACVirtualizer, } from 'react-aria-components';
5
+ import { Button as RACButton, Collection as RACCollection, ComboBox as RACComboBox, ComboBoxStateContext as RACComboBoxStateContext, Group as RACGroup, Header as RACHeader, Input as RACInput, ListBox as RACListBox, ListBoxLoadMoreItem as RACListBoxLoadMoreItem, ListBoxItem as RACListBoxItem, ListBoxSection as RACListBoxSection, ListLayout as RACListLayout, Text as RACText, Virtualizer as RACVirtualizer, } from 'react-aria-components';
6
6
  import { forwardRef } from '../../forward-ref.js';
7
+ import { useLocalizedMessages } from '../../i18n/index.js';
7
8
  import { IconCheck, IconChevronDown } from '../../icons/index.js';
8
9
  import { isProduction } from '../../utils/is-production.js';
9
10
  import { useProductionWarning } from '../../utils/use-production-warning.js';
10
11
  import { withStyleProps } from '../../with-style-props.js';
11
12
  import { CollapsibleList } from '../internal/collapsible-list/collapsible-list.js';
12
13
  import { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';
14
+ import { Spinner } from '../spinner/spinner.js';
13
15
  import { textStyle } from '../typography/utils.js';
14
16
  const VIRTUAL_LAYOUT_OPTIONS = {
15
17
  rowHeight: 40,
16
18
  headingHeight: 32,
19
+ loaderHeight: 40,
17
20
  padding: 0,
18
21
  gap: 0,
19
22
  };
20
- function ComboBox({ label, description, error, items, children, placeholder, UNSAFE_className, UNSAFE_style, isReadOnly, onScroll, isVirtualized = false, ...props }, ref) {
23
+ function ComboBox({ label, description, error, items, children, placeholder, UNSAFE_className, UNSAFE_style, isReadOnly, onScroll, isVirtualized = false, UNSTABLE_isLoading: isLoading, UNSTABLE_onLoadMore: onLoadMore, ...props }, ref) {
21
24
  const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;
22
25
  useProductionWarning(() => {
23
26
  if (!label && !ariaLabel && !ariaLabelledBy) {
@@ -27,7 +30,8 @@ function ComboBox({ label, description, error, items, children, placeholder, UNS
27
30
  if (!isProduction() && items != null && typeof children !== 'function') {
28
31
  console.warn('`ComboBox` requires `children` to be a function when using `items` prop');
29
32
  }
30
- const listBox = (_jsx(RACListBox, { className: "cim-combo-box-listbox", onScroll: onScroll, items: items, children: children }));
33
+ const collectionMessages = useLocalizedMessages('UNSTABLE_collection');
34
+ const listBox = (_jsxs(RACListBox, { className: "cim-combo-box-listbox", onScroll: onScroll, renderEmptyState: () => isLoading ? _jsx(Spinner, { "aria-label": collectionMessages.format('loading'), size: "small", marginY: 8 }) : null, children: [_jsx(RACCollection, { items: items, children: children }), _jsx(RACListBoxLoadMoreItem, { onLoadMore: onLoadMore, isLoading: isLoading, children: _jsx(Spinner, { "aria-label": collectionMessages.format('loadingMore'), size: "small", marginY: 8 }) })] }));
31
35
  return (_jsxs(RACComboBox, { ...props, ref: ref, className: clsx('cim-combo-box', UNSAFE_className), style: UNSAFE_style, menuTrigger: "focus", isReadOnly: isReadOnly, "data-readonly": isReadOnly ? true : undefined, children: [_jsx(FormFieldLabel, { isRequired: props.isRequired, isDisabled: props.isDisabled, children: label }), _jsxs(RACGroup, { className: "cim-combo-box-input-group", children: [_jsx(ComboBoxInput, { isReadOnly: isReadOnly, placeholder: placeholder }), _jsx(RACButton, { className: "cim-combo-box-button", children: _jsx(IconChevronDown, {}) })] }), _jsx(FormFieldError, { children: error }), _jsx(FormFieldDescription, { children: description }), _jsx(CollapsibleList, { offset: 5, maxHeight: 315, children: isVirtualized ? (_jsx(RACVirtualizer, { layout: RACListLayout, layoutOptions: VIRTUAL_LAYOUT_OPTIONS, children: listBox })) : (listBox) })] }));
32
36
  }
33
37
  /**