@solibo/solibo-ui 2.0.3 → 2.1.1

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 (156) hide show
  1. package/README.md +4 -4
  2. package/dist/assets/index.css +1 -1
  3. package/dist/assets/index13.css +1 -1
  4. package/dist/assets/index14.css +1 -1
  5. package/dist/assets/index16.css +1 -1
  6. package/dist/assets/index18.css +1 -1
  7. package/dist/assets/index19.css +1 -1
  8. package/dist/assets/index2.css +1 -1
  9. package/dist/assets/index28.css +1 -1
  10. package/dist/assets/index29.css +1 -1
  11. package/dist/assets/index31.css +1 -1
  12. package/dist/assets/index35.css +1 -1
  13. package/dist/assets/index36.css +1 -1
  14. package/dist/assets/index37.css +1 -1
  15. package/dist/assets/index38.css +1 -1
  16. package/dist/assets/index39.css +1 -1
  17. package/dist/assets/index40.css +1 -1
  18. package/dist/assets/index41.css +1 -1
  19. package/dist/assets/index42.css +1 -1
  20. package/dist/assets/index43.css +1 -1
  21. package/dist/assets/index44.css +1 -1
  22. package/dist/assets/index45.css +1 -1
  23. package/dist/assets/index46.css +1 -1
  24. package/dist/assets/index47.css +1 -1
  25. package/dist/assets/index48.css +1 -1
  26. package/dist/assets/index49.css +1 -1
  27. package/dist/assets/index50.css +1 -1
  28. package/dist/assets/index51.css +1 -1
  29. package/dist/assets/index52.css +1 -1
  30. package/dist/assets/index53.css +1 -1
  31. package/dist/assets/index54.css +1 -1
  32. package/dist/assets/index55.css +1 -0
  33. package/dist/assets/index6.css +1 -1
  34. package/dist/assets/menu-popover.css +1 -1
  35. package/dist/components/badge/index.cjs +1 -1
  36. package/dist/components/badge/index.js +38 -38
  37. package/dist/components/banner/index.cjs +1 -1
  38. package/dist/components/banner/index.js +12 -12
  39. package/dist/components/button/index.cjs +1 -1
  40. package/dist/components/button/index.js +29 -29
  41. package/dist/components/checkbox/index.cjs +1 -1
  42. package/dist/components/checkbox/index.js +1 -1
  43. package/dist/components/clipboard/index.cjs +2 -0
  44. package/dist/components/clipboard/index.cjs.map +1 -0
  45. package/dist/components/clipboard/index.js +29 -0
  46. package/dist/components/clipboard/index.js.map +1 -0
  47. package/dist/components/collapsible/index.cjs +1 -1
  48. package/dist/components/collapsible/index.js +1 -1
  49. package/dist/components/controls/index.cjs +1 -1
  50. package/dist/components/controls/index.js +2 -2
  51. package/dist/components/croppable/index.cjs +1 -1
  52. package/dist/components/croppable/index.js +1 -1
  53. package/dist/components/dialog/index.cjs +1 -1
  54. package/dist/components/dialog/index.js +35 -35
  55. package/dist/components/divider/index.cjs +1 -1
  56. package/dist/components/divider/index.js +3 -3
  57. package/dist/components/dropdown/index.cjs +1 -1
  58. package/dist/components/dropdown/index.js +61 -61
  59. package/dist/components/dropzone/index.cjs +1 -1
  60. package/dist/components/dropzone/index.js +1 -1
  61. package/dist/components/editor/index.cjs +1 -1
  62. package/dist/components/editor/index.js +2 -2
  63. package/dist/components/empty-state/index.cjs +1 -1
  64. package/dist/components/empty-state/index.cjs.map +1 -1
  65. package/dist/components/empty-state/index.js +18 -13
  66. package/dist/components/empty-state/index.js.map +1 -1
  67. package/dist/components/fieldset/index.cjs +1 -1
  68. package/dist/components/fieldset/index.js +4 -4
  69. package/dist/components/figure/index.cjs +1 -1
  70. package/dist/components/figure/index.js +1 -1
  71. package/dist/components/file/index.cjs +1 -1
  72. package/dist/components/file/index.js +1 -1
  73. package/dist/components/group/index.cjs +1 -1
  74. package/dist/components/group/index.js +3 -3
  75. package/dist/components/header/index.cjs +1 -1
  76. package/dist/components/header/index.cjs.map +1 -1
  77. package/dist/components/header/index.js +22 -22
  78. package/dist/components/icon/index.cjs +1 -1
  79. package/dist/components/icon/index.cjs.map +1 -1
  80. package/dist/components/icon/index.js +28 -26
  81. package/dist/components/icon/index.js.map +1 -1
  82. package/dist/components/iframe/index.cjs +1 -1
  83. package/dist/components/iframe/index.cjs.map +1 -1
  84. package/dist/components/iframe/index.js +45 -44
  85. package/dist/components/iframe/index.js.map +1 -1
  86. package/dist/components/input/index.cjs +1 -1
  87. package/dist/components/input/index.js +2 -2
  88. package/dist/components/link/index.cjs +1 -1
  89. package/dist/components/link/index.js +1 -1
  90. package/dist/components/list/index.cjs +1 -1
  91. package/dist/components/list/index.cjs.map +1 -1
  92. package/dist/components/list/index.js +72 -44
  93. package/dist/components/list/index.js.map +1 -1
  94. package/dist/components/loading/index.cjs +1 -1
  95. package/dist/components/loading/index.js +1 -1
  96. package/dist/components/menu/index.cjs +1 -1
  97. package/dist/components/menu/index.cjs.map +1 -1
  98. package/dist/components/menu/index.js +23 -22
  99. package/dist/components/menu/index.js.map +1 -1
  100. package/dist/components/message/index.cjs +1 -1
  101. package/dist/components/message/index.cjs.map +1 -1
  102. package/dist/components/message/index.js +33 -33
  103. package/dist/components/message/index.js.map +1 -1
  104. package/dist/components/messages/index.cjs +1 -1
  105. package/dist/components/messages/index.js +13 -13
  106. package/dist/components/nav/index.cjs +1 -1
  107. package/dist/components/nav/index.js +36 -36
  108. package/dist/components/popover/index.cjs +1 -1
  109. package/dist/components/popover/index.cjs.map +1 -1
  110. package/dist/components/popover/index.js +81 -69
  111. package/dist/components/popover/index.js.map +1 -1
  112. package/dist/components/search/index.cjs +1 -1
  113. package/dist/components/search/index.js +1 -1
  114. package/dist/components/select/index.cjs +1 -1
  115. package/dist/components/select/index.js +2 -2
  116. package/dist/components/sortable/index.cjs.map +1 -1
  117. package/dist/components/sortable/index.js.map +1 -1
  118. package/dist/components/table/index.cjs.map +1 -1
  119. package/dist/components/table/index.js.map +1 -1
  120. package/dist/components/textarea/index.cjs +1 -1
  121. package/dist/components/textarea/index.js +12 -12
  122. package/dist/components/toolbar/index.cjs +1 -1
  123. package/dist/components/toolbar/index.js +1 -1
  124. package/dist/components/widget/index.cjs +1 -1
  125. package/dist/components/widget/index.cjs.map +1 -1
  126. package/dist/components/widget/index.js +13 -8
  127. package/dist/components/widget/index.js.map +1 -1
  128. package/dist/icons-B3hIY9Bm.cjs +2 -0
  129. package/dist/icons-B3hIY9Bm.cjs.map +1 -0
  130. package/dist/{icons-dUP7sKyt.js → icons-CTtWkF6z.js} +45 -7
  131. package/dist/icons-CTtWkF6z.js.map +1 -0
  132. package/dist/{index-BLb3JiCr.js → index-BIpgkB-u.js} +3 -3
  133. package/dist/{index-BLb3JiCr.js.map → index-BIpgkB-u.js.map} +1 -1
  134. package/dist/{index-DWDp66fp.cjs → index-Bbauu1No.cjs} +2 -2
  135. package/dist/{index-DWDp66fp.cjs.map → index-Bbauu1No.cjs.map} +1 -1
  136. package/dist/{index-Ds-Ocs4L.js → index-CMPTHneU.js} +3 -3
  137. package/dist/{index-Ds-Ocs4L.js.map → index-CMPTHneU.js.map} +1 -1
  138. package/dist/{index-Bt7vnwji.cjs → index-DAjU2bTe.cjs} +2 -2
  139. package/dist/{index-Bt7vnwji.cjs.map → index-DAjU2bTe.cjs.map} +1 -1
  140. package/dist/index.cjs +1 -1
  141. package/dist/index.d.ts +56 -7
  142. package/dist/index.js +97 -95
  143. package/dist/index.js.map +1 -1
  144. package/dist/menu-popover-BV7nUXlb.js +77 -0
  145. package/dist/menu-popover-BV7nUXlb.js.map +1 -0
  146. package/dist/menu-popover-fGpFDJTo.cjs +2 -0
  147. package/dist/menu-popover-fGpFDJTo.cjs.map +1 -0
  148. package/dist/tokens.json +1 -1
  149. package/package.json +2 -1
  150. package/dist/icons-Dv_p0bUF.cjs +0 -2
  151. package/dist/icons-Dv_p0bUF.cjs.map +0 -1
  152. package/dist/icons-dUP7sKyt.js.map +0 -1
  153. package/dist/menu-popover-CM3v5s-5.cjs +0 -2
  154. package/dist/menu-popover-CM3v5s-5.cjs.map +0 -1
  155. package/dist/menu-popover-DOkciab5.js +0 -74
  156. package/dist/menu-popover-DOkciab5.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-Bt7vnwji.cjs","sources":["../src/components/select/sanitize-select-props.ts","../src/utils/color.ts","../src/components/select/index.tsx"],"sourcesContent":["const selectKeys = new Set([\n 'aria-activedescendant',\n 'aria-autocomplete',\n 'aria-busy',\n 'aria-controls',\n 'aria-describedby',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-live',\n 'aria-owns',\n 'aria-required',\n 'aria-roledescription',\n 'autoComplete',\n 'autoFocus',\n 'className',\n 'defaultValue',\n 'dir',\n 'disabled',\n 'form',\n 'id',\n 'multiple',\n 'name',\n 'onBlur',\n 'onChange',\n 'onClick',\n 'onFocus',\n 'onInput',\n 'onInvalid',\n 'onKeyDown',\n 'onKeyUp',\n 'onMouseDown',\n 'onMouseUp',\n 'onPointerDown',\n 'onPointerUp',\n 'required',\n 'role',\n 'size',\n 'style',\n 'tabIndex',\n 'title',\n 'value',\n]);\n\nexport function sanitizeSelectProps<T extends Record<string, unknown>>(props: T) {\n return Object.fromEntries(\n Object.entries(props).filter(\n ([key]) => key.startsWith('data-') || key.startsWith('aria-') || selectKeys.has(key)\n )\n ) as Partial<T>;\n}\n","const cssVariablePattern = /^--[\\w-]+$/;\nconst cssVariableReferencePattern = /^var\\(\\s*(--[\\w-]+)\\s*(?:,\\s*(.+))?\\)$/;\n\nconst unresolvedColorKeywords = new Set([\n 'currentcolor',\n 'inherit',\n 'initial',\n 'revert',\n 'revert-layer',\n 'unset',\n]);\n\nconst probe = typeof document !== 'undefined' ? document.createElement('span') : null;\n\nfunction normalizeColorValue(input: string): string {\n const value = input.trim();\n\n if (!value || !probe || unresolvedColorKeywords.has(value.toLowerCase())) {\n return value;\n }\n\n const mountNode = document.body ?? document.documentElement;\n\n if (!mountNode) {\n return value;\n }\n\n probe.style.color = value;\n\n if (!probe.style.color) {\n return value;\n }\n\n mountNode.appendChild(probe);\n\n const normalized = getComputedStyle(probe).color.trim();\n probe.remove();\n\n return normalized || value;\n}\n\nexport function resolveColor(input: `--${string}` | string, fallback = 'currentColor'): string {\n if (typeof document === 'undefined') {\n return fallback;\n }\n\n const styles = getComputedStyle(document.documentElement);\n const seen = new Set<string>();\n let current = input.trim();\n\n while (current) {\n const match = current.match(cssVariableReferencePattern);\n const variableName = match?.[1] ?? (cssVariablePattern.test(current) ? current : null);\n const nestedFallback = match?.[2]?.trim();\n\n if (!variableName) {\n return normalizeColorValue(current);\n }\n\n if (seen.has(variableName)) {\n current = nestedFallback ?? '';\n continue;\n }\n\n seen.add(variableName);\n\n current = styles.getPropertyValue(variableName).trim() || nestedFallback || '';\n }\n\n return normalizeColorValue(fallback);\n}\n","import cx from 'classix';\n\nimport { iconSVG } from '@/components/icon/icons.ts';\nimport { resolveColor } from '@/utils/color';\nimport { composeEventHandlers } from '@/utils/compose-event-handlers';\nimport { useTouched } from '@/utils/use-touched';\n\nimport { sanitizeSelectProps } from './sanitize-select-props';\nimport styles from './styles.module.css';\n\nexport type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {\n children: React.ReactNode;\n label?: string;\n placeholder?: string;\n};\n\ntype withVars = React.CSSProperties & {\n '--icon-svg'?: string;\n};\n\nexport const Select = ({ children, label, placeholder, ...props }: SelectProps) => {\n const { touched, onBlur } = useTouched(props.value === '');\n const selectProps = sanitizeSelectProps(props);\n const { className, onBlur: onBlurProp, style, ...restSelectProps } = selectProps;\n const withVars = {\n ...style,\n '--icon-svg': iconSVG('CaretDown', resolveColor('--colors-semantic-content-secondary')),\n } satisfies withVars;\n\n const selectElement = (\n <select\n className={cx(styles.select, className, touched && styles.touched)}\n onBlur={composeEventHandlers(onBlur, onBlurProp)}\n style={withVars}\n {...restSelectProps}\n >\n {placeholder && (\n <option\n key='placeholder'\n value={''}\n hidden\n >\n {placeholder}\n </option>\n )}\n {children}\n </select>\n );\n\n if (!label) {\n return selectElement;\n }\n\n return (\n <label>\n <span\n className={styles.label}\n data-required={props.required || undefined}\n >\n {label}\n </span>\n {selectElement}\n </label>\n );\n};\n"],"names":["selectKeys","Set","sanitizeSelectProps","props","Object","fromEntries","entries","filter","key","startsWith","has","cssVariablePattern","cssVariableReferencePattern","unresolvedColorKeywords","probe","document","createElement","normalizeColorValue","input","value","trim","toLowerCase","mountNode","body","documentElement","style","color","appendChild","normalized","getComputedStyle","remove","resolveColor","fallback","styles","seen","current","match","variableName","test","nestedFallback","add","getPropertyValue","Select","children","label","placeholder","touched","onBlur","useTouched","selectProps","className","onBlurProp","restSelectProps","withVars","iconSVG","selectElement","cx","select","composeEventHandlers","jsxs","jsx","required","undefined"],"mappings":"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"}
1
+ {"version":3,"file":"index-DAjU2bTe.cjs","sources":["../src/components/select/sanitize-select-props.ts","../src/utils/color.ts","../src/components/select/index.tsx"],"sourcesContent":["const selectKeys = new Set([\n 'aria-activedescendant',\n 'aria-autocomplete',\n 'aria-busy',\n 'aria-controls',\n 'aria-describedby',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-live',\n 'aria-owns',\n 'aria-required',\n 'aria-roledescription',\n 'autoComplete',\n 'autoFocus',\n 'className',\n 'defaultValue',\n 'dir',\n 'disabled',\n 'form',\n 'id',\n 'multiple',\n 'name',\n 'onBlur',\n 'onChange',\n 'onClick',\n 'onFocus',\n 'onInput',\n 'onInvalid',\n 'onKeyDown',\n 'onKeyUp',\n 'onMouseDown',\n 'onMouseUp',\n 'onPointerDown',\n 'onPointerUp',\n 'required',\n 'role',\n 'size',\n 'style',\n 'tabIndex',\n 'title',\n 'value',\n]);\n\nexport function sanitizeSelectProps<T extends Record<string, unknown>>(props: T) {\n return Object.fromEntries(\n Object.entries(props).filter(\n ([key]) => key.startsWith('data-') || key.startsWith('aria-') || selectKeys.has(key)\n )\n ) as Partial<T>;\n}\n","const cssVariablePattern = /^--[\\w-]+$/;\nconst cssVariableReferencePattern = /^var\\(\\s*(--[\\w-]+)\\s*(?:,\\s*(.+))?\\)$/;\n\nconst unresolvedColorKeywords = new Set([\n 'currentcolor',\n 'inherit',\n 'initial',\n 'revert',\n 'revert-layer',\n 'unset',\n]);\n\nconst probe = typeof document !== 'undefined' ? document.createElement('span') : null;\n\nfunction normalizeColorValue(input: string): string {\n const value = input.trim();\n\n if (!value || !probe || unresolvedColorKeywords.has(value.toLowerCase())) {\n return value;\n }\n\n const mountNode = document.body ?? document.documentElement;\n\n if (!mountNode) {\n return value;\n }\n\n probe.style.color = value;\n\n if (!probe.style.color) {\n return value;\n }\n\n mountNode.appendChild(probe);\n\n const normalized = getComputedStyle(probe).color.trim();\n probe.remove();\n\n return normalized || value;\n}\n\nexport function resolveColor(input: `--${string}` | string, fallback = 'currentColor'): string {\n if (typeof document === 'undefined') {\n return fallback;\n }\n\n const styles = getComputedStyle(document.documentElement);\n const seen = new Set<string>();\n let current = input.trim();\n\n while (current) {\n const match = current.match(cssVariableReferencePattern);\n const variableName = match?.[1] ?? (cssVariablePattern.test(current) ? current : null);\n const nestedFallback = match?.[2]?.trim();\n\n if (!variableName) {\n return normalizeColorValue(current);\n }\n\n if (seen.has(variableName)) {\n current = nestedFallback ?? '';\n continue;\n }\n\n seen.add(variableName);\n\n current = styles.getPropertyValue(variableName).trim() || nestedFallback || '';\n }\n\n return normalizeColorValue(fallback);\n}\n","import cx from 'classix';\n\nimport { iconSVG } from '@/components/icon/icons.ts';\nimport { resolveColor } from '@/utils/color';\nimport { composeEventHandlers } from '@/utils/compose-event-handlers';\nimport { useTouched } from '@/utils/use-touched';\n\nimport { sanitizeSelectProps } from './sanitize-select-props';\nimport styles from './styles.module.css';\n\nexport type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {\n children: React.ReactNode;\n label?: string;\n placeholder?: string;\n};\n\ntype withVars = React.CSSProperties & {\n '--icon-svg'?: string;\n};\n\nexport const Select = ({ children, label, placeholder, ...props }: SelectProps) => {\n const { touched, onBlur } = useTouched(props.value === '');\n const selectProps = sanitizeSelectProps(props);\n const { className, onBlur: onBlurProp, style, ...restSelectProps } = selectProps;\n const withVars = {\n ...style,\n '--icon-svg': iconSVG('CaretDown', resolveColor('--colors-semantic-content-secondary')),\n } satisfies withVars;\n\n const selectElement = (\n <select\n className={cx(styles.select, className, touched && styles.touched)}\n onBlur={composeEventHandlers(onBlur, onBlurProp)}\n style={withVars}\n {...restSelectProps}\n >\n {placeholder && (\n <option\n key='placeholder'\n value={''}\n hidden\n >\n {placeholder}\n </option>\n )}\n {children}\n </select>\n );\n\n if (!label) {\n return selectElement;\n }\n\n return (\n <label>\n <span\n className={styles.label}\n data-required={props.required || undefined}\n >\n {label}\n </span>\n {selectElement}\n </label>\n );\n};\n"],"names":["selectKeys","Set","sanitizeSelectProps","props","Object","fromEntries","entries","filter","key","startsWith","has","cssVariablePattern","cssVariableReferencePattern","unresolvedColorKeywords","probe","document","createElement","normalizeColorValue","input","value","trim","toLowerCase","mountNode","body","documentElement","style","color","appendChild","normalized","getComputedStyle","remove","resolveColor","fallback","styles","seen","current","match","variableName","test","nestedFallback","add","getPropertyValue","Select","children","label","placeholder","touched","onBlur","useTouched","selectProps","className","onBlurProp","restSelectProps","withVars","iconSVG","selectElement","cx","select","composeEventHandlers","jsxs","jsx","required","undefined"],"mappings":"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"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const o=require("./components/app-link/index.cjs"),t=require("./components/app-shell/index.cjs"),r=require("./components/aside/index.cjs"),i=require("./components/avatar/index.cjs"),s=require("./components/badge/index.cjs"),c=require("./components/banner/index.cjs"),p=require("./components/branding/index.cjs"),_=require("./components/button/index.cjs"),a=require("./components/card/index.cjs"),d=require("./components/checkbox/index.cjs"),u=require("./components/chip/index.cjs"),m=require("./components/collapsible/index.cjs"),l=require("./components/controls/index.cjs"),x=require("./components/croppable/index.cjs"),q=require("./components/dialog/index.cjs"),g=require("./components/divider/index.cjs"),b=require("./components/dropdown/index.cjs"),v=require("./components/dropzone/index.cjs"),h=require("./components/editor/index.cjs"),S=require("./components/empty-state/index.cjs"),T=require("./components/fieldset/index.cjs"),L=require("./components/figure/index.cjs"),C=require("./components/file/index.cjs"),I=require("./components/footer/index.cjs"),F=require("./components/form/index.cjs"),f=require("./components/graph/index.cjs"),k=require("./components/group/index.cjs"),y=require("./components/header/index.cjs"),A=require("./components/icon/index.cjs"),B=require("./components/iframe/index.cjs"),D=require("./components/image/index.cjs"),M=require("./index-DWDp66fp.cjs"),P=require("./components/link/index.cjs"),N=require("./components/list/index.cjs"),O=require("./components/loading/index.cjs"),j=require("./components/menu/index.cjs"),w=require("./components/message/index.cjs"),E=require("./components/messages/index.cjs"),e=require("./components/nav/index.cjs"),G=require("./components/object/index.cjs"),z=require("./components/page-layout/index.cjs"),H=require("./components/popover/index.cjs"),W=require("./components/portal/index.cjs"),J=require("./components/search/index.cjs"),K=require("./index-Bt7vnwji.cjs"),n=require("./components/sortable/index.cjs"),Q=require("./components/table/index.cjs"),R=require("./components/textarea/index.cjs"),U=require("./components/toast/index.cjs"),V=require("./components/toasts/index.cjs"),X=require("./components/toggle/index.cjs"),Y=require("./components/toolbar/index.cjs"),Z=require("./components/tooltip/index.cjs"),$=require("./components/widget/index.cjs");exports.AppLink=o.AppLink;exports.AppShell=t.AppShell;exports.Aside=r.Aside;exports.Avatar=i.Avatar;exports.Badge=s.Badge;exports.Banner=c.Banner;exports.Branding=p.Branding;exports.Button=_.Button;exports.Card=a.Card;exports.Checkbox=d.Checkbox;exports.Chip=u.Chip;exports.Collapsible=m.Collapsible;exports.Controls=l.Controls;exports.Croppable=x.Croppable;exports.Dialog=q.Dialog;exports.Divider=g.Divider;exports.Dropdown=b.Dropdown;exports.Dropzone=v.Dropzone;exports.Editor=h.Editor;exports.EmptyState=S.EmptyState;exports.Fieldset=T.Fieldset;exports.Figure=L.Figure;exports.File=C.File;exports.Footer=I.Footer;exports.Form=F.Form;exports.Graph=f.Graph;exports.Group=k.Group;exports.Header=y.Header;exports.Icon=A.Icon;exports.Iframe=B.Iframe;exports.Image=D.Image;exports.Input=M.Input;exports.Link=P.Link;exports.List=N.List;exports.Loading=O.Loading;exports.Menu=j.Menu;exports.Message=w.Message;exports.Messages=E.Messages;exports.Nav=e.Nav;exports.NavItem=e.NavItem;exports.NavLabel=e.NavLabel;exports.Object=G.Object;exports.PageLayout=z.PageLayout;exports.Popover=H.Popover;exports.Portal=W.Portal;exports.Search=J.Search;exports.Select=K.Select;exports.Sortable=n.Sortable;exports.useOptionalSortableItem=n.useOptionalSortableItem;exports.Table=Q.Table;exports.Textarea=R.Textarea;exports.Toast=U.Toast;exports.Toasts=V.Toasts;exports.Toggle=X.Toggle;exports.Toolbar=Y.Toolbar;exports.Tooltip=Z.Tooltip;exports.Widget=$.Widget;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const o=require("./components/app-link/index.cjs"),t=require("./components/app-shell/index.cjs"),r=require("./components/aside/index.cjs"),i=require("./components/avatar/index.cjs"),s=require("./components/badge/index.cjs"),c=require("./components/banner/index.cjs"),p=require("./components/branding/index.cjs"),_=require("./components/button/index.cjs"),a=require("./components/card/index.cjs"),d=require("./components/checkbox/index.cjs"),u=require("./components/chip/index.cjs"),m=require("./components/clipboard/index.cjs"),l=require("./components/collapsible/index.cjs"),x=require("./components/controls/index.cjs"),q=require("./components/croppable/index.cjs"),g=require("./components/dialog/index.cjs"),b=require("./components/divider/index.cjs"),v=require("./components/dropdown/index.cjs"),h=require("./components/dropzone/index.cjs"),S=require("./components/editor/index.cjs"),T=require("./components/empty-state/index.cjs"),C=require("./components/fieldset/index.cjs"),L=require("./components/figure/index.cjs"),I=require("./components/file/index.cjs"),F=require("./components/footer/index.cjs"),f=require("./components/form/index.cjs"),k=require("./components/graph/index.cjs"),y=require("./components/group/index.cjs"),A=require("./components/header/index.cjs"),B=require("./components/icon/index.cjs"),D=require("./components/iframe/index.cjs"),M=require("./components/image/index.cjs"),P=require("./index-Bbauu1No.cjs"),N=require("./components/link/index.cjs"),O=require("./components/list/index.cjs"),j=require("./components/loading/index.cjs"),w=require("./components/menu/index.cjs"),E=require("./components/message/index.cjs"),G=require("./components/messages/index.cjs"),e=require("./components/nav/index.cjs"),z=require("./components/object/index.cjs"),H=require("./components/page-layout/index.cjs"),W=require("./components/popover/index.cjs"),J=require("./components/portal/index.cjs"),K=require("./components/search/index.cjs"),Q=require("./index-DAjU2bTe.cjs"),n=require("./components/sortable/index.cjs"),R=require("./components/table/index.cjs"),U=require("./components/textarea/index.cjs"),V=require("./components/toast/index.cjs"),X=require("./components/toasts/index.cjs"),Y=require("./components/toggle/index.cjs"),Z=require("./components/toolbar/index.cjs"),$=require("./components/tooltip/index.cjs"),ee=require("./components/widget/index.cjs");exports.AppLink=o.AppLink;exports.AppShell=t.AppShell;exports.Aside=r.Aside;exports.Avatar=i.Avatar;exports.Badge=s.Badge;exports.Banner=c.Banner;exports.Branding=p.Branding;exports.Button=_.Button;exports.Card=a.Card;exports.Checkbox=d.Checkbox;exports.Chip=u.Chip;exports.Clipboard=m.Clipboard;exports.Collapsible=l.Collapsible;exports.Controls=x.Controls;exports.Croppable=q.Croppable;exports.Dialog=g.Dialog;exports.Divider=b.Divider;exports.Dropdown=v.Dropdown;exports.Dropzone=h.Dropzone;exports.Editor=S.Editor;exports.EmptyState=T.EmptyState;exports.Fieldset=C.Fieldset;exports.Figure=L.Figure;exports.File=I.File;exports.Footer=F.Footer;exports.Form=f.Form;exports.Graph=k.Graph;exports.Group=y.Group;exports.Header=A.Header;exports.Icon=B.Icon;exports.Iframe=D.Iframe;exports.Image=M.Image;exports.Input=P.Input;exports.Link=N.Link;exports.List=O.List;exports.Loading=j.Loading;exports.Menu=w.Menu;exports.Message=E.Message;exports.Messages=G.Messages;exports.Nav=e.Nav;exports.NavItem=e.NavItem;exports.NavLabel=e.NavLabel;exports.Object=z.Object;exports.PageLayout=H.PageLayout;exports.Popover=W.Popover;exports.Portal=J.Portal;exports.Search=K.Search;exports.Select=Q.Select;exports.Sortable=n.Sortable;exports.useOptionalSortableItem=n.useOptionalSortableItem;exports.Table=R.Table;exports.Textarea=U.Textarea;exports.Toast=V.Toast;exports.Toasts=X.Toasts;exports.Toggle=Y.Toggle;exports.Toolbar=Z.Toolbar;exports.Tooltip=$.Tooltip;exports.Widget=ee.Widget;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -127,6 +127,14 @@ declare type ChipSharedProps = {
127
127
  onDelete: () => void;
128
128
  };
129
129
 
130
+ declare const Clipboard_2: ({ label, onSuccess }: ClipboardProps) => JSX.Element;
131
+ export { Clipboard_2 as Clipboard }
132
+
133
+ declare type ClipboardProps = {
134
+ label: string;
135
+ onSuccess: () => void;
136
+ };
137
+
130
138
  export declare const Collapsible: ({ children, disabled, open, summary }: CollapsibleProps) => JSX.Element;
131
139
 
132
140
  export declare type CollapsibleProps = {
@@ -268,12 +276,13 @@ export declare type EditorProps = {
268
276
  submitLabel?: string;
269
277
  };
270
278
 
271
- export declare const EmptyState: ({ button, content, header }: EmptyStateProps) => JSX.Element;
279
+ export declare const EmptyState: ({ button, content, header, icon }: EmptyStateProps) => JSX.Element;
272
280
 
273
281
  export declare type EmptyStateProps = {
274
282
  button?: React.ReactNode;
275
283
  content: string;
276
284
  header: string;
285
+ icon?: IconName;
277
286
  };
278
287
 
279
288
  export declare const Fieldset: ({ className, ...props }: FieldsetProps) => JSX.Element;
@@ -354,9 +363,15 @@ declare type HeaderProps = {
354
363
  export declare const Icon: ({ gap, name, size, variant, weight }: IconProps) => JSX.Element;
355
364
 
356
365
  declare const iconBodies: {
366
+ readonly ArrowBendUpLeft: {
367
+ readonly regular: "<path d=\"M232,200a8,8,0,0,1-16,0,88.1,88.1,0,0,0-88-88H51.31l34.35,34.34a8,8,0,0,1-11.32,11.32l-48-48a8,8,0,0,1,0-11.32l48-48A8,8,0,0,1,85.66,61.66L51.31,96H128A104.11,104.11,0,0,1,232,200Z\"/>";
368
+ };
357
369
  readonly ArrowDown: {
358
370
  readonly regular: "<path d=\"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z\"/>";
359
371
  };
372
+ readonly ArrowRight: {
373
+ readonly regular: "<path d=\"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z\"/>";
374
+ };
360
375
  readonly ArrowsClockwise: {
361
376
  readonly regular: "<path d=\"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z\"/>";
362
377
  };
@@ -369,6 +384,10 @@ declare const iconBodies: {
369
384
  readonly ArrowUp: {
370
385
  readonly regular: "<path d=\"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z\"/>";
371
386
  };
387
+ readonly Bell: {
388
+ readonly regular: "<path d=\"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z\"/>";
389
+ readonly fill: "<path d=\"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z\"/>";
390
+ };
372
391
  readonly BuildingApartment: {
373
392
  readonly fill: "<path d=\"M240,208h-8V72a8,8,0,0,0-8-8H184V40a8,8,0,0,0-8-8H80a8,8,0,0,0-8,8V96H32a8,8,0,0,0-8,8V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM80,176H64a8,8,0,0,1,0-16H80a8,8,0,0,1,0,16Zm0-32H64a8,8,0,0,1,0-16H80a8,8,0,0,1,0,16Zm64,64H112V168h32Zm-8-64H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm56,96H176a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H176a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H176a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Z\"/>";
374
393
  readonly regular: "<path d=\"M240,208h-8V72a8,8,0,0,0-8-8H184V40a8,8,0,0,0-8-8H80a8,8,0,0,0-8,8V96H32a8,8,0,0,0-8,8V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM40,112H80a8,8,0,0,0,8-8V48h80V72a8,8,0,0,0,8,8h40V208H152V168a8,8,0,0,0-8-8H112a8,8,0,0,0-8,8v40H40Zm96,96H120V176h16ZM112,72a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H120A8,8,0,0,1,112,72Zm0,32a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H120A8,8,0,0,1,112,104Zm56,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,104ZM88,136a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H80A8,8,0,0,1,88,136Zm0,32a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H80A8,8,0,0,1,88,168Zm24-32a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H120A8,8,0,0,1,112,136Zm56,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,168Z\"/>";
@@ -379,6 +398,12 @@ declare const iconBodies: {
379
398
  readonly CaretLeft: {
380
399
  readonly regular: "<path d=\"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z\"/>";
381
400
  };
401
+ readonly CaretRight: {
402
+ readonly regular: "<path d=\"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z\"/>";
403
+ };
404
+ readonly CaretUp: {
405
+ readonly regular: "<path d=\"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z\"/>";
406
+ };
382
407
  readonly CaretUpDown: {
383
408
  readonly regular: "<path d=\"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z\"/>";
384
409
  };
@@ -395,6 +420,12 @@ declare const iconBodies: {
395
420
  readonly fill: "<path d=\"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z\"/>";
396
421
  readonly regular: "<path d=\"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z\"/>";
397
422
  };
423
+ readonly Clock: {
424
+ readonly fill: "<path d=\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z\"/>";
425
+ };
426
+ readonly Confetti: {
427
+ readonly fill: "<path d=\"M111.49,52.63a15.8,15.8,0,0,0-26,5.77L33,202.78A15.83,15.83,0,0,0,47.76,224a16,16,0,0,0,5.46-1l144.37-52.5a15.8,15.8,0,0,0,5.78-26ZM65.14,161.13l19.2-52.79,63.32,63.32-52.8,19.2ZM160,72a37.8,37.8,0,0,1,3.84-15.58C169.14,45.83,179.14,40,192,40c6.7,0,11-2.29,13.65-7.21A22,22,0,0,0,208,23.94,8,8,0,0,1,224,24c0,12.86-8.52,32-32,32-6.7,0-11,2.29-13.65,7.21A22,22,0,0,0,176,72.06,8,8,0,0,1,160,72ZM136,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm101.66,82.34a8,8,0,1,1-11.32,11.31l-16-16a8,8,0,0,1,11.32-11.32Zm4.87-42.75-24,8a8,8,0,0,1-5.06-15.18l24-8a8,8,0,0,1,5.06,15.18Z\"/>";
428
+ };
398
429
  readonly Copy: {
399
430
  readonly fill: "<path d=\"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z\"/>";
400
431
  readonly regular: "<path d=\"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z\"/>";
@@ -442,6 +473,9 @@ declare const iconBodies: {
442
473
  readonly fill: "<path d=\"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z\"/>";
443
474
  readonly regular: "<path d=\"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z\"/>";
444
475
  };
476
+ readonly HandCoins: {
477
+ readonly fill: "<path d=\"M128.09,57.38a36,36,0,0,1,55.17-27.82,4,4,0,0,1-.56,7A52.06,52.06,0,0,0,152,84c0,1.17,0,2.34.12,3.49a4,4,0,0,1-6,3.76A36,36,0,0,1,128.09,57.38ZM240,160.61a24.47,24.47,0,0,1-13.6,22l-.44.2-38.83,16.54a6.94,6.94,0,0,1-1.19.4l-64,16A7.93,7.93,0,0,1,120,216H16A16,16,0,0,1,0,200V160a16,16,0,0,1,16-16H44.69l22.62-22.63A31.82,31.82,0,0,1,89.94,112H140a28,28,0,0,1,27.25,34.45l41.84-9.62A24.61,24.61,0,0,1,240,160.61Zm-16,0a8.61,8.61,0,0,0-10.87-8.3l-.31.08-67,15.41a8.32,8.32,0,0,1-1.79.2H112a8,8,0,0,1,0-16h28a12,12,0,0,0,0-24H89.94a15.86,15.86,0,0,0-11.31,4.69L56,155.31V200h63l62.43-15.61,38-16.18A8.56,8.56,0,0,0,224,160.61ZM168,84a36,36,0,1,0,36-36A36,36,0,0,0,168,84Z\"/>";
478
+ };
445
479
  readonly House: {
446
480
  readonly fill: "<path d=\"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z\"/>";
447
481
  readonly regular: "<path d=\"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z\"/>";
@@ -470,6 +504,9 @@ declare const iconBodies: {
470
504
  readonly MagnifyingGlass: {
471
505
  readonly regular: "<path d=\"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z\"/>";
472
506
  };
507
+ readonly MapPin: {
508
+ readonly fill: "<path d=\"M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z\"/>";
509
+ };
473
510
  readonly Megaphone: {
474
511
  readonly fill: "<path d=\"M200,72H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48,48,0,0,0,200,72ZM179,207.89l0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z\"/>";
475
512
  readonly regular: "<path d=\"M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z\"/>";
@@ -486,6 +523,9 @@ declare const iconBodies: {
486
523
  readonly Pencil: {
487
524
  readonly fill: "<path d=\"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z\"/>";
488
525
  };
526
+ readonly PenNib: {
527
+ readonly fill: "<path d=\"M243.31,81.36,174.63,12.68a16,16,0,0,0-22.63,0L123.56,41.12l-58,21.76A16,16,0,0,0,55.36,75.23L34.59,199.83a4,4,0,0,0,6.77,3.49l57-57a23.85,23.85,0,0,1-2.29-12.08,24,24,0,1,1,13.6,23.4l-57,57a4,4,0,0,0,3.49,6.77l124.61-20.77a16,16,0,0,0,12.35-10.16l21.77-58.07L243.31,104a16,16,0,0,0,0-22.63ZM208,116.68,139.32,48l24-24L232,92.68Z\"/>";
528
+ };
489
529
  readonly Phone: {
490
530
  readonly fill: "<path d=\"M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z\"/>";
491
531
  readonly regular: "<path d=\"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z\"/>";
@@ -503,6 +543,9 @@ declare const iconBodies: {
503
543
  readonly fill: "<path d=\"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H88V56H216V200Z\"/>";
504
544
  readonly regular: "<path d=\"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z\"/>";
505
545
  };
546
+ readonly Signature: {
547
+ readonly regular: "<path d=\"M232,168H63.86c2.66-5.24,5.33-10.63,8-16.11,15,1.65,32.58-8.78,52.66-31.14,5,13.46,14.45,30.93,30.58,31.25,9.06.18,18.11-5.2,27.42-16.37C189.31,143.75,203.3,152,232,152a8,8,0,0,0,0-16c-30.43,0-39.43-10.45-40-16.11a7.67,7.67,0,0,0-5.46-7.75,8.14,8.14,0,0,0-9.25,3.49c-12.07,18.54-19.38,20.43-21.92,20.37-8.26-.16-16.66-19.52-19.54-33.42a8,8,0,0,0-14.09-3.37C101.54,124.55,88,133.08,79.57,135.29,88.06,116.42,94.4,99.85,98.46,85.9c6.82-23.44,7.32-39.83,1.51-50.1-3-5.38-9.34-11.8-22.06-11.8C61.85,24,49.18,39.18,43.14,65.65c-3.59,15.71-4.18,33.21-1.62,48s7.87,25.55,15.59,31.94c-3.73,7.72-7.53,15.26-11.23,22.41H24a8,8,0,0,0,0,16H37.41c-11.32,21-20.12,35.64-20.26,35.88a8,8,0,1,0,13.71,8.24c.15-.26,11.27-18.79,24.7-44.12H232a8,8,0,0,0,0-16ZM58.74,69.21C62.72,51.74,70.43,40,77.91,40c5.33,0,7.1,1.86,8.13,3.67,3,5.33,6.52,24.19-21.66,86.39C56.12,118.78,53.31,93,58.74,69.21Z\"/>";
548
+ };
506
549
  readonly SlidersHorizontal: {
507
550
  readonly fill: "<path d=\"M32,80a8,8,0,0,1,8-8H77.17a28,28,0,0,1,53.66,0H216a8,8,0,0,1,0,16H130.83a28,28,0,0,1-53.66,0H40A8,8,0,0,1,32,80Zm184,88H194.83a28,28,0,0,0-53.66,0H40a8,8,0,0,0,0,16H141.17a28,28,0,0,0,53.66,0H216a8,8,0,0,0,0-16Z\"/>";
508
551
  };
@@ -518,6 +561,10 @@ declare const iconBodies: {
518
561
  readonly TextUnderline: {
519
562
  readonly regular: "<path d=\"M200,224a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H192A8,8,0,0,1,200,224Zm-72-24a64.07,64.07,0,0,0,64-64V56a8,8,0,0,0-16,0v80a48,48,0,0,1-96,0V56a8,8,0,0,0-16,0v80A64.07,64.07,0,0,0,128,200Z\"/>";
520
563
  };
564
+ readonly ThumbsUp: {
565
+ readonly regular: "<path d=\"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z\"/>";
566
+ readonly fill: "<path d=\"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z\"/>";
567
+ };
521
568
  readonly Trash: {
522
569
  readonly fill: "<path d=\"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z\"/>";
523
570
  };
@@ -607,7 +654,7 @@ declare type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
607
654
  variant?: 'danger' | 'minimal' | 'primary';
608
655
  };
609
656
 
610
- export declare function List({ children, className, columns, compact, controls, horizontal, ordered, ref, style, ...props }: ListProps): JSX.Element;
657
+ export declare function List({ children, className, columns, compact, controls, horizontal, layout, maxVisibleItems, ordered, ref, style, ...props }: ListProps): JSX.Element;
611
658
 
612
659
  declare type ListElement = HTMLUListElement | HTMLOListElement;
613
660
 
@@ -616,6 +663,8 @@ export declare type ListProps = React.ComponentPropsWithoutRef<'ul'> & {
616
663
  compact?: boolean;
617
664
  controls?: React.ReactNode;
618
665
  horizontal?: boolean;
666
+ layout?: 'grid' | 'masonry';
667
+ maxVisibleItems?: number;
619
668
  ordered?: boolean;
620
669
  ref?: React.Ref<ListElement>;
621
670
  };
@@ -654,7 +703,6 @@ export declare const Message: ({ actions, appearance, attachments, author, autho
654
703
  declare type MessageItem = MessageOptions;
655
704
 
656
705
  export declare type MessageOptions = {
657
- /** Controls shown under the message, e.g. a delete button for the author's own message. */
658
706
  actions?: React.ReactNode;
659
707
  appearance?: 'default' | 'document' | 'file';
660
708
  attachments?: React.ReactNode;
@@ -779,6 +827,7 @@ declare type PopoverRenderProps = {
779
827
  close: (options?: PopoverCloseOptions) => void;
780
828
  initialFocus?: PopoverInitialFocus;
781
829
  isOpen: boolean;
830
+ isPositioned: boolean;
782
831
  };
783
832
 
784
833
  export declare const Portal: ({ children, portals, open, setOpen }: PortalProps) => JSX.Element;
@@ -848,6 +897,7 @@ declare const sizes: {
848
897
  large: string;
849
898
  medium: string;
850
899
  small: string;
900
+ tiny: string;
851
901
  };
852
902
 
853
903
  declare const sizes_2: {
@@ -862,9 +912,6 @@ declare const sizes_3: {
862
912
  small: string;
863
913
  };
864
914
 
865
- /**
866
- * Children must provide a stable `data-id` for emits `{ id, weight }` and `key` (reconciliation).
867
- */
868
915
  export declare function Sortable({ children, className, columns, isRearranging, onChangeOrder, ...props }: SortableProps): JSX.Element;
869
916
 
870
917
  declare type SortableItemContextValue = {
@@ -1009,10 +1056,12 @@ declare const variants_8: {
1009
1056
  static: string;
1010
1057
  };
1011
1058
 
1012
- export declare const Widget: ({ children, ...props }: WidgetProps) => JSX.Element;
1059
+ export declare const Widget: ({ children, className, color, ...props }: WidgetProps) => JSX.Element;
1013
1060
 
1014
1061
  declare type WidgetProps = {
1015
1062
  children: React.ReactNode;
1063
+ className?: string;
1064
+ color?: '1' | '2';
1016
1065
  };
1017
1066
 
1018
1067
  declare type WrappedSelectElement = default_2.ReactElement<SelectProps, typeof Select>;
package/dist/index.js CHANGED
@@ -4,54 +4,55 @@ import { Aside as x } from "./components/aside/index.js";
4
4
  import { Avatar as a } from "./components/avatar/index.js";
5
5
  import { Badge as i } from "./components/badge/index.js";
6
6
  import { Banner as n } from "./components/banner/index.js";
7
- import { Branding as d } from "./components/branding/index.js";
7
+ import { Branding as g } from "./components/branding/index.js";
8
8
  import { Button as u } from "./components/button/index.js";
9
- import { Card as S } from "./components/card/index.js";
10
- import { Checkbox as v } from "./components/checkbox/index.js";
9
+ import { Card as I } from "./components/card/index.js";
10
+ import { Checkbox as T } from "./components/checkbox/index.js";
11
11
  import { Chip as L } from "./components/chip/index.js";
12
- import { Collapsible as h } from "./components/collapsible/index.js";
13
- import { Controls as A } from "./components/controls/index.js";
14
- import { Croppable as D } from "./components/croppable/index.js";
15
- import { Dialog as M } from "./components/dialog/index.js";
16
- import { Divider as P } from "./components/divider/index.js";
17
- import { Dropdown as E } from "./components/dropdown/index.js";
18
- import { Dropzone as O } from "./components/dropzone/index.js";
19
- import { Editor as w } from "./components/editor/index.js";
20
- import { EmptyState as H } from "./components/empty-state/index.js";
21
- import { Fieldset as q } from "./components/fieldset/index.js";
22
- import { Figure as K } from "./components/figure/index.js";
23
- import { File as R } from "./components/file/index.js";
24
- import { Footer as V } from "./components/footer/index.js";
25
- import { Form as Y } from "./components/form/index.js";
26
- import { Graph as _ } from "./components/graph/index.js";
27
- import { Group as oo } from "./components/group/index.js";
28
- import { Header as eo } from "./components/header/index.js";
29
- import { Icon as po } from "./components/icon/index.js";
30
- import { Iframe as xo } from "./components/iframe/index.js";
31
- import { Image as ao } from "./components/image/index.js";
32
- import { I as io } from "./index-Ds-Ocs4L.js";
33
- import { Link as no } from "./components/link/index.js";
34
- import { List as bo } from "./components/list/index.js";
35
- import { Loading as Io } from "./components/loading/index.js";
36
- import { Menu as To } from "./components/menu/index.js";
37
- import { Message as Co } from "./components/message/index.js";
38
- import { Messages as co } from "./components/messages/index.js";
39
- import { Nav as Fo, NavItem as Ao, NavLabel as Bo } from "./components/nav/index.js";
40
- import { Object as ko } from "./components/object/index.js";
41
- import { PageLayout as No } from "./components/page-layout/index.js";
42
- import { Popover as yo } from "./components/popover/index.js";
43
- import { Portal as Go } from "./components/portal/index.js";
44
- import { Search as jo } from "./components/search/index.js";
45
- import { S as zo } from "./index-BLb3JiCr.js";
46
- import { Sortable as Wo, useOptionalSortableItem as qo } from "./components/sortable/index.js";
47
- import { Table as Ko } from "./components/table/index.js";
48
- import { Textarea as Ro } from "./components/textarea/index.js";
49
- import { Toast as Vo } from "./components/toast/index.js";
50
- import { Toasts as Yo } from "./components/toasts/index.js";
51
- import { Toggle as _o } from "./components/toggle/index.js";
52
- import { Toolbar as or } from "./components/toolbar/index.js";
53
- import { Tooltip as er } from "./components/tooltip/index.js";
54
- import { Widget as pr } from "./components/widget/index.js";
12
+ import { Clipboard as h } from "./components/clipboard/index.js";
13
+ import { Collapsible as A } from "./components/collapsible/index.js";
14
+ import { Controls as D } from "./components/controls/index.js";
15
+ import { Croppable as M } from "./components/croppable/index.js";
16
+ import { Dialog as P } from "./components/dialog/index.js";
17
+ import { Divider as E } from "./components/divider/index.js";
18
+ import { Dropdown as O } from "./components/dropdown/index.js";
19
+ import { Dropzone as w } from "./components/dropzone/index.js";
20
+ import { Editor as H } from "./components/editor/index.js";
21
+ import { EmptyState as q } from "./components/empty-state/index.js";
22
+ import { Fieldset as K } from "./components/fieldset/index.js";
23
+ import { Figure as R } from "./components/figure/index.js";
24
+ import { File as V } from "./components/file/index.js";
25
+ import { Footer as Y } from "./components/footer/index.js";
26
+ import { Form as _ } from "./components/form/index.js";
27
+ import { Graph as oo } from "./components/graph/index.js";
28
+ import { Group as eo } from "./components/group/index.js";
29
+ import { Header as po } from "./components/header/index.js";
30
+ import { Icon as xo } from "./components/icon/index.js";
31
+ import { Iframe as ao } from "./components/iframe/index.js";
32
+ import { Image as io } from "./components/image/index.js";
33
+ import { I as no } from "./index-CMPTHneU.js";
34
+ import { Link as bo } from "./components/link/index.js";
35
+ import { List as Co } from "./components/list/index.js";
36
+ import { Loading as So } from "./components/loading/index.js";
37
+ import { Menu as vo } from "./components/menu/index.js";
38
+ import { Message as co } from "./components/message/index.js";
39
+ import { Messages as Fo } from "./components/messages/index.js";
40
+ import { Nav as Bo, NavItem as Do, NavLabel as ko } from "./components/nav/index.js";
41
+ import { Object as No } from "./components/object/index.js";
42
+ import { PageLayout as yo } from "./components/page-layout/index.js";
43
+ import { Popover as Go } from "./components/popover/index.js";
44
+ import { Portal as jo } from "./components/portal/index.js";
45
+ import { Search as zo } from "./components/search/index.js";
46
+ import { S as Wo } from "./index-BIpgkB-u.js";
47
+ import { Sortable as Jo, useOptionalSortableItem as Ko } from "./components/sortable/index.js";
48
+ import { Table as Ro } from "./components/table/index.js";
49
+ import { Textarea as Vo } from "./components/textarea/index.js";
50
+ import { Toast as Yo } from "./components/toast/index.js";
51
+ import { Toasts as _o } from "./components/toasts/index.js";
52
+ import { Toggle as or } from "./components/toggle/index.js";
53
+ import { Toolbar as er } from "./components/toolbar/index.js";
54
+ import { Tooltip as pr } from "./components/tooltip/index.js";
55
+ import { Widget as xr } from "./components/widget/index.js";
55
56
  import './assets/index.css';export {
56
57
  e as AppLink,
57
58
  p as AppShell,
@@ -59,56 +60,57 @@ import './assets/index.css';export {
59
60
  a as Avatar,
60
61
  i as Badge,
61
62
  n as Banner,
62
- d as Branding,
63
+ g as Branding,
63
64
  u as Button,
64
- S as Card,
65
- v as Checkbox,
65
+ I as Card,
66
+ T as Checkbox,
66
67
  L as Chip,
67
- h as Collapsible,
68
- A as Controls,
69
- D as Croppable,
70
- M as Dialog,
71
- P as Divider,
72
- E as Dropdown,
73
- O as Dropzone,
74
- w as Editor,
75
- H as EmptyState,
76
- q as Fieldset,
77
- K as Figure,
78
- R as File,
79
- V as Footer,
80
- Y as Form,
81
- _ as Graph,
82
- oo as Group,
83
- eo as Header,
84
- po as Icon,
85
- xo as Iframe,
86
- ao as Image,
87
- io as Input,
88
- no as Link,
89
- bo as List,
90
- Io as Loading,
91
- To as Menu,
92
- Co as Message,
93
- co as Messages,
94
- Fo as Nav,
95
- Ao as NavItem,
96
- Bo as NavLabel,
97
- ko as Object,
98
- No as PageLayout,
99
- yo as Popover,
100
- Go as Portal,
101
- jo as Search,
102
- zo as Select,
103
- Wo as Sortable,
104
- Ko as Table,
105
- Ro as Textarea,
106
- Vo as Toast,
107
- Yo as Toasts,
108
- _o as Toggle,
109
- or as Toolbar,
110
- er as Tooltip,
111
- pr as Widget,
112
- qo as useOptionalSortableItem
68
+ h as Clipboard,
69
+ A as Collapsible,
70
+ D as Controls,
71
+ M as Croppable,
72
+ P as Dialog,
73
+ E as Divider,
74
+ O as Dropdown,
75
+ w as Dropzone,
76
+ H as Editor,
77
+ q as EmptyState,
78
+ K as Fieldset,
79
+ R as Figure,
80
+ V as File,
81
+ Y as Footer,
82
+ _ as Form,
83
+ oo as Graph,
84
+ eo as Group,
85
+ po as Header,
86
+ xo as Icon,
87
+ ao as Iframe,
88
+ io as Image,
89
+ no as Input,
90
+ bo as Link,
91
+ Co as List,
92
+ So as Loading,
93
+ vo as Menu,
94
+ co as Message,
95
+ Fo as Messages,
96
+ Bo as Nav,
97
+ Do as NavItem,
98
+ ko as NavLabel,
99
+ No as Object,
100
+ yo as PageLayout,
101
+ Go as Popover,
102
+ jo as Portal,
103
+ zo as Search,
104
+ Wo as Select,
105
+ Jo as Sortable,
106
+ Ro as Table,
107
+ Vo as Textarea,
108
+ Yo as Toast,
109
+ _o as Toasts,
110
+ or as Toggle,
111
+ er as Toolbar,
112
+ pr as Tooltip,
113
+ xr as Widget,
114
+ Ko as useOptionalSortableItem
113
115
  };
114
116
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,77 @@
1
+ import { jsx as c, jsxs as y, Fragment as k } from "react/jsx-runtime";
2
+ import { t as w } from "./classix-DG18itHa.js";
3
+ import { useRef as z, useCallback as A, useEffect as D, cloneElement as I } from "react";
4
+ import { List as C } from "./components/list/index.js";
5
+ import { Icon as E } from "./components/icon/index.js";
6
+ import { Popover as N } from "./components/popover/index.js";
7
+ import './assets/menu-popover.css';const P = "_list_gzth7_3", j = "_item_gzth7_15", H = "_active_gzth7_38", K = "_danger_gzth7_47", s = {
8
+ list: P,
9
+ item: j,
10
+ active: H,
11
+ danger: K
12
+ }, R = (t) => Array.from((t == null ? void 0 : t.querySelectorAll('[role="menuitem"]')) ?? []).filter((o) => !o.disabled);
13
+ function F({
14
+ actions: t,
15
+ initialFocus: o,
16
+ menuAccessibleLabel: m,
17
+ onSelect: f,
18
+ readyToFocus: i = !0,
19
+ usesMenuSemantics: n = !1
20
+ }) {
21
+ const u = z(null), p = A((e, a = !1) => {
22
+ const r = R(u.current);
23
+ if (r.length === 0) return;
24
+ if (e === "first" || e === "last") {
25
+ r[e === "first" ? 0 : r.length - 1].focus({
26
+ preventScroll: a
27
+ });
28
+ return;
29
+ }
30
+ const l = r.indexOf(document.activeElement), d = e === "next" ? (l + 1) % r.length : (l - 1 + r.length) % r.length;
31
+ r[d].focus();
32
+ }, []);
33
+ D(() => {
34
+ n && i && p(o ?? "first", !0);
35
+ }, [p, o, i, n]);
36
+ const v = (e) => {
37
+ if (!n) return;
38
+ const r = {
39
+ ArrowDown: "next",
40
+ ArrowUp: "previous",
41
+ End: "last",
42
+ Home: "first"
43
+ }[e.key];
44
+ r && (e.preventDefault(), p(r));
45
+ };
46
+ return /* @__PURE__ */ c(C, { "aria-label": m, className: s.list, onKeyDown: v, ref: u, role: n ? "menu" : void 0, "data-component": "menuactionlist", children: t.map(({
47
+ button: e,
48
+ id: a,
49
+ isActive: r,
50
+ isDanger: l,
51
+ value: d
52
+ }, x) => /* @__PURE__ */ c("li", { role: n ? "none" : void 0, children: I(e, {
53
+ "aria-current": r ? "true" : e.props["aria-current"],
54
+ className: w(e.props.className, s.item, r && s.active, l && s.danger),
55
+ onClick: (g) => {
56
+ var h, _;
57
+ (_ = (h = e.props).onClick) == null || _.call(h, g), f(d, g);
58
+ },
59
+ role: n ? "menuitem" : e.props.role,
60
+ variant: "tertiary"
61
+ }) }, a ?? e.key ?? x)) });
62
+ }
63
+ const G = ({
64
+ children: t,
65
+ inline: o,
66
+ triggerAccessibleLabel: m,
67
+ triggerIcon: f = "DotsThreeVertical",
68
+ triggerLabel: i
69
+ }) => /* @__PURE__ */ c(N, { inline: o, triggerAccessibleLabel: m, triggerAriaHasPopup: "menu", triggerButtonContent: /* @__PURE__ */ y(k, { children: [
70
+ i,
71
+ /* @__PURE__ */ c(E, { gap: i ? "left" : "none", name: f, size: "medium" })
72
+ ] }), "data-component": "menupopover", children: t });
73
+ export {
74
+ F as M,
75
+ G as a
76
+ };
77
+ //# sourceMappingURL=menu-popover-BV7nUXlb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-popover-BV7nUXlb.js","sources":["../src/components/menu/action-list.tsx","../src/components/menu/menu-popover.tsx"],"sourcesContent":["import cx from 'classix';\nimport { cloneElement, useCallback, useEffect, useRef } from 'react';\n\nimport { type ButtonProps } from '../button';\nimport { List } from '../list';\nimport { type PopoverInitialFocus } from '../popover';\nimport styles from './styles.module.css';\n\nexport type MenuAction<T> = {\n button: React.ReactElement<ButtonProps>;\n id?: React.Key;\n isActive?: boolean;\n isDanger?: boolean;\n value: T;\n};\n\ntype MenuFocusTarget = 'first' | 'last' | 'next' | 'previous';\n\nconst getFocusableItems = (list: HTMLUListElement | HTMLOListElement | null) =>\n Array.from(list?.querySelectorAll<HTMLButtonElement>('[role=\"menuitem\"]') ?? []).filter(\n (item) => !item.disabled\n );\n\nexport function MenuActionList<T>({\n actions,\n initialFocus,\n menuAccessibleLabel,\n onSelect,\n readyToFocus = true,\n usesMenuSemantics = false,\n}: {\n actions: MenuAction<T>[];\n initialFocus?: PopoverInitialFocus;\n menuAccessibleLabel?: string;\n onSelect: (value: T, event: React.MouseEvent<HTMLButtonElement>) => void;\n readyToFocus?: boolean;\n usesMenuSemantics?: boolean;\n}) {\n const listRef = useRef<HTMLUListElement | HTMLOListElement>(null);\n\n const focusItem = useCallback((target: MenuFocusTarget, preventScroll = false) => {\n const items = getFocusableItems(listRef.current);\n if (items.length === 0) return;\n\n if (target === 'first' || target === 'last') {\n items[target === 'first' ? 0 : items.length - 1].focus({ preventScroll });\n return;\n }\n\n const currentIndex = items.indexOf(document.activeElement as HTMLButtonElement);\n const nextIndex =\n target === 'next'\n ? (currentIndex + 1) % items.length\n : (currentIndex - 1 + items.length) % items.length;\n items[nextIndex].focus();\n }, []);\n\n useEffect(() => {\n if (usesMenuSemantics && readyToFocus) focusItem(initialFocus ?? 'first', true);\n }, [focusItem, initialFocus, readyToFocus, usesMenuSemantics]);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLUListElement>) => {\n if (!usesMenuSemantics) return;\n\n const targets = {\n ArrowDown: 'next',\n ArrowUp: 'previous',\n End: 'last',\n Home: 'first',\n } as const;\n const target = targets[event.key as keyof typeof targets];\n if (!target) return;\n\n event.preventDefault();\n focusItem(target);\n };\n\n return (\n <List\n aria-label={menuAccessibleLabel}\n className={styles.list}\n onKeyDown={handleKeyDown}\n ref={listRef}\n role={usesMenuSemantics ? 'menu' : undefined}\n >\n {actions.map(({ button, id, isActive, isDanger, value }, index) => (\n <li\n key={id ?? button.key ?? index}\n role={usesMenuSemantics ? 'none' : undefined}\n >\n {cloneElement(button, {\n 'aria-current': isActive ? 'true' : button.props['aria-current'],\n className: cx(\n button.props.className,\n styles.item,\n isActive && styles.active,\n isDanger && styles.danger\n ),\n onClick: (event: React.MouseEvent<HTMLButtonElement>) => {\n button.props.onClick?.(event);\n onSelect(value, event);\n },\n role: usesMenuSemantics ? 'menuitem' : button.props.role,\n variant: 'tertiary',\n })}\n </li>\n ))}\n </List>\n );\n}\n","import { Icon, type IconName } from '../icon';\nimport { Popover, type PopoverProps } from '../popover';\n\nexport const MenuPopover = ({\n children,\n inline,\n triggerAccessibleLabel,\n triggerIcon = 'DotsThreeVertical',\n triggerLabel,\n}: Pick<PopoverProps, 'children' | 'inline' | 'triggerAccessibleLabel'> & {\n triggerIcon?: IconName;\n triggerLabel?: React.ReactNode;\n}) => (\n <Popover\n inline={inline}\n triggerAccessibleLabel={triggerAccessibleLabel}\n triggerAriaHasPopup='menu'\n triggerButtonContent={\n <>\n {triggerLabel}\n <Icon\n gap={triggerLabel ? 'left' : 'none'}\n name={triggerIcon}\n size='medium'\n />\n </>\n }\n >\n {children}\n </Popover>\n);\n"],"names":["getFocusableItems","list","Array","from","querySelectorAll","filter","item","disabled","MenuActionList","actions","initialFocus","menuAccessibleLabel","onSelect","readyToFocus","usesMenuSemantics","listRef","useRef","focusItem","useCallback","target","preventScroll","items","current","length","focus","currentIndex","indexOf","document","activeElement","nextIndex","useEffect","handleKeyDown","event","ArrowDown","ArrowUp","End","Home","key","preventDefault","List","styles","undefined","map","button","id","isActive","isDanger","value","index","jsx","cloneElement","props","className","cx","active","danger","onClick","role","variant","MenuPopover","children","inline","triggerAccessibleLabel","triggerIcon","triggerLabel","Popover","jsxs","Fragment","Icon"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ "use strict";require('./assets/menu-popover.css');const s=require("react/jsx-runtime"),y=require("./classix-5H4IWnMA.cjs"),a=require("react"),j=require("./components/list/index.cjs"),A=require("./components/icon/index.cjs"),k=require("./components/popover/index.cjs"),w="_list_gzth7_3",z="_item_gzth7_15",D="_active_gzth7_38",I="_danger_gzth7_47",m={list:w,item:z,active:D,danger:I},C=n=>Array.from((n==null?void 0:n.querySelectorAll('[role="menuitem"]'))??[]).filter(r=>!r.disabled);function E({actions:n,initialFocus:r,menuAccessibleLabel:u,onSelect:p,readyToFocus:i=!0,usesMenuSemantics:o=!1}){const g=a.useRef(null),f=a.useCallback((e,c=!1)=>{const t=C(g.current);if(t.length===0)return;if(e==="first"||e==="last"){t[e==="first"?0:t.length-1].focus({preventScroll:c});return}const l=t.indexOf(document.activeElement),d=e==="next"?(l+1)%t.length:(l-1+t.length)%t.length;t[d].focus()},[]);a.useEffect(()=>{o&&i&&f(r??"first",!0)},[f,r,i,o]);const v=e=>{if(!o)return;const t={ArrowDown:"next",ArrowUp:"previous",End:"last",Home:"first"}[e.key];t&&(e.preventDefault(),f(t))};return s.jsx(j.List,{"aria-label":u,className:m.list,onKeyDown:v,ref:g,role:o?"menu":void 0,"data-component":"menuactionlist",children:n.map(({button:e,id:c,isActive:t,isDanger:l,value:d},q)=>s.jsx("li",{role:o?"none":void 0,children:a.cloneElement(e,{"aria-current":t?"true":e.props["aria-current"],className:y.t(e.props.className,m.item,t&&m.active,l&&m.danger),onClick:_=>{var x,h;(h=(x=e.props).onClick)==null||h.call(x,_),p(d,_)},role:o?"menuitem":e.props.role,variant:"tertiary"})},c??e.key??q))})}const P=({children:n,inline:r,triggerAccessibleLabel:u,triggerIcon:p="DotsThreeVertical",triggerLabel:i})=>s.jsx(k.Popover,{inline:r,triggerAccessibleLabel:u,triggerAriaHasPopup:"menu",triggerButtonContent:s.jsxs(s.Fragment,{children:[i,s.jsx(A.Icon,{gap:i?"left":"none",name:p,size:"medium"})]}),"data-component":"menupopover",children:n});exports.MenuActionList=E;exports.MenuPopover=P;
2
+ //# sourceMappingURL=menu-popover-fGpFDJTo.cjs.map