@namroodinc/liquid-editorial 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/AGENTS.md +4 -0
  2. package/README.md +1576 -180
  3. package/UPGRADING.md +215 -0
  4. package/dist/chunks/ColourField-CJicr3OT.cjs +2 -0
  5. package/dist/chunks/ColourField-CJicr3OT.cjs.map +1 -0
  6. package/dist/chunks/{ColourField-C2YDshDg.js → ColourField-DjHRiFDU.js} +167 -162
  7. package/dist/chunks/ColourField-DjHRiFDU.js.map +1 -0
  8. package/dist/chunks/DatePicker-D_6CQpUd.js +296 -0
  9. package/dist/chunks/DatePicker-D_6CQpUd.js.map +1 -0
  10. package/dist/chunks/DatePicker-aSlYLjtW.cjs +2 -0
  11. package/dist/chunks/DatePicker-aSlYLjtW.cjs.map +1 -0
  12. package/dist/chunks/FormEditor-M7tNidFo.js +584 -0
  13. package/dist/chunks/FormEditor-M7tNidFo.js.map +1 -0
  14. package/dist/chunks/FormEditor-UzbPdiJo.cjs +2 -0
  15. package/dist/chunks/FormEditor-UzbPdiJo.cjs.map +1 -0
  16. package/dist/chunks/Slider-k8weRl34.cjs +2 -0
  17. package/dist/chunks/Slider-k8weRl34.cjs.map +1 -0
  18. package/dist/chunks/Slider-vdMFLX-H.js +174 -0
  19. package/dist/chunks/Slider-vdMFLX-H.js.map +1 -0
  20. package/dist/chunks/dialogFocus-B9iqKl3I.cjs +2 -0
  21. package/dist/chunks/dialogFocus-B9iqKl3I.cjs.map +1 -0
  22. package/dist/chunks/dialogFocus-BFoyeTpA.js +48 -0
  23. package/dist/chunks/dialogFocus-BFoyeTpA.js.map +1 -0
  24. package/dist/components/Choice/index.cjs +1 -1
  25. package/dist/components/Choice/index.cjs.map +1 -1
  26. package/dist/components/Choice/index.d.cts.map +1 -1
  27. package/dist/components/Choice/index.d.ts.map +1 -1
  28. package/dist/components/Choice/index.js +2 -0
  29. package/dist/components/Choice/index.js.map +1 -1
  30. package/dist/components/ColourField/focus.d.cts +0 -1
  31. package/dist/components/ColourField/focus.d.cts.map +1 -1
  32. package/dist/components/ColourField/focus.d.ts +0 -1
  33. package/dist/components/ColourField/focus.d.ts.map +1 -1
  34. package/dist/components/ColourField/index.cjs +1 -1
  35. package/dist/components/ColourField/index.d.cts.map +1 -1
  36. package/dist/components/ColourField/index.d.ts.map +1 -1
  37. package/dist/components/ColourField/index.js +1 -1
  38. package/dist/components/ColourField/value.d.cts +6 -0
  39. package/dist/components/ColourField/value.d.cts.map +1 -1
  40. package/dist/components/ColourField/value.d.ts +6 -0
  41. package/dist/components/ColourField/value.d.ts.map +1 -1
  42. package/dist/components/DatePicker/date.d.cts +9 -0
  43. package/dist/components/DatePicker/date.d.cts.map +1 -0
  44. package/dist/components/DatePicker/date.d.ts +9 -0
  45. package/dist/components/DatePicker/date.d.ts.map +1 -0
  46. package/dist/components/DatePicker/index.cjs +1 -2
  47. package/dist/components/DatePicker/index.d.cts +9 -6
  48. package/dist/components/DatePicker/index.d.cts.map +1 -1
  49. package/dist/components/DatePicker/index.d.ts +9 -6
  50. package/dist/components/DatePicker/index.d.ts.map +1 -1
  51. package/dist/components/DatePicker/index.js +1 -259
  52. package/dist/components/DatePicker/style.css +5 -0
  53. package/dist/components/Drawer/index.cjs +1 -1
  54. package/dist/components/Drawer/index.cjs.map +1 -1
  55. package/dist/components/Drawer/index.d.cts.map +1 -1
  56. package/dist/components/Drawer/index.d.ts.map +1 -1
  57. package/dist/components/Drawer/index.js +69 -73
  58. package/dist/components/Drawer/index.js.map +1 -1
  59. package/dist/components/EditLayout/index.cjs +1 -1
  60. package/dist/components/EditLayout/index.cjs.map +1 -1
  61. package/dist/components/EditLayout/index.d.cts.map +1 -1
  62. package/dist/components/EditLayout/index.d.ts.map +1 -1
  63. package/dist/components/EditLayout/index.js +68 -55
  64. package/dist/components/EditLayout/index.js.map +1 -1
  65. package/dist/components/Field/style.css +20 -0
  66. package/dist/components/FormEditor/README.md +375 -0
  67. package/dist/components/FormEditor/additional-control.d.cts +6 -0
  68. package/dist/components/FormEditor/additional-control.d.cts.map +1 -0
  69. package/dist/components/FormEditor/additional-control.d.ts +6 -0
  70. package/dist/components/FormEditor/additional-control.d.ts.map +1 -0
  71. package/dist/components/FormEditor/choice-control.d.cts +6 -0
  72. package/dist/components/FormEditor/choice-control.d.cts.map +1 -0
  73. package/dist/components/FormEditor/choice-control.d.ts +6 -0
  74. package/dist/components/FormEditor/choice-control.d.ts.map +1 -0
  75. package/dist/components/FormEditor/control.d.cts +8 -0
  76. package/dist/components/FormEditor/control.d.cts.map +1 -1
  77. package/dist/components/FormEditor/control.d.ts +8 -0
  78. package/dist/components/FormEditor/control.d.ts.map +1 -1
  79. package/dist/components/FormEditor/index.cjs +1 -1
  80. package/dist/components/FormEditor/index.d.cts +1 -1
  81. package/dist/components/FormEditor/index.d.cts.map +1 -1
  82. package/dist/components/FormEditor/index.d.ts +1 -1
  83. package/dist/components/FormEditor/index.d.ts.map +1 -1
  84. package/dist/components/FormEditor/index.js +1 -1
  85. package/dist/components/FormEditor/model.d.cts +68 -2
  86. package/dist/components/FormEditor/model.d.cts.map +1 -1
  87. package/dist/components/FormEditor/model.d.ts +68 -2
  88. package/dist/components/FormEditor/model.d.ts.map +1 -1
  89. package/dist/components/FormEditor/style.css +12 -0
  90. package/dist/components/Grid/style.css +2 -1
  91. package/dist/components/ImageCropper/index.cjs +1 -1
  92. package/dist/components/ImageCropper/index.cjs.map +1 -1
  93. package/dist/components/ImageCropper/index.js +6 -6
  94. package/dist/components/ImageCropper/index.js.map +1 -1
  95. package/dist/components/Modal/index.cjs +1 -1
  96. package/dist/components/Modal/index.cjs.map +1 -1
  97. package/dist/components/Modal/index.d.cts.map +1 -1
  98. package/dist/components/Modal/index.d.ts.map +1 -1
  99. package/dist/components/Modal/index.js +40 -48
  100. package/dist/components/Modal/index.js.map +1 -1
  101. package/dist/components/NumberField/index.cjs +1 -1
  102. package/dist/components/NumberField/index.cjs.map +1 -1
  103. package/dist/components/NumberField/index.d.cts.map +1 -1
  104. package/dist/components/NumberField/index.d.ts.map +1 -1
  105. package/dist/components/NumberField/index.js +4 -0
  106. package/dist/components/NumberField/index.js.map +1 -1
  107. package/dist/components/Popover/index.cjs +1 -1
  108. package/dist/components/Popover/index.cjs.map +1 -1
  109. package/dist/components/Popover/index.d.cts +2 -0
  110. package/dist/components/Popover/index.d.cts.map +1 -1
  111. package/dist/components/Popover/index.d.ts +2 -0
  112. package/dist/components/Popover/index.d.ts.map +1 -1
  113. package/dist/components/Popover/index.js +45 -44
  114. package/dist/components/Popover/index.js.map +1 -1
  115. package/dist/components/SelectionCard/index.cjs +1 -1
  116. package/dist/components/SelectionCard/index.cjs.map +1 -1
  117. package/dist/components/SelectionCard/index.d.cts.map +1 -1
  118. package/dist/components/SelectionCard/index.d.ts.map +1 -1
  119. package/dist/components/SelectionCard/index.js +2 -1
  120. package/dist/components/SelectionCard/index.js.map +1 -1
  121. package/dist/components/Slider/index.cjs +1 -2
  122. package/dist/components/Slider/index.d.cts +14 -1
  123. package/dist/components/Slider/index.d.cts.map +1 -1
  124. package/dist/components/Slider/index.d.ts +14 -1
  125. package/dist/components/Slider/index.d.ts.map +1 -1
  126. package/dist/components/Slider/index.js +1 -127
  127. package/dist/components/Slider/scale.d.cts +13 -0
  128. package/dist/components/Slider/scale.d.cts.map +1 -0
  129. package/dist/components/Slider/scale.d.ts +13 -0
  130. package/dist/components/Slider/scale.d.ts.map +1 -0
  131. package/dist/elements.css +9 -0
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.d.cts +1 -1
  134. package/dist/index.d.cts.map +1 -1
  135. package/dist/index.d.ts +1 -1
  136. package/dist/index.d.ts.map +1 -1
  137. package/dist/index.js +20 -20
  138. package/dist/internal/dialogFocus.d.cts +17 -0
  139. package/dist/internal/dialogFocus.d.cts.map +1 -0
  140. package/dist/internal/dialogFocus.d.ts +17 -0
  141. package/dist/internal/dialogFocus.d.ts.map +1 -0
  142. package/dist/reset.css +2 -0
  143. package/dist/styles.css +1 -0
  144. package/package.json +2 -2
  145. package/dist/chunks/ColourField-C2YDshDg.js.map +0 -1
  146. package/dist/chunks/ColourField-Dc9533G6.cjs +0 -2
  147. package/dist/chunks/ColourField-Dc9533G6.cjs.map +0 -1
  148. package/dist/chunks/FormEditor-DRmPFe2E.js +0 -328
  149. package/dist/chunks/FormEditor-DRmPFe2E.js.map +0 -1
  150. package/dist/chunks/FormEditor-PVkvKep1.cjs +0 -2
  151. package/dist/chunks/FormEditor-PVkvKep1.cjs.map +0 -1
  152. package/dist/components/DatePicker/index.cjs.map +0 -1
  153. package/dist/components/DatePicker/index.js.map +0 -1
  154. package/dist/components/Slider/index.cjs.map +0 -1
  155. package/dist/components/Slider/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["mergeRefs","cx","parts","VIEWPORT_MARGIN","Popover","rest","floatingRef","useRef","generatedId","useId","panelId","id","place","useCallback","reference","anchorRef","anchorId","floating","anchor","matchAnchorWidth","box","naturalHeight","panel","viewportWidth","viewportHeight","viewportRoom","roomBelow","offset","roomAbove","placeAbove","placement","availableHeight","visibleHeight","preferredTop","top","preferredLeft","align","left","useEffect","isOpen","update","scroll","target","observer","observeContent","child","mutations","panelRef","className","createPortal"],"sources":["../../../src/components/Popover/index.tsx"],"sourcesContent":["import { useCallback, useEffect, useId, useRef, type ReactNode, type RefObject } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { mergeRefs } from \"../../internal/mergeRefs\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nconst VIEWPORT_MARGIN = 8;\n\nexport type PopoverAlign = \"start\" | \"end\";\nexport type PopoverPlacement = \"top\" | \"bottom\";\n\nexport interface PopoverProps {\n /** The control the panel hangs off. */\n anchorRef: RefObject<HTMLElement | null>;\n /** Optional DOM id fallback for composed controls whose refs are consumed by a field wrapper. */\n anchorId?: string;\n isOpen: boolean;\n /** Which edge of the anchor the panel lines up with. Flips when it must. */\n align?: PopoverAlign;\n /** Preferred side of the anchor. Flips when the other side has more room. */\n placement?: PopoverPlacement;\n /** Match the anchor's width — for listboxes that read as one field. */\n matchAnchorWidth?: boolean;\n /** Gap between anchor and panel. */\n offset?: number;\n className?: string;\n children: ReactNode;\n role?: string;\n id?: string;\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n panelRef?: RefObject<HTMLDivElement | null>;\n}\n\n/**\n * A panel anchored to a control. It is positioned against the viewport, so it\n * flips above the anchor when the space below runs out and slides inward\n * rather than being cut off at any edge.\n */\nexport function Popover({\n anchorRef,\n anchorId,\n isOpen,\n align = \"start\",\n placement = \"bottom\",\n matchAnchorWidth = false,\n offset = 4,\n className,\n children,\n role,\n id,\n panelRef,\n ...rest\n}: PopoverProps) {\n const floatingRef = useRef<HTMLDivElement | null>(null);\n const generatedId = useId();\n const panelId = id ?? generatedId;\n\n const place = useCallback(() => {\n const reference = anchorRef.current ?? (anchorId ? document.getElementById(anchorId) : null);\n const floating = floatingRef.current;\n if (!reference || !floating) {\n return;\n }\n\n const anchor = reference.getBoundingClientRect();\n if (matchAnchorWidth) {\n floating.style.width = `${anchor.width}px`;\n }\n // Natural height is the capped box plus whatever it scrolls. Lifting the cap\n // to measure would clamp the panel's scroll position back to the top.\n const box = floating.getBoundingClientRect();\n const naturalHeight = box.height + Math.max(0, floating.scrollHeight - floating.clientHeight);\n const panel = { width: box.width, height: naturalHeight };\n const viewportWidth = document.documentElement.clientWidth;\n const viewportHeight = document.documentElement.clientHeight;\n const viewportRoom = Math.max(0, viewportHeight - VIEWPORT_MARGIN * 2);\n const roomBelow = Math.max(\n 0,\n Math.min(viewportRoom, viewportHeight - anchor.bottom - offset - VIEWPORT_MARGIN),\n );\n const roomAbove = Math.max(0, Math.min(viewportRoom, anchor.top - offset - VIEWPORT_MARGIN));\n const placeAbove =\n placement === \"top\"\n ? roomAbove >= panel.height || roomAbove > roomBelow\n : roomBelow < panel.height && roomAbove > roomBelow;\n const availableHeight = placeAbove ? roomAbove : roomBelow;\n const visibleHeight = Math.min(panel.height, availableHeight);\n const preferredTop = placeAbove ? anchor.top - offset - visibleHeight : anchor.bottom + offset;\n const top = Math.max(\n VIEWPORT_MARGIN,\n Math.min(preferredTop, viewportHeight - VIEWPORT_MARGIN - visibleHeight),\n );\n const preferredLeft = align === \"end\" ? anchor.right - panel.width : anchor.left;\n const left = Math.max(\n VIEWPORT_MARGIN,\n Math.min(preferredLeft, viewportWidth - panel.width - VIEWPORT_MARGIN),\n );\n\n floating.style.left = `${Math.round(left)}px`;\n floating.style.top = `${Math.round(top)}px`;\n floating.style.setProperty(\"--popover-max-block-size\", `${Math.round(availableHeight)}px`);\n floating.style.visibility = \"visible\";\n }, [align, anchorId, anchorRef, matchAnchorWidth, offset, placement]);\n\n useEffect(() => {\n if (!isOpen) {\n return;\n }\n const floating = floatingRef.current;\n const reference = anchorRef.current ?? (anchorId ? document.getElementById(anchorId) : null);\n place();\n const update = () => place();\n // The panel's own scrolling never moves its anchor.\n const scroll = ({ target }: Event) => {\n if (target instanceof Node && floating?.contains(target)) {\n return;\n }\n place();\n };\n const observer = typeof ResizeObserver === \"undefined\" ? undefined : new ResizeObserver(update);\n if (reference) {\n observer?.observe(reference);\n }\n // Children can grow while the outer panel stays capped and scrollable. Size\n // changes arrive through the observer; new children only need observing.\n const observeContent = () => {\n if (!floating || !observer) {\n return;\n }\n observer.observe(floating);\n for (const child of floating.children) {\n observer.observe(child);\n }\n };\n observeContent();\n const mutations = new MutationObserver(observeContent);\n if (floating) {\n mutations.observe(floating, { childList: true });\n }\n window.addEventListener(\"resize\", update);\n window.addEventListener(\"scroll\", scroll, true);\n return () => {\n window.removeEventListener(\"resize\", update);\n window.removeEventListener(\"scroll\", scroll, true);\n observer?.disconnect();\n mutations.disconnect();\n };\n }, [anchorId, anchorRef, isOpen, place]);\n\n if (!isOpen || typeof document === \"undefined\") {\n return null;\n }\n\n const panel = (\n <div\n ref={mergeRefs(floatingRef, panelRef)}\n id={panelId}\n role={role}\n className={cx(\"ds-popover\", className)}\n {...rest}\n >\n {children}\n </div>\n );\n\n return createPortal(panel, document.body);\n}\n"],"mappings":";;;;;AAKA,SAASC,EAAG,GAAGC,GAAuC;CACpD,OAAOA,EAAM,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;AACvC;AAEA,IAAMC,IAAkB;AAiCxB,SAAgBC,EAAQ,EACtB,cACA,aACA,WACA,WAAQ,SACR,eAAY,UACZ,sBAAmB,IACnB,YAAS,GACT,cACA,aACA,SACA,OACA,aACA,GAAGC,KACY;CACf,IAAMC,IAAcC,EAA8B,IAAI,GAChDC,IAAcC,EAAM,GACpBC,IAAUC,KAAMH,GAEhBI,IAAQC,QAAkB;EAC9B,IAAMC,IAAYC,EAAU,YAAYC,IAAW,SAAS,eAAeA,CAAQ,IAAI,OACjFC,IAAWX,EAAY;EAC7B,IAAI,CAACQ,KAAa,CAACG,GACjB;EAGF,IAAMC,IAASJ,EAAU,sBAAsB;EAC/C,AAAIK,MACF,EAAS,MAAM,QAAQ,GAAGD,EAAO,MAAM;EAIzC,IAAME,IAAMH,EAAS,sBAAsB,GACrCI,IAAgBD,EAAI,SAAS,KAAK,IAAI,GAAGH,EAAS,eAAeA,EAAS,YAAY,GACtFK,IAAQ;GAAE,OAAOF,EAAI;GAAO,QAAQC;EAAc,GAClDE,IAAgB,SAAS,gBAAgB,aACzCC,IAAiB,SAAS,gBAAgB,cAC1CC,IAAe,KAAK,IAAI,GAAGD,IAAiB,EAAmB,GAC/DE,IAAY,KAAK,IACrB,GACA,KAAK,IAAID,GAAcD,IAAiBN,EAAO,SAASS,IAASxB,CAAe,CAClF,GACMyB,IAAY,KAAK,IAAI,GAAG,KAAK,IAAIH,GAAcP,EAAO,MAAMS,IAASxB,CAAe,CAAC,GACrF0B,IACJC,MAAc,QACVF,KAAaN,EAAM,UAAUM,IAAYF,IACzCA,IAAYJ,EAAM,UAAUM,IAAYF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IAAI,iBAAiBF,CAAc;EAMrD,OALI3B,KACF6B,EAAU,QAAQ7B,GAAU,EAAE,WAAW,GAAK,CAAC,GAEjD,OAAO,iBAAiB,UAAUuB,CAAM,GACxC,OAAO,iBAAiB,UAAUC,GAAQ,EAAI,SACjC;GAIX,AAHA,OAAO,oBAAoB,UAAUD,CAAM,GAC3C,OAAO,oBAAoB,UAAUC,GAAQ,EAAI,GACjDE,GAAU,WAAW,GACrBG,EAAU,WAAW;EACvB;CACF,GAAG;EAAC9B;EAAUD;EAAWwB;EAAQ3B;CAAK,CAAC,GAEnC,CAAC2B,KAAU,OAAO,WAAa,KACjC,OAAO;CAGT,IAAMjB,IACJ,kBAAC,OAAD;EACE,KAAKtB,EAAUM,GAAayC,CAAQ;EACpC,IAAIrC;EACE;EACN,WAAWT,EAAG,cAAc+C,CAAS;EACrC,GAAI3C;EAEH;CACE,CAAA;CAGP,OAAO4C,EAAa3B,GAAO,SAAS,IAAI;AAC1C"}
1
+ {"version":3,"file":"index.js","names":["mergeRefs","cx","parts","VIEWPORT_MARGIN","Popover","rest","floatingRef","useRef","generatedId","useId","panelId","id","place","useCallback","reference","anchorRef","anchorId","floating","anchor","matchAnchorWidth","box","naturalHeight","panel","viewportWidth","viewportHeight","viewportRoom","roomBelow","offset","roomAbove","placeAbove","placement","availableHeight","visibleHeight","preferredTop","top","preferredLeft","align","left","useEffect","isOpen","unregister","registerPopup","update","scroll","target","observer","observeContent","child","mutations","panelRef","className","createPortal"],"sources":["../../../src/components/Popover/index.tsx"],"sourcesContent":["import { useCallback, useEffect, useId, useRef, type ReactNode, type RefObject } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { mergeRefs } from \"../../internal/mergeRefs\";\nimport { registerPopup } from \"../../internal/dialogFocus\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nconst VIEWPORT_MARGIN = 8;\n\nexport type PopoverAlign = \"start\" | \"end\";\nexport type PopoverPlacement = \"top\" | \"bottom\";\n\nexport interface PopoverProps {\n /** The control the panel hangs off. */\n anchorRef: RefObject<HTMLElement | null>;\n /** Optional DOM id fallback for composed controls whose refs are consumed by a field wrapper. */\n anchorId?: string;\n isOpen: boolean;\n /** Which edge of the anchor the panel lines up with. Flips when it must. */\n align?: PopoverAlign;\n /** Preferred side of the anchor. Flips when the other side has more room. */\n placement?: PopoverPlacement;\n /** Match the anchor's width — for listboxes that read as one field. */\n matchAnchorWidth?: boolean;\n /** Gap between anchor and panel. */\n offset?: number;\n className?: string;\n children: ReactNode;\n role?: string;\n id?: string;\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n /** `-1` lets a dialog panel hold focus when a click lands on its non-interactive content. */\n tabIndex?: number;\n panelRef?: RefObject<HTMLDivElement | null>;\n}\n\n/**\n * A panel anchored to a control. It is positioned against the viewport, so it\n * flips above the anchor when the space below runs out and slides inward\n * rather than being cut off at any edge.\n */\nexport function Popover({\n anchorRef,\n anchorId,\n isOpen,\n align = \"start\",\n placement = \"bottom\",\n matchAnchorWidth = false,\n offset = 4,\n className,\n children,\n role,\n id,\n panelRef,\n ...rest\n}: PopoverProps) {\n const floatingRef = useRef<HTMLDivElement | null>(null);\n const generatedId = useId();\n const panelId = id ?? generatedId;\n\n const place = useCallback(() => {\n const reference = anchorRef.current ?? (anchorId ? document.getElementById(anchorId) : null);\n const floating = floatingRef.current;\n if (!reference || !floating) {\n return;\n }\n\n const anchor = reference.getBoundingClientRect();\n if (matchAnchorWidth) {\n floating.style.width = `${anchor.width}px`;\n }\n // Natural height is the capped box plus whatever it scrolls. Lifting the cap\n // to measure would clamp the panel's scroll position back to the top.\n const box = floating.getBoundingClientRect();\n const naturalHeight = box.height + Math.max(0, floating.scrollHeight - floating.clientHeight);\n const panel = { width: box.width, height: naturalHeight };\n const viewportWidth = document.documentElement.clientWidth;\n const viewportHeight = document.documentElement.clientHeight;\n const viewportRoom = Math.max(0, viewportHeight - VIEWPORT_MARGIN * 2);\n const roomBelow = Math.max(\n 0,\n Math.min(viewportRoom, viewportHeight - anchor.bottom - offset - VIEWPORT_MARGIN),\n );\n const roomAbove = Math.max(0, Math.min(viewportRoom, anchor.top - offset - VIEWPORT_MARGIN));\n const placeAbove =\n placement === \"top\"\n ? roomAbove >= panel.height || roomAbove > roomBelow\n : roomBelow < panel.height && roomAbove > roomBelow;\n const availableHeight = placeAbove ? roomAbove : roomBelow;\n const visibleHeight = Math.min(panel.height, availableHeight);\n const preferredTop = placeAbove ? anchor.top - offset - visibleHeight : anchor.bottom + offset;\n const top = Math.max(\n VIEWPORT_MARGIN,\n Math.min(preferredTop, viewportHeight - VIEWPORT_MARGIN - visibleHeight),\n );\n const preferredLeft = align === \"end\" ? anchor.right - panel.width : anchor.left;\n const left = Math.max(\n VIEWPORT_MARGIN,\n Math.min(preferredLeft, viewportWidth - panel.width - VIEWPORT_MARGIN),\n );\n\n floating.style.left = `${Math.round(left)}px`;\n floating.style.top = `${Math.round(top)}px`;\n floating.style.setProperty(\"--popover-max-block-size\", `${Math.round(availableHeight)}px`);\n floating.style.visibility = \"visible\";\n }, [align, anchorId, anchorRef, matchAnchorWidth, offset, placement]);\n\n useEffect(() => {\n if (!isOpen) {\n return;\n }\n const floating = floatingRef.current;\n const reference = anchorRef.current ?? (anchorId ? document.getElementById(anchorId) : null);\n // A dialog around the anchor leaves Tab in this portalled panel to the panel.\n const unregister = floating && reference ? registerPopup(floating, reference) : undefined;\n place();\n const update = () => place();\n // The panel's own scrolling never moves its anchor.\n const scroll = ({ target }: Event) => {\n if (target instanceof Node && floating?.contains(target)) {\n return;\n }\n place();\n };\n const observer = typeof ResizeObserver === \"undefined\" ? undefined : new ResizeObserver(update);\n if (reference) {\n observer?.observe(reference);\n }\n // Children can grow while the outer panel stays capped and scrollable. Size\n // changes arrive through the observer; new children only need observing.\n const observeContent = () => {\n if (!floating || !observer) {\n return;\n }\n observer.observe(floating);\n for (const child of floating.children) {\n observer.observe(child);\n }\n };\n observeContent();\n const mutations = new MutationObserver(observeContent);\n if (floating) {\n mutations.observe(floating, { childList: true });\n }\n window.addEventListener(\"resize\", update);\n window.addEventListener(\"scroll\", scroll, true);\n return () => {\n window.removeEventListener(\"resize\", update);\n window.removeEventListener(\"scroll\", scroll, true);\n observer?.disconnect();\n mutations.disconnect();\n unregister?.();\n };\n }, [anchorId, anchorRef, isOpen, place]);\n\n if (!isOpen || typeof document === \"undefined\") {\n return null;\n }\n\n const panel = (\n <div\n ref={mergeRefs(floatingRef, panelRef)}\n id={panelId}\n role={role}\n className={cx(\"ds-popover\", className)}\n {...rest}\n >\n {children}\n </div>\n );\n\n return createPortal(panel, document.body);\n}\n"],"mappings":";;;;;;AAMA,SAASC,EAAG,GAAGC,GAAuC;CACpD,OAAOA,EAAM,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;AACvC;AAEA,IAAMC,IAAkB;AAmCxB,SAAgBC,EAAQ,EACtB,cACA,aACA,WACA,WAAQ,SACR,eAAY,UACZ,sBAAmB,IACnB,YAAS,GACT,cACA,aACA,SACA,OACA,aACA,GAAGC,KACY;CACf,IAAMC,IAAcC,EAA8B,IAAI,GAChDC,IAAcC,EAAM,GACpBC,IAAUC,KAAMH,GAEhBI,IAAQC,QAAkB;EAC9B,IAAMC,IAAYC,EAAU,YAAYC,IAAW,SAAS,eAAeA,CAAQ,IAAI,OACjFC,IAAWX,EAAY;EAC7B,IAAI,CAACQ,KAAa,CAACG,GACjB;EAGF,IAAMC,IAASJ,EAAU,sBAAsB;EAC/C,AAAIK,MACF,EAAS,MAAM,QAAQ,GAAGD,EAAO,MAAM;EAIzC,IAAME,IAAMH,EAAS,sBAAsB,GACrCI,IAAgBD,EAAI,SAAS,KAAK,IAAI,GAAGH,EAAS,eAAeA,EAAS,YAAY,GACtFK,IAAQ;GAAE,OAAOF,EAAI;GAAO,QAAQC;EAAc,GAClDE,IAAgB,SAAS,gBAAgB,aACzCC,IAAiB,SAAS,gBAAgB,cAC1CC,IAAe,KAAK,IAAI,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IC,aAAkB,QAAQ3B,GAAU,SAAS2B,CAAM,KAGvDhC,EAAM;EACR,GACMiC,IAAW,OAAO,iBAAmB,MAAc,KAAA,IAAY,IAAI,eAAeH,CAAM;EAC9F,AAAI5B,KACF+B,GAAU,QAAQ/B,CAAS;EAI7B,IAAMgC,UAAuB;GAC3B,IAAK7B,KAAa4B,GAGlB;MAAS,QAAQ5B,CAAQ;IACzB,KAAK,IAAM8B,KAAS9B,EAAS,UAC3B,EAAS,QAAQ8B,CAAK;GAFC;EAI3B;EACA,EAAe;EACf,IAAMC,IAAY,IAAI,iBAAiBF,CAAc;EAMrD,OALI7B,KACF+B,EAAU,QAAQ/B,GAAU,EAAE,WAAW,GAAK,CAAC,GAEjD,OAAO,iBAAiB,UAAUyB,CAAM,GACxC,OAAO,iBAAiB,UAAUC,GAAQ,EAAI,SACjC;GAKX,AAJA,OAAO,oBAAoB,UAAUD,CAAM,GAC3C,OAAO,oBAAoB,UAAUC,GAAQ,EAAI,GACjDE,GAAU,WAAW,GACrBG,EAAU,WAAW,GACrBR,IAAa;EACf;CACF,GAAG;EAACxB;EAAUD;EAAWwB;EAAQ3B;CAAK,CAAC,GAEnC,CAAC2B,KAAU,OAAO,WAAa,KACjC,OAAO;CAGT,IAAMjB,IACJ,kBAAC,OAAD;EACE,KAAKtB,EAAUM,GAAa2C,CAAQ;EACpC,IAAIvC;EACE;EACN,WAAWT,EAAG,cAAciD,CAAS;EACrC,GAAI7C;EAEH;CACE,CAAA;CAGP,OAAO8C,EAAa7B,GAAO,SAAS,IAAI;AAC1C"}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/group-pKDQtq-9.cjs"),t=require("../Grid/index.cjs");let n=require("react"),r=require("react/jsx-runtime");function i({kind:e,title:t,description:n,children:i,className:a,inputProps:o,inputRef:s}){return(0,r.jsxs)(`label`,{className:[`ds-selection-card`,a].filter(Boolean).join(` `),children:[(0,r.jsx)(`input`,{ref:s,type:e,"data-kind":e,className:`ds-selection-card__control`,...o}),(0,r.jsxs)(`span`,{className:`ds-selection-card__text`,children:[(0,r.jsx)(`span`,{className:`ds-selection-card__title`,children:t}),n&&(0,r.jsx)(`span`,{className:`ds-selection-card__description`,children:n}),i&&(0,r.jsx)(`span`,{className:`ds-selection-card__extra`,children:i})]})]})}var a=(0,n.forwardRef)(function({title:e,description:t,children:n,className:a,...o},s){return(0,r.jsx)(i,{kind:`checkbox`,title:e,description:t,className:a,inputProps:o,inputRef:s,children:n})}),o=(0,n.forwardRef)(function({title:e,description:t,children:n,className:a,...o},s){return(0,r.jsx)(i,{kind:`radio`,title:e,description:t,className:a,inputProps:o,inputRef:s,children:n})});function s({label:n,columns:i=2,gap:a=`md`,children:o,className:s,...c}){return(0,r.jsx)(e.t,{...c,label:n,className:[`ds-selection-card-group`,s].filter(Boolean).join(` `),children:(0,r.jsx)(t.Grid,{columns:i,gap:a,className:`ds-selection-card-group__grid`,children:o})})}exports.CheckboxCard=a,exports.RadioCard=o,exports.SelectionCardGroup=s;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/group-pKDQtq-9.cjs"),t=require("../Grid/index.cjs");let n=require("react"),r=require("react/jsx-runtime");function i({kind:e,title:t,description:n,children:i,className:a,inputProps:o,inputRef:s}){return(0,r.jsxs)(`label`,{className:[`ds-selection-card`,a].filter(Boolean).join(` `),children:[(0,r.jsx)(`input`,{ref:s,type:e,"data-kind":e,className:`ds-selection-card__control`,...o}),(0,r.jsxs)(`span`,{className:`ds-selection-card__text`,children:[(0,r.jsx)(`span`,{className:`ds-selection-card__title`,children:t}),n&&(0,r.jsx)(`span`,{className:`ds-selection-card__description`,children:n}),i&&(0,r.jsx)(`span`,{className:`ds-selection-card__extra`,children:i})]})]})}var a=(0,n.forwardRef)(function({title:e,description:t,children:n,className:a,...o},s){return(0,r.jsx)(i,{kind:`checkbox`,title:e,description:t,className:a,inputProps:o,inputRef:s,children:n})}),o=(0,n.forwardRef)(function({title:e,description:t,children:n,className:a,...o},s){return(0,r.jsx)(i,{kind:`radio`,title:e,description:t,className:a,inputProps:o,inputRef:s,children:n})});function s({label:n,columns:i=2,gap:a=`md`,children:o,className:s,...c}){return(0,r.jsx)(e.t,{...c,label:n,className:[`ds-selection-card-group`,s].filter(Boolean).join(` `),children:(0,r.jsx)(t.Grid,{columns:i,gap:a,className:`ds-selection-card-group__grid ds-field-group-grid`,style:{"--field-group-columns":i},children:o})})}exports.CheckboxCard=a,exports.RadioCard=o,exports.SelectionCardGroup=s;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["forwardRef","FieldGroup","Grid","require_group","require_components_Grid_index","react","react_jsx_runtime","CardBody","className","inputRef","kind","inputProps","title","description","children","CheckboxCard","rest","ref","RadioCard","SelectionCardGroup","fieldProps"],"sources":["../../../src/components/SelectionCard/index.tsx"],"sourcesContent":["import { forwardRef, type InputHTMLAttributes, type ReactNode } from \"react\";\nimport { FieldGroup, type FieldGroupProps } from \"../Field/group\";\nimport { Grid, type GapSize } from \"../Grid\";\nimport \"./style.css\";\n\ninterface SelectionCardBase {\n /** The commitment, in the user's words. */\n title: ReactNode;\n /** One line on what picking this means. Takes nodes, so a chip or a link can sit inline. */\n description?: ReactNode;\n /** Extra content under the description — a price, a sample, a badge. */\n children?: ReactNode;\n}\n\ntype NativeInput = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\" | \"children\" | \"title\"\n>;\n\nfunction CardBody({\n kind,\n title,\n description,\n children,\n className,\n inputProps,\n inputRef,\n}: SelectionCardBase & {\n kind: \"checkbox\" | \"radio\";\n className?: string;\n inputProps: NativeInput;\n inputRef: React.Ref<HTMLInputElement>;\n}) {\n return (\n <label className={[\"ds-selection-card\", className].filter(Boolean).join(\" \")}>\n <input\n ref={inputRef}\n type={kind}\n data-kind={kind}\n className=\"ds-selection-card__control\"\n {...inputProps}\n />\n <span className=\"ds-selection-card__text\">\n <span className=\"ds-selection-card__title\">{title}</span>\n {description && <span className=\"ds-selection-card__description\">{description}</span>}\n {children && <span className=\"ds-selection-card__extra\">{children}</span>}\n </span>\n </label>\n );\n}\n\nexport interface CheckboxCardProps extends SelectionCardBase, NativeInput {}\n\n/**\n * A checkbox with room to explain itself. Same 20px box as the bare control —\n * the card is a bigger target, not a different decision.\n */\nexport const CheckboxCard = forwardRef<HTMLInputElement, CheckboxCardProps>(function CheckboxCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"checkbox\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface RadioCardProps extends SelectionCardBase, NativeInput {}\n\n/** One of a set of mutually exclusive options, each with its own explanation. */\nexport const RadioCard = forwardRef<HTMLInputElement, RadioCardProps>(function RadioCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"radio\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface SelectionCardGroupProps extends FieldGroupProps {\n /** Group label — the question the cards answer. */\n label: string;\n /** Cards per row at full width. Steps down inside a narrow container. */\n columns?: 1 | 2 | 3;\n /** Space between cards in both axes, using Grid's spacing scale. Defaults to `md`. */\n gap?: GapSize;\n children: ReactNode;\n}\n\n/** A grid of selection cards under one legend, spaced by the shared Grid. */\nexport function SelectionCardGroup({\n label,\n columns = 2,\n gap = \"md\",\n children,\n className,\n ...fieldProps\n}: SelectionCardGroupProps) {\n return (\n <FieldGroup\n {...fieldProps}\n label={label}\n className={[\"ds-selection-card-group\", className].filter(Boolean).join(\" \")}\n >\n <Grid\n columns={columns}\n gap={gap}\n className=\"ds-selection-card-group__grid\"\n >\n {children}\n </Grid>\n </FieldGroup>\n );\n}\n"],"mappings":"A,2MAmBA,SAASO,EAAS,CAChB,OACA,QACA,cACA,WACA,YACA,aACA,YAMC,CACD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K,GAAG,EAE1E,UAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,KAAD,CACW,UACJ,MACL,UAAU,gCAET,UACG,CAAA,CACI,CAAA,CAEhB,C"}
1
+ {"version":3,"file":"index.cjs","names":["forwardRef","FieldGroup","Grid","require_group","require_components_Grid_index","react","react_jsx_runtime","CardBody","className","inputRef","kind","inputProps","title","description","children","CheckboxCard","rest","ref","RadioCard","SelectionCardGroup","fieldProps","columns"],"sources":["../../../src/components/SelectionCard/index.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type InputHTMLAttributes, type ReactNode } from \"react\";\nimport { FieldGroup, type FieldGroupProps } from \"../Field/group\";\nimport { Grid, type GapSize } from \"../Grid\";\nimport \"./style.css\";\n\ninterface SelectionCardBase {\n /** The commitment, in the user's words. */\n title: ReactNode;\n /** One line on what picking this means. Takes nodes, so a chip or a link can sit inline. */\n description?: ReactNode;\n /** Extra content under the description — a price, a sample, a badge. */\n children?: ReactNode;\n}\n\ntype NativeInput = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\" | \"children\" | \"title\"\n>;\n\nfunction CardBody({\n kind,\n title,\n description,\n children,\n className,\n inputProps,\n inputRef,\n}: SelectionCardBase & {\n kind: \"checkbox\" | \"radio\";\n className?: string;\n inputProps: NativeInput;\n inputRef: React.Ref<HTMLInputElement>;\n}) {\n return (\n <label className={[\"ds-selection-card\", className].filter(Boolean).join(\" \")}>\n <input\n ref={inputRef}\n type={kind}\n data-kind={kind}\n className=\"ds-selection-card__control\"\n {...inputProps}\n />\n <span className=\"ds-selection-card__text\">\n <span className=\"ds-selection-card__title\">{title}</span>\n {description && <span className=\"ds-selection-card__description\">{description}</span>}\n {children && <span className=\"ds-selection-card__extra\">{children}</span>}\n </span>\n </label>\n );\n}\n\nexport interface CheckboxCardProps extends SelectionCardBase, NativeInput {}\n\n/**\n * A checkbox with room to explain itself. Same 20px box as the bare control —\n * the card is a bigger target, not a different decision.\n */\nexport const CheckboxCard = forwardRef<HTMLInputElement, CheckboxCardProps>(function CheckboxCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"checkbox\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface RadioCardProps extends SelectionCardBase, NativeInput {}\n\n/** One of a set of mutually exclusive options, each with its own explanation. */\nexport const RadioCard = forwardRef<HTMLInputElement, RadioCardProps>(function RadioCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"radio\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface SelectionCardGroupProps extends FieldGroupProps {\n /** Group label — the question the cards answer. */\n label: string;\n /** Cards per row at full width. Steps down inside a narrow container. */\n columns?: 1 | 2 | 3;\n /** Space between cards in both axes, using Grid's spacing scale. Defaults to `md`. */\n gap?: GapSize;\n children: ReactNode;\n}\n\n/** A grid of selection cards under one legend, spaced by the shared Grid. */\nexport function SelectionCardGroup({\n label,\n columns = 2,\n gap = \"md\",\n children,\n className,\n ...fieldProps\n}: SelectionCardGroupProps) {\n return (\n <FieldGroup\n {...fieldProps}\n label={label}\n className={[\"ds-selection-card-group\", className].filter(Boolean).join(\" \")}\n >\n <Grid\n columns={columns}\n gap={gap}\n className=\"ds-selection-card-group__grid ds-field-group-grid\"\n style={{ \"--field-group-columns\": columns } as CSSProperties}\n >\n {children}\n </Grid>\n </FieldGroup>\n );\n}\n"],"mappings":"A,2MAmBA,SAASO,EAAS,CAChB,OACA,QACA,cACA,WACA,YACA,aACA,YAMC,CACD,OACE,EAAAD,EAAA,KAAA,CAAC,QAAD,CAAO,UAAW,CAAC,oBAAqBE,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAA3E,SAAA,EACE,EAAAF,EAAA,IAAA,CAAC,QAAD,CACE,IAAKG,EACL,KAAMC,EACN,YAAWA,E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":"","sources":["../../../src/components/SelectionCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,aAAa,CAAC;AAErB,UAAU,iBAAiB;IACzB,2CAA2C;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CACvC,CAAC;AAkCF,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,EAAE,WAAW;CAAG;AAE5E;;;GAGG;AACH,eAAO,MAAM,YAAY,gHAgBvB,CAAC;AAEH,MAAM,WAAW,cAAe,SAAQ,iBAAiB,EAAE,WAAW;CAAG;AAEzE,iFAAiF;AACjF,eAAO,MAAM,SAAS,6GAgBpB,CAAC;AAEH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,sFAAsF;IACtF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,OAAW,EACX,GAAU,EACV,QAAQ,EACR,SAAS,EACT,GAAG,UAAU,EACd,EAAE,uBAAuB,+BAgBzB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/S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ard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,aAAa,CAAC;AAErB,UAAU,iBAAiB;IACzB,2CAA2C;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CACvC,CAAC;AAkCF,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,EAAE,WAAW;CAAG;AAE5E;;;GAGG;AACH,eAAO,MAAM,YAAY,gHAgBvB,CAAC;AAEH,MAAM,WAAW,cAAe,SAAQ,iBAAiB,EAAE,WAAW;CAAG;AAEzE,iFAAiF;AACjF,eAAO,MAAM,SAAS,6GAgBpB,CAAC;AAEH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,sFAAsF;IACtF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,OAAW,EACX,GAAU,EACV,QAAQ,EACR,SAAS,EACT,GAAG,UAAU,EACd,EAAE,uBAAuB,+BAgBzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionCard/index.tsx"],"names":[],"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
  columns: i,
62
62
  gap: a,
63
- className: "ds-selection-card-group__grid",
63
+ className: "ds-selection-card-group__grid ds-field-group-grid",
64
+ style: { "--field-group-columns": i },
64
65
  children: o
65
66
  })
66
67
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["FieldGroup","CardBody","className","inputRef","kind","inputProps","title","description","children","CheckboxCard","forwardRef","rest","ref","RadioCard","SelectionCardGroup","fieldProps","Grid"],"sources":["../../../src/components/SelectionCard/index.tsx"],"sourcesContent":["import { forwardRef, type InputHTMLAttributes, type ReactNode } from \"react\";\nimport { FieldGroup, type FieldGroupProps } from \"../Field/group\";\nimport { Grid, type GapSize } from \"../Grid\";\nimport \"./style.css\";\n\ninterface SelectionCardBase {\n /** The commitment, in the user's words. */\n title: ReactNode;\n /** One line on what picking this means. Takes nodes, so a chip or a link can sit inline. */\n description?: ReactNode;\n /** Extra content under the description — a price, a sample, a badge. */\n children?: ReactNode;\n}\n\ntype NativeInput = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\" | \"children\" | \"title\"\n>;\n\nfunction CardBody({\n kind,\n title,\n description,\n children,\n className,\n inputProps,\n inputRef,\n}: SelectionCardBase & {\n kind: \"checkbox\" | \"radio\";\n className?: string;\n inputProps: NativeInput;\n inputRef: React.Ref<HTMLInputElement>;\n}) {\n return (\n <label className={[\"ds-selection-card\", className].filter(Boolean).join(\" \")}>\n <input\n ref={inputRef}\n type={kind}\n data-kind={kind}\n className=\"ds-selection-card__control\"\n {...inputProps}\n />\n <span className=\"ds-selection-card__text\">\n <span className=\"ds-selection-card__title\">{title}</span>\n {description && <span className=\"ds-selection-card__description\">{description}</span>}\n {children && <span className=\"ds-selection-card__extra\">{children}</span>}\n </span>\n </label>\n );\n}\n\nexport interface CheckboxCardProps extends SelectionCardBase, NativeInput {}\n\n/**\n * A checkbox with room to explain itself. Same 20px box as the bare control —\n * the card is a bigger target, not a different decision.\n */\nexport const CheckboxCard = forwardRef<HTMLInputElement, CheckboxCardProps>(function CheckboxCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"checkbox\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface RadioCardProps extends SelectionCardBase, NativeInput {}\n\n/** One of a set of mutually exclusive options, each with its own explanation. */\nexport const RadioCard = forwardRef<HTMLInputElement, RadioCardProps>(function RadioCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"radio\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface SelectionCardGroupProps extends FieldGroupProps {\n /** Group label — the question the cards answer. */\n label: string;\n /** Cards per row at full width. Steps down inside a narrow container. */\n columns?: 1 | 2 | 3;\n /** Space between cards in both axes, using Grid's spacing scale. Defaults to `md`. */\n gap?: GapSize;\n children: ReactNode;\n}\n\n/** A grid of selection cards under one legend, spaced by the shared Grid. */\nexport function SelectionCardGroup({\n label,\n columns = 2,\n gap = \"md\",\n children,\n className,\n ...fieldProps\n}: SelectionCardGroupProps) {\n return (\n <FieldGroup\n {...fieldProps}\n label={label}\n className={[\"ds-selection-card-group\", className].filter(Boolean).join(\" \")}\n >\n <Grid\n columns={columns}\n gap={gap}\n className=\"ds-selection-card-group__grid\"\n >\n {children}\n </Grid>\n </FieldGroup>\n );\n}\n"],"mappings":";;;;;AAmBA,SAASC,EAAS,EAChB,SACA,UACA,gBACA,aACA,cACA,eACA,eAMC;CACD,OACE,kBAAC,SAAD;EAAO,WAAW,CAAC,qBAAqBC,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAA3E,UAAA,CACE,kBAAC,SAAD;GACE,KAAKC;GACL,MAAMC;GACN,aAAWA;GACX,WAAU;GACV,GAAIC;EACL,CAAA,GACD,kBAAC,QAAD;GAAM,WAAU;GAAhB,UAAA;IACE,kBAAC,QAAD;KAAM,WAAU;KAA4B,UAAAC;IAAY,CAAA;IACvDC,KAAe,kBAAC,QAAD;KAAM,WAAU;KAAkC,UAAAA;IAAkB,CAAA;IACnFC,KAAY,kBAAC,QAAD;KAAM,WAAU;KAA4B;IAAe,CAAA;GACpE;EACD,CAAA,CAAA;;AAEX;AAQA,IAAaC,IAAeC,EAAgD,SAC1E,EAAE,UAAO,gBAAa,aAAU,cAAW,GAAGC,KAC9C,GACA;CACA,OACE,kBAACV,GAAD;EACE,MAAK;EACE;EACM;EACF;EACX,YAAYU;EACZ,UAAUC;EAET;CACO,CAAA;AAEd,CAAC,GAKYC,IAAYH,EAA6C,SACpE,EAAE,UAAO,gBAAa,aAAU,cAAW,GAAGC,KAC9C,GACA;CACA,OACE,kBAACV,GAAD;EACE,MAAK;EACE;EACM;EACF;EACX,YAAYU;EACZ,UAAUC;EAET;CACO,CAAA;AAEd,CAAC;AAaD,SAAgBE,EAAmB,EACjC,UACA,aAAU,GACV,SAAM,MACN,aACA,cACA,GAAGC,KACuB;CAC1B,OACE,kBAACf,GAAD;EACE,GAAIe;EACG;EACP,WAAW,CAAC,2BAA2Bb,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAE1E,UAAA,kBAACc,GAAD;GACW;GACJ;GACL,WAAU;GAET;EACG,CAAA;CACI,CAAA;AAEhB"}
1
+ {"version":3,"file":"index.js","names":["FieldGroup","CardBody","className","inputRef","kind","inputProps","title","description","children","CheckboxCard","forwardRef","rest","ref","RadioCard","SelectionCardGroup","fieldProps","Grid","columns"],"sources":["../../../src/components/SelectionCard/index.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type InputHTMLAttributes, type ReactNode } from \"react\";\nimport { FieldGroup, type FieldGroupProps } from \"../Field/group\";\nimport { Grid, type GapSize } from \"../Grid\";\nimport \"./style.css\";\n\ninterface SelectionCardBase {\n /** The commitment, in the user's words. */\n title: ReactNode;\n /** One line on what picking this means. Takes nodes, so a chip or a link can sit inline. */\n description?: ReactNode;\n /** Extra content under the description — a price, a sample, a badge. */\n children?: ReactNode;\n}\n\ntype NativeInput = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\" | \"children\" | \"title\"\n>;\n\nfunction CardBody({\n kind,\n title,\n description,\n children,\n className,\n inputProps,\n inputRef,\n}: SelectionCardBase & {\n kind: \"checkbox\" | \"radio\";\n className?: string;\n inputProps: NativeInput;\n inputRef: React.Ref<HTMLInputElement>;\n}) {\n return (\n <label className={[\"ds-selection-card\", className].filter(Boolean).join(\" \")}>\n <input\n ref={inputRef}\n type={kind}\n data-kind={kind}\n className=\"ds-selection-card__control\"\n {...inputProps}\n />\n <span className=\"ds-selection-card__text\">\n <span className=\"ds-selection-card__title\">{title}</span>\n {description && <span className=\"ds-selection-card__description\">{description}</span>}\n {children && <span className=\"ds-selection-card__extra\">{children}</span>}\n </span>\n </label>\n );\n}\n\nexport interface CheckboxCardProps extends SelectionCardBase, NativeInput {}\n\n/**\n * A checkbox with room to explain itself. Same 20px box as the bare control —\n * the card is a bigger target, not a different decision.\n */\nexport const CheckboxCard = forwardRef<HTMLInputElement, CheckboxCardProps>(function CheckboxCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"checkbox\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface RadioCardProps extends SelectionCardBase, NativeInput {}\n\n/** One of a set of mutually exclusive options, each with its own explanation. */\nexport const RadioCard = forwardRef<HTMLInputElement, RadioCardProps>(function RadioCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"radio\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface SelectionCardGroupProps extends FieldGroupProps {\n /** Group label — the question the cards answer. */\n label: string;\n /** Cards per row at full width. Steps down inside a narrow container. */\n columns?: 1 | 2 | 3;\n /** Space between cards in both axes, using Grid's spacing scale. Defaults to `md`. */\n gap?: GapSize;\n children: ReactNode;\n}\n\n/** A grid of selection cards under one legend, spaced by the shared Grid. */\nexport function SelectionCardGroup({\n label,\n columns = 2,\n gap = \"md\",\n children,\n className,\n ...fieldProps\n}: SelectionCardGroupProps) {\n return (\n <FieldGroup\n {...fieldProps}\n label={label}\n className={[\"ds-selection-card-group\", className].filter(Boolean).join(\" \")}\n >\n <Grid\n columns={columns}\n gap={gap}\n className=\"ds-selection-card-group__grid ds-field-group-grid\"\n style={{ \"--field-group-columns\": columns } as CSSProperties}\n >\n {children}\n </Grid>\n </FieldGroup>\n );\n}\n"],"mappings":";;;;;AAmBA,SAASC,EAAS,EAChB,SACA,UACA,gBACA,aACA,cACA,eACA,eAMC;CACD,OACE,kBAAC,SAAD;EAAO,WAAW,CAAC,qBAAqBC,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAA3E,UAAA,CACE,kBAAC,SAAD;GACE,KAAKC;GACL,MAAMC;GACN,aAAWA;GACX,WAAU;GACV,GAAIC;EACL,CAAA,GACD,kBAAC,QAAD;GAAM,WAAU;GAAhB,UAAA;IACE,kBAAC,QAAD;KAAM,WAAU;KAA4B,UAAAC;IAAY,CAAA;IACvDC,KAAe,kBAAC,QAAD;KAAM,WAAU;KAAkC,UAAAA;IAAkB,CAAA;IACnFC,KAAY,kBAAC,QAAD;KAAM,WAAU;KAA4B;IAAe,CAAA;GACpE;EACD,CAAA,CAAA;;AAEX;AAQA,IAAaC,IAAeC,EAAgD,SAC1E,EAAE,UAAO,gBAAa,aAAU,cAAW,GAAGC,KAC9C,GACA;CACA,OACE,kBAACV,GAAD;EACE,MAAK;EACE;EACM;EACF;EACX,YAAYU;EACZ,UAAUC;EAET;CACO,CAAA;AAEd,CAAC,GAKYC,IAAYH,EAA6C,SACpE,EAAE,UAAO,gBAAa,aAAU,cAAW,GAAGC,KAC9C,GACA;CACA,OACE,kBAACV,GAAD;EACE,MAAK;EACE;EACM;EACF;EACX,YAAYU;EACZ,UAAUC;EAET;CACO,CAAA;AAEd,CAAC;AAaD,SAAgBE,EAAmB,EACjC,UACA,aAAU,GACV,SAAM,MACN,aACA,cACA,GAAGC,KACuB;CAC1B,OACE,kBAACf,GAAD;EACE,GAAIe;EACG;EACP,WAAW,CAAC,2BAA2Bb,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAE1E,UAAA,kBAACc,GAAD;GACW;GACJ;GACL,WAAU;GACV,OAAO,EAAE,yBAAyBC,EAAQ;GAEzC;EACG,CAAA;CACI,CAAA;AAEhB"}
@@ -1,2 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/binding-tMjrUzkU.cjs");let t=require("react"),n=require("react/jsx-runtime");function r(...e){return e.filter(Boolean).join(` `)}function i(e,t,n){return n===t?0:(e-t)/(n-t)*100}var a=(0,t.forwardRef)(function({value:e,defaultValue:a=0,onValueChange:o,min:s=0,max:c=100,step:l=1,hasValueLabel:u=!0,prefix:d,suffix:f,isDisabled:p=!1,className:m,disabled:h,...g},_){let[v,y]=(0,t.useState)(a),b=e??v;return(0,n.jsxs)(`div`,{className:r(`ds-slider`,m),"data-disabled":p||h||void 0,children:[(0,n.jsxs)(`div`,{className:`ds-slider__track`,"data-thumbs":`1`,"data-disabled":p||h||void 0,"data-at-min":b<=s||void 0,"data-at-max":b>=c||void 0,style:{"--slider-from":`0%`,"--slider-to":`${i(b,s,c)}%`},children:[(0,n.jsx)(`span`,{className:`ds-slider__rail`}),(0,n.jsx)(`span`,{className:`ds-slider__fill`}),(0,n.jsx)(`input`,{ref:_,type:`range`,className:`ds-slider__input`,min:s,max:c,step:l,value:b,disabled:p||h,onChange:t=>{let n=Number(t.target.value);e===void 0&&y(n),o?.(n)},...g})]}),u&&(0,n.jsxs)(`output`,{className:`ds-slider__value`,children:[d,b,f]})]})});function o({value:a,defaultValue:o={min:20,max:80},onValueChange:s,min:c=0,max:l=100,step:u=1,hasValueLabel:d=!0,prefix:f,suffix:p,isDisabled:m=!1,minLabel:h=`Minimum`,maxLabel:g=`Maximum`,className:_,...v}){let[y,b]=(0,t.useState)(o),x=a??y,S=e=>{a===void 0&&b(e),s?.(e)},{attributes:C}=e.r(v);return(0,n.jsxs)(`div`,{...C,className:r(`ds-slider`,_),"data-disabled":m||void 0,children:[(0,n.jsxs)(`div`,{className:`ds-slider__track`,"data-thumbs":`2`,"data-disabled":m||void 0,"data-at-min":x.min<=c||void 0,"data-at-max":x.max>=l||void 0,style:{"--slider-from":`${i(x.min,c,l)}%`,"--slider-to":`${i(x.max,c,l)}%`},children:[(0,n.jsx)(`span`,{className:`ds-slider__rail`}),(0,n.jsx)(`span`,{className:`ds-slider__fill`}),(0,n.jsx)(`input`,{type:`range`,"aria-invalid":v[`aria-invalid`],"aria-label":h,className:`ds-slider__input`,min:c,max:l,step:u,value:x.min,disabled:m,onChange:e=>S({...x,min:Math.min(Number(e.target.value),x.max-u)})}),(0,n.jsx)(`input`,{type:`range`,"aria-invalid":v[`aria-invalid`],"aria-label":g,className:`ds-slider__input`,min:c,max:l,step:u,value:x.max,disabled:m,onChange:e=>S({...x,max:Math.max(Number(e.target.value),x.min+u)})})]}),d&&(0,n.jsxs)(`output`,{className:`ds-slider__value`,children:[f,x.min,p,` – `,f,x.max,p]})]})}exports.RangeSlider=o,exports.Slider=a;
2
- //# sourceMappingURL=index.cjs.map
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Slider-k8weRl34.cjs");exports.RangeSlider=e.t,exports.Slider=e.n;
@@ -4,6 +4,11 @@ export interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
4
4
  value?: number;
5
5
  defaultValue?: number;
6
6
  onValueChange?: (value: number) => void;
7
+ /**
8
+ * The shown value after a click or step key on the thumb, even when it did not
9
+ * change — for example, to accept a fallback position.
10
+ */
11
+ onValueCommit?: (value: number) => void;
7
12
  min?: number;
8
13
  max?: number;
9
14
  step?: number;
@@ -13,6 +18,8 @@ export interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
13
18
  prefix?: string;
14
19
  /** Appended to the printed value — "%", "px", "s". */
15
20
  suffix?: string;
21
+ /** Printed and announced (`aria-valuetext`) instead of the number — "Not set", "Medium". */
22
+ valueText?: string;
16
23
  isDisabled?: boolean;
17
24
  }
18
25
  /** One value on a continuous scale. The filled part of the track is the value. */
@@ -25,6 +32,8 @@ export interface RangeSliderProps extends FieldBinding {
25
32
  value?: RangeSliderValue;
26
33
  defaultValue?: RangeSliderValue;
27
34
  onValueChange?: (value: RangeSliderValue) => void;
35
+ /** The shown range after a click or step key on either thumb, even when it did not change. */
36
+ onValueCommit?: (value: RangeSliderValue) => void;
28
37
  min?: number;
29
38
  max?: number;
30
39
  step?: number;
@@ -32,6 +41,10 @@ export interface RangeSliderProps extends FieldBinding {
32
41
  /** Prepended to both printed values. */
33
42
  prefix?: string;
34
43
  suffix?: string;
44
+ /** Printed instead of both numbers and announced (`aria-valuetext`) on each thumb. */
45
+ valueText?: string;
46
+ /** Paint the span between the thumbs. Defaults to true; false reads as no range chosen. */
47
+ hasFill?: boolean;
35
48
  isDisabled?: boolean;
36
49
  minLabel?: string;
37
50
  maxLabel?: string;
@@ -41,5 +54,5 @@ export interface RangeSliderProps extends FieldBinding {
41
54
  * A span on a scale — two thumbs on one track. The thumbs cannot cross; each
42
55
  * one stops a `step` short of the other.
43
56
  */
44
- export declare function RangeSlider({ value, defaultValue, onValueChange, min, max, step, hasValueLabel, prefix, suffix, isDisabled, minLabel, maxLabel, className, ...binding }: RangeSliderProps): import("react").JSX.Element;
57
+ export declare function RangeSlider({ value, defaultValue, onValueChange, onValueCommit, min, max, step, hasValueLabel, prefix, suffix, valueText, hasFill, isDisabled, minLabel, maxLabel, className, ...binding }: RangeSliderProps): import("react").JSX.Element;
45
58
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","s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;IACxB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,YAAmC,EACnC,aAAa,EACb,GAAO,EACP,GAAS,EACT,IAAQ,EACR,aAAoB,EACpB,MAAM,EACN,MAAM,EACN,UAAkB,EAClB,QAAoB,EACpB,QAAoB,EACpB,SAAS,EACT,GAAG,OAAO,EACX,EAAE,gBAAgB,+BAuElB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,aAAa,CAAC;AA+CrB,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,CAC1D;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sDAAsD;IACtD,MA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ACN,SAAS,EACT,OAAc,EACd,UAAkB,EAClB,QAAoB,EACpB,QAAoB,EACpB,SAAS,EACT,GAAG,OAAO,EACX,EAAE,gBAAgB,+BAgFlB"}
@@ -4,6 +4,11 @@ export interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
4
4
  value?: number;
5
5
  defaultValue?: number;
6
6
  onValueChange?: (value: number) => void;
7
+ /**
8
+ * The shown value after a click or step key on the thumb, even when it did not
9
+ * change — for example, to accept a fallback position.
10
+ */
11
+ onValueCommit?: (value: number) => void;
7
12
  min?: number;
8
13
  max?: number;
9
14
  step?: number;
@@ -13,6 +18,8 @@ export interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
13
18
  prefix?: string;
14
19
  /** Appended to the printed value — "%", "px", "s". */
15
20
  suffix?: string;
21
+ /** Printed and announced (`aria-valuetext`) instead of the number — "Not set", "Medium". */
22
+ valueText?: string;
16
23
  isDisabled?: boolean;
17
24
  }
18
25
  /** One value on a continuous scale. The filled part of the track is the value. */
@@ -25,6 +32,8 @@ export interface RangeSliderProps extends FieldBinding {
25
32
  value?: RangeSliderValue;
26
33
  defaultValue?: RangeSliderValue;
27
34
  onValueChange?: (value: RangeSliderValue) => void;
35
+ /** The shown range after a click or step key on either thumb, even when it did not change. */
36
+ onValueCommit?: (value: RangeSliderValue) => void;
28
37
  min?: number;
29
38
  max?: number;
30
39
  step?: number;
@@ -32,6 +41,10 @@ export interface RangeSliderProps extends FieldBinding {
32
41
  /** Prepended to both printed values. */
33
42
  prefix?: string;
34
43
  suffix?: string;
44
+ /** Printed instead of both numbers and announced (`aria-valuetext`) on each thumb. */
45
+ valueText?: string;
46
+ /** Paint the span between the thumbs. Defaults to true; false reads as no range chosen. */
47
+ hasFill?: boolean;
35
48
  isDisabled?: boolean;
36
49
  minLabel?: string;
37
50
  maxLabel?: string;
@@ -41,5 +54,5 @@ export interface RangeSliderProps extends FieldBinding {
41
54
  * A span on a scale — two thumbs on one track. The thumbs cannot cross; each
42
55
  * one stops a `step` short of the other.
43
56
  */
44
- export declare function RangeSlider({ value, defaultValue, onValueChange, min, max, step, hasValueLabel, prefix, suffix, isDisabled, minLabel, maxLabel, className, ...binding }: RangeSliderProps): import("react").JSX.Element;
57
+ export declare function RangeSlider({ value, defaultValue, onValueChange, onValueCommit, min, max, step, hasValueLabel, prefix, suffix, valueText, hasFill, isDisabled, minLabel, maxLabel, className, ...binding }: RangeSliderProps): import("react").JSX.Element;
45
58
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,aAAa,CAAC;AAarB,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,CAC1D;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,kFAAkF;AAClF,eAAO,MAAM,MAAM,0GAmEjB,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ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IAC3F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,YAAmC,EACnC,aAAa,EACb,aAAa,EACb,GAAwB,EACxB,GAAwB,EACxB,IAA0B,EAC1B,aAAoB,EACpB,MAAM,EACN,MAAM,EACN,SAAS,EACT,OAAc,EACd,UAAkB,EAClB,QAAoB,EACpB,QAAoB,EACpB,SAAS,EACT,GAAG,OAAO,EACX,EAAE,gBAAgB,+BAgFlB"}
@@ -1,127 +1 @@
1
- import { r as e } from "../../chunks/binding-Bshy43sG.js";
2
- import { forwardRef as t, useState as n } from "react";
3
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
- //#region src/components/Slider/index.tsx
5
- function a(...e) {
6
- return e.filter(Boolean).join(" ");
7
- }
8
- function o(e, t, n) {
9
- return n === t ? 0 : (e - t) / (n - t) * 100;
10
- }
11
- var s = t(function({ value: e, defaultValue: t = 0, onValueChange: s, min: c = 0, max: l = 100, step: u = 1, hasValueLabel: d = !0, prefix: f, suffix: p, isDisabled: m = !1, className: h, disabled: g, ..._ }, v) {
12
- let [y, b] = n(t), x = e ?? y;
13
- return /* @__PURE__ */ i("div", {
14
- className: a("ds-slider", h),
15
- "data-disabled": m || g || void 0,
16
- children: [/* @__PURE__ */ i("div", {
17
- className: "ds-slider__track",
18
- "data-thumbs": "1",
19
- "data-disabled": m || g || void 0,
20
- "data-at-min": x <= c || void 0,
21
- "data-at-max": x >= l || void 0,
22
- style: {
23
- "--slider-from": "0%",
24
- "--slider-to": `${o(x, c, l)}%`
25
- },
26
- children: [
27
- /* @__PURE__ */ r("span", { className: "ds-slider__rail" }),
28
- /* @__PURE__ */ r("span", { className: "ds-slider__fill" }),
29
- /* @__PURE__ */ r("input", {
30
- ref: v,
31
- type: "range",
32
- className: "ds-slider__input",
33
- min: c,
34
- max: l,
35
- step: u,
36
- value: x,
37
- disabled: m || g,
38
- onChange: (t) => {
39
- let n = Number(t.target.value);
40
- e === void 0 && b(n), s?.(n);
41
- },
42
- ..._
43
- })
44
- ]
45
- }), d && /* @__PURE__ */ i("output", {
46
- className: "ds-slider__value",
47
- children: [
48
- f,
49
- x,
50
- p
51
- ]
52
- })]
53
- });
54
- });
55
- function c({ value: t, defaultValue: s = {
56
- min: 20,
57
- max: 80
58
- }, onValueChange: c, min: l = 0, max: u = 100, step: d = 1, hasValueLabel: f = !0, prefix: p, suffix: m, isDisabled: h = !1, minLabel: g = "Minimum", maxLabel: _ = "Maximum", className: v, ...y }) {
59
- let [b, x] = n(s), S = t ?? b, C = (e) => {
60
- t === void 0 && x(e), c?.(e);
61
- }, { attributes: w } = e(y);
62
- return /* @__PURE__ */ i("div", {
63
- ...w,
64
- className: a("ds-slider", v),
65
- "data-disabled": h || void 0,
66
- children: [/* @__PURE__ */ i("div", {
67
- className: "ds-slider__track",
68
- "data-thumbs": "2",
69
- "data-disabled": h || void 0,
70
- "data-at-min": S.min <= l || void 0,
71
- "data-at-max": S.max >= u || void 0,
72
- style: {
73
- "--slider-from": `${o(S.min, l, u)}%`,
74
- "--slider-to": `${o(S.max, l, u)}%`
75
- },
76
- children: [
77
- /* @__PURE__ */ r("span", { className: "ds-slider__rail" }),
78
- /* @__PURE__ */ r("span", { className: "ds-slider__fill" }),
79
- /* @__PURE__ */ r("input", {
80
- type: "range",
81
- "aria-invalid": y["aria-invalid"],
82
- "aria-label": g,
83
- className: "ds-slider__input",
84
- min: l,
85
- max: u,
86
- step: d,
87
- value: S.min,
88
- disabled: h,
89
- onChange: (e) => C({
90
- ...S,
91
- min: Math.min(Number(e.target.value), S.max - d)
92
- })
93
- }),
94
- /* @__PURE__ */ r("input", {
95
- type: "range",
96
- "aria-invalid": y["aria-invalid"],
97
- "aria-label": _,
98
- className: "ds-slider__input",
99
- min: l,
100
- max: u,
101
- step: d,
102
- value: S.max,
103
- disabled: h,
104
- onChange: (e) => C({
105
- ...S,
106
- max: Math.max(Number(e.target.value), S.min + d)
107
- })
108
- })
109
- ]
110
- }), f && /* @__PURE__ */ i("output", {
111
- className: "ds-slider__value",
112
- children: [
113
- p,
114
- S.min,
115
- m,
116
- " – ",
117
- p,
118
- S.max,
119
- m
120
- ]
121
- })]
122
- });
123
- }
124
- //#endregion
125
- export { c as RangeSlider, s as Slider };
126
-
127
- //# sourceMappingURL=index.js.map
1
+ export { t as RangeSlider, n as Slider } from "../../chunks/Slider-vdMFLX-H.js";
@@ -0,0 +1,13 @@
1
+ /** A slider's numeric scale. Pure, so validation can share it without the UI. */
2
+ export interface SliderScale {
3
+ min: number;
4
+ max: number;
5
+ step: number;
6
+ }
7
+ /** The one copy of the scale a slider uses when min, max, or step is left out. */
8
+ export declare const sliderDefaults: SliderScale;
9
+ export declare function sliderScale({ min, max, step, }?: Partial<SliderScale>): SliderScale;
10
+ export declare function clampToScale(value: number, { min, max }: SliderScale): number;
11
+ /** `a + b` at the operands' decimal precision: 0.3 + -0.1 is 0.2, not 0.19999999999999998. */
12
+ export declare function preciseSum(a: number, b: number): number;
13
+ //# sourceMappingURL=scale.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale.d.cts","sourceRoot":"","sources":["../../../src/components/Slider/scale.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,kFAAkF;AAClF,eAAO,MAAM,cAAc,EAAE,WAA2C,CAAC;AAEzE,wBAAgB,WAAW,CAAC,EAC1B,GAAwB,EACxB,GAAwB,EACxB,IAA0B,GAC3B,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,CAEzC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,WAAW,UAEpE;AAQD,8FAA8F;AAC9F,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAE9C"}
@@ -0,0 +1,13 @@
1
+ /** A slider's numeric scale. Pure, so validation can share it without the UI. */
2
+ export interface SliderScale {
3
+ min: number;
4
+ max: number;
5
+ step: number;
6
+ }
7
+ /** The one copy of the scale a slider uses when min, max, or step is left out. */
8
+ export declare const sliderDefaults: SliderScale;
9
+ export declare function sliderScale({ min, max, step, }?: Partial<SliderScale>): SliderScale;
10
+ export declare function clampToScale(value: number, { min, max }: SliderScale): number;
11
+ /** `a + b` at the operands' decimal precision: 0.3 + -0.1 is 0.2, not 0.19999999999999998. */
12
+ export declare function preciseSum(a: number, b: number): number;
13
+ //# sourceMappingURL=scale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/scale.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,kFAAkF;AAClF,eAAO,MAAM,cAAc,EAAE,WAA2C,CAAC;AAEzE,wBAAgB,WAAW,CAAC,EAC1B,GAAwB,EACxB,GAAwB,EACxB,IAA0B,GAC3B,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,CAEzC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,WAAW,UAEpE;AAQD,8FAA8F;AAC9F,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAE9C"}
@@ -0,0 +1,9 @@
1
+ @layer reset {
2
+ hr {
3
+ block-size: 0;
4
+ margin-block: var(--space-6);
5
+ margin-inline: 0;
6
+ border: 0;
7
+ border-block-start: var(--rule-width) solid var(--rule-color);
8
+ }
9
+ }
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunks/ColourField-Dc9533G6.cjs"),t=require("./chunks/Icon-BBoWP_Y6.cjs"),n=require("./components/Button/index.cjs"),r=require("./components/Drawer/index.cjs"),i=require("./components/SideNav/index.cjs"),a=require("./components/TopNav/index.cjs"),o=require("./components/AppShell/index.cjs"),s=require("./components/ButtonGroup/index.cjs"),c=require("./components/Badge/index.cjs"),l=require("./components/Field/index.cjs"),u=require("./components/Modal/index.cjs"),d=require("./components/TextField/index.cjs"),f=require("./chunks/RichTextEditor-C7nMfDmE.cjs"),p=require("./components/FieldAffix/index.cjs"),m=require("./components/SearchField/index.cjs"),h=require("./components/SortableList/index.cjs"),g=require("./components/EntryPicker/index.cjs"),_=require("./components/NumberField/index.cjs"),v=require("./components/Popover/index.cjs"),y=require("./components/Select/index.cjs"),b=require("./components/Switch/index.cjs"),x=require("./chunks/FormEditor-PVkvKep1.cjs"),S=require("./chunks/Board-BaQ04nWg.cjs"),C=require("./components/Avatar/index.cjs"),w=require("./components/Grid/index.cjs"),T=require("./components/Choice/index.cjs"),E=require("./components/Table/index.cjs"),D=require("./components/Menu/index.cjs"),O=require("./components/Toast/index.cjs"),k=require("./components/Skeleton/index.cjs"),A=require("./components/SubNav/index.cjs"),j=require("./components/SelectionCard/index.cjs"),M=require("./components/Stepper/index.cjs"),N=require("./components/AssetCard/index.cjs"),P=require("./components/AssetGrid/index.cjs"),F=require("./components/Slider/index.cjs"),I=require("./components/ImageCropper/index.cjs"),L=require("./components/Container/index.cjs"),R=require("./components/DatePicker/index.cjs"),z=require("./components/TagsInput/index.cjs"),B=require("./components/Time/index.cjs"),V=require("./components/Pagination/index.cjs"),H=require("./components/EditLayout/index.cjs");exports.AppShell=o.AppShell,exports.AssetCard=N.AssetCard,exports.AssetTile=N.AssetCard,exports.AssetCardSkeleton=N.AssetCardSkeleton,exports.AssetTileSkeleton=N.AssetCardSkeleton,exports.AssetGrid=P.AssetGrid,exports.AssetGridEmpty=P.AssetGridEmpty,exports.Avatar=C.Avatar,exports.AvatarGroup=C.AvatarGroup,exports.Badge=c.Badge,exports.Board=S.t,exports.BoardCard=S.n,exports.BoardColumn=S.r,exports.Button=n.Button,exports.ButtonGroup=s.ButtonGroup,exports.Calendar=R.Calendar,exports.Checkbox=T.Checkbox,exports.CheckboxCard=j.CheckboxCard,exports.ChoiceGroup=T.ChoiceGroup,exports.ColourField=e.t,exports.ColourPanel=e.n,exports.Container=L.Container,exports.DateField=R.DateField,exports.DateRangeField=R.DateRangeField,exports.Drawer=r.Drawer,exports.EditLayout=H.EditLayout,exports.EntryPicker=g.EntryPicker,exports.Field=l.Field,exports.FieldAffix=p.FieldAffix,exports.FormEditor=x.t,exports.Grid=w.Grid,exports.GridItem=w.GridItem,exports.Icon=t.t,exports.ImageCropper=I.ImageCropper,exports.Menu=D.Menu,exports.MenuItem=D.MenuItem,exports.MenuLabel=D.MenuLabel,exports.MenuSeparator=D.MenuSeparator,exports.Modal=u.Modal,exports.NumberField=_.NumberField,exports.NumberRangeField=_.NumberRangeField,exports.Pagination=V.Pagination,exports.Popover=v.Popover,exports.Radio=T.Radio,exports.RadioCard=j.RadioCard,exports.RangeSlider=F.RangeSlider,exports.RichTextEditor=f.t,exports.SearchField=m.SearchField,exports.Select=y.Select,exports.SelectionCardGroup=j.SelectionCardGroup,exports.SideNav=i.SideNav,exports.SideNavFooter=i.SideNavFooter,exports.SideNavHeader=i.SideNavHeader,exports.SideNavItem=i.SideNavItem,exports.SideNavSection=i.SideNavSection,exports.Skeleton=k.Skeleton,exports.SkeletonText=k.SkeletonText,exports.Slider=F.Slider,exports.SortableList=h.SortableList,exports.SortableListItem=h.SortableListItem,exports.Stack=w.Stack,exports.Stepper=M.Stepper,exports.SubNav=A.SubNav,exports.SubNavButton=A.SubNavButton,exports.SubNavItem=A.SubNavItem,exports.Switch=b.Switch,exports.Table=E.Table,exports.TableBody=E.TableBody,exports.TableCell=E.TableCell,exports.TableEmpty=E.TableEmpty,exports.TableFrame=E.TableFrame,exports.TableHead=E.TableHead,exports.TableHeaderCell=E.TableHeaderCell,exports.TableRow=E.TableRow,exports.TableToolbar=E.TableToolbar,exports.TagsInput=z.TagsInput,exports.TextArea=d.TextArea,exports.TextField=d.TextField,exports.Time=B.Time,exports.Toast=O.Toast,exports.ToastProvider=O.ToastProvider,exports.TopNav=a.TopNav,exports.TopNavItem=a.TopNavItem,exports.cropToBlob=I.cropToBlob,exports.formatAbsoluteDate=B.formatAbsoluteDate,exports.formatAbsoluteTime=B.formatAbsoluteTime,exports.formatIsoDate=R.formatIsoDate,exports.formatRelativeTime=B.formatRelativeTime,exports.iconNames=t.n,exports.icons=t.r,exports.useSideNavCollapsed=i.useSideNavCollapsed,exports.useToast=O.useToast,exports.validateFormValues=x.n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunks/ColourField-CJicr3OT.cjs"),t=require("./chunks/Icon-BBoWP_Y6.cjs"),n=require("./components/Button/index.cjs"),r=require("./components/Drawer/index.cjs"),i=require("./components/SideNav/index.cjs"),a=require("./components/TopNav/index.cjs"),o=require("./components/AppShell/index.cjs"),s=require("./components/ButtonGroup/index.cjs"),c=require("./components/Badge/index.cjs"),l=require("./components/Field/index.cjs"),u=require("./components/Modal/index.cjs"),d=require("./components/TextField/index.cjs"),f=require("./chunks/RichTextEditor-C7nMfDmE.cjs"),p=require("./components/FieldAffix/index.cjs"),m=require("./components/SearchField/index.cjs"),h=require("./components/SortableList/index.cjs"),g=require("./components/EntryPicker/index.cjs"),_=require("./components/NumberField/index.cjs"),v=require("./components/Popover/index.cjs"),y=require("./components/Select/index.cjs"),b=require("./components/Switch/index.cjs"),x=require("./chunks/Slider-k8weRl34.cjs"),S=require("./chunks/DatePicker-aSlYLjtW.cjs"),C=require("./components/TagsInput/index.cjs"),w=require("./components/Grid/index.cjs"),T=require("./components/Choice/index.cjs"),E=require("./components/SelectionCard/index.cjs"),D=require("./chunks/FormEditor-UzbPdiJo.cjs"),O=require("./chunks/Board-BaQ04nWg.cjs"),k=require("./components/Avatar/index.cjs"),A=require("./components/Table/index.cjs"),j=require("./components/Menu/index.cjs"),M=require("./components/Toast/index.cjs"),N=require("./components/Skeleton/index.cjs"),P=require("./components/SubNav/index.cjs"),F=require("./components/Stepper/index.cjs"),I=require("./components/AssetCard/index.cjs"),L=require("./components/AssetGrid/index.cjs"),R=require("./components/ImageCropper/index.cjs"),z=require("./components/Container/index.cjs"),B=require("./components/Time/index.cjs"),V=require("./components/Pagination/index.cjs"),H=require("./components/EditLayout/index.cjs");exports.AppShell=o.AppShell,exports.AssetCard=I.AssetCard,exports.AssetTile=I.AssetCard,exports.AssetCardSkeleton=I.AssetCardSkeleton,exports.AssetTileSkeleton=I.AssetCardSkeleton,exports.AssetGrid=L.AssetGrid,exports.AssetGridEmpty=L.AssetGridEmpty,exports.Avatar=k.Avatar,exports.AvatarGroup=k.AvatarGroup,exports.Badge=c.Badge,exports.Board=O.t,exports.BoardCard=O.n,exports.BoardColumn=O.r,exports.Button=n.Button,exports.ButtonGroup=s.ButtonGroup,exports.Calendar=S.t,exports.Checkbox=T.Checkbox,exports.CheckboxCard=E.CheckboxCard,exports.ChoiceGroup=T.ChoiceGroup,exports.ColourField=e.t,exports.ColourPanel=e.n,exports.Container=z.Container,exports.DateField=S.n,exports.DateRangeField=S.r,exports.Drawer=r.Drawer,exports.EditLayout=H.EditLayout,exports.EntryPicker=g.EntryPicker,exports.Field=l.Field,exports.FieldAffix=p.FieldAffix,exports.FormEditor=D.t,exports.Grid=w.Grid,exports.GridItem=w.GridItem,exports.Icon=t.t,exports.ImageCropper=R.ImageCropper,exports.Menu=j.Menu,exports.MenuItem=j.MenuItem,exports.MenuLabel=j.MenuLabel,exports.MenuSeparator=j.MenuSeparator,exports.Modal=u.Modal,exports.NumberField=_.NumberField,exports.NumberRangeField=_.NumberRangeField,exports.Pagination=V.Pagination,exports.Popover=v.Popover,exports.Radio=T.Radio,exports.RadioCard=E.RadioCard,exports.RangeSlider=x.t,exports.RichTextEditor=f.t,exports.SearchField=m.SearchField,exports.Select=y.Select,exports.SelectionCardGroup=E.SelectionCardGroup,exports.SideNav=i.SideNav,exports.SideNavFooter=i.SideNavFooter,exports.SideNavHeader=i.SideNavHeader,exports.SideNavItem=i.SideNavItem,exports.SideNavSection=i.SideNavSection,exports.Skeleton=N.Skeleton,exports.SkeletonText=N.SkeletonText,exports.Slider=x.n,exports.SortableList=h.SortableList,exports.SortableListItem=h.SortableListItem,exports.Stack=w.Stack,exports.Stepper=F.Stepper,exports.SubNav=P.SubNav,exports.SubNavButton=P.SubNavButton,exports.SubNavItem=P.SubNavItem,exports.Switch=b.Switch,exports.Table=A.Table,exports.TableBody=A.TableBody,exports.TableCell=A.TableCell,exports.TableEmpty=A.TableEmpty,exports.TableFrame=A.TableFrame,exports.TableHead=A.TableHead,exports.TableHeaderCell=A.TableHeaderCell,exports.TableRow=A.TableRow,exports.TableToolbar=A.TableToolbar,exports.TagsInput=C.TagsInput,exports.TextArea=d.TextArea,exports.TextField=d.TextField,exports.Time=B.Time,exports.Toast=M.Toast,exports.ToastProvider=M.ToastProvider,exports.TopNav=a.TopNav,exports.TopNavItem=a.TopNavItem,exports.cropToBlob=R.cropToBlob,exports.formatAbsoluteDate=B.formatAbsoluteDate,exports.formatAbsoluteTime=B.formatAbsoluteTime,exports.formatIsoDate=S.i,exports.formatRelativeTime=B.formatRelativeTime,exports.iconNames=t.n,exports.icons=t.r,exports.useSideNavCollapsed=i.useSideNavCollapsed,exports.useToast=M.useToast,exports.validateFormValues=D.n;
package/dist/index.d.cts CHANGED
@@ -7,7 +7,7 @@ export type { ButtonGroupProps, ButtonGroupOrientation } from "./components/Butt
7
7
  export { RichTextEditor } from "./components/RichTextEditor/index.cjs";
8
8
  export type { RichTextEditorProps, RichTextEditorSize, RichTextDocument, } from "./components/RichTextEditor/index.cjs";
9
9
  export { FormEditor, validateFormValues } from "./components/FormEditor/index.cjs";
10
- export type { FormEditorProps, FormChange, AssetValue, FormField, FormSchema, FormErrors, FormFieldValue, FormValues, ReferenceValue, } from "./components/FormEditor/index.cjs";
10
+ export type { FormEditorProps, FormChange, AssetValue, FormField, FormDivider, FormItem, FormSchema, FormErrors, FormFieldValue, FormValues, ReferenceValue, } from "./components/FormEditor/index.cjs";
11
11
  export { Board, BoardColumn, BoardCard } from "./components/Board/index.cjs";
12
12
  export type { BoardProps, BoardColumnProps, BoardCardProps, BoardMove, BoardColumnMove, } from "./components/Board/index.cjs";
13
13
  export { SortableList, SortableListItem } from "./components/SortableList/index.cjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACzE,YAAY,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,GACf,MAAM,yBAAyB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,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACpE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACnF,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE7F,OAAO,EACL,IAAI,EACJ,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export type { ButtonGroupProps, ButtonGroupOrientation } from "./components/Butt
7
7
  export { RichTextEditor } from "./components/RichTextEditor/index.js";
8
8
  export type { RichTextEditorProps, RichTextEditorSize, RichTextDocument, } from "./components/RichTextEditor/index.js";
9
9
  export { FormEditor, validateFormValues } from "./components/FormEditor/index.js";
10
- export type { FormEditorProps, FormChange, AssetValue, FormField, FormSchema, FormErrors, FormFieldValue, FormValues, ReferenceValue, } from "./components/FormEditor/index.js";
10
+ export type { FormEditorProps, FormChange, AssetValue, FormField, FormDivider, FormItem, FormSchema, FormErrors, FormFieldValue, FormValues, ReferenceValue, } from "./components/FormEditor/index.js";
11
11
  export { Board, BoardColumn, BoardCard } from "./components/Board/index.js";
12
12
  export type { BoardProps, BoardColumnProps, BoardCardProps, BoardMove, BoardColumnMove, } from "./components/Board/index.js";
13
13
  export { SortableList, SortableListItem } from "./components/SortableList/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACzE,YAAY,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,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