@chassis-ui/react 0.3.0 → 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 (107) hide show
  1. package/README.md +2 -2
  2. package/dist/alert.d.ts +1 -1
  3. package/dist/avatar.d.ts +1 -1
  4. package/dist/badge.d.ts +1 -1
  5. package/dist/button.d.ts +1 -1
  6. package/dist/card.d.ts +1 -1
  7. package/dist/card.js +1 -1
  8. package/dist/checkbox.d.ts +2 -2
  9. package/dist/checkbox.js +1 -1
  10. package/dist/chip.d.ts +1 -1
  11. package/dist/chunks/{Button-Cptd4Yk7.d.ts → Button-BuZ_GOHS.d.ts} +2 -2
  12. package/dist/chunks/{Link-nrd0JWlO.d.ts → Link-CKymd2ru.d.ts} +2 -2
  13. package/dist/chunks/breakpoints-CGk8szzR.js +2 -0
  14. package/dist/chunks/breakpoints-CGk8szzR.js.map +1 -0
  15. package/dist/chunks/breakpoints-ECy4lKQT.d.ts +6 -0
  16. package/dist/chunks/card-CobeDpf1.js +2 -0
  17. package/dist/chunks/card-CobeDpf1.js.map +1 -0
  18. package/dist/chunks/{checkbox-ChACalAw.js → checkbox-ZyQn5Ku5.js} +2 -2
  19. package/dist/chunks/{checkbox-ChACalAw.js.map → checkbox-ZyQn5Ku5.js.map} +1 -1
  20. package/dist/chunks/flex-B52oLCCC.js +2 -0
  21. package/dist/chunks/flex-B52oLCCC.js.map +1 -0
  22. package/dist/chunks/grid-C7tO-ppc.js +2 -0
  23. package/dist/chunks/grid-C7tO-ppc.js.map +1 -0
  24. package/dist/chunks/{index-Bm2NpgND.d.ts → index-0jbACjYQ.d.ts} +2 -2
  25. package/dist/chunks/{index-D9PZHY_I.d.ts → index-B19ZH3fm.d.ts} +2 -2
  26. package/dist/chunks/{index-COsIPd8L.d.ts → index-B1kw0jzM.d.ts} +2 -2
  27. package/dist/chunks/{index-CJzKu7QI.d.ts → index-B5bF1JxF.d.ts} +2 -2
  28. package/dist/chunks/{index-e7SJkI_m.d.ts → index-BLS1jhSJ.d.ts} +2 -2
  29. package/dist/chunks/{index-DjrEvKd-.d.ts → index-BMkbJVHg.d.ts} +2 -2
  30. package/dist/chunks/{index-t_x6jj7l.d.ts → index-BOx8v-oT.d.ts} +2 -2
  31. package/dist/chunks/index-BSLneLYu.d.ts +79 -0
  32. package/dist/chunks/{index-BnR7wjax.d.ts → index-BfEJYF4c.d.ts} +2 -2
  33. package/dist/chunks/{index-CRfm7W6C.d.ts → index-C9gzVqwX.d.ts} +2 -2
  34. package/dist/chunks/{index-DjXRq-n3.d.ts → index-CHQR8x8_.d.ts} +6 -12
  35. package/dist/chunks/{index-BTTeKpiE.d.ts → index-CIwzgZJi.d.ts} +2 -2
  36. package/dist/chunks/{index-I-H3VJ-L.d.ts → index-CYvVmTPR.d.ts} +4 -4
  37. package/dist/chunks/{index-qMq_-GY2.d.ts → index-CjT_4IZx.d.ts} +3 -3
  38. package/dist/chunks/index-CxjNw4ss.d.ts +216 -0
  39. package/dist/chunks/{index-DgHvXzVh.d.ts → index-DHcztR18.d.ts} +3 -3
  40. package/dist/chunks/{index-DXjbI7Yv.d.ts → index-DM01FX3a.d.ts} +3 -3
  41. package/dist/chunks/{index-CYgBmZ8w.d.ts → index-DP5xugE-.d.ts} +2 -2
  42. package/dist/chunks/{index-FKh7iFQE.d.ts → index-DPCwFiJL.d.ts} +2 -2
  43. package/dist/chunks/{index-DJr_ZK4b.d.ts → index-DQImhbhy.d.ts} +2 -2
  44. package/dist/chunks/{index-CJXKl97l.d.ts → index-DtvHH_Mb.d.ts} +2 -2
  45. package/dist/chunks/{index-CKx1KHED.d.ts → index-NGgDkhyn.d.ts} +18 -25
  46. package/dist/chunks/{index-Dfy1YW5j.d.ts → index-U27Ar174.d.ts} +2 -2
  47. package/dist/chunks/{index-CsMIgBsd.d.ts → index-YJ9QdBuq.d.ts} +9 -10
  48. package/dist/chunks/{index-Dh5CaHTP.d.ts → index-aRdgpeRb.d.ts} +2 -2
  49. package/dist/chunks/{index-BO9jLOIb.d.ts → index-lSPcxiii.d.ts} +2 -2
  50. package/dist/chunks/{index-DceCODH9.d.ts → index-x0vZRyoU.d.ts} +2 -2
  51. package/dist/chunks/{notification-Ds24wnPq.js → notification-Dbci5Ka3.js} +2 -2
  52. package/dist/chunks/{notification-Ds24wnPq.js.map → notification-Dbci5Ka3.js.map} +1 -1
  53. package/dist/chunks/{radio-DOFYCfJi.js → radio-B6gJdtoN.js} +2 -2
  54. package/dist/chunks/{radio-DOFYCfJi.js.map → radio-B6gJdtoN.js.map} +1 -1
  55. package/dist/chunks/{renderFormCheck-DZh_5Df8.d.ts → renderFormCheck-nKgpa_a3.d.ts} +2 -2
  56. package/dist/chunks/skeleton-CmZBLJwp.js +2 -0
  57. package/dist/chunks/skeleton-CmZBLJwp.js.map +1 -0
  58. package/dist/chunks/spacingClassName-DVhk8m3P.js.map +1 -1
  59. package/dist/chunks/stack-DK5F53VT.js +2 -0
  60. package/dist/chunks/stack-DK5F53VT.js.map +1 -0
  61. package/dist/chunks/{types-CS_40Txv.d.ts → types-D6FM7bYR.d.ts} +16 -2
  62. package/dist/close-button.d.ts +1 -1
  63. package/dist/datagrid.d.ts +1 -1
  64. package/dist/flex.d.ts +1 -1
  65. package/dist/flex.js +1 -1
  66. package/dist/grid.d.ts +2 -2
  67. package/dist/grid.js +1 -1
  68. package/dist/index.d.ts +32 -32
  69. package/dist/index.js +1 -1
  70. package/dist/link.d.ts +1 -1
  71. package/dist/list.d.ts +1 -1
  72. package/dist/menu.d.ts +1 -1
  73. package/dist/nav-overflow.d.ts +1 -1
  74. package/dist/nav.d.ts +1 -1
  75. package/dist/navbar.d.ts +1 -1
  76. package/dist/notification.d.ts +1 -1
  77. package/dist/notification.js +1 -1
  78. package/dist/placeholder.d.ts +1 -1
  79. package/dist/progress.d.ts +1 -1
  80. package/dist/radio.d.ts +1 -1
  81. package/dist/radio.js +1 -1
  82. package/dist/skeleton.d.ts +1 -1
  83. package/dist/skeleton.js +1 -1
  84. package/dist/spinner.d.ts +1 -1
  85. package/dist/stack.d.ts +1 -1
  86. package/dist/stack.js +1 -1
  87. package/dist/static-table.d.ts +1 -1
  88. package/dist/stepper.d.ts +1 -1
  89. package/dist/switch.d.ts +1 -1
  90. package/dist/table.d.ts +1 -1
  91. package/dist/toast.d.ts +1 -1
  92. package/package.json +4 -4
  93. package/dist/chunks/breakpoints-CJ-498B7.d.ts +0 -7
  94. package/dist/chunks/breakpoints-o_2Ev7ir.js +0 -2
  95. package/dist/chunks/breakpoints-o_2Ev7ir.js.map +0 -1
  96. package/dist/chunks/card-YXn3bj_d.js +0 -2
  97. package/dist/chunks/card-YXn3bj_d.js.map +0 -1
  98. package/dist/chunks/flex-CmlJbKVj.js +0 -2
  99. package/dist/chunks/flex-CmlJbKVj.js.map +0 -1
  100. package/dist/chunks/grid-DK_vxz-4.js +0 -2
  101. package/dist/chunks/grid-DK_vxz-4.js.map +0 -1
  102. package/dist/chunks/index-CVUMS0x7.d.ts +0 -74
  103. package/dist/chunks/index-RHJhkSY-.d.ts +0 -273
  104. package/dist/chunks/skeleton-BrD2JwNx.js +0 -2
  105. package/dist/chunks/skeleton-BrD2JwNx.js.map +0 -1
  106. package/dist/chunks/stack-CsMiQbpq.js +0 -2
  107. package/dist/chunks/stack-CsMiQbpq.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"notification-Ds24wnPq.js","names":[],"sources":["../../src/components/notification/context.ts","../../src/hooks/useNotification.ts","../../src/components/notification/NotificationText.tsx","../../src/components/notification/NotificationTitle.tsx","../../src/components/notification/Notification.tsx","../../src/components/notification/NotificationIcon.tsx","../../src/components/notification/notificationQueue.ts","../../src/components/notification/NotificationStack.tsx"],"sourcesContent":["import { createContext } from 'react'\n\nexport interface NotificationContextProps {\n /**\n * Whether the notification is currently visible.\n */\n visible?: boolean\n /**\n * Dismisses the notification. Wire this to any element's `onClick` — see `useNotification`.\n */\n close: () => void\n}\n\nexport const NotificationContext = createContext<NotificationContextProps>({ close: () => {} })\n","import { useContext } from 'react'\nimport { NotificationContext, NotificationContextProps } from '../components/notification/context'\n\nexport type UseNotificationResult = NotificationContextProps\n\n// Reach the enclosing `Notification`'s dismiss handler from anywhere in its composed markup —\n// e.g. to close it from a plain `Button` placed alongside other `actions`, instead of the\n// built-in `dismissible` close button. Only meaningful inside a `Notification`; outside one it\n// returns a no-op `close`.\nexport const useNotification = (): UseNotificationResult => useContext(NotificationContext)\n","import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype NotificationTextOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n}\n\nexport type NotificationTextProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n NotificationTextOwnProps<C>\n>\n\ntype NotificationTextComponent = (<C extends ElementType = 'div'>(\n props: NotificationTextProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction NotificationTextRender<C extends ElementType = 'div'>(\n { children, component, className, ...rest }: NotificationTextProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'div'\n const _className = classNames('notification-text', className)\n\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const NotificationText = createPolymorphicComponent<NotificationTextComponent>(\n NotificationTextRender as ForwardRefRenderFunction<Element, NotificationTextProps<ElementType>>,\n 'NotificationText'\n)\n","import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype NotificationTitleOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the base component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n}\n\nexport type NotificationTitleProps<C extends ElementType = 'h4'> = PolymorphicComponentProps<\n C,\n NotificationTitleOwnProps<C>\n>\n\ntype NotificationTitleComponent = (<C extends ElementType = 'h4'>(\n props: NotificationTitleProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction NotificationTitleRender<C extends ElementType = 'h4'>(\n { children, className, component, ...rest }: NotificationTitleProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'h4'\n const _className = classNames('notification-title', className)\n\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const NotificationTitle = createPolymorphicComponent<NotificationTitleComponent>(\n NotificationTitleRender as ForwardRefRenderFunction<Element, NotificationTitleProps<ElementType>>,\n 'NotificationTitle'\n)\n","import React, { ElementType, forwardRef, HTMLAttributes, ReactNode } from 'react'\nimport classNames from 'classnames'\nimport { mergeProps } from 'react-aria'\n\nimport { ContextColor } from '../../types'\nimport { CloseButton } from '../close-button/CloseButton'\nimport { useAutoDismiss, useDismissibleTransition } from '../../hooks'\nimport { NotificationContext } from './context'\nimport { ResolvedIcon } from '../../utils/iconSlot'\nimport { NotificationText } from './NotificationText'\nimport { NotificationTitle } from './NotificationTitle'\nimport './Notification.scss'\n\nexport interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {\n /**\n * Optional trailing content — e.g. a row of `Button`s — rendered after `text`/`children`.\n */\n actions?: ReactNode\n /**\n * Automatically dismiss the notification after `delay`. The timer pauses while the pointer\n * or focus is on the notification, and only starts once the notification is visible.\n * Defaults to `false` — unlike `Toast`, notifications are persistent banners by default.\n */\n autohide?: boolean\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Overrides the dismiss button's accessible name (defaults to `'Close'`). Set this for\n * non-English UIs.\n */\n closeLabel?: string\n /**\n * Sets the color of the component to one of Chassis context colors.\n */\n color?: ContextColor\n /**\n * Whether the notification is shown when it first renders. Such a notification is\n * uncontrolled: its close button and the `autohide` timer hide it. Use `visible` to show and\n * hide it from outside.\n *\n * @default true\n */\n defaultVisible?: boolean\n /**\n * Delay in ms before an `autohide` notification dismisses itself.\n */\n delay?: number\n /**\n * Optionally add a close button to the notification and allow it to self dismiss.\n */\n dismissible?: boolean\n /**\n * Leading icon. A string is an icon name, rendered like `<NotificationIcon name={icon} />` (or\n * by `IconProvider`'s `component`); pass any other\n * node for a fully custom icon. Automatically top-aligns with `title` when both are set —\n * a custom icon node is responsible for its own alignment.\n */\n icon?: string | ReactNode\n /**\n * Applies the solid context style to the notification.\n */\n solid?: boolean\n /**\n * Message body, rendered via a single `<NotificationText>`. For multi-block content, compose\n * `children` manually instead — `text` wraps everything in one element.\n */\n text?: ReactNode\n /**\n * Heading, rendered via `<NotificationTitle>`.\n */\n title?: ReactNode\n /**\n * Element or component used for the `title` heading. Passed through to `NotificationTitle`'s\n * own `component` prop. Defaults to `'h4'`.\n */\n titleComponent?: ElementType\n /**\n * Callback fired once the notification has hidden: after its exit transition.\n */\n onClose?: () => void\n /**\n * Callback fired when the notification starts to show.\n */\n onShow?: () => void\n /**\n * Callback fired with `false` when the notification asks to hide: its close button, `close`\n * from `useNotification`, or the `autohide` timer. With `visible` set, the notification hides\n * only when `visible` becomes `false`.\n */\n onVisibleChange?: (visible: boolean) => void\n /**\n * ARIA live-region role. Use `status` (the default) for confirmation, progress, and\n * informational messages, which announce politely. Use `alert` for messages that need\n * immediate attention — validation errors, failed operations — which interrupt speech.\n */\n role?: 'status' | 'alert'\n /**\n * Whether the notification is shown. Setting it makes the notification controlled: it hides\n * only when this becomes `false`, so pair it with `onVisibleChange`. Left unset, the\n * notification is shown and hides itself (see `defaultVisible`).\n */\n visible?: boolean\n}\n\nexport const Notification = forwardRef<HTMLDivElement, NotificationProps>(\n (\n {\n actions,\n autohide = false,\n children,\n className,\n closeLabel = 'Close',\n color = 'primary',\n defaultVisible = true,\n delay = 5000,\n dismissible,\n icon,\n solid,\n text,\n title,\n titleComponent = 'h4',\n role = 'status',\n visible,\n onClose,\n onShow,\n onVisibleChange,\n ...rest\n },\n ref\n ) => {\n const {\n close,\n entered,\n forkedRef,\n isMounted,\n textId,\n titleId,\n transitionClass,\n visible: _visible\n } = useDismissibleTransition({\n defaultVisible,\n displayName: 'Notification',\n onClose,\n onShow,\n onVisibleChange,\n ref,\n visible\n })\n\n // Gated on `entered`, not just `_visible` (see `Toast`'s identical comment) — the entrance\n // transition finishing is what `autohide`'s JSDoc means by \"the timer starts once the\n // notification is visible\".\n const autoDismissProps = useAutoDismiss({\n enabled: autohide,\n delay,\n visible: _visible && entered,\n onHide: close\n })\n\n const _className = classNames(\n 'notification',\n 'fade',\n color,\n {\n solid\n },\n className\n )\n\n if (!isMounted) return null\n\n return (\n <NotificationContext.Provider value={{ visible: _visible, close }}>\n <div\n className={classNames(_className, transitionClass)}\n role={role}\n aria-labelledby={title ? titleId : undefined}\n aria-describedby={title && text ? textId : undefined}\n {...mergeProps(rest, autoDismissProps)}\n ref={forkedRef}\n >\n {icon &&\n (typeof icon === 'string' ? (\n <ResolvedIcon\n value={icon}\n className={classNames('notification-icon', { 'align-self-start': !!title })}\n />\n ) : (\n icon\n ))}\n {title && (\n <NotificationTitle id={titleId} component={titleComponent}>\n {title}\n </NotificationTitle>\n )}\n {text && <NotificationText id={textId}>{text}</NotificationText>}\n {children}\n {actions}\n {dismissible && <CloseButton label={closeLabel} onClick={close} />}\n </div>\n </NotificationContext.Provider>\n )\n }\n)\n\nNotification.displayName = 'Notification'\n","import React, { forwardRef } from 'react'\nimport classNames from 'classnames'\n\nimport { Icon, IconProps } from '../icon/Icon'\n\nexport type NotificationIconProps = IconProps & {\n /**\n * A string of all className you want applied to the base component.\n */\n className?: string\n}\n\nexport const NotificationIcon = forwardRef<HTMLSpanElement | SVGSVGElement, NotificationIconProps>(\n ({ className, ...rest }, ref) => {\n const _className = classNames('notification-icon', className)\n\n return <Icon className={_className} {...rest} ref={ref} />\n }\n)\n\nNotificationIcon.displayName = 'NotificationIcon'\n","import { ReactNode } from 'react'\nimport { ToastQueue } from 'react-stately'\n\nimport { NotificationProps } from './Notification'\n\nexport interface NotificationContent extends Pick<\n NotificationProps,\n | 'actions'\n | 'autohide'\n | 'closeLabel'\n | 'color'\n | 'delay'\n | 'dismissible'\n | 'icon'\n | 'role'\n | 'solid'\n | 'text'\n | 'title'\n | 'titleComponent'\n> {\n /**\n * Content of the notification. Compose manually (typically a `NotificationIcon`/\n * `NotificationTitle`/`NotificationText`), or leave empty and use the `icon`/`title`/`text`\n * shorthand options instead.\n */\n children?: ReactNode\n}\n\n// The queue backing `NotificationStack` — a module-level singleton so `addNotification()` is\n// callable from anywhere (an event handler, an async callback) without threading a `push` prop\n// through render. `NotificationStack` subscribes to it via `useToastQueue`; nothing renders\n// until a `<NotificationStack />` is actually mounted somewhere to display the queue's contents.\nexport const notificationQueue = new ToastQueue<NotificationContent>()\n\n// Adds a notification to the queue. Returns the notification's key, which can be passed to\n// `closeNotification` to dismiss it programmatically. `children` is optional — omit it for a\n// notification composed entirely from the `icon`/`title`/`text` shorthand options.\nexport function addNotification(\n children?: ReactNode,\n options: Omit<NotificationContent, 'children'> = {}\n): string {\n return notificationQueue.add({ children, ...options })\n}\n\n// Removes a queued notification immediately, bypassing its own exit animation.\nexport function closeNotification(key: string): void {\n notificationQueue.close(key)\n}\n","import React, { forwardRef, HTMLAttributes } from 'react'\n\nimport { useToastRegionQueue } from '../../hooks'\nimport { Stack } from '../stack'\nimport { Notification } from './Notification'\nimport { notificationQueue } from './notificationQueue'\n\nexport interface NotificationStackProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * A string of all className you want applied to the base component.\n */\n className?: string\n /**\n * Queued notifications show newest-first by default — the typical toast pattern. Set\n * `reverse` for a chronological transcript instead, oldest-first.\n */\n reverse?: boolean\n}\n\n// Renders the shared `notificationQueue` (see `notificationQueue.ts` — `addNotification()` is\n// how notifications get added to it from anywhere in the app) plus any statically-passed\n// `children`, e.g. a permanently pinned notification alongside dynamic ones — the same static\n// children still render with nothing queued, so this doubles as a plain grouping/spacing\n// wrapper for hand-placed notifications. Unlike `Toaster`, this always renders in normal\n// document flow rather than a fixed/portaled overlay — Chassis notifications are in-page\n// banners, not floating toasts.\nexport const NotificationStack = forwardRef<HTMLDivElement, NotificationStackProps>(\n ({ children, className, reverse, ...rest }, ref) => {\n const { forkedRef, regionProps, state } = useToastRegionQueue(notificationQueue, ref)\n\n if (state.visibleToasts.length === 0 && !children) {\n return null\n }\n\n // The queue is already newest-first (each add unshifts); `reverse` opts into chronological\n // order instead.\n const queued = reverse ? [...state.visibleToasts].reverse() : state.visibleToasts\n\n return (\n <Stack\n direction=\"vertical\"\n gap=\"sm\"\n className={className}\n {...regionProps}\n {...rest}\n ref={forkedRef}\n >\n {children}\n {queued.map((item) => {\n const { children: notificationChildren, ...notificationProps } = item.content\n return (\n <Notification\n key={item.key}\n {...notificationProps}\n onClose={() => state.close(item.key)}\n >\n {notificationChildren}\n </Notification>\n )\n })}\n </Stack>\n )\n }\n)\n\nNotificationStack.displayName = 'NotificationStack'\n"],"mappings":"ifAaA,MAAa,EAAsB,EAAwC,CAAE,UAAa,CAAC,CAAE,CAAC,ECJjF,MAA+C,EAAW,CAAmB,ECoB1F,SAAS,EACP,CAAE,WAAU,YAAW,YAAW,GAAG,GACrC,EACA,CACA,IAAM,EAAY,GAAa,MACzB,EAAa,EAAW,oBAAqB,CAAS,EAE5D,OACE,EAAA,cAAC,EAAD,CAAW,UAAW,EAAY,GAAI,EAAW,KAEtC,EADR,CACQ,CAEf,CAEA,MAAa,EAAmB,EAC9B,EACA,kBACF,ECjBA,SAAS,EACP,CAAE,WAAU,YAAW,YAAW,GAAG,GACrC,EACA,CACA,IAAM,EAAY,GAAa,KACzB,EAAa,EAAW,qBAAsB,CAAS,EAE7D,OACE,EAAA,cAAC,EAAD,CAAW,UAAW,EAAY,GAAI,EAAW,KAEtC,EADR,CACQ,CAEf,CAEA,MAAa,EAAoB,EAC/B,EACA,mBACF,EC4Da,EAAe,GAExB,CACE,UACA,WAAW,GACX,WACA,YACA,aAAa,QACb,QAAQ,UACR,iBAAiB,GACjB,QAAQ,IACR,cACA,OACA,QACA,OACA,QACA,iBAAiB,KACjB,OAAO,SACP,UACA,UACA,SACA,kBACA,GAAG,GAEL,IACG,CACH,GAAM,CACJ,QACA,UACA,YACA,YACA,SACA,UACA,kBACA,QAAS,GACP,EAAyB,CAC3B,iBACA,YAAa,eACb,UACA,SACA,kBACA,MACA,SACF,CAAC,EAKK,EAAmB,EAAe,CACtC,QAAS,EACT,QACA,QAAS,GAAY,EACrB,OAAQ,CACV,CAAC,EAEK,EAAa,EACjB,eACA,OACA,EACA,CACE,OACF,EACA,CACF,EAIA,OAFK,EAGH,EAAA,cAAC,EAAoB,SAArB,CAA8B,MAAO,CAAE,QAAS,EAAU,OAAM,CA4BlC,EA3B5B,EAAA,cAAC,MAAD,CACE,UAAW,EAAW,EAAY,CAAe,EAC3C,OACN,kBAAiB,EAAQ,EAAU,IAAA,GACnC,mBAAkB,GAAS,EAAO,EAAS,IAAA,GAC3C,GAAI,EAAW,EAAM,CAAgB,EACrC,IAAK,CAoBF,EAlBF,IACE,OAAO,GAAS,SACf,EAAA,cAAC,EAAD,CACE,MAAO,EACP,UAAW,EAAW,oBAAqB,CAAE,mBAAoB,CAAC,CAAC,CAAM,CAAC,CAC3E,CAAA,EAED,GAEH,GACC,EAAA,cAAC,EAAD,CAAmB,GAAI,EAAS,UAAW,CAExB,EADhB,CACgB,EAEpB,GAAQ,EAAA,cAAC,EAAD,CAAkB,GAAI,CAAgC,EAAvB,CAAuB,EAC9D,EACA,EACA,GAAe,EAAA,cAAC,EAAD,CAAa,MAAO,EAAY,QAAS,CAAQ,CAAA,CAC9D,CACuB,EA/BT,IAiCzB,CACF,EAEA,EAAa,YAAc,eCnM3B,MAAa,EAAmB,GAC7B,CAAE,YAAW,GAAG,GAAQ,IAAQ,CAC/B,IAAM,EAAa,EAAW,oBAAqB,CAAS,EAE5D,OAAO,EAAA,cAAC,EAAD,CAAM,UAAW,EAAY,GAAI,EAAW,KAAM,CAAA,CAC3D,CACF,EAEA,EAAiB,YAAc,mBCY/B,MAAa,EAAoB,IAAI,EAKrC,SAAgB,EACd,EACA,EAAiD,CAAC,EAC1C,CACR,OAAO,EAAkB,IAAI,CAAE,WAAU,GAAG,CAAQ,CAAC,CACvD,CAGA,SAAgB,EAAkB,EAAmB,CACnD,EAAkB,MAAM,CAAG,CAC7B,CCrBA,MAAa,EAAoB,GAC9B,CAAE,WAAU,YAAW,UAAS,GAAG,GAAQ,IAAQ,CAClD,GAAM,CAAE,YAAW,cAAa,SAAU,EAAoB,EAAmB,CAAG,EAEpF,GAAI,EAAM,cAAc,SAAW,GAAK,CAAC,EACvC,OAAO,KAKT,IAAM,EAAS,EAAU,CAAC,GAAG,EAAM,aAAa,CAAC,CAAC,QAAQ,EAAI,EAAM,cAEpE,OACE,EAAA,cAAC,EAAD,CACE,UAAU,WACV,IAAI,KACO,YACX,GAAI,EACJ,GAAI,EACJ,IAAK,CAeA,EAbJ,EACA,EAAO,IAAK,GAAS,CACpB,GAAM,CAAE,SAAU,EAAsB,GAAG,GAAsB,EAAK,QACtE,OACE,EAAA,cAAC,EAAD,CACE,IAAK,EAAK,IACV,GAAI,EACJ,YAAe,EAAM,MAAM,EAAK,GAAG,CAGvB,EADX,CACW,CAElB,CAAC,CACI,CAEX,CACF,EAEA,EAAkB,YAAc"}
1
+ {"version":3,"file":"notification-Dbci5Ka3.js","names":[],"sources":["../../src/components/notification/context.ts","../../src/hooks/useNotification.ts","../../src/components/notification/NotificationText.tsx","../../src/components/notification/NotificationTitle.tsx","../../src/components/notification/Notification.tsx","../../src/components/notification/NotificationIcon.tsx","../../src/components/notification/notificationQueue.ts","../../src/components/notification/NotificationStack.tsx"],"sourcesContent":["import { createContext } from 'react'\n\nexport interface NotificationContextProps {\n /**\n * Whether the notification is currently visible.\n */\n visible?: boolean\n /**\n * Dismisses the notification. Wire this to any element's `onClick` — see `useNotification`.\n */\n close: () => void\n}\n\nexport const NotificationContext = createContext<NotificationContextProps>({ close: () => {} })\n","import { useContext } from 'react'\nimport { NotificationContext, NotificationContextProps } from '../components/notification/context'\n\nexport type UseNotificationResult = NotificationContextProps\n\n// Reach the enclosing `Notification`'s dismiss handler from anywhere in its composed markup —\n// e.g. to close it from a plain `Button` placed alongside other `actions`, instead of the\n// built-in `dismissible` close button. Only meaningful inside a `Notification`; outside one it\n// returns a no-op `close`.\nexport const useNotification = (): UseNotificationResult => useContext(NotificationContext)\n","import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype NotificationTextOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n}\n\nexport type NotificationTextProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n NotificationTextOwnProps<C>\n>\n\ntype NotificationTextComponent = (<C extends ElementType = 'div'>(\n props: NotificationTextProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction NotificationTextRender<C extends ElementType = 'div'>(\n { children, component, className, ...rest }: NotificationTextProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'div'\n const _className = classNames('notification-text', className)\n\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const NotificationText = createPolymorphicComponent<NotificationTextComponent>(\n NotificationTextRender as ForwardRefRenderFunction<Element, NotificationTextProps<ElementType>>,\n 'NotificationText'\n)\n","import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype NotificationTitleOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the base component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n}\n\nexport type NotificationTitleProps<C extends ElementType = 'h4'> = PolymorphicComponentProps<\n C,\n NotificationTitleOwnProps<C>\n>\n\ntype NotificationTitleComponent = (<C extends ElementType = 'h4'>(\n props: NotificationTitleProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction NotificationTitleRender<C extends ElementType = 'h4'>(\n { children, className, component, ...rest }: NotificationTitleProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'h4'\n const _className = classNames('notification-title', className)\n\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const NotificationTitle = createPolymorphicComponent<NotificationTitleComponent>(\n NotificationTitleRender as ForwardRefRenderFunction<Element, NotificationTitleProps<ElementType>>,\n 'NotificationTitle'\n)\n","import React, { ElementType, forwardRef, HTMLAttributes, ReactNode } from 'react'\nimport classNames from 'classnames'\nimport { mergeProps } from 'react-aria'\n\nimport { ContextColor } from '../../types'\nimport { CloseButton } from '../close-button/CloseButton'\nimport { useAutoDismiss, useDismissibleTransition } from '../../hooks'\nimport { NotificationContext } from './context'\nimport { ResolvedIcon } from '../../utils/iconSlot'\nimport { NotificationText } from './NotificationText'\nimport { NotificationTitle } from './NotificationTitle'\nimport './Notification.scss'\n\nexport interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {\n /**\n * Optional trailing content — e.g. a row of `Button`s — rendered after `text`/`children`.\n */\n actions?: ReactNode\n /**\n * Automatically dismiss the notification after `delay`. The timer pauses while the pointer\n * or focus is on the notification, and only starts once the notification is visible.\n * Defaults to `false` — unlike `Toast`, notifications are persistent banners by default.\n */\n autohide?: boolean\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Overrides the dismiss button's accessible name (defaults to `'Close'`). Set this for\n * non-English UIs.\n */\n closeLabel?: string\n /**\n * Sets the color of the component to one of Chassis context colors.\n */\n color?: ContextColor\n /**\n * Whether the notification is shown when it first renders. Such a notification is\n * uncontrolled: its close button and the `autohide` timer hide it. Use `visible` to show and\n * hide it from outside.\n *\n * @default true\n */\n defaultVisible?: boolean\n /**\n * Delay in ms before an `autohide` notification dismisses itself.\n */\n delay?: number\n /**\n * Optionally add a close button to the notification and allow it to self dismiss.\n */\n dismissible?: boolean\n /**\n * Leading icon. A string is an icon name, rendered like `<NotificationIcon name={icon} />` (or\n * by `IconProvider`'s `component`); pass any other\n * node for a fully custom icon. Automatically top-aligns with `title` when both are set —\n * a custom icon node is responsible for its own alignment.\n */\n icon?: string | ReactNode\n /**\n * Applies the solid context style to the notification.\n */\n solid?: boolean\n /**\n * Message body, rendered via a single `<NotificationText>`. For multi-block content, compose\n * `children` manually instead — `text` wraps everything in one element.\n */\n text?: ReactNode\n /**\n * Heading, rendered via `<NotificationTitle>`.\n */\n title?: ReactNode\n /**\n * Element or component used for the `title` heading. Passed through to `NotificationTitle`'s\n * own `component` prop. Defaults to `'h4'`.\n */\n titleComponent?: ElementType\n /**\n * Callback fired once the notification has hidden: after its exit transition.\n */\n onClose?: () => void\n /**\n * Callback fired when the notification starts to show.\n */\n onShow?: () => void\n /**\n * Callback fired with `false` when the notification asks to hide: its close button, `close`\n * from `useNotification`, or the `autohide` timer. With `visible` set, the notification hides\n * only when `visible` becomes `false`.\n */\n onVisibleChange?: (visible: boolean) => void\n /**\n * ARIA live-region role. Use `status` (the default) for confirmation, progress, and\n * informational messages, which announce politely. Use `alert` for messages that need\n * immediate attention — validation errors, failed operations — which interrupt speech.\n */\n role?: 'status' | 'alert'\n /**\n * Whether the notification is shown. Setting it makes the notification controlled: it hides\n * only when this becomes `false`, so pair it with `onVisibleChange`. Left unset, the\n * notification is shown and hides itself (see `defaultVisible`).\n */\n visible?: boolean\n}\n\nexport const Notification = forwardRef<HTMLDivElement, NotificationProps>(\n (\n {\n actions,\n autohide = false,\n children,\n className,\n closeLabel = 'Close',\n color = 'primary',\n defaultVisible = true,\n delay = 5000,\n dismissible,\n icon,\n solid,\n text,\n title,\n titleComponent = 'h4',\n role = 'status',\n visible,\n onClose,\n onShow,\n onVisibleChange,\n ...rest\n },\n ref\n ) => {\n const {\n close,\n entered,\n forkedRef,\n isMounted,\n textId,\n titleId,\n transitionClass,\n visible: _visible\n } = useDismissibleTransition({\n defaultVisible,\n displayName: 'Notification',\n onClose,\n onShow,\n onVisibleChange,\n ref,\n visible\n })\n\n // Gated on `entered`, not just `_visible` (see `Toast`'s identical comment) — the entrance\n // transition finishing is what `autohide`'s JSDoc means by \"the timer starts once the\n // notification is visible\".\n const autoDismissProps = useAutoDismiss({\n enabled: autohide,\n delay,\n visible: _visible && entered,\n onHide: close\n })\n\n const _className = classNames(\n 'notification',\n 'fade',\n color,\n {\n solid\n },\n className\n )\n\n if (!isMounted) return null\n\n return (\n <NotificationContext.Provider value={{ visible: _visible, close }}>\n <div\n className={classNames(_className, transitionClass)}\n role={role}\n aria-labelledby={title ? titleId : undefined}\n aria-describedby={title && text ? textId : undefined}\n {...mergeProps(rest, autoDismissProps)}\n ref={forkedRef}\n >\n {icon &&\n (typeof icon === 'string' ? (\n <ResolvedIcon\n value={icon}\n className={classNames('notification-icon', { 'align-self-start': !!title })}\n />\n ) : (\n icon\n ))}\n {title && (\n <NotificationTitle id={titleId} component={titleComponent}>\n {title}\n </NotificationTitle>\n )}\n {text && <NotificationText id={textId}>{text}</NotificationText>}\n {children}\n {actions}\n {dismissible && <CloseButton label={closeLabel} onClick={close} />}\n </div>\n </NotificationContext.Provider>\n )\n }\n)\n\nNotification.displayName = 'Notification'\n","import React, { forwardRef } from 'react'\nimport classNames from 'classnames'\n\nimport { Icon, IconProps } from '../icon/Icon'\n\nexport type NotificationIconProps = IconProps & {\n /**\n * A string of all className you want applied to the base component.\n */\n className?: string\n}\n\nexport const NotificationIcon = forwardRef<HTMLSpanElement | SVGSVGElement, NotificationIconProps>(\n ({ className, ...rest }, ref) => {\n const _className = classNames('notification-icon', className)\n\n return <Icon className={_className} {...rest} ref={ref} />\n }\n)\n\nNotificationIcon.displayName = 'NotificationIcon'\n","import { ReactNode } from 'react'\nimport { ToastQueue } from 'react-stately'\n\nimport { NotificationProps } from './Notification'\n\nexport interface NotificationContent extends Pick<\n NotificationProps,\n | 'actions'\n | 'autohide'\n | 'closeLabel'\n | 'color'\n | 'delay'\n | 'dismissible'\n | 'icon'\n | 'role'\n | 'solid'\n | 'text'\n | 'title'\n | 'titleComponent'\n> {\n /**\n * Content of the notification. Compose manually (typically a `NotificationIcon`/\n * `NotificationTitle`/`NotificationText`), or leave empty and use the `icon`/`title`/`text`\n * shorthand options instead.\n */\n children?: ReactNode\n}\n\n// The queue backing `NotificationStack` — a module-level singleton so `addNotification()` is\n// callable from anywhere (an event handler, an async callback) without threading a `push` prop\n// through render. `NotificationStack` subscribes to it via `useToastQueue`; nothing renders\n// until a `<NotificationStack />` is actually mounted somewhere to display the queue's contents.\nexport const notificationQueue = new ToastQueue<NotificationContent>()\n\n// Adds a notification to the queue. Returns the notification's key, which can be passed to\n// `closeNotification` to dismiss it programmatically. `children` is optional — omit it for a\n// notification composed entirely from the `icon`/`title`/`text` shorthand options.\nexport function addNotification(\n children?: ReactNode,\n options: Omit<NotificationContent, 'children'> = {}\n): string {\n return notificationQueue.add({ children, ...options })\n}\n\n// Removes a queued notification immediately, bypassing its own exit animation.\nexport function closeNotification(key: string): void {\n notificationQueue.close(key)\n}\n","import React, { forwardRef, HTMLAttributes } from 'react'\n\nimport { useToastRegionQueue } from '../../hooks'\nimport { Stack } from '../stack'\nimport { Notification } from './Notification'\nimport { notificationQueue } from './notificationQueue'\n\nexport interface NotificationStackProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * A string of all className you want applied to the base component.\n */\n className?: string\n /**\n * Queued notifications show newest-first by default — the typical toast pattern. Set\n * `reverse` for a chronological transcript instead, oldest-first.\n */\n reverse?: boolean\n}\n\n// Renders the shared `notificationQueue` (see `notificationQueue.ts` — `addNotification()` is\n// how notifications get added to it from anywhere in the app) plus any statically-passed\n// `children`, e.g. a permanently pinned notification alongside dynamic ones — the same static\n// children still render with nothing queued, so this doubles as a plain grouping/spacing\n// wrapper for hand-placed notifications. Unlike `Toaster`, this always renders in normal\n// document flow rather than a fixed/portaled overlay — Chassis notifications are in-page\n// banners, not floating toasts.\nexport const NotificationStack = forwardRef<HTMLDivElement, NotificationStackProps>(\n ({ children, className, reverse, ...rest }, ref) => {\n const { forkedRef, regionProps, state } = useToastRegionQueue(notificationQueue, ref)\n\n if (state.visibleToasts.length === 0 && !children) {\n return null\n }\n\n // The queue is already newest-first (each add unshifts); `reverse` opts into chronological\n // order instead.\n const queued = reverse ? [...state.visibleToasts].reverse() : state.visibleToasts\n\n return (\n <Stack\n direction=\"vertical\"\n gap=\"sm\"\n className={className}\n {...regionProps}\n {...rest}\n ref={forkedRef}\n >\n {children}\n {queued.map((item) => {\n const { children: notificationChildren, ...notificationProps } = item.content\n return (\n <Notification\n key={item.key}\n {...notificationProps}\n onClose={() => state.close(item.key)}\n >\n {notificationChildren}\n </Notification>\n )\n })}\n </Stack>\n )\n }\n)\n\nNotificationStack.displayName = 'NotificationStack'\n"],"mappings":"ifAaA,MAAa,EAAsB,EAAwC,CAAE,UAAa,CAAC,CAAE,CAAC,ECJjF,MAA+C,EAAW,CAAmB,ECoB1F,SAAS,EACP,CAAE,WAAU,YAAW,YAAW,GAAG,GACrC,EACA,CACA,IAAM,EAAY,GAAa,MACzB,EAAa,EAAW,oBAAqB,CAAS,EAE5D,OACE,EAAA,cAAC,EAAD,CAAW,UAAW,EAAY,GAAI,EAAW,KAEtC,EADR,CACQ,CAEf,CAEA,MAAa,EAAmB,EAC9B,EACA,kBACF,ECjBA,SAAS,EACP,CAAE,WAAU,YAAW,YAAW,GAAG,GACrC,EACA,CACA,IAAM,EAAY,GAAa,KACzB,EAAa,EAAW,qBAAsB,CAAS,EAE7D,OACE,EAAA,cAAC,EAAD,CAAW,UAAW,EAAY,GAAI,EAAW,KAEtC,EADR,CACQ,CAEf,CAEA,MAAa,EAAoB,EAC/B,EACA,mBACF,EC4Da,EAAe,GAExB,CACE,UACA,WAAW,GACX,WACA,YACA,aAAa,QACb,QAAQ,UACR,iBAAiB,GACjB,QAAQ,IACR,cACA,OACA,QACA,OACA,QACA,iBAAiB,KACjB,OAAO,SACP,UACA,UACA,SACA,kBACA,GAAG,GAEL,IACG,CACH,GAAM,CACJ,QACA,UACA,YACA,YACA,SACA,UACA,kBACA,QAAS,GACP,EAAyB,CAC3B,iBACA,YAAa,eACb,UACA,SACA,kBACA,MACA,SACF,CAAC,EAKK,EAAmB,EAAe,CACtC,QAAS,EACT,QACA,QAAS,GAAY,EACrB,OAAQ,CACV,CAAC,EAEK,EAAa,EACjB,eACA,OACA,EACA,CACE,OACF,EACA,CACF,EAIA,OAFK,EAGH,EAAA,cAAC,EAAoB,SAArB,CAA8B,MAAO,CAAE,QAAS,EAAU,OAAM,CA4BlC,EA3B5B,EAAA,cAAC,MAAD,CACE,UAAW,EAAW,EAAY,CAAe,EAC3C,OACN,kBAAiB,EAAQ,EAAU,IAAA,GACnC,mBAAkB,GAAS,EAAO,EAAS,IAAA,GAC3C,GAAI,EAAW,EAAM,CAAgB,EACrC,IAAK,CAoBF,EAlBF,IACE,OAAO,GAAS,SACf,EAAA,cAAC,EAAD,CACE,MAAO,EACP,UAAW,EAAW,oBAAqB,CAAE,mBAAoB,CAAC,CAAC,CAAM,CAAC,CAC3E,CAAA,EAED,GAEH,GACC,EAAA,cAAC,EAAD,CAAmB,GAAI,EAAS,UAAW,CAExB,EADhB,CACgB,EAEpB,GAAQ,EAAA,cAAC,EAAD,CAAkB,GAAI,CAAgC,EAAvB,CAAuB,EAC9D,EACA,EACA,GAAe,EAAA,cAAC,EAAD,CAAa,MAAO,EAAY,QAAS,CAAQ,CAAA,CAC9D,CACuB,EA/BT,IAiCzB,CACF,EAEA,EAAa,YAAc,eCnM3B,MAAa,EAAmB,GAC7B,CAAE,YAAW,GAAG,GAAQ,IAAQ,CAC/B,IAAM,EAAa,EAAW,oBAAqB,CAAS,EAE5D,OAAO,EAAA,cAAC,EAAD,CAAM,UAAW,EAAY,GAAI,EAAW,KAAM,CAAA,CAC3D,CACF,EAEA,EAAiB,YAAc,mBCY/B,MAAa,EAAoB,IAAI,EAKrC,SAAgB,EACd,EACA,EAAiD,CAAC,EAC1C,CACR,OAAO,EAAkB,IAAI,CAAE,WAAU,GAAG,CAAQ,CAAC,CACvD,CAGA,SAAgB,EAAkB,EAAmB,CACnD,EAAkB,MAAM,CAAG,CAC7B,CCrBA,MAAa,EAAoB,GAC9B,CAAE,WAAU,YAAW,UAAS,GAAG,GAAQ,IAAQ,CAClD,GAAM,CAAE,YAAW,cAAa,SAAU,EAAoB,EAAmB,CAAG,EAEpF,GAAI,EAAM,cAAc,SAAW,GAAK,CAAC,EACvC,OAAO,KAKT,IAAM,EAAS,EAAU,CAAC,GAAG,EAAM,aAAa,CAAC,CAAC,QAAQ,EAAI,EAAM,cAEpE,OACE,EAAA,cAAC,EAAD,CACE,UAAU,WACV,IAAI,KACO,YACX,GAAI,EACJ,GAAI,EACJ,IAAK,CAeA,EAbJ,EACA,EAAO,IAAK,GAAS,CACpB,GAAM,CAAE,SAAU,EAAsB,GAAG,GAAsB,EAAK,QACtE,OACE,EAAA,cAAC,EAAD,CACE,IAAK,EAAK,IACV,GAAI,EACJ,YAAe,EAAM,MAAM,EAAK,GAAG,CAGvB,EADX,CACW,CAElB,CAAC,CACI,CAEX,CACF,EAEA,EAAkB,YAAc"}
@@ -1,2 +1,2 @@
1
- import"./focus-ring-SR_LwaN7.js";import{c as e}from"./slot-CNhFZdHF.js";import{t}from"./useForkedRef-DVEfT-KI.js";import{n,t as r}from"./FormHelp-AE6_iSLJ.js";import{t as i}from"./validationClassName-gRGs4KBm.js";import{t as a}from"./renderFormCheck-DN_-V62U.js";import{n as o,r as s}from"./unhandledProps-9Kdj7WVf.js";import{t as c}from"./flex-CmlJbKVj.js";import l,{createContext as u,forwardRef as d,useContext as f,useRef as p}from"react";import m from"classnames";import{useRadio as h,useRadioGroup as g}from"react-aria";import{useRadioGroupState as _}from"react-stately";const v=u(null),y=[...o,`form`,`name`,`required`,`tabIndex`],b=d(({button:n,children:r,className:o,color:c,disabled:u,id:d,label:g,size:_,style:b,...x},S)=>{let C=f(v);if(!C)throw Error(`Radio must be rendered inside a RadioGroup.`);let{describedBy:w,state:T,valid:E}=C,D=T.isInvalid,O=p(null),k=t(S,O),A=g??r,{inputProps:j}=h({...x,children:A,isDisabled:u},T,O),M=m(i(D,E));return a({button:n,className:o,color:c,input:l.createElement(`input`,{...s(j,x,y),"aria-describedby":e(x[`aria-describedby`],w),className:M,id:d,ref:k}),invalid:D,label:A,size:_,style:b,valid:E})});b.displayName=`Radio`;const x=d(({children:t,className:a,defaultValue:o,description:u,disabled:d,errorMessage:f,invalid:p,label:h,name:y,onChange:b,orientation:x,required:S,valid:C,value:w,...T},E)=>{let D={...T,defaultValue:o,description:u,errorMessage:f,isDisabled:d,isInvalid:p,isRequired:S,label:h,name:y,onChange:b,orientation:x,value:w},O=_(D),{radioGroupProps:k,labelProps:A,descriptionProps:j,errorMessageProps:M}=g(D,O),N=m(`form-field`,i(p,C),a),P=e(!!u&&j.id,!!(p&&f)&&M.id),F=l.createElement(v.Provider,{value:{describedBy:P,state:O,valid:C}},t);return l.createElement(`fieldset`,{...s(k,T,[`onBlur`,`onFocus`]),"aria-describedby":e(P,T[`aria-describedby`]),className:N,ref:E},h&&l.createElement(`legend`,{className:`form-label`,...A},h),x===`horizontal`?l.createElement(c,{wrap:`wrap`,gap:`md`},F):F,u&&l.createElement(r,j,u),p&&f&&l.createElement(n,{invalid:!0,...M},f))});x.displayName=`RadioGroup`;export{b as n,x as t};
2
- //# sourceMappingURL=radio-DOFYCfJi.js.map
1
+ import"./focus-ring-SR_LwaN7.js";import{c as e}from"./slot-CNhFZdHF.js";import{t}from"./useForkedRef-DVEfT-KI.js";import{n,t as r}from"./FormHelp-AE6_iSLJ.js";import{t as i}from"./validationClassName-gRGs4KBm.js";import{t as a}from"./renderFormCheck-DN_-V62U.js";import{n as o,r as s}from"./unhandledProps-9Kdj7WVf.js";import{t as c}from"./flex-B52oLCCC.js";import l,{createContext as u,forwardRef as d,useContext as f,useRef as p}from"react";import m from"classnames";import{useRadio as h,useRadioGroup as g}from"react-aria";import{useRadioGroupState as _}from"react-stately";const v=u(null),y=[...o,`form`,`name`,`required`,`tabIndex`],b=d(({button:n,children:r,className:o,color:c,disabled:u,id:d,label:g,size:_,style:b,...x},S)=>{let C=f(v);if(!C)throw Error(`Radio must be rendered inside a RadioGroup.`);let{describedBy:w,state:T,valid:E}=C,D=T.isInvalid,O=p(null),k=t(S,O),A=g??r,{inputProps:j}=h({...x,children:A,isDisabled:u},T,O),M=m(i(D,E));return a({button:n,className:o,color:c,input:l.createElement(`input`,{...s(j,x,y),"aria-describedby":e(x[`aria-describedby`],w),className:M,id:d,ref:k}),invalid:D,label:A,size:_,style:b,valid:E})});b.displayName=`Radio`;const x=d(({children:t,className:a,defaultValue:o,description:u,disabled:d,errorMessage:f,invalid:p,label:h,name:y,onChange:b,orientation:x,required:S,valid:C,value:w,...T},E)=>{let D={...T,defaultValue:o,description:u,errorMessage:f,isDisabled:d,isInvalid:p,isRequired:S,label:h,name:y,onChange:b,orientation:x,value:w},O=_(D),{radioGroupProps:k,labelProps:A,descriptionProps:j,errorMessageProps:M}=g(D,O),N=m(`form-field`,i(p,C),a),P=e(!!u&&j.id,!!(p&&f)&&M.id),F=l.createElement(v.Provider,{value:{describedBy:P,state:O,valid:C}},t);return l.createElement(`fieldset`,{...s(k,T,[`onBlur`,`onFocus`]),"aria-describedby":e(P,T[`aria-describedby`]),className:N,ref:E},h&&l.createElement(`legend`,{className:`form-label`,...A},h),x===`horizontal`?l.createElement(c,{wrap:`wrap`,gap:`md`},F):F,u&&l.createElement(r,j,u),p&&f&&l.createElement(n,{invalid:!0,...M},f))});x.displayName=`RadioGroup`;export{b as n,x as t};
2
+ //# sourceMappingURL=radio-B6gJdtoN.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-DOFYCfJi.js","names":[],"sources":["../../src/components/radio/context.ts","../../src/components/radio/Radio.tsx","../../src/components/radio/RadioGroup.tsx"],"sourcesContent":["import { createContext } from 'react'\nimport { RadioGroupState } from 'react-stately'\n\nexport interface RadioGroupContextValue {\n state: RadioGroupState\n /**\n * `RadioGroup`'s own `valid` prop, mirrored here since it has no react-stately equivalent to\n * read off `state` the way `isInvalid` does — each `Radio` needs it to apply its own\n * `is-valid` class.\n */\n valid?: boolean\n /**\n * The ids of the group's description and error message, when they are rendered. Each item is\n * described by them too.\n */\n describedBy?: string\n}\n\nexport const RadioGroupContext = createContext<RadioGroupContextValue | null>(null)\n","import React, { forwardRef, InputHTMLAttributes, ReactNode, useContext, useRef } from 'react'\nimport classNames from 'classnames'\nimport { AriaRadioProps, useRadio } from 'react-aria'\n\nimport { useForkedRef } from '../../hooks'\nimport { ContextColor } from '../../types'\nimport { validationClassName } from '../../utils/validationClassName'\nimport { joinIds } from '../../utils/idRefs'\nimport { mergeUnhandledProps, TOGGLE_PROPS } from '../../utils/unhandledProps'\n\nimport { RadioGroupContext } from './context'\nimport { ButtonObject, renderFormCheck } from '../form/renderFormCheck'\n\nexport interface RadioProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'checked' | 'defaultChecked' | 'onChange' | 'size'\n> {\n /**\n * Create button-like radios. Combine with `<RadioGroup>` to build radio toggle-button groups.\n */\n button?: ButtonObject\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Sets the color of the radio indicator to one of Chassis context colors. Ignored when `button` is set.\n */\n color?: ContextColor\n /**\n * The id global attribute defines an identifier (ID) that must be unique in the whole document.\n */\n id?: string\n /**\n * The element represents a caption for a component.\n *\n * Children are accepted as an alias for this prop — `label` wins when both are given.\n * react-aria, which backs this component, calls the same thing `children`; this package renames\n * it to `label`, and honouring both means the shape React developers reach for first still\n * names the control instead of silently producing an unlabelled one.\n */\n label?: ReactNode\n /**\n * Size the component sm or lg.\n */\n size?: 'sm' | 'lg'\n /**\n * The value of the radio button, used to identify it within its `<RadioGroup>`.\n */\n value: string\n}\n\n// The group owns its radios' `name`, `form` and required state, and which one is the tab stop.\nconst RADIO_PROPS = [...TOGGLE_PROPS, 'form', 'name', 'required', 'tabIndex']\n\n// `<Radio>` must be rendered inside a `<RadioGroup>` — react-aria has no standalone\n// radio hook, only useRadio(props, RadioGroupState, ref), because a lone radio with no group is\n// not a meaningful accessible control (see https://chassis-ui.com/css/docs/forms/checkbox-radio).\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(\n ({ button, children, className, color, disabled, id, label, size, style, ...rest }, ref) => {\n const group = useContext(RadioGroupContext)\n\n if (!group) {\n throw new Error('Radio must be rendered inside a RadioGroup.')\n }\n\n const { describedBy: groupDescribedBy, state: groupState, valid } = group\n const invalid = groupState.isInvalid\n\n const inputRef = useRef<HTMLInputElement>(null)\n const forkedRef = useForkedRef(ref, inputRef)\n\n // `label` is this package's name for what react-aria calls `children`. Accept either, so the\n // shape React developers reach for first (`<Radio>Label</Radio>`) names the control instead of\n // being silently dropped — see the note on `label` in `RadioProps`.\n const resolvedLabel = label ?? children\n\n const { inputProps } = useRadio(\n {\n ...rest,\n children: resolvedLabel,\n isDisabled: disabled\n } as AriaRadioProps,\n groupState,\n inputRef\n )\n\n const inputClassName = classNames(validationClassName(invalid, valid))\n\n return renderFormCheck({\n button,\n className,\n color,\n // Described by the group's description and error message, as react-aria intends, but only\n // by those the group renders (FORMS.md, gotcha 6).\n input: (\n <input\n {...mergeUnhandledProps(inputProps, rest, RADIO_PROPS)}\n aria-describedby={joinIds(rest['aria-describedby'], groupDescribedBy)}\n className={inputClassName}\n id={id}\n ref={forkedRef}\n />\n ),\n invalid,\n label: resolvedLabel,\n size,\n style,\n valid\n })\n }\n)\n\nRadio.displayName = 'Radio'\n","import React, { forwardRef, HTMLAttributes, ReactNode } from 'react'\nimport classNames from 'classnames'\nimport { AriaRadioGroupProps, useRadioGroup } from 'react-aria'\nimport { RadioGroupProps as StatelyRadioGroupProps, useRadioGroupState } from 'react-stately'\n\nimport { validationClassName } from '../../utils/validationClassName'\nimport { joinIds } from '../../utils/idRefs'\nimport { mergeUnhandledProps } from '../../utils/unhandledProps'\n\nimport { RadioGroupContext } from './context'\nimport { FormFeedback } from '../form/FormFeedback'\nimport { FormHelp } from '../form/FormHelp'\nimport { Flex } from '../flex'\n\nexport interface RadioGroupProps extends Omit<\n HTMLAttributes<HTMLFieldSetElement>,\n 'defaultValue' | 'onChange'\n> {\n /**\n * One or more `<Radio>` elements.\n */\n children: ReactNode\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * The selected value, uncontrolled.\n */\n defaultValue?: string\n /**\n * A description for the group, rendered below the options.\n */\n description?: ReactNode\n /**\n * Disables every radio in the group.\n */\n disabled?: boolean\n /**\n * An error message for the group, rendered below the options when `invalid` is set.\n */\n errorMessage?: ReactNode\n /**\n * Set group validation state to invalid.\n */\n invalid?: boolean\n /**\n * The group's caption, rendered as a `<legend>`.\n */\n label?: ReactNode\n /**\n * The name for the group, used for native form submission.\n */\n name?: string\n /**\n * Callback fired when the selected value changes.\n */\n onChange?: (value: string) => void\n /**\n * Lay the group's radios out on the same horizontal row instead of stacking them.\n */\n orientation?: 'horizontal' | 'vertical'\n /**\n * Marks the group as required.\n */\n required?: boolean\n /**\n * Set group validation state to valid.\n */\n valid?: boolean\n /**\n * The selected value, controlled.\n */\n value?: string\n}\n\nexport const RadioGroup = forwardRef<HTMLFieldSetElement, RadioGroupProps>(\n (\n {\n children,\n className,\n defaultValue,\n description,\n disabled,\n errorMessage,\n invalid,\n label,\n name,\n onChange,\n orientation,\n required,\n valid,\n value,\n ...rest\n },\n ref\n ) => {\n const groupProps = {\n ...rest,\n defaultValue,\n description,\n errorMessage,\n isDisabled: disabled,\n isInvalid: invalid,\n isRequired: required,\n label,\n name,\n onChange,\n orientation,\n value\n }\n\n const state = useRadioGroupState(groupProps as StatelyRadioGroupProps)\n const { radioGroupProps, labelProps, descriptionProps, errorMessageProps } = useRadioGroup(\n groupProps as AriaRadioGroupProps,\n state\n )\n\n const _className = classNames('form-field', validationClassName(invalid, valid), className)\n\n // Only the ids this group renders. react-aria's own describe the group and every item by a\n // description and an error message whether or not they exist (FORMS.md, gotcha 6).\n const describedBy = joinIds(\n Boolean(description) && descriptionProps.id,\n Boolean(invalid && errorMessage) && errorMessageProps.id\n )\n\n const items = (\n <RadioGroupContext.Provider value={{ describedBy, state, valid }}>\n {children}\n </RadioGroupContext.Provider>\n )\n\n return (\n <fieldset\n {...mergeUnhandledProps(radioGroupProps, rest, ['onBlur', 'onFocus'])}\n aria-describedby={joinIds(describedBy, rest['aria-describedby'])}\n className={_className}\n ref={ref}\n >\n {label && (\n <legend className=\"form-label\" {...labelProps}>\n {label}\n </legend>\n )}\n {orientation === 'horizontal' ? (\n <Flex wrap=\"wrap\" gap=\"md\">\n {items}\n </Flex>\n ) : (\n items\n )}\n {description && <FormHelp {...descriptionProps}>{description}</FormHelp>}\n {invalid && errorMessage && (\n <FormFeedback invalid {...errorMessageProps}>\n {errorMessage}\n </FormFeedback>\n )}\n </fieldset>\n )\n }\n)\n\nRadioGroup.displayName = 'RadioGroup'\n"],"mappings":"ikBAkBA,MAAa,EAAoB,EAA6C,IAAI,ECmC5E,EAAc,CAAC,GAAG,EAAc,OAAQ,OAAQ,WAAY,UAAU,EAK/D,EAAQ,GAClB,CAAE,SAAQ,WAAU,YAAW,QAAO,WAAU,KAAI,QAAO,OAAM,QAAO,GAAG,GAAQ,IAAQ,CAC1F,IAAM,EAAQ,EAAW,CAAiB,EAE1C,GAAI,CAAC,EACH,MAAU,MAAM,6CAA6C,EAG/D,GAAM,CAAE,YAAa,EAAkB,MAAO,EAAY,SAAU,EAC9D,EAAU,EAAW,UAErB,EAAW,EAAyB,IAAI,EACxC,EAAY,EAAa,EAAK,CAAQ,EAKtC,EAAgB,GAAS,EAEzB,CAAE,cAAe,EACrB,CACE,GAAG,EACH,SAAU,EACV,WAAY,CACd,EACA,EACA,CACF,EAEM,EAAiB,EAAW,EAAoB,EAAS,CAAK,CAAC,EAErE,OAAO,EAAgB,CACrB,SACA,YACA,QAGA,MACE,EAAA,cAAC,QAAD,CACE,GAAI,EAAoB,EAAY,EAAM,CAAW,EACrD,mBAAkB,EAAQ,EAAK,oBAAqB,CAAgB,EACpE,UAAW,EACP,KACJ,IAAK,CACN,CAAA,EAEH,UACA,MAAO,EACP,OACA,QACA,OACF,CAAC,CACH,CACF,EAEA,EAAM,YAAc,QCrCpB,MAAa,EAAa,GAEtB,CACE,WACA,YACA,eACA,cACA,WACA,eACA,UACA,QACA,OACA,WACA,cACA,WACA,QACA,QACA,GAAG,GAEL,IACG,CACH,IAAM,EAAa,CACjB,GAAG,EACH,eACA,cACA,eACA,WAAY,EACZ,UAAW,EACX,WAAY,EACZ,QACA,OACA,WACA,cACA,OACF,EAEM,EAAQ,EAAmB,CAAoC,EAC/D,CAAE,kBAAiB,aAAY,mBAAkB,qBAAsB,EAC3E,EACA,CACF,EAEM,EAAa,EAAW,aAAc,EAAoB,EAAS,CAAK,EAAG,CAAS,EAIpF,EAAc,EAClB,EAAQ,GAAgB,EAAiB,GACzC,GAAQ,GAAW,IAAiB,EAAkB,EACxD,EAEM,EACJ,EAAA,cAAC,EAAkB,SAAnB,CAA4B,MAAO,CAAE,cAAa,QAAO,OAAM,CAEnC,EADzB,CACyB,EAG9B,OACE,EAAA,cAAC,WAAD,CACE,GAAI,EAAoB,EAAiB,EAAM,CAAC,SAAU,SAAS,CAAC,EACpE,mBAAkB,EAAQ,EAAa,EAAK,mBAAmB,EAC/D,UAAW,EACN,KAoBG,EAlBP,GACC,EAAA,cAAC,SAAD,CAAQ,UAAU,aAAa,GAAI,CAE3B,EADL,CACK,EAET,IAAgB,aACf,EAAA,cAAC,EAAD,CAAM,KAAK,OAAO,IAAI,IAEhB,EADH,CACG,EAEN,EAED,GAAe,EAAA,cAAC,EAAa,EAAmB,CAAsB,EACtE,GAAW,GACV,EAAA,cAAC,EAAD,CAAc,QAAA,GAAQ,GAAI,CAEZ,EADX,CACW,CAER,CAEd,CACF,EAEA,EAAW,YAAc"}
1
+ {"version":3,"file":"radio-B6gJdtoN.js","names":[],"sources":["../../src/components/radio/context.ts","../../src/components/radio/Radio.tsx","../../src/components/radio/RadioGroup.tsx"],"sourcesContent":["import { createContext } from 'react'\nimport { RadioGroupState } from 'react-stately'\n\nexport interface RadioGroupContextValue {\n state: RadioGroupState\n /**\n * `RadioGroup`'s own `valid` prop, mirrored here since it has no react-stately equivalent to\n * read off `state` the way `isInvalid` does — each `Radio` needs it to apply its own\n * `is-valid` class.\n */\n valid?: boolean\n /**\n * The ids of the group's description and error message, when they are rendered. Each item is\n * described by them too.\n */\n describedBy?: string\n}\n\nexport const RadioGroupContext = createContext<RadioGroupContextValue | null>(null)\n","import React, { forwardRef, InputHTMLAttributes, ReactNode, useContext, useRef } from 'react'\nimport classNames from 'classnames'\nimport { AriaRadioProps, useRadio } from 'react-aria'\n\nimport { useForkedRef } from '../../hooks'\nimport { ContextColor } from '../../types'\nimport { validationClassName } from '../../utils/validationClassName'\nimport { joinIds } from '../../utils/idRefs'\nimport { mergeUnhandledProps, TOGGLE_PROPS } from '../../utils/unhandledProps'\n\nimport { RadioGroupContext } from './context'\nimport { ButtonObject, renderFormCheck } from '../form/renderFormCheck'\n\nexport interface RadioProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'checked' | 'defaultChecked' | 'onChange' | 'size'\n> {\n /**\n * Create button-like radios. Combine with `<RadioGroup>` to build radio toggle-button groups.\n */\n button?: ButtonObject\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Sets the color of the radio indicator to one of Chassis context colors. Ignored when `button` is set.\n */\n color?: ContextColor\n /**\n * The id global attribute defines an identifier (ID) that must be unique in the whole document.\n */\n id?: string\n /**\n * The element represents a caption for a component.\n *\n * Children are accepted as an alias for this prop — `label` wins when both are given.\n * react-aria, which backs this component, calls the same thing `children`; this package renames\n * it to `label`, and honouring both means the shape React developers reach for first still\n * names the control instead of silently producing an unlabelled one.\n */\n label?: ReactNode\n /**\n * Size the component sm or lg.\n */\n size?: 'sm' | 'lg'\n /**\n * The value of the radio button, used to identify it within its `<RadioGroup>`.\n */\n value: string\n}\n\n// The group owns its radios' `name`, `form` and required state, and which one is the tab stop.\nconst RADIO_PROPS = [...TOGGLE_PROPS, 'form', 'name', 'required', 'tabIndex']\n\n// `<Radio>` must be rendered inside a `<RadioGroup>` — react-aria has no standalone\n// radio hook, only useRadio(props, RadioGroupState, ref), because a lone radio with no group is\n// not a meaningful accessible control (see https://chassis-ui.com/css/docs/forms/checkbox-radio).\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(\n ({ button, children, className, color, disabled, id, label, size, style, ...rest }, ref) => {\n const group = useContext(RadioGroupContext)\n\n if (!group) {\n throw new Error('Radio must be rendered inside a RadioGroup.')\n }\n\n const { describedBy: groupDescribedBy, state: groupState, valid } = group\n const invalid = groupState.isInvalid\n\n const inputRef = useRef<HTMLInputElement>(null)\n const forkedRef = useForkedRef(ref, inputRef)\n\n // `label` is this package's name for what react-aria calls `children`. Accept either, so the\n // shape React developers reach for first (`<Radio>Label</Radio>`) names the control instead of\n // being silently dropped — see the note on `label` in `RadioProps`.\n const resolvedLabel = label ?? children\n\n const { inputProps } = useRadio(\n {\n ...rest,\n children: resolvedLabel,\n isDisabled: disabled\n } as AriaRadioProps,\n groupState,\n inputRef\n )\n\n const inputClassName = classNames(validationClassName(invalid, valid))\n\n return renderFormCheck({\n button,\n className,\n color,\n // Described by the group's description and error message, as react-aria intends, but only\n // by those the group renders (FORMS.md, gotcha 6).\n input: (\n <input\n {...mergeUnhandledProps(inputProps, rest, RADIO_PROPS)}\n aria-describedby={joinIds(rest['aria-describedby'], groupDescribedBy)}\n className={inputClassName}\n id={id}\n ref={forkedRef}\n />\n ),\n invalid,\n label: resolvedLabel,\n size,\n style,\n valid\n })\n }\n)\n\nRadio.displayName = 'Radio'\n","import React, { forwardRef, HTMLAttributes, ReactNode } from 'react'\nimport classNames from 'classnames'\nimport { AriaRadioGroupProps, useRadioGroup } from 'react-aria'\nimport { RadioGroupProps as StatelyRadioGroupProps, useRadioGroupState } from 'react-stately'\n\nimport { validationClassName } from '../../utils/validationClassName'\nimport { joinIds } from '../../utils/idRefs'\nimport { mergeUnhandledProps } from '../../utils/unhandledProps'\n\nimport { RadioGroupContext } from './context'\nimport { FormFeedback } from '../form/FormFeedback'\nimport { FormHelp } from '../form/FormHelp'\nimport { Flex } from '../flex'\n\nexport interface RadioGroupProps extends Omit<\n HTMLAttributes<HTMLFieldSetElement>,\n 'defaultValue' | 'onChange'\n> {\n /**\n * One or more `<Radio>` elements.\n */\n children: ReactNode\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * The selected value, uncontrolled.\n */\n defaultValue?: string\n /**\n * A description for the group, rendered below the options.\n */\n description?: ReactNode\n /**\n * Disables every radio in the group.\n */\n disabled?: boolean\n /**\n * An error message for the group, rendered below the options when `invalid` is set.\n */\n errorMessage?: ReactNode\n /**\n * Set group validation state to invalid.\n */\n invalid?: boolean\n /**\n * The group's caption, rendered as a `<legend>`.\n */\n label?: ReactNode\n /**\n * The name for the group, used for native form submission.\n */\n name?: string\n /**\n * Callback fired when the selected value changes.\n */\n onChange?: (value: string) => void\n /**\n * Lay the group's radios out on the same horizontal row instead of stacking them.\n */\n orientation?: 'horizontal' | 'vertical'\n /**\n * Marks the group as required.\n */\n required?: boolean\n /**\n * Set group validation state to valid.\n */\n valid?: boolean\n /**\n * The selected value, controlled.\n */\n value?: string\n}\n\nexport const RadioGroup = forwardRef<HTMLFieldSetElement, RadioGroupProps>(\n (\n {\n children,\n className,\n defaultValue,\n description,\n disabled,\n errorMessage,\n invalid,\n label,\n name,\n onChange,\n orientation,\n required,\n valid,\n value,\n ...rest\n },\n ref\n ) => {\n const groupProps = {\n ...rest,\n defaultValue,\n description,\n errorMessage,\n isDisabled: disabled,\n isInvalid: invalid,\n isRequired: required,\n label,\n name,\n onChange,\n orientation,\n value\n }\n\n const state = useRadioGroupState(groupProps as StatelyRadioGroupProps)\n const { radioGroupProps, labelProps, descriptionProps, errorMessageProps } = useRadioGroup(\n groupProps as AriaRadioGroupProps,\n state\n )\n\n const _className = classNames('form-field', validationClassName(invalid, valid), className)\n\n // Only the ids this group renders. react-aria's own describe the group and every item by a\n // description and an error message whether or not they exist (FORMS.md, gotcha 6).\n const describedBy = joinIds(\n Boolean(description) && descriptionProps.id,\n Boolean(invalid && errorMessage) && errorMessageProps.id\n )\n\n const items = (\n <RadioGroupContext.Provider value={{ describedBy, state, valid }}>\n {children}\n </RadioGroupContext.Provider>\n )\n\n return (\n <fieldset\n {...mergeUnhandledProps(radioGroupProps, rest, ['onBlur', 'onFocus'])}\n aria-describedby={joinIds(describedBy, rest['aria-describedby'])}\n className={_className}\n ref={ref}\n >\n {label && (\n <legend className=\"form-label\" {...labelProps}>\n {label}\n </legend>\n )}\n {orientation === 'horizontal' ? (\n <Flex wrap=\"wrap\" gap=\"md\">\n {items}\n </Flex>\n ) : (\n items\n )}\n {description && <FormHelp {...descriptionProps}>{description}</FormHelp>}\n {invalid && errorMessage && (\n <FormFeedback invalid {...errorMessageProps}>\n {errorMessage}\n </FormFeedback>\n )}\n </fieldset>\n )\n }\n)\n\nRadioGroup.displayName = 'RadioGroup'\n"],"mappings":"ikBAkBA,MAAa,EAAoB,EAA6C,IAAI,ECmC5E,EAAc,CAAC,GAAG,EAAc,OAAQ,OAAQ,WAAY,UAAU,EAK/D,EAAQ,GAClB,CAAE,SAAQ,WAAU,YAAW,QAAO,WAAU,KAAI,QAAO,OAAM,QAAO,GAAG,GAAQ,IAAQ,CAC1F,IAAM,EAAQ,EAAW,CAAiB,EAE1C,GAAI,CAAC,EACH,MAAU,MAAM,6CAA6C,EAG/D,GAAM,CAAE,YAAa,EAAkB,MAAO,EAAY,SAAU,EAC9D,EAAU,EAAW,UAErB,EAAW,EAAyB,IAAI,EACxC,EAAY,EAAa,EAAK,CAAQ,EAKtC,EAAgB,GAAS,EAEzB,CAAE,cAAe,EACrB,CACE,GAAG,EACH,SAAU,EACV,WAAY,CACd,EACA,EACA,CACF,EAEM,EAAiB,EAAW,EAAoB,EAAS,CAAK,CAAC,EAErE,OAAO,EAAgB,CACrB,SACA,YACA,QAGA,MACE,EAAA,cAAC,QAAD,CACE,GAAI,EAAoB,EAAY,EAAM,CAAW,EACrD,mBAAkB,EAAQ,EAAK,oBAAqB,CAAgB,EACpE,UAAW,EACP,KACJ,IAAK,CACN,CAAA,EAEH,UACA,MAAO,EACP,OACA,QACA,OACF,CAAC,CACH,CACF,EAEA,EAAM,YAAc,QCrCpB,MAAa,EAAa,GAEtB,CACE,WACA,YACA,eACA,cACA,WACA,eACA,UACA,QACA,OACA,WACA,cACA,WACA,QACA,QACA,GAAG,GAEL,IACG,CACH,IAAM,EAAa,CACjB,GAAG,EACH,eACA,cACA,eACA,WAAY,EACZ,UAAW,EACX,WAAY,EACZ,QACA,OACA,WACA,cACA,OACF,EAEM,EAAQ,EAAmB,CAAoC,EAC/D,CAAE,kBAAiB,aAAY,mBAAkB,qBAAsB,EAC3E,EACA,CACF,EAEM,EAAa,EAAW,aAAc,EAAoB,EAAS,CAAK,EAAG,CAAS,EAIpF,EAAc,EAClB,EAAQ,GAAgB,EAAiB,GACzC,GAAQ,GAAW,IAAiB,EAAkB,EACxD,EAEM,EACJ,EAAA,cAAC,EAAkB,SAAnB,CAA4B,MAAO,CAAE,cAAa,QAAO,OAAM,CAEnC,EADzB,CACyB,EAG9B,OACE,EAAA,cAAC,WAAD,CACE,GAAI,EAAoB,EAAiB,EAAM,CAAC,SAAU,SAAS,CAAC,EACpE,mBAAkB,EAAQ,EAAa,EAAK,mBAAmB,EAC/D,UAAW,EACN,KAoBG,EAlBP,GACC,EAAA,cAAC,SAAD,CAAQ,UAAU,aAAa,GAAI,CAE3B,EADL,CACK,EAET,IAAgB,aACf,EAAA,cAAC,EAAD,CAAM,KAAK,OAAO,IAAI,IAEhB,EADH,CACG,EAEN,EAED,GAAe,EAAA,cAAC,EAAa,EAAmB,CAAsB,EACtE,GAAW,GACV,EAAA,cAAC,EAAD,CAAc,QAAA,GAAQ,GAAI,CAEZ,EADX,CACW,CAER,CAEd,CACF,EAEA,EAAW,YAAc"}
@@ -1,4 +1,4 @@
1
- import { a as Shapes, n as ContextColor } from "./types-CS_40Txv.js";
1
+ import { r as ContextColor, s as Shapes } from "./types-D6FM7bYR.js";
2
2
  import React, { CSSProperties, ReactNode } from "react";
3
3
  //#region src/components/form/renderFormCheck.d.ts
4
4
  type ButtonObject = {
@@ -21,4 +21,4 @@ type ButtonObject = {
21
21
  };
22
22
  //#endregion
23
23
  export { ButtonObject as t };
24
- //# sourceMappingURL=renderFormCheck-DZh_5Df8.d.ts.map
24
+ //# sourceMappingURL=renderFormCheck-nKgpa_a3.d.ts.map
@@ -0,0 +1,2 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-BhGNZQja.js";import{a as t,i as n}from"./breakpoints-CGk8szzR.js";import r,{Fragment as i,forwardRef as a}from"react";import o from"classnames";const s=(e,t)=>e===!0?`${t}flex-fill`:e===`auto`?`${t}w-auto`:typeof e==`number`||typeof e==`string`?Number(e)===12?`${t}w-100`:`${t}w-${e}/12`:null;function c({children:e,animation:i,className:a,color:c,component:l,span:u,...d},f){let p=l??`span`,m=o(`skeleton`,i&&`skeleton-${i}`,{[`bg-${c}`]:c},n([t(u,s)]),a);return r.createElement(p,{className:m,...d,ref:f},e)}const l=e(c,`Skeleton`);function u({children:e,color:t,component:n,loading:a,spans:o,...s},c){if(!a)return r.createElement(r.Fragment,null,e);let u=o===void 0?[void 0]:Array.isArray(o)?o:[o];return r.createElement(r.Fragment,null,u.map((e,a)=>r.createElement(i,{key:a},a>0&&` `,r.createElement(l,{component:n,span:e,color:t,...s,ref:a===0?c:void 0}))))}const d=a(u);d.displayName=`SkeletonLoader`;export{l as n,d as t};
2
+ //# sourceMappingURL=skeleton-CmZBLJwp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton-CmZBLJwp.js","names":[],"sources":["../../src/components/skeleton/Skeleton.tsx","../../src/components/skeleton/SkeletonLoader.tsx"],"sourcesContent":["import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport { WidthSpan, responsiveClassNames, responsiveProp } from '../../utils/breakpoints'\nimport { ContextColor, Responsive } from '../../types'\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\n\ntype SkeletonOwnProps<C extends ElementType> = {\n /**\n * Adds `skeleton-{animation}` alongside the base `skeleton` class, so the element animates\n * itself as well as any nested `<Skeleton>` children. Nest plain `<Skeleton>` children inside\n * it for the glow pulse to reach them too, or apply `wave` to a container of one or more\n * `<Skeleton>` children for a directional sweep across the whole group.\n */\n animation?: 'glow' | 'wave'\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Sets the color of the component to one of Chassis context colors.\n */\n color?: ContextColor\n /**\n * Component used for the root node. Either a string to use an HTML element or a component —\n * e.g. `Avatar` or `Button`. Its own props are type-checked at the call site once passed here.\n *\n * @default 'span'\n */\n component?: C\n /**\n * Width of the skeleton in twelfths of its parent (`span={6}` is half, mapped to the\n * `w-{n}/12` class; `span={12}` is `w-100`), `'auto'` for its natural width (`w-auto`), or\n * `true` to fill the rest of a flex row (`flex-fill`). Unset by default, so the rendered\n * element's own intrinsic width applies — set it explicitly (e.g. `span={12}`) for a\n * full-width text line; leave it unset when `component` is something that sizes itself, like\n * `Avatar` or `Button`. An object sets the width from a breakpoint up: `{ base: 12, md: 6 }`.\n *\n * @type { Responsive<'auto' | number | string | boolean> }\n */\n span?: Responsive<WidthSpan>\n}\n\nexport type SkeletonProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n SkeletonOwnProps<C>\n>\n\ntype SkeletonComponent = (<C extends ElementType = 'span'>(\n props: SkeletonProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\n// chassis-css has the fractions `w-1/12` to `w-11/12`; twelve twelfths is `w-100`.\nconst spanClassName = (span: WidthSpan, prefix: string) => {\n if (span === true) return `${prefix}flex-fill`\n if (span === 'auto') return `${prefix}w-auto`\n if (typeof span === 'number' || typeof span === 'string') {\n return Number(span) === 12 ? `${prefix}w-100` : `${prefix}w-${span}/12`\n }\n return null\n}\n\nfunction SkeletonRender<C extends ElementType = 'span'>(\n { children, animation, className, color, component, span, ...rest }: SkeletonProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'span'\n const _className = classNames(\n 'skeleton',\n animation && `skeleton-${animation}`,\n { [`bg-${color}`]: color },\n responsiveClassNames([responsiveProp(span, spanClassName)]),\n className\n )\n\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const Skeleton = createPolymorphicComponent<SkeletonComponent>(\n SkeletonRender as ForwardRefRenderFunction<Element, SkeletonProps<ElementType>>,\n 'Skeleton'\n)\n","import React, {\n ComponentPropsWithoutRef,\n ElementType,\n ForwardedRef,\n forwardRef,\n ForwardRefRenderFunction,\n Fragment,\n ReactElement,\n ReactNode\n} from 'react'\n\nimport { WidthSpan } from '../../utils/breakpoints'\nimport { PolymorphicRef } from '../../utils/polymorphic'\nimport { ContextColor } from '../../types'\nimport { Skeleton, SkeletonProps } from './Skeleton'\n\ntype SkeletonLoaderOwnProps<C extends ElementType> = {\n /**\n * The real content, rendered unchanged (no wrapping element) once `loading` is `false`.\n */\n children: ReactNode\n /**\n * Sets the color of the generated skeleton lines to one of Chassis context colors.\n */\n color?: ContextColor\n /**\n * Component used for the generated skeleton(s) — e.g. `Avatar` or `Button` — for swapping\n * non-text content, not just text runs. Its own props are type-checked at the call site once\n * passed here, same as `Skeleton`'s own `component` prop.\n *\n * @default 'span'\n */\n component?: C\n /**\n * Swaps `children` for one `<Skeleton>` per entry in `spans` while `true`.\n */\n loading: boolean\n /**\n * One skeleton line per entry, using the same values as `Skeleton`'s `span` prop — e.g.\n * `[12, 6]` for a full-width line followed by a half-width one. A single value (e.g. `6`) is\n * shorthand for a single line, equivalent to `[6]`. Leave unset for a single skeleton sized by\n * `component`'s own intrinsic width instead — e.g. an `Avatar`'s `size` prop. Rendered instead\n * of `children` while `loading` is `true`; ignored once `loading` is `false`.\n *\n * @type { 'auto' | number | string | boolean | Array<'auto' | number | string | boolean> }\n */\n spans?: WidthSpan | WidthSpan[]\n}\n\n// Spelled out rather than `PolymorphicComponentProps`, which adds `asChild`: `SkeletonLoader`\n// renders no element of its own (it swaps its `children` for generated `Skeleton` lines), so\n// there's nothing for a child element to stand in for. (`Omit`-ing it from that type instead\n// breaks `C`'s inference from `component`.)\nexport type SkeletonLoaderProps<C extends ElementType = 'span'> = SkeletonLoaderOwnProps<C> &\n Omit<ComponentPropsWithoutRef<C>, keyof SkeletonLoaderOwnProps<C> | 'asChild'>\n\ntype SkeletonLoaderComponent = (<C extends ElementType = 'span'>(\n props: SkeletonLoaderProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\n/**\n * A pure content swap: no wrapping element of its own, so `.skeleton-glow`/`.skeleton-wave`\n * won't reach the lines it generates unless applied to a container already in the tree — see\n * `Skeleton`'s own docs for why the animation classes need a `.skeleton` descendant to animate.\n *\n * The ref goes to the first generated skeleton while `loading`, and is `null` once the real\n * content shows: that content is the caller's, with refs of its own.\n */\nfunction SkeletonLoaderRender<C extends ElementType = 'span'>(\n { children, color, component, loading, spans, ...rest }: SkeletonLoaderProps<C>,\n ref: ForwardedRef<Element>\n) {\n if (!loading) return <>{children}</>\n\n const spanList = spans === undefined ? [undefined] : Array.isArray(spans) ? spans : [spans]\n\n return (\n <>\n {spanList.map((span, index) => (\n // eslint-disable-next-line react/no-array-index-key -- `spans` is a static prop array\n <Fragment key={index}>\n {index > 0 && ' '}\n {/* `rest` is `C`'s own props minus `SkeletonLoaderOwnProps`'s keys, which structurally\n satisfies what `Skeleton<C>` wants (`C`'s own props minus its own, different, key\n set) — TS can't verify that across two independently-generic components, hence the\n cast. */}\n <Skeleton\n component={component}\n span={span}\n color={color}\n {...(rest as unknown as SkeletonProps<C>)}\n ref={index === 0 ? ref : undefined}\n />\n </Fragment>\n ))}\n </>\n )\n}\n\n// `forwardRef` takes a render function that isn't generic, so the generic type is cast back on,\n// as `createPolymorphicComponent` does.\nexport const SkeletonLoader = forwardRef(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n SkeletonLoaderRender as ForwardRefRenderFunction<Element, any>\n) as unknown as SkeletonLoaderComponent\n\nSkeletonLoader.displayName = 'SkeletonLoader'\n"],"mappings":"kNAyDA,MAAM,GAAiB,EAAiB,IAClC,IAAS,GAAa,GAAG,EAAO,WAChC,IAAS,OAAe,GAAG,EAAO,QAClC,OAAO,GAAS,UAAY,OAAO,GAAS,SACvC,OAAO,CAAI,IAAM,GAAK,GAAG,EAAO,OAAS,GAAG,EAAO,IAAI,EAAK,KAE9D,KAGT,SAAS,EACP,CAAE,WAAU,YAAW,YAAW,QAAO,YAAW,OAAM,GAAG,GAC7D,EACA,CACA,IAAM,EAAY,GAAa,OACzB,EAAa,EACjB,WACA,GAAa,YAAY,IACzB,EAAG,MAAM,KAAU,CAAM,EACzB,EAAqB,CAAC,EAAe,EAAM,CAAa,CAAC,CAAC,EAC1D,CACF,EAEA,OACE,EAAA,cAAC,EAAD,CAAW,UAAW,EAAY,GAAI,EAAW,KAEtC,EADR,CACQ,CAEf,CAEA,MAAa,EAAW,EACtB,EACA,UACF,ECrBA,SAAS,EACP,CAAE,WAAU,QAAO,YAAW,UAAS,QAAO,GAAG,GACjD,EACA,CACA,GAAI,CAAC,EAAS,OAAO,EAAA,cAAA,EAAA,SAAA,KAAG,CAAW,EAEnC,IAAM,EAAW,IAAU,IAAA,GAAY,CAAC,IAAA,EAAS,EAAI,MAAM,QAAQ,CAAK,EAAI,EAAQ,CAAC,CAAK,EAE1F,OACE,EAAA,cAAA,EAAA,SAAA,KACG,EAAS,KAAK,EAAM,IAEnB,EAAA,cAAC,EAAD,CAAU,IAAK,CAaL,EAZP,EAAQ,GAAK,IAKd,EAAA,cAAC,EAAD,CACa,YACL,OACC,QACP,GAAK,EACL,IAAK,IAAU,EAAI,EAAM,IAAA,EAC1B,CAAA,CACO,CACX,CACD,CAEN,CAIA,MAAa,EAAiB,EAE5B,CACF,EAEA,EAAe,YAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"spacingClassName-DVhk8m3P.js","names":[],"sources":["../../src/utils/spacingClassName.ts"],"sourcesContent":["import { Spacing } from '../types'\n\n// A spacing prop (`gap`/`rowGap`/`gutter`/...) is typed `Spacing | 0`, but `0` is meaningful\n// (chassis-css's `gap-0` etc. exist) while `undefined`/`false`-ish values mean \"not set\" — a\n// plain truthy check would drop `0`, so every caller needs this same `typeof` guard instead.\n// Shared by `Flex`, `Stack`, `Row`, and `CardBody`'s own `layoutClassNames`/`_className` builders,\n// which otherwise duplicated it once per spacing prop (`gap`, `rowGap`, `columnGap`, `gutter`,\n// `gutterX`, `gutterY`, ...).\nexport const spacingClassName = (\n base: string,\n value: Spacing | 0 | undefined,\n prefix = ''\n): string | null =>\n typeof value === 'string' || typeof value === 'number' ? `${prefix}${base}-${value}` : null\n"],"mappings":"AAQA,MAAa,GACX,EACA,EACA,EAAS,KAET,OAAO,GAAU,UAAY,OAAO,GAAU,SAAW,GAAG,IAAS,EAAK,GAAG,IAAU"}
1
+ {"version":3,"file":"spacingClassName-DVhk8m3P.js","names":[],"sources":["../../src/utils/spacingClassName.ts"],"sourcesContent":["import { Spacing } from '../types'\n\n// A spacing prop (`gap`/`rowGap`/`columnGap`) is typed `Spacing | 0`, but `0` is meaningful\n// (chassis-css's `gap-0` etc. exist) while `undefined`/`false`-ish values mean \"not set\" — a\n// plain truthy check would drop `0`, so every caller needs this same `typeof` guard instead.\n// Shared by `Flex`, `Stack` and `CardBody`'s own `layoutClassNames`/`_className` builders, which\n// otherwise duplicated it once per spacing prop.\nexport const spacingClassName = (\n base: string,\n value: Spacing | 0 | undefined,\n prefix = ''\n): string | null =>\n typeof value === 'string' || typeof value === 'number' ? `${prefix}${base}-${value}` : null\n"],"mappings":"AAOA,MAAa,GACX,EACA,EACA,EAAS,KAET,OAAO,GAAU,UAAY,OAAO,GAAU,SAAW,GAAG,IAAS,EAAK,GAAG,IAAU"}
@@ -0,0 +1,2 @@
1
+ import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-BhGNZQja.js";import{a as t,i as n,n as r}from"./breakpoints-CGk8szzR.js";import{t as i}from"./spacingClassName-DVhk8m3P.js";import a from"react";import o from"classnames";const s=(e,t)=>`${t}${e===`vertical`?`vstack`:`hstack`}`;function c({children:e,className:c,component:l,direction:u=`horizontal`,gap:d,...f},p){let m=l??`div`,h=o(r(u)===void 0&&`hstack`,n([t(u,s)]),i(`gap`,d),c);return a.createElement(m,{className:h,...f,ref:p},e)}const l=e(c,`Stack`);export{l as t};
2
+ //# sourceMappingURL=stack-DK5F53VT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack-DK5F53VT.js","names":[],"sources":["../../src/components/stack/Stack.tsx"],"sourcesContent":["import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'\nimport classNames from 'classnames'\n\nimport {\n createPolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef\n} from '../../utils/polymorphic'\nimport { baseValue, responsiveClassNames, responsiveProp } from '../../utils/breakpoints'\nimport { spacingClassName } from '../../utils/spacingClassName'\nimport { Responsive, Spacing } from '../../types'\n\nconst directionClassName = (direction: 'horizontal' | 'vertical', prefix: string) =>\n `${prefix}${direction === 'vertical' ? 'vstack' : 'hstack'}`\n\ntype StackOwnProps<C extends ElementType> = {\n /**\n * A string of all className you want applied to the component.\n */\n className?: string\n /**\n * Component used for the root node. Either a string to use a HTML element or a component.\n */\n component?: C\n /**\n * Lays children out in a row (`horizontal`, the default, maps to `.hstack`) or a column\n * (`vertical`, maps to `.vstack`). An object switches the direction from a breakpoint up:\n * `{ base: 'vertical', md: 'horizontal' }`. The breakpoints are container queries, so they\n * require a `.contains-inline` ancestor (not applied by `Stack` itself — see the docs) to\n * establish the container context they evaluate against.\n */\n direction?: Responsive<'horizontal' | 'vertical'>\n /**\n * Spacing between children, mapped to the `gap-*` utility classes.\n *\n * @type { Spacing | 0 }\n */\n gap?: Spacing | 0\n}\n\nexport type StackProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n StackOwnProps<C>\n>\n\ntype StackComponent = (<C extends ElementType = 'div'>(\n props: StackProps<C> & { ref?: PolymorphicRef<C> }\n) => ReactElement | null) & { displayName?: string }\n\nfunction StackRender<C extends ElementType = 'div'>(\n { children, className, component, direction = 'horizontal', gap, ...rest }: StackProps<C>,\n ref: PolymorphicRef<C>\n) {\n const Component = component ?? 'div'\n const _className = classNames(\n // An object with no `base` still starts from the default direction.\n baseValue(direction) === undefined && 'hstack',\n responsiveClassNames([responsiveProp(direction, directionClassName)]),\n spacingClassName('gap', gap),\n className\n )\n\n return (\n <Component className={_className} {...rest} ref={ref}>\n {children}\n </Component>\n )\n}\n\nexport const Stack = createPolymorphicComponent<StackComponent>(\n StackRender as ForwardRefRenderFunction<Element, StackProps<ElementType>>,\n 'Stack'\n)\n"],"mappings":"6OAYA,MAAM,GAAsB,EAAsC,IAChE,GAAG,IAAS,IAAc,WAAa,SAAW,WAoCpD,SAAS,EACP,CAAE,WAAU,YAAW,YAAW,YAAY,aAAc,MAAK,GAAG,GACpE,EACA,CACA,IAAM,EAAY,GAAa,MACzB,EAAa,EAEjB,EAAU,CAAS,IAAM,IAAA,IAAa,SACtC,EAAqB,CAAC,EAAe,EAAW,CAAkB,CAAC,CAAC,EACpE,EAAiB,MAAO,CAAG,EAC3B,CACF,EAEA,OACE,EAAA,cAAC,EAAD,CAAW,UAAW,EAAY,GAAI,EAAW,KAEtC,EADR,CACQ,CAEf,CAEA,MAAa,EAAQ,EACnB,EACA,OACF"}
@@ -3,6 +3,20 @@
3
3
  * Breakpoints
4
4
  */
5
5
  type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
6
+ /**
7
+ * Container breakpoints: the same widths, measured on the nearest query container instead of the
8
+ * viewport. chassis-css's `@md:` classes.
9
+ */
10
+ type ContainerBreakpoint = '@sm' | '@md' | '@lg' | '@xl' | '@2xl';
11
+ /**
12
+ * A prop value that can change with the width. A plain value applies at every width. An object
13
+ * holds one value per width: `base` from the narrowest, each breakpoint key from that breakpoint
14
+ * up, as in `{ base: 'column', md: 'row' }`. `K` is the keys the prop reads: the viewport
15
+ * breakpoints unless the component also takes the container ones.
16
+ */
17
+ type Responsive<T, K extends string = Breakpoint> = T | ({
18
+ base?: T;
19
+ } & Partial<Record<K, T>>);
6
20
  /**
7
21
  * Context colors
8
22
  */
@@ -31,5 +45,5 @@ type Spacing = (typeof SPACING)[number];
31
45
  */
32
46
  type Shapes = 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3';
33
47
  //#endregion
34
- export { Shapes as a, ExtendedSizing as i, ContextColor as n, Sizing as o, ContextStyle as r, Spacing as s, Breakpoint as t };
35
- //# sourceMappingURL=types-CS_40Txv.d.ts.map
48
+ export { ExtendedSizing as a, Sizing as c, ContextStyle as i, Spacing as l, ContainerBreakpoint as n, Responsive as o, ContextColor as r, Shapes as s, Breakpoint as t };
49
+ //# sourceMappingURL=types-D6FM7bYR.d.ts.map
@@ -1,2 +1,2 @@
1
- import { n as CloseButtonProps, t as CloseButton } from "./chunks/index-BnR7wjax.js";
1
+ import { n as CloseButtonProps, t as CloseButton } from "./chunks/index-BfEJYF4c.js";
2
2
  export { CloseButton, type CloseButtonProps };
@@ -1,2 +1,2 @@
1
- import { a as DataGridRowProps, c as DataGridCell, d as DataGridProps, f as DataGridHeader, h as DataGridBodyProps, i as DataGridRow, l as DataGridCellProps, m as DataGridBody, n as DataGridSelectionCell, o as DataGridColumn, p as DataGridHeaderProps, r as DataGridSelectionCellProps, s as DataGridColumnProps, t as DataGridSelectAllCell, u as DataGrid } from "./chunks/index-BTTeKpiE.js";
1
+ import { a as DataGridRowProps, c as DataGridCell, d as DataGridProps, f as DataGridHeader, h as DataGridBodyProps, i as DataGridRow, l as DataGridCellProps, m as DataGridBody, n as DataGridSelectionCell, o as DataGridColumn, p as DataGridHeaderProps, r as DataGridSelectionCellProps, s as DataGridColumnProps, t as DataGridSelectAllCell, u as DataGrid } from "./chunks/index-CIwzgZJi.js";
2
2
  export { DataGrid, DataGridBody, type DataGridBodyProps, DataGridCell, type DataGridCellProps, DataGridColumn, type DataGridColumnProps, DataGridHeader, type DataGridHeaderProps, type DataGridProps, DataGridRow, type DataGridRowProps, DataGridSelectAllCell, DataGridSelectionCell, type DataGridSelectionCellProps };
package/dist/flex.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as FlexProps, t as Flex } from "./chunks/index-CVUMS0x7.js";
1
+ import { n as FlexProps, t as Flex } from "./chunks/index-BSLneLYu.js";
2
2
  export { Flex, type FlexProps };
package/dist/flex.js CHANGED
@@ -1 +1 @@
1
- "use client";import{t as e}from"./chunks/flex-CmlJbKVj.js";export{e as Flex};
1
+ "use client";import{t as e}from"./chunks/flex-B52oLCCC.js";export{e as Flex};
package/dist/grid.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as GridItemProps, c as GridProps, d as Col, f as ColProps, i as GridItemLayout, l as Container, n as RowProps, o as Grid, r as GridItem, s as GridLayout, t as Row, u as ContainerProps } from "./chunks/index-RHJhkSY-.js";
2
- export { Col, type ColProps, Container, type ContainerProps, Grid, GridItem, type GridItemLayout, type GridItemProps, type GridLayout, type GridProps, Row, type RowProps };
1
+ import { a as GridProps, i as GridFlow, n as GridItemProps, o as Container, r as Grid, s as ContainerProps, t as GridItem } from "./chunks/index-CxjNw4ss.js";
2
+ export { Container, type ContainerProps, Grid, type GridFlow, GridItem, type GridItemProps, type GridProps };
package/dist/grid.js CHANGED
@@ -1 +1 @@
1
- "use client";import{a as e,i as t,n,r,t as i}from"./chunks/grid-DK_vxz-4.js";export{e as Col,t as Container,r as Grid,n as GridItem,i as Row};
1
+ "use client";import{n as e,r as t,t as n}from"./chunks/grid-C7tO-ppc.js";export{t as Container,e as Grid,n as GridItem};
package/dist/index.d.ts CHANGED
@@ -1,84 +1,84 @@
1
1
  import "./chunks/focus-ring-SR_LwaN7.js";
2
2
  import { a as AccordionBody, c as AccordionItemDef, i as AccordionHeaderProps, l as AccordionProps, n as AccordionItemProps, o as AccordionBodyProps, r as AccordionHeader, s as Accordion, t as AccordionItem } from "./chunks/index-Dcc_W6Kv.js";
3
- import { a as AlertIcon, c as AlertFooterProps, d as AlertCancel, f as AlertCancelProps, g as AlertProps, h as Alert, i as AlertTextProps, l as AlertCode, m as AlertBodyProps, n as AlertTitleProps, o as AlertIconProps, p as AlertBody, r as AlertText, s as AlertFooter, t as AlertTitle, u as AlertCodeProps } from "./chunks/index-DgHvXzVh.js";
4
- import { a as Shapes, i as ExtendedSizing, n as ContextColor, o as Sizing, r as ContextStyle, s as Spacing, t as Breakpoint } from "./chunks/types-CS_40Txv.js";
5
- import { n as ButtonProps, t as Button } from "./chunks/Button-Cptd4Yk7.js";
3
+ import { a as AlertIcon, c as AlertFooterProps, d as AlertCancel, f as AlertCancelProps, g as AlertProps, h as Alert, i as AlertTextProps, l as AlertCode, m as AlertBodyProps, n as AlertTitleProps, o as AlertIconProps, p as AlertBody, r as AlertText, s as AlertFooter, t as AlertTitle, u as AlertCodeProps } from "./chunks/index-DHcztR18.js";
4
+ import { a as ExtendedSizing, c as Sizing, i as ContextStyle, l as Spacing, n as ContainerBreakpoint, o as Responsive, r as ContextColor, s as Shapes, t as Breakpoint } from "./chunks/types-D6FM7bYR.js";
5
+ import { n as ButtonProps, t as Button } from "./chunks/Button-BuZ_GOHS.js";
6
6
  import { n as IconProps, t as Icon } from "./chunks/Icon-CioraWLF.js";
7
7
  import { i as MenuItemsDef, n as MenuHeaderDef, r as MenuItemDef, t as MenuDividerDef } from "./chunks/MenuItemDef-D0VDtYIQ.js";
8
8
  import { a as Autocomplete, i as AutocompleteGroupProps, n as AutocompleteItemProps, o as AutocompleteProps, r as AutocompleteGroup, t as AutocompleteItem } from "./chunks/index-91YA-jkp.js";
9
9
  import { i as ComboboxGroupProps, n as ComboboxItemProps, r as ComboboxGroup, t as ComboboxItem } from "./chunks/ComboboxItem-C9TpoJOI.js";
10
- import { a as AvatarImageProps, i as AvatarImage, n as AvatarStackItemDef, o as Avatar, r as AvatarStackProps, s as AvatarProps, t as AvatarStack } from "./chunks/index-D9PZHY_I.js";
11
- import { n as BadgeProps, t as Badge } from "./chunks/index-Dh5CaHTP.js";
10
+ import { a as AvatarImageProps, i as AvatarImage, n as AvatarStackItemDef, o as Avatar, r as AvatarStackProps, s as AvatarProps, t as AvatarStack } from "./chunks/index-B19ZH3fm.js";
11
+ import { n as BadgeProps, t as Badge } from "./chunks/index-aRdgpeRb.js";
12
12
  import { a as BreadcrumbProps, i as BreadcrumbItemDef, n as BreadcrumbItemProps, r as Breadcrumb, t as BreadcrumbItem } from "./chunks/index-DtbUXxjz.js";
13
13
  import { i as ButtonGroupProps, n as ButtonToolbarProps, r as ButtonGroup, t as ButtonToolbar } from "./chunks/index-BAsbRx5n.js";
14
14
  import "./button.js";
15
15
  import { n as CalendarLabels, t as DateRangePreset } from "./chunks/dateRangePresets-R1FtA1zp.js";
16
16
  import { a as CalendarProps, i as CalendarMultipleProps, n as RangeCalendarProps, o as CalendarSingleProps, r as Calendar, t as RangeCalendar } from "./chunks/index-BNf0jIIL.js";
17
- import { S as CardProps, _ as CardFooter, a as CardSubtitle, b as CardBodyProps, c as CardLinkProps, d as CardImage, f as CardImageProps, g as CardGroupProps, h as CardGroup, i as CardTextProps, l as CardImageOverlay, m as CardHeaderProps, n as CardTitleProps, o as CardSubtitleProps, p as CardHeader, r as CardText, s as CardLink, t as CardTitle, u as CardImageOverlayProps, v as CardFooterProps, x as Card, y as CardBody } from "./chunks/index-CKx1KHED.js";
18
- import { n as LinkProps, t as Link } from "./chunks/Link-nrd0JWlO.js";
17
+ import { S as CardProps, _ as CardFooter, a as CardSubtitle, b as CardBodyProps, c as CardLinkProps, d as CardImage, f as CardImageProps, g as CardGroupProps, h as CardGroup, i as CardTextProps, l as CardImageOverlay, m as CardHeaderProps, n as CardTitleProps, o as CardSubtitleProps, p as CardHeader, r as CardText, s as CardLink, t as CardTitle, u as CardImageOverlayProps, v as CardFooterProps, x as Card, y as CardBody } from "./chunks/index-NGgDkhyn.js";
18
+ import { n as LinkProps, t as Link } from "./chunks/Link-CKymd2ru.js";
19
19
  import { _ as CarouselSlideDetail, a as CarouselItem, c as CarouselInnerProps, d as CarouselControlPrev, f as CarouselControlPrevProps, g as CarouselProps, h as Carousel, i as CarouselOverlayProps, l as CarouselIndicators, m as CarouselControlNextProps, n as CarouselPlayPauseProps, o as CarouselItemProps, p as CarouselControlNext, r as CarouselOverlay, s as CarouselInner, t as CarouselPlayPause, u as CarouselIndicatorsProps, v as CarouselTransition, y as CarouselEnds } from "./chunks/index-CTpwB1yR.js";
20
20
  import { i as IconValue, r as IconKey, t as IconComponentProps } from "./chunks/iconConfig-C6gbYhsD.js";
21
- import { t as ButtonObject } from "./chunks/renderFormCheck-DZh_5Df8.js";
22
- import { i as CheckboxProps, n as CheckboxGroupProps, r as Checkbox, t as CheckboxGroup } from "./chunks/index-DXjbI7Yv.js";
21
+ import { t as ButtonObject } from "./chunks/renderFormCheck-nKgpa_a3.js";
22
+ import { i as CheckboxProps, n as CheckboxGroupProps, r as Checkbox, t as CheckboxGroup } from "./chunks/index-DM01FX3a.js";
23
23
  import { n as ChipInputProps, t as ChipInput } from "./chunks/index-B8uaSJA9.js";
24
- import { n as ChipProps, t as Chip } from "./chunks/index-COsIPd8L.js";
25
- import { n as CloseButtonProps, t as CloseButton } from "./chunks/index-BnR7wjax.js";
24
+ import { n as ChipProps, t as Chip } from "./chunks/index-B1kw0jzM.js";
25
+ import { n as CloseButtonProps, t as CloseButton } from "./chunks/index-BfEJYF4c.js";
26
26
  import { n as CollapseProps, t as Collapse } from "./chunks/index-BA-raEMm.js";
27
27
  import { n as ColorInputProps, t as ColorInput } from "./chunks/index-DHGgezXU.js";
28
28
  import { n as ComboboxProps, t as Combobox } from "./chunks/index-Bi8FFadV.js";
29
29
  import { t as Placement } from "./chunks/overlayPlacement-CIsLpycT.js";
30
30
  import { i as MenuProps, n as MenuAutoClose, r as MenuFocusStrategy, t as Menu } from "./chunks/Menu-QeYOzrUL.js";
31
31
  import { n as ContextMenuProps, t as ContextMenu } from "./chunks/index-BF3OWUVc.js";
32
- import { a as DataGridRowProps, c as DataGridCell, d as DataGridProps, f as DataGridHeader, h as DataGridBodyProps, i as DataGridRow, l as DataGridCellProps, m as DataGridBody, n as DataGridSelectionCell, o as DataGridColumn, p as DataGridHeaderProps, r as DataGridSelectionCellProps, s as DataGridColumnProps, t as DataGridSelectAllCell, u as DataGrid } from "./chunks/index-BTTeKpiE.js";
32
+ import { a as DataGridRowProps, c as DataGridCell, d as DataGridProps, f as DataGridHeader, h as DataGridBodyProps, i as DataGridRow, l as DataGridCellProps, m as DataGridBody, n as DataGridSelectionCell, o as DataGridColumn, p as DataGridHeaderProps, r as DataGridSelectionCellProps, s as DataGridColumnProps, t as DataGridSelectAllCell, u as DataGrid } from "./chunks/index-CIwzgZJi.js";
33
33
  import { a as DatePickerProps, i as DatePickerMultipleProps, n as DateRangePickerProps, o as DatePickerSingleProps, r as DatePicker, t as DateRangePicker } from "./chunks/index-CqZ68Z8R.js";
34
34
  import { n as DividerProps, t as Divider } from "./chunks/index-9rQeMqVI.js";
35
35
  import { a as DrawerHeader, c as DrawerFooterProps, d as Drawer, f as DrawerProps, i as DrawerTitleProps, l as DrawerBody, n as useDrawer, o as DrawerHeaderProps, r as DrawerTitle, s as DrawerFooter, t as UseDrawerResult, u as DrawerBodyProps } from "./chunks/index-Cc4SSslb.js";
36
36
  import { n as FileInputProps, t as FileInput } from "./chunks/index-CCXJXToc.js";
37
- import { n as FlexProps, t as Flex } from "./chunks/index-CVUMS0x7.js";
37
+ import { n as FlexProps, t as Flex } from "./chunks/index-BSLneLYu.js";
38
38
  import { n as FloatingInputProps, t as FloatingInput } from "./chunks/index-CsARGAzD.js";
39
39
  import { n as FormFieldProps, t as FormField } from "./chunks/index-Ci7AEgEc.js";
40
40
  import { a as FormLabel, c as FormProps, i as FormHelpProps, n as FormFeedbackProps, o as FormLabelProps, r as FormHelp, s as Form, t as FormFeedback } from "./chunks/index-DAoPg59I.js";
41
- import { a as GridItemProps, c as GridProps, d as Col, f as ColProps, i as GridItemLayout, l as Container, n as RowProps, o as Grid, r as GridItem, s as GridLayout, t as Row, u as ContainerProps } from "./chunks/index-RHJhkSY-.js";
41
+ import { a as GridProps, i as GridFlow, n as GridItemProps, o as Container, r as Grid, s as ContainerProps, t as GridItem } from "./chunks/index-CxjNw4ss.js";
42
42
  import { n as IconProviderProps, t as IconProvider } from "./chunks/index-BxROljJI.js";
43
43
  import { n as InputAdornProps, t as InputAdorn } from "./chunks/index-CftERHnE.js";
44
44
  import { i as InputGroupProps, n as InputGroupAddonProps, r as InputGroup, t as InputGroupAddon } from "./chunks/index-Bkj17NEQ.js";
45
45
  import "./link.js";
46
- import { a as ListProps, i as ListItemDef, n as ListItemProps, r as List, t as ListItem } from "./chunks/index-CJXKl97l.js";
47
- import { a as MenuToggle, c as MenuTextProps, d as MenuItem, f as MenuItemProps, g as MenuDividerProps, h as MenuDivider, i as MenuSubmenuProps, l as MenuList, m as MenuHeaderProps, n as MenuSubmenuBackProps, o as MenuToggleProps, p as MenuHeader, r as MenuSubmenu, s as MenuText, t as MenuSubmenuBack, u as MenuListProps } from "./chunks/index-I-H3VJ-L.js";
46
+ import { a as ListProps, i as ListItemDef, n as ListItemProps, r as List, t as ListItem } from "./chunks/index-DtvHH_Mb.js";
47
+ import { a as MenuToggle, c as MenuTextProps, d as MenuItem, f as MenuItemProps, g as MenuDividerProps, h as MenuDivider, i as MenuSubmenuProps, l as MenuList, m as MenuHeaderProps, n as MenuSubmenuBackProps, o as MenuToggleProps, p as MenuHeader, r as MenuSubmenu, s as MenuText, t as MenuSubmenuBack, u as MenuListProps } from "./chunks/index-CYvVmTPR.js";
48
48
  import { a as ModalHeader, c as ModalFooterProps, d as Modal, f as ModalProps, i as ModalTitleProps, l as ModalBody, n as useModal, o as ModalHeaderProps, r as ModalTitle, s as ModalFooter, t as UseModalResult, u as ModalBodyProps } from "./chunks/index-B_UzbGOa.js";
49
- import { n as NavOverflowDetail, r as NavOverflowProps, t as NavOverflow } from "./chunks/index-FKh7iFQE.js";
50
- import { a as NavLink, c as NavItemDef, i as NavItemProps, l as NavProps, n as NavTitleProps, o as NavLinkProps, r as NavItem, s as Nav, t as NavTitle } from "./chunks/index-DJr_ZK4b.js";
51
- import { a as NavbarNav, c as NavbarBrandProps, i as NavbarTextProps, l as Navbar, n as NavbarTogglerProps, o as NavbarNavProps, r as NavbarText, s as NavbarBrand, t as NavbarToggler, u as NavbarProps } from "./chunks/index-DceCODH9.js";
52
- import { a as closeNotification, c as NotificationStackProps, d as NotificationIcon, f as NotificationIconProps, g as NotificationProps, h as Notification, i as addNotification, l as NotificationText, m as NotificationTitleProps, n as useNotification, o as notificationQueue, p as NotificationTitle, r as NotificationContent, s as NotificationStack, t as UseNotificationResult, u as NotificationTextProps } from "./chunks/index-DjrEvKd-.js";
49
+ import { n as NavOverflowDetail, r as NavOverflowProps, t as NavOverflow } from "./chunks/index-DPCwFiJL.js";
50
+ import { a as NavLink, c as NavItemDef, i as NavItemProps, l as NavProps, n as NavTitleProps, o as NavLinkProps, r as NavItem, s as Nav, t as NavTitle } from "./chunks/index-DQImhbhy.js";
51
+ import { a as NavbarNav, c as NavbarBrandProps, i as NavbarTextProps, l as Navbar, n as NavbarTogglerProps, o as NavbarNavProps, r as NavbarText, s as NavbarBrand, t as NavbarToggler, u as NavbarProps } from "./chunks/index-x0vZRyoU.js";
52
+ import { a as closeNotification, c as NotificationStackProps, d as NotificationIcon, f as NotificationIconProps, g as NotificationProps, h as Notification, i as addNotification, l as NotificationText, m as NotificationTitleProps, n as useNotification, o as notificationQueue, p as NotificationTitle, r as NotificationContent, s as NotificationStack, t as UseNotificationResult, u as NotificationTextProps } from "./chunks/index-BMkbJVHg.js";
53
53
  import { n as NumberFieldProps, t as NumberField } from "./chunks/index-DHOG_rjE.js";
54
54
  import { n as OtpInputProps, t as OtpInput } from "./chunks/index-B0-8n-Gs.js";
55
55
  import { a as Pagination, i as PaginationItemProps, n as usePagination, o as PaginationProps, r as PaginationItem, t as UsePaginationResult } from "./chunks/index-C4Dks__B.js";
56
56
  import { n as PasswordStrengthProps, t as PasswordStrength } from "./chunks/index-4cKG9KWB.js";
57
- import { n as PlaceholderProps, t as Placeholder } from "./chunks/index-Bm2NpgND.js";
57
+ import { n as PlaceholderProps, t as Placeholder } from "./chunks/index-0jbACjYQ.js";
58
58
  import { n as PopoverProps, t as Popover } from "./chunks/index-Du9fBqkT.js";
59
59
  import { n as PortalProps, r as useHydrated, t as Portal } from "./chunks/index-g74gO0pc.js";
60
- import { i as ProgressProps, n as ProgressBarProps, r as Progress, t as ProgressBar } from "./chunks/index-t_x6jj7l.js";
61
- import { i as RadioProps, n as RadioGroupProps, r as Radio, t as RadioGroup } from "./chunks/index-qMq_-GY2.js";
60
+ import { i as ProgressProps, n as ProgressBarProps, r as Progress, t as ProgressBar } from "./chunks/index-BOx8v-oT.js";
61
+ import { i as RadioProps, n as RadioGroupProps, r as Radio, t as RadioGroup } from "./chunks/index-CjT_4IZx.js";
62
62
  import { n as RangeInputProps, t as RangeInput } from "./chunks/index-HrKN6s8z.js";
63
63
  import { i as useScrollspy, n as ScrollspyProps, r as UseScrollspyOptions, t as Scrollspy } from "./chunks/index-B2K-O9kl.js";
64
64
  import { n as SearchFieldProps, t as SearchField } from "./chunks/index-Bz8MDq0H.js";
65
65
  import { n as SelectOptionDef, r as SelectProps, t as Select } from "./chunks/index-BVGGIaPX.js";
66
- import { i as SkeletonProps, n as SkeletonLoaderProps, r as Skeleton, t as SkeletonLoader } from "./chunks/index-DjXRq-n3.js";
67
- import { n as SpinnerProps, t as Spinner } from "./chunks/index-CJzKu7QI.js";
68
- import { n as StackProps, t as Stack } from "./chunks/index-CsMIgBsd.js";
69
- import { n as StaticTableProps, t as StaticTable } from "./chunks/index-Dfy1YW5j.js";
70
- import { a as StepperProps, i as StepperItemDef, n as StepperItemProps, r as Stepper, t as StepperItem } from "./chunks/index-e7SJkI_m.js";
71
- import { n as SwitchProps, t as Switch } from "./chunks/index-BO9jLOIb.js";
72
- import { a as TableColumn, c as TableCellProps, d as Table, f as TableProps, i as TableHeaderProps, l as TableBody, n as TableRowProps, o as TableColumnProps, r as TableHeader, s as TableCell, t as TableRow, u as TableBodyProps } from "./chunks/index-CRfm7W6C.js";
66
+ import { i as SkeletonProps, n as SkeletonLoaderProps, r as Skeleton, t as SkeletonLoader } from "./chunks/index-CHQR8x8_.js";
67
+ import { n as SpinnerProps, t as Spinner } from "./chunks/index-B5bF1JxF.js";
68
+ import { n as StackProps, t as Stack } from "./chunks/index-YJ9QdBuq.js";
69
+ import { n as StaticTableProps, t as StaticTable } from "./chunks/index-U27Ar174.js";
70
+ import { a as StepperProps, i as StepperItemDef, n as StepperItemProps, r as Stepper, t as StepperItem } from "./chunks/index-BLS1jhSJ.js";
71
+ import { n as SwitchProps, t as Switch } from "./chunks/index-lSPcxiii.js";
72
+ import { a as TableColumn, c as TableCellProps, d as Table, f as TableProps, i as TableHeaderProps, l as TableBody, n as TableRowProps, o as TableColumnProps, r as TableHeader, s as TableCell, t as TableRow, u as TableBodyProps } from "./chunks/index-C9gzVqwX.js";
73
73
  import { a as Tab, c as TabsProps, i as TabListProps, n as TabPanelProps, o as TabProps, r as TabList, s as Tabs, t as TabPanel } from "./chunks/index-CFnQubsV.js";
74
74
  import { n as TextInputProps, t as TextInput } from "./chunks/index-6uob77s9.js";
75
75
  import { n as TextareaProps, t as Textarea } from "./chunks/index-Dfg4Ftb8.js";
76
76
  import { n as TimeFieldProps, t as TimeField } from "./chunks/index-DMbdEm__.js";
77
- import { _ as Toast, a as closeToast, c as ToasterProps, d as ToastHeader, f as ToastHeaderProps, g as ToastBodyProps, h as ToastBody, i as addToast, l as ToastIcon, m as ToastFooterProps, n as useToast, o as toastQueue, p as ToastFooter, r as ToastContent, s as Toaster, t as UseToastResult, u as ToastIconProps, v as ToastProps } from "./chunks/index-CYgBmZ8w.js";
77
+ import { _ as Toast, a as closeToast, c as ToasterProps, d as ToastHeader, f as ToastHeaderProps, g as ToastBodyProps, h as ToastBody, i as addToast, l as ToastIcon, m as ToastFooterProps, n as useToast, o as toastQueue, p as ToastFooter, r as ToastContent, s as Toaster, t as UseToastResult, u as ToastIconProps, v as ToastProps } from "./chunks/index-DP5xugE-.js";
78
78
  import { n as TooltipProps, t as Tooltip } from "./chunks/index-DJfga0Ce.js";
79
79
  import { i as TreeProps, n as TreeItemProps, r as Tree, t as TreeItem } from "./chunks/index-DaHQdNul.js";
80
80
  import { n as VisuallyHiddenProps, t as VisuallyHidden } from "./chunks/index-Ddd7iWfm.js";
81
81
  import { CSSProperties, HTMLAttributes, MouseEvent, MouseEventHandler, ReactNode, Ref, RefObject, useEffect } from "react";
82
82
  import { I18nProvider } from "react-aria";
83
83
  import { ToastQueue } from "react-stately";
84
- export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, Alert, AlertBody, type AlertBodyProps, AlertCancel, type AlertCancelProps, AlertCode, type AlertCodeProps, AlertFooter, type AlertFooterProps, AlertIcon, type AlertIconProps, type AlertProps, AlertText, type AlertTextProps, AlertTitle, type AlertTitleProps, Autocomplete, AutocompleteGroup, type AutocompleteGroupProps, AutocompleteItem, type AutocompleteItemProps, type AutocompleteProps, Avatar, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarStack, type AvatarStackItemDef, type AvatarStackProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, type Breakpoint, Button, ButtonGroup, type ButtonGroupProps, type ButtonObject, type ButtonProps, ButtonToolbar, type ButtonToolbarProps, Calendar, type CalendarLabels, type CalendarMultipleProps, type CalendarProps, type CalendarSingleProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardGroup, type CardGroupProps, CardHeader, type CardHeaderProps, CardImage, CardImageOverlay, type CardImageOverlayProps, type CardImageProps, CardLink, type CardLinkProps, type CardProps, CardSubtitle, type CardSubtitleProps, CardText, type CardTextProps, CardTitle, type CardTitleProps, Carousel, CarouselControlNext, type CarouselControlNextProps, CarouselControlPrev, type CarouselControlPrevProps, type CarouselEnds, CarouselIndicators, type CarouselIndicatorsProps, CarouselInner, type CarouselInnerProps, CarouselItem, type CarouselItemProps, CarouselOverlay, type CarouselOverlayProps, CarouselPlayPause, type CarouselPlayPauseProps, type CarouselProps, type CarouselSlideDetail, type CarouselTransition, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, ChipInput, type ChipInputProps, type ChipProps, CloseButton, type CloseButtonProps, Col, type ColProps, Collapse, type CollapseProps, ColorInput, type ColorInputProps, Combobox, ComboboxGroup, type ComboboxGroupProps, ComboboxItem, type ComboboxItemProps, type ComboboxProps, Container, type ContainerProps, type ContextColor, ContextMenu, type ContextMenuProps, type ContextStyle, DataGrid, DataGridBody, type DataGridBodyProps, DataGridCell, type DataGridCellProps, DataGridColumn, type DataGridColumnProps, DataGridHeader, type DataGridHeaderProps, type DataGridProps, DataGridRow, type DataGridRowProps, DataGridSelectAllCell, DataGridSelectionCell, type DataGridSelectionCellProps, DatePicker, type DatePickerMultipleProps, type DatePickerProps, type DatePickerSingleProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, Divider, type DividerProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, type ExtendedSizing, FileInput, type FileInputProps, Flex, type FlexProps, FloatingInput, type FloatingInputProps, Form, FormFeedback, type FormFeedbackProps, FormField, type FormFieldProps, FormHelp, type FormHelpProps, FormLabel, type FormLabelProps, type FormProps, Grid, GridItem, type GridItemLayout, type GridItemProps, type GridLayout, type GridProps, I18nProvider, Icon, type IconComponentProps, type IconKey, type IconProps, IconProvider, type IconProviderProps, type IconValue, InputAdorn, type InputAdornProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, Link, type LinkProps, List, ListItem, type ListItemDef, type ListItemProps, type ListProps, Menu, type MenuAutoClose, MenuDivider, type MenuDividerDef, type MenuDividerProps, type MenuFocusStrategy, MenuHeader, type MenuHeaderDef, type MenuHeaderProps, MenuItem, type MenuItemDef, type MenuItemProps, type MenuItemsDef, MenuList, type MenuListProps, type MenuProps, MenuSubmenu, MenuSubmenuBack, type MenuSubmenuBackProps, type MenuSubmenuProps, MenuText, type MenuTextProps, MenuToggle, type MenuToggleProps, Modal, ModalBody, type ModalBodyProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalTitle, type ModalTitleProps, Nav, NavItem, type NavItemDef, type NavItemProps, NavLink, type NavLinkProps, NavOverflow, type NavOverflowDetail, type NavOverflowProps, type NavProps, NavTitle, type NavTitleProps, Navbar, NavbarBrand, type NavbarBrandProps, NavbarNav, type NavbarNavProps, type NavbarProps, NavbarText, type NavbarTextProps, NavbarToggler, type NavbarTogglerProps, Notification, type NotificationContent, NotificationIcon, type NotificationIconProps, type NotificationProps, NotificationStack, type NotificationStackProps, NotificationText, type NotificationTextProps, NotificationTitle, type NotificationTitleProps, NumberField, type NumberFieldProps, OtpInput, type OtpInputProps, Pagination, PaginationItem, type PaginationItemProps, type PaginationProps, PasswordStrength, type PasswordStrengthProps, Placeholder, type PlaceholderProps, type Placement, Popover, type PopoverProps, Portal, type PortalProps, Progress, ProgressBar, type ProgressBarProps, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, type RangeCalendarProps, RangeInput, type RangeInputProps, Row, type RowProps, Scrollspy, type ScrollspyProps, SearchField, type SearchFieldProps, Select, type SelectOptionDef, type SelectProps, type Shapes, type Sizing, Skeleton, SkeletonLoader, type SkeletonLoaderProps, type SkeletonProps, type Spacing, Spinner, type SpinnerProps, Stack, type StackProps, StaticTable, type StaticTableProps, Stepper, StepperItem, type StepperItemDef, type StepperItemProps, type StepperProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TextInput, type TextInputProps, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Toast, ToastBody, type ToastBodyProps, type ToastContent, ToastFooter, type ToastFooterProps, ToastHeader, type ToastHeaderProps, ToastIcon, type ToastIconProps, type ToastProps, Toaster, type ToasterProps, Tooltip, type TooltipProps, Tree, TreeItem, type TreeItemProps, type TreeProps, type UseDrawerResult, type UseModalResult, type UseNotificationResult, type UsePaginationResult, type UseScrollspyOptions, type UseToastResult, VisuallyHidden, type VisuallyHiddenProps, addNotification, addToast, closeNotification, closeToast, notificationQueue, toastQueue, useDrawer, useHydrated, useModal, useNotification, usePagination, useScrollspy, useToast };
84
+ export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, Alert, AlertBody, type AlertBodyProps, AlertCancel, type AlertCancelProps, AlertCode, type AlertCodeProps, AlertFooter, type AlertFooterProps, AlertIcon, type AlertIconProps, type AlertProps, AlertText, type AlertTextProps, AlertTitle, type AlertTitleProps, Autocomplete, AutocompleteGroup, type AutocompleteGroupProps, AutocompleteItem, type AutocompleteItemProps, type AutocompleteProps, Avatar, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarStack, type AvatarStackItemDef, type AvatarStackProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, type Breakpoint, Button, ButtonGroup, type ButtonGroupProps, type ButtonObject, type ButtonProps, ButtonToolbar, type ButtonToolbarProps, Calendar, type CalendarLabels, type CalendarMultipleProps, type CalendarProps, type CalendarSingleProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardGroup, type CardGroupProps, CardHeader, type CardHeaderProps, CardImage, CardImageOverlay, type CardImageOverlayProps, type CardImageProps, CardLink, type CardLinkProps, type CardProps, CardSubtitle, type CardSubtitleProps, CardText, type CardTextProps, CardTitle, type CardTitleProps, Carousel, CarouselControlNext, type CarouselControlNextProps, CarouselControlPrev, type CarouselControlPrevProps, type CarouselEnds, CarouselIndicators, type CarouselIndicatorsProps, CarouselInner, type CarouselInnerProps, CarouselItem, type CarouselItemProps, CarouselOverlay, type CarouselOverlayProps, CarouselPlayPause, type CarouselPlayPauseProps, type CarouselProps, type CarouselSlideDetail, type CarouselTransition, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, ChipInput, type ChipInputProps, type ChipProps, CloseButton, type CloseButtonProps, Collapse, type CollapseProps, ColorInput, type ColorInputProps, Combobox, ComboboxGroup, type ComboboxGroupProps, ComboboxItem, type ComboboxItemProps, type ComboboxProps, Container, type ContainerBreakpoint, type ContainerProps, type ContextColor, ContextMenu, type ContextMenuProps, type ContextStyle, DataGrid, DataGridBody, type DataGridBodyProps, DataGridCell, type DataGridCellProps, DataGridColumn, type DataGridColumnProps, DataGridHeader, type DataGridHeaderProps, type DataGridProps, DataGridRow, type DataGridRowProps, DataGridSelectAllCell, DataGridSelectionCell, type DataGridSelectionCellProps, DatePicker, type DatePickerMultipleProps, type DatePickerProps, type DatePickerSingleProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, Divider, type DividerProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, type ExtendedSizing, FileInput, type FileInputProps, Flex, type FlexProps, FloatingInput, type FloatingInputProps, Form, FormFeedback, type FormFeedbackProps, FormField, type FormFieldProps, FormHelp, type FormHelpProps, FormLabel, type FormLabelProps, type FormProps, Grid, type GridFlow, GridItem, type GridItemProps, type GridProps, I18nProvider, Icon, type IconComponentProps, type IconKey, type IconProps, IconProvider, type IconProviderProps, type IconValue, InputAdorn, type InputAdornProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, Link, type LinkProps, List, ListItem, type ListItemDef, type ListItemProps, type ListProps, Menu, type MenuAutoClose, MenuDivider, type MenuDividerDef, type MenuDividerProps, type MenuFocusStrategy, MenuHeader, type MenuHeaderDef, type MenuHeaderProps, MenuItem, type MenuItemDef, type MenuItemProps, type MenuItemsDef, MenuList, type MenuListProps, type MenuProps, MenuSubmenu, MenuSubmenuBack, type MenuSubmenuBackProps, type MenuSubmenuProps, MenuText, type MenuTextProps, MenuToggle, type MenuToggleProps, Modal, ModalBody, type ModalBodyProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalTitle, type ModalTitleProps, Nav, NavItem, type NavItemDef, type NavItemProps, NavLink, type NavLinkProps, NavOverflow, type NavOverflowDetail, type NavOverflowProps, type NavProps, NavTitle, type NavTitleProps, Navbar, NavbarBrand, type NavbarBrandProps, NavbarNav, type NavbarNavProps, type NavbarProps, NavbarText, type NavbarTextProps, NavbarToggler, type NavbarTogglerProps, Notification, type NotificationContent, NotificationIcon, type NotificationIconProps, type NotificationProps, NotificationStack, type NotificationStackProps, NotificationText, type NotificationTextProps, NotificationTitle, type NotificationTitleProps, NumberField, type NumberFieldProps, OtpInput, type OtpInputProps, Pagination, PaginationItem, type PaginationItemProps, type PaginationProps, PasswordStrength, type PasswordStrengthProps, Placeholder, type PlaceholderProps, type Placement, Popover, type PopoverProps, Portal, type PortalProps, Progress, ProgressBar, type ProgressBarProps, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, type RangeCalendarProps, RangeInput, type RangeInputProps, type Responsive, Scrollspy, type ScrollspyProps, SearchField, type SearchFieldProps, Select, type SelectOptionDef, type SelectProps, type Shapes, type Sizing, Skeleton, SkeletonLoader, type SkeletonLoaderProps, type SkeletonProps, type Spacing, Spinner, type SpinnerProps, Stack, type StackProps, StaticTable, type StaticTableProps, Stepper, StepperItem, type StepperItemDef, type StepperItemProps, type StepperProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TextInput, type TextInputProps, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Toast, ToastBody, type ToastBodyProps, type ToastContent, ToastFooter, type ToastFooterProps, ToastHeader, type ToastHeaderProps, ToastIcon, type ToastIconProps, type ToastProps, Toaster, type ToasterProps, Tooltip, type TooltipProps, Tree, TreeItem, type TreeItemProps, type TreeProps, type UseDrawerResult, type UseModalResult, type UseNotificationResult, type UsePaginationResult, type UseScrollspyOptions, type UseToastResult, VisuallyHidden, type VisuallyHiddenProps, addNotification, addToast, closeNotification, closeToast, notificationQueue, toastQueue, useDrawer, useHydrated, useModal, useNotification, usePagination, useScrollspy, useToast };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use client";import"./chunks/focus-ring-SR_LwaN7.js";import{i as e,n as t,r as n,t as r}from"./chunks/accordion-B8UWyvQB.js";import{n as i,t as a}from"./chunks/Portal-CgeR1WXV.js";import{a as o,i as s,n as c,o as l,r as u,t as d}from"./chunks/drawer-C7Tz4XU_.js";import{a as f,i as p,n as m,o as h,r as g,t as _}from"./chunks/modal-bgDR29Jh.js";import{a as v,c as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E}from"./chunks/notification-Ds24wnPq.js";import{n as D,t as O}from"./chunks/datepicker-bOiM_zhJ.js";import{n as k,r as A,t as j}from"./chunks/pagination-BkOquk-x.js";import{a as M,c as N,i as P,l as F,n as I,o as L,r as R,s as z,t as B,u as V}from"./chunks/toast-CGHl3-oU.js";import{o as H}from"./chunks/ComboboxListBox-Cm3L1ULl.js";import{t as U}from"./chunks/Icon-DLB1f88W.js";import{n as W,t as G}from"./chunks/FormHelp-AE6_iSLJ.js";import{t as K}from"./chunks/FormLabel-CYcQiFUI.js";import{n as q,r as J,t as Y}from"./chunks/autocomplete-Baf9VSHN.js";import{t as X}from"./chunks/Link-CZsWCnQb.js";import{t as Z}from"./chunks/badge-D2oztCvs.js";import{n as Q,r as $,t as ee}from"./chunks/avatar-S3dGy6Qc.js";import{t as te}from"./chunks/VisuallyHidden-C2dM7HhC.js";import{t as ne}from"./chunks/CloseButton-DPgQztE0.js";import{t as re}from"./chunks/stack-CsMiQbpq.js";import{n as ie,t as ae}from"./chunks/breadcrumb-s6J9itez.js";import{t as oe}from"./chunks/Button-BoymWE-L.js";import"./button.js";import{n as se,t as ce}from"./chunks/button-group-BGppPrIv.js";import{n as le,t as ue}from"./chunks/RangeCalendar-BJl-j4W2.js";import"./calendar.js";import{a as de,c as fe,i as pe,n as me,o as he,r as ge,s as _e,t as ve}from"./chunks/datagrid-CH3Cy-q7.js";import{a as ye,c as be,d as xe,i as Se,l as Ce,n as we,o as Te,r as Ee,s as De,t as Oe,u as ke}from"./chunks/card-YXn3bj_d.js";import{a as Ae,c as je,i as Me,n as Ne,o as Pe,r as Fe,s as Ie,t as Le}from"./chunks/carousel-fTVPqnSV.js";import{t as Re}from"./chunks/collapse--Go2Y73B.js";import{t as ze}from"./chunks/Chip-DCaWaBqo.js";import{t as Be}from"./chunks/chip-input-BpVDRERg.js";import"./close-button.js";import{t as Ve}from"./chunks/color-input-Bwl5ef5B.js";import{t as He}from"./chunks/file-input-CDM6qrmV.js";import{n as Ue,t as We}from"./chunks/combobox-Bp1tIaiW.js";import{t as Ge}from"./chunks/otp-input-ws393uPB.js";import{t as Ke}from"./chunks/password-strength-DDK8pHRq.js";import{t as qe}from"./chunks/Menu-CSBg2Zmc.js";import{d as Je,l as Ye,n as Xe,t as Ze,u as Qe}from"./chunks/MenuToggle-BdQtF7FV.js";import{n as $e,r as et,t as tt}from"./chunks/menu-98EAD9nj.js";import{a as nt,i as rt,n as it,r as at,t as ot}from"./chunks/grid-DK_vxz-4.js";import{n as st,t as ct}from"./chunks/checkbox-ChACalAw.js";import{t as lt}from"./chunks/flex-CmlJbKVj.js";import{t as ut}from"./chunks/form-GpdAyWWi.js";import{t as dt}from"./chunks/floating-input-DmSZZc27.js";import{t as ft}from"./chunks/form-field-CNPGTMiW.js";import{n as pt,t as mt}from"./chunks/input-group-Cuiuf4Dl.js";import{t as ht}from"./chunks/input-adorn-DwdX-jxA.js";import{n as gt,t as _t}from"./chunks/radio-DOFYCfJi.js";import{t as vt}from"./chunks/range-input-CT_8TKL7.js";import{t as yt}from"./chunks/select-BwJIfv9f.js";import{t as bt}from"./chunks/switch-C6s3LxEv.js";import{t as xt}from"./chunks/text-input-B4pTv6SU.js";import{t as St}from"./chunks/textarea-1A1nABQE.js";import{t as Ct}from"./chunks/icon-BQsT6YtE.js";import{t as wt}from"./chunks/placeholder-BCr83sUn.js";import"./link.js";import{n as Tt,t as Et}from"./chunks/list-BQCkwWjF.js";import{i as Dt,n as Ot,r as kt,t as At}from"./chunks/nav-TiZuTHC6.js";import{a as jt,i as Mt,n as Nt,r as Pt,t as Ft}from"./chunks/navbar-DxIwt0sc.js";import{t as It}from"./chunks/popover-Bdg8D4sm.js";import{n as Lt,t as Rt}from"./chunks/progress-zWkTltor.js";import{n as zt,t as Bt}from"./chunks/skeleton-BrD2JwNx.js";import{t as Vt}from"./chunks/spinner-DblhvrHL.js";import{t as Ht}from"./chunks/static-table-D0M4oc_t.js";import{n as Ut,t as Wt}from"./chunks/stepper-CVXMJ2yg.js";import{a as Gt,i as Kt,n as qt,o as Jt,r as Yt,t as Xt}from"./chunks/table-Cy6uEuEP.js";import{i as Zt,n as Qt,r as $t,t as en}from"./chunks/tabs-91T7-8qq.js";import{t as tn}from"./chunks/tooltip-Bc-u6nIW.js";import"./chip.js";import"./portal.js";import"./visually-hidden.js";import{a as nn,c as rn,i as an,n as on,o as sn,r as cn,s as ln,t as un}from"./chunks/alert-BXI-_qlt.js";import{t as dn}from"./chunks/nav-overflow-Ay5mM5Gc.js";import{n as fn,t as pn}from"./chunks/scrollspy-C2HmrnZ4.js";import{t as mn}from"./chunks/divider-CjbF4OfA.js";import{t as hn}from"./chunks/number-field-IBIX2IWH.js";import{t as gn}from"./chunks/time-field-B3MA7ED_.js";import{t as _n}from"./chunks/search-field--nDoCI_E.js";import{t as vn}from"./chunks/context-menu-B4a0tS-h.js";import{n as yn,t as bn}from"./chunks/tree-Cql1veeZ.js";import{I18nProvider as xn}from"react-aria";export{r as Accordion,e as AccordionBody,n as AccordionHeader,t as AccordionItem,rn as Alert,ln as AlertBody,sn as AlertCancel,nn as AlertCode,an as AlertFooter,cn as AlertIcon,on as AlertText,un as AlertTitle,Y as Autocomplete,J as AutocompleteGroup,q as AutocompleteItem,Q as Avatar,$ as AvatarImage,ee as AvatarStack,Z as Badge,ae as Breadcrumb,ie as BreadcrumbItem,oe as Button,se as ButtonGroup,ce as ButtonToolbar,le as Calendar,ye as Card,xe as CardBody,ke as CardFooter,Se as CardGroup,Ee as CardHeader,Ce as CardImage,we as CardImageOverlay,Oe as CardLink,be as CardSubtitle,De as CardText,Te as CardTitle,Pe as Carousel,Ae as CarouselControlNext,Me as CarouselControlPrev,Fe as CarouselIndicators,Ie as CarouselInner,je as CarouselItem,Ne as CarouselOverlay,Le as CarouselPlayPause,st as Checkbox,ct as CheckboxGroup,ze as Chip,Be as ChipInput,ne as CloseButton,nt as Col,Re as Collapse,Ve as ColorInput,We as Combobox,Ue as ComboboxGroup,H as ComboboxItem,rt as Container,vn as ContextMenu,fe as DataGrid,_e as DataGridBody,he as DataGridCell,de as DataGridColumn,pe as DataGridHeader,ge as DataGridRow,ve as DataGridSelectAllCell,me as DataGridSelectionCell,D as DatePicker,O as DateRangePicker,mn as Divider,l as Drawer,s as DrawerBody,u as DrawerFooter,c as DrawerHeader,d as DrawerTitle,He as FileInput,lt as Flex,dt as FloatingInput,ut as Form,W as FormFeedback,ft as FormField,G as FormHelp,K as FormLabel,at as Grid,it as GridItem,xn as I18nProvider,U as Icon,Ct as IconProvider,ht as InputAdorn,pt as InputGroup,mt as InputGroupAddon,X as Link,Et as List,Tt as ListItem,qe as Menu,Je as MenuDivider,Qe as MenuHeader,Ye as MenuItem,Xe as MenuList,$e as MenuSubmenu,tt as MenuSubmenuBack,et as MenuText,Ze as MenuToggle,h as Modal,p as ModalBody,g as ModalFooter,m as ModalHeader,_ as ModalTitle,Ot as Nav,kt as NavItem,Dt as NavLink,dn as NavOverflow,At as NavTitle,jt as Navbar,Mt as NavbarBrand,Pt as NavbarNav,Nt as NavbarText,Ft as NavbarToggler,C as Notification,v as NotificationIcon,E as NotificationStack,y as NotificationText,T as NotificationTitle,hn as NumberField,Ge as OtpInput,j as Pagination,k as PaginationItem,Ke as PasswordStrength,wt as Placeholder,It as Popover,a as Portal,Rt as Progress,Lt as ProgressBar,gt as Radio,_t as RadioGroup,ue as RangeCalendar,vt as RangeInput,ot as Row,pn as Scrollspy,_n as SearchField,yt as Select,zt as Skeleton,Bt as SkeletonLoader,Vt as Spinner,re as Stack,Ht as StaticTable,Wt as Stepper,Ut as StepperItem,bt as Switch,en as Tab,Zt as TabList,$t as TabPanel,Jt as Table,Gt as TableBody,Kt as TableCell,Yt as TableColumn,qt as TableHeader,Xt as TableRow,Qt as Tabs,xt as TextInput,St as Textarea,gn as TimeField,L as Toast,F as ToastBody,N as ToastFooter,z as ToastHeader,M as ToastIcon,B as Toaster,tn as Tooltip,yn as Tree,bn as TreeItem,te as VisuallyHidden,S as addNotification,I as addToast,w as closeNotification,R as closeToast,b as notificationQueue,P as toastQueue,o as useDrawer,i as useHydrated,f as useModal,x as useNotification,A as usePagination,fn as useScrollspy,V as useToast};
1
+ "use client";import"./chunks/focus-ring-SR_LwaN7.js";import{i as e,n as t,r as n,t as r}from"./chunks/accordion-B8UWyvQB.js";import{n as i,t as a}from"./chunks/Portal-CgeR1WXV.js";import{a as o,i as s,n as c,o as l,r as u,t as d}from"./chunks/drawer-C7Tz4XU_.js";import{a as f,i as p,n as m,o as h,r as g,t as _}from"./chunks/modal-bgDR29Jh.js";import{a as v,c as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E}from"./chunks/notification-Dbci5Ka3.js";import{n as D,t as O}from"./chunks/datepicker-bOiM_zhJ.js";import{n as k,r as A,t as j}from"./chunks/pagination-BkOquk-x.js";import{a as M,c as N,i as P,l as F,n as I,o as L,r as R,s as z,t as B,u as V}from"./chunks/toast-CGHl3-oU.js";import{o as H}from"./chunks/ComboboxListBox-Cm3L1ULl.js";import{t as U}from"./chunks/Icon-DLB1f88W.js";import{n as W,t as G}from"./chunks/FormHelp-AE6_iSLJ.js";import{t as K}from"./chunks/FormLabel-CYcQiFUI.js";import{n as q,r as J,t as Y}from"./chunks/autocomplete-Baf9VSHN.js";import{t as X}from"./chunks/Link-CZsWCnQb.js";import{t as Z}from"./chunks/badge-D2oztCvs.js";import{n as Q,r as $,t as ee}from"./chunks/avatar-S3dGy6Qc.js";import{t as te}from"./chunks/VisuallyHidden-C2dM7HhC.js";import{t as ne}from"./chunks/CloseButton-DPgQztE0.js";import{t as re}from"./chunks/stack-DK5F53VT.js";import{n as ie,t as ae}from"./chunks/breadcrumb-s6J9itez.js";import{t as oe}from"./chunks/Button-BoymWE-L.js";import"./button.js";import{n as se,t as ce}from"./chunks/button-group-BGppPrIv.js";import{n as le,t as ue}from"./chunks/RangeCalendar-BJl-j4W2.js";import"./calendar.js";import{a as de,c as fe,i as pe,n as me,o as he,r as ge,s as _e,t as ve}from"./chunks/datagrid-CH3Cy-q7.js";import{a as ye,c as be,d as xe,i as Se,l as Ce,n as we,o as Te,r as Ee,s as De,t as Oe,u as ke}from"./chunks/card-CobeDpf1.js";import{a as Ae,c as je,i as Me,n as Ne,o as Pe,r as Fe,s as Ie,t as Le}from"./chunks/carousel-fTVPqnSV.js";import{t as Re}from"./chunks/collapse--Go2Y73B.js";import{t as ze}from"./chunks/Chip-DCaWaBqo.js";import{t as Be}from"./chunks/chip-input-BpVDRERg.js";import"./close-button.js";import{t as Ve}from"./chunks/color-input-Bwl5ef5B.js";import{t as He}from"./chunks/file-input-CDM6qrmV.js";import{n as Ue,t as We}from"./chunks/combobox-Bp1tIaiW.js";import{t as Ge}from"./chunks/otp-input-ws393uPB.js";import{t as Ke}from"./chunks/password-strength-DDK8pHRq.js";import{t as qe}from"./chunks/Menu-CSBg2Zmc.js";import{d as Je,l as Ye,n as Xe,t as Ze,u as Qe}from"./chunks/MenuToggle-BdQtF7FV.js";import{n as $e,r as et,t as tt}from"./chunks/menu-98EAD9nj.js";import{n as nt,r as rt,t as it}from"./chunks/grid-C7tO-ppc.js";import{n as at,t as ot}from"./chunks/checkbox-ZyQn5Ku5.js";import{t as st}from"./chunks/flex-B52oLCCC.js";import{t as ct}from"./chunks/form-GpdAyWWi.js";import{t as lt}from"./chunks/floating-input-DmSZZc27.js";import{t as ut}from"./chunks/form-field-CNPGTMiW.js";import{n as dt,t as ft}from"./chunks/input-group-Cuiuf4Dl.js";import{t as pt}from"./chunks/input-adorn-DwdX-jxA.js";import{n as mt,t as ht}from"./chunks/radio-B6gJdtoN.js";import{t as gt}from"./chunks/range-input-CT_8TKL7.js";import{t as _t}from"./chunks/select-BwJIfv9f.js";import{t as vt}from"./chunks/switch-C6s3LxEv.js";import{t as yt}from"./chunks/text-input-B4pTv6SU.js";import{t as bt}from"./chunks/textarea-1A1nABQE.js";import{t as xt}from"./chunks/icon-BQsT6YtE.js";import{t as St}from"./chunks/placeholder-BCr83sUn.js";import"./link.js";import{n as Ct,t as wt}from"./chunks/list-BQCkwWjF.js";import{i as Tt,n as Et,r as Dt,t as Ot}from"./chunks/nav-TiZuTHC6.js";import{a as kt,i as At,n as jt,r as Mt,t as Nt}from"./chunks/navbar-DxIwt0sc.js";import{t as Pt}from"./chunks/popover-Bdg8D4sm.js";import{n as Ft,t as It}from"./chunks/progress-zWkTltor.js";import{n as Lt,t as Rt}from"./chunks/skeleton-CmZBLJwp.js";import{t as zt}from"./chunks/spinner-DblhvrHL.js";import{t as Bt}from"./chunks/static-table-D0M4oc_t.js";import{n as Vt,t as Ht}from"./chunks/stepper-CVXMJ2yg.js";import{a as Ut,i as Wt,n as Gt,o as Kt,r as qt,t as Jt}from"./chunks/table-Cy6uEuEP.js";import{i as Yt,n as Xt,r as Zt,t as Qt}from"./chunks/tabs-91T7-8qq.js";import{t as $t}from"./chunks/tooltip-Bc-u6nIW.js";import"./chip.js";import"./portal.js";import"./visually-hidden.js";import{a as en,c as tn,i as nn,n as rn,o as an,r as on,s as sn,t as cn}from"./chunks/alert-BXI-_qlt.js";import{t as ln}from"./chunks/nav-overflow-Ay5mM5Gc.js";import{n as un,t as dn}from"./chunks/scrollspy-C2HmrnZ4.js";import{t as fn}from"./chunks/divider-CjbF4OfA.js";import{t as pn}from"./chunks/number-field-IBIX2IWH.js";import{t as mn}from"./chunks/time-field-B3MA7ED_.js";import{t as hn}from"./chunks/search-field--nDoCI_E.js";import{t as gn}from"./chunks/context-menu-B4a0tS-h.js";import{n as _n,t as vn}from"./chunks/tree-Cql1veeZ.js";import{I18nProvider as yn}from"react-aria";export{r as Accordion,e as AccordionBody,n as AccordionHeader,t as AccordionItem,tn as Alert,sn as AlertBody,an as AlertCancel,en as AlertCode,nn as AlertFooter,on as AlertIcon,rn as AlertText,cn as AlertTitle,Y as Autocomplete,J as AutocompleteGroup,q as AutocompleteItem,Q as Avatar,$ as AvatarImage,ee as AvatarStack,Z as Badge,ae as Breadcrumb,ie as BreadcrumbItem,oe as Button,se as ButtonGroup,ce as ButtonToolbar,le as Calendar,ye as Card,xe as CardBody,ke as CardFooter,Se as CardGroup,Ee as CardHeader,Ce as CardImage,we as CardImageOverlay,Oe as CardLink,be as CardSubtitle,De as CardText,Te as CardTitle,Pe as Carousel,Ae as CarouselControlNext,Me as CarouselControlPrev,Fe as CarouselIndicators,Ie as CarouselInner,je as CarouselItem,Ne as CarouselOverlay,Le as CarouselPlayPause,at as Checkbox,ot as CheckboxGroup,ze as Chip,Be as ChipInput,ne as CloseButton,Re as Collapse,Ve as ColorInput,We as Combobox,Ue as ComboboxGroup,H as ComboboxItem,rt as Container,gn as ContextMenu,fe as DataGrid,_e as DataGridBody,he as DataGridCell,de as DataGridColumn,pe as DataGridHeader,ge as DataGridRow,ve as DataGridSelectAllCell,me as DataGridSelectionCell,D as DatePicker,O as DateRangePicker,fn as Divider,l as Drawer,s as DrawerBody,u as DrawerFooter,c as DrawerHeader,d as DrawerTitle,He as FileInput,st as Flex,lt as FloatingInput,ct as Form,W as FormFeedback,ut as FormField,G as FormHelp,K as FormLabel,nt as Grid,it as GridItem,yn as I18nProvider,U as Icon,xt as IconProvider,pt as InputAdorn,dt as InputGroup,ft as InputGroupAddon,X as Link,wt as List,Ct as ListItem,qe as Menu,Je as MenuDivider,Qe as MenuHeader,Ye as MenuItem,Xe as MenuList,$e as MenuSubmenu,tt as MenuSubmenuBack,et as MenuText,Ze as MenuToggle,h as Modal,p as ModalBody,g as ModalFooter,m as ModalHeader,_ as ModalTitle,Et as Nav,Dt as NavItem,Tt as NavLink,ln as NavOverflow,Ot as NavTitle,kt as Navbar,At as NavbarBrand,Mt as NavbarNav,jt as NavbarText,Nt as NavbarToggler,C as Notification,v as NotificationIcon,E as NotificationStack,y as NotificationText,T as NotificationTitle,pn as NumberField,Ge as OtpInput,j as Pagination,k as PaginationItem,Ke as PasswordStrength,St as Placeholder,Pt as Popover,a as Portal,It as Progress,Ft as ProgressBar,mt as Radio,ht as RadioGroup,ue as RangeCalendar,gt as RangeInput,dn as Scrollspy,hn as SearchField,_t as Select,Lt as Skeleton,Rt as SkeletonLoader,zt as Spinner,re as Stack,Bt as StaticTable,Ht as Stepper,Vt as StepperItem,vt as Switch,Qt as Tab,Yt as TabList,Zt as TabPanel,Kt as Table,Ut as TableBody,Wt as TableCell,qt as TableColumn,Gt as TableHeader,Jt as TableRow,Xt as Tabs,yt as TextInput,bt as Textarea,mn as TimeField,L as Toast,F as ToastBody,N as ToastFooter,z as ToastHeader,M as ToastIcon,B as Toaster,$t as Tooltip,_n as Tree,vn as TreeItem,te as VisuallyHidden,S as addNotification,I as addToast,w as closeNotification,R as closeToast,b as notificationQueue,P as toastQueue,o as useDrawer,i as useHydrated,f as useModal,x as useNotification,A as usePagination,un as useScrollspy,V as useToast};
package/dist/link.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./chunks/focus-ring-SR_LwaN7.js";
2
- import { n as LinkProps, t as Link } from "./chunks/Link-nrd0JWlO.js";
2
+ import { n as LinkProps, t as Link } from "./chunks/Link-CKymd2ru.js";
3
3
  export { Link, type LinkProps };
package/dist/list.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ListProps, i as ListItemDef, n as ListItemProps, r as List, t as ListItem } from "./chunks/index-CJXKl97l.js";
1
+ import { a as ListProps, i as ListItemDef, n as ListItemProps, r as List, t as ListItem } from "./chunks/index-DtvHH_Mb.js";
2
2
  export { List, ListItem, type ListItemDef, type ListItemProps, type ListProps };
package/dist/menu.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { i as MenuItemsDef, n as MenuHeaderDef, r as MenuItemDef, t as MenuDividerDef } from "./chunks/MenuItemDef-D0VDtYIQ.js";
2
2
  import { i as MenuProps, n as MenuAutoClose, r as MenuFocusStrategy, t as Menu } from "./chunks/Menu-QeYOzrUL.js";
3
- import { a as MenuToggle, c as MenuTextProps, d as MenuItem, f as MenuItemProps, g as MenuDividerProps, h as MenuDivider, i as MenuSubmenuProps, l as MenuList, m as MenuHeaderProps, n as MenuSubmenuBackProps, o as MenuToggleProps, p as MenuHeader, r as MenuSubmenu, s as MenuText, t as MenuSubmenuBack, u as MenuListProps } from "./chunks/index-I-H3VJ-L.js";
3
+ import { a as MenuToggle, c as MenuTextProps, d as MenuItem, f as MenuItemProps, g as MenuDividerProps, h as MenuDivider, i as MenuSubmenuProps, l as MenuList, m as MenuHeaderProps, n as MenuSubmenuBackProps, o as MenuToggleProps, p as MenuHeader, r as MenuSubmenu, s as MenuText, t as MenuSubmenuBack, u as MenuListProps } from "./chunks/index-CYvVmTPR.js";
4
4
  export { Menu, type MenuAutoClose, MenuDivider, type MenuDividerDef, type MenuDividerProps, type MenuFocusStrategy, MenuHeader, type MenuHeaderDef, type MenuHeaderProps, MenuItem, type MenuItemDef, type MenuItemProps, type MenuItemsDef, MenuList, type MenuListProps, type MenuProps, MenuSubmenu, MenuSubmenuBack, type MenuSubmenuBackProps, type MenuSubmenuProps, MenuText, type MenuTextProps, MenuToggle, type MenuToggleProps };
@@ -1,2 +1,2 @@
1
- import { n as NavOverflowDetail, r as NavOverflowProps, t as NavOverflow } from "./chunks/index-FKh7iFQE.js";
1
+ import { n as NavOverflowDetail, r as NavOverflowProps, t as NavOverflow } from "./chunks/index-DPCwFiJL.js";
2
2
  export { NavOverflow, type NavOverflowDetail, type NavOverflowProps };
package/dist/nav.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as NavLink, c as NavItemDef, i as NavItemProps, l as NavProps, n as NavTitleProps, o as NavLinkProps, r as NavItem, s as Nav, t as NavTitle } from "./chunks/index-DJr_ZK4b.js";
1
+ import { a as NavLink, c as NavItemDef, i as NavItemProps, l as NavProps, n as NavTitleProps, o as NavLinkProps, r as NavItem, s as Nav, t as NavTitle } from "./chunks/index-DQImhbhy.js";
2
2
  export { Nav, NavItem, type NavItemDef, type NavItemProps, NavLink, type NavLinkProps, type NavProps, NavTitle, type NavTitleProps };
package/dist/navbar.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as NavbarNav, c as NavbarBrandProps, i as NavbarTextProps, l as Navbar, n as NavbarTogglerProps, o as NavbarNavProps, r as NavbarText, s as NavbarBrand, t as NavbarToggler, u as NavbarProps } from "./chunks/index-DceCODH9.js";
1
+ import { a as NavbarNav, c as NavbarBrandProps, i as NavbarTextProps, l as Navbar, n as NavbarTogglerProps, o as NavbarNavProps, r as NavbarText, s as NavbarBrand, t as NavbarToggler, u as NavbarProps } from "./chunks/index-x0vZRyoU.js";
2
2
  export { Navbar, NavbarBrand, type NavbarBrandProps, NavbarNav, type NavbarNavProps, type NavbarProps, NavbarText, type NavbarTextProps, NavbarToggler, type NavbarTogglerProps };
@@ -1,2 +1,2 @@
1
- import { a as closeNotification, c as NotificationStackProps, d as NotificationIcon, f as NotificationIconProps, g as NotificationProps, h as Notification, i as addNotification, l as NotificationText, m as NotificationTitleProps, n as useNotification, o as notificationQueue, p as NotificationTitle, r as NotificationContent, s as NotificationStack, t as UseNotificationResult, u as NotificationTextProps } from "./chunks/index-DjrEvKd-.js";
1
+ import { a as closeNotification, c as NotificationStackProps, d as NotificationIcon, f as NotificationIconProps, g as NotificationProps, h as Notification, i as addNotification, l as NotificationText, m as NotificationTitleProps, n as useNotification, o as notificationQueue, p as NotificationTitle, r as NotificationContent, s as NotificationStack, t as UseNotificationResult, u as NotificationTextProps } from "./chunks/index-BMkbJVHg.js";
2
2
  export { Notification, type NotificationContent, NotificationIcon, type NotificationIconProps, type NotificationProps, NotificationStack, type NotificationStackProps, NotificationText, type NotificationTextProps, NotificationTitle, type NotificationTitleProps, type UseNotificationResult, addNotification, closeNotification, notificationQueue, useNotification };
@@ -1 +1 @@
1
- "use client";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chunks/notification-Ds24wnPq.js";export{a as Notification,e as NotificationIcon,c as NotificationStack,t as NotificationText,s as NotificationTitle,i as addNotification,o as closeNotification,n as notificationQueue,r as useNotification};
1
+ "use client";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chunks/notification-Dbci5Ka3.js";export{a as Notification,e as NotificationIcon,c as NotificationStack,t as NotificationText,s as NotificationTitle,i as addNotification,o as closeNotification,n as notificationQueue,r as useNotification};