@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,187 @@
|
|
|
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/drawer/Drawer.d.ts
|
|
5
|
+
interface DrawerProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onCancel' | 'onClose'> {
|
|
6
|
+
/**
|
|
7
|
+
* Show a backdrop while the drawer is open. `'static'` blocks closing on backdrop click
|
|
8
|
+
* (the drawer nudges instead).
|
|
9
|
+
*/
|
|
10
|
+
backdrop?: boolean | 'static';
|
|
11
|
+
/**
|
|
12
|
+
* A string of all className you want applied to the base component.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Size the height to the drawer's content instead of `--drawer-height`. Meaningful for
|
|
17
|
+
* `placement="bottom"`.
|
|
18
|
+
*/
|
|
19
|
+
fitContent?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Expand the panel to fill the viewport, animating in from the direction of `placement`.
|
|
22
|
+
*/
|
|
23
|
+
fullscreen?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Disable the open/close transition entirely.
|
|
26
|
+
*/
|
|
27
|
+
instant?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Closes the drawer when the escape key is pressed.
|
|
30
|
+
*/
|
|
31
|
+
keyboard?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Callback fired when the drawer requests to be closed (escape, backdrop click, close button,
|
|
34
|
+
* or another drawer opening).
|
|
35
|
+
*/
|
|
36
|
+
onClose?: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Callback fired when a close attempt is blocked (static backdrop click, or escape with `keyboard=false`).
|
|
39
|
+
*/
|
|
40
|
+
onClosePrevented?: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Callback fired after the exit transition completes and the drawer is fully hidden.
|
|
43
|
+
*/
|
|
44
|
+
onHidden?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Callback fired when the drawer starts to open.
|
|
47
|
+
*/
|
|
48
|
+
onShow?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback fired after the entry transition completes and the drawer is fully visible.
|
|
51
|
+
*/
|
|
52
|
+
onShown?: () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Which viewport edge the panel slides in from. Always required — there is no default
|
|
55
|
+
* off-screen transform without one.
|
|
56
|
+
*/
|
|
57
|
+
placement: 'start' | 'end' | 'top' | 'bottom';
|
|
58
|
+
/**
|
|
59
|
+
* Renders as a drawer only below this breakpoint — inline as a flex container above it.
|
|
60
|
+
*/
|
|
61
|
+
responsive?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
62
|
+
/**
|
|
63
|
+
* Allow the page behind the drawer to scroll while it's open.
|
|
64
|
+
*/
|
|
65
|
+
scroll?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Remove the inset gap, border radius, and border so the panel sits flush against the
|
|
68
|
+
* viewport edge.
|
|
69
|
+
*/
|
|
70
|
+
sheet?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Apply a frosted-glass background to the panel.
|
|
73
|
+
*/
|
|
74
|
+
translucent?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Toggle the visibility of the drawer component.
|
|
77
|
+
*/
|
|
78
|
+
visible?: boolean;
|
|
79
|
+
}
|
|
80
|
+
interface DrawerContextProps {
|
|
81
|
+
/**
|
|
82
|
+
* Requests the drawer be closed — fires `onClose`. Wire this to any element's `onClick`; see
|
|
83
|
+
* `useDrawer`.
|
|
84
|
+
*/
|
|
85
|
+
close: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Id generated by `Drawer` and applied automatically by `DrawerTitle` to itself, so the
|
|
88
|
+
* dialog's `aria-labelledby` resolves to it without any manual wiring.
|
|
89
|
+
*/
|
|
90
|
+
titleId?: string;
|
|
91
|
+
}
|
|
92
|
+
declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDialogElement>>;
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/components/drawer/DrawerBody.d.ts
|
|
95
|
+
type DrawerBodyOwnProps<C extends ElementType> = {
|
|
96
|
+
/**
|
|
97
|
+
* A string of all className you want applied to the base component.
|
|
98
|
+
*/
|
|
99
|
+
className?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
102
|
+
*/
|
|
103
|
+
component?: C;
|
|
104
|
+
};
|
|
105
|
+
type DrawerBodyProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, DrawerBodyOwnProps<C>>;
|
|
106
|
+
type DrawerBodyComponent = (<C extends ElementType = 'div'>(props: DrawerBodyProps<C> & {
|
|
107
|
+
ref?: PolymorphicRef<C>;
|
|
108
|
+
}) => ReactElement | null) & {
|
|
109
|
+
displayName?: string;
|
|
110
|
+
};
|
|
111
|
+
declare const DrawerBody: DrawerBodyComponent;
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/components/drawer/DrawerFooter.d.ts
|
|
114
|
+
type DrawerFooterOwnProps<C extends ElementType> = {
|
|
115
|
+
/**
|
|
116
|
+
* A string of all className you want applied to the base component.
|
|
117
|
+
*/
|
|
118
|
+
className?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
121
|
+
*/
|
|
122
|
+
component?: C;
|
|
123
|
+
/**
|
|
124
|
+
* Stack the footer actions as full-width columns instead of a right-aligned row.
|
|
125
|
+
*/
|
|
126
|
+
stacked?: boolean;
|
|
127
|
+
};
|
|
128
|
+
type DrawerFooterProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, DrawerFooterOwnProps<C>>;
|
|
129
|
+
type DrawerFooterComponent = (<C extends ElementType = 'div'>(props: DrawerFooterProps<C> & {
|
|
130
|
+
ref?: PolymorphicRef<C>;
|
|
131
|
+
}) => ReactElement | null) & {
|
|
132
|
+
displayName?: string;
|
|
133
|
+
};
|
|
134
|
+
declare const DrawerFooter: DrawerFooterComponent;
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/components/drawer/DrawerHeader.d.ts
|
|
137
|
+
type DrawerHeaderOwnProps<C extends ElementType> = {
|
|
138
|
+
/**
|
|
139
|
+
* A string of all className you want applied to the base component.
|
|
140
|
+
*/
|
|
141
|
+
className?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Add a close button component to the header.
|
|
144
|
+
*/
|
|
145
|
+
closeButton?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Overrides the close button's accessible name (defaults to `'Close'`). Set this for
|
|
148
|
+
* non-English UIs.
|
|
149
|
+
*/
|
|
150
|
+
closeLabel?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
153
|
+
*/
|
|
154
|
+
component?: C;
|
|
155
|
+
};
|
|
156
|
+
type DrawerHeaderProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, DrawerHeaderOwnProps<C>>;
|
|
157
|
+
type DrawerHeaderComponent = (<C extends ElementType = 'div'>(props: DrawerHeaderProps<C> & {
|
|
158
|
+
ref?: PolymorphicRef<C>;
|
|
159
|
+
}) => ReactElement | null) & {
|
|
160
|
+
displayName?: string;
|
|
161
|
+
};
|
|
162
|
+
declare const DrawerHeader: DrawerHeaderComponent;
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/components/drawer/DrawerTitle.d.ts
|
|
165
|
+
type DrawerTitleOwnProps<C extends ElementType> = {
|
|
166
|
+
/**
|
|
167
|
+
* A string of all className you want applied to the base component.
|
|
168
|
+
*/
|
|
169
|
+
className?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
172
|
+
*/
|
|
173
|
+
component?: C;
|
|
174
|
+
};
|
|
175
|
+
type DrawerTitleProps<C extends ElementType = 'h2'> = PolymorphicComponentProps<C, DrawerTitleOwnProps<C>>;
|
|
176
|
+
type DrawerTitleComponent = (<C extends ElementType = 'h2'>(props: DrawerTitleProps<C> & {
|
|
177
|
+
ref?: PolymorphicRef<C>;
|
|
178
|
+
}) => ReactElement | null) & {
|
|
179
|
+
displayName?: string;
|
|
180
|
+
};
|
|
181
|
+
declare const DrawerTitle: DrawerTitleComponent;
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/hooks/useDrawer.d.ts
|
|
184
|
+
type UseDrawerResult = DrawerContextProps;
|
|
185
|
+
declare const useDrawer: () => UseDrawerResult;
|
|
186
|
+
//#endregion
|
|
187
|
+
export { DrawerHeader as a, DrawerFooterProps as c, Drawer as d, DrawerProps as f, DrawerTitleProps as i, DrawerBody as l, useDrawer as n, DrawerHeaderProps as o, DrawerTitle as r, DrawerFooter as s, UseDrawerResult as t, DrawerBodyProps as u };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import React, { ChangeEventHandler, InputHTMLAttributes, ReactNode } from "react";
|
|
3
|
+
//#region src/components/range-input/RangeInput.d.ts
|
|
4
|
+
interface RangeInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
/**
|
|
6
|
+
* A string of all className you want applied to the component.
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Toggle the disabled state for the component.
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* A description for the field, rendered below the range input.
|
|
15
|
+
*/
|
|
16
|
+
help?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Set component validation state to invalid.
|
|
19
|
+
*/
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* An error message for the field, rendered below the range input when `invalid` is set.
|
|
23
|
+
*/
|
|
24
|
+
invalidFeedback?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* The field's caption, rendered as a `FormLabel` associated with this range input.
|
|
27
|
+
*/
|
|
28
|
+
label?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the maximum value for the component.
|
|
31
|
+
*/
|
|
32
|
+
max?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the minimum value for the component.
|
|
35
|
+
*/
|
|
36
|
+
min?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Method called immediately after the `value` prop changes.
|
|
39
|
+
*/
|
|
40
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
41
|
+
/**
|
|
42
|
+
* Toggle the readonly state for the component.
|
|
43
|
+
*/
|
|
44
|
+
readOnly?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Specifies the interval between legal numbers in the component.
|
|
47
|
+
*/
|
|
48
|
+
step?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Set component validation state to valid.
|
|
51
|
+
*/
|
|
52
|
+
valid?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* A success message for the field, rendered below the range input when `valid` is set.
|
|
55
|
+
*/
|
|
56
|
+
validFeedback?: ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* The `value` attribute of component.
|
|
59
|
+
*
|
|
60
|
+
* @controllable onChange
|
|
61
|
+
* */
|
|
62
|
+
value?: string | number;
|
|
63
|
+
}
|
|
64
|
+
declare const RangeInput: React.ForwardRefExoticComponent<RangeInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { RangeInputProps as n, RangeInput as t };
|
|
@@ -0,0 +1,176 @@
|
|
|
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 { n as IconProps } from "./Icon-CioraWLF.js";
|
|
5
|
+
import React, { ElementType, HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
6
|
+
import { ToastQueue } from "react-stately";
|
|
7
|
+
//#region src/components/notification/Notification.d.ts
|
|
8
|
+
interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
9
|
+
/**
|
|
10
|
+
* Optional trailing content — e.g. a row of `Button`s — rendered after `text`/`children`.
|
|
11
|
+
*/
|
|
12
|
+
actions?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Automatically dismiss the notification after `delay`. The timer pauses while the pointer
|
|
15
|
+
* or focus is on the notification, and only starts once the notification is visible.
|
|
16
|
+
* Defaults to `false` — unlike `Toast`, notifications are persistent banners by default.
|
|
17
|
+
*/
|
|
18
|
+
autohide?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A string of all className you want applied to the component.
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Overrides the dismiss button's accessible name (defaults to `'Close'`). Set this for
|
|
25
|
+
* non-English UIs.
|
|
26
|
+
*/
|
|
27
|
+
closeLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the color of the component to one of Chassis context colors.
|
|
30
|
+
*/
|
|
31
|
+
color?: ContextColor;
|
|
32
|
+
/**
|
|
33
|
+
* Delay in ms before an `autohide` notification dismisses itself.
|
|
34
|
+
*/
|
|
35
|
+
delay?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Optionally add a close button to the notification and allow it to self dismiss.
|
|
38
|
+
*/
|
|
39
|
+
dismissible?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Leading icon. A string is an icon name, rendered like `<NotificationIcon name={icon} />` (or
|
|
42
|
+
* by `IconProvider`'s `component`); pass any other
|
|
43
|
+
* node for a fully custom icon. Automatically top-aligns with `title` when both are set —
|
|
44
|
+
* a custom icon node is responsible for its own alignment.
|
|
45
|
+
*/
|
|
46
|
+
icon?: string | ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Applies the solid context style to the notification.
|
|
49
|
+
*/
|
|
50
|
+
solid?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Message body, rendered via a single `<NotificationText>`. For multi-block content, compose
|
|
53
|
+
* `children` manually instead — `text` wraps everything in one element.
|
|
54
|
+
*/
|
|
55
|
+
text?: ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Heading, rendered via `<NotificationTitle>`.
|
|
58
|
+
*/
|
|
59
|
+
title?: ReactNode;
|
|
60
|
+
/**
|
|
61
|
+
* Element or component used for the `title` heading. Passed through to `NotificationTitle`'s
|
|
62
|
+
* own `component` prop. Defaults to `'h4'`.
|
|
63
|
+
*/
|
|
64
|
+
titleComponent?: ElementType;
|
|
65
|
+
/**
|
|
66
|
+
* Callback fired when the component requests to be closed.
|
|
67
|
+
*/
|
|
68
|
+
onClose?: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* Callback fired when the component requests to be shown.
|
|
71
|
+
*/
|
|
72
|
+
onShow?: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* ARIA live-region role. Use `status` (the default) for confirmation, progress, and
|
|
75
|
+
* informational messages, which announce politely. Use `alert` for messages that need
|
|
76
|
+
* immediate attention — validation errors, failed operations — which interrupt speech.
|
|
77
|
+
*/
|
|
78
|
+
role?: 'status' | 'alert';
|
|
79
|
+
/**
|
|
80
|
+
* Toggle the visibility of component.
|
|
81
|
+
*/
|
|
82
|
+
visible?: boolean;
|
|
83
|
+
}
|
|
84
|
+
declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/notification/NotificationTitle.d.ts
|
|
87
|
+
type NotificationTitleOwnProps<C extends ElementType> = {
|
|
88
|
+
/**
|
|
89
|
+
* A string of all className you want applied to the base component.
|
|
90
|
+
*/
|
|
91
|
+
className?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
94
|
+
*/
|
|
95
|
+
component?: C;
|
|
96
|
+
};
|
|
97
|
+
type NotificationTitleProps<C extends ElementType = 'h4'> = PolymorphicComponentProps<C, NotificationTitleOwnProps<C>>;
|
|
98
|
+
type NotificationTitleComponent = (<C extends ElementType = 'h4'>(props: NotificationTitleProps<C> & {
|
|
99
|
+
ref?: PolymorphicRef<C>;
|
|
100
|
+
}) => ReactElement | null) & {
|
|
101
|
+
displayName?: string;
|
|
102
|
+
};
|
|
103
|
+
declare const NotificationTitle: NotificationTitleComponent;
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/components/notification/NotificationIcon.d.ts
|
|
106
|
+
type NotificationIconProps = IconProps & {
|
|
107
|
+
/**
|
|
108
|
+
* A string of all className you want applied to the base component.
|
|
109
|
+
*/
|
|
110
|
+
className?: string;
|
|
111
|
+
};
|
|
112
|
+
declare const NotificationIcon: React.ForwardRefExoticComponent<NotificationIconProps & React.RefAttributes<HTMLSpanElement | SVGSVGElement>>;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/components/notification/NotificationText.d.ts
|
|
115
|
+
type NotificationTextOwnProps<C extends ElementType> = {
|
|
116
|
+
/**
|
|
117
|
+
* A string of all className you want applied to the component.
|
|
118
|
+
*/
|
|
119
|
+
className?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
122
|
+
*/
|
|
123
|
+
component?: C;
|
|
124
|
+
};
|
|
125
|
+
type NotificationTextProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, NotificationTextOwnProps<C>>;
|
|
126
|
+
type NotificationTextComponent = (<C extends ElementType = 'div'>(props: NotificationTextProps<C> & {
|
|
127
|
+
ref?: PolymorphicRef<C>;
|
|
128
|
+
}) => ReactElement | null) & {
|
|
129
|
+
displayName?: string;
|
|
130
|
+
};
|
|
131
|
+
declare const NotificationText: NotificationTextComponent;
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/notification/NotificationStack.d.ts
|
|
134
|
+
interface NotificationStackProps extends HTMLAttributes<HTMLDivElement> {
|
|
135
|
+
/**
|
|
136
|
+
* A string of all className you want applied to the base component.
|
|
137
|
+
*/
|
|
138
|
+
className?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Queued notifications show newest-first by default — the typical toast pattern. Set
|
|
141
|
+
* `reverse` for a chronological transcript instead, oldest-first.
|
|
142
|
+
*/
|
|
143
|
+
reverse?: boolean;
|
|
144
|
+
}
|
|
145
|
+
declare const NotificationStack: React.ForwardRefExoticComponent<NotificationStackProps & React.RefAttributes<HTMLDivElement>>;
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/components/notification/notificationQueue.d.ts
|
|
148
|
+
interface NotificationContent extends Pick<NotificationProps, 'actions' | 'autohide' | 'closeLabel' | 'color' | 'delay' | 'dismissible' | 'icon' | 'role' | 'solid' | 'text' | 'title' | 'titleComponent'> {
|
|
149
|
+
/**
|
|
150
|
+
* Content of the notification. Compose manually (typically a `NotificationIcon`/
|
|
151
|
+
* `NotificationTitle`/`NotificationText`), or leave empty and use the `icon`/`title`/`text`
|
|
152
|
+
* shorthand options instead.
|
|
153
|
+
*/
|
|
154
|
+
children?: ReactNode;
|
|
155
|
+
}
|
|
156
|
+
declare const notificationQueue: ToastQueue<NotificationContent>;
|
|
157
|
+
declare function addNotification(children?: ReactNode, options?: Omit<NotificationContent, 'children'>): string;
|
|
158
|
+
declare function closeNotification(key: string): void;
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/components/notification/context.d.ts
|
|
161
|
+
interface NotificationContextProps {
|
|
162
|
+
/**
|
|
163
|
+
* Whether the notification is currently visible.
|
|
164
|
+
*/
|
|
165
|
+
visible?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Dismisses the notification. Wire this to any element's `onClick` — see `useNotification`.
|
|
168
|
+
*/
|
|
169
|
+
close: () => void;
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/hooks/useNotification.d.ts
|
|
173
|
+
type UseNotificationResult = NotificationContextProps;
|
|
174
|
+
declare const useNotification: () => UseNotificationResult;
|
|
175
|
+
//#endregion
|
|
176
|
+
export { closeNotification as a, NotificationStackProps as c, NotificationIcon as d, NotificationIconProps as f, NotificationProps as g, Notification as h, addNotification as i, NotificationText as l, NotificationTitleProps as m, useNotification as n, notificationQueue as o, NotificationTitle as p, NotificationContent as r, NotificationStack as s, UseNotificationResult as t, NotificationTextProps as u };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
|
|
3
|
+
import { n as ContextColor, r as ContextStyle } from "./types-CS_40Txv.js";
|
|
4
|
+
import { ElementType, MouseEventHandler, ReactElement } from "react";
|
|
5
|
+
//#region src/components/close-button/CloseButton.d.ts
|
|
6
|
+
type CloseButtonOwnProps<C extends ElementType> = {
|
|
7
|
+
/**
|
|
8
|
+
* A string of all className you want applied to the base component.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the color of the component to one of Chassis context colors. Applies the
|
|
13
|
+
* `context` class alongside it, so the icon picks up that color without needing
|
|
14
|
+
* an ancestor `.context` wrapper.
|
|
15
|
+
*/
|
|
16
|
+
color?: ContextColor;
|
|
17
|
+
/**
|
|
18
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
19
|
+
* A custom HTML tag (e.g. `'span'`) gets button semantics — role, focus, Enter/Space
|
|
20
|
+
* activation — filled in automatically. A component is trusted to handle its own semantics,
|
|
21
|
+
* so pass one that's already interactive (e.g. `Button`).
|
|
22
|
+
*/
|
|
23
|
+
component?: C;
|
|
24
|
+
/**
|
|
25
|
+
* Toggle the disabled state for the component.
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The href attribute specifies the URL of the page the link goes to. Only meaningful when
|
|
30
|
+
* `component` is `'a'`.
|
|
31
|
+
*/
|
|
32
|
+
href?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The accessible label announced by assistive technology. Override this to
|
|
35
|
+
* localize the button for non-English contexts.
|
|
36
|
+
*/
|
|
37
|
+
label?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Fires on click. Typed for every element `component` can actually render (`button` or `a`
|
|
40
|
+
* natively, plus whatever a custom `component` renders), rather than narrowed to
|
|
41
|
+
* `HTMLButtonElement` alone.
|
|
42
|
+
*/
|
|
43
|
+
onClick?: MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
|
|
44
|
+
/**
|
|
45
|
+
* Size the component sm or lg.
|
|
46
|
+
*/
|
|
47
|
+
size?: 'sm' | 'lg';
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
|
|
50
|
+
* Different browsers may use different default types for the `<button>` element.
|
|
51
|
+
*/
|
|
52
|
+
type?: 'button' | 'submit' | 'reset';
|
|
53
|
+
/**
|
|
54
|
+
* Set the close button's context style variant. Applies the `context` class
|
|
55
|
+
* alongside it, same as `color`.
|
|
56
|
+
*/
|
|
57
|
+
variant?: ContextStyle;
|
|
58
|
+
};
|
|
59
|
+
type CloseButtonProps<C extends ElementType = 'button'> = PolymorphicComponentProps<C, CloseButtonOwnProps<C>>;
|
|
60
|
+
type CloseButtonComponent = (<C extends ElementType = 'button'>(props: CloseButtonProps<C> & {
|
|
61
|
+
ref?: PolymorphicRef<C>;
|
|
62
|
+
}) => ReactElement | null) & {
|
|
63
|
+
displayName?: string;
|
|
64
|
+
};
|
|
65
|
+
declare const CloseButton: CloseButtonComponent;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { CloseButtonProps as n, CloseButton as t };
|