@fpkit/acss 3.1.1 → 3.2.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 (204) hide show
  1. package/libs/{chunk-2NRIP6RB.cjs → chunk-2C3YLBWP.cjs} +3 -3
  2. package/libs/{chunk-NWJDAHP6.cjs → chunk-2GJHKWEK.cjs} +3 -3
  3. package/libs/{chunk-FVROL3V5.js → chunk-2JCDEC32.js} +3 -3
  4. package/libs/{chunk-IRLFZ3OL.js → chunk-3XJC4XUG.js} +2 -2
  5. package/libs/{chunk-L6PRDL6F.cjs → chunk-5CJPTDK3.cjs} +3 -3
  6. package/libs/{chunk-E4OSROCA.cjs → chunk-5QSNJQVH.cjs} +3 -3
  7. package/libs/{chunk-O3JIHC5M.cjs → chunk-6BUJZ4DJ.cjs} +3 -3
  8. package/libs/{chunk-WXBFBWYF.cjs → chunk-AFINOD2L.cjs} +3 -3
  9. package/libs/{chunk-HRRHPLER.js → chunk-AWZLSWDO.js} +2 -2
  10. package/libs/chunk-DDSXKOUB.js +7 -0
  11. package/libs/chunk-DDSXKOUB.js.map +1 -0
  12. package/libs/{chunk-CWRNJA4P.js → chunk-DIJBIOFE.js} +3 -3
  13. package/libs/chunk-EJ6KYBFE.cjs +13 -0
  14. package/libs/chunk-EJ6KYBFE.cjs.map +1 -0
  15. package/libs/{chunk-GUJSMQ3V.cjs → chunk-EKJYOCLY.cjs} +3 -3
  16. package/libs/{chunk-X5RKCLDC.cjs → chunk-F64GE6RG.cjs} +4 -4
  17. package/libs/{chunk-5RAWNUVD.js → chunk-IBUTNPTQ.js} +2 -2
  18. package/libs/{chunk-ZFJ4U45S.js → chunk-KDMX3FAW.js} +2 -2
  19. package/libs/{chunk-DYFAUAB7.cjs → chunk-LXODKKA3.cjs} +4 -4
  20. package/libs/{chunk-MPTMPBFT.js → chunk-M7JLT62Q.js} +2 -2
  21. package/libs/{chunk-IQ76HGVP.js → chunk-MBWI67UT.js} +2 -2
  22. package/libs/{chunk-O5XAJ7BY.cjs → chunk-NCGVF2QS.cjs} +4 -4
  23. package/libs/{chunk-W2UIN7EV.cjs → chunk-NPWHQVYB.cjs} +3 -3
  24. package/libs/chunk-OU52NIKA.js +8 -0
  25. package/libs/chunk-OU52NIKA.js.map +1 -0
  26. package/libs/{chunk-43TK2ICH.js → chunk-PMWL5XZ4.js} +3 -3
  27. package/libs/{chunk-KVKQLRJG.js → chunk-TF3GQKOY.js} +2 -2
  28. package/libs/{chunk-IEB64SWY.js → chunk-U5VA34SU.js} +2 -2
  29. package/libs/{chunk-EE3ZWSBY.cjs → chunk-URBGDUFN.cjs} +6 -6
  30. package/libs/chunk-WWPLBWCQ.cjs +18 -0
  31. package/libs/chunk-WWPLBWCQ.cjs.map +1 -0
  32. package/libs/{chunk-TPIB3RQP.js → chunk-ZF6Y7W57.js} +5 -5
  33. package/libs/component-props-50e69975.d.ts +66 -0
  34. package/libs/components/box/box.css +1 -0
  35. package/libs/components/box/box.css.map +1 -0
  36. package/libs/components/box/box.min.css +3 -0
  37. package/libs/components/breadcrumbs/breadcrumb.cjs +6 -6
  38. package/libs/components/breadcrumbs/breadcrumb.js +3 -3
  39. package/libs/components/button.cjs +4 -4
  40. package/libs/components/button.d.cts +10 -3
  41. package/libs/components/button.d.ts +10 -3
  42. package/libs/components/button.js +2 -2
  43. package/libs/components/card.cjs +7 -7
  44. package/libs/components/card.d.cts +13 -85
  45. package/libs/components/card.d.ts +13 -85
  46. package/libs/components/card.js +2 -2
  47. package/libs/components/cards/card.css +1 -1
  48. package/libs/components/cards/card.css.map +1 -1
  49. package/libs/components/cards/card.min.css +2 -2
  50. package/libs/components/cluster/cluster.css +1 -0
  51. package/libs/components/cluster/cluster.css.map +1 -0
  52. package/libs/components/cluster/cluster.min.css +3 -0
  53. package/libs/components/dialog/dialog.cjs +7 -7
  54. package/libs/components/dialog/dialog.js +5 -5
  55. package/libs/components/form/fields.cjs +4 -4
  56. package/libs/components/form/fields.js +2 -2
  57. package/libs/components/form/textarea.cjs +4 -4
  58. package/libs/components/form/textarea.js +2 -2
  59. package/libs/components/grid/grid.css +1 -0
  60. package/libs/components/grid/grid.css.map +1 -0
  61. package/libs/components/grid/grid.min.css +3 -0
  62. package/libs/components/heading/heading.cjs +3 -3
  63. package/libs/components/heading/heading.js +2 -2
  64. package/libs/components/icons/icon.cjs +4 -4
  65. package/libs/components/icons/icon.d.cts +2 -2
  66. package/libs/components/icons/icon.d.ts +2 -2
  67. package/libs/components/icons/icon.js +2 -2
  68. package/libs/components/link/link.cjs +6 -6
  69. package/libs/components/link/link.js +2 -2
  70. package/libs/components/list/list.cjs +5 -5
  71. package/libs/components/list/list.js +2 -2
  72. package/libs/components/modal.cjs +4 -4
  73. package/libs/components/modal.d.cts +1 -1
  74. package/libs/components/modal.d.ts +1 -1
  75. package/libs/components/modal.js +3 -3
  76. package/libs/components/nav/nav.cjs +7 -7
  77. package/libs/components/nav/nav.js +3 -3
  78. package/libs/components/stack/stack.css +1 -0
  79. package/libs/components/stack/stack.css.map +1 -0
  80. package/libs/components/stack/stack.min.css +3 -0
  81. package/libs/components/tables/table.d.cts +1 -1
  82. package/libs/components/tables/table.d.ts +1 -1
  83. package/libs/components/text/text.cjs +5 -5
  84. package/libs/components/text/text.js +2 -2
  85. package/libs/hooks.cjs +4 -4
  86. package/libs/hooks.js +3 -3
  87. package/libs/{icons-287fce3a.d.ts → icons-df8e744f.d.ts} +1 -1
  88. package/libs/icons.cjs +3 -3
  89. package/libs/icons.d.cts +2 -2
  90. package/libs/icons.d.ts +2 -2
  91. package/libs/icons.js +2 -2
  92. package/libs/index.cjs +64 -63
  93. package/libs/index.cjs.map +1 -1
  94. package/libs/index.css +1 -1
  95. package/libs/index.css.map +1 -1
  96. package/libs/index.d.cts +923 -4
  97. package/libs/index.d.ts +923 -4
  98. package/libs/index.js +28 -28
  99. package/libs/index.js.map +1 -1
  100. package/package.json +2 -2
  101. package/src/components/alert/STYLES.mdx +790 -0
  102. package/src/components/badge/STYLES.mdx +610 -0
  103. package/src/components/box/README.mdx +401 -0
  104. package/src/components/box/STYLES.mdx +360 -0
  105. package/src/components/box/box.scss +245 -0
  106. package/src/components/box/box.stories.tsx +395 -0
  107. package/src/components/box/box.test.tsx +425 -0
  108. package/src/components/box/box.tsx +170 -0
  109. package/src/components/box/box.types.ts +166 -0
  110. package/src/components/breadcrumbs/STYLES.mdx +99 -0
  111. package/src/components/buttons/STYLES.mdx +766 -0
  112. package/src/components/cards/STYLES.mdx +835 -0
  113. package/src/components/cards/card.scss +30 -21
  114. package/src/components/cards/card.stories.tsx +120 -80
  115. package/src/components/cards/card.tsx +14 -4
  116. package/src/components/cards/card.types.ts +13 -0
  117. package/src/components/cluster/README.mdx +595 -0
  118. package/src/components/cluster/STYLES.mdx +626 -0
  119. package/src/components/cluster/cluster.scss +86 -0
  120. package/src/components/cluster/cluster.stories.tsx +385 -0
  121. package/src/components/cluster/cluster.test.tsx +655 -0
  122. package/src/components/cluster/cluster.tsx +94 -0
  123. package/src/components/cluster/cluster.types.ts +75 -0
  124. package/src/components/details/STYLES.mdx +445 -0
  125. package/src/components/dialog/STYLES.mdx +888 -0
  126. package/src/components/flexbox/STYLES.mdx +1 -1
  127. package/src/components/form/STYLES.mdx +821 -0
  128. package/src/components/grid/README.mdx +709 -0
  129. package/src/components/grid/STYLES.mdx +785 -0
  130. package/src/components/grid/grid.scss +287 -0
  131. package/src/components/grid/grid.stories.tsx +486 -0
  132. package/src/components/grid/grid.test.tsx +981 -0
  133. package/src/components/grid/grid.tsx +222 -0
  134. package/src/components/grid/grid.types.ts +344 -0
  135. package/src/components/icons/STYLES.mdx +56 -0
  136. package/src/components/images/STYLES.mdx +75 -0
  137. package/src/components/layout/STYLES.mdx +556 -0
  138. package/src/components/link/STYLES.mdx +75 -0
  139. package/src/components/list/STYLES.mdx +631 -0
  140. package/src/components/nav/STYLES.mdx +460 -0
  141. package/src/components/progress/STYLES.mdx +64 -0
  142. package/src/components/stack/README.mdx +400 -0
  143. package/src/components/stack/STYLES.mdx +414 -0
  144. package/src/components/stack/stack.scss +109 -0
  145. package/src/components/stack/stack.stories.tsx +559 -0
  146. package/src/components/stack/stack.test.tsx +426 -0
  147. package/src/components/stack/stack.tsx +141 -0
  148. package/src/components/stack/stack.types.ts +133 -0
  149. package/src/components/tag/STYLES.mdx +105 -0
  150. package/src/components/text-to-speech/STYLES.mdx +80 -0
  151. package/src/components/ui.tsx +3 -3
  152. package/src/index.scss +7 -2
  153. package/src/index.ts +305 -12
  154. package/src/sass/GLOBALS-STYLES.md +631 -0
  155. package/src/sass/_globals.scss +45 -24
  156. package/src/sass/_styles.scss +2 -2
  157. package/src/styles/box/box.css +220 -0
  158. package/src/styles/box/box.css.map +1 -0
  159. package/src/styles/cards/card.css +23 -17
  160. package/src/styles/cards/card.css.map +1 -1
  161. package/src/styles/cluster/cluster.css +71 -0
  162. package/src/styles/cluster/cluster.css.map +1 -0
  163. package/src/styles/grid/grid.css +238 -0
  164. package/src/styles/grid/grid.css.map +1 -0
  165. package/src/styles/index.css +668 -49
  166. package/src/styles/index.css.map +1 -1
  167. package/src/styles/stack/stack.css +86 -0
  168. package/src/styles/stack/stack.css.map +1 -0
  169. package/src/types/component-props.ts +42 -14
  170. package/src/types/layout-primitives.ts +48 -0
  171. package/src/types/shared.ts +10 -26
  172. package/libs/chunk-ENTCUJ3A.cjs +0 -13
  173. package/libs/chunk-ENTCUJ3A.cjs.map +0 -1
  174. package/libs/chunk-HHLNOC5T.js +0 -7
  175. package/libs/chunk-HHLNOC5T.js.map +0 -1
  176. package/libs/chunk-KK47SYZI.js +0 -8
  177. package/libs/chunk-KK47SYZI.js.map +0 -1
  178. package/libs/chunk-W5TKWBFC.cjs +0 -18
  179. package/libs/chunk-W5TKWBFC.cjs.map +0 -1
  180. package/libs/component-props-67d978a2.d.ts +0 -38
  181. /package/libs/{chunk-2NRIP6RB.cjs.map → chunk-2C3YLBWP.cjs.map} +0 -0
  182. /package/libs/{chunk-NWJDAHP6.cjs.map → chunk-2GJHKWEK.cjs.map} +0 -0
  183. /package/libs/{chunk-FVROL3V5.js.map → chunk-2JCDEC32.js.map} +0 -0
  184. /package/libs/{chunk-IRLFZ3OL.js.map → chunk-3XJC4XUG.js.map} +0 -0
  185. /package/libs/{chunk-L6PRDL6F.cjs.map → chunk-5CJPTDK3.cjs.map} +0 -0
  186. /package/libs/{chunk-E4OSROCA.cjs.map → chunk-5QSNJQVH.cjs.map} +0 -0
  187. /package/libs/{chunk-O3JIHC5M.cjs.map → chunk-6BUJZ4DJ.cjs.map} +0 -0
  188. /package/libs/{chunk-WXBFBWYF.cjs.map → chunk-AFINOD2L.cjs.map} +0 -0
  189. /package/libs/{chunk-HRRHPLER.js.map → chunk-AWZLSWDO.js.map} +0 -0
  190. /package/libs/{chunk-CWRNJA4P.js.map → chunk-DIJBIOFE.js.map} +0 -0
  191. /package/libs/{chunk-GUJSMQ3V.cjs.map → chunk-EKJYOCLY.cjs.map} +0 -0
  192. /package/libs/{chunk-X5RKCLDC.cjs.map → chunk-F64GE6RG.cjs.map} +0 -0
  193. /package/libs/{chunk-5RAWNUVD.js.map → chunk-IBUTNPTQ.js.map} +0 -0
  194. /package/libs/{chunk-ZFJ4U45S.js.map → chunk-KDMX3FAW.js.map} +0 -0
  195. /package/libs/{chunk-DYFAUAB7.cjs.map → chunk-LXODKKA3.cjs.map} +0 -0
  196. /package/libs/{chunk-MPTMPBFT.js.map → chunk-M7JLT62Q.js.map} +0 -0
  197. /package/libs/{chunk-IQ76HGVP.js.map → chunk-MBWI67UT.js.map} +0 -0
  198. /package/libs/{chunk-O5XAJ7BY.cjs.map → chunk-NCGVF2QS.cjs.map} +0 -0
  199. /package/libs/{chunk-W2UIN7EV.cjs.map → chunk-NPWHQVYB.cjs.map} +0 -0
  200. /package/libs/{chunk-43TK2ICH.js.map → chunk-PMWL5XZ4.js.map} +0 -0
  201. /package/libs/{chunk-KVKQLRJG.js.map → chunk-TF3GQKOY.js.map} +0 -0
  202. /package/libs/{chunk-IEB64SWY.js.map → chunk-U5VA34SU.js.map} +0 -0
  203. /package/libs/{chunk-EE3ZWSBY.cjs.map → chunk-URBGDUFN.cjs.map} +0 -0
  204. /package/libs/{chunk-TPIB3RQP.js.map → chunk-ZF6Y7W57.js.map} +0 -0
package/libs/index.js CHANGED
@@ -1,44 +1,44 @@
1
- import { b as b$2 } from './chunk-IRLFZ3OL.js';
2
- export { a as Textarea } from './chunk-IRLFZ3OL.js';
3
- export { a as Field } from './chunk-HRRHPLER.js';
1
+ import { b as b$2 } from './chunk-3XJC4XUG.js';
2
+ export { a as Textarea } from './chunk-3XJC4XUG.js';
3
+ export { a as Field } from './chunk-AWZLSWDO.js';
4
4
  export { a as Caption, i as TBL, f as Table, c as Tbody, e as Td, b as Thead, d as Tr } from './chunk-FMIM3332.js';
5
- export { a as Dialog } from './chunk-TPIB3RQP.js';
6
- export { c as Nav, b as NavItem, a as NavList } from './chunk-FVROL3V5.js';
7
- export { c as List } from './chunk-IEB64SWY.js';
5
+ export { a as Dialog } from './chunk-ZF6Y7W57.js';
6
+ export { c as Nav, b as NavItem, a as NavList } from './chunk-2JCDEC32.js';
7
+ export { c as List } from './chunk-U5VA34SU.js';
8
8
  export { b as Popover } from './chunk-4I5MF54P.js';
9
- export { a as Text } from './chunk-IQ76HGVP.js';
10
- export { b as Heading, a as Title } from './chunk-ZFJ4U45S.js';
11
- export { b as Breadcrumb, a as useBreadcrumbSegments } from './chunk-CWRNJA4P.js';
9
+ export { a as Text } from './chunk-MBWI67UT.js';
10
+ export { b as Heading, a as Title } from './chunk-KDMX3FAW.js';
11
+ export { b as Breadcrumb, a as useBreadcrumbSegments } from './chunk-DIJBIOFE.js';
12
12
  import './chunk-GCGKYLDG.js';
13
- import { b as b$1 } from './chunk-MPTMPBFT.js';
14
- export { a as Icon } from './chunk-MPTMPBFT.js';
15
- export { d as Card, b as CardContent, c as CardFooter, a as CardTitle } from './chunk-KK47SYZI.js';
16
- export { a as Modal } from './chunk-43TK2ICH.js';
17
- import { b } from './chunk-KVKQLRJG.js';
18
- export { a as Button } from './chunk-KVKQLRJG.js';
13
+ import { b as b$1 } from './chunk-M7JLT62Q.js';
14
+ export { a as Icon } from './chunk-M7JLT62Q.js';
15
+ export { d as Card, b as CardContent, c as CardFooter, a as CardTitle } from './chunk-OU52NIKA.js';
16
+ export { a as Modal } from './chunk-PMWL5XZ4.js';
17
+ import { b } from './chunk-TF3GQKOY.js';
18
+ export { a as Button } from './chunk-TF3GQKOY.js';
19
19
  export { a as Input } from './chunk-F5EYMVQM.js';
20
- export { a as Box, a as FP } from './chunk-6SAHIYCZ.js';
20
+ export { a as FP } from './chunk-6SAHIYCZ.js';
21
21
  import './chunk-BFK62VX5.js';
22
22
  import './chunk-75QHTLFO.js';
23
- export { d as Link, d as To } from './chunk-5RAWNUVD.js';
24
- import { a } from './chunk-HHLNOC5T.js';
25
- export { a as UI } from './chunk-HHLNOC5T.js';
26
- import T, { useCallback, useMemo, useState, useEffect } from 'react';
23
+ export { d as Link, d as To } from './chunk-IBUTNPTQ.js';
24
+ import { a } from './chunk-DDSXKOUB.js';
25
+ export { a as UI } from './chunk-DDSXKOUB.js';
26
+ import P, { useCallback, useMemo, useState, useEffect } from 'react';
27
27
 
28
- var Fe={default:"",info:"Information: ",success:"Success: ",warning:"Warning: ",error:"Error: "},z=({severity:e})=>{let t=Fe[e];return t?T.createElement("span",{className:"sr-only"},t):null};var Ee=(e,t)=>({info:T.createElement(b$1.InfoSolid,{...t}),success:T.createElement(b$1.SuccessSolid,{...t}),warning:T.createElement(b$1.WarnSolid,{...t}),error:T.createElement(b$1.AlertSolid,{...t}),default:T.createElement(b$1.AlertSquareSolid,{...t})})[e],H=({severity:e,iconProps:t,hideIcon:o})=>{if(o)return null;let s=Ee(e,t);return T.createElement(a,{"aria-hidden":"true",className:"alert-icon"},s)};var j=({title:e,titleLevel:t})=>{if(!e)return null;let o=t?`h${t}`:"strong";return T.createElement(a,{as:o,className:"alert-title"},e)};var _=({children:e,contentType:t})=>t==="node"?T.createElement(T.Fragment,null,e):T.createElement(a,{as:"p"},e);var W=({actions:e})=>e?T.createElement(a,{as:"div",className:"alert-actions"},e):null;var Q=T.memo(({onDismiss:e,iconSize:t=16})=>T.createElement(b,{type:"button",onClick:e,"aria-label":"Close alert",className:"alert-dismiss","data-btn":"icon sm"},T.createElement(b$1,null,T.createElement(b$1.Close,{size:t})))),Z=Q;Q.displayName="DismissButton";var Ue={default:"polite",info:"polite",success:"polite",warning:"polite",error:"assertive"},L=T.forwardRef(({severity:e,variant:t,isVisible:o,dismissible:s,onDismiss:n,onInteractionStart:l,onInteractionEnd:p,autoFocus:c,title:m,titleLevel:v,children:h,contentType:g,actions:S,hideIcon:d,iconProps:y,...u},x)=>T.createElement(a,{as:"div",ref:x,role:"alert","aria-live":Ue[e],"aria-atomic":"true",className:`alert alert-${e}`,"data-alert":e,"data-visible":o,"data-variant":t,tabIndex:c?-1:void 0,onMouseEnter:l,onMouseLeave:p,onFocus:l,onBlur:p,...u},T.createElement(z,{severity:e}),T.createElement(H,{severity:e,iconProps:y,hideIcon:d}),T.createElement(a,{as:"div",className:"alert-message"},T.createElement(j,{title:m,titleLevel:v}),T.createElement(_,{contentType:g},h),T.createElement(W,{actions:S})),s&&T.createElement(Z,{onDismiss:n})));L.displayName="AlertView";var Ne=({open:e,onDismiss:t,dismissible:o,autoHideDuration:s,pauseOnHover:n,autoFocus:l,alertRef:p})=>{let[c,m]=T.useState(e),[v,h]=T.useState(e),[g,S]=T.useState(!1),d=T.useCallback(()=>{m(!1),setTimeout(()=>{h(!1),t?.();},300);},[t]);T.useEffect(()=>{e?(h(!0),m(!0)):m(!1);},[e]),T.useEffect(()=>{if(!s||!c||g)return;let x=setTimeout(()=>{d();},s);return ()=>clearTimeout(x)},[s,c,g,d]),T.useEffect(()=>{if(!o||!c)return;let x=f=>{f.key==="Escape"&&d();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[o,c,d]),T.useEffect(()=>{l&&c&&p.current&&p.current.focus();},[l,c,p]);let y=T.useCallback(()=>{n&&s&&S(!0);},[n,s]),u=T.useCallback(()=>{n&&s&&S(!1);},[n,s]);return {isVisible:c,shouldRender:v,handleDismiss:d,handleInteractionStart:y,handleInteractionEnd:u}},ee=({open:e,severity:t="default",children:o,title:s,dismissible:n=!1,onDismiss:l,iconSize:p,iconProps:c,hideIcon:m,autoHideDuration:v,pauseOnHover:h=!0,titleLevel:g=3,actions:S,autoFocus:d=!1,variant:y="outlined",contentType:u="text",...x})=>{let f=T.useRef(null),{isVisible:r,shouldRender:i,handleDismiss:$,handleInteractionStart:C,handleInteractionEnd:R}=Ne({open:e,onDismiss:l,dismissible:n,autoHideDuration:v,pauseOnHover:h,autoFocus:d,alertRef:f});if(!i)return null;let D={size:p||16,...c};return T.createElement(L,{ref:f,severity:t,variant:y,isVisible:r,dismissible:n,onDismiss:$,onInteractionStart:C,onInteractionEnd:R,autoFocus:d,title:s,titleLevel:g,contentType:u,actions:S,hideIcon:m,iconProps:D,...x},o)};ee.displayName="Alert";var te=({src:e="//",alt:t,width:o=480,height:s,styles:n,loading:l="lazy",placeholder:p,fetchpriority:c="low",decoding:m="auto",srcSet:v,sizes:h,onError:g,onLoad:S,...d})=>{let y=useMemo(()=>{let r=typeof o=="number"?o:480,i=typeof s=="number"?s:Math.round(r*.75),$=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${r} ${i}">
28
+ var Ve={default:"",info:"Information: ",success:"Success: ",warning:"Warning: ",error:"Error: "},H=({severity:e})=>{let t=Ve[e];return t?P.createElement("span",{className:"sr-only"},t):null};var Re=(e,t)=>({info:P.createElement(b$1.InfoSolid,{...t}),success:P.createElement(b$1.SuccessSolid,{...t}),warning:P.createElement(b$1.WarnSolid,{...t}),error:P.createElement(b$1.AlertSolid,{...t}),default:P.createElement(b$1.AlertSquareSolid,{...t})})[e],j=({severity:e,iconProps:t,hideIcon:o})=>{if(o)return null;let s=Re(e,t);return P.createElement(a,{"aria-hidden":"true",className:"alert-icon"},s)};var z=({title:e,titleLevel:t})=>{if(!e)return null;let o=t?`h${t}`:"strong";return P.createElement(a,{as:o,className:"alert-title"},e)};var O=({children:e,contentType:t})=>t==="node"?P.createElement(P.Fragment,null,e):P.createElement(a,{as:"p"},e);var J=({actions:e})=>e?P.createElement(a,{as:"div",className:"alert-actions"},e):null;var Z=P.memo(({onDismiss:e,iconSize:t=16})=>P.createElement(b,{type:"button",onClick:e,"aria-label":"Close alert",className:"alert-dismiss","data-btn":"icon sm"},P.createElement(b$1,null,P.createElement(b$1.Close,{size:t})))),ee=Z;Z.displayName="DismissButton";var He={default:"polite",info:"polite",success:"polite",warning:"polite",error:"assertive"},B=P.forwardRef(({severity:e,variant:t,isVisible:o,dismissible:s,onDismiss:r,onInteractionStart:i,onInteractionEnd:l,autoFocus:p,title:c,titleLevel:x,children:g,contentType:u,actions:S,hideIcon:h,iconProps:I,...f},d)=>P.createElement(a,{as:"div",ref:d,role:"alert","aria-live":He[e],"aria-atomic":"true",className:`alert alert-${e}`,"data-alert":e,"data-visible":o,"data-variant":t,tabIndex:p?-1:void 0,onMouseEnter:i,onMouseLeave:l,onFocus:i,onBlur:l,...f},P.createElement(H,{severity:e}),P.createElement(j,{severity:e,iconProps:I,hideIcon:h}),P.createElement(a,{as:"div",className:"alert-message"},P.createElement(z,{title:c,titleLevel:x}),P.createElement(O,{contentType:u},g),P.createElement(J,{actions:S})),s&&P.createElement(ee,{onDismiss:r})));B.displayName="AlertView";var je=({open:e,onDismiss:t,dismissible:o,autoHideDuration:s,pauseOnHover:r,autoFocus:i,alertRef:l})=>{let[p,c]=P.useState(e),[x,g]=P.useState(e),[u,S]=P.useState(!1),h=P.useCallback(()=>{c(!1),setTimeout(()=>{g(!1),t?.();},300);},[t]);P.useEffect(()=>{e?(g(!0),c(!0)):c(!1);},[e]),P.useEffect(()=>{if(!s||!p||u)return;let d=setTimeout(()=>{h();},s);return ()=>clearTimeout(d)},[s,p,u,h]),P.useEffect(()=>{if(!o||!p)return;let d=y=>{y.key==="Escape"&&h();};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[o,p,h]),P.useEffect(()=>{i&&p&&l.current&&l.current.focus();},[i,p,l]);let I=P.useCallback(()=>{r&&s&&S(!0);},[r,s]),f=P.useCallback(()=>{r&&s&&S(!1);},[r,s]);return {isVisible:p,shouldRender:x,handleDismiss:h,handleInteractionStart:I,handleInteractionEnd:f}},te=({open:e,severity:t="default",children:o,title:s,dismissible:r=!1,onDismiss:i,iconSize:l,iconProps:p,hideIcon:c,autoHideDuration:x,pauseOnHover:g=!0,titleLevel:u=3,actions:S,autoFocus:h=!1,variant:I="outlined",contentType:f="text",...d})=>{let y=P.useRef(null),{isVisible:a,shouldRender:m,handleDismiss:k,handleInteractionStart:C,handleInteractionEnd:G}=je({open:e,onDismiss:i,dismissible:r,autoHideDuration:x,pauseOnHover:g,autoFocus:h,alertRef:y});if(!m)return null;let D={size:l||16,...p};return P.createElement(B,{ref:y,severity:t,variant:I,isVisible:a,dismissible:r,onDismiss:k,onInteractionStart:C,onInteractionEnd:G,autoFocus:h,title:s,titleLevel:u,contentType:f,actions:S,hideIcon:c,iconProps:D,...d},o)};te.displayName="Alert";var oe=({src:e="//",alt:t,width:o=480,height:s,styles:r,loading:i="lazy",placeholder:l,fetchpriority:p="low",decoding:c="auto",srcSet:x,sizes:g,onError:u,onLoad:S,...h})=>{let I=useMemo(()=>{let a=typeof o=="number"?o:480,m=typeof s=="number"?s:Math.round(a*.75),k=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${a} ${m}">
29
29
  <defs>
30
- <linearGradient id="grad-${r}-${i}" x1="0%" y1="0%" x2="100%" y2="100%">
30
+ <linearGradient id="grad-${a}-${m}" x1="0%" y1="0%" x2="100%" y2="100%">
31
31
  <stop offset="0%" style="stop-color:#6366f1;stop-opacity:1" />
32
32
  <stop offset="50%" style="stop-color:#8b5cf6;stop-opacity:1" />
33
33
  <stop offset="100%" style="stop-color:#ec4899;stop-opacity:1" />
34
34
  </linearGradient>
35
35
  </defs>
36
- <rect width="${r}" height="${i}" fill="url(#grad-${r}-${i})"/>
37
- <circle cx="${r*.15}" cy="${i*.2}" r="${Math.min(r,i)*.08}" fill="rgba(255,255,255,0.2)"/>
38
- <path d="M0,${i*.75} Q${r*.25},${i*.65} ${r*.5},${i*.75} T${r},${i*.75} L${r},${i} L0,${i} Z" fill="rgba(0,0,0,0.15)"/>
39
- <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-size="${Math.max(16,Math.min(r,i)*.05)}" font-weight="500" fill="rgba(255,255,255,0.9)">${r}\xD7${i}</text>
40
- </svg>`;return `data:image/svg+xml,${encodeURIComponent($)}`},[o,s]),u=p??y;return T.createElement(a,{as:"img",src:e,alt:t,width:o,height:s||"auto",loading:l,style:n,srcSet:v,sizes:h,onError:r=>{g&&g(r),r.defaultPrevented||r.currentTarget.src!==u&&(r.currentTarget.src=u);},onLoad:r=>{S?.(r);},decoding:m,...d,...c&&{fetchpriority:c}})};te.displayName="Img";var oe=e=>{let[t,o]=useState([]),[s,n]=useState(e),[l,p]=useState(!1),[c,m]=useState(!1);return useEffect(()=>{let u=()=>{let x=window.speechSynthesis.getVoices();o(x);let f=x.find(r=>r.name==="Google US English");if(f)n(f);else {let r=x.find(i=>i.lang.startsWith("en-"));r&&n(r);}};return u(),window.speechSynthesis.onvoiceschanged=u,()=>{window.speechSynthesis.onvoiceschanged=null;}},[]),{speak:(u,x={},f)=>{let r=new SpeechSynthesisUtterance(u);r.lang=x.lang??"en-US",r.pitch=x.pitch??1,r.rate=x.rate??1,r.voice=s??x.voice??null,r.onend=()=>{p(!1),m(!1),f&&f();},"speechSynthesis"in window?(window.speechSynthesis.speak(r),p(!0),m(!1)):p(!1);},pause:()=>{l&&!c&&(window.speechSynthesis.pause(),m(!0));},resume:()=>{l&&c&&(window.speechSynthesis.resume(),m(!1));},cancel:()=>{l&&(window.speechSynthesis.cancel(),p(!1),m(!1));},isSpeaking:l,isPaused:c,availableVoices:t,changeVoice:u=>{n(u);},currentVoice:s,getAvailableLanguages:()=>[...new Set(t.map(u=>u.lang))]}};var Be=({children:e,onClick:t})=>T.createElement(a,{as:"button",type:"button",className:"tts-border","data-btn":"sm text pill",onClick:t},e),U=T.memo(Be),J=({label:e,isSpeaking:t,isPaused:o,onSpeak:s,onPause:n,onResume:l,onCancel:p})=>T.createElement(a,{as:"div","data-tts":!0},e&&T.createElement("p",null,e),!t&&T.createElement(U,{"aria-label":"Speak",onClick:s},T.createElement(b$1.PlaySolid,{size:16})),t&&!o&&T.createElement(U,{"aria-label":"Pause",onClick:n},T.createElement(b$1.PauseSolid,{size:16})),o&&T.createElement(U,{"aria-label":"Resume",onClick:l},T.createElement(b$1.ResumeSolid,{size:16})),T.createElement(U,{"aria-label":"Stop",onClick:p},T.createElement(b$1.StopSolid,{size:16})));J.displayName="TextToSpeechControls";J.TTSButton=U;var se=J;var ne=({initialText:e="",showTextInput:t=!1,voice:o,pitch:s=1,rate:n=1,label:l,onEnd:p})=>{let{speak:c,pause:m,resume:v,cancel:h,isSpeaking:g,isPaused:S}=oe(),[d,y]=useState(e);useEffect(()=>{y(e);},[e]);let u=()=>{d.trim()!==""&&c(d,{voice:o,pitch:s,rate:n},f);},x=r=>{y(r.target.value);},f=()=>{p&&p();};return T.createElement(T.Fragment,null,t&&T.createElement(b$2,{value:d,onChange:x}),T.createElement(se,{label:l,isSpeaking:g,isPaused:S,onSpeak:u,onPause:m,onResume:v,onCancel:h}))};ne.displayName="TextToSpeechComponent";var F=e=>T.createElement(T.Fragment,null,e),De=({id:e,children:t,headerBackground:o,styles:s,classes:n,...l})=>T.createElement(a,{as:"header",id:e,styles:s,className:n,...l},o,T.createElement(a,{as:"section"},t)),ze=({id:e,children:t,styles:o,classes:s,...n})=>T.createElement(a,{as:"main",id:e,styles:o,...n,className:s},t),He=({id:e,classes:t,children:o,styles:s={},...n})=>T.createElement(a,{as:"footer",id:e,className:t,styles:s,...n},T.createElement(a,{as:"section"},o||"Copyright \xA9 2022")),je=({id:e,children:t,styles:o={},classes:s,...n})=>T.createElement(a,{as:"aside",id:e,styles:o,className:s,...n},T.createElement(a,{as:"section"},t)),Ge=({id:e,children:t,styles:o,classes:s,...n})=>T.createElement(a,{as:"section",id:e,styles:o,className:s,...n},t),_e=({id:e,children:t,styles:o,classes:s,...n})=>T.createElement(a,{as:"article",id:e,styles:o,className:s,...n},t);F.displayName="Landmarks";F.Header=De;F.Main=ze;F.Footer=He;F.Aside=je;F.Section=Ge;F.Article=_e;var N=(e,t="")=>{let o=[];if(e.direction){let s={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"};o.push(`${t}${s[e.direction]}`);}if(e.wrap){let s={wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"};o.push(`${t}${s[e.wrap]}`);}if(e.gap&&o.push(`${t}gap-${e.gap}`),e.rowGap&&o.push(`${t}row-gap-${e.rowGap}`),e.colGap&&o.push(`${t}col-gap-${e.colGap}`),e.justify){let s={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};o.push(`${t}${s[e.justify]}`);}if(e.align){let s={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"};o.push(`${t}${s[e.align]}`);}if(e.alignContent){let s={start:"content-start",end:"content-end",center:"content-center",between:"content-between",around:"content-around",evenly:"content-evenly",stretch:"content-stretch"};o.push(`${t}${s[e.alignContent]}`);}return o},re=T.forwardRef((e,t)=>{let{variant:o,inline:s=!1,as:n="div",className:l="",styles:p,children:c,sm:m,md:v,lg:h,xl:g,direction:S,wrap:d,gap:y,rowGap:u,colGap:x,justify:f,align:r,alignContent:i,...$}=e,C=[];if(C.push(s?"flex-inline":"flex"),o){let D={center:"flex-center",between:"flex-between",around:"flex-around",stack:"flex-stack",spread:"flex-spread"};C.push(D[o]);}C.push(...N({direction:S,wrap:d,gap:y,rowGap:u,colGap:x,justify:f,align:r,alignContent:i})),m&&C.push(...N(m,"sm:")),v&&C.push(...N(v,"md:")),h&&C.push(...N(h,"lg:")),g&&C.push(...N(g,"xl:"));let R=[...C,l].filter(Boolean).join(" ");return T.createElement(a,{as:n,ref:t,classes:R,styles:p,...$},c)});re.displayName="Flex";var ae=T.forwardRef((e,t)=>{let{grow:o,shrink:s,basis:n,flex:l,alignSelf:p,order:c,as:m="div",className:v="",styles:h,children:g,sm:S,md:d,lg:y,xl:u,...x}=e,f=[];if(l){let i={1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"};f.push(i[l]);}if(o!==void 0&&f.push(`flex-grow-${o}`),s!==void 0&&f.push(`flex-shrink-${s}`),n){let i={auto:"flex-basis-auto",0:"flex-basis-0",full:"flex-basis-full"};f.push(i[n]);}if(p){let i={auto:"self-auto",start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"};f.push(i[p]);}if(c){let i={first:"order-first",last:"order-last",none:"order-none"};f.push(i[c]);}if(S?.flex){let i={1:"flex-1",auto:"flex-auto",none:"flex-none"};f.push(`sm:${i[S.flex]}`);}if(d?.flex){let i={1:"flex-1",auto:"flex-auto",none:"flex-none"};f.push(`md:${i[d.flex]}`);}if(y?.flex){let i={1:"flex-1",auto:"flex-auto",none:"flex-none"};f.push(`lg:${i[y.flex]}`);}if(u?.flex){let i={1:"flex-1",auto:"flex-auto",none:"flex-none"};f.push(`xl:${i[u.flex]}`);}let r=[...f,v].filter(Boolean).join(" ");return T.createElement(a,{as:m,ref:t,classes:r,styles:h,...x},g)});ae.displayName="Flex.Item";var ie=T.forwardRef((e,t)=>{let{as:o="div",className:s="",styles:n,...l}=e,p=["flex-1",s].filter(Boolean).join(" ");return T.createElement(a,{as:o,ref:t,classes:p,styles:n,...l})});ie.displayName="Flex.Spacer";var O=re;O.Item=ae;O.Spacer=ie;var We=O;var pe=({id:e,styles:t,classes:o,children:s,variant:n,...l})=>T.createElement(a,{as:"sup",id:e,styles:t,className:o,"data-badge":n||void 0,role:"status",...l},T.createElement(a,{as:"span"},s));pe.displayName="Badge";var Oe=({elm:e="span",role:t="note",variant:o,children:s,styles:n,...l})=>T.createElement(a,{as:e,role:t,"data-tag":o||void 0,styles:n,...l},s);Oe.displayName="Tag";var Xe=T.forwardRef(({summary:e,icon:t,styles:o,classes:s,ariaLabel:n,name:l,open:p,onPointerDown:c,onToggle:m,children:v,...h},g)=>{let S=useCallback(y=>{c?.(y);},[c]),d=useCallback(y=>{m?.(y);},[m]);return T.createElement(a,{as:"details",styles:o,classes:s,onToggle:d,ref:g,open:p,"aria-label":n,name:l,...h},T.createElement(a,{as:"summary",onPointerDown:S},t,e),T.createElement(a,{as:"section"},v))});Xe.displayName="Details";
36
+ <rect width="${a}" height="${m}" fill="url(#grad-${a}-${m})"/>
37
+ <circle cx="${a*.15}" cy="${m*.2}" r="${Math.min(a,m)*.08}" fill="rgba(255,255,255,0.2)"/>
38
+ <path d="M0,${m*.75} Q${a*.25},${m*.65} ${a*.5},${m*.75} T${a},${m*.75} L${a},${m} L0,${m} Z" fill="rgba(0,0,0,0.15)"/>
39
+ <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-size="${Math.max(16,Math.min(a,m)*.05)}" font-weight="500" fill="rgba(255,255,255,0.9)">${a}\xD7${m}</text>
40
+ </svg>`;return `data:image/svg+xml,${encodeURIComponent(k)}`},[o,s]),f=l??I;return P.createElement(a,{as:"img",src:e,alt:t,width:o,height:s||"auto",loading:i,style:r,srcSet:x,sizes:g,onError:a=>{u&&u(a),a.defaultPrevented||a.currentTarget.src!==f&&(a.currentTarget.src=f);},onLoad:a=>{S?.(a);},decoding:c,...h,...p&&{fetchpriority:p}})};oe.displayName="Img";var se=e=>{let[t,o]=useState([]),[s,r]=useState(e),[i,l]=useState(!1),[p,c]=useState(!1);return useEffect(()=>{let f=()=>{let d=window.speechSynthesis.getVoices();o(d);let y=d.find(a=>a.name==="Google US English");if(y)r(y);else {let a=d.find(m=>m.lang.startsWith("en-"));a&&r(a);}};return f(),window.speechSynthesis.onvoiceschanged=f,()=>{window.speechSynthesis.onvoiceschanged=null;}},[]),{speak:(f,d={},y)=>{let a=new SpeechSynthesisUtterance(f);a.lang=d.lang??"en-US",a.pitch=d.pitch??1,a.rate=d.rate??1,a.voice=s??d.voice??null,a.onend=()=>{l(!1),c(!1),y&&y();},"speechSynthesis"in window?(window.speechSynthesis.speak(a),l(!0),c(!1)):l(!1);},pause:()=>{i&&!p&&(window.speechSynthesis.pause(),c(!0));},resume:()=>{i&&p&&(window.speechSynthesis.resume(),c(!1));},cancel:()=>{i&&(window.speechSynthesis.cancel(),l(!1),c(!1));},isSpeaking:i,isPaused:p,availableVoices:t,changeVoice:f=>{r(f);},currentVoice:s,getAvailableLanguages:()=>[...new Set(t.map(f=>f.lang))]}};var Je=({children:e,onClick:t})=>P.createElement(a,{as:"button",type:"button",className:"tts-border","data-btn":"sm text pill",onClick:t},e),U=P.memo(Je),W=({label:e,isSpeaking:t,isPaused:o,onSpeak:s,onPause:r,onResume:i,onCancel:l})=>P.createElement(a,{as:"div","data-tts":!0},e&&P.createElement("p",null,e),!t&&P.createElement(U,{"aria-label":"Speak",onClick:s},P.createElement(b$1.PlaySolid,{size:16})),t&&!o&&P.createElement(U,{"aria-label":"Pause",onClick:r},P.createElement(b$1.PauseSolid,{size:16})),o&&P.createElement(U,{"aria-label":"Resume",onClick:i},P.createElement(b$1.ResumeSolid,{size:16})),P.createElement(U,{"aria-label":"Stop",onClick:l},P.createElement(b$1.StopSolid,{size:16})));W.displayName="TextToSpeechControls";W.TTSButton=U;var re=W;var ne=({initialText:e="",showTextInput:t=!1,voice:o,pitch:s=1,rate:r=1,label:i,onEnd:l})=>{let{speak:p,pause:c,resume:x,cancel:g,isSpeaking:u,isPaused:S}=se(),[h,I]=useState(e);useEffect(()=>{I(e);},[e]);let f=()=>{h.trim()!==""&&p(h,{voice:o,pitch:s,rate:r},y);},d=a=>{I(a.target.value);},y=()=>{l&&l();};return P.createElement(P.Fragment,null,t&&P.createElement(b$2,{value:h,onChange:d}),P.createElement(re,{label:i,isSpeaking:u,isPaused:S,onSpeak:f,onPause:c,onResume:x,onCancel:g}))};ne.displayName="TextToSpeechComponent";var $=e=>P.createElement(P.Fragment,null,e),Xe=({id:e,children:t,headerBackground:o,styles:s,classes:r,...i})=>P.createElement(a,{as:"header",id:e,styles:s,className:r,...i},o,P.createElement(a,{as:"section"},t)),qe=({id:e,children:t,styles:o,classes:s,...r})=>P.createElement(a,{as:"main",id:e,styles:o,...r,className:s},t),Qe=({id:e,classes:t,children:o,styles:s={},...r})=>P.createElement(a,{as:"footer",id:e,className:t,styles:s,...r},P.createElement(a,{as:"section"},o||"Copyright \xA9 2022")),Ye=({id:e,children:t,styles:o={},classes:s,...r})=>P.createElement(a,{as:"aside",id:e,styles:o,className:s,...r},P.createElement(a,{as:"section"},t)),Ze=({id:e,children:t,styles:o,classes:s,...r})=>P.createElement(a,{as:"section",id:e,styles:o,className:s,...r},t),et=({id:e,children:t,styles:o,classes:s,...r})=>P.createElement(a,{as:"article",id:e,styles:o,className:s,...r},t);$.displayName="Landmarks";$.Header=Xe;$.Main=qe;$.Footer=Qe;$.Aside=Ye;$.Section=Ze;$.Article=et;var ae=P.forwardRef(({padding:e,paddingInline:t,paddingBlock:o,margin:s,marginInline:r,marginBlock:i,width:l,maxWidth:p,radius:c,as:x="div",className:g,classes:u,children:S,...h},I)=>{let f=[];e&&f.push(`box-padding-${e}`),t&&f.push(`box-padding-inline-${t}`),o&&f.push(`box-padding-block-${o}`),s&&f.push(`box-margin-${s}`),r&&f.push(`box-margin-inline-${r}`),i&&f.push(`box-margin-block-${i}`),l&&f.push(`box-width-${l}`),p&&f.push(`box-max-width-${p}`),c&&f.push(`box-radius-${c}`);let d=[...f,g,u].filter(Boolean).join(" ");return P.createElement(a,{as:x,ref:I,classes:d||void 0,...h},S)});ae.displayName="Box";var pe=P.forwardRef(({gap:e,direction:t="vertical",align:o,justify:s,wrap:r,as:i="div",className:l,classes:p,children:c,...x},g)=>{let u=["stack"];t==="horizontal"?u.push("stack-horizontal"):u.push("stack-vertical"),e&&u.push(`stack-gap-${e}`),o&&u.push(`stack-align-${o}`),s&&u.push(`stack-justify-${s}`),r&&u.push(`stack-${r}`);let S=[...u,l,p].filter(Boolean).join(" ");return P.createElement(a,{as:i,ref:g,classes:S,...x},c)});pe.displayName="Stack";var fe=P.forwardRef(({gap:e,justify:t,align:o,as:s="div",className:r,classes:i,children:l,...p},c)=>{let x=["cluster"];e&&x.push(`cluster-gap-${e}`),t&&x.push(`cluster-justify-${t}`),o&&x.push(`cluster-align-${o}`);let g=[...x,r,i].filter(Boolean).join(" ");return P.createElement(a,{as:s,ref:c,classes:g,...p},l)});fe.displayName="Cluster";var me=P.forwardRef(({columns:e,auto:t,minColumnWidth:o,gap:s,gapX:r,gapY:i,justifyItems:l,alignItems:p,as:c="div",className:x,classes:g,children:u,style:S,styles:h,...I},f)=>{let d=["grid"];e&&d.push(`grid-cols-${e}`),t&&d.push(`grid-auto-${t}`),s&&d.push(`grid-gap-${s}`),r&&d.push(`grid-gap-x-${r}`),i&&d.push(`grid-gap-y-${i}`),l&&d.push(`grid-justify-items-${l}`),p&&d.push(`grid-align-items-${p}`);let y=[...d,x,g].filter(Boolean).join(" "),a$1={...S||{},...h||{}};return t&&o&&(a$1.gridTemplateColumns=`repeat(auto-${t}, minmax(${o}, 1fr))`),P.createElement(a,{as:c,ref:f,classes:y,style:Object.keys(a$1).length>0?a$1:void 0,...I},u)});me.displayName="Grid";var K=P.forwardRef(({span:e,rowSpan:t,as:o="div",className:s,classes:r,children:i,...l},p)=>{let c=[];e&&c.push(`grid-col-span-${e}`),t&&c.push(`grid-row-span-${t}`);let x=[...c,s,r].filter(Boolean).join(" ");return P.createElement(a,{as:o,ref:p,classes:x,...l},i)});K.displayName="GridItem";var de=me;de.Item=K;var tt=de;var A=(e,t="")=>{let o=[];if(e.direction){let s={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"};o.push(`${t}${s[e.direction]}`);}if(e.wrap){let s={wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"};o.push(`${t}${s[e.wrap]}`);}if(e.gap&&o.push(`${t}gap-${e.gap}`),e.rowGap&&o.push(`${t}row-gap-${e.rowGap}`),e.colGap&&o.push(`${t}col-gap-${e.colGap}`),e.justify){let s={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};o.push(`${t}${s[e.justify]}`);}if(e.align){let s={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"};o.push(`${t}${s[e.align]}`);}if(e.alignContent){let s={start:"content-start",end:"content-end",center:"content-center",between:"content-between",around:"content-around",evenly:"content-evenly",stretch:"content-stretch"};o.push(`${t}${s[e.alignContent]}`);}return o},ue=P.forwardRef((e,t)=>{let{variant:o,inline:s=!1,as:r="div",className:i="",styles:l,children:p,sm:c,md:x,lg:g,xl:u,direction:S,wrap:h,gap:I,rowGap:f,colGap:d,justify:y,align:a$1,alignContent:m,...k}=e,C=[];if(C.push(s?"flex-inline":"flex"),o){let D={center:"flex-center",between:"flex-between",around:"flex-around",stack:"flex-stack",spread:"flex-spread"};C.push(D[o]);}C.push(...A({direction:S,wrap:h,gap:I,rowGap:f,colGap:d,justify:y,align:a$1,alignContent:m})),c&&C.push(...A(c,"sm:")),x&&C.push(...A(x,"md:")),g&&C.push(...A(g,"lg:")),u&&C.push(...A(u,"xl:"));let G=[...C,i].filter(Boolean).join(" ");return P.createElement(a,{as:r,ref:t,classes:G,styles:l,...k},p)});ue.displayName="Flex";var xe=P.forwardRef((e,t)=>{let{grow:o,shrink:s,basis:r,flex:i,alignSelf:l,order:p,as:c="div",className:x="",styles:g,children:u,sm:S,md:h,lg:I,xl:f,...d}=e,y=[];if(i){let m={1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"};y.push(m[i]);}if(o!==void 0&&y.push(`flex-grow-${o}`),s!==void 0&&y.push(`flex-shrink-${s}`),r){let m={auto:"flex-basis-auto",0:"flex-basis-0",full:"flex-basis-full"};y.push(m[r]);}if(l){let m={auto:"self-auto",start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"};y.push(m[l]);}if(p){let m={first:"order-first",last:"order-last",none:"order-none"};y.push(m[p]);}if(S?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};y.push(`sm:${m[S.flex]}`);}if(h?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};y.push(`md:${m[h.flex]}`);}if(I?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};y.push(`lg:${m[I.flex]}`);}if(f?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};y.push(`xl:${m[f.flex]}`);}let a$1=[...y,x].filter(Boolean).join(" ");return P.createElement(a,{as:c,ref:t,classes:a$1,styles:g,...d},u)});xe.displayName="Flex.Item";var ye=P.forwardRef((e,t)=>{let{as:o="div",className:s="",styles:r,...i}=e,l=["flex-1",s].filter(Boolean).join(" ");return P.createElement(a,{as:o,ref:t,classes:l,styles:r,...i})});ye.displayName="Flex.Spacer";var X=ue;X.Item=xe;X.Spacer=ye;var ot=X;var ge=({id:e,styles:t,classes:o,children:s,variant:r,...i})=>P.createElement(a,{as:"sup",id:e,styles:t,className:o,"data-badge":r||void 0,role:"status",...i},P.createElement(a,{as:"span"},s));ge.displayName="Badge";var rt=({elm:e="span",role:t="note",variant:o,children:s,styles:r,...i})=>P.createElement(a,{as:e,role:t,"data-tag":o||void 0,styles:r,...i},s);rt.displayName="Tag";var nt=P.forwardRef(({summary:e,icon:t,styles:o,classes:s,ariaLabel:r,name:i,open:l,onPointerDown:p,onToggle:c,children:x,...g},u)=>{let S=useCallback(I=>{p?.(I);},[p]),h=useCallback(I=>{c?.(I);},[c]);return P.createElement(a,{as:"details",styles:o,classes:s,onToggle:h,ref:u,open:l,"aria-label":r,name:i,...g},P.createElement(a,{as:"summary",onPointerDown:S},t,e),P.createElement(a,{as:"section"},x))});nt.displayName="Details";
41
41
 
42
- export { ee as Alert, _e as Article, je as Aside, pe as Badge, Xe as Details, We as Flex, He as Footer, De as Header, te as Img, F as Landmarks, ze as Main, Ge as Section, Oe as Tag, ne as TextToSpeech };
42
+ export { te as Alert, et as Article, Ye as Aside, ge as Badge, ae as Box, fe as Cluster, nt as Details, ot as Flex, Qe as Footer, tt as Grid, K as GridItem, Xe as Header, oe as Img, $ as Landmarks, qe as Main, Ze as Section, pe as Stack, rt as Tag, ne as TextToSpeech };
43
43
  //# sourceMappingURL=out.js.map
44
44
  //# sourceMappingURL=index.js.map