@chassis-ui/react 0.1.3 → 0.2.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.
- package/dist/accordion.d.ts +2 -0
- package/dist/accordion.js +1 -0
- package/dist/autocomplete.d.ts +2 -0
- package/dist/autocomplete.js +1 -0
- package/dist/avatar.d.ts +2 -0
- package/dist/avatar.js +1 -0
- package/dist/badge.d.ts +2 -0
- package/dist/badge.js +1 -0
- package/dist/breadcrumb.d.ts +2 -0
- package/dist/breadcrumb.js +1 -0
- package/dist/button-group.d.ts +2 -0
- package/dist/button-group.js +1 -0
- package/dist/button.d.ts +3 -0
- package/dist/button.js +1 -0
- package/dist/calendar.d.ts +3 -0
- package/dist/calendar.js +1 -0
- package/dist/card.d.ts +2 -0
- package/dist/card.js +1 -0
- package/dist/carousel.d.ts +2 -0
- package/dist/carousel.js +1 -0
- package/dist/checkbox.d.ts +3 -0
- package/dist/checkbox.js +1 -0
- package/dist/chip-input.d.ts +2 -0
- package/dist/chip-input.js +1 -0
- package/dist/chip.d.ts +2 -0
- package/dist/chip.js +1 -0
- package/dist/chunks/Button-Cptd4Yk7.d.ts +65 -0
- package/dist/chunks/Button-I0aUy5h-.js +1 -0
- package/dist/chunks/Chip-D0Cw0mAr.js +1 -0
- package/dist/chunks/CloseButton-DJM7FRKh.js +1 -0
- package/dist/chunks/ComboboxItem-C9TpoJOI.d.ts +54 -0
- package/dist/chunks/ComboboxListBox-BhO8uRNg.js +1 -0
- package/dist/chunks/FormHelp-Be2PQL0y.js +1 -0
- package/dist/chunks/FormLabel-CYcQiFUI.js +1 -0
- package/dist/chunks/Icon-BIwkD-kx.js +1 -0
- package/dist/chunks/Icon-CioraWLF.d.ts +36 -0
- package/dist/chunks/Link-B0Y1xgYi.d.ts +69 -0
- package/dist/chunks/Link-Cq7FNWpm.js +1 -0
- package/dist/chunks/MenuItemDef-D0VDtYIQ.d.ts +82 -0
- package/dist/chunks/RangeCalendar-COnSfurr.js +1 -0
- package/dist/chunks/accordion-okRicuG5.js +1 -0
- package/dist/chunks/autocomplete-B0xTc6kg.js +1 -0
- package/dist/chunks/avatar-Bjm0DlPO.js +1 -0
- package/dist/chunks/badge-Bj8mf8lu.js +1 -0
- package/dist/chunks/breadcrumb-DDxnx_iS.js +1 -0
- package/dist/chunks/breakpoints-SLMTNHF9.d.ts +5 -0
- package/dist/chunks/breakpoints-o_2Ev7ir.js +1 -0
- package/dist/chunks/button-group-CPZYA6aZ.js +1 -0
- package/dist/chunks/card-DfF2K_5p.js +1 -0
- package/dist/chunks/carousel-DEvwcA7H.js +1 -0
- package/dist/chunks/checkbox-BFPS0pD6.js +1 -0
- package/dist/chunks/chip-input-CB1lE6vP.js +1 -0
- package/dist/chunks/collapse-WifcChO8.js +1 -0
- package/dist/chunks/color-input-CyRaLR_G.js +1 -0
- package/dist/chunks/combobox-DWEj-Sv7.js +1 -0
- package/dist/chunks/datagrid-nbnNThsT.js +2 -0
- package/dist/chunks/dateRangePresets-R1FtA1zp.d.ts +41 -0
- package/dist/chunks/datepicker-CslLKMm1.js +1 -0
- package/dist/chunks/dialogTransition-i9vw0i2Z.js +1 -0
- package/dist/chunks/direction-CPhdeL3A.js +1 -0
- package/dist/chunks/drawer-zReFjoJG.js +1 -0
- package/dist/chunks/file-input-RRqZSzjH.js +1 -0
- package/dist/chunks/flex-BTvpgaRv.js +1 -0
- package/dist/chunks/floating-input-CIC9Lm2a.js +1 -0
- package/dist/chunks/focus-ring-SR_LwaN7.js +1 -0
- package/dist/chunks/focusRedirect-BrvK3U_o.js +1 -0
- package/dist/chunks/form-GpdAyWWi.js +1 -0
- package/dist/chunks/form-field-BjQ9SIjx.js +1 -0
- package/dist/chunks/grid-CuFw89yV.js +1 -0
- package/dist/chunks/icon-mxYpL5nL.js +1 -0
- package/dist/chunks/iconConfig-Bu6Pt9o3.d.ts +69 -0
- package/dist/chunks/iconSlot-BmWxJh27.js +1 -0
- package/dist/chunks/index--0_IpTDT.d.ts +17 -0
- package/dist/chunks/index-6uob77s9.d.ts +80 -0
- package/dist/chunks/index-8PhBSbNQ.d.ts +93 -0
- package/dist/chunks/index-B0-8n-Gs.d.ts +105 -0
- package/dist/chunks/index-B8uaSJA9.d.ts +95 -0
- package/dist/chunks/index-BA-raEMm.d.ts +28 -0
- package/dist/chunks/index-BDfh8YBc.d.ts +39 -0
- package/dist/chunks/index-BKMW0rkw.d.ts +80 -0
- package/dist/chunks/index-BO9jLOIb.d.ts +58 -0
- package/dist/chunks/index-BO_1MN66.d.ts +87 -0
- package/dist/chunks/index-BTDgfLxK.d.ts +94 -0
- package/dist/chunks/index-BTTeKpiE.d.ts +363 -0
- package/dist/chunks/index-BVGGIaPX.d.ts +110 -0
- package/dist/chunks/index-Bi8FFadV.d.ts +98 -0
- package/dist/chunks/index-Bkj17NEQ.d.ts +50 -0
- package/dist/chunks/index-BlgkO3dn.d.ts +280 -0
- package/dist/chunks/index-BxTlIaZu.d.ts +301 -0
- package/dist/chunks/index-C61tPIJ-.d.ts +50 -0
- package/dist/chunks/index-CCXJXToc.d.ts +52 -0
- package/dist/chunks/index-CJzKu7QI.d.ts +40 -0
- package/dist/chunks/index-COsIPd8L.d.ts +62 -0
- package/dist/chunks/index-COsYSDrz.d.ts +109 -0
- package/dist/chunks/index-CRfm7W6C.d.ts +230 -0
- package/dist/chunks/index-CVUMS0x7.d.ts +73 -0
- package/dist/chunks/index-CaQ1JY5D.d.ts +49 -0
- package/dist/chunks/index-Cf2n0l0U.d.ts +138 -0
- package/dist/chunks/index-CftERHnE.d.ts +24 -0
- package/dist/chunks/index-ClT3E_hv.d.ts +302 -0
- package/dist/chunks/index-CsMIgBsd.d.ts +39 -0
- package/dist/chunks/index-Ctuk1xBU.d.ts +99 -0
- package/dist/chunks/index-D2VVO8rx.d.ts +49 -0
- package/dist/chunks/index-D949AidR.d.ts +40 -0
- package/dist/chunks/index-D9PZHY_I.d.ts +135 -0
- package/dist/chunks/index-DAoPg59I.d.ts +80 -0
- package/dist/chunks/index-DB_ToPdz.d.ts +202 -0
- package/dist/chunks/index-DEb9zXlC.d.ts +210 -0
- package/dist/chunks/index-DHGgezXU.d.ts +58 -0
- package/dist/chunks/index-DJJocp_q.d.ts +132 -0
- package/dist/chunks/index-DKma0jQw.d.ts +104 -0
- package/dist/chunks/index-DPV62IdF.d.ts +118 -0
- package/dist/chunks/index-DR8sYtvd.d.ts +296 -0
- package/dist/chunks/index-Dcc_W6Kv.d.ts +146 -0
- package/dist/chunks/index-Dfg4Ftb8.d.ts +68 -0
- package/dist/chunks/index-Dfy1YW5j.d.ts +73 -0
- package/dist/chunks/index-Dh5CaHTP.d.ts +44 -0
- package/dist/chunks/index-DtbUXxjz.d.ts +53 -0
- package/dist/chunks/index-Dum6Y9XR.d.ts +187 -0
- package/dist/chunks/index-HrKN6s8z.d.ts +66 -0
- package/dist/chunks/index-JllMXhVx.d.ts +176 -0
- package/dist/chunks/index-XjLvaH4G.d.ts +67 -0
- package/dist/chunks/index-dh3TKanY.d.ts +235 -0
- package/dist/chunks/index-nklPDKlC.d.ts +137 -0
- package/dist/chunks/index-qgZ5VGmc.d.ts +177 -0
- package/dist/chunks/index-tOodmT36.d.ts +129 -0
- package/dist/chunks/index-t_x6jj7l.d.ts +96 -0
- package/dist/chunks/input-adorn-C_EHML68.js +1 -0
- package/dist/chunks/input-group-iI7azfvE.js +1 -0
- package/dist/chunks/list-CMr-wB9d.js +1 -0
- package/dist/chunks/menu-CXUc-Gva.js +1 -0
- package/dist/chunks/modal-ByIj71Mq.js +1 -0
- package/dist/chunks/nav-BldxFo_B.js +1 -0
- package/dist/chunks/navbar-BwcsQuBk.js +1 -0
- package/dist/chunks/notification-DdqigVB1.js +1 -0
- package/dist/chunks/otp-input-CXe_wkII.js +1 -0
- package/dist/chunks/overlayPlacement-B7843a-Q.d.ts +6 -0
- package/dist/chunks/overlayPlacement-BtS90IVf.js +1 -0
- package/dist/chunks/pagination-BOpEAYW2.js +1 -0
- package/dist/chunks/password-strength-BfLiYiGj.js +1 -0
- package/dist/chunks/placeholder-pg95KELl.js +1 -0
- package/dist/chunks/polymorphic-CACPOv1_.js +1 -0
- package/dist/chunks/polymorphic-CVHbTHSN.d.ts +40 -0
- package/dist/chunks/popover-BpSfnZzk.js +1 -0
- package/dist/chunks/progress-DlrZ71aV.js +1 -0
- package/dist/chunks/radio-BV7Sq6D1.js +1 -0
- package/dist/chunks/range-input-BN3430j-.js +1 -0
- package/dist/chunks/renderFormCheck-BXBs6_ov.js +1 -0
- package/dist/chunks/renderFormCheck-CYWG-Rbt.d.ts +23 -0
- package/dist/chunks/renderFormField-fBEny6JV.d.ts +14 -0
- package/dist/chunks/renderFormField-wiaxvvLG.js +1 -0
- package/dist/chunks/renderMenuItemContent-CmqT3YUQ.js +1 -0
- package/dist/chunks/select-CclIIux8.js +1 -0
- package/dist/chunks/skeleton-CKq76sE_.js +1 -0
- package/dist/chunks/spacingClassName-DVhk8m3P.js +1 -0
- package/dist/chunks/spinner-BEq4PAlu.js +1 -0
- package/dist/chunks/stack-D3retZ-W.js +1 -0
- package/dist/chunks/static-table-D0M4oc_t.js +1 -0
- package/dist/chunks/stepper-CTa6e8uv.js +1 -0
- package/dist/chunks/switch-BmHpq4tL.js +1 -0
- package/dist/chunks/table-Fme9GbAR.js +1 -0
- package/dist/chunks/tableClassName-CZA2Bse8.js +1 -0
- package/dist/chunks/tabs-BnbMJM_b.js +1 -0
- package/dist/chunks/text-input-DD3d08Yf.js +1 -0
- package/dist/chunks/textarea-C0qQdCcu.js +1 -0
- package/dist/chunks/toast-BQhZ2pv5.js +1 -0
- package/dist/chunks/tooltip-DHtVAYUo.js +1 -0
- package/dist/chunks/triggerElement-BIqA4KqZ.js +1 -0
- package/dist/chunks/types-CS_40Txv.d.ts +34 -0
- package/dist/chunks/useButtonSemantics-CILM_lhi.js +1 -0
- package/dist/chunks/useDialogElement-BRIU60cT.js +1 -0
- package/dist/chunks/useDisabledAnchorGuard-Cz58UCXy.js +1 -0
- package/dist/chunks/useFloatingOverlay-CcmDZKMK.js +1 -0
- package/dist/chunks/useForkedRef-DVEfT-KI.js +1 -0
- package/dist/chunks/useFormField-BOqmBTC4.js +1 -0
- package/dist/chunks/useIsomorphicLayoutEffect-BbqRwuqn.js +1 -0
- package/dist/chunks/useToastRegionQueue-BH6bWZ73.js +1 -0
- package/dist/chunks/validationClassName-gRGs4KBm.js +1 -0
- package/dist/close-button.d.ts +2 -0
- package/dist/close-button.js +1 -0
- package/dist/collapse.d.ts +2 -0
- package/dist/collapse.js +1 -0
- package/dist/color-input.d.ts +2 -0
- package/dist/color-input.js +1 -0
- package/dist/combobox.d.ts +3 -0
- package/dist/combobox.js +1 -0
- package/dist/datagrid.d.ts +2 -0
- package/dist/datagrid.js +1 -0
- package/dist/datepicker.d.ts +2 -0
- package/dist/datepicker.js +1 -0
- package/dist/drawer.d.ts +2 -0
- package/dist/drawer.js +1 -0
- package/dist/file-input.d.ts +2 -0
- package/dist/file-input.js +1 -0
- package/dist/flex.d.ts +2 -0
- package/dist/flex.js +1 -0
- package/dist/floating-input.d.ts +2 -0
- package/dist/floating-input.js +1 -0
- package/dist/form-field.d.ts +2 -0
- package/dist/form-field.js +1 -0
- package/dist/form.d.ts +2 -0
- package/dist/form.js +1 -0
- package/dist/grid.d.ts +2 -0
- package/dist/grid.js +1 -0
- package/dist/icon.d.ts +4 -0
- package/dist/icon.js +1 -0
- package/dist/index.d.ts +72 -6369
- package/dist/index.js +1 -2
- package/dist/input-adorn.d.ts +2 -0
- package/dist/input-adorn.js +1 -0
- package/dist/input-group.d.ts +2 -0
- package/dist/input-group.js +1 -0
- package/dist/link.d.ts +3 -0
- package/dist/link.js +1 -0
- package/dist/list.d.ts +2 -0
- package/dist/list.js +1 -0
- package/dist/menu.d.ts +3 -0
- package/dist/menu.js +1 -0
- package/dist/modal.d.ts +2 -0
- package/dist/modal.js +1 -0
- package/dist/nav.d.ts +2 -0
- package/dist/nav.js +1 -0
- package/dist/navbar.d.ts +2 -0
- package/dist/navbar.js +1 -0
- package/dist/notification.d.ts +2 -0
- package/dist/notification.js +1 -0
- package/dist/otp-input.d.ts +2 -0
- package/dist/otp-input.js +1 -0
- package/dist/pagination.d.ts +2 -0
- package/dist/pagination.js +1 -0
- package/dist/password-strength.d.ts +2 -0
- package/dist/password-strength.js +1 -0
- package/dist/placeholder.d.ts +2 -0
- package/dist/placeholder.js +1 -0
- package/dist/popover.d.ts +2 -0
- package/dist/popover.js +1 -0
- package/dist/progress.d.ts +2 -0
- package/dist/progress.js +1 -0
- package/dist/radio.d.ts +2 -0
- package/dist/radio.js +1 -0
- package/dist/range-input.d.ts +2 -0
- package/dist/range-input.js +1 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +1 -0
- package/dist/skeleton.d.ts +2 -0
- package/dist/skeleton.js +1 -0
- package/dist/spinner.d.ts +2 -0
- package/dist/spinner.js +1 -0
- package/dist/stack.d.ts +2 -0
- package/dist/stack.js +1 -0
- package/dist/static-table.d.ts +2 -0
- package/dist/static-table.js +1 -0
- package/dist/stepper.d.ts +2 -0
- package/dist/stepper.js +1 -0
- package/dist/style.css +1 -1
- package/dist/switch.d.ts +2 -0
- package/dist/switch.js +1 -0
- package/dist/table.d.ts +2 -0
- package/dist/table.js +1 -0
- package/dist/tabs.d.ts +2 -0
- package/dist/tabs.js +1 -0
- package/dist/text-input.d.ts +2 -0
- package/dist/text-input.js +1 -0
- package/dist/textarea.d.ts +2 -0
- package/dist/textarea.js +1 -0
- package/dist/toast.d.ts +2 -0
- package/dist/toast.js +1 -0
- package/dist/tooltip.d.ts +2 -0
- package/dist/tooltip.js +1 -0
- package/package.json +62 -4
- package/src/components/accordion/index.ts +4 -0
- package/src/components/autocomplete/index.ts +4 -0
- package/src/components/avatar/index.ts +4 -0
- package/src/components/badge/index.ts +4 -0
- package/src/components/breadcrumb/index.ts +4 -0
- package/src/components/button/index.ts +4 -0
- package/src/components/button-group/index.ts +4 -0
- package/src/components/calendar/index.ts +4 -0
- package/src/components/card/index.ts +4 -0
- package/src/components/carousel/CarouselControlButton.tsx +11 -4
- package/src/components/carousel/CarouselControlNext.tsx +6 -0
- package/src/components/carousel/CarouselControlPrev.tsx +6 -0
- package/src/components/carousel/CarouselPlayPause.tsx +27 -4
- package/src/components/carousel/index.ts +4 -0
- package/src/components/checkbox/index.ts +4 -0
- package/src/components/chip/index.ts +4 -0
- package/src/components/chip-input/index.ts +4 -0
- package/src/components/close-button/index.ts +4 -0
- package/src/components/collapse/index.ts +4 -0
- package/src/components/color-input/index.ts +4 -0
- package/src/components/combobox/ComboboxListBox.tsx +2 -2
- package/src/components/combobox/index.ts +4 -0
- package/src/components/datagrid/index.ts +4 -0
- package/src/components/datepicker/index.ts +4 -0
- package/src/components/drawer/index.ts +8 -0
- package/src/components/file-input/index.ts +4 -0
- package/src/components/flex/index.ts +4 -0
- package/src/components/floating-input/index.ts +4 -0
- package/src/components/form/index.ts +4 -0
- package/src/components/form-field/index.ts +4 -0
- package/src/components/grid/index.ts +4 -0
- package/src/components/icon/Icon.tsx +69 -38
- package/src/components/icon/IconProvider.tsx +40 -0
- package/src/components/icon/index.ts +7 -0
- package/src/components/input-adorn/index.ts +4 -0
- package/src/components/input-group/index.ts +4 -0
- package/src/components/link/index.ts +4 -0
- package/src/components/list/index.ts +4 -0
- package/src/components/menu/index.ts +4 -0
- package/src/components/modal/index.ts +8 -0
- package/src/components/nav/index.ts +4 -0
- package/src/components/navbar/NavbarToggler.tsx +9 -3
- package/src/components/navbar/index.ts +4 -0
- package/src/components/notification/Notification.tsx +6 -5
- package/src/components/notification/index.ts +8 -0
- package/src/components/otp-input/index.ts +4 -0
- package/src/components/pagination/Pagination.tsx +16 -3
- package/src/components/pagination/index.ts +8 -0
- package/src/components/password-strength/index.ts +4 -0
- package/src/components/placeholder/index.ts +4 -0
- package/src/components/popover/index.ts +4 -0
- package/src/components/progress/index.ts +4 -0
- package/src/components/radio/index.ts +4 -0
- package/src/components/range-input/index.ts +4 -0
- package/src/components/select/index.ts +4 -0
- package/src/components/skeleton/SkeletonLoader.tsx +13 -6
- package/src/components/skeleton/index.ts +4 -0
- package/src/components/spinner/index.ts +4 -0
- package/src/components/stack/index.ts +4 -0
- package/src/components/static-table/StaticTable.tsx +78 -0
- package/src/components/static-table/index.ts +8 -0
- package/src/components/stepper/index.ts +4 -0
- package/src/components/switch/index.ts +4 -0
- package/src/components/table/Table.tsx +14 -22
- package/src/components/table/index.ts +4 -0
- package/src/components/tabs/index.ts +4 -0
- package/src/components/text-input/index.ts +4 -0
- package/src/components/textarea/index.ts +4 -0
- package/src/components/toast/Toast.tsx +2 -1
- package/src/components/toast/ToastHeader.tsx +4 -3
- package/src/components/toast/index.ts +8 -0
- package/src/components/tooltip/index.ts +4 -0
- package/src/hooks/useIconConfig.ts +6 -0
- package/src/index.ts +24 -4
- package/src/utils/iconConfig.ts +88 -0
- package/src/utils/iconSlot.tsx +41 -0
- package/src/utils/polymorphic.ts +49 -2
- package/src/utils/renderMenuItemContent.tsx +4 -9
- package/src/utils/slot.tsx +78 -0
- package/src/utils/tableClassName.ts +93 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
|
|
3
|
+
import { n as ContextColor } from "./types-CS_40Txv.js";
|
|
4
|
+
import { ElementType, ReactElement, ReactNode } from "react";
|
|
5
|
+
//#region src/components/progress/Progress.d.ts
|
|
6
|
+
type ProgressOwnProps<C extends ElementType> = {
|
|
7
|
+
/**
|
|
8
|
+
* Use to animate the stripes right to left via CSS3 animations.
|
|
9
|
+
*/
|
|
10
|
+
animated?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* A string of all className you want applied to the component.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the color of the component to one of Chassis context colors.
|
|
17
|
+
*/
|
|
18
|
+
color?: ContextColor;
|
|
19
|
+
/**
|
|
20
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
21
|
+
*/
|
|
22
|
+
component?: C;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the height of the component, via the `--cx-height` custom property. If you set that
|
|
25
|
+
* value the inner bar (and the striped pattern's tile size) automatically resizes accordingly.
|
|
26
|
+
*/
|
|
27
|
+
height?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Shows the current value as text inside the bar, independently of `showValue` — combine both
|
|
30
|
+
* to get a `label` + `showValue` caption above the bar alongside an `inlineValue` reading
|
|
31
|
+
* inside it.
|
|
32
|
+
*/
|
|
33
|
+
inlineValue?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* A text label describing the progress. Rendered in a caption row above the bar. Also used as
|
|
36
|
+
* the default accessible name when no `aria-label`/`aria-labelledby` is supplied.
|
|
37
|
+
*/
|
|
38
|
+
label?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Shows the current value as text in the caption row above the bar, alongside `label` when
|
|
41
|
+
* both are set, or alone otherwise. Use `inlineValue` to show it inside the bar instead.
|
|
42
|
+
*/
|
|
43
|
+
showValue?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Adds a diagonal stripe pattern over the bar's background.
|
|
46
|
+
*/
|
|
47
|
+
striped?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The percent to progress the ProgressBar (out of 100).
|
|
50
|
+
*/
|
|
51
|
+
value?: number;
|
|
52
|
+
};
|
|
53
|
+
type ProgressProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, ProgressOwnProps<C>>;
|
|
54
|
+
type ProgressComponent = (<C extends ElementType = 'div'>(props: ProgressProps<C> & {
|
|
55
|
+
ref?: PolymorphicRef<C>;
|
|
56
|
+
}) => ReactElement | null) & {
|
|
57
|
+
displayName?: string;
|
|
58
|
+
};
|
|
59
|
+
declare const Progress: ProgressComponent;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/progress/ProgressBar.d.ts
|
|
62
|
+
type ProgressBarOwnProps<C extends ElementType> = {
|
|
63
|
+
/**
|
|
64
|
+
* Use to animate the stripes right to left via CSS3 animations.
|
|
65
|
+
*/
|
|
66
|
+
animated?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* A string of all className you want applied to the component.
|
|
69
|
+
*/
|
|
70
|
+
className?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the color of the component to one of Chassis context colors.
|
|
73
|
+
*/
|
|
74
|
+
color?: ContextColor;
|
|
75
|
+
/**
|
|
76
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
77
|
+
*/
|
|
78
|
+
component?: C;
|
|
79
|
+
/**
|
|
80
|
+
* Adds a diagonal stripe pattern over the bar's background.
|
|
81
|
+
*/
|
|
82
|
+
striped?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* The percent to progress the ProgressBar.
|
|
85
|
+
*/
|
|
86
|
+
value?: number;
|
|
87
|
+
};
|
|
88
|
+
type ProgressBarProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, ProgressBarOwnProps<C>>;
|
|
89
|
+
type ProgressBarComponent = (<C extends ElementType = 'div'>(props: ProgressBarProps<C> & {
|
|
90
|
+
ref?: PolymorphicRef<C>;
|
|
91
|
+
}) => ReactElement | null) & {
|
|
92
|
+
displayName?: string;
|
|
93
|
+
};
|
|
94
|
+
declare const ProgressBar: ProgressBarComponent;
|
|
95
|
+
//#endregion
|
|
96
|
+
export { ProgressProps as i, ProgressBarProps as n, Progress as r, ProgressBar as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";function r({children:e,className:r,component:i,onMouseDown:a,...o},s){let c=i??`span`,l=n(`input-adorn`,r);return t.createElement(c,{className:l,onMouseDown:e=>{a?.(e),e.defaultPrevented||e.preventDefault()},...o,ref:s},e)}const i=e(r,`InputAdorn`);export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";function r({children:e,className:r,component:i,size:a,...o},s){let c=i??`div`,l=n(`input-group`,a,r);return t.createElement(c,{className:l,...o,ref:s},e)}const i=e(r,`InputGroup`);function a({children:e,className:r,component:i,...a},o){let s=i??`span`,c=n(`input-addon`,r);return t.createElement(s,{className:c,...a,ref:o},e)}const o=e(a,`InputGroupAddon`);export{i as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./Link-Cq7FNWpm.js";import n,{Children as r,isValidElement as i}from"react";import a from"classnames";function o({children:e,active:r,className:i,disabled:o,color:s,component:c,...l},u){let d=c??`li`,f=d===`a`||d===`button`,p=a(`list-item`,s&&`context`,s,{"list-action":f,active:r,disabled:o},i),m=f?t:d,h={...f&&{active:r,disabled:o,component:d},...r&&{"aria-current":`page`},...o&&{"aria-disabled":!0},...l};return n.createElement(m,{className:p,...h,ref:u},e)}const s=e(o,`ListItem`);function c({children:e,className:t,component:o,color:c,variant:l,flush:u,items:d,layout:f,numbered:p,plain:m,...h},g){let _=d?d.some(e=>!!e.href):r.toArray(e).some(e=>i(e)&&e.type===s&&(e.props.component===`a`||e.props.component===`button`)),v=o??(_?`div`:`ul`),y=v===`ul`||v===`ol`,b=a(`list`,c&&`context`,c,l,f,{flush:u,plain:m,numbered:p},t),x=(d?d.map((e,t)=>{let r=a(`list-item`,e.color&&`context`,e.color,{"list-action":!!e.href,active:e.active,disabled:e.disabled}),i=e.href?`a`:y?`li`:`div`;return n.createElement(i,{key:e.id??t,className:r,...e.href?{href:e.href}:{},...e.active?{"aria-current":`page`}:{},...e.disabled?{"aria-disabled":!0}:{}},e.label)}):null)??(y?e:r.map(e,e=>i(e)&&e.type===s?n.cloneElement(e,{component:e.props.component??`div`}):e));return n.createElement(v,{className:b,...h,ref:g},x)}const l=e(c,`List`);export{s as n,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useForkedRef-DVEfT-KI.js";import{t as n}from"./useIsomorphicLayoutEffect-BbqRwuqn.js";import{t as r}from"./dialogTransition-i9vw0i2Z.js";import{i,r as a}from"./overlayPlacement-BtS90IVf.js";import{t as o}from"./renderMenuItemContent-CmqT3YUQ.js";import{t as s}from"./Link-Cq7FNWpm.js";import{t as c}from"./Button-I0aUy5h-.js";import l,{Fragment as u,createContext as d,forwardRef as f,useCallback as p,useContext as m,useEffect as h,useId as g,useMemo as _,useRef as v,useState as y}from"react";import b from"classnames";import{mergeProps as x,useButton as S,useLocale as C,useMenuTrigger as w,useOverlayPosition as T}from"react-aria";import{createPortal as E}from"react-dom";import{useMenuTriggerState as D}from"react-stately";const O=()=>void 0,k=d({autoClose:!0,close:O,focusStrategy:null,hide:O,menuId:``,menuStyle:{},menuTriggerProps:{},overlayRef:{current:null},placementAttr:`bottom-start`,reference:`toggle`,registerOverlay:O,show:O,targetRef:{current:null},toggle:O,toggleNodeRef:{current:null},triggerId:``,visible:!1});function A({children:e,autoClose:o=!0,className:s,component:c,container:d,offset:f=[0,2],onHide:p,onHidden:m,onShow:g,onShown:y,placement:x=`bottom-start`,reference:S=`toggle`,visible:C,...E},O){let A=c??u,j=v(null),M=t(O,j),N=v(null),P=v(null),F=v(null),I=v(new Map),L=(e,t)=>{t?I.current.set(e,t):I.current.delete(e)},R=D({defaultOpen:!!C}),{menuTriggerProps:z,menuProps:B}=w({},R,N);h(()=>{C!==void 0&&(C?R.open():R.close())},[C]),n(()=>{S===`parent`&&(P.current=j.current)},[S]);let V=v(!1);h(()=>{let e=F.current,t=!V.current;if(V.current=!0,!t){if(R.isOpen){if(g?.(),!e){y?.();return}return r(e,()=>y?.(),!0)}if(p?.(),!e){m?.();return}return r(e,()=>m?.(),!0)}},[R.isOpen]);let{overlayProps:H,placement:U}=T({targetRef:P,overlayRef:F,placement:i(x),offset:f[1],crossOffset:f[0],containerPadding:8,isOpen:R.isOpen,onClose:null}),{menuStyle:W,placementAttr:G}=a(H.style,x,U),ee=e=>R.open(e),K=()=>R.close(),q=e=>R.toggle(e),J=()=>{R.close(),N.current?.focus()};h(()=>{if(!R.isOpen||o===!1)return;let e=e=>{if(e instanceof KeyboardEvent&&e.key!==`Tab`)return;let t=e.target,n=N.current,r=F.current;if(n?.contains(t))return;let i=!!r?.contains(t)||Array.from(I.current.values()).some(e=>e.contains(t));(o!==`inside`||i)&&(o===`outside`&&i||i&&(e instanceof KeyboardEvent&&e.key===`Tab`||/input|select|option|textarea|form/i.test(t.tagName??``))||K())},t=window.setTimeout(()=>{window.addEventListener(`click`,e),window.addEventListener(`keyup`,e)});return()=>{window.clearTimeout(t),window.removeEventListener(`click`,e),window.removeEventListener(`keyup`,e)}},[R.isOpen,o]),h(()=>{if(!R.isOpen)return;let e=e=>{e.key===`Escape`&&J()};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[R.isOpen]);let te=_(()=>({autoClose:o,close:J,container:d,focusStrategy:R.focusStrategy,hide:K,menuId:B.id??``,menuStyle:W,menuTriggerProps:z,overlayRef:F,placementAttr:G,reference:S,registerOverlay:L,show:ee,targetRef:P,toggle:q,toggleNodeRef:N,triggerId:z.id??``,visible:R.isOpen}),[o,d,R.focusStrategy,B.id,W,z,G,S,R.isOpen]);return l.createElement(k.Provider,{value:te},A===u?e:l.createElement(A,{className:b(s,{show:R.isOpen}),...E,ref:M},e))}const j=e(A,`Menu`),M=f(({className:e,...t},n)=>{let r=b(`menu-divider`,e);return l.createElement(`hr`,{className:r,...t,ref:n})});M.displayName=`MenuDivider`;function N({children:e,className:t,component:n,role:r=`presentation`,...i},a){let o=n??`h4`,s=b(`menu-header`,t);return l.createElement(o,{className:s,role:r,...i,ref:a},e)}const P=e(N,`MenuHeader`);function F({children:e,className:t,component:n,description:r,href:i,icon:a,onClick:c,selected:u,...d},f){let p=b(`menu-item`,{selected:u},t);return l.createElement(s,{role:`menuitem`,component:n,href:i,onClick:e=>{i===`#`&&e.preventDefault(),c?.(e)},...d,className:p,ref:f},o({icon:a,label:e,description:r}))}const I=e(F,`MenuItem`),L=`:is(.menu-item, .submenu-back):not(.disabled):not(:disabled)`,R=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),z=e=>{if(!e)return[];let t=[];for(let n of Array.from(e.children))if(n.matches(L))t.push(n);else if(n.classList.contains(`submenu`)){let e=Array.from(n.children).find(e=>e.matches(L));e&&t.push(e)}return t.filter(R)},B=(e,t)=>{e.length&&(t===`first`?e[0]:e[e.length-1]).focus()},V=(e,{onArrowLeft:t,onArrowRight:n,onEscape:r})=>{let i=e.currentTarget,a=e.target;switch(e.key){case`ArrowDown`:case`ArrowUp`:{e.preventDefault(),e.stopPropagation();let t=z(i);if(!t.length)return;let n=t.indexOf(a);t[n===-1?e.key===`ArrowDown`?0:t.length-1:(n+(e.key===`ArrowDown`?1:-1)+t.length)%t.length].focus();return}case`Home`:case`End`:e.preventDefault(),e.stopPropagation(),B(z(i),e.key===`Home`?`first`:`last`);return;case`Escape`:if(!r)return;e.preventDefault(),e.stopPropagation(),r();return;case`ArrowLeft`:if(!t)return;e.preventDefault(),e.stopPropagation(),t();return;case`ArrowRight`:if(!n)return;e.preventDefault(),e.stopPropagation(),n();return}},H=d(null),U=()=>{let e=v(null);if(!e.current){let t=new Map;e.current={register:(e,n)=>(t.set(e,n),()=>{t.delete(e)}),notifyOpen:e=>{t.forEach((t,n)=>{n!==e&&t()})}}}return e.current},W=d(null),G=e=>e.type===`header`?l.createElement(P,{key:e.id},e.label):e.type===`divider`?l.createElement(M,{key:e.id}):l.createElement(I,{key:e.id,component:e.href?`a`:`button`,href:e.href,disabled:e.disabled,selected:e.selected,onClick:e.onClick},o({icon:e.icon,label:e.label,description:e.description,selected:e.selected}));function ee({children:e,className:n,component:r,items:i,onKeyDown:a,...o},s){let c=r??`div`,{close:u,container:d,focusStrategy:f,menuId:p,menuStyle:g,overlayRef:_,placementAttr:v,triggerId:y,visible:x}=m(k),S=t(s,_),C=U();h(()=>{x&&f&&B(z(_.current),f===`last`?`last`:`first`)},[x,f]);let w=e=>{V(e,{onEscape:u}),a?.(e)},T=l.createElement(c,{role:`menu`,id:p,"aria-labelledby":y,className:b(`menu`,{show:x},n),style:g,"data-cx-placement":v,"aria-hidden":!x,...o,onKeyDown:w,ref:S},l.createElement(H.Provider,{value:C},i?i.map(G):e));return d?typeof window>`u`?null:E(T,d===!0?document.body:d):T}const K=e(ee,`MenuList`);function q({children:e,className:t,component:n,...r},i){let a=n??`span`,o=b(`menu-text`,t);return l.createElement(a,{className:o,...r,ref:i},e)}const J=e(q,`MenuText`);function te({children:e,className:n,component:r,onClick:i,onKeyDown:a,...o},s){let{hide:u,menuTriggerProps:d,reference:f,targetRef:p,toggleNodeRef:h,visible:g}=m(k),_=r??c,y=v(null),{buttonProps:C}=S({...d,elementType:_===c?`button`:`a`},y),w=v(!1),T=t(s,e=>{y.current=e,h.current=e,f!==`parent`&&(p.current=e)}),E=e=>{w.current=e.pointerType!==`touch`&&g},D=e=>{e.preventDefault(),e.stopPropagation(),w.current&&(w.current=!1,u()),i?.(e)};return l.createElement(_,{..._===c?{type:`button`}:{},className:b(`caret`,{show:g},n),...x({onPointerDown:E},o,C,{onClick:D,onKeyDown:a}),ref:T},e)}const ne=e(te,`MenuToggle`),re=f(({children:e,activation:t=`both`,className:n,disabled:r,offset:o=[-4,0],placement:s,stacked:c,submenuDelay:u=100,trigger:d,...f},_)=>{let x=g(),S=`${x}-trigger`,w=`${x}-menu`,[D,O]=y(!1),[A,j]=y(!1),M=v(void 0),N=v(void 0),P=v(null),F=v(null),I=m(H),L=U(),{registerOverlay:R,visible:G}=m(k),{direction:ee}=C(),K=ee===`rtl`,q=s??(K?`left-start`:`right-start`),{overlayProps:J,placement:te}=T({targetRef:P,overlayRef:F,placement:i(q),offset:o[1],crossOffset:o[0],containerPadding:8,isOpen:D,onClose:null}),{menuStyle:ne,placementAttr:re}=a(J.style,q,te),Y=p(()=>{M.current!==void 0&&(window.clearTimeout(M.current),M.current=void 0)},[]),X=p(()=>{N.current!==void 0&&(cancelAnimationFrame(N.current),N.current=void 0)},[]),Z=p(()=>{Y(),X(),O(!1)},[Y,X]),ie=()=>{r||D||(Y(),I?.notifyOpen(x),O(!0))},ae=()=>{Y(),M.current=window.setTimeout(Z,u)};h(()=>I?.register(x,Z),[I,x,Z]),h(()=>Y,[Y]),h(()=>X,[X]),h(()=>j(!0),[]),h(()=>{G||Z()},[G,Z]);let Q=typeof window<`u`&&!!window.matchMedia&&window.matchMedia(`(hover: hover)`).matches&&(t===`hover`||t===`both`),oe=t===`click`||t===`both`,se=()=>{ie(),X(),N.current=requestAnimationFrame(()=>{N.current=void 0,B(z(F.current),`first`)})},$=()=>{Z(),P.current?.focus()},ce=e=>{oe&&!r&&(e.preventDefault(),e.stopPropagation(),D?Z():se())},le=K?`ArrowLeft`:`ArrowRight`,ue=e=>{r||(e.key===`Enter`||e.key===` `||e.key===le)&&(e.preventDefault(),e.stopPropagation(),se())},de={close:$};return l.createElement(`div`,{className:b(`submenu`,{show:D},n),...f,ref:_},l.createElement(`button`,{type:`button`,id:S,role:`menuitem`,className:`menu-item`,"aria-expanded":D,"aria-haspopup":`true`,"aria-controls":D?w:void 0,disabled:r,onClick:ce,onKeyDown:ue,onMouseEnter:Q?ie:void 0,onMouseLeave:Q?ae:void 0,ref:e=>{P.current=e}},d),(()=>{let t=l.createElement(`div`,{role:`menu`,id:w,"aria-labelledby":S,className:b(`menu`,{show:D,"submenu-stacked":c}),style:ne,"data-cx-placement":re,"aria-hidden":!D,onKeyDown:e=>V(e,{onEscape:$,...K?{onArrowRight:$}:{onArrowLeft:$}}),onMouseEnter:Q?Y:void 0,onMouseLeave:Q?ae:void 0,ref:e=>{F.current=e,R(w,e)}},l.createElement(W.Provider,{value:de},l.createElement(H.Provider,{value:L},e)));return A&&!c?E(t,document.body):t})())});re.displayName=`MenuSubmenu`;const Y=f(({children:e,className:t,onClick:n,type:r=`button`,...i},a)=>{let o=m(W),s=e=>{n?.(e),o?.close()};return l.createElement(`button`,{type:r,role:`menuitem`,className:b(`submenu-back`,`menu-item`,t),...i,onClick:s,ref:a},e)});Y.displayName=`MenuSubmenuBack`;export{K as a,M as c,J as i,j as l,re as n,I as o,ne as r,P as s,Y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useDialogElement-BRIU60cT.js";import{t as n}from"./CloseButton-DJM7FRKh.js";import r,{createContext as i,forwardRef as a,useContext as o,useId as s}from"react";import c from"classnames";const l=i({close:()=>{}}),u=a(({children:e,backdrop:n=!0,className:i,fullscreen:a,instant:o,keyboard:u=!0,modal:d=!0,onClick:f,onClose:p,onClosePrevented:m,onHidden:h,onShow:g,onShown:_,scrollable:v,size:y,visible:b,...x},S)=>{let{close:C,forkedRef:w,handleBackdropClick:T,handleCancel:E,hiding:D,staticBounce:O}=t({backdrop:n,instant:o,isModal:d,keyboard:u,onClick:f,onClose:p,onClosePrevented:m,onHidden:h,onShow:g,onShown:_,ref:S,visible:b}),k=s(),A=c(`modal`,`dialog`,{[typeof a==`boolean`?`fullscreen`:`max-${a}:fullscreen`]:a,[`${y}`]:y,instant:o,nonmodal:!d,scrollable:v,hiding:D,"dialog-static":O},i);return r.createElement(l.Provider,{value:{close:C,titleId:k}},r.createElement(`dialog`,{"aria-labelledby":k,...x,className:A,onCancel:E,onClick:T,ref:w},e))});u.displayName=`Modal`;const d=()=>o(l);function f({children:e,className:t,component:n,...i},a){let o=n??`div`,s=c(`modal-body`,t);return r.createElement(o,{className:s,...i,ref:a},e)}const p=e(f,`ModalBody`);function m({children:e,className:t,component:n,stacked:i,...a},o){let s=n??`div`,l=c(`modal-footer`,{stacked:i},t);return r.createElement(s,{className:l,...a,ref:o},e)}const h=e(m,`ModalFooter`);function g({children:e,className:t,closeButton:i=!0,closeLabel:a,component:o,...s},l){let u=o??`div`,{close:f}=d(),p=c(`modal-header`,t);return r.createElement(u,{className:p,...s,ref:l},e,i&&r.createElement(n,{label:a,onClick:f}))}const _=e(g,`ModalHeader`);function v({children:e,component:t,className:n,id:i,...a},o){let{titleId:s}=d(),l=t??`h2`,u=c(`modal-title`,n);return r.createElement(l,{className:u,id:i??s,...a,ref:o},e)}const y=e(v,`ModalTitle`);export{d as a,p as i,_ as n,u as o,h as r,y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./Link-Cq7FNWpm.js";import n,{forwardRef as r}from"react";import i from"classnames";function a({children:e,className:r,...a},o){let s=i(`nav-link`,r);return n.createElement(t,{className:s,...a,ref:o},e)}const o=e(a,`NavLink`);function s({children:e,className:t,...r},a){let s=i(`nav-item`,t),{href:c}=r;return c?n.createElement(`li`,{className:s,ref:a},n.createElement(o,r,e)):n.createElement(`li`,{className:s,...r,ref:a},e)}const c=r(s);c.displayName=`NavItem`;function l({children:e,className:t,component:r,items:a,layout:o,variant:s,...l},u){let d=r??`ul`,f=i(`nav`,{[`nav-${o}`]:o,[`nav-${s}`]:s},t),p=a?a.map((e,t)=>n.createElement(c,{key:t,active:e.active,disabled:e.disabled,href:e.href},e.label)):null;return n.createElement(d,{className:f,role:`navigation`,...l,ref:u},p??e)}const u=e(l,`Nav`),d=r(({children:e,className:t,...r},a)=>{let o=i(`nav-title`,t);return n.createElement(`li`,{className:o,...r,ref:a},e)});d.displayName=`NavTitle`;export{o as i,u as n,c as r,d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./iconSlot-BmWxJh27.js";import n,{forwardRef as r}from"react";import i from"classnames";function a({children:e,className:t,color:r,component:a,container:o,expand:s,placement:c,translucent:l,variant:u,...d},f){let p=a??`nav`,m=i(`navbar`,r,{context:!!r,solid:u===`solid`,smooth:u===`smooth`,outline:u===`outline`,translucent:l,[typeof s==`boolean`?`navbar-expand`:`${s}:navbar-expand`]:s},c,t),h;return h=o?n.createElement(`div`,{className:`container${o===!0?``:`-`+o}`},e):e,n.createElement(p,{className:m,...d,ref:f},h)}const o=e(a,`Navbar`);function s({children:e,component:t,className:r,href:a,...o},s){let c=t??(a?`a`:`span`),l=i(`navbar-brand`,r);return n.createElement(c,{className:l,href:a,...o,ref:s},e)}const c=e(s,`NavbarBrand`);function l({children:e,component:t,className:r,...a},o){let s=t??`ul`,c=i(`navbar-nav`,r);return n.createElement(s,{className:c,...a,ref:o},e)}const u=e(l,`NavbarNav`);function d({children:e,className:t,component:r,...a},o){let s=r??`span`,c=i(`navbar-text`,t);return n.createElement(s,{className:c,...a,ref:o},e)}const f=e(d,`NavbarText`),p=r(({children:e,className:r,icon:a,label:o=`Toggle navigation`,...s},c)=>{let l=i(`button icon-only navbar-toggler`,r);return n.createElement(`button`,{type:`button`,className:l,...s,ref:c},e??n.createElement(n.Fragment,null,n.createElement(t,{icon:`menu`,override:a,className:`navbar-toggler-icon`}),n.createElement(`span`,{className:`visually-hidden`},o)))});p.displayName=`NavbarToggler`;export{o as a,c as i,f as n,u as r,p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{n as t,r as n,t as r}from"./useToastRegionQueue-BH6bWZ73.js";import{t as i}from"./Icon-BIwkD-kx.js";import{n as a}from"./iconSlot-BmWxJh27.js";import{t as o}from"./CloseButton-DJM7FRKh.js";import{t as s}from"./stack-D3retZ-W.js";import c,{createContext as l,forwardRef as u,useContext as d}from"react";import f from"classnames";import{mergeProps as p}from"react-aria";import{ToastQueue as m}from"react-stately";import{Transition as h}from"react-transition-group";const g=l({close:()=>{}}),_=()=>d(g);function v({children:e,component:t,className:n,...r},i){let a=t??`div`,o=f(`notification-text`,n);return c.createElement(a,{className:o,...r,ref:i},e)}const y=e(v,`NotificationText`);function b({children:e,className:t,component:n,...r},i){let a=n??`h4`,o=f(`notification-title`,t);return c.createElement(a,{className:o,...r,ref:i},e)}const x=e(b,`NotificationTitle`),S=u(({actions:e,autohide:r=!1,children:i,className:s,closeLabel:l=`Close`,color:u=`primary`,delay:d=5e3,dismissible:m,icon:_,solid:v,text:b,title:S,titleComponent:C=`h4`,role:w=`status`,visible:T=!0,onClose:E,onShow:D,...O},k)=>{let{close:A,entered:j,forkedRef:M,getTransitionClass:N,textId:P,titleId:F,transitionProps:I,visible:L}=t({onClose:E,onShow:D,ref:k,visible:T}),R=n({enabled:r,delay:d,visible:L&&j,onHide:A}),z=f(`notification`,`fade`,u,{solid:v},s);return c.createElement(h,{...I,mountOnEnter:!0,timeout:150},t=>{let n=N(t);return c.createElement(g.Provider,{value:{visible:L,close:A}},c.createElement(`div`,{className:f(z,n),role:w,"aria-labelledby":S?F:void 0,"aria-describedby":S&&b?P:void 0,...p(O,R),ref:M},_&&(typeof _==`string`?c.createElement(a,{value:_,className:f(`notification-icon`,{"align-self-start":!!S})}):_),S&&c.createElement(x,{id:F,component:C},S),b&&c.createElement(y,{id:P},b),i,e,m&&c.createElement(o,{label:l,onClick:A})))})});S.displayName=`Notification`;const C=u(({className:e,...t},n)=>{let r=f(`notification-icon`,e);return c.createElement(i,{className:r,...t,ref:n})});C.displayName=`NotificationIcon`;const w=new m;function T(e,t={}){return w.add({children:e,...t})}function E(e){w.close(e)}const D=u(({children:e,className:t,reverse:n,...i},a)=>{let{forkedRef:o,regionProps:l,state:u}=r(w,a);if(u.visibleToasts.length===0&&!e)return null;let d=n?[...u.visibleToasts].reverse():u.visibleToasts;return c.createElement(s,{direction:`vertical`,gap:`sm`,className:t,...l,...i,ref:o},e,d.map(e=>{let{children:t,...n}=e.content;return c.createElement(S,{key:e.key,...n,onClose:()=>u.close(e.key)},t)}))});D.displayName=`NotificationStack`;export{C as a,y as c,w as i,_ as l,T as n,S as o,E as r,x as s,D as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,t as n}from"./direction-CPhdeL3A.js";import{t as r}from"./useFormField-BOqmBTC4.js";import{t as i}from"./renderFormField-wiaxvvLG.js";import{t as a}from"./validationClassName-gRGs4KBm.js";import o,{Fragment as s,forwardRef as c,useMemo as l,useRef as u}from"react";import d from"classnames";import{mergeProps as f,useFocusRing as p,useObjectRef as m,useTextField as h}from"react-aria";const g=c(({disabled:e,index:t,invalid:n,mask:r,onChangeValue:i,onKeyDownBox:s,onPasteBox:c,size:l,valid:u,value:g},_)=>{let v=m(_),{focusProps:y,isFocusVisible:b}=p(),{inputProps:x}=h({"aria-label":`Digit ${t+1}`,autoComplete:t===0?`one-time-code`:`off`,isDisabled:e,isInvalid:n,maxLength:1,onChange:i,onFocus:e=>e.target.select(),onKeyDown:s,type:r?`password`:`text`,value:g},v);return o.createElement(`input`,{...f(x,y),className:d(`form-input`,l,a(n,u)),"data-focus-visible":b||void 0,inputMode:`numeric`,onPaste:c,pattern:`\\d*`,ref:v})});g.displayName=`OtpBox`;const _=e=>e.replace(/\D/g,``),v=(e,t)=>{let n=[..._(e)].slice(0,t);return Array.from({length:t},(e,t)=>n[t]??``)},y=c(({className:c,defaultValue:f,disabled:p,groupSizes:m,help:h,id:y,inputGroup:b,invalid:x,invalidFeedback:S,label:C,length:w=6,mask:T,name:E,onChange:D,onComplete:O,separator:k=`–`,size:A,valid:j,validFeedback:M,value:N,...P},F)=>{let I=m&&m.length>0?m.reduce((e,t)=>e+t,0):w,[L,R]=t(N,f??``,D),z=l(()=>v(L,I),[L,I]),B=u([]),V=e=>B.current[e]?.focus(),H=u(null),U=e(F,H),W=e=>{let t=e.join(``);R(t),e.length===I&&e.every(e=>e!==``)&&O?.(t)},G=(e,t)=>{let n=_(t);if(n.length>1){let t=[...n],r=[...z];for(let n=0;n<t.length&&e+n<I;n++)r[e+n]=t[n];W(r),V(Math.min(e+t.length,I-1));return}let r=[...z];r[e]=n,W(r),n&&e<I-1&&V(e+1)},K=(e,t)=>{if(!p)switch(t.key){case`Backspace`:if(!z[e]&&e>0){t.preventDefault();let n=[...z];n[e-1]=``,W(n),V(e-1)}break;case`Delete`:{t.preventDefault();let n=[...z];for(let t=e;t<I-1;t++)n[t]=n[t+1];n[I-1]=``,W(n);break}case`ArrowLeft`:case`ArrowRight`:{let r=t.key===`ArrowRight`===n(t.currentTarget)?e-1:e+1;r>=0&&r<I&&(t.preventDefault(),V(r));break}}},q=e=>{if(e.preventDefault(),p)return;let t=_(e.clipboardData.getData(`text`)).slice(0,I);t&&(W(v(t,I)),V(Math.min(t.length,I)-1))},J=(e,t)=>Array.from({length:t},(t,n)=>e+n).map(e=>o.createElement(g,{disabled:p,index:e,invalid:x,key:e,mask:T,onChangeValue:t=>G(e,t),onKeyDownBox:t=>K(e,t),onPasteBox:q,ref:t=>{B.current[e]=t},size:A,valid:j,value:z[e]??``})),Y;if(m&&m.length>0){let e=0;Y=m.map((t,n)=>{let r=e;return e+=t,o.createElement(s,{key:n},n>0&&o.createElement(`span`,{className:`form-otp-separator`},k),b?o.createElement(`div`,{className:`input-group`},J(r,t)):J(r,t))})}else Y=J(0,I);let{describedBy:X,feedbackId:Z,helpId:Q,inputId:$,labelId:ee,labelledBy:te}=r({ariaDescribedBy:P[`aria-describedby`],ariaLabelledBy:P[`aria-labelledby`],help:h,id:y,invalid:x,invalidFeedback:S,label:C,valid:j,validFeedback:M});return i({children:o.createElement(`div`,{...P,"aria-describedby":X,"aria-labelledby":te,className:d(`form-otp`,{"input-group":b&&!(m&&m.length>0)},a(x,j),c),id:$,ref:U,role:`group`},Y,E&&o.createElement(`input`,{disabled:p,name:E,type:`hidden`,value:z.join(``)})),help:h,ids:{feedback:Z,help:Q,label:ee},invalid:x,invalidFeedback:S,label:C,valid:j,validFeedback:M})});y.displayName=`OtpInput`;export{y as t};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import "react-aria";
|
|
3
|
+
//#region src/utils/overlayPlacement.d.ts
|
|
4
|
+
type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
5
|
+
//#endregion
|
|
6
|
+
export { Placement as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={top:`top`,"top-start":`top start`,"top-end":`top end`,bottom:`bottom`,"bottom-start":`bottom start`,"bottom-end":`bottom end`,left:`left`,"left-start":`left top`,"left-end":`left bottom`,right:`right`,"right-start":`right top`,"right-end":`right bottom`},t=t=>e[t],n=(e,t)=>{if(!t||t===`center`)return e;let n=e.split(`-`)[1];return n?`${t}-${n}`:t},r=(e,t,r)=>({menuStyle:{position:e?.position,top:e?.top,left:e?.left},placementAttr:n(t,r)}),i={"--menu-max-height":`320px`,"--menu-overflow-y":`auto`};export{t as i,n,r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useButtonSemantics-CILM_lhi.js";import{t as n}from"./focusRedirect-BrvK3U_o.js";import{t as r}from"./iconSlot-BmWxJh27.js";import i,{forwardRef as a,useEffect as o,useRef as s}from"react";import c from"classnames";import{mergeProps as l}from"react-aria";function u({prevDisabled:e,nextDisabled:t,onPrev:r,onNext:i}){let a=s(null),c=s(null),l=s(null);return o(()=>{let r=l.current;l.current=null,r&&(r.from===`prev`&&e?n(c.current,r.viaPointer):r.from===`next`&&t&&n(a.current,r.viaPointer))}),{prevRef:a,nextRef:c,handlePrevClick:e=>{l.current={from:`prev`,viaPointer:e.detail!==0},r()},handleNextClick:e=>{l.current={from:`next`,viaPointer:e.detail!==0},i()}}}function d({active:e,children:n,className:r,component:a,disabled:o,href:s,onClick:u,...d},f){let p=c(`pagination-item`,{active:e,disabled:o},r),m=a??(s?`a`:`button`),h=e=>{if(m===`a`&&o){e.preventDefault();return}u?.(e)},g=m!==`button`&&m!==`a`&&!!u,{buttonProps:_,forkedRef:v}=t(f,{disabled:o,onClick:u}),y=e?{"aria-current":`page`}:{};return i.createElement(`li`,{className:p},m===`button`?i.createElement(`button`,{...d,className:`pagination-link`,type:`button`,disabled:o,onClick:h,...y,ref:f},n):m===`a`?i.createElement(`a`,{...d,className:`pagination-link`,href:s,onClick:h,...o&&{"aria-disabled":!0,tabIndex:-1},...y,ref:f},n):i.createElement(m,{className:`pagination-link`,...l(d,g?_:{}),...!g&&{onClick:h},...y,ref:g?v:f},n))}const f=e(d,`PaginationItem`);function p(e,t,n){let r=Math.max(1,n);if(t<=r)return Array.from({length:t},(e,t)=>t+1);let i=Math.floor(r/2),a=Math.max(1,e-i),o=Math.min(t,a+r-1);o-a<r-1&&(a=Math.max(1,o-r+1));let s=[];a>1&&(s.push(1),a>2&&s.push(`...`));for(let e=a;e<=o;e++)s.push(e);return o<t&&(o<t-1&&s.push(`...`),s.push(t)),s}const m=a(({activePage:e=1,align:t,"aria-label":n=`Pagination`,children:a,className:o,maxVisiblePages:s=5,nextIcon:l,nextLabel:d=`Next`,onActivePageChange:m,pages:h,previousIcon:g,previousLabel:_=`Previous`,showPageNumbers:v=!0,showPrevNext:y=!0,size:b,...x},S)=>{let C=c(`pagination`,b,{[`justify-content-${t}`]:t},o),w=h?Math.min(Math.max(e,1),h):e,T=h?w<=1:!1,E=h?w>=h:!1,{prevRef:D,nextRef:O,handlePrevClick:k,handleNextClick:A}=u({prevDisabled:T,nextDisabled:E,onPrev:()=>m&&m(w-1),onNext:()=>m&&m(w+1)}),j=h?i.createElement(i.Fragment,null,y&&i.createElement(f,{ref:D,disabled:T,onClick:k,"aria-label":_},i.createElement(r,{icon:`previous`,override:g,className:`directional-icon`})),v&&p(w,h,s).map((e,t)=>e===`...`?i.createElement(f,{key:`ellipsis-${t}`,disabled:!0,component:`span`,"aria-hidden":`true`},`…`):i.createElement(f,{key:e,active:e===w,onClick:()=>m&&m(e)},e)),y&&i.createElement(f,{ref:O,disabled:E,onClick:A,"aria-label":d},i.createElement(r,{icon:`next`,override:l,className:`directional-icon`}))):null;return i.createElement(`nav`,{"aria-label":n,ref:S,...x},i.createElement(`ul`,{className:C},j??a))});m.displayName=`Pagination`;export{f as n,u as r,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import e,{Fragment as t,useEffect as n,useMemo as r,useRef as i}from"react";import a from"classnames";import{useMeter as o}from"react-aria";const s=[`weak`,`fair`,`good`,`strong`],c={extraLength:1,lowercase:1,longPassword:1,minLength:1,multipleSpecial:1,numbers:1,special:1,uppercase:1},l={fair:`Fair`,good:`Good`,strong:`Strong`,weak:`Weak`},u=[2,4,6],d=/[!"#$%&()*,.:<>?@^{|}]/,f=/[!"#$%&()*,.:<>?@^{|}].*[!"#$%&()*,.:<>?@^{|}]/,p=(e,{minLength:t,scorer:n,weights:r})=>{if(!e)return 0;if(n)return n(e);let i=0;return e.length>=t&&(i+=r.minLength),e.length>=t+4&&(i+=r.extraLength),/[a-z]/.test(e)&&(i+=r.lowercase),/[A-Z]/.test(e)&&(i+=r.uppercase),/\d/.test(e)&&(i+=r.numbers),d.test(e)&&(i+=r.special),f.test(e)&&(i+=r.multipleSpecial),e.length>=16&&(i+=r.longPassword),i},m=(e,t)=>{if(e===0)return null;let[n,r,i]=t;return e<=n?`weak`:e<=r?`fair`:e<=i?`good`:`strong`},h=({"aria-label":d=`Password strength`,className:f,id:h,maxScore:g,messages:_,minLength:v=8,onStrengthChange:y,scorer:b,showText:x=!0,thresholds:S=u,value:C,variant:w=`segmented`,weights:T,...E})=>{let D=r(()=>({...c,...T}),[T]),O=r(()=>({...l,..._}),[_]),k=r(()=>p(C,{minLength:v,scorer:b,weights:D}),[C,v,b,D]),A=r(()=>m(k,S),[k,S]),j=r(()=>g??Object.values(D).reduce((e,t)=>e+t,0),[g,D]),M=i(void 0);n(()=>{M.current!==A&&(M.current=A,y?.({score:k,strength:A}))},[A,k,y]);let{meterProps:N}=o({"aria-label":d,maxValue:j,minValue:0,value:k,valueLabel:A?O[A]:void 0}),P=A?s.indexOf(A):-1;return e.createElement(t,null,e.createElement(`div`,{...N,className:a(w===`bar`?`strength-bar`:`strength`,f),"data-cx-strength":A??void 0,id:h,...E},w===`segmented`&&s.map((t,n)=>e.createElement(`div`,{className:a(`strength-segment`,{active:n<=P}),key:t}))),x&&e.createElement(`span`,{"aria-live":`polite`,className:`strength-text`,"data-cx-strength":A??void 0},A?O[A]:``))};h.displayName=`PasswordStrength`;export{h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";const r=e=>[e===`start`||e===`end`?`float-${e}`:null,e===`center`?`d-block mx-auto`:null];function i({align:e,alt:i,className:a,color:o,component:s,fluid:c,height:l,rounded:u,src:d,text:f,thumbnail:p,title:m=`Placeholder`,variant:h,width:g,..._},v){let y=m!==!1,b=f===!1?void 0:f??(g!==void 0&&l!==void 0?`${g}x${l}`:void 0),x=b!==void 0,S=[y&&m,x&&b].filter(Boolean).join(`: `)||void 0;if(d){let o=s??`img`,f=n({image:c||p,fluid:c,rounded:u,thumbnail:p},r(e),a);return t.createElement(o,{src:d,width:g,height:l,alt:i??S??``,className:f,..._,ref:v})}let C=n(`image`,{context:!!(o||h)},o,h||`bg-evident`,`fg-subtle`,a);return t.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:g,height:l,"aria-label":S,"aria-hidden":!S||void 0,className:C,preserveAspectRatio:`xMidYMid slice`,role:S?`img`:void 0,..._,ref:v},y&&t.createElement(`title`,null,m),x&&t.createElement(`text`,{dy:`.3em`,fill:`currentColor`,textAnchor:`middle`,x:`50%`,y:`50%`},b))}const a=e(i,`Placeholder`);export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./useForkedRef-DVEfT-KI.js";import t,{Fragment as n,cloneElement as r,createContext as i,createElement as a,forwardRef as o,isValidElement as s,useContext as c,version as l}from"react";import{mergeProps as u}from"react-aria";const d=process.env.NODE_ENV!==`production`,f=new Set;function p(e,t){d&&e&&!f.has(t)&&(f.add(t),console.warn(t))}function m(e,t){d&&e&&!f.has(t)&&(f.add(t),console.error(t))}const h=i(null),g=h.Provider,_=parseInt(l,10)>=19;function v(e){return _?e.props.ref:e.ref}const y=o(function({children:n,...i},a){let o=c(h),s=e(a,o?v(o):void 0);return o?t.createElement(h.Provider,{value:null},r(o,{...u(i,o.props),ref:s},n)):null});function b(e,t){return s(e)&&e.type!==n?e:(p(!0,`${t}: \`asChild\` expects exactly one React element as its child (not text, a fragment, or several elements); rendering the default element instead.`),null)}function x(e,t){let n=o(({asChild:n,...r},i)=>{let o=n?b(r.children,t):null;return o?(p(r.component!==void 0,`${t}: both \`asChild\` and \`component\` were passed; \`asChild\` wins and \`component\` is ignored.`),a(g,{value:o},e({...r,component:y,children:o.props.children},i))):e(r,i)});return n.displayName=t,n}export{m as n,p as r,x as t};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, Ref } from "react";
|
|
2
|
+
//#region src/utils/polymorphic.d.ts
|
|
3
|
+
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>['ref'];
|
|
4
|
+
/**
|
|
5
|
+
* Ref type for a polymorphic component that can also pick its element from a prop *other* than
|
|
6
|
+
* `component` — `Button`, `Chip`, `Avatar`, `NavbarBrand` and `PaginationItem` all render an
|
|
7
|
+
* `<a>` when given `href`, and `PaginationItem` a `<span>` when `active`, none of which moves `C`
|
|
8
|
+
* off its default. A plain `PolymorphicRef<C>` describes only the `component` branch, so a caller
|
|
9
|
+
* holding a ref for the element that actually gets rendered (`<Button href="/x" ref={anchorRef}>`)
|
|
10
|
+
* got a spurious type error while the runtime happily populated it.
|
|
11
|
+
*
|
|
12
|
+
* `Ref` over the *union* rather than a union of `Ref`s is what makes a
|
|
13
|
+
* `createRef<HTMLButtonElement | HTMLAnchorElement>()` assignable here: `RefObject` is invariant
|
|
14
|
+
* in its type argument, so `RefObject<A | B>` satisfies `Ref<A | B>` but neither `Ref<A>` nor
|
|
15
|
+
* `Ref<B>` on its own.
|
|
16
|
+
*/
|
|
17
|
+
type PolymorphicRefWithFallback<C extends ElementType, Fallback extends HTMLElement> = PolymorphicRef<C> | Ref<Fallback>;
|
|
18
|
+
/**
|
|
19
|
+
* The `asChild` prop every polymorphic component accepts alongside `component` — see
|
|
20
|
+
* `createPolymorphicComponent` below for how it's implemented once for all of them.
|
|
21
|
+
*/
|
|
22
|
+
interface AsChildProps {
|
|
23
|
+
/**
|
|
24
|
+
* Render the single child element in place of this component's own element, with this
|
|
25
|
+
* component's classes, props and ref merged onto it: `<Button asChild><Link href="/login">Log
|
|
26
|
+
* in</Link></Button>`. The alternative to `component` for React Server Components — an element
|
|
27
|
+
* can be passed from the server to this package's client components, a component reference
|
|
28
|
+
* (`component={Link}`) can't.
|
|
29
|
+
*/
|
|
30
|
+
asChild?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Props for a polymorphic component: `OwnProps` (which must declare `component?: C`) plus
|
|
34
|
+
* whatever props `C` itself accepts, minus any name already claimed by `OwnProps` so the two
|
|
35
|
+
* don't conflict. Lets consumers swap `component` for e.g. a framework's `Image` and get full
|
|
36
|
+
* type-checking/autocomplete for that component's own props at the call site.
|
|
37
|
+
*/
|
|
38
|
+
type PolymorphicComponentProps<C extends ElementType, OwnProps extends object> = OwnProps & AsChildProps & Omit<ComponentPropsWithoutRef<C>, keyof OwnProps | keyof AsChildProps>;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { PolymorphicRef as n, PolymorphicRefWithFallback as r, PolymorphicComponentProps as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,r as n,t as r}from"./useFloatingOverlay-CcmDZKMK.js";import{i,n as a}from"./overlayPlacement-BtS90IVf.js";import{n as o,t as s}from"./triggerElement-BIqA4KqZ.js";import c,{useCallback as l,useEffect as u,useRef as d}from"react";import f from"classnames";import{mergeProps as p,useDialog as m,useOverlayPosition as h,useOverlayTrigger as g}from"react-aria";import{createPortal as _}from"react-dom";import{useOverlayTriggerState as v}from"react-stately";import{Transition as y}from"react-transition-group";const b=({arrowProps:e,content:t,overlayRef:n,overlayTriggerProps:i,title:a,...o})=>{let{dialogProps:s,titleProps:l}=m({},n);return c.createElement(`div`,{...p(i,s,o),ref:n},c.createElement(`div`,{className:`popover-arrow`,...e,style:r(e)}),a&&c.createElement(`div`,{className:`popover-header`,...l},a),c.createElement(`div`,{className:`popover-body`},t))},x=({children:r,content:m,placement:x=`right`,offset:S=[0,8],onHide:C,onShow:w,title:T,visible:E,...D})=>{let O=d(null),k=d(null),A=d(null),j=l(e=>{k.current=e},[]),M=s(r),N=e(j,o(M)),P=v({defaultOpen:!!E}),{triggerProps:{onPress:F,...I},overlayProps:L}=g({type:`dialog`},P,k),R=n({close:P.close,isOpen:P.isOpen,open:P.open,onHide:C,onShow:w,triggerRef:k,visible:E});u(()=>{if(!P.isOpen)return;let e=e=>{e.key===`Escape`&&P.close()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[P.isOpen,P.close]),u(()=>{if(!P.isOpen)return;let e=e=>{let t=e.target;k.current?.contains(t)||A.current?.contains(t)||P.close()},t=window.setTimeout(()=>{window.addEventListener(`click`,e)});return()=>{window.clearTimeout(t),window.removeEventListener(`click`,e)}},[P.isOpen,P.close]);let{overlayProps:z,arrowProps:B,placement:V}=h({targetRef:k,overlayRef:A,placement:i(x),offset:S[1],crossOffset:S[0],arrowSize:8,arrowRef:O,isOpen:P.isOpen,onClose:null}),H={position:z.style?.position,top:z.style?.top,left:z.style?.left},U=a(x,V);return c.createElement(c.Fragment,null,c.cloneElement(M,{...p(M.props,I,{onClick:()=>P.toggle()}),ref:N}),typeof window<`u`&&_(c.createElement(y,{in:P.isOpen,mountOnEnter:!0,nodeRef:A,onExited:()=>{let e=k.current;if(!e||!document.contains(e))return;let t=document.activeElement,n=!t||t===document.body,r=!!t&&!!A.current?.contains(t);(n||r)&&e.focus()},timeout:{enter:0,exit:200},unmountOnExit:!0},e=>{let n=t(e);return c.createElement(b,{className:f(`popover cx-popover-auto`,n),"data-cx-placement":U,style:H,overlayTriggerProps:L,overlayRef:A,arrowProps:B,title:T,content:m,...D})}),R??document.body))};x.displayName=`Popover`;export{x as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t,{useId as n}from"react";import r from"classnames";function i({children:e,animated:n,className:i,color:a,component:o,striped:s,style:c,value:l=0,...u},d){let f=o??`div`,p=Math.min(100,Math.max(0,l)),m=r(`progress-bar`,a&&`bg-${a} fg-contrast`,{striped:s,animated:n},i);return t.createElement(f,{...u,className:m,style:{width:`${p}%`,...c},ref:d},t.createElement(`span`,{className:`mx-2xs`},e))}const a=e(i,`ProgressBar`);function o({"aria-label":e,animated:i,children:o,className:s,color:c,component:l,height:u,inlineValue:d,label:f,showValue:p,striped:m,style:h,value:g=0,..._},v){let y=l??`div`,b=r(`progress`,s),x=Math.min(100,Math.max(0,g)),S=o===void 0?d?`${x}%`:void 0:o,C=!!(f||p),w=n(),T=f!=null&&typeof f!=`string`,E={...h};u!==void 0&&(E[`--cx-height`]=`${u}px`);let D=t.createElement(y,{..._,className:b,role:`progressbar`,"aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":100,"aria-label":e??(typeof f==`string`?f:void 0),"aria-labelledby":!e&&T?w:void 0,style:E,ref:v},t.createElement(a,{animated:i,color:c,striped:m,value:x},S));return C?t.createElement(`div`,{className:`d-flex flex-column gap-xs`},t.createElement(`div`,{className:r(`d-flex`,f?`justify-content-between`:`justify-content-end`)},f?t.createElement(`span`,{className:`font-strong`,id:T?w:void 0},f):null,p?t.createElement(`span`,{className:`font-strong`},x,`%`):null),D):D}const s=e(o,`Progress`);export{a as n,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,t as n}from"./FormHelp-Be2PQL0y.js";import{t as r}from"./validationClassName-gRGs4KBm.js";import{t as i}from"./renderFormCheck-BXBs6_ov.js";import{t as a}from"./flex-BTvpgaRv.js";import o,{createContext as s,forwardRef as c,useContext as l,useRef as u}from"react";import d from"classnames";import{useRadio as f,useRadioGroup as p}from"react-aria";import{useRadioGroupState as m}from"react-stately";const h=s(null),g=c(({button:t,children:n,className:a,color:s,disabled:c,id:p,label:m,size:g,..._},v)=>{let y=l(h);if(!y)throw Error(`Radio must be rendered inside a RadioGroup.`);let{state:b,valid:x}=y,S=b.isInvalid,C=u(null),w=e(v,C),T=m??n,{inputProps:E}=f({..._,children:T,isDisabled:c},b,C),D=d(r(S,x));return i({button:t,className:a,color:s,input:o.createElement(`input`,{...E,className:D,id:p,ref:w}),invalid:S,label:T,size:g,valid:x})});g.displayName=`Radio`;const _=c(({children:e,className:i,defaultValue:s,description:c,disabled:l,errorMessage:u,invalid:f,label:g,name:_,onChange:v,orientation:y,required:b,valid:x,value:S,...C},w)=>{let T={...C,defaultValue:s,description:c,errorMessage:u,isDisabled:l,isInvalid:f,isRequired:b,label:g,name:_,onChange:v,orientation:y,value:S},E=m(T),{radioGroupProps:D,labelProps:O,descriptionProps:k,errorMessageProps:A}=p(T,E),j=d(`form-field`,r(f,x),i),M=o.createElement(h.Provider,{value:{state:E,valid:x}},e);return o.createElement(`fieldset`,{...C,...D,className:j,ref:w},g&&o.createElement(`legend`,{className:`form-label`,...O},g),y===`horizontal`?o.createElement(a,{gap:`md`},M):M,c&&o.createElement(n,k,c),f&&u&&o.createElement(t,{invalid:!0,...A},u))});_.displayName=`RadioGroup`;export{g as n,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useFormField-BOqmBTC4.js";import{t}from"./renderFormField-wiaxvvLG.js";import{t as n}from"./validationClassName-gRGs4KBm.js";import r,{forwardRef as i}from"react";import a from"classnames";const o=i(({className:i,help:o,id:s,invalid:c,invalidFeedback:l,label:u,valid:d,validFeedback:f,...p},m)=>{let{describedBy:h,feedbackId:g,helpId:_,inputId:v}=e({ariaDescribedBy:p[`aria-describedby`],help:o,id:s,invalid:c,invalidFeedback:l,valid:d,validFeedback:f}),y=a(`form-range`,n(c,d),i);return t({children:r.createElement(`input`,{...p,"aria-describedby":h,"aria-invalid":c||void 0,className:y,id:v,ref:m,type:`range`}),help:o,ids:{feedback:g,help:_,input:v},invalid:c,invalidFeedback:l,label:u,valid:d,validFeedback:f})});o.displayName=`RangeInput`;export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./FormLabel-CYcQiFUI.js";import{t}from"./validationClassName-gRGs4KBm.js";import n from"react";import r from"classnames";const i=({button:i,className:a,color:o,input:s,invalid:c,label:l,size:u,valid:d})=>{if(i){let o=r(`button`,`button-check`,i.color,i.variant,i.size,i.shape,t(c,d),a);return n.createElement(e,{customClassName:o},s,l)}let f=r(`check-input`,o,t(c,d));if(!l)return n.createElement(`span`,{className:f},s);let p=r(`form-check`,u,t(c,d),a);return n.createElement(e,{customClassName:p},n.createElement(`span`,{className:f},s),l)};export{i as t};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { a as Shapes, n as ContextColor } from "./types-CS_40Txv.js";
|
|
2
|
+
import React, { ReactNode } from "react";
|
|
3
|
+
//#region src/components/form/renderFormCheck.d.ts
|
|
4
|
+
type ButtonObject = {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the color of the component to one of Chassis context colors.
|
|
7
|
+
*/
|
|
8
|
+
color?: ContextColor;
|
|
9
|
+
/**
|
|
10
|
+
* Select the shape of the component.
|
|
11
|
+
*/
|
|
12
|
+
shape?: Shapes;
|
|
13
|
+
/**
|
|
14
|
+
* Size the component sm or lg.
|
|
15
|
+
*/
|
|
16
|
+
size?: 'sm' | 'lg';
|
|
17
|
+
/**
|
|
18
|
+
* Set the button variant to an outlined button or a ghost button.
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'outline' | 'ghost';
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ButtonObject as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
//#region src/components/form-field/renderFormField.d.ts
|
|
3
|
+
interface FormFieldIds {
|
|
4
|
+
feedback?: string;
|
|
5
|
+
help?: string;
|
|
6
|
+
input?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The label's own id, for controls with no single input to associate via `htmlFor` (e.g. a
|
|
9
|
+
* multi-input group) — reference it from the control's own `aria-labelledby` instead.
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { FormFieldIds as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./FormHelp-Be2PQL0y.js";import{t as n}from"./FormLabel-CYcQiFUI.js";import r from"react";import i from"classnames";const a=({children:a,className:o,help:s,ids:c={},invalid:l,invalidFeedback:u,label:d,valid:f,validFeedback:p})=>{let m=!!(l&&u),h=!!(f&&p)&&!m;return!d&&!s&&!m&&!h&&!o?a:r.createElement(`div`,{className:i(`form-field`,o)},d&&r.createElement(n,{htmlFor:c.input,id:c.label},d),a,s&&r.createElement(t,{id:c.help},s),m&&r.createElement(e,{id:c.feedback,invalid:!0},u),h&&r.createElement(e,{id:c.feedback,valid:!0},p))};export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./iconSlot-BmWxJh27.js";import t from"react";const n=({icon:n,label:r,description:i,selected:a})=>n==null&&i==null&&!a?r:t.createElement(t.Fragment,null,n!=null&&t.createElement(`span`,{className:`menu-item-icon`,"aria-hidden":`true`},n),i==null?r:t.createElement(`span`,{className:`menu-item-content`},t.createElement(`span`,null,r),t.createElement(`small`,{className:`menu-item-description`},i)),a&&t.createElement(e,{icon:`check`,className:`menu-item-check`}));export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{r as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useForkedRef-DVEfT-KI.js";import{t as n}from"./useFormField-BOqmBTC4.js";import{t as r}from"./renderFormField-wiaxvvLG.js";import{t as i}from"./validationClassName-gRGs4KBm.js";import a,{forwardRef as o,useRef as s}from"react";import c from"classnames";const l=o(({adornEnd:o,adornStart:l,children:u,className:d,help:f,htmlSize:p,id:m,invalid:h,invalidFeedback:g,label:_,multiple:v,options:y,placeholder:b,size:x,valid:S,validFeedback:C,...w},T)=>{let E=s(null),D=t(T,E),O=Array.isArray(y)?y.filter(e=>typeof e==`object`&&!!e.selected).map(e=>String(e.value??``)):[];e(!v&&O.length>1,"Select: more than one option has `selected: true` but `multiple` is not set — only the last one will be selected, matching native <select> behavior.");let k=O.length&&w.value===void 0&&w.defaultValue===void 0?v?O:O[O.length-1]:void 0,{describedBy:A,feedbackId:j,helpId:M,inputId:N}=n({ariaDescribedBy:w[`aria-describedby`],help:f,id:m,invalid:h,invalidFeedback:g,valid:S,validFeedback:C}),P=l!=null||o!=null,F=!v&&(!p||p<=1),I=c(P?`ghost-input`:`form-input`,!P&&x,i(h,S),!P&&d),L=e=>{let t=E.current,n=e.target;if(t&&!t.disabled&&F&&n!==t&&!n.closest(`button, a`)){t.focus();try{t.showPicker?.()}catch{}}},R=a.createElement(`select`,{...w,"aria-describedby":A,"aria-invalid":h||void 0,className:I,id:N,multiple:v,ref:D,size:p,...k!==void 0&&{defaultValue:k}},b&&a.createElement(`option`,{value:``,disabled:!0},b),y?y.map((e,t)=>a.createElement(`option`,{...typeof e==`object`&&e.disabled&&{disabled:e.disabled},...typeof e==`object`&&e.value!=null&&{value:e.value},key:t},typeof e==`string`?e:e.label??String(e.value??``))):u),z=P?a.createElement(`div`,{className:c(`form-input`,F&&`form-caret`,x,d),onClick:L},l,R,o):R;return r({children:z,help:f,ids:{feedback:j,help:M,input:N},invalid:h,invalidFeedback:g,label:_,valid:S,validFeedback:C})});l.displayName=`Select`;export{l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./breakpoints-o_2Ev7ir.js";import n,{Fragment as r}from"react";import i from"classnames";const a=(e,t)=>[typeof e==`number`||typeof e==`string`?`${t}col-${e}`:null,e===!0?`${t}col`:null];function o({children:e,animation:r,className:o,color:s,component:c,span:l,responsive:u,...d},f){let p=c??`span`,m=i(`skeleton`,r&&`skeleton-${r}`,{[`bg-${s}`]:s},t(a,l,u),o);return n.createElement(p,{className:m,...d,ref:f},e)}const s=e(o,`Skeleton`);function c({children:e,color:t,component:i,loading:a,spans:o,...c}){if(!a)return n.createElement(n.Fragment,null,e);let l=o===void 0?[void 0]:Array.isArray(o)?o:[o];return n.createElement(n.Fragment,null,l.map((e,a)=>n.createElement(r,{key:a},a>0&&` `,n.createElement(s,{component:i,span:e,color:t,...c}))))}const l=c;l.displayName=`SkeletonLoader`;export{s as n,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t,n=``)=>typeof t==`string`||typeof t==`number`?`${n}${e}-${t}`:null;export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";function r({className:e,color:r,component:i,size:a,variant:o=`border`,visuallyHiddenLabel:s=`Loading...`,...c},l){let u=i??`div`,d=n(`spinner-${o}`,r?`fg-${r}`:null,a&&`spinner-${o}-${a}`,e);return t.createElement(u,{className:d,role:`status`,...c,ref:l},t.createElement(`span`,{className:`visually-hidden`},s))}const i=e(r,`Spinner`);export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./breakpoints-o_2Ev7ir.js";import{t as n}from"./spacingClassName-DVhk8m3P.js";import r from"react";import i from"classnames";const a=(e,t)=>[`${t}${e===`vertical`?`vstack`:`hstack`}`];function o({children:e,className:o,component:s,direction:c=`horizontal`,gap:l,responsive:u,...d},f){let p=s??`div`,m=i(t(a,c,u),n(`gap`,l),o);return r.createElement(p,{className:m,...d,ref:f},e)}const s=e(o,`Stack`);export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./tableClassName-CZA2Bse8.js";import n,{forwardRef as r}from"react";const i=r(({align:r,bordered:i,borderless:a,caption:o,children:s,className:c,color:l,hover:u,responsive:d,sm:f,stacked:p,striped:m,...h},g)=>{let _=n.createElement(`table`,{...h,className:t({align:r,bordered:i,borderless:a,className:c,color:l,hover:u,sm:f,stacked:p,striped:m}),ref:g},o&&n.createElement(`caption`,null,o),s),v=e({responsive:d,stacked:p});return v?n.createElement(`div`,{className:v},_):_});i.displayName=`StaticTable`;export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t,{Children as n,isValidElement as r}from"react";import i from"classnames";function a({active:e,children:n,className:r,color:a,component:o,href:s,...c},l){let u=o??`li`,d=i(`stepper-item`,a&&`context`,a,{active:e},r),f={...s?{href:s}:{},...e?{"aria-current":`step`}:{},...c};return t.createElement(u,{className:d,...f,ref:l},n)}const o=e(a,`StepperItem`);function s({children:e,className:a,component:s,color:c,icon:l,items:u,layout:d,overflow:f,...p},m){let h=u?u.some(e=>!!e.href):n.toArray(e).some(e=>r(e)&&e.type===o&&(e.props.component===`a`||e.props.component===`button`)),g=s??(h?`div`:`ol`),_=g===`ol`||g===`ul`,v=i(`stepper`,c&&`context`,c,d,{"icon-stepper":l},a),y=(u?u.map((e,n)=>t.createElement(o,{key:n,active:e.active,color:e.color,component:e.href?`a`:_?`li`:`div`,href:e.href},e.label)):null)??(_?e:n.map(e,e=>r(e)&&e.type===o?t.cloneElement(e,{component:e.props.component??`div`}):e)),b=t.createElement(g,{className:v,...p,ref:m},y);return f?t.createElement(`div`,{className:`stepper-overflow`},b):b}const c=e(s,`Stepper`);export{o as n,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{t}from"./FormLabel-CYcQiFUI.js";import{t as n}from"./validationClassName-gRGs4KBm.js";import r,{forwardRef as i,useRef as a}from"react";import o from"classnames";import{useSwitch as s}from"react-aria";import{useToggleState as c}from"react-stately";const l=({checkInputClassName:e,className:n,input:i,label:a})=>a?r.createElement(t,{customClassName:n},r.createElement(`span`,{className:e},i),a):r.createElement(`span`,{className:e},i),u=({className:e,color:t,forkedRef:i,id:a,inputProps:s,invalid:c,label:u,size:d,valid:f})=>{let p=o(n(c,f)),m=o(`check-input`,t,n(c,f)),h=o(`form-check form-switch`,d,n(c,f),e);return l({checkInputClassName:m,className:h,input:r.createElement(`input`,{...s,className:p,id:a,ref:i}),label:u})},d=i(({className:t,children:n,color:r,defaultSelected:i,disabled:o,id:l,invalid:d,isSelected:f,label:p,onChange:m,size:h,valid:g,..._},v)=>{let y=a(null),b=e(v,y),x=p??n,S=c({defaultSelected:i,isDisabled:o,isSelected:f,onChange:m}),{inputProps:C}=s({..._,children:x,isDisabled:o,isInvalid:d,value:_.value},S,y);return u({className:t,color:r,forkedRef:b,id:l,inputProps:C,invalid:d,label:x,size:h,valid:g})});d.displayName=`SwitchCheckbox`;const f=i(({children:t,className:n,color:r,defaultSelected:i,disabled:o,id:s,invalid:c,isSelected:l,label:d,onChange:f,size:p,valid:m,...h},g)=>{let _=a(null),v=e(g,_),y=d??t,b={...h,"aria-invalid":c,checked:l,defaultChecked:i,disabled:o,onChange:f?e=>f(e.target.checked):void 0,role:`switch`,type:`radio`};return u({className:n,color:r,forkedRef:v,id:s,inputProps:b,invalid:c,label:y,size:p,valid:m})});f.displayName=`SwitchRadio`;const p=i(({type:e=`checkbox`,...t},n)=>e===`radio`?r.createElement(f,{...t,ref:n}):r.createElement(d,{...t,ref:n}));p.displayName=`Switch`;export{p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,t as n}from"./tableClassName-CZA2Bse8.js";import r,{forwardRef as i,useRef as a}from"react";import o from"classnames";import{useCheckbox as s,useTable as c,useTableCell as l,useTableColumnHeader as u,useTableHeaderRow as d,useTableRow as f,useTableRowGroup as p,useTableSelectAllCheckbox as m,useTableSelectionCheckbox as h}from"react-aria";import{Cell as g,Column as _,Row as v,TableBody as y,TableHeader as b,useTableState as x,useToggleState as S}from"react-stately";const C=i(({align:i,bordered:o,borderless:s,caption:l,children:u,className:d,color:f,disabledKeys:p,footer:m,hover:h,id:g,onSelectionChange:_,onSortChange:v,responsive:y,selectedKeys:b,selectionMode:S=`none`,sm:C,sortDescriptor:j,stacked:M,striped:N,...P},F)=>{let I=x({children:u,disabledKeys:p,onSelectionChange:_,onSortChange:v,selectedKeys:b,selectionMode:S,showSelectionCheckboxes:S===`multiple`,sortDescriptor:j}),L=a(null),R=e(L,F),{gridProps:z}=c({"aria-label":P[`aria-label`],"aria-labelledby":P[`aria-labelledby`],id:g},I,L),B=n({align:i,bordered:o,borderless:s,className:d,color:f,hover:h,sm:C,stacked:M,striped:N}),V=r.createElement(`table`,{...z,className:B,ref:R},l&&r.createElement(`caption`,null,l),r.createElement(w,{className:u[0].props.className,type:`thead`},I.collection.headerRows.map(e=>r.createElement(T,{key:e.key,item:e,state:I},[...I.collection.getChildren?.(e.key)??[]].map(e=>e.props?.isSelectionCell?r.createElement(D,{key:e.key,column:e,state:I}):r.createElement(E,{key:e.key,column:e,state:I}))))),r.createElement(w,{className:u[1].props.className,type:`tbody`},[...I.collection.body.childNodes].map(e=>r.createElement(O,{key:e.key,item:e,state:I},[...I.collection.getChildren?.(e.key)??[]].map(e=>e.props?.isSelectionCell?r.createElement(A,{key:e.key,cell:e,state:I}):r.createElement(k,{key:e.key,cell:e,stacked:!!M,state:I}))))),m&&r.createElement(`tfoot`,null,m)),H=t({responsive:y,stacked:M});return H?r.createElement(`div`,{className:H},V):V});C.displayName=`Table`;const w=({className:e,type:t,children:n})=>{let{rowGroupProps:i}=p();return r.createElement(t,{...i,className:e||void 0},n)},T=({children:e,item:t,state:n})=>{let i=a(null),{rowProps:o}=d({node:t},n,i);return r.createElement(`tr`,{...o,ref:i},e)},E=({column:e,state:t})=>{let n=a(null),{columnHeaderProps:i}=u({node:e},t,n),o=t.sortDescriptor?.column===e.key,s=t.sortDescriptor?.direction===`ascending`?`▲`:`▼`;return r.createElement(`th`,{...i,className:e.props?.className||void 0,colSpan:e.colSpan??void 0,scope:`col`,ref:n},e.rendered,e.props?.allowsSorting&&r.createElement(`span`,{"aria-hidden":`true`,className:`table-sort-icon`},o?s:`⇅`))},D=({column:e,state:t})=>{let n=a(null),{columnHeaderProps:i}=u({node:e},t,n),{checkboxProps:o}=m(t);return r.createElement(`th`,{...i,className:`table-selection-cell`,scope:`col`,suppressHydrationWarning:!0,ref:n},r.createElement(j,{checkboxProps:o}))},O=({children:e,item:t,state:n})=>{let i=a(null),{rowProps:s}=f({node:t},n,i),c=n.selectionManager.isSelected(t.key);return r.createElement(`tr`,{...s,className:o({active:c},t.props?.className),ref:i},e)},k=({cell:e,stacked:t,state:n})=>{let i=a(null),{gridCellProps:o}=l({node:e},n,i);return r.createElement(`td`,{...o,className:e.props?.className||void 0,"data-cell":t&&e.column?.textValue||void 0,ref:i},e.rendered)},A=({cell:e,state:t})=>{let n=a(null),{gridCellProps:i}=l({node:e},t,n),{checkboxProps:o}=h({key:e.parentKey},t);return r.createElement(`td`,{...i,className:`table-selection-cell`,suppressHydrationWarning:!0,ref:n},r.createElement(j,{checkboxProps:o}))},j=({checkboxProps:e})=>{let t=S(e),n=a(null),{inputProps:i}=s(e,t,n);return r.createElement(`input`,{...i,className:`check-input`,ref:n})},M=y,N=g,P=_,F=b,I=v;export{M as a,N as i,F as n,C as o,P as r,I as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"classnames";function t({align:t,bordered:n,borderless:r,className:i,color:a,hover:o,sm:s,stacked:c,striped:l}){return e(`table`,a,{[`align-${t}`]:t,bordered:n,borderless:r,hoverable:o,sm:s,stacked:c===!0,striped:l},typeof c==`string`?`max-${c}:stacked`:void 0,i)||void 0}function n({responsive:e,stacked:t}){if(e||t)return!e||e===!0?`table-responsive`:`max-${e}:table-responsive`}export{n,t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useForkedRef-DVEfT-KI.js";import n,{createContext as r,forwardRef as i,useContext as a,useEffect as o,useRef as s}from"react";import c from"classnames";import{useTab as l,useTabList as u,useTabPanel as d}from"react-aria";import{Item as f,useTabListState as p}from"react-stately";import{Transition as m}from"react-transition-group";const h=r(null),g=()=>{let e=a(h);if(!e)throw Error(`TabList and TabPanel must be rendered inside a Tabs`);return e},_=i(({className:e,variant:r=`tabs`,...i},a)=>{let{keyboardActivation:o,orientation:l,state:d}=g(),f=s(null),p=t(a,f),{tabListProps:m}=u({keyboardActivation:o,orientation:l,...i},d,f),h=c(`nav`,`nav-${r}`,e);return n.createElement(`ul`,{className:h,...m,ref:p},[...d.collection].map(e=>n.createElement(v,{key:e.key,item:e})))});_.displayName=`TabList`;const v=({item:e})=>{let{state:t}=g(),r=s(null),{tabProps:i,isSelected:a,isDisabled:o}=l({key:e.key},t,r);return n.createElement(`li`,{className:`nav-item`,role:`presentation`},n.createElement(`a`,{className:c(`nav-link`,{active:a,disabled:o}),...i,ref:r},e.rendered))};function y({children:e,className:t,component:r,defaultSelectedKey:i,disabledKeys:a,keyboardActivation:c,onSelectionChange:l,orientation:u,selectedKey:d,...m},g){let v=r??`div`,y=n.Children.toArray(e),b=y.find(e=>n.isValidElement(e)&&e.type===_),x=y.filter(e=>e!==b),S=(b?n.Children.toArray(b.props.children):[]).filter(e=>n.isValidElement(e)),C=S.filter(e=>e.props.disabled).map(e=>e.props.id),w=a?[...a,...C]:C,T=p({children:e=>n.createElement(f,{key:e.props.id,textValue:typeof e.props.children==`string`?e.props.children:void 0},e.props.children),items:S,defaultSelectedKey:i,disabledKeys:w,selectedKey:d,onSelectionChange:l}),E=s(!0);return o(()=>{E.current=!1},[]),n.createElement(h.Provider,{value:{keyboardActivation:c,orientation:u,state:T,isInitialSelectionRef:E}},n.createElement(v,{className:t,...m,ref:g},b,n.createElement(`div`,{className:`tab-content`},x)))}const b=e(y,`Tabs`),x=e=>null;x.displayName=`Tab`;const S=i(({children:e,className:r,id:i,...a},o)=>{let{state:l,isInitialSelectionRef:u}=g(),f=s(null),p=t(o,f),{tabPanelProps:h}=d({id:i},l,f);return l.selectedKey===i?n.createElement(m,{in:!0,appear:!u.current,nodeRef:f,timeout:150},t=>n.createElement(`div`,{className:c(`tab-pane`,`fade`,`active`,{show:t===`entered`},r),...h,...a,ref:p},e)):null});S.displayName=`TabPanel`;export{_ as i,x as n,b as r,S as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{t}from"./useFormField-BOqmBTC4.js";import{t as n}from"./renderFormField-wiaxvvLG.js";import{t as r}from"./validationClassName-gRGs4KBm.js";import i,{forwardRef as a,useRef as o}from"react";import s from"classnames";import{useTextField as c}from"react-aria";const l=a(({adornEnd:a,adornStart:l,className:u,disabled:d,help:f,id:p,invalid:m,invalidFeedback:h,label:g,plainText:_,readOnly:v,size:y,type:b=`text`,valid:x,validFeedback:S,...C},w)=>{let T=o(null),E=e(w,T),{describedBy:D,feedbackId:O,helpId:k,inputId:A,labelId:j,labelledBy:M}=t({ariaDescribedBy:C[`aria-describedby`],ariaLabelledBy:C[`aria-labelledby`],help:f,id:p,invalid:m,invalidFeedback:h,label:g,valid:x,validFeedback:S}),{inputProps:N}=c({...C,"aria-describedby":D,"aria-labelledby":M,id:A,isDisabled:d,isInvalid:m,isReadOnly:v,type:b},T),P=l!=null||a!=null,F=s(P?`ghost-input`:`form-input`,!P&&_&&`plaintext`,!P&&y,r(m,x),!P&&u),I=i.createElement(`input`,{...N,className:F,ref:E}),L=P?i.createElement(`div`,{className:s(`form-input`,_&&`plaintext`,y,u)},l,I,a):I;return n({children:L,help:f,ids:{feedback:O,help:k,input:A,label:j},invalid:m,invalidFeedback:h,label:g,valid:x,validFeedback:S})});l.displayName=`TextInput`;export{l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{t}from"./useFormField-BOqmBTC4.js";import{t as n}from"./renderFormField-wiaxvvLG.js";import{t as r}from"./validationClassName-gRGs4KBm.js";import i,{forwardRef as a,useRef as o}from"react";import s from"classnames";import{useTextField as c}from"react-aria";const l=a(({className:a,disabled:l,help:u,id:d,invalid:f,invalidFeedback:p,label:m,plainText:h,readOnly:g,rows:_,size:v,valid:y,validFeedback:b,...x},S)=>{let C=o(null),w=e(S,C),{describedBy:T,feedbackId:E,helpId:D,inputId:O,labelId:k,labelledBy:A}=t({ariaDescribedBy:x[`aria-describedby`],ariaLabelledBy:x[`aria-labelledby`],help:u,id:d,invalid:f,invalidFeedback:p,label:m,valid:y,validFeedback:b}),{inputProps:j}=c({...x,"aria-describedby":T,"aria-labelledby":A,id:O,inputElementType:`textarea`,isDisabled:l,isInvalid:f,isReadOnly:g},C),M=s(`form-input`,h&&`plaintext`,v,r(f,y),a);return n({children:i.createElement(`textarea`,{...j,rows:_,className:M,ref:w}),help:u,ids:{feedback:E,help:D,input:O,label:k},invalid:f,invalidFeedback:p,label:m,valid:y,validFeedback:b})});l.displayName=`Textarea`;export{l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{n as t,r as n,t as r}from"./useToastRegionQueue-BH6bWZ73.js";import{t as i}from"./Icon-BIwkD-kx.js";import{n as a}from"./iconSlot-BmWxJh27.js";import{t as o}from"./CloseButton-DJM7FRKh.js";import s,{createContext as c,forwardRef as l,useContext as u}from"react";import d from"classnames";import{mergeProps as f}from"react-aria";import{createPortal as p}from"react-dom";import{ToastQueue as m}from"react-stately";import{Transition as h}from"react-transition-group";const g=c({close:()=>{}}),_=()=>u(g);function v({children:e,className:t,closeButton:n,closeLabel:r,component:i,...a},c){let{close:l}=_(),u=i??`div`,f=d(`toast-body`,{"d-flex align-items-start justify-content-between gap-sm":n},t);return s.createElement(u,{className:f,...a,ref:c},n?s.createElement(`div`,null,e):e,n&&s.createElement(o,{label:r,onClick:l}))}const y=e(v,`ToastBody`);function b({children:e,className:t,component:n,...r},i){let a=n??`div`,o=d(`toast-footer`,t);return s.createElement(a,{className:o,...r,ref:i},e)}const x=e(b,`ToastFooter`);function S({children:e,className:t,closeButton:n,closeLabel:r,component:i,icon:c,time:l,titleId:u,...f},p){let{close:m}=_(),h=i??`div`,g=d(`toast-header`,t);return s.createElement(h,{className:g,...f,ref:p},c!=null&&(typeof c==`string`?s.createElement(`span`,{"aria-hidden":`true`,className:`me-sm`},s.createElement(a,{value:c,className:`toast-icon`})):s.createElement(`span`,{className:`me-sm`},c)),e!=null&&s.createElement(`strong`,{id:u,className:`me-auto`},e),l!=null&&s.createElement(`small`,null,l),n&&s.createElement(o,{label:r,onClick:m}))}const C=e(S,`ToastHeader`),w=l(({children:e,animation:r=!0,autohide:i=!0,className:a,closeButton:o,closeLabel:c,color:l,delay:u=5e3,footer:p,icon:m,message:_,role:v=`status`,solid:b,time:S,title:w,translucent:T,visible:E=!1,onClose:D,onShow:O,...k},A)=>{let{close:j,entered:M,forkedRef:N,getTransitionClass:P,textId:F,titleId:I,transitionProps:L,visible:R}=t({onClose:D,onShow:O,ref:A,visible:E}),z=n({enabled:i,delay:u,visible:R&&M,onHide:j}),B={visible:R,close:j},V=d(`toast`,{fade:r,context:!!l,solid:!!(b&&l),translucent:T},l,a),H=m!=null||w!=null||S!=null,U=o&&(H||_==null),W=o&&!H&&_!=null,G=H||U;return s.createElement(h,{...L,timeout:250},t=>{let n=P(t);return s.createElement(g.Provider,{value:B},s.createElement(`div`,{className:d(V,n),role:v,"aria-labelledby":w==null?void 0:I,"aria-describedby":w!=null&&_!=null?F:void 0,...f(k,z),ref:N},G&&s.createElement(C,{icon:m,time:S,titleId:w==null?void 0:I,closeButton:U,closeLabel:c},w),_!=null&&s.createElement(y,{id:w!=null&&_!=null?F:void 0,closeButton:W,closeLabel:c},_),e,p!=null&&s.createElement(x,null,typeof p==`function`?p(j):p)))})});w.displayName=`Toast`;const T=l(({className:e,...t},n)=>{let r=d(`toast-icon`,e);return s.createElement(i,{className:r,...t,ref:n})});T.displayName=`ToastIcon`;const E=new m;function D(e,t={}){return E.add({children:e,...t})}function O(e){E.close(e)}const k=l(({children:e,className:t,placement:n,...i},a)=>{let{forkedRef:o,regionProps:c,state:l}=r(E,a),u=d(`toaster toast-container p-md`,{"position-fixed":n,"position-static":!n,"top-0":n&&n.includes(`top`),"top-50 translate-middle-y":n&&n.includes(`middle`),"bottom-0":n&&n.includes(`bottom`),"start-0":n&&n.includes(`start`),"start-50 translate-middle-x":n&&n.includes(`center`),"end-0":n&&n.includes(`end`)},t),f=t=>l.visibleToasts.length>0||e?s.createElement(`div`,{className:u,...c,...i,ref:t},e,l.visibleToasts.map(e=>{let{children:t,...n}=e.content;return s.createElement(w,{key:e.key,visible:!0,...n,onClose:()=>l.close(e.key)},t)})):null;return typeof window<`u`&&n?p(f(o),document.body):f(o)});k.displayName=`Toaster`;export{T as a,x as c,E as i,y as l,D as n,w as o,O as r,C as s,k as t,_ as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,r as n,t as r}from"./useFloatingOverlay-CcmDZKMK.js";import{i,n as a}from"./overlayPlacement-BtS90IVf.js";import{n as o,t as s}from"./triggerElement-BIqA4KqZ.js";import c,{useCallback as l,useRef as u}from"react";import d from"classnames";import{mergeProps as f,useOverlayPosition as p,useTooltip as m,useTooltipTrigger as h}from"react-aria";import{createPortal as g}from"react-dom";import{useTooltipTriggerState as _}from"react-stately";import{Transition as v}from"react-transition-group";const y=({children:y,content:b,placement:x=`top`,offset:S=[0,6],onHide:C,onShow:w,trigger:T,visible:E,...D})=>{let O=u(null),k=u(null),A=u(null),j=l(e=>{k.current=e},[]),M=s(y),N=e(j,o(M)),P=_({trigger:T,delay:0,closeDelay:0}),{triggerProps:F,tooltipProps:I}=h({trigger:T},P,k),{tooltipProps:L}=m({},P),R=n({close:()=>P.close(!0),isOpen:P.isOpen,open:()=>P.open(!0),onHide:C,onShow:w,triggerRef:k,visible:E}),{overlayProps:z,arrowProps:B,placement:V}=p({targetRef:k,overlayRef:A,placement:i(x),offset:S[1],crossOffset:S[0],arrowSize:8,arrowRef:O,isOpen:P.isOpen}),H={position:z.style?.position,top:z.style?.top,left:z.style?.left},U=a(x,V);return c.createElement(c.Fragment,null,c.cloneElement(M,{...f(M.props,F),ref:N}),typeof window<`u`&&g(c.createElement(v,{in:P.isOpen,mountOnEnter:!0,nodeRef:A,timeout:{enter:0,exit:200},unmountOnExit:!0},e=>{let n=t(e);return c.createElement(`div`,{className:d(`tooltip cx-tooltip-auto`,n),"data-cx-placement":U,ref:A,style:H,...f(I,L),...D},c.createElement(`div`,{className:`tooltip-arrow`,...B,style:r(B)}),c.createElement(`div`,{className:`tooltip-inner`},b))}),R??document.body))};y.displayName=`Tooltip`;export{y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{version as e}from"react";const t=e=>e,n=parseInt(e,10)>=19,r=e=>n?e.props.ref:e.ref;export{r as n,t};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Breakpoints
|
|
4
|
+
*/
|
|
5
|
+
type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
6
|
+
/**
|
|
7
|
+
* Context colors
|
|
8
|
+
*/
|
|
9
|
+
type ContextColor = 'default' | 'alternate' | 'primary' | 'secondary' | 'neutral' | 'success' | 'danger' | 'warning' | 'info' | 'black' | 'white';
|
|
10
|
+
/**
|
|
11
|
+
* Context styles
|
|
12
|
+
*/
|
|
13
|
+
type ContextStyle = 'basic' | 'solid' | 'outline' | 'smooth';
|
|
14
|
+
/**
|
|
15
|
+
* Component sizes
|
|
16
|
+
*/
|
|
17
|
+
type Sizing = 'sm' | 'md' | 'lg';
|
|
18
|
+
/**
|
|
19
|
+
* Extended sizes
|
|
20
|
+
*/
|
|
21
|
+
type ExtendedSizing = '2xs' | 'xs' | Sizing | 'xl' | '2xl';
|
|
22
|
+
/**
|
|
23
|
+
* Spacing values. `SPACING` is the runtime source of truth — `Spacing` is derived from it so the
|
|
24
|
+
* two can't drift apart; anything needing the values at runtime (e.g. validating a string against
|
|
25
|
+
* the scale) should import `SPACING`, not hand-copy the list.
|
|
26
|
+
*/
|
|
27
|
+
declare const SPACING: readonly ["zero", "4xs", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"];
|
|
28
|
+
type Spacing = (typeof SPACING)[number];
|
|
29
|
+
/**
|
|
30
|
+
* Component shapes
|
|
31
|
+
*/
|
|
32
|
+
type Shapes = 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3';
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Shapes as a, ExtendedSizing as i, ContextColor as n, Sizing as o, ContextStyle as r, Spacing as s, Breakpoint as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./useForkedRef-DVEfT-KI.js";import{useRef as t}from"react";import{useButton as n}from"react-aria";const r=(r,{disabled:i,onClick:a})=>{let o=t(null),s=e(r,o),{buttonProps:c}=n({elementType:`div`,isDisabled:i,onClick:a},o);return{buttonProps:c,forkedRef:s}};export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./useForkedRef-DVEfT-KI.js";import{t}from"./useIsomorphicLayoutEffect-BbqRwuqn.js";import{t as n}from"./dialogTransition-i9vw0i2Z.js";import{useEffect as r,useRef as i,useState as a}from"react";import{usePreventScroll as o}from"react-aria";const s=({backdrop:s,instant:c,isModal:l,keyboard:u=!0,onBeforeShow:d,onClick:f,onClose:p,onClosePrevented:m,onHidden:h,onShow:g,onShown:_,ref:v,visible:y})=>{let b=i(null),x=e(v,b),[S,C]=a(y),[w,T]=a(!1),[E,D]=a(!1),[O,k]=a(!1),A=i(!1),j=i(null);o({isDisabled:!O}),r(()=>{C(y)},[y]);let M=()=>{p?.()},N=()=>{m?.();let e=b.current;e&&(D(!0),n(e,()=>D(!1),!c))},P=i(M);P.current=M;let F=i(N);return F.current=N,t(()=>{let e=b.current;if(e){if(S){if(e.open)return;d?.(e),j.current=document.activeElement instanceof HTMLElement?document.activeElement:null,A.current=l,l?(e.showModal(),k(!0)):e.show();let t=e.querySelector(`[autofocus]`);return t?t.focus():(e.setAttribute(`tabindex`,`-1`),e.focus()),g?.(),T(!1),n(e,()=>_?.(),!c)}e.open&&T(!0)}},[S]),r(()=>{let e=b.current;if(w&&e)return n(e,()=>{e.open&&e.close(),A.current&&k(!1),T(!1),h?.();let t=j.current;t&&document.contains(t)&&t.focus()},!c)},[w]),r(()=>{let e=b.current;if(!e)return;let t=e=>{if(!(e.key!==`Escape`||A.current)){if(e.preventDefault(),!u){F.current();return}P.current()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[u]),{close:M,dialogRef:b,forkedRef:x,handleBackdropClick:e=>{if(f?.(e),e.target===b.current&&A.current){if(s===`static`){N();return}M()}},handleCancel:e=>{if(e.preventDefault(),!u){N();return}M()},hiding:w,staticBounce:E}};export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t,n)=>r=>{if(e&&t){r.preventDefault();return}n?.(r)};export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e,useRef as t,useState as n}from"react";function r({close:r,isOpen:i,open:a,onHide:o,onShow:s,triggerRef:c,visible:l}){let[u,d]=n(null),f=()=>c.current?.closest(`dialog[open]`)??document.body;e(()=>{l!==void 0&&(d(f()),l?a():r())},[l]);let p=t(!1);e(()=>{let e=!p.current;p.current=!0,i?(d(f()),e||s?.()):e||o?.()},[i]);let m=t(r);return m.current=r,e(()=>{let e=u?.closest(`dialog`);if(!i||!e)return;let t=()=>m.current();return e.addEventListener(`close`,t),()=>e.removeEventListener(`close`,t)},[i,u]),u}function i(e){return{position:`absolute`,...e.style,transform:e.style?.top===void 0?`translateX(-50%)`:`translateY(-50%)`}}function a(e){return e===`entering`?`fade`:e===`entered`?`fade show`:`fade`}export{a as n,r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useMemo as e}from"react";function t(...t){return e(()=>t.every(e=>e==null)?null:e=>{t.forEach(t=>{n(t,e)})},t)}function n(e,t){if(e!=null){if(r(e))e(t);else try{e.current=t}catch(n){throw Error(`Cannot assign value "${t}" to ref "${e}"`,{cause:n})}}}function r(e){return!!(e&&{}.toString.call(e)==`[object Function]`)}export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useId as e}from"react";const t=({ariaDescribedBy:t,ariaLabelledBy:n,help:r,id:i,invalid:a,invalidFeedback:o,label:s,valid:c,validFeedback:l})=>{let u=e(),d=i??u,f=`${u}-label`,p=`${u}-help`,m=`${u}-feedback`;return{describedBy:[r&&p,(a&&o||c&&l)&&m,t].filter(Boolean).join(` `)||void 0,feedbackId:m,helpId:p,inputId:d,labelId:f,labelledBy:[s&&f,n].filter(Boolean).join(` `)||void 0}};export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e,useLayoutEffect as t}from"react";const n=typeof window>`u`?e:t;export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./useForkedRef-DVEfT-KI.js";import{useCallback as t,useEffect as n,useId as r,useRef as i,useState as a}from"react";import{useToastRegion as o}from"react-aria";import{useToastQueue as s}from"react-stately";function c({enabled:e=!1,delay:r=5e3,visible:a,onHide:o}){let s=i(void 0),c=i(!1),l=i(!1),u=t(()=>{clearTimeout(s.current),s.current=void 0},[]),d=t(()=>{u(),!(!e||c.current||l.current)&&(s.current=window.setTimeout(o,r))},[e,r,o,u]);return n(()=>u,[u]),n(()=>{a?d():u()},[a,e,r,d,u]),{onMouseEnter:t(()=>{c.current=!0,u()},[u]),onMouseLeave:t(()=>{c.current=!1,d()},[d]),onFocus:t(()=>{l.current=!0,u()},[u]),onBlur:t(()=>{l.current=!1,d()},[d])}}function l({onClose:o,onShow:s,ref:c,visible:l=!1}){let[u,d]=a(l),[f,p]=a(!1),m=i(null),h=e(c,m),g=r(),_=r();return n(()=>{d(l)},[l]),{close:t(()=>d(!1),[]),entered:f,forkedRef:h,getTransitionClass:e=>e===`entering`||e===`exiting`?`show showing`:e===`entered`?`show`:void 0,textId:_,titleId:g,transitionProps:{appear:!0,in:u,nodeRef:m,onEnter:()=>s?.(),onEntered:()=>p(!0),onExit:()=>p(!1),onExited:()=>o?.(),unmountOnExit:!0},visible:u}}function u(t,n){let r=s(t),a=i(null),{regionProps:c}=o({},r,a);return{forkedRef:e(n,a),regionProps:c,state:r}}export{l as n,c as r,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t)=>({"is-invalid":e,"is-valid":t});export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"./chunks/focus-ring-SR_LwaN7.js";import{t as e}from"./chunks/CloseButton-DJM7FRKh.js";export{e as CloseButton};
|
package/dist/collapse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./chunks/collapse-WifcChO8.js";export{e as Collapse};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./chunks/color-input-CyRaLR_G.js";export{e as ColorInput};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { i as ComboboxGroupProps, n as ComboboxItemProps, r as ComboboxGroup, t as ComboboxItem } from "./chunks/ComboboxItem-C9TpoJOI.js";
|
|
2
|
+
import { n as ComboboxProps, t as Combobox } from "./chunks/index-Bi8FFadV.js";
|
|
3
|
+
export { Combobox, ComboboxGroup, type ComboboxGroupProps, ComboboxItem, type ComboboxItemProps, type ComboboxProps };
|
package/dist/combobox.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{o as e}from"./chunks/ComboboxListBox-BhO8uRNg.js";import{n as t,t as n}from"./chunks/combobox-DWEj-Sv7.js";export{n as Combobox,t as ComboboxGroup,e as ComboboxItem};
|
|
@@ -0,0 +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";
|
|
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/datagrid.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./chunks/datagrid-nbnNThsT.js";export{t as DataGrid,o as DataGridBody,i as DataGridCell,e as DataGridColumn,n as DataGridHeader,a as DataGridRow,s as DataGridSelectAllCell,r as DataGridSelectionCell};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as DatePickerProps, i as DatePickerMultipleProps, n as DateRangePickerProps, o as DatePickerSingleProps, r as DatePicker, t as DateRangePicker } from "./chunks/index-BxTlIaZu.js";
|
|
2
|
+
export { DatePicker, type DatePickerMultipleProps, type DatePickerProps, type DatePickerSingleProps, DateRangePicker, type DateRangePickerProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{n as e,t}from"./chunks/datepicker-CslLKMm1.js";export{e as DatePicker,t as DateRangePicker};
|
package/dist/drawer.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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-Dum6Y9XR.js";
|
|
2
|
+
export { Drawer, DrawerBody, type DrawerBodyProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, type UseDrawerResult, useDrawer };
|
package/dist/drawer.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as e,i as t,n,o as r,r as i,t as a}from"./chunks/drawer-zReFjoJG.js";export{r as Drawer,t as DrawerBody,i as DrawerFooter,n as DrawerHeader,a as DrawerTitle,e as useDrawer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./chunks/file-input-RRqZSzjH.js";export{e as FileInput};
|
package/dist/flex.d.ts
ADDED
package/dist/flex.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./chunks/flex-BTvpgaRv.js";export{e as Flex};
|