@chassis-ui/react 0.1.2 → 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 -6354
- 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/Checkbox.tsx +19 -4
- 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/Radio.tsx +13 -3
- 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/Switch.tsx +16 -3
- 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,235 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
|
|
3
|
+
import { i as IconValue } from "./iconConfig-Bu6Pt9o3.js";
|
|
4
|
+
import React, { ButtonHTMLAttributes, ElementType, HTMLAttributes, ReactElement } from "react";
|
|
5
|
+
//#region src/components/carousel/context.d.ts
|
|
6
|
+
type CarouselEnds = 'loop' | 'wrap' | 'stop';
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/carousel/Carousel.d.ts
|
|
9
|
+
type CarouselTransition = 'scroll' | 'fade';
|
|
10
|
+
interface CarouselSlideDetail {
|
|
11
|
+
/**
|
|
12
|
+
* Direction of travel, mirrored in RTL.
|
|
13
|
+
*/
|
|
14
|
+
direction: 'left' | 'right';
|
|
15
|
+
/**
|
|
16
|
+
* Index of the outgoing slide.
|
|
17
|
+
*/
|
|
18
|
+
from: number;
|
|
19
|
+
/**
|
|
20
|
+
* Index of the incoming slide.
|
|
21
|
+
*/
|
|
22
|
+
to: number;
|
|
23
|
+
}
|
|
24
|
+
interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
|
|
25
|
+
/**
|
|
26
|
+
* The active slide's index, for controlled usage. Pair with `onSlide` or `onSlid` to feed the
|
|
27
|
+
* new index back — they're the only way a controlled carousel's `activeIndex` gets updated.
|
|
28
|
+
*/
|
|
29
|
+
activeIndex?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Let each CarouselItem size itself instead of dividing the track evenly; snap points still land on every slide.
|
|
32
|
+
*/
|
|
33
|
+
auto?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Cycle through slides automatically on mount.
|
|
36
|
+
*/
|
|
37
|
+
autoplay?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Snap the active slide to the center of the viewport instead of its start.
|
|
40
|
+
*/
|
|
41
|
+
center?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* A string of all className you want applied to the base component.
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The active slide's index, for uncontrolled usage.
|
|
48
|
+
*/
|
|
49
|
+
defaultActiveIndex?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Behavior at the first/last slide. `loop` continues seamlessly past the ends for a single-slide layout, falling back to `wrap` for multi-item, peek, centered, or variable-width layouts, and under reduced motion. `wrap` jumps from the last slide back to the first, and vice versa. `stop` hard-stops and disables the previous/next controls at each end.
|
|
52
|
+
*/
|
|
53
|
+
ends?: CarouselEnds;
|
|
54
|
+
/**
|
|
55
|
+
* Milliseconds to wait before automatically advancing to the next slide. Override per slide with CarouselItem's own `interval` prop.
|
|
56
|
+
*/
|
|
57
|
+
interval?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Number of whole slides visible per view, applied as the `--cx-carousel-items` custom property.
|
|
60
|
+
*/
|
|
61
|
+
items?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Space between slides, applied as the `--cx-carousel-items-gap` custom property.
|
|
64
|
+
*/
|
|
65
|
+
itemsGap?: string;
|
|
66
|
+
/**
|
|
67
|
+
* How much of the neighboring slides to reveal, applied as the `--cx-carousel-items-peek` custom property.
|
|
68
|
+
*/
|
|
69
|
+
itemsPeek?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Move to the previous/next slide with the Left/Right arrow keys while focus is inside the carousel.
|
|
72
|
+
*/
|
|
73
|
+
keyboard?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Callback fired once a slide transition completes.
|
|
76
|
+
*/
|
|
77
|
+
onSlid?: (detail: CarouselSlideDetail) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Callback fired when a slide transition begins.
|
|
80
|
+
*/
|
|
81
|
+
onSlide?: (detail: CarouselSlideDetail) => void;
|
|
82
|
+
/**
|
|
83
|
+
* Pause autoplay on `mouseenter`, resuming on `mouseleave`. Set to `false` to disable pause-on-hover.
|
|
84
|
+
*/
|
|
85
|
+
pause?: 'hover' | false;
|
|
86
|
+
/**
|
|
87
|
+
* Replace the scroll transition with a crossfade.
|
|
88
|
+
*/
|
|
89
|
+
transition?: CarouselTransition;
|
|
90
|
+
}
|
|
91
|
+
declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/carousel/CarouselControlNext.d.ts
|
|
94
|
+
interface CarouselControlNextProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
95
|
+
/**
|
|
96
|
+
* A string of all className you want applied to the component.
|
|
97
|
+
*/
|
|
98
|
+
className?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The control's icon: an icon name, or an element of your own icon set. Defaults to
|
|
101
|
+
* `IconProvider`'s `next` icon.
|
|
102
|
+
*/
|
|
103
|
+
icon?: IconValue;
|
|
104
|
+
/**
|
|
105
|
+
* The accessible label announced by assistive technology.
|
|
106
|
+
*/
|
|
107
|
+
label?: string;
|
|
108
|
+
}
|
|
109
|
+
declare const CarouselControlNext: React.ForwardRefExoticComponent<CarouselControlNextProps & React.RefAttributes<HTMLButtonElement>>;
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/components/carousel/CarouselControlPrev.d.ts
|
|
112
|
+
interface CarouselControlPrevProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
113
|
+
/**
|
|
114
|
+
* A string of all className you want applied to the component.
|
|
115
|
+
*/
|
|
116
|
+
className?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The control's icon: an icon name, or an element of your own icon set. Defaults to
|
|
119
|
+
* `IconProvider`'s `previous` icon.
|
|
120
|
+
*/
|
|
121
|
+
icon?: IconValue;
|
|
122
|
+
/**
|
|
123
|
+
* The accessible label announced by assistive technology.
|
|
124
|
+
*/
|
|
125
|
+
label?: string;
|
|
126
|
+
}
|
|
127
|
+
declare const CarouselControlPrev: React.ForwardRefExoticComponent<CarouselControlPrevProps & React.RefAttributes<HTMLButtonElement>>;
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/carousel/CarouselIndicators.d.ts
|
|
130
|
+
interface CarouselIndicatorsProps extends HTMLAttributes<HTMLOListElement> {
|
|
131
|
+
/**
|
|
132
|
+
* A string of all className you want applied to the component.
|
|
133
|
+
*/
|
|
134
|
+
className?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Accessible label for each indicator button. Receives the slide's 1-based position.
|
|
137
|
+
*/
|
|
138
|
+
label?: (position: number) => string;
|
|
139
|
+
}
|
|
140
|
+
declare const CarouselIndicators: React.ForwardRefExoticComponent<CarouselIndicatorsProps & React.RefAttributes<HTMLOListElement>>;
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/components/carousel/CarouselInner.d.ts
|
|
143
|
+
type CarouselInnerOwnProps<C extends ElementType> = {
|
|
144
|
+
/**
|
|
145
|
+
* A string of all className you want applied to the component.
|
|
146
|
+
*/
|
|
147
|
+
className?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
150
|
+
*/
|
|
151
|
+
component?: C;
|
|
152
|
+
};
|
|
153
|
+
type CarouselInnerProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, CarouselInnerOwnProps<C>>;
|
|
154
|
+
type CarouselInnerComponent = (<C extends ElementType = 'div'>(props: CarouselInnerProps<C> & {
|
|
155
|
+
ref?: PolymorphicRef<C>;
|
|
156
|
+
}) => ReactElement | null) & {
|
|
157
|
+
displayName?: string;
|
|
158
|
+
};
|
|
159
|
+
declare const CarouselInner: CarouselInnerComponent;
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/components/carousel/CarouselItem.d.ts
|
|
162
|
+
type CarouselItemOwnProps<C extends ElementType> = {
|
|
163
|
+
/**
|
|
164
|
+
* A string of all className you want applied to the component.
|
|
165
|
+
*/
|
|
166
|
+
className?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
169
|
+
*/
|
|
170
|
+
component?: C;
|
|
171
|
+
/**
|
|
172
|
+
* Milliseconds to wait before autoplay advances past this slide, overriding the carousel's own `interval`.
|
|
173
|
+
*/
|
|
174
|
+
interval?: number;
|
|
175
|
+
};
|
|
176
|
+
type CarouselItemProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, CarouselItemOwnProps<C>>;
|
|
177
|
+
type CarouselItemComponent = (<C extends ElementType = 'div'>(props: CarouselItemProps<C> & {
|
|
178
|
+
ref?: PolymorphicRef<C>;
|
|
179
|
+
}) => ReactElement | null) & {
|
|
180
|
+
displayName?: string;
|
|
181
|
+
};
|
|
182
|
+
declare const CarouselItem: CarouselItemComponent;
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/components/carousel/CarouselOverlay.d.ts
|
|
185
|
+
type CarouselOverlayOwnProps<C extends ElementType> = {
|
|
186
|
+
/**
|
|
187
|
+
* A string of all className you want applied to the component.
|
|
188
|
+
*/
|
|
189
|
+
className?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
192
|
+
*/
|
|
193
|
+
component?: C;
|
|
194
|
+
};
|
|
195
|
+
type CarouselOverlayProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, CarouselOverlayOwnProps<C>>;
|
|
196
|
+
type CarouselOverlayComponent = (<C extends ElementType = 'div'>(props: CarouselOverlayProps<C> & {
|
|
197
|
+
ref?: PolymorphicRef<C>;
|
|
198
|
+
}) => ReactElement | null) & {
|
|
199
|
+
displayName?: string;
|
|
200
|
+
};
|
|
201
|
+
declare const CarouselOverlay: CarouselOverlayComponent;
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/components/carousel/CarouselPlayPause.d.ts
|
|
204
|
+
interface CarouselPlayPauseProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
205
|
+
/**
|
|
206
|
+
* A string of all className you want applied to the component.
|
|
207
|
+
*/
|
|
208
|
+
className?: string;
|
|
209
|
+
/**
|
|
210
|
+
* The icon shown while autoplay is running: an icon name, or an element of your own icon set.
|
|
211
|
+
* Defaults to `IconProvider`'s `pause` icon.
|
|
212
|
+
*/
|
|
213
|
+
pauseIcon?: IconValue;
|
|
214
|
+
/**
|
|
215
|
+
* The accessible label announced while autoplay is running.
|
|
216
|
+
*/
|
|
217
|
+
pauseLabel?: string;
|
|
218
|
+
/**
|
|
219
|
+
* The accessible label announced while autoplay is stopped.
|
|
220
|
+
*/
|
|
221
|
+
playLabel?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The icon shown while autoplay is stopped: an icon name, or an element of your own icon set.
|
|
224
|
+
* Defaults to `IconProvider`'s `play` icon.
|
|
225
|
+
*/
|
|
226
|
+
playIcon?: IconValue;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* A discoverable toggle so a viewer can stop an autoplaying carousel, as required by WCAG 2.2
|
|
230
|
+
* Success Criterion 2.2.2 (Pause, Stop, Hide). Reflects the current state automatically — a pause
|
|
231
|
+
* icon while playing, a play icon once stopped.
|
|
232
|
+
*/
|
|
233
|
+
declare const CarouselPlayPause: React.ForwardRefExoticComponent<CarouselPlayPauseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
234
|
+
//#endregion
|
|
235
|
+
export { CarouselSlideDetail as _, CarouselItem as a, CarouselInnerProps as c, CarouselControlPrev as d, CarouselControlPrevProps as f, CarouselProps as g, Carousel as h, CarouselOverlayProps as i, CarouselIndicators as l, CarouselControlNextProps as m, CarouselPlayPauseProps as n, CarouselItemProps as o, CarouselControlNext as p, CarouselOverlay as r, CarouselInner as s, CarouselPlayPause as t, CarouselIndicatorsProps as u, CarouselTransition as v, CarouselEnds as y };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as PolymorphicRef, r as PolymorphicRefWithFallback, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
|
|
3
|
+
import { n as ContextColor, r as ContextStyle, t as Breakpoint } from "./types-CS_40Txv.js";
|
|
4
|
+
import { i as IconValue } from "./iconConfig-Bu6Pt9o3.js";
|
|
5
|
+
import React, { ElementType, HTMLAttributes, ReactElement } from "react";
|
|
6
|
+
//#region src/components/navbar/Navbar.d.ts
|
|
7
|
+
type NavbarOwnProps<C extends ElementType> = {
|
|
8
|
+
/**
|
|
9
|
+
* A string of all className you want applied to the component.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Sets the color of the component to one of Chassis context colors.
|
|
14
|
+
*/
|
|
15
|
+
color?: ContextColor;
|
|
16
|
+
/**
|
|
17
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
18
|
+
*/
|
|
19
|
+
component?: C;
|
|
20
|
+
/**
|
|
21
|
+
* Defines optional container wrapping children elements.
|
|
22
|
+
*/
|
|
23
|
+
container?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'fluid';
|
|
24
|
+
/**
|
|
25
|
+
* Opts this navbar into the framework's dark or light theming, independent of the page's own
|
|
26
|
+
* theme.
|
|
27
|
+
*/
|
|
28
|
+
'data-cx-theme'?: 'dark' | 'light';
|
|
29
|
+
/**
|
|
30
|
+
* Renders inline at and above this breakpoint, as a drawer below it. `true` renders inline at
|
|
31
|
+
* every width; omit to keep the drawer at every width.
|
|
32
|
+
*/
|
|
33
|
+
expand?: boolean | Breakpoint;
|
|
34
|
+
/**
|
|
35
|
+
* Place component in non-static positions.
|
|
36
|
+
*/
|
|
37
|
+
placement?: 'fixed-top' | 'fixed-bottom' | 'sticky-top' | 'sticky-bottom';
|
|
38
|
+
/**
|
|
39
|
+
* Blurs and saturates whatever sits behind the navbar — useful when it's positioned over a
|
|
40
|
+
* hero image, video, or scrollable content.
|
|
41
|
+
*/
|
|
42
|
+
translucent?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the context style of the component. `basic` (the default) renders with no extra class.
|
|
45
|
+
*/
|
|
46
|
+
variant?: ContextStyle;
|
|
47
|
+
};
|
|
48
|
+
type NavbarProps<C extends ElementType = 'nav'> = PolymorphicComponentProps<C, NavbarOwnProps<C>>;
|
|
49
|
+
type NavbarComponent = (<C extends ElementType = 'nav'>(props: NavbarProps<C> & {
|
|
50
|
+
ref?: PolymorphicRef<C>;
|
|
51
|
+
}) => ReactElement | null) & {
|
|
52
|
+
displayName?: string;
|
|
53
|
+
};
|
|
54
|
+
declare const Navbar: NavbarComponent;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/navbar/NavbarBrand.d.ts
|
|
57
|
+
type NavbarBrandOwnProps<C extends ElementType> = {
|
|
58
|
+
/**
|
|
59
|
+
* A string of all className you want applied to the component.
|
|
60
|
+
*/
|
|
61
|
+
className?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
64
|
+
* Defaults to `span`, or `a` when `href` is set.
|
|
65
|
+
*/
|
|
66
|
+
component?: C;
|
|
67
|
+
/**
|
|
68
|
+
* The href attribute specifies the URL of the page the link goes to. Defaults `component` to
|
|
69
|
+
* `a`.
|
|
70
|
+
*/
|
|
71
|
+
href?: string;
|
|
72
|
+
};
|
|
73
|
+
type NavbarBrandProps<C extends ElementType = 'span'> = PolymorphicComponentProps<C, NavbarBrandOwnProps<C>>;
|
|
74
|
+
type NavbarBrandComponent = (<C extends ElementType = 'span'>(props: NavbarBrandProps<C> & {
|
|
75
|
+
ref?: PolymorphicRefWithFallback<C, HTMLSpanElement | HTMLAnchorElement>;
|
|
76
|
+
}) => ReactElement | null) & {
|
|
77
|
+
displayName?: string;
|
|
78
|
+
};
|
|
79
|
+
declare const NavbarBrand: NavbarBrandComponent;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/navbar/NavbarNav.d.ts
|
|
82
|
+
type NavbarNavOwnProps<C extends ElementType> = {
|
|
83
|
+
/**
|
|
84
|
+
* A string of all className you want applied to the component.
|
|
85
|
+
*/
|
|
86
|
+
className?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
89
|
+
*/
|
|
90
|
+
component?: C;
|
|
91
|
+
};
|
|
92
|
+
type NavbarNavProps<C extends ElementType = 'ul'> = PolymorphicComponentProps<C, NavbarNavOwnProps<C>>;
|
|
93
|
+
type NavbarNavComponent = (<C extends ElementType = 'ul'>(props: NavbarNavProps<C> & {
|
|
94
|
+
ref?: PolymorphicRef<C>;
|
|
95
|
+
}) => ReactElement | null) & {
|
|
96
|
+
displayName?: string;
|
|
97
|
+
};
|
|
98
|
+
declare const NavbarNav: NavbarNavComponent;
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/navbar/NavbarText.d.ts
|
|
101
|
+
type NavbarTextOwnProps<C extends ElementType> = {
|
|
102
|
+
/**
|
|
103
|
+
* A string of all className you want applied to the base component.
|
|
104
|
+
*/
|
|
105
|
+
className?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
108
|
+
*/
|
|
109
|
+
component?: C;
|
|
110
|
+
};
|
|
111
|
+
type NavbarTextProps<C extends ElementType = 'span'> = PolymorphicComponentProps<C, NavbarTextOwnProps<C>>;
|
|
112
|
+
type NavbarTextComponent = (<C extends ElementType = 'span'>(props: NavbarTextProps<C> & {
|
|
113
|
+
ref?: PolymorphicRef<C>;
|
|
114
|
+
}) => ReactElement | null) & {
|
|
115
|
+
displayName?: string;
|
|
116
|
+
};
|
|
117
|
+
declare const NavbarText: NavbarTextComponent;
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/components/navbar/NavbarToggler.d.ts
|
|
120
|
+
interface NavbarTogglerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
121
|
+
/**
|
|
122
|
+
* A string of all className you want applied to the base component.
|
|
123
|
+
*/
|
|
124
|
+
className?: string;
|
|
125
|
+
/**
|
|
126
|
+
* The toggler icon: an icon name, or an element of your own icon set. Defaults to
|
|
127
|
+
* `IconProvider`'s `menu` icon.
|
|
128
|
+
*/
|
|
129
|
+
icon?: IconValue;
|
|
130
|
+
/**
|
|
131
|
+
* The accessible label announced by assistive technology when no children are provided.
|
|
132
|
+
*/
|
|
133
|
+
label?: string;
|
|
134
|
+
}
|
|
135
|
+
declare const NavbarToggler: React.ForwardRefExoticComponent<NavbarTogglerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
136
|
+
//#endregion
|
|
137
|
+
export { NavbarNav as a, NavbarBrandProps as c, NavbarTextProps as i, Navbar as l, NavbarTogglerProps as n, NavbarNavProps as o, NavbarText as r, NavbarBrand as s, NavbarToggler as t, NavbarProps as u };
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
|
|
3
|
+
import React, { DialogHTMLAttributes, ElementType, ReactElement } from "react";
|
|
4
|
+
//#region src/components/modal/Modal.d.ts
|
|
5
|
+
interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onCancel' | 'onClose'> {
|
|
6
|
+
/**
|
|
7
|
+
* Show a backdrop while the modal is open. `'static'` blocks closing on backdrop click
|
|
8
|
+
* (the modal bounces instead). `false` is intentionally not equivalent to `modal={false}` —
|
|
9
|
+
* unlike `Drawer`, whose vanilla chassis-css counterpart derives modality from `backdrop`,
|
|
10
|
+
* chassis-css's vanilla `Dialog` only ever reads `backdrop` to distinguish `'static'` from
|
|
11
|
+
* everything else; `modal` alone decides `showModal()`/`show()`. This mirrors that faithfully
|
|
12
|
+
* rather than reintroducing an inconsistency with the vendored behavior.
|
|
13
|
+
*/
|
|
14
|
+
backdrop?: boolean | 'static';
|
|
15
|
+
/**
|
|
16
|
+
* A string of all className you want applied to the base component.
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Set modal to cover the entire user viewport. A breakpoint value goes fullscreen only
|
|
21
|
+
* below that breakpoint.
|
|
22
|
+
*/
|
|
23
|
+
fullscreen?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
24
|
+
/**
|
|
25
|
+
* Disable the open/close transition entirely.
|
|
26
|
+
*/
|
|
27
|
+
instant?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Closes the modal when the escape key is pressed.
|
|
30
|
+
*/
|
|
31
|
+
keyboard?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Open with `showModal()` (top-layer, native backdrop). Set `false` to open with `show()`
|
|
34
|
+
* instead — no backdrop, and the page behind the modal stays interactive.
|
|
35
|
+
*/
|
|
36
|
+
modal?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Callback fired when the modal requests to be closed (escape, backdrop click, or close button).
|
|
39
|
+
*/
|
|
40
|
+
onClose?: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Callback fired when a close attempt is blocked (static backdrop click, or escape with `keyboard=false`).
|
|
43
|
+
*/
|
|
44
|
+
onClosePrevented?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Callback fired after the exit transition completes and the modal is fully hidden.
|
|
47
|
+
*/
|
|
48
|
+
onHidden?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback fired when the modal starts to open.
|
|
51
|
+
*/
|
|
52
|
+
onShow?: () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Callback fired after the entry transition completes and the modal is fully visible.
|
|
55
|
+
*/
|
|
56
|
+
onShown?: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Create a scrollable modal — the header and footer stay fixed while the body scrolls.
|
|
59
|
+
*/
|
|
60
|
+
scrollable?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Size the component sm, lg, or extra lg.
|
|
63
|
+
*/
|
|
64
|
+
size?: 'sm' | 'lg' | 'xl';
|
|
65
|
+
/**
|
|
66
|
+
* Toggle the visibility of modal component.
|
|
67
|
+
*/
|
|
68
|
+
visible?: boolean;
|
|
69
|
+
}
|
|
70
|
+
interface ModalContextProps {
|
|
71
|
+
/**
|
|
72
|
+
* Requests the modal be closed — fires `onClose`. Wire this to any element's `onClick`; see
|
|
73
|
+
* `useModal`.
|
|
74
|
+
*/
|
|
75
|
+
close: () => void;
|
|
76
|
+
/**
|
|
77
|
+
* Id generated by `Modal` and applied automatically by `ModalTitle` to itself, so the
|
|
78
|
+
* dialog's `aria-labelledby` resolves to it without any manual wiring.
|
|
79
|
+
*/
|
|
80
|
+
titleId?: string;
|
|
81
|
+
}
|
|
82
|
+
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDialogElement>>;
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/modal/ModalBody.d.ts
|
|
85
|
+
type ModalBodyOwnProps<C extends ElementType> = {
|
|
86
|
+
/**
|
|
87
|
+
* A string of all className you want applied to the base component.
|
|
88
|
+
*/
|
|
89
|
+
className?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
92
|
+
*/
|
|
93
|
+
component?: C;
|
|
94
|
+
};
|
|
95
|
+
type ModalBodyProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, ModalBodyOwnProps<C>>;
|
|
96
|
+
type ModalBodyComponent = (<C extends ElementType = 'div'>(props: ModalBodyProps<C> & {
|
|
97
|
+
ref?: PolymorphicRef<C>;
|
|
98
|
+
}) => ReactElement | null) & {
|
|
99
|
+
displayName?: string;
|
|
100
|
+
};
|
|
101
|
+
declare const ModalBody: ModalBodyComponent;
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/components/modal/ModalFooter.d.ts
|
|
104
|
+
type ModalFooterOwnProps<C extends ElementType> = {
|
|
105
|
+
/**
|
|
106
|
+
* A string of all className you want applied to the base component.
|
|
107
|
+
*/
|
|
108
|
+
className?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
111
|
+
*/
|
|
112
|
+
component?: C;
|
|
113
|
+
/**
|
|
114
|
+
* Stack the footer actions as full-width columns instead of a right-aligned row.
|
|
115
|
+
*/
|
|
116
|
+
stacked?: boolean;
|
|
117
|
+
};
|
|
118
|
+
type ModalFooterProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, ModalFooterOwnProps<C>>;
|
|
119
|
+
type ModalFooterComponent = (<C extends ElementType = 'div'>(props: ModalFooterProps<C> & {
|
|
120
|
+
ref?: PolymorphicRef<C>;
|
|
121
|
+
}) => ReactElement | null) & {
|
|
122
|
+
displayName?: string;
|
|
123
|
+
};
|
|
124
|
+
declare const ModalFooter: ModalFooterComponent;
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/modal/ModalHeader.d.ts
|
|
127
|
+
type ModalHeaderOwnProps<C extends ElementType> = {
|
|
128
|
+
/**
|
|
129
|
+
* A string of all className you want applied to the base component.
|
|
130
|
+
*/
|
|
131
|
+
className?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Add a close button component to the header.
|
|
134
|
+
*/
|
|
135
|
+
closeButton?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Overrides the close button's accessible name (defaults to `'Close'`). Set this for
|
|
138
|
+
* non-English UIs.
|
|
139
|
+
*/
|
|
140
|
+
closeLabel?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
143
|
+
*/
|
|
144
|
+
component?: C;
|
|
145
|
+
};
|
|
146
|
+
type ModalHeaderProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, ModalHeaderOwnProps<C>>;
|
|
147
|
+
type ModalHeaderComponent = (<C extends ElementType = 'div'>(props: ModalHeaderProps<C> & {
|
|
148
|
+
ref?: PolymorphicRef<C>;
|
|
149
|
+
}) => ReactElement | null) & {
|
|
150
|
+
displayName?: string;
|
|
151
|
+
};
|
|
152
|
+
declare const ModalHeader: ModalHeaderComponent;
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/components/modal/ModalTitle.d.ts
|
|
155
|
+
type ModalTitleOwnProps<C extends ElementType> = {
|
|
156
|
+
/**
|
|
157
|
+
* A string of all className you want applied to the base component.
|
|
158
|
+
*/
|
|
159
|
+
className?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
162
|
+
*/
|
|
163
|
+
component?: C;
|
|
164
|
+
};
|
|
165
|
+
type ModalTitleProps<C extends ElementType = 'h2'> = PolymorphicComponentProps<C, ModalTitleOwnProps<C>>;
|
|
166
|
+
type ModalTitleComponent = (<C extends ElementType = 'h2'>(props: ModalTitleProps<C> & {
|
|
167
|
+
ref?: PolymorphicRef<C>;
|
|
168
|
+
}) => ReactElement | null) & {
|
|
169
|
+
displayName?: string;
|
|
170
|
+
};
|
|
171
|
+
declare const ModalTitle: ModalTitleComponent;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/hooks/useModal.d.ts
|
|
174
|
+
type UseModalResult = ModalContextProps;
|
|
175
|
+
declare const useModal: () => UseModalResult;
|
|
176
|
+
//#endregion
|
|
177
|
+
export { ModalHeader as a, ModalFooterProps as c, Modal as d, ModalProps as f, ModalTitleProps as i, ModalBody as l, useModal as n, ModalHeaderProps as o, ModalTitle as r, ModalFooter as s, UseModalResult as t, ModalBodyProps as u };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { i as MenuItemsDef } from "./MenuItemDef-D0VDtYIQ.js";
|
|
3
|
+
import { i as ComboboxGroupProps, n as ComboboxItemProps } from "./ComboboxItem-C9TpoJOI.js";
|
|
4
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
5
|
+
import { Key as Key$1 } from "react-stately";
|
|
6
|
+
//#region src/components/autocomplete/Autocomplete.d.ts
|
|
7
|
+
interface AutocompleteProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
8
|
+
/**
|
|
9
|
+
* An accessible label for the autocomplete, used when there's no visible `<label>`.
|
|
10
|
+
*/
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Identifies a visible `<label>` element for the autocomplete.
|
|
14
|
+
*/
|
|
15
|
+
'aria-labelledby'?: string;
|
|
16
|
+
/**
|
|
17
|
+
* `AutocompleteItem` elements, optionally wrapped in `AutocompleteGroup` — read as data by
|
|
18
|
+
* `Autocomplete` to build the option list. Not rendered directly. Ignored when `items` is set.
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* A string of all className you want applied to the base component.
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The initial selected option's id(s) (uncontrolled). An array when `multiple` is set.
|
|
27
|
+
*/
|
|
28
|
+
defaultValue?: Key$1 | Key$1[] | null;
|
|
29
|
+
/**
|
|
30
|
+
* Prevents the autocomplete from being focused or interacted with.
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* A description for the field, rendered below the autocomplete.
|
|
35
|
+
*/
|
|
36
|
+
help?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* `id` forwarded to the search input inside the popover. The toggle — the field's real,
|
|
39
|
+
* always-focusable surface — has no single labelable element `<label for>` can target (it's a
|
|
40
|
+
* `role="button"` `<div>`, and the search input itself is hidden until open), so `label` is
|
|
41
|
+
* associated via `aria-labelledby` on the toggle instead. See FORMS.md's "role=group" pattern.
|
|
42
|
+
*/
|
|
43
|
+
id?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Set component validation state to invalid.
|
|
46
|
+
*/
|
|
47
|
+
invalid?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* An error message for the field, rendered below the autocomplete when `invalid` is set.
|
|
50
|
+
*/
|
|
51
|
+
invalidFeedback?: ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Array of item/header/divider definitions for data-driven rendering. When provided, children
|
|
54
|
+
* are ignored. A `'header'` entry starts a group that all following items join until the next
|
|
55
|
+
* header or the end of the array. `'divider'` entries are a no-op here — use
|
|
56
|
+
* `AutocompleteGroup` composition instead if you need finer control over grouping. An entry's
|
|
57
|
+
* `href`/`onClick` are `Menu`-only and are not read here — use `onChange` to react to the
|
|
58
|
+
* selection instead.
|
|
59
|
+
*/
|
|
60
|
+
items?: MenuItemsDef;
|
|
61
|
+
/**
|
|
62
|
+
* The field's caption, rendered as a `FormLabel` associated with the toggle.
|
|
63
|
+
*/
|
|
64
|
+
label?: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Allows more than one option to be selected. The toggle shows the single selection's label,
|
|
67
|
+
* or an "N selected" count once more than one is picked. The menu stays open after each
|
|
68
|
+
* selection, and `Backspace` in the empty search field removes the last selected option.
|
|
69
|
+
*/
|
|
70
|
+
multiple?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* `name` of auto-created hidden input(s), kept in sync with the selection, for native form
|
|
73
|
+
* submission. Single-select renders one; `multiple` renders one per selected key. Omit to skip
|
|
74
|
+
* hidden-input creation.
|
|
75
|
+
*/
|
|
76
|
+
name?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Text shown in the listbox when no options match the current query.
|
|
79
|
+
*/
|
|
80
|
+
noResultsText?: ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* Callback fired when the selection changes. Receives an array of keys when `multiple` is set.
|
|
83
|
+
*/
|
|
84
|
+
onChange?: (value: Key$1 | Key$1[] | null) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Text shown on the toggle when nothing is selected.
|
|
87
|
+
*/
|
|
88
|
+
placeholder?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Placeholder for the search field inside the dropdown.
|
|
91
|
+
*/
|
|
92
|
+
searchPlaceholder?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Size the component sm or lg.
|
|
95
|
+
*/
|
|
96
|
+
size?: 'sm' | 'lg';
|
|
97
|
+
/**
|
|
98
|
+
* Set component validation state to valid.
|
|
99
|
+
*/
|
|
100
|
+
valid?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* A success message for the field, rendered below the autocomplete when `valid` is set.
|
|
103
|
+
*/
|
|
104
|
+
validFeedback?: ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* The selected option's id(s) (controlled). An array when `multiple` is set.
|
|
107
|
+
*/
|
|
108
|
+
value?: Key$1 | Key$1[] | null;
|
|
109
|
+
}
|
|
110
|
+
declare const Autocomplete: {
|
|
111
|
+
({ children, className, defaultValue, disabled, help, id, invalid, invalidFeedback, items, label, multiple, name, noResultsText, onChange, placeholder, searchPlaceholder, size, valid, validFeedback, value, ...rest }: AutocompleteProps): ReactNode;
|
|
112
|
+
displayName: string;
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/autocomplete/AutocompleteGroup.d.ts
|
|
116
|
+
type AutocompleteGroupProps = ComboboxGroupProps;
|
|
117
|
+
declare const AutocompleteGroup: {
|
|
118
|
+
(_props: AutocompleteGroupProps): null;
|
|
119
|
+
displayName: string;
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/components/autocomplete/AutocompleteItem.d.ts
|
|
123
|
+
type AutocompleteItemProps = ComboboxItemProps;
|
|
124
|
+
declare const AutocompleteItem: {
|
|
125
|
+
(_props: AutocompleteItemProps): null;
|
|
126
|
+
displayName: string;
|
|
127
|
+
};
|
|
128
|
+
//#endregion
|
|
129
|
+
export { Autocomplete as a, AutocompleteGroupProps as i, AutocompleteItemProps as n, AutocompleteProps as o, AutocompleteGroup as r, AutocompleteItem as t };
|