@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
package/dist/tabs.d.ts
ADDED
package/dist/tabs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{i as e,n as t,r as n,t as r}from"./chunks/tabs-BnbMJM_b.js";export{t as Tab,e as TabList,r as TabPanel,n as Tabs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./chunks/text-input-DD3d08Yf.js";export{e as TextInput};
|
package/dist/textarea.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./chunks/textarea-C0qQdCcu.js";export{e as Textarea};
|
package/dist/toast.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as Toast, a as closeToast, c as ToasterProps, d as ToastHeader, f as ToastHeaderProps, g as ToastBodyProps, h as ToastBody, i as addToast, l as ToastIcon, m as ToastFooterProps, n as useToast, o as toastQueue, p as ToastFooter, r as ToastContent, s as Toaster, t as UseToastResult, u as ToastIconProps, v as ToastProps } from "./chunks/index-BlgkO3dn.js";
|
|
2
|
+
export { Toast, ToastBody, type ToastBodyProps, type ToastContent, ToastFooter, type ToastFooterProps, ToastHeader, type ToastHeaderProps, ToastIcon, type ToastIconProps, type ToastProps, Toaster, type ToasterProps, type UseToastResult, addToast, closeToast, toastQueue, useToast };
|
package/dist/toast.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"./chunks/toast-BQhZ2pv5.js";export{a as Toast,r as ToastBody,t as ToastFooter,s as ToastHeader,e as ToastIcon,c as Toaster,i as addToast,o as closeToast,n as toastQueue,l as useToast};
|
package/dist/tooltip.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"./chunks/tooltip-DHtVAYUo.js";export{e as Tooltip};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chassis-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Chassis UI Components Library for React.js",
|
|
6
6
|
"keywords": [
|
|
@@ -29,11 +29,69 @@
|
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|
|
31
31
|
".": "./dist/index.js",
|
|
32
|
+
"./accordion": "./dist/accordion.js",
|
|
33
|
+
"./autocomplete": "./dist/autocomplete.js",
|
|
34
|
+
"./avatar": "./dist/avatar.js",
|
|
35
|
+
"./badge": "./dist/badge.js",
|
|
36
|
+
"./breadcrumb": "./dist/breadcrumb.js",
|
|
37
|
+
"./button": "./dist/button.js",
|
|
38
|
+
"./button-group": "./dist/button-group.js",
|
|
39
|
+
"./calendar": "./dist/calendar.js",
|
|
40
|
+
"./card": "./dist/card.js",
|
|
41
|
+
"./carousel": "./dist/carousel.js",
|
|
42
|
+
"./checkbox": "./dist/checkbox.js",
|
|
43
|
+
"./chip": "./dist/chip.js",
|
|
44
|
+
"./chip-input": "./dist/chip-input.js",
|
|
45
|
+
"./close-button": "./dist/close-button.js",
|
|
46
|
+
"./collapse": "./dist/collapse.js",
|
|
47
|
+
"./color-input": "./dist/color-input.js",
|
|
48
|
+
"./combobox": "./dist/combobox.js",
|
|
49
|
+
"./datagrid": "./dist/datagrid.js",
|
|
50
|
+
"./datepicker": "./dist/datepicker.js",
|
|
51
|
+
"./drawer": "./dist/drawer.js",
|
|
52
|
+
"./file-input": "./dist/file-input.js",
|
|
53
|
+
"./flex": "./dist/flex.js",
|
|
54
|
+
"./floating-input": "./dist/floating-input.js",
|
|
55
|
+
"./form": "./dist/form.js",
|
|
56
|
+
"./form-field": "./dist/form-field.js",
|
|
57
|
+
"./grid": "./dist/grid.js",
|
|
58
|
+
"./icon": "./dist/icon.js",
|
|
59
|
+
"./input-adorn": "./dist/input-adorn.js",
|
|
60
|
+
"./input-group": "./dist/input-group.js",
|
|
61
|
+
"./link": "./dist/link.js",
|
|
62
|
+
"./list": "./dist/list.js",
|
|
63
|
+
"./menu": "./dist/menu.js",
|
|
64
|
+
"./modal": "./dist/modal.js",
|
|
65
|
+
"./nav": "./dist/nav.js",
|
|
66
|
+
"./navbar": "./dist/navbar.js",
|
|
67
|
+
"./notification": "./dist/notification.js",
|
|
68
|
+
"./otp-input": "./dist/otp-input.js",
|
|
69
|
+
"./pagination": "./dist/pagination.js",
|
|
70
|
+
"./password-strength": "./dist/password-strength.js",
|
|
71
|
+
"./placeholder": "./dist/placeholder.js",
|
|
72
|
+
"./popover": "./dist/popover.js",
|
|
73
|
+
"./progress": "./dist/progress.js",
|
|
74
|
+
"./radio": "./dist/radio.js",
|
|
75
|
+
"./range-input": "./dist/range-input.js",
|
|
76
|
+
"./select": "./dist/select.js",
|
|
77
|
+
"./skeleton": "./dist/skeleton.js",
|
|
78
|
+
"./spinner": "./dist/spinner.js",
|
|
79
|
+
"./stack": "./dist/stack.js",
|
|
80
|
+
"./static-table": "./dist/static-table.js",
|
|
81
|
+
"./stepper": "./dist/stepper.js",
|
|
82
|
+
"./switch": "./dist/switch.js",
|
|
83
|
+
"./table": "./dist/table.js",
|
|
84
|
+
"./tabs": "./dist/tabs.js",
|
|
85
|
+
"./text-input": "./dist/text-input.js",
|
|
86
|
+
"./textarea": "./dist/textarea.js",
|
|
87
|
+
"./toast": "./dist/toast.js",
|
|
88
|
+
"./tooltip": "./dist/tooltip.js",
|
|
32
89
|
"./package.json": "./package.json",
|
|
33
90
|
"./style.css": "./dist/style.css"
|
|
34
91
|
},
|
|
35
92
|
"sideEffects": [
|
|
36
|
-
"./dist
|
|
93
|
+
"./dist/*.js",
|
|
94
|
+
"./dist/chunks/focus-ring-*.js",
|
|
37
95
|
"./dist/style.css"
|
|
38
96
|
],
|
|
39
97
|
"browserslist": [
|
|
@@ -57,8 +115,8 @@
|
|
|
57
115
|
"devDependencies": {
|
|
58
116
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
59
117
|
"@arethetypeswrong/core": "^0.18.5",
|
|
60
|
-
"@chassis-ui/css": "^0.
|
|
61
|
-
"@chassis-ui/tokens": "^0.
|
|
118
|
+
"@chassis-ui/css": "^0.5.0",
|
|
119
|
+
"@chassis-ui/tokens": "^0.5.0",
|
|
62
120
|
"@playwright/test": "1.62.1",
|
|
63
121
|
"@storybook/addon-a11y": "^10.6.0",
|
|
64
122
|
"@storybook/addon-docs": "^10.6.0",
|
|
@@ -3,7 +3,8 @@ import classNames from 'classnames'
|
|
|
3
3
|
|
|
4
4
|
import { useForkedRef } from '../../hooks'
|
|
5
5
|
import { markPointerClick } from '../../utils/pointerInteraction'
|
|
6
|
-
import {
|
|
6
|
+
import { IconValue } from '../../utils/iconConfig'
|
|
7
|
+
import { IconSlot } from '../../utils/iconSlot'
|
|
7
8
|
import { useCarouselContext } from './context'
|
|
8
9
|
|
|
9
10
|
interface CarouselControlButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -15,6 +16,11 @@ interface CarouselControlButtonProps extends ButtonHTMLAttributes<HTMLButtonElem
|
|
|
15
16
|
* Which direction this control navigates, and which end-of-track state disables it.
|
|
16
17
|
*/
|
|
17
18
|
direction: 'prev' | 'next'
|
|
19
|
+
/**
|
|
20
|
+
* The control's icon: an icon name, or an element of your own icon set. Defaults to
|
|
21
|
+
* `IconProvider`'s `previous`/`next` icon.
|
|
22
|
+
*/
|
|
23
|
+
icon?: IconValue
|
|
18
24
|
/**
|
|
19
25
|
* The accessible label announced by assistive technology.
|
|
20
26
|
*/
|
|
@@ -24,7 +30,7 @@ interface CarouselControlButtonProps extends ButtonHTMLAttributes<HTMLButtonElem
|
|
|
24
30
|
// Shared prev/next control, used by both CarouselControlPrev and CarouselControlNext — mirrors
|
|
25
31
|
// how CalendarNavButton.tsx factors the same shape for Calendar/RangeCalendar.
|
|
26
32
|
export const CarouselControlButton = forwardRef<HTMLButtonElement, CarouselControlButtonProps>(
|
|
27
|
-
({ children, className, direction, disabled, label, onClick, ...rest }, ref) => {
|
|
33
|
+
({ children, className, direction, disabled, icon, label, onClick, ...rest }, ref) => {
|
|
28
34
|
const { atEnd, atStart, ends, next, prev, registerControl } = useCarouselContext()
|
|
29
35
|
const buttonRef = useRef<HTMLButtonElement>(null)
|
|
30
36
|
const forkedRef = useForkedRef(ref, buttonRef)
|
|
@@ -59,8 +65,9 @@ export const CarouselControlButton = forwardRef<HTMLButtonElement, CarouselContr
|
|
|
59
65
|
>
|
|
60
66
|
{children ?? (
|
|
61
67
|
<>
|
|
62
|
-
<
|
|
63
|
-
|
|
68
|
+
<IconSlot
|
|
69
|
+
icon={direction === 'next' ? 'next' : 'previous'}
|
|
70
|
+
override={icon}
|
|
64
71
|
className="directional-icon"
|
|
65
72
|
/>
|
|
66
73
|
<span className="visually-hidden">{label}</span>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, forwardRef } from 'react'
|
|
2
2
|
|
|
3
|
+
import { IconValue } from '../../utils/iconConfig'
|
|
3
4
|
import { CarouselControlButton } from './CarouselControlButton'
|
|
4
5
|
|
|
5
6
|
export interface CarouselControlNextProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -7,6 +8,11 @@ export interface CarouselControlNextProps extends ButtonHTMLAttributes<HTMLButto
|
|
|
7
8
|
* A string of all className you want applied to the component.
|
|
8
9
|
*/
|
|
9
10
|
className?: string
|
|
11
|
+
/**
|
|
12
|
+
* The control's icon: an icon name, or an element of your own icon set. Defaults to
|
|
13
|
+
* `IconProvider`'s `next` icon.
|
|
14
|
+
*/
|
|
15
|
+
icon?: IconValue
|
|
10
16
|
/**
|
|
11
17
|
* The accessible label announced by assistive technology.
|
|
12
18
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, forwardRef } from 'react'
|
|
2
2
|
|
|
3
|
+
import { IconValue } from '../../utils/iconConfig'
|
|
3
4
|
import { CarouselControlButton } from './CarouselControlButton'
|
|
4
5
|
|
|
5
6
|
export interface CarouselControlPrevProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -7,6 +8,11 @@ export interface CarouselControlPrevProps extends ButtonHTMLAttributes<HTMLButto
|
|
|
7
8
|
* A string of all className you want applied to the component.
|
|
8
9
|
*/
|
|
9
10
|
className?: string
|
|
11
|
+
/**
|
|
12
|
+
* The control's icon: an icon name, or an element of your own icon set. Defaults to
|
|
13
|
+
* `IconProvider`'s `previous` icon.
|
|
14
|
+
*/
|
|
15
|
+
icon?: IconValue
|
|
10
16
|
/**
|
|
11
17
|
* The accessible label announced by assistive technology.
|
|
12
18
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, forwardRef } from 'react'
|
|
2
2
|
import classNames from 'classnames'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { IconValue } from '../../utils/iconConfig'
|
|
5
|
+
import { IconSlot } from '../../utils/iconSlot'
|
|
5
6
|
import { useCarouselContext } from './context'
|
|
6
7
|
|
|
7
8
|
export interface CarouselPlayPauseProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -9,6 +10,11 @@ export interface CarouselPlayPauseProps extends ButtonHTMLAttributes<HTMLButtonE
|
|
|
9
10
|
* A string of all className you want applied to the component.
|
|
10
11
|
*/
|
|
11
12
|
className?: string
|
|
13
|
+
/**
|
|
14
|
+
* The icon shown while autoplay is running: an icon name, or an element of your own icon set.
|
|
15
|
+
* Defaults to `IconProvider`'s `pause` icon.
|
|
16
|
+
*/
|
|
17
|
+
pauseIcon?: IconValue
|
|
12
18
|
/**
|
|
13
19
|
* The accessible label announced while autoplay is running.
|
|
14
20
|
*/
|
|
@@ -17,6 +23,11 @@ export interface CarouselPlayPauseProps extends ButtonHTMLAttributes<HTMLButtonE
|
|
|
17
23
|
* The accessible label announced while autoplay is stopped.
|
|
18
24
|
*/
|
|
19
25
|
playLabel?: string
|
|
26
|
+
/**
|
|
27
|
+
* The icon shown while autoplay is stopped: an icon name, or an element of your own icon set.
|
|
28
|
+
* Defaults to `IconProvider`'s `play` icon.
|
|
29
|
+
*/
|
|
30
|
+
playIcon?: IconValue
|
|
20
31
|
}
|
|
21
32
|
|
|
22
33
|
/**
|
|
@@ -25,7 +36,19 @@ export interface CarouselPlayPauseProps extends ButtonHTMLAttributes<HTMLButtonE
|
|
|
25
36
|
* icon while playing, a play icon once stopped.
|
|
26
37
|
*/
|
|
27
38
|
export const CarouselPlayPause = forwardRef<HTMLButtonElement, CarouselPlayPauseProps>(
|
|
28
|
-
(
|
|
39
|
+
(
|
|
40
|
+
{
|
|
41
|
+
children,
|
|
42
|
+
className,
|
|
43
|
+
onClick,
|
|
44
|
+
pauseIcon,
|
|
45
|
+
pauseLabel = 'Pause',
|
|
46
|
+
playIcon,
|
|
47
|
+
playLabel = 'Play',
|
|
48
|
+
...rest
|
|
49
|
+
},
|
|
50
|
+
ref
|
|
51
|
+
) => {
|
|
29
52
|
const { playing, togglePlayPause } = useCarouselContext()
|
|
30
53
|
const _className = classNames(
|
|
31
54
|
'carousel-control-play-pause button sm icon-only',
|
|
@@ -49,8 +72,8 @@ export const CarouselPlayPause = forwardRef<HTMLButtonElement, CarouselPlayPause
|
|
|
49
72
|
>
|
|
50
73
|
{children ?? (
|
|
51
74
|
<>
|
|
52
|
-
<
|
|
53
|
-
<
|
|
75
|
+
<IconSlot icon="pause" override={pauseIcon} className="carousel-icon-pause" />
|
|
76
|
+
<IconSlot icon="play" override={playIcon} className="carousel-icon-play" />
|
|
54
77
|
</>
|
|
55
78
|
)}
|
|
56
79
|
</button>
|
|
@@ -65,6 +65,11 @@ export interface CheckboxProps extends Omit<
|
|
|
65
65
|
isSelected?: boolean
|
|
66
66
|
/**
|
|
67
67
|
* The element represents a caption for a component.
|
|
68
|
+
*
|
|
69
|
+
* Children are accepted as an alias for this prop — `label` wins when both are given.
|
|
70
|
+
* react-aria, which backs this component, calls the same thing `children`; this package renames
|
|
71
|
+
* it to `label`, and honouring both means the shape React developers reach for first still
|
|
72
|
+
* names the control instead of silently producing an unlabelled one.
|
|
68
73
|
*/
|
|
69
74
|
label?: ReactNode
|
|
70
75
|
/**
|
|
@@ -91,6 +96,7 @@ const CheckboxStandalone = forwardRef<HTMLInputElement, CheckboxProps>(
|
|
|
91
96
|
(
|
|
92
97
|
{
|
|
93
98
|
button,
|
|
99
|
+
children,
|
|
94
100
|
className,
|
|
95
101
|
color,
|
|
96
102
|
defaultSelected,
|
|
@@ -117,10 +123,14 @@ const CheckboxStandalone = forwardRef<HTMLInputElement, CheckboxProps>(
|
|
|
117
123
|
onChange
|
|
118
124
|
})
|
|
119
125
|
|
|
126
|
+
// `label` is this package's name for what react-aria calls `children`. Accept either, so the
|
|
127
|
+
// shape React developers reach for first names the control instead of vanishing.
|
|
128
|
+
const resolvedLabel = label ?? children
|
|
129
|
+
|
|
120
130
|
const { inputProps } = useCheckbox(
|
|
121
131
|
{
|
|
122
132
|
...rest,
|
|
123
|
-
children:
|
|
133
|
+
children: resolvedLabel,
|
|
124
134
|
isDisabled: disabled,
|
|
125
135
|
isIndeterminate: indeterminate,
|
|
126
136
|
isInvalid: invalid,
|
|
@@ -138,7 +148,7 @@ const CheckboxStandalone = forwardRef<HTMLInputElement, CheckboxProps>(
|
|
|
138
148
|
color,
|
|
139
149
|
input: <input {...inputProps} className={inputClassName} id={id} ref={forkedRef} />,
|
|
140
150
|
invalid,
|
|
141
|
-
label,
|
|
151
|
+
label: resolvedLabel,
|
|
142
152
|
size,
|
|
143
153
|
valid
|
|
144
154
|
})
|
|
@@ -155,6 +165,7 @@ const CheckboxGroupItem = forwardRef<HTMLInputElement, CheckboxGroupItemProps>(
|
|
|
155
165
|
(
|
|
156
166
|
{
|
|
157
167
|
button,
|
|
168
|
+
children,
|
|
158
169
|
className,
|
|
159
170
|
color,
|
|
160
171
|
defaultSelected: _defaultSelected,
|
|
@@ -196,10 +207,14 @@ const CheckboxGroupItem = forwardRef<HTMLInputElement, CheckboxGroupItemProps>(
|
|
|
196
207
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
197
208
|
}, [])
|
|
198
209
|
|
|
210
|
+
// `label` is this package's name for what react-aria calls `children`. Accept either, so the
|
|
211
|
+
// shape React developers reach for first names the control instead of vanishing.
|
|
212
|
+
const resolvedLabel = label ?? children
|
|
213
|
+
|
|
199
214
|
const { inputProps } = useCheckboxGroupItem(
|
|
200
215
|
{
|
|
201
216
|
...rest,
|
|
202
|
-
children:
|
|
217
|
+
children: resolvedLabel,
|
|
203
218
|
isDisabled: disabled,
|
|
204
219
|
isIndeterminate: indeterminate,
|
|
205
220
|
isInvalid: invalid,
|
|
@@ -217,7 +232,7 @@ const CheckboxGroupItem = forwardRef<HTMLInputElement, CheckboxGroupItemProps>(
|
|
|
217
232
|
color,
|
|
218
233
|
input: <input {...inputProps} className={inputClassName} id={id} ref={forkedRef} />,
|
|
219
234
|
invalid,
|
|
220
|
-
label,
|
|
235
|
+
label: resolvedLabel,
|
|
221
236
|
size,
|
|
222
237
|
valid
|
|
223
238
|
})
|
|
@@ -5,7 +5,7 @@ import { ComboBoxState, Node } from 'react-stately'
|
|
|
5
5
|
|
|
6
6
|
import { getVirtualFocusStyle } from '../../utils/virtualFocusStyle'
|
|
7
7
|
import { ComboboxEntry, ComboboxSelectionMode } from '../../utils/comboboxCollection'
|
|
8
|
-
import {
|
|
8
|
+
import { IconSlot } from '../../utils/iconSlot'
|
|
9
9
|
|
|
10
10
|
interface ComboboxListBoxProps<M extends ComboboxSelectionMode = 'single'> {
|
|
11
11
|
listBoxProps: AriaListBoxOptions<ComboboxEntry>
|
|
@@ -92,7 +92,7 @@ const ComboboxOption = <M extends ComboboxSelectionMode = 'single'>({
|
|
|
92
92
|
ref={ref}
|
|
93
93
|
>
|
|
94
94
|
{item.rendered}
|
|
95
|
-
{isSelected && <
|
|
95
|
+
{isSelected && <IconSlot icon="check" className="menu-item-check" />}
|
|
96
96
|
</div>
|
|
97
97
|
)
|
|
98
98
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import '../../utils/suppressFocusRingGlobally'
|
|
4
|
+
|
|
1
5
|
export { Drawer } from './Drawer'
|
|
2
6
|
export type { DrawerProps } from './Drawer'
|
|
3
7
|
export { DrawerBody } from './DrawerBody'
|
|
@@ -8,3 +12,7 @@ export { DrawerHeader } from './DrawerHeader'
|
|
|
8
12
|
export type { DrawerHeaderProps } from './DrawerHeader'
|
|
9
13
|
export { DrawerTitle } from './DrawerTitle'
|
|
10
14
|
export type { DrawerTitleProps } from './DrawerTitle'
|
|
15
|
+
// Also exported from the package root; repeated here so this folder's subpath entry
|
|
16
|
+
// (`@chassis-ui/react/<folder>`) covers the whole family without reaching back to the root.
|
|
17
|
+
export { useDrawer } from '../../hooks/useDrawer'
|
|
18
|
+
export type { UseDrawerResult } from '../../hooks/useDrawer'
|