@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,58 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import React, { ChangeEventHandler, InputHTMLAttributes, ReactNode } from "react";
|
|
3
|
+
//#region src/components/color-input/ColorInput.d.ts
|
|
4
|
+
interface ColorInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
5
|
+
/**
|
|
6
|
+
* A string of all className you want applied to the component.
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The value of the input, uncontrolled.
|
|
11
|
+
*/
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Toggle the disabled state for the component.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* A description for the field, rendered below the input.
|
|
19
|
+
*/
|
|
20
|
+
help?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Set component validation state to invalid.
|
|
23
|
+
*/
|
|
24
|
+
invalid?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* An error message for the field, rendered below the input when `invalid` is set.
|
|
27
|
+
*/
|
|
28
|
+
invalidFeedback?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* The field's caption, rendered as a `FormLabel` associated with this input.
|
|
31
|
+
*/
|
|
32
|
+
label?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Method called immediately after the `value` prop changes.
|
|
35
|
+
*/
|
|
36
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
37
|
+
/**
|
|
38
|
+
* Size the component sm or lg.
|
|
39
|
+
*/
|
|
40
|
+
size?: 'sm' | 'lg';
|
|
41
|
+
/**
|
|
42
|
+
* Set component validation state to valid.
|
|
43
|
+
*/
|
|
44
|
+
valid?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* A success message for the field, rendered below the input when `valid` is set.
|
|
47
|
+
*/
|
|
48
|
+
validFeedback?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* The `value` attribute of component.
|
|
51
|
+
*
|
|
52
|
+
* @controllable onChange
|
|
53
|
+
* */
|
|
54
|
+
value?: string;
|
|
55
|
+
}
|
|
56
|
+
declare const ColorInput: React.ForwardRefExoticComponent<ColorInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { ColorInputProps as n, ColorInput as t };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as ContextColor } from "./types-CS_40Txv.js";
|
|
3
|
+
import { t as ButtonObject } from "./renderFormCheck-CYWG-Rbt.js";
|
|
4
|
+
import React, { HTMLAttributes, InputHTMLAttributes, ReactNode } from "react";
|
|
5
|
+
//#region src/components/checkbox/Checkbox.d.ts
|
|
6
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checked' | 'defaultChecked' | 'onChange' | 'size'> {
|
|
7
|
+
/**
|
|
8
|
+
* Create button-like checkboxes.
|
|
9
|
+
*/
|
|
10
|
+
button?: ButtonObject;
|
|
11
|
+
/**
|
|
12
|
+
* A string of all className you want applied to the component.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the color of the check indicator to one of Chassis context colors. Ignored when `button` is set.
|
|
17
|
+
*/
|
|
18
|
+
color?: ContextColor;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the checkbox is selected, uncontrolled. Ignored when rendered inside a `<CheckboxGroup>` —
|
|
21
|
+
* the group's `value`/`defaultValue` owns selection there.
|
|
22
|
+
*/
|
|
23
|
+
defaultSelected?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Checkbox indeterminate property.
|
|
30
|
+
*/
|
|
31
|
+
indeterminate?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Set component validation state to invalid.
|
|
34
|
+
*/
|
|
35
|
+
invalid?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the checkbox is selected, controlled. Ignored when rendered inside a `<CheckboxGroup>` —
|
|
38
|
+
* the group's `value`/`defaultValue` owns selection there.
|
|
39
|
+
*/
|
|
40
|
+
isSelected?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The element represents a caption for a component.
|
|
43
|
+
*
|
|
44
|
+
* Children are accepted as an alias for this prop — `label` wins when both are given.
|
|
45
|
+
* react-aria, which backs this component, calls the same thing `children`; this package renames
|
|
46
|
+
* it to `label`, and honouring both means the shape React developers reach for first still
|
|
47
|
+
* names the control instead of silently producing an unlabelled one.
|
|
48
|
+
*/
|
|
49
|
+
label?: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Callback fired when the selected state changes. Ignored when rendered inside a `<CheckboxGroup>` —
|
|
52
|
+
* use the group's `onChange` instead.
|
|
53
|
+
*/
|
|
54
|
+
onChange?: (isSelected: boolean) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Size the component sm or lg.
|
|
57
|
+
*/
|
|
58
|
+
size?: 'sm' | 'lg';
|
|
59
|
+
/**
|
|
60
|
+
* Set component validation state to valid.
|
|
61
|
+
*/
|
|
62
|
+
valid?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The value of the checkbox, used when submitting an HTML form. Required when rendered inside a
|
|
65
|
+
* `<CheckboxGroup>` — it identifies this item within the group's selected values.
|
|
66
|
+
*/
|
|
67
|
+
value?: string;
|
|
68
|
+
}
|
|
69
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/checkbox/CheckboxGroup.d.ts
|
|
72
|
+
interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'defaultValue' | 'onChange'> {
|
|
73
|
+
/**
|
|
74
|
+
* One or more `<Checkbox>` elements.
|
|
75
|
+
*/
|
|
76
|
+
children: ReactNode;
|
|
77
|
+
/**
|
|
78
|
+
* A string of all className you want applied to the component.
|
|
79
|
+
*/
|
|
80
|
+
className?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The selected values, uncontrolled.
|
|
83
|
+
*/
|
|
84
|
+
defaultValue?: string[];
|
|
85
|
+
/**
|
|
86
|
+
* A description for the group, rendered below the options.
|
|
87
|
+
*/
|
|
88
|
+
description?: ReactNode;
|
|
89
|
+
/**
|
|
90
|
+
* Disables every checkbox in the group.
|
|
91
|
+
*/
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* An error message for the group, rendered below the options when `invalid` is set.
|
|
95
|
+
*/
|
|
96
|
+
errorMessage?: ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
* Set group validation state to invalid.
|
|
99
|
+
*/
|
|
100
|
+
invalid?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* The group's caption, rendered as a `<legend>`.
|
|
103
|
+
*/
|
|
104
|
+
label?: ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* The name for the group, used for native form submission.
|
|
107
|
+
*/
|
|
108
|
+
name?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Callback fired when the selected values change.
|
|
111
|
+
*/
|
|
112
|
+
onChange?: (value: string[]) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Lay the group's checkboxes out on the same horizontal row instead of stacking them.
|
|
115
|
+
*/
|
|
116
|
+
orientation?: 'horizontal' | 'vertical';
|
|
117
|
+
/**
|
|
118
|
+
* Marks the group as required.
|
|
119
|
+
*/
|
|
120
|
+
required?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Set group validation state to valid.
|
|
123
|
+
*/
|
|
124
|
+
valid?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* The selected values, controlled.
|
|
127
|
+
*/
|
|
128
|
+
value?: string[];
|
|
129
|
+
}
|
|
130
|
+
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
131
|
+
//#endregion
|
|
132
|
+
export { CheckboxProps as i, CheckboxGroupProps as n, Checkbox as r, CheckboxGroup as t };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as ContextColor } from "./types-CS_40Txv.js";
|
|
3
|
+
import { t as ButtonObject } from "./renderFormCheck-CYWG-Rbt.js";
|
|
4
|
+
import React, { HTMLAttributes, InputHTMLAttributes, ReactNode } from "react";
|
|
5
|
+
//#region src/components/radio/Radio.d.ts
|
|
6
|
+
interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checked' | 'defaultChecked' | 'onChange' | 'size'> {
|
|
7
|
+
/**
|
|
8
|
+
* Create button-like radios. Combine with `<RadioGroup>` to build radio toggle-button groups.
|
|
9
|
+
*/
|
|
10
|
+
button?: ButtonObject;
|
|
11
|
+
/**
|
|
12
|
+
* A string of all className you want applied to the component.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the color of the radio indicator to one of Chassis context colors. Ignored when `button` is set.
|
|
17
|
+
*/
|
|
18
|
+
color?: ContextColor;
|
|
19
|
+
/**
|
|
20
|
+
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The element represents a caption for a component.
|
|
25
|
+
*
|
|
26
|
+
* Children are accepted as an alias for this prop — `label` wins when both are given.
|
|
27
|
+
* react-aria, which backs this component, calls the same thing `children`; this package renames
|
|
28
|
+
* it to `label`, and honouring both means the shape React developers reach for first still
|
|
29
|
+
* names the control instead of silently producing an unlabelled one.
|
|
30
|
+
*/
|
|
31
|
+
label?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Size the component sm or lg.
|
|
34
|
+
*/
|
|
35
|
+
size?: 'sm' | 'lg';
|
|
36
|
+
/**
|
|
37
|
+
* The value of the radio button, used to identify it within its `<RadioGroup>`.
|
|
38
|
+
*/
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
41
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/radio/RadioGroup.d.ts
|
|
44
|
+
interface RadioGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'defaultValue' | 'onChange'> {
|
|
45
|
+
/**
|
|
46
|
+
* One or more `<Radio>` elements.
|
|
47
|
+
*/
|
|
48
|
+
children: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* A string of all className you want applied to the component.
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The selected value, uncontrolled.
|
|
55
|
+
*/
|
|
56
|
+
defaultValue?: string;
|
|
57
|
+
/**
|
|
58
|
+
* A description for the group, rendered below the options.
|
|
59
|
+
*/
|
|
60
|
+
description?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Disables every radio in the group.
|
|
63
|
+
*/
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* An error message for the group, rendered below the options when `invalid` is set.
|
|
67
|
+
*/
|
|
68
|
+
errorMessage?: ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Set group validation state to invalid.
|
|
71
|
+
*/
|
|
72
|
+
invalid?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The group's caption, rendered as a `<legend>`.
|
|
75
|
+
*/
|
|
76
|
+
label?: ReactNode;
|
|
77
|
+
/**
|
|
78
|
+
* The name for the group, used for native form submission.
|
|
79
|
+
*/
|
|
80
|
+
name?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Callback fired when the selected value changes.
|
|
83
|
+
*/
|
|
84
|
+
onChange?: (value: string) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Lay the group's radios out on the same horizontal row instead of stacking them.
|
|
87
|
+
*/
|
|
88
|
+
orientation?: 'horizontal' | 'vertical';
|
|
89
|
+
/**
|
|
90
|
+
* Marks the group as required.
|
|
91
|
+
*/
|
|
92
|
+
required?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Set group validation state to valid.
|
|
95
|
+
*/
|
|
96
|
+
valid?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* The selected value, controlled.
|
|
99
|
+
*/
|
|
100
|
+
value?: string;
|
|
101
|
+
}
|
|
102
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
103
|
+
//#endregion
|
|
104
|
+
export { RadioProps as i, RadioGroupProps as n, Radio as r, RadioGroup as t };
|
|
@@ -0,0 +1,118 @@
|
|
|
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 React, { ElementType, ReactElement } from "react";
|
|
5
|
+
//#region src/components/list/List.d.ts
|
|
6
|
+
interface ListItemDef {
|
|
7
|
+
/**
|
|
8
|
+
* Stable key for the rendered item. Falls back to the item's index in `items`.
|
|
9
|
+
*/
|
|
10
|
+
id?: number | string;
|
|
11
|
+
/**
|
|
12
|
+
* Item label content.
|
|
13
|
+
*/
|
|
14
|
+
label: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Makes the item a link.
|
|
17
|
+
*/
|
|
18
|
+
href?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the color of the item.
|
|
21
|
+
*/
|
|
22
|
+
color?: ContextColor;
|
|
23
|
+
/**
|
|
24
|
+
* Marks the item as active.
|
|
25
|
+
*/
|
|
26
|
+
active?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Marks the item as disabled.
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
}
|
|
32
|
+
type ListOwnProps<C extends ElementType> = {
|
|
33
|
+
/**
|
|
34
|
+
* A string of all className you want applied to the component.
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
39
|
+
* Defaults to `'ul'`, unless an item (a data-driven item with `href`, or a `<ListItem
|
|
40
|
+
* component="a">`/`<ListItem component="button">` child) is interactive — a bare `<a>`/
|
|
41
|
+
* `<button>` isn't a valid direct child of `<ul>`/`<ol>`, so the default switches to `'div'`
|
|
42
|
+
* instead. Pass `component` explicitly to opt out of this.
|
|
43
|
+
*/
|
|
44
|
+
component?: C;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the color of the component to one of Chassis context colors.
|
|
47
|
+
*/
|
|
48
|
+
color?: ContextColor;
|
|
49
|
+
/**
|
|
50
|
+
* Remove outer borders and rounded corners to render list items edge-to-edge in a parent component (e.g., `<Card>`).
|
|
51
|
+
*/
|
|
52
|
+
flush?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Array of item definitions for data-driven rendering. When provided, children are ignored.
|
|
55
|
+
*/
|
|
56
|
+
items?: ListItemDef[];
|
|
57
|
+
/**
|
|
58
|
+
* Specify a layout type.
|
|
59
|
+
*/
|
|
60
|
+
layout?: 'horizontal' | 'sm:horizontal' | 'md:horizontal' | 'lg:horizontal' | 'xl:horizontal' | '2xl:horizontal';
|
|
61
|
+
/**
|
|
62
|
+
* Number list items sequentially using CSS counters. Pair with `component="ol"` for semantic correctness.
|
|
63
|
+
*/
|
|
64
|
+
numbered?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Remove outer borders, rounded corners, and horizontal padding for a minimal, edge-to-edge appearance.
|
|
67
|
+
*/
|
|
68
|
+
plain?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Applies a `.solid`, `.outline`, or `.smooth` context style. Only meaningful together with `color`.
|
|
71
|
+
*/
|
|
72
|
+
variant?: ContextStyle;
|
|
73
|
+
};
|
|
74
|
+
type ListProps<C extends ElementType = 'ul'> = PolymorphicComponentProps<C, ListOwnProps<C>>;
|
|
75
|
+
type ListComponent = (<C extends ElementType = 'ul'>(props: ListProps<C> & {
|
|
76
|
+
ref?: PolymorphicRef<C>;
|
|
77
|
+
}) => ReactElement | null) & {
|
|
78
|
+
displayName?: string;
|
|
79
|
+
};
|
|
80
|
+
declare const List: ListComponent;
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/list/ListItem.d.ts
|
|
83
|
+
type ListItemOwnProps<C extends ElementType> = {
|
|
84
|
+
/**
|
|
85
|
+
* Toggle the active state for the component.
|
|
86
|
+
*/
|
|
87
|
+
active?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* A string of all className you want applied to the component.
|
|
90
|
+
*/
|
|
91
|
+
className?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Sets the color of the component to one of Chassis context colors.
|
|
94
|
+
*/
|
|
95
|
+
color?: ContextColor;
|
|
96
|
+
/**
|
|
97
|
+
* Toggle the disabled state for the component.
|
|
98
|
+
*/
|
|
99
|
+
disabled?: boolean;
|
|
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
|
+
* The href attribute specifies the URL of the page the link goes to. Only applicable when
|
|
106
|
+
* `component` is `"a"`.
|
|
107
|
+
*/
|
|
108
|
+
href?: string;
|
|
109
|
+
};
|
|
110
|
+
type ListItemProps<C extends ElementType = 'li'> = PolymorphicComponentProps<C, ListItemOwnProps<C>>;
|
|
111
|
+
type ListItemComponent = (<C extends ElementType = 'li'>(props: ListItemProps<C> & {
|
|
112
|
+
ref?: PolymorphicRef<C>;
|
|
113
|
+
}) => ReactElement | null) & {
|
|
114
|
+
displayName?: string;
|
|
115
|
+
};
|
|
116
|
+
declare const ListItem: ListItemComponent;
|
|
117
|
+
//#endregion
|
|
118
|
+
export { ListProps as a, ListItemDef as i, ListItemProps as n, List as r, ListItem as t };
|