@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,39 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { t as Placement } from "./overlayPlacement-B7843a-Q.js";
|
|
3
|
+
import { FC, HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
4
|
+
//#region src/components/popover/Popover.d.ts
|
|
5
|
+
interface PopoverProps extends Pick<HTMLAttributes<HTMLDivElement>, 'aria-label' | 'aria-labelledby'> {
|
|
6
|
+
children: ReactElement;
|
|
7
|
+
/**
|
|
8
|
+
* Content node for your component.
|
|
9
|
+
*/
|
|
10
|
+
content: ReactNode | string;
|
|
11
|
+
/**
|
|
12
|
+
* Offset of the popover relative to its target, as `[crossAxis, mainAxis]`.
|
|
13
|
+
*/
|
|
14
|
+
offset?: [number, number];
|
|
15
|
+
/**
|
|
16
|
+
* Callback fired when the component requests to be hidden.
|
|
17
|
+
*/
|
|
18
|
+
onHide?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Callback fired when the component requests to be shown.
|
|
21
|
+
*/
|
|
22
|
+
onShow?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Title node for your component.
|
|
25
|
+
*/
|
|
26
|
+
title?: ReactNode | string;
|
|
27
|
+
/**
|
|
28
|
+
* Describes the preferred placement of your component. Chassis will flip it to keep it in
|
|
29
|
+
* view.
|
|
30
|
+
*/
|
|
31
|
+
placement?: Placement;
|
|
32
|
+
/**
|
|
33
|
+
* Toggle the visibility of popover component.
|
|
34
|
+
*/
|
|
35
|
+
visible?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare const Popover: FC<PopoverProps>;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { PopoverProps as n, Popover as t };
|
|
@@ -0,0 +1,80 @@
|
|
|
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, ReactElement } from "react";
|
|
5
|
+
//#region src/components/placeholder/Placeholder.d.ts
|
|
6
|
+
type PlaceholderAlign = 'start' | 'center' | 'end';
|
|
7
|
+
type PlaceholderOwnProps<C extends ElementType> = {
|
|
8
|
+
/**
|
|
9
|
+
* Set the horizontal alignment. Only applies when `src` is set.
|
|
10
|
+
*/
|
|
11
|
+
align?: PlaceholderAlign;
|
|
12
|
+
/**
|
|
13
|
+
* A string of all className you want applied to the component.
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Sets the color of the generated placeholder graphic to one of Chassis context colors. Has no
|
|
18
|
+
* effect when `src` is set.
|
|
19
|
+
*/
|
|
20
|
+
color?: ContextColor;
|
|
21
|
+
/**
|
|
22
|
+
* Sets the variant of the generated placeholder graphic to one of Chassis context styles. Has no
|
|
23
|
+
* effect when `src` is set.
|
|
24
|
+
*/
|
|
25
|
+
variant?: Exclude<ContextStyle, 'basic' | 'outline'>;
|
|
26
|
+
/**
|
|
27
|
+
* Component used for the root node when `src` is set. Either a string to use an HTML element
|
|
28
|
+
* or a component — e.g. a framework's own `Image` component. Its own props (`src`, `fill`,
|
|
29
|
+
* `priority`, etc.) are type-checked at the call site once passed here.
|
|
30
|
+
*/
|
|
31
|
+
component?: C;
|
|
32
|
+
/**
|
|
33
|
+
* Make the image responsive, so it never grows larger than its parent. Only applies when `src`
|
|
34
|
+
* is set.
|
|
35
|
+
*/
|
|
36
|
+
fluid?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Placeholder height.
|
|
39
|
+
*/
|
|
40
|
+
height?: number | string;
|
|
41
|
+
/**
|
|
42
|
+
* Give the image a rounded border-radius. Only applies when `src` is set.
|
|
43
|
+
*/
|
|
44
|
+
rounded?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Renders a real image instead of the generated placeholder graphic, e.g. a default asset or a
|
|
47
|
+
* `placehold.co` URL.
|
|
48
|
+
*/
|
|
49
|
+
src?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Text shown in the generated placeholder graphic. Defaults to `{width}x{height}`. Pass `false`
|
|
52
|
+
* to hide it. Has no effect when `src` is set.
|
|
53
|
+
*/
|
|
54
|
+
text?: string | false;
|
|
55
|
+
/**
|
|
56
|
+
* Give the image a thumbnail appearance (padding, background, border, box-shadow). Only
|
|
57
|
+
* applies when `src` is set.
|
|
58
|
+
*/
|
|
59
|
+
thumbnail?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Accessible title for the generated placeholder graphic, rendered as an SVG `<title>`. Pass
|
|
62
|
+
* `false` to hide it. Has no effect when `src` is set.
|
|
63
|
+
*
|
|
64
|
+
* @default 'Placeholder'
|
|
65
|
+
*/
|
|
66
|
+
title?: string | false;
|
|
67
|
+
/**
|
|
68
|
+
* Placeholder width.
|
|
69
|
+
*/
|
|
70
|
+
width?: number | string;
|
|
71
|
+
};
|
|
72
|
+
type PlaceholderProps<C extends ElementType = 'img'> = PolymorphicComponentProps<C, PlaceholderOwnProps<C>>;
|
|
73
|
+
type PlaceholderComponent = (<C extends ElementType = 'img'>(props: PlaceholderProps<C> & {
|
|
74
|
+
ref?: PolymorphicRef<C>;
|
|
75
|
+
}) => ReactElement | null) & {
|
|
76
|
+
displayName?: string;
|
|
77
|
+
};
|
|
78
|
+
declare const Placeholder: PlaceholderComponent;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { PlaceholderProps as n, Placeholder as t };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as ContextColor } from "./types-CS_40Txv.js";
|
|
3
|
+
import React, { InputHTMLAttributes, ReactNode } from "react";
|
|
4
|
+
//#region src/components/switch/Switch.d.ts
|
|
5
|
+
interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checked' | 'defaultChecked' | 'onChange' | 'size'> {
|
|
6
|
+
/**
|
|
7
|
+
* A string of all className you want applied to the component.
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the color of the switch indicator to one of Chassis context colors.
|
|
12
|
+
*/
|
|
13
|
+
color?: ContextColor;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the switch is selected, uncontrolled.
|
|
16
|
+
*/
|
|
17
|
+
defaultSelected?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Set component validation state to invalid.
|
|
24
|
+
*/
|
|
25
|
+
invalid?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the switch is selected, controlled.
|
|
28
|
+
*/
|
|
29
|
+
isSelected?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The element represents a caption for a component.
|
|
32
|
+
*
|
|
33
|
+
* Children are accepted as an alias for this prop — `label` wins when both are given.
|
|
34
|
+
* react-aria, which backs this component, calls the same thing `children`; this package renames
|
|
35
|
+
* it to `label`, and honouring both means the shape React developers reach for first still
|
|
36
|
+
* names the control instead of silently producing an unlabelled one.
|
|
37
|
+
*/
|
|
38
|
+
label?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Callback fired when the selected state changes.
|
|
41
|
+
*/
|
|
42
|
+
onChange?: (isSelected: boolean) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Size the component sm or lg.
|
|
45
|
+
*/
|
|
46
|
+
size?: 'sm' | 'lg';
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the type of component.
|
|
49
|
+
*/
|
|
50
|
+
type?: 'checkbox' | 'radio';
|
|
51
|
+
/**
|
|
52
|
+
* Set component validation state to valid.
|
|
53
|
+
*/
|
|
54
|
+
valid?: boolean;
|
|
55
|
+
}
|
|
56
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { SwitchProps as n, Switch as t };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import React, { HTMLAttributes } from "react";
|
|
3
|
+
//#region src/components/password-strength/strengthScore.d.ts
|
|
4
|
+
type StrengthLevel = 'weak' | 'fair' | 'good' | 'strong';
|
|
5
|
+
interface StrengthWeights {
|
|
6
|
+
extraLength: number;
|
|
7
|
+
lowercase: number;
|
|
8
|
+
longPassword: number;
|
|
9
|
+
minLength: number;
|
|
10
|
+
multipleSpecial: number;
|
|
11
|
+
numbers: number;
|
|
12
|
+
special: number;
|
|
13
|
+
uppercase: number;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/password-strength/PasswordStrength.d.ts
|
|
17
|
+
interface PasswordStrengthProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
18
|
+
/**
|
|
19
|
+
* An accessible label for the meter. Defaults to `"Password strength"`.
|
|
20
|
+
*/
|
|
21
|
+
'aria-label'?: string;
|
|
22
|
+
/**
|
|
23
|
+
* A string of all className you want applied to the base component.
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
/**
|
|
27
|
+
* `id` forwarded to the meter element.
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The maximum possible score, used to compute the meter's `aria-valuemax`. Defaults to the sum
|
|
32
|
+
* of `weights`' values — set this explicitly when pairing a custom `scorer` whose scale doesn't
|
|
33
|
+
* match the built-in criteria weights, otherwise `aria-valuenow`/`aria-valuemax` get silently
|
|
34
|
+
* clamped to the built-in max.
|
|
35
|
+
*/
|
|
36
|
+
maxScore?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Minimum password length required to earn the first strength point. Defaults to `8`.
|
|
39
|
+
*/
|
|
40
|
+
minLength?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Feedback message shown for each strength level, when `showText` is `true`.
|
|
43
|
+
*/
|
|
44
|
+
messages?: Partial<Record<StrengthLevel, string>>;
|
|
45
|
+
/**
|
|
46
|
+
* Callback fired whenever the strength level changes, including once on mount with the
|
|
47
|
+
* initial `value`'s strength.
|
|
48
|
+
*/
|
|
49
|
+
onStrengthChange?: (result: {
|
|
50
|
+
score: number;
|
|
51
|
+
strength: StrengthLevel | null;
|
|
52
|
+
}) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Custom scoring function overriding the built-in criteria. Receives the password and returns
|
|
55
|
+
* a numeric score.
|
|
56
|
+
*/
|
|
57
|
+
scorer?: (password: string) => number;
|
|
58
|
+
/**
|
|
59
|
+
* Renders a `.strength-text` element below the meter with the current level's message.
|
|
60
|
+
* Defaults to `true`.
|
|
61
|
+
*/
|
|
62
|
+
showText?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Score boundaries `[weak, fair, good]` — scores above the last value are `"strong"`. Defaults
|
|
65
|
+
* to `[2, 4, 6]`.
|
|
66
|
+
*/
|
|
67
|
+
thresholds?: [number, number, number];
|
|
68
|
+
/**
|
|
69
|
+
* The current password value to evaluate.
|
|
70
|
+
*/
|
|
71
|
+
value: string;
|
|
72
|
+
/**
|
|
73
|
+
* Render as four discrete segments, or a single growing bar. Defaults to `"segmented"`.
|
|
74
|
+
*/
|
|
75
|
+
variant?: 'bar' | 'segmented';
|
|
76
|
+
/**
|
|
77
|
+
* Point values for each scoring criterion. Set a criterion to `0` to disable it. Merged with
|
|
78
|
+
* the built-in defaults.
|
|
79
|
+
*/
|
|
80
|
+
weights?: Partial<StrengthWeights>;
|
|
81
|
+
}
|
|
82
|
+
declare const PasswordStrength: {
|
|
83
|
+
({ "aria-label": ariaLabel, className, id, maxScore, messages, minLength, onStrengthChange, scorer, showText, thresholds, value, variant, weights, ...rest }: PasswordStrengthProps): React.JSX.Element;
|
|
84
|
+
displayName: string;
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { PasswordStrengthProps as n, PasswordStrength as t };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
+
import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
|
|
3
|
+
import { n as LinkProps } from "./Link-B0Y1xgYi.js";
|
|
4
|
+
import React, { ElementType, HTMLAttributes, ReactElement, Ref } from "react";
|
|
5
|
+
//#region src/components/nav/Nav.d.ts
|
|
6
|
+
interface NavItemDef {
|
|
7
|
+
/**
|
|
8
|
+
* Label content for the nav item.
|
|
9
|
+
*/
|
|
10
|
+
label: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* URL for the nav link.
|
|
13
|
+
*/
|
|
14
|
+
href?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Marks the item as active.
|
|
17
|
+
*/
|
|
18
|
+
active?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Marks the item as disabled.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
type NavOwnProps<C extends ElementType> = {
|
|
25
|
+
/**
|
|
26
|
+
* A string of all className you want applied to the base component.
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
31
|
+
*/
|
|
32
|
+
component?: C;
|
|
33
|
+
/**
|
|
34
|
+
* Array of nav item definitions for data-driven rendering. When provided, children are ignored.
|
|
35
|
+
*/
|
|
36
|
+
items?: NavItemDef[];
|
|
37
|
+
/**
|
|
38
|
+
* Specify a layout type for component.
|
|
39
|
+
*/
|
|
40
|
+
layout?: 'fill' | 'justified';
|
|
41
|
+
/**
|
|
42
|
+
* Set the nav variant to tabs or pills.
|
|
43
|
+
*/
|
|
44
|
+
variant?: 'tabs' | 'pills';
|
|
45
|
+
};
|
|
46
|
+
type NavProps<C extends ElementType = 'ul'> = PolymorphicComponentProps<C, NavOwnProps<C>>;
|
|
47
|
+
type NavComponent = (<C extends ElementType = 'ul'>(props: NavProps<C> & {
|
|
48
|
+
ref?: PolymorphicRef<C>;
|
|
49
|
+
}) => ReactElement | null) & {
|
|
50
|
+
displayName?: string;
|
|
51
|
+
};
|
|
52
|
+
declare const Nav: NavComponent;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/components/nav/NavLink.d.ts
|
|
55
|
+
type NavLinkOwnProps = {
|
|
56
|
+
/**
|
|
57
|
+
* Toggle the active state for the component.
|
|
58
|
+
*/
|
|
59
|
+
active?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* A string of all className you want applied to the component.
|
|
62
|
+
*/
|
|
63
|
+
className?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Toggle the disabled state for the component.
|
|
66
|
+
*/
|
|
67
|
+
disabled?: boolean;
|
|
68
|
+
};
|
|
69
|
+
type NavLinkProps<C extends ElementType = 'a'> = LinkProps<C> & NavLinkOwnProps;
|
|
70
|
+
type NavLinkComponent = (<C extends ElementType = 'a'>(props: NavLinkProps<C> & {
|
|
71
|
+
ref?: PolymorphicRef<C>;
|
|
72
|
+
}) => ReactElement | null) & {
|
|
73
|
+
displayName?: string;
|
|
74
|
+
};
|
|
75
|
+
declare const NavLink: NavLinkComponent;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/nav/NavItem.d.ts
|
|
78
|
+
type NavItemComponent = (<C extends ElementType = 'a'>(props: NavLinkProps<C> & {
|
|
79
|
+
ref?: Ref<HTMLLIElement>;
|
|
80
|
+
}) => ReactElement | null) & {
|
|
81
|
+
displayName?: string;
|
|
82
|
+
};
|
|
83
|
+
declare const NavItem: NavItemComponent;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/components/nav/NavTitle.d.ts
|
|
86
|
+
interface NavTitleProps extends HTMLAttributes<HTMLLIElement> {
|
|
87
|
+
/**
|
|
88
|
+
* A string of all className you want applied to the component.
|
|
89
|
+
*/
|
|
90
|
+
className?: string;
|
|
91
|
+
}
|
|
92
|
+
declare const NavTitle: React.ForwardRefExoticComponent<NavTitleProps & React.RefAttributes<HTMLLIElement>>;
|
|
93
|
+
//#endregion
|
|
94
|
+
export { NavLinkProps as a, NavProps as c, NavLink as i, NavTitleProps as n, Nav as o, NavItem as r, NavItemDef as s, NavTitle as t };
|