@midas-ds/components 10.1.0 → 10.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/AccordionItem-DZT76sWu.js +320 -0
- package/AccordionItem-Z_c9MpAM.cjs +1 -0
- package/BadgeContainer-D3RtqcPF.js +37 -0
- package/BadgeContainer-DeUgqGqb.cjs +1 -0
- package/Breadcrumbs-CmZXtTiS.js +250 -0
- package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
- package/Button-CbFRzRrF.js +38 -0
- package/Button-DnhqHU01.cjs +1 -0
- package/Button-ZOQy9Ivu.js +78 -0
- package/Button-iSiWjocA.cjs +1 -0
- package/Button.module-CMMhIrkn.js +14 -0
- package/Button.module-DO5s9hOk.cjs +1 -0
- package/ButtonGroup-DUqW5dzM.cjs +1 -0
- package/ButtonGroup-DvVvear6.js +22 -0
- package/CHANGELOG.md +81 -0
- package/Card-C0BFW3wJ.cjs +1 -0
- package/Card-CaKKKv9k.js +131 -0
- package/CharacterCounter-CPGdboVJ.js +22 -0
- package/CharacterCounter-CrY8QRuY.cjs +1 -0
- package/Checkbox-CvFsn_FL.js +380 -0
- package/Checkbox-DSxGAJX2.cjs +1 -0
- package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
- package/CheckboxGroup-Dij9zKlF.js +54 -0
- package/Collection-C5ONNBqd.js +576 -0
- package/Collection-Csx3L9gh.cjs +1 -0
- package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
- package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
- package/ComboBox-BCaqPEIH.js +1375 -0
- package/ComboBox-gveQKHU3.cjs +1 -0
- package/DateField-CAQlzuDD.js +46 -0
- package/DateField-deVVFwKA.cjs +1 -0
- package/DateInputDivider-DnUxETEC.cjs +1 -0
- package/DateInputDivider-Dx8n1Lxp.js +2908 -0
- package/DateRangePicker-BmBvwqo6.js +881 -0
- package/DateRangePicker-BzfitoK0.cjs +6 -0
- package/Dialog-Bd5hK360.cjs +1 -0
- package/Dialog-Bxx8cBEq.js +208 -0
- package/Dialog-CYxThuMl.js +1609 -0
- package/Dialog-CwTEAujZ.cjs +1 -0
- package/DragAndDrop-CSwmPhxC.js +60 -0
- package/DragAndDrop-HvycSrKY.cjs +1 -0
- package/Dropdown-CaGon9OR.cjs +6 -0
- package/Dropdown-nkjzsVYX.js +84 -0
- package/FieldError-BZw8UzBk.cjs +1 -0
- package/FieldError-CZikNDxX.js +28 -0
- package/FieldError-DqdfJ3fs.cjs +1 -0
- package/FieldError-Dv3bBEjh.js +23 -0
- package/FileUpload-DYRZ0M9F.cjs +2 -0
- package/FileUpload-ULwcYDxs.js +2372 -0
- package/FocusScope-DwIqdYpQ.js +625 -0
- package/FocusScope-NaPbvuuS.cjs +1 -0
- package/Form-BuOomA4T.cjs +1 -0
- package/Form-CXcEMuBf.js +5 -0
- package/Grid--OhtgCo6.js +27 -0
- package/Grid-DVQtOcu9.cjs +1 -0
- package/GridItem-DlbSdRmB.js +246 -0
- package/GridItem-XgHmZWXY.cjs +1 -0
- package/Group-CeSsSQVC.js +44 -0
- package/Group-CgiqQHH1.cjs +1 -0
- package/Heading-BY5-QN4S.js +46 -0
- package/Heading-DoJAtYZf.cjs +1 -0
- package/Hidden-B5ir3Lei.js +34 -0
- package/Hidden-BxRZGdEW.cjs +1 -0
- package/InfoBanner-BS-dAfzO.cjs +1 -0
- package/InfoBanner-CVIBFSWx.js +82 -0
- package/Input-D8Ku_FQz.js +41 -0
- package/Input-DKSAYvsw.cjs +1 -0
- package/Label-C9ivwkAd.js +21 -0
- package/Label-CUV21CAv.cjs +1 -0
- package/Label-DkDOsmUF.js +16 -0
- package/Label-IMWAyoKb.cjs +1 -0
- package/Layout-BWeHHnqU.cjs +16 -0
- package/Layout-CCt_2L1k.js +468 -0
- package/Link-B-nus-FT.js +71 -0
- package/Link-DsnCtNeI.cjs +6 -0
- package/Link-SHMbeyIP.cjs +1 -0
- package/Link-uFowN4qv.js +59 -0
- package/LinkButton-CuBilDML.js +69 -0
- package/LinkButton-CymMrcGL.cjs +6 -0
- package/ListBox-CDOsQChA.cjs +1 -0
- package/ListBox-DOi_y_Lt.js +530 -0
- package/ListBoxButton-CFeNhJhr.cjs +1 -0
- package/ListBoxButton-O6zN3P4W.js +15 -0
- package/ListBoxSection-C1aLKL9p.js +1058 -0
- package/ListBoxSection-DGCP6xpf.cjs +1 -0
- package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
- package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
- package/LiveAnnouncer-B6177m92.js +51 -0
- package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BIrOEINM.js +133 -0
- package/Logo-DT2_2O43.cjs +1 -0
- package/NumberFormatter-DewVDY5w.cjs +1 -0
- package/NumberFormatter-DgOUVrge.js +119 -0
- package/OverlayArrow-D75k-EMl.cjs +1 -0
- package/OverlayArrow-DorA4Rbr.js +506 -0
- package/PressResponder-C06O3Z5P.cjs +1 -0
- package/PressResponder-CVEg5kND.js +33 -0
- package/ProgressBar-Bkw9zavs.cjs +1 -0
- package/ProgressBar-CEX2WNoW.js +77 -0
- package/ProgressBar-Dqh3ftSP.cjs +1 -0
- package/ProgressBar-gmAzSsrz.js +53 -0
- package/RSPContexts-BW2SEIqe.js +11 -0
- package/RSPContexts-D8hmBfGm.cjs +1 -0
- package/Radio-CDKrvQe4.cjs +1 -0
- package/Radio-_ukSkxPT.js +311 -0
- package/RangeCalendar-cbCKBPZv.cjs +11 -0
- package/RangeCalendar-uXwoBL-O.js +1685 -0
- package/SearchField-6yBGiojX.cjs +6 -0
- package/SearchField-DYl2uo7o.js +362 -0
- package/Select-CpHjd1tp.cjs +1 -0
- package/Select-PvCqY7Lp.js +646 -0
- package/SelectionManager-6H88Cv6B.js +1033 -0
- package/SelectionManager-C5NGBzvz.cjs +1 -0
- package/Separator-LYnFqh4L.js +60 -0
- package/Separator-nPra6kD-.cjs +1 -0
- package/Skeleton-BAwbfKBW.cjs +1 -0
- package/Skeleton-BePDRmrO.js +40 -0
- package/Spinner-D31SXm-U.js +41 -0
- package/Spinner-DAJtfxqJ.cjs +6 -0
- package/Table-B_N7wUmA.js +2451 -0
- package/Table-D9vNc_y-.cjs +16 -0
- package/Tabs-Ct6D83aR.js +404 -0
- package/Tabs-Dtcl2oK2.cjs +1 -0
- package/Tag-CVFkzg3s.cjs +1 -0
- package/Tag-g6HN-YCv.js +748 -0
- package/Text-3MNwRMpI.cjs +1 -0
- package/Text-B2K-BJKQ.cjs +1 -0
- package/Text-BN-g1iWi.js +32 -0
- package/Text-B_H68Tvq.js +15 -0
- package/TextArea-DSiQ578a.js +206 -0
- package/TextArea-cVyGBRbL.cjs +1 -0
- package/TextField-B70CL2qz.cjs +1 -0
- package/TextField-DBaRuNj7.js +119 -0
- package/TextField.module-BcpPBWnD.js +13 -0
- package/TextField.module-Dw5Rtn9y.cjs +1 -0
- package/Toast-CjpldAI8.js +988 -0
- package/Toast-DrkOGy4d.cjs +1 -0
- package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
- package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
- package/Tooltip-BAIjaYax.js +283 -0
- package/Tooltip-CiWg4zIC.cjs +1 -0
- package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
- package/VisuallyHidden-D-4z1VgU.js +40 -0
- package/accordion/index.cjs +1 -0
- package/accordion/index.js +5 -0
- package/arrow-right-Cw48o2oW.cjs +6 -0
- package/arrow-right-Dg8sttFO.js +14 -0
- package/assets/AccordionItem.css +1 -0
- package/assets/BadgeContainer.css +1 -0
- package/assets/Breadcrumbs.css +1 -0
- package/assets/Button.css +1 -0
- package/assets/ButtonGroup.css +1 -0
- package/assets/Card.css +1 -0
- package/assets/CharacterCounter.css +1 -0
- package/assets/Checkbox.css +1 -0
- package/assets/ColorSchemeSwitch.css +1 -0
- package/assets/ComboBox.css +1 -0
- package/assets/DateField.css +1 -0
- package/assets/DateInputDivider.css +1 -0
- package/assets/DateRangePicker.css +1 -0
- package/assets/Dialog.css +1 -0
- package/assets/Dropdown.css +1 -0
- package/assets/FieldError.css +1 -0
- package/assets/FileUpload.css +1 -0
- package/assets/GridItem.css +1 -0
- package/assets/Heading.css +1 -0
- package/assets/InfoBanner.css +1 -0
- package/assets/Label.css +1 -0
- package/assets/Layout.css +1 -0
- package/assets/Link.css +1 -0
- package/assets/LinkButton.css +1 -0
- package/assets/ListBoxSection.css +1 -0
- package/assets/Logo.css +1 -0
- package/assets/ProgressBar.css +1 -0
- package/assets/Radio.css +1 -0
- package/assets/RangeCalendar.css +1 -0
- package/assets/SearchField.css +1 -0
- package/assets/Select.css +1 -0
- package/assets/Skeleton.css +1 -0
- package/assets/Spinner.css +1 -0
- package/assets/Table.css +1 -0
- package/assets/Tabs.css +1 -0
- package/assets/Tag.css +1 -0
- package/assets/Text.css +1 -0
- package/assets/TextField.css +1 -0
- package/assets/Toast.css +1 -0
- package/assets/ToggleButtonGroup.css +1 -0
- package/assets/Tooltip.css +1 -0
- package/badge/index.cjs +1 -0
- package/badge/index.js +5 -0
- package/breadcrumbs/index.cjs +1 -0
- package/breadcrumbs/index.js +4 -0
- package/button/index.cjs +1 -0
- package/button/index.js +6 -0
- package/calendar/CalendarHeader.d.ts +2 -1
- package/calendar/index.cjs +1 -0
- package/calendar/index.js +5 -0
- package/card/Card.d.ts +3 -0
- package/card/index.cjs +1 -0
- package/card/index.js +10 -0
- package/character-counter/index.cjs +1 -0
- package/character-counter/index.js +4 -0
- package/check-CLF6Yxza.js +11 -0
- package/check-Dw9c62O4.cjs +6 -0
- package/checkbox/index.cjs +1 -0
- package/checkbox/index.js +6 -0
- package/chevron-down-C2E7aZ3N.cjs +6 -0
- package/chevron-down-Cd1bkzXT.js +13 -0
- package/clsx-C11secjj.cjs +1 -0
- package/clsx-OuTLNxxd.js +16 -0
- package/color-scheme-switch/index.cjs +1 -0
- package/color-scheme-switch/index.js +4 -0
- package/combobox/ComboBox.d.ts +9 -5
- package/combobox/index.cjs +1 -0
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +7 -0
- package/combobox/types.d.ts +6 -0
- package/combobox/utils.d.ts +3 -10
- package/common/types.d.ts +2 -0
- package/context-B8cn10po.js +80 -0
- package/context-DjwhtgxQ.cjs +1 -0
- package/createLucideIcon-DAY4oS-S.cjs +21 -0
- package/createLucideIcon-DeWljiyi.js +79 -0
- package/date-field/index.cjs +1 -0
- package/date-field/index.js +8 -0
- package/date-picker/index.cjs +1 -0
- package/date-picker/index.js +5 -0
- package/dropdown/index.cjs +1 -0
- package/dropdown/index.js +5 -0
- package/field-error/FieldError.d.ts +4 -1
- package/field-error/index.cjs +1 -0
- package/field-error/index.js +4 -0
- package/file-upload/index.cjs +1 -0
- package/file-upload/index.js +4 -0
- package/filterDOMProps-BS2lrgFA.cjs +1 -0
- package/filterDOMProps-D6KHYVBX.js +24 -0
- package/focusSafely-Bqfo_DH7.cjs +1 -0
- package/focusSafely-C48ucRUz.js +56 -0
- package/getScrollParent-DuKmPmUa.cjs +1 -0
- package/getScrollParent-Ru2U2LlM.js +9 -0
- package/grid/Grid.d.ts +15 -4
- package/grid/GridItem.d.ts +31 -2
- package/grid/index.cjs +1 -0
- package/grid/index.d.ts +2 -2
- package/grid/index.js +8 -0
- package/heading/index.cjs +1 -0
- package/heading/index.js +4 -0
- package/index-BSMrH_Du.js +120 -0
- package/index-D97L3EBk.cjs +17 -0
- package/index.cjs +1 -164
- package/index.d.ts +1 -1
- package/index.js +127 -30044
- package/inertValue-B7loUihk.js +8 -0
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-DkzVqB8I.js +38 -0
- package/info-DlzSeKbc.cjs +16 -0
- package/info-banner/index.cjs +1 -0
- package/info-banner/index.js +4 -0
- package/label/index.cjs +1 -0
- package/label/index.js +4 -0
- package/layout/index.cjs +1 -0
- package/layout/index.js +8 -0
- package/link/Link.d.ts +4 -1
- package/link/index.cjs +1 -0
- package/link/index.js +6 -0
- package/link-button/LinkButton.d.ts +24 -1
- package/link-button/index.cjs +1 -0
- package/link-button/index.js +6 -0
- package/list-box/ListBox.d.ts +4 -0
- package/list-box/ListBoxButton.d.ts +2 -0
- package/list-box/ListBoxItem.d.ts +3 -0
- package/list-box/ListBoxPopover.d.ts +3 -0
- package/list-box/ListBoxSection.d.ts +8 -0
- package/list-box/index.cjs +1 -0
- package/list-box/index.d.ts +6 -0
- package/list-box/index.js +9 -0
- package/list-box/types.d.ts +23 -0
- package/logo/index.cjs +1 -0
- package/logo/index.js +4 -0
- package/modal/index.cjs +1 -0
- package/modal/index.js +6 -0
- package/number-BE8InLgI.js +6 -0
- package/number-E0x3H9cL.cjs +1 -0
- package/package.json +4 -4
- package/progress-bar/index.cjs +1 -0
- package/progress-bar/index.js +4 -0
- package/radio/index.cjs +1 -0
- package/radio/index.js +5 -0
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -0
- package/search-field/index.cjs +1 -0
- package/search-field/index.js +4 -0
- package/select/HiddenMultiSelect.d.ts +5 -4
- package/select/MultiSelectValueTag.d.ts +11 -0
- package/select/Select.d.ts +2 -77
- package/select/SelectFieldError.d.ts +8 -0
- package/select/SelectListBox.d.ts +4 -3
- package/select/SelectTrigger.d.ts +10 -0
- package/select/index.cjs +1 -0
- package/select/index.d.ts +1 -0
- package/select/index.js +4 -0
- package/select/types.d.ts +188 -0
- package/select/useMultiSelect.d.ts +4 -21
- package/select/useMultiSelectListState.d.ts +3 -15
- package/select/useMultiSelectState.d.ts +3 -19
- package/skeleton/Skeleton.d.ts +5 -0
- package/skeleton/index.cjs +1 -0
- package/skeleton/index.js +4 -0
- package/spinner/index.cjs +1 -0
- package/spinner/index.js +4 -0
- package/square-arrow-out-up-right-BCAO2eJs.cjs +6 -0
- package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
- package/table/Table.d.ts +7 -1
- package/table/index.cjs +1 -0
- package/table/index.js +9 -0
- package/tabs/index.cjs +1 -0
- package/tabs/index.js +4 -0
- package/tag/index.cjs +1 -0
- package/tag/index.js +5 -0
- package/text/index.cjs +1 -0
- package/text/index.js +4 -0
- package/textfield/index.cjs +1 -0
- package/textfield/index.js +7 -0
- package/theme/index.cjs +1 -0
- package/theme/index.d.ts +4 -0
- package/{theme.js → theme/index.js} +2 -2
- package/theme/tokens.d.ts +10 -0
- package/toast/index.cjs +1 -0
- package/toast/index.js +9 -0
- package/toggle-button/index.cjs +1 -0
- package/toggle-button/index.js +5 -0
- package/tokens-p6pg1Cea.cjs +1 -0
- package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
- package/tooltip/index.cjs +1 -0
- package/tooltip/index.js +5 -0
- package/triangle-alert-C0lvfCYH.cjs +6 -0
- package/triangle-alert-wxyxspAl.js +21 -0
- package/useButton-B1Fa-6qE.cjs +1 -0
- package/useButton-C-Lq7CNY.js +47 -0
- package/useCollator-C_ozeWLo.cjs +1 -0
- package/useCollator-CgZcHC8N.js +11 -0
- package/useControlledState-D0L6S_5r.cjs +1 -0
- package/useControlledState-u436Wbp1.js +30 -0
- package/useDateFormatter-C53Uxdli.js +1571 -0
- package/useDateFormatter-g2maMTGH.cjs +1 -0
- package/useDescription-CVKhFa3c.js +32 -0
- package/useDescription-DmQYSEES.cjs +1 -0
- package/useEvent-CjkbBniY.cjs +1 -0
- package/useEvent-Cyd2ZL0c.js +21 -0
- package/useField-B1RU0GKs.cjs +1 -0
- package/useField-BPMAlIbU.js +35 -0
- package/useFilter-ChIbnALW.js +35 -0
- package/useFilter-CtIwF2qW.cjs +1 -0
- package/useFocusRing-BDGH3lpn.js +82 -0
- package/useFocusRing-CbImDrwF.cjs +1 -0
- package/useFocusable-CaedRTpB.js +74 -0
- package/useFocusable-CuPQ7Cm5.cjs +1 -0
- package/useFormValidation-ClximP89.cjs +1 -0
- package/useFormValidation-R8hQIjWP.js +215 -0
- package/useHasTabbableChild-DgphNvnk.cjs +1 -0
- package/useHasTabbableChild-DsD9AJwE.js +34 -0
- package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
- package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
- package/useHover-_mv5J4_q.cjs +1 -0
- package/useHover-qRAon4nS.js +490 -0
- package/useLabel-DDdAJ1JO.js +23 -0
- package/useLabel-m_S5xkHy.cjs +1 -0
- package/useLabels-BLOfc6Y-.cjs +1 -0
- package/useLabels-BZjoZA1Z.js +17 -0
- package/useListState-Ca2-uZMO.cjs +1 -0
- package/useListState-DFQ9d-uE.js +132 -0
- package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
- package/useObserveElement-BdI4zgd7.js +27 -0
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/usePress-BFa6cT9o.cjs +7 -0
- package/usePress-CUJ3pMOw.js +542 -0
- package/useSingleSelectListState-C-nB8cug.js +34 -0
- package/useSingleSelectListState-MGNxUTum.cjs +1 -0
- package/useTextField-5OZQPyOW.js +86 -0
- package/useTextField-CtUDWsUl.cjs +1 -0
- package/useToggleState-Bz5rAf4C.js +18 -0
- package/useToggleState-DoIkSQdj.cjs +1 -0
- package/useUpdateEffect-CCDx8D4X.js +13 -0
- package/useUpdateEffect-sk3kiVGz.cjs +1 -0
- package/utils/test.d.ts +1 -1
- package/utils-BNtZbAib.cjs +1 -0
- package/utils-HNTsIwux.js +308 -0
- package/x-CvxiAZTW.cjs +6 -0
- package/x-JK7i-TQC.js +14 -0
- package/flex/Flex.d.ts +0 -17
- package/flex/FlexItem.d.ts +0 -15
- package/flex/index.d.ts +0 -2
- package/index.css +0 -1
- package/select/SelectPopover.d.ts +0 -10
- package/theme.cjs +0 -1
- package/tokens-COoF1t17.cjs +0 -1
- /package/{global.css → assets/global.css} +0 -0
- /package/{select → list-box}/SectionedListLayout.d.ts +0 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { MenuTriggerState } from '@react-stately/menu';
|
|
2
|
+
import { FormValidationState } from '@react-stately/form';
|
|
3
|
+
import { OverlayTriggerProps } from '@react-types/overlays';
|
|
4
|
+
import { ListState } from '@react-stately/list';
|
|
5
|
+
import { AsyncLoadable, CollectionBase, FocusableProps, InputBase, LabelableProps, MultipleSelection, TextInputBase, Validation, Key, Node, CollectionChildren } from '@react-types/shared';
|
|
6
|
+
import { HTMLAttributes } from 'react';
|
|
7
|
+
import { AriaListBoxOptions } from 'react-aria';
|
|
8
|
+
import { AriaButtonProps } from '@react-types/button';
|
|
9
|
+
import { AriaSelectProps } from '@react-types/select';
|
|
10
|
+
import { Size } from '../common/types';
|
|
11
|
+
import { ListBoxItemElement, ListBoxOption, ListBoxSectionElement } from '../list-box/';
|
|
12
|
+
/**
|
|
13
|
+
* Props used for setting up the list state
|
|
14
|
+
*/
|
|
15
|
+
export interface MultiSelectListProps<T extends ListBoxOption> extends CollectionBase<T>, MultipleSelection {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The state of the select list
|
|
19
|
+
*/
|
|
20
|
+
export interface MultiSelectListState<T extends ListBoxOption> extends ListState<T> {
|
|
21
|
+
/**
|
|
22
|
+
* The keys for the currently selected items.
|
|
23
|
+
*/
|
|
24
|
+
selectedKeys: Set<Key>;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the selected keys.
|
|
27
|
+
*/
|
|
28
|
+
setSelectedKeys(keys: Iterable<Key>): void;
|
|
29
|
+
/**
|
|
30
|
+
* The value of the currently selected items.
|
|
31
|
+
*/
|
|
32
|
+
selectedItems: Node<T>[] | null;
|
|
33
|
+
/**
|
|
34
|
+
* The type of selection.
|
|
35
|
+
*/
|
|
36
|
+
selectionMode: MultiSelectListProps<T>['selectionMode'];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Props used for setting up the select component state
|
|
40
|
+
*/
|
|
41
|
+
export interface MultiSelectStateProps<T extends ListBoxOption> extends MultiSelectListProps<T>, AsyncLoadable, FocusableProps, LabelableProps, Omit<InputBase, 'isReadOnly'>, OverlayTriggerProps, TextInputBase, Validation {
|
|
42
|
+
/**
|
|
43
|
+
* Whether the menu should automatically flip direction when space is limited.
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
shouldFlip?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The state of the select component
|
|
50
|
+
*/
|
|
51
|
+
export interface MultiSelectState<T extends ListBoxOption> extends MultiSelectListState<T>, MenuTriggerState, FormValidationState {
|
|
52
|
+
/**
|
|
53
|
+
* Whether the select is currently focused.
|
|
54
|
+
*/
|
|
55
|
+
isFocused: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Sets whether the select is focused.
|
|
58
|
+
*/
|
|
59
|
+
setFocused(isFocused: boolean): void;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Props for setting up the select component parts
|
|
63
|
+
*/
|
|
64
|
+
export interface MultiSelectProps<T extends ListBoxOption> extends Omit<AriaSelectProps<T>, 'onSelectionChange'> {
|
|
65
|
+
/**
|
|
66
|
+
* Wheter to allow an empty selection or not
|
|
67
|
+
*/
|
|
68
|
+
disallowEmptySelection?: boolean;
|
|
69
|
+
onSelectionChange?: MultiSelectStateProps<T>['onSelectionChange'];
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* DOM attributes for rendering the parts of the Select component
|
|
73
|
+
*/
|
|
74
|
+
export interface MultiSelectDOMProps<T extends ListBoxOption> {
|
|
75
|
+
/**
|
|
76
|
+
* Props for the label element.
|
|
77
|
+
*/
|
|
78
|
+
labelProps: HTMLAttributes<HTMLElement>;
|
|
79
|
+
/**
|
|
80
|
+
* Props for the popup trigger element.
|
|
81
|
+
*/
|
|
82
|
+
triggerProps: AriaButtonProps;
|
|
83
|
+
/**
|
|
84
|
+
* Props for the element representing the selected value.
|
|
85
|
+
*/
|
|
86
|
+
valueProps: HTMLAttributes<HTMLElement>;
|
|
87
|
+
/**
|
|
88
|
+
* Props for the popup.
|
|
89
|
+
*/
|
|
90
|
+
menuProps: AriaListBoxOptions<T>;
|
|
91
|
+
}
|
|
92
|
+
export type SelectionMode = 'single' | 'multiple';
|
|
93
|
+
export interface SelectProps extends MultiSelectStateProps<ListBoxOption> {
|
|
94
|
+
/**
|
|
95
|
+
* Whether the element should receive focus on render.
|
|
96
|
+
*/
|
|
97
|
+
autoFocus?: boolean;
|
|
98
|
+
children: CollectionChildren<ListBoxOption>;
|
|
99
|
+
/**
|
|
100
|
+
* Sets the CSS [`className`](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element.
|
|
101
|
+
*/
|
|
102
|
+
className?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the default open state of the field (uncontrolled).
|
|
105
|
+
*/
|
|
106
|
+
defaultOpen?: boolean;
|
|
107
|
+
excludeFromTabOrder?: boolean;
|
|
108
|
+
items: ListBoxOption[];
|
|
109
|
+
/**
|
|
110
|
+
* Whether the field can be emptied.
|
|
111
|
+
* @default true
|
|
112
|
+
*/
|
|
113
|
+
isClearable?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the field is disabled.
|
|
116
|
+
*/
|
|
117
|
+
isDisabled?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Whether to show a button to select all items.
|
|
120
|
+
*/
|
|
121
|
+
isSelectableAll?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Sets the open state of the field (controlled).
|
|
124
|
+
*/
|
|
125
|
+
isOpen?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The content to display as the label.
|
|
128
|
+
*/
|
|
129
|
+
label: string;
|
|
130
|
+
/**
|
|
131
|
+
* Optional description
|
|
132
|
+
*/
|
|
133
|
+
description?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Placeholder value
|
|
136
|
+
*/
|
|
137
|
+
placeholder?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Show selected items as tags below select
|
|
140
|
+
*/
|
|
141
|
+
showTags?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* The type of selection that is allowed in the collection.
|
|
144
|
+
* @default 'single'
|
|
145
|
+
*/
|
|
146
|
+
selectionMode?: SelectionMode;
|
|
147
|
+
/**
|
|
148
|
+
* The selection is valid or not
|
|
149
|
+
*/
|
|
150
|
+
isInvalid?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Error message to be displayed in case of invalid state
|
|
153
|
+
*/
|
|
154
|
+
errorMessage?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the field is required.
|
|
157
|
+
*/
|
|
158
|
+
isRequired?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Name of the field, for uncontrolled use
|
|
161
|
+
*/
|
|
162
|
+
name?: string;
|
|
163
|
+
/**
|
|
164
|
+
* The position of the error message
|
|
165
|
+
* @default "top"
|
|
166
|
+
*/
|
|
167
|
+
errorPosition?: 'top' | 'bottom';
|
|
168
|
+
/** Component size (large: height 48px, medium: height 40px)
|
|
169
|
+
* @default 'large'
|
|
170
|
+
*/
|
|
171
|
+
size?: Size;
|
|
172
|
+
}
|
|
173
|
+
export type SelectContainerProps = Omit<SelectProps, 'children' | 'items'> & {
|
|
174
|
+
/** Item objects in the collection. */
|
|
175
|
+
options: ListBoxOption[];
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated since v10.1.0 please use `ListBoxOption` intead
|
|
179
|
+
*/
|
|
180
|
+
export type Option = ListBoxOption;
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated since v10.1.0 please use `ListBoxItemElement` intead
|
|
183
|
+
*/
|
|
184
|
+
export type OptionItem = ListBoxItemElement;
|
|
185
|
+
/**
|
|
186
|
+
* @deprecated since v10.1.0 please use `ListBoxSectionElement` intead
|
|
187
|
+
*/
|
|
188
|
+
export type OptionSection = ListBoxSectionElement;
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { AriaSelectProps } from '@react-types/select';
|
|
6
|
-
type MultiSelectProps<T> = Omit<AriaSelectProps<T>, 'onSelectionChange'> & {
|
|
7
|
-
disallowEmptySelection?: boolean;
|
|
8
|
-
onSelectionChange?: MultiSelectStateProps<T>['onSelectionChange'];
|
|
9
|
-
};
|
|
10
|
-
interface MultiSelectAria<T> {
|
|
11
|
-
/** Props for the label element. */
|
|
12
|
-
labelProps: HTMLAttributes<HTMLElement>;
|
|
13
|
-
/** Props for the popup trigger element. */
|
|
14
|
-
triggerProps: AriaButtonProps;
|
|
15
|
-
/** Props for the element representing the selected value. */
|
|
16
|
-
valueProps: HTMLAttributes<HTMLElement>;
|
|
17
|
-
/** Props for the popup. */
|
|
18
|
-
menuProps: AriaListBoxOptions<T>;
|
|
19
|
-
}
|
|
20
|
-
export declare function useMultiSelect<T>(props: MultiSelectProps<T>, state: MultiSelectState<T>, ref: RefObject<HTMLElement>): MultiSelectAria<T>;
|
|
21
|
-
export {};
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { MultiSelectDOMProps, MultiSelectProps, MultiSelectState } from './types';
|
|
3
|
+
import { ListBoxOption } from '../list-box';
|
|
4
|
+
export declare function useMultiSelect<T extends ListBoxOption>(props: MultiSelectProps<T>, state: MultiSelectState<T>, ref: RefObject<HTMLElement>): MultiSelectDOMProps<T>;
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
}
|
|
5
|
-
export interface MultiSelectListState<T> extends ListState<T> {
|
|
6
|
-
/** The keys for the currently selected items. */
|
|
7
|
-
selectedKeys: Set<Key>;
|
|
8
|
-
/** Sets the selected keys. */
|
|
9
|
-
setSelectedKeys(keys: Iterable<Key>): void;
|
|
10
|
-
/** The value of the currently selected items. */
|
|
11
|
-
selectedItems: Node<T>[] | null;
|
|
12
|
-
/** The type of selection. */
|
|
13
|
-
selectionMode: MultipleSelection['selectionMode'];
|
|
14
|
-
}
|
|
15
|
-
export declare function useMultiSelectListState<T extends object>(props: MultiSelectListProps<T>): MultiSelectListState<T>;
|
|
1
|
+
import { MultiSelectListProps, MultiSelectListState } from './types';
|
|
2
|
+
import { ListBoxOption } from '../list-box';
|
|
3
|
+
export declare function useMultiSelectListState<T extends ListBoxOption>(props: MultiSelectListProps<T>): MultiSelectListState<T>;
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { AsyncLoadable, CollectionBase, FocusableProps, InputBase, LabelableProps, MultipleSelection, TextInputBase, Validation } from '@react-types/shared';
|
|
5
|
-
import { FormValidationState } from '@react-stately/form';
|
|
6
|
-
export interface MultiSelectProps<T> extends CollectionBase<T>, AsyncLoadable, Omit<InputBase, 'isReadOnly'>, Validation, LabelableProps, TextInputBase, MultipleSelection, FocusableProps, OverlayTriggerProps {
|
|
7
|
-
/**
|
|
8
|
-
* Whether the menu should automatically flip direction when space is limited.
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
shouldFlip?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface MultiSelectState<T> extends MultiSelectListState<T>, MenuTriggerState, FormValidationState {
|
|
14
|
-
/** Whether the select is currently focused. */
|
|
15
|
-
isFocused: boolean;
|
|
16
|
-
/** Sets whether the select is focused. */
|
|
17
|
-
setFocused(isFocused: boolean): void;
|
|
18
|
-
}
|
|
19
|
-
export declare function useMultiSelectState<T extends object>(props: MultiSelectProps<T>): MultiSelectState<T>;
|
|
1
|
+
import { MultiSelectState, MultiSelectStateProps } from './types';
|
|
2
|
+
import { ListBoxOption } from '../list-box';
|
|
3
|
+
export declare function useMultiSelectState<T extends ListBoxOption>(props: MultiSelectStateProps<T>): MultiSelectState<T>;
|
package/skeleton/Skeleton.d.ts
CHANGED
|
@@ -17,5 +17,10 @@ export interface SkeletonProps extends React.DetailedHTMLProps<React.HTMLAttribu
|
|
|
17
17
|
* @default true
|
|
18
18
|
*/
|
|
19
19
|
isAnimated?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* If skeleton is on a layer01 background light-dark( #f2f2f2, #262626)
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
isOnLayer01?: boolean;
|
|
20
25
|
}
|
|
21
26
|
export declare const Skeleton: React.FC<SkeletonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Skeleton-BAwbfKBW.cjs");exports.Skeleton=e.Skeleton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Spinner-DAJtfxqJ.cjs");exports.Spinner=e.Spinner;
|
package/spinner/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const t=require("./createLucideIcon-DAY4oS-S.cjs");/**
|
|
2
|
+
* @license lucide-react v0.453.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=t.createLucideIcon("SquareArrowOutUpRight",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]);exports.SquareArrowOutUpRight=e;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c as t } from "./createLucideIcon-DeWljiyi.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.453.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const r = t("SquareArrowOutUpRight", [
|
|
9
|
+
["path", { d: "M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6", key: "y09zxi" }],
|
|
10
|
+
["path", { d: "m21 3-9 9", key: "mpx6sq" }],
|
|
11
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }]
|
|
12
|
+
]);
|
|
13
|
+
export {
|
|
14
|
+
r as S
|
|
15
|
+
};
|
package/table/Table.d.ts
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { RowProps, TableHeaderProps, ColumnProps, TableProps as AriaTableProps, CellProps, TableBody } from 'react-aria-components';
|
|
2
|
+
import { Size } from '../common/types';
|
|
2
3
|
export interface TableProps extends AriaTableProps {
|
|
3
4
|
/**
|
|
4
5
|
* A more compact version of the table
|
|
6
|
+
* @deprecated since v10.1.1, please use the `size` prop instead.
|
|
5
7
|
*/
|
|
6
8
|
narrow?: boolean;
|
|
9
|
+
/** Row height (large: 48px, medium: 40px)
|
|
10
|
+
* @default 'large'
|
|
11
|
+
* */
|
|
12
|
+
size?: Size;
|
|
7
13
|
/**
|
|
8
14
|
* Alternating colors for rows
|
|
9
15
|
*/
|
|
10
16
|
striped?: boolean;
|
|
11
17
|
}
|
|
12
|
-
export declare const Table: ({ narrow, striped, className, ...rest }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const Table: ({ narrow, size, striped, className, ...rest }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
19
|
export declare const TableHeader: <T extends object>({ columns, children, }: TableHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
14
20
|
export declare const Row: <T extends object>({ id, columns, children, ...rest }: RowProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
21
|
export declare const Column: ({ children, ...rest }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
|
package/table/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Table-D9vNc_y-.cjs");exports.Cell=e.Cell;exports.Column=e.Column;exports.Row=e.Row;exports.Table=e.Table;exports.TableBody=e.$1910c06f0ca9905e$export$76ccd210b9029917;exports.TableHeader=e.TableHeader;
|
package/table/index.js
ADDED
package/tabs/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tabs-Dtcl2oK2.cjs");exports.Tabs=e.Tabs;
|
package/tabs/index.js
ADDED
package/tag/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tag-CVFkzg3s.cjs");exports.Tag=e.Tag;exports.TagGroup=e.TagGroup;
|
package/tag/index.js
ADDED
package/text/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Text-3MNwRMpI.cjs");exports.Text=e.Text;
|
package/text/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-cVyGBRbL.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
|
package/theme/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tokens-p6pg1Cea.cjs"),s={...e.tokens};exports.baseColors=e.baseColors;exports.breakpoints=e.breakpoints;exports.semantic=e.semantic;exports.spacing=e.spacing;exports.states=e.states;exports.transitions=e.transitions;exports.typography=e.typography;exports.windowSizes=e.windowSizes;exports.zIndex=e.zIndex;exports.theme=s;
|
package/theme/index.d.ts
CHANGED
|
@@ -124,11 +124,13 @@ export declare const theme: {
|
|
|
124
124
|
fast: string;
|
|
125
125
|
};
|
|
126
126
|
windowSizes: {
|
|
127
|
+
sm: number;
|
|
127
128
|
md: number;
|
|
128
129
|
lg: number;
|
|
129
130
|
xl: number;
|
|
130
131
|
};
|
|
131
132
|
breakpoints: {
|
|
133
|
+
xs: string;
|
|
132
134
|
sm: string;
|
|
133
135
|
md: string;
|
|
134
136
|
lg: string;
|
|
@@ -169,6 +171,8 @@ export declare const theme: {
|
|
|
169
171
|
fieldActive02: string;
|
|
170
172
|
fieldDisabled: string;
|
|
171
173
|
fieldSkeleton: string;
|
|
174
|
+
skeleton01: string;
|
|
175
|
+
skeleton02: string;
|
|
172
176
|
iconPrimary: string;
|
|
173
177
|
iconSecondary: string;
|
|
174
178
|
iconTertiary: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as s } from "
|
|
2
|
-
import { b as n,
|
|
1
|
+
import { t as s } from "../tokens-xp-7KMK7.js";
|
|
2
|
+
import { b as n, e as r, f as i, s as p, c as m, d as c, a as b, w as d, z as f } from "../tokens-xp-7KMK7.js";
|
|
3
3
|
const t = { ...s };
|
|
4
4
|
export {
|
|
5
5
|
n as baseColors,
|
package/theme/tokens.d.ts
CHANGED
|
@@ -122,11 +122,13 @@ export declare const transitions: {
|
|
|
122
122
|
fast: string;
|
|
123
123
|
};
|
|
124
124
|
export declare const windowSizes: {
|
|
125
|
+
sm: number;
|
|
125
126
|
md: number;
|
|
126
127
|
lg: number;
|
|
127
128
|
xl: number;
|
|
128
129
|
};
|
|
129
130
|
export declare const breakpoints: {
|
|
131
|
+
xs: string;
|
|
130
132
|
sm: string;
|
|
131
133
|
md: string;
|
|
132
134
|
lg: string;
|
|
@@ -166,7 +168,12 @@ export declare const semantic: {
|
|
|
166
168
|
fieldHover02: string;
|
|
167
169
|
fieldActive02: string;
|
|
168
170
|
fieldDisabled: string;
|
|
171
|
+
/**
|
|
172
|
+
* @deprecated since v10.2.0, please use the `skeleton01` instead.
|
|
173
|
+
*/
|
|
169
174
|
fieldSkeleton: string;
|
|
175
|
+
skeleton01: string;
|
|
176
|
+
skeleton02: string;
|
|
170
177
|
iconPrimary: string;
|
|
171
178
|
iconSecondary: string;
|
|
172
179
|
iconTertiary: string;
|
|
@@ -211,6 +218,9 @@ export declare const semantic: {
|
|
|
211
218
|
buttonBackgroundDangerHover: string;
|
|
212
219
|
buttonBackgroundDangerActive: string;
|
|
213
220
|
buttonBackgroundDisabled: string;
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated since v10.2.0, please use the `skeleton01` instead.
|
|
223
|
+
*/
|
|
214
224
|
buttonBackgroundSkeleton: string;
|
|
215
225
|
buttonBorderSecondary: string;
|
|
216
226
|
logoPrimary: string;
|
package/toast/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Toast-DrkOGy4d.cjs");exports.GlobalToastRegion=o.GlobalToastRegion;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.ToastRegion=o.ToastRegion;exports.toastQueue=o.toastQueue;exports.useToastState=o.useToastState;
|
package/toast/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ToggleButtonGroup-BuU_6dYe.cjs");exports.ToggleButton=o.ToggleButton;exports.ToggleButtonGroup=o.ToggleButtonGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r={black:"#000000",white:"#ffffff",blackHover:"#0d0d0d",whiteHover:"#e6e6e6",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray110:"#737373",gray120:"#666666",gray130:"#5d5d5d",gray140:"#525252",gray150:"#474747",gray160:"#383838",gray170:"#333333",gray180:"#262626",gray190:"#212121",gray200:"#171717",blue10:"#eaf2f6",blue20:"#d5e5ed",blue40:"#abcbdb",blue50:"#94BCD1",blue60:"#82b0c9",blue70:"#6CA3C0",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue110:"#2C7399",blue120:"#29698C",blue130:"#25607f",blue150:"#143c50",purple80:"#b46ab4",purple110:"#954b95",red100:"#b90835",signalBlue10:"#eaf2f6",signalBlue100:"#0066cc",signalGreen20:"#d5f2d9",signalGreen30:"#bae5c5",signalGreen100:"#008d3c",signalYellow10:"#fff8e1",signalYellow100:"#fdb813",signalRed10:"#ffefef",signalRed20:"#ffdfdf",signalRed30:"#fcc8c8",signalRed40:"#f9b0b0",signalRed50:"#f69999",signalRed60:"#f38181",signalRed70:"#ef6a6a",signalRed80:"#eb4e4e",signalRed90:"#e93b3b",signalRed100:"#e62323",signalRed110:"#d12020",signalRed120:"#bc1d1d",signalRed130:"#a71919",signalRed140:"#921616",signalRed150:"#7d1313",signalRed160:"#691010",signalRed170:"#540d0d",signalRed180:"#3f0a0a",signalRed190:"#2a0606",signalRed200:"#150303"},a={fontFamily:'"Inter", sans-serif',lineHeight10:1,lineHeight20:1.125,lineHeight30:1.25,lineHeight40:1.375,lineHeight50:1.5,lineHeight60:1.75,lineHeight70:2,lineHeight80:2.25,lineHeight90:2.5,lineHeight100:2.75,fontSize10:"0.75rem",fontSize20:"0.875rem",fontSize30:"1rem",fontSize40:"1.125rem",fontSize50:"1.25rem",fontSize60:"1.5rem",fontSize70:"1.75rem",fontSize80:"2rem",fontSize90:"2.25rem",fontSize100:"2.625rem",weightThin:100,weightExtraLight:200,weightLight:300,weightRegular:400,weightMedium:500,weightSemiBold:600,weightBold:700,weightExtraBold:800,weightBlack:900},g={10:"0.125rem",20:"0.25rem",30:"0.5rem",40:"0.75rem",50:"1rem",60:"1.5rem",70:"2rem",80:"2.5rem",90:"3rem",100:"4rem",110:"5rem",120:"6rem"},i={focus:"0 0 0 2px light-dark(white, black), 0 0 0 4px light-dark(black, white)"},l={slow:"500ms",normal:"300ms",fast:"250ms"},e={sm:480,md:768,lg:1024,xl:1280},t={xs:`(max-width: ${e.sm-1}px)`,sm:`(min-width: ${e.sm}px)`,md:`(min-width: ${e.md}px)`,lg:`(min-width: ${e.lg}px)`,xl:`(min-width: ${e.xl}px)`,forcedColorsMode:"(forced-colors: active)",darkMode:"(prefers-color-scheme: dark)",prefersReducedMotion:"(prefers-reduced-motion: reduced)"},d={background:`light-dark(${r.white}, ${r.gray200})`,backgroundHover:`light-dark(${r.whiteHover}, ${r.gray190})`,backgroundInverse:`light-dark(${r.gray200}, ${r.gray10})`,layer01:`light-dark(${r.gray10}, ${r.gray180})`,layerHover01:`light-dark(${r.gray20}, ${r.gray170})`,layerSelected01:`light-dark(${r.gray30}, ${r.gray160})`,layerSelectedHover01:`light-dark(${r.gray40}, ${r.gray150})`,layer02:`light-dark(${r.white}, ${r.gray160})`,layerHover02:`light-dark(${r.whiteHover}, ${r.gray150})`,layerSelected02:`light-dark(${r.gray30}, ${r.gray140})`,layerSelectedHover02:`light-dark(${r.gray40}, ${r.gray130})`,layerAccent01:`light-dark(${r.gray30}, ${r.gray160})`,layerAccentHover01:`light-dark(${r.gray40}, ${r.gray150})`,layerAccentSelected01:`light-dark(${r.gray50}, ${r.gray140})`,layerAccent02:`light-dark(${r.gray10}, ${r.gray180})`,layerAccentHover02:`light-dark(${r.gray20}, ${r.gray170})`,layerAccentSelected02:`light-dark(${r.gray30}, ${r.gray160})`,brandPrimary:`light-dark(${r.red100}, ${r.red100})`,borderPrimary:`light-dark(${r.gray200}, ${r.gray10})`,borderSecondary:`light-dark(${r.gray110}, ${r.gray90})`,borderSubtle:`light-dark(${r.gray50}, ${r.gray160})`,borderTertiary:`light-dark(${r.blue150}, ${r.blue100})`,borderDisabled:`light-dark(${r.gray50}, ${r.gray140})`,field01:`light-dark(${r.gray10}, ${r.gray180})`,fieldHover01:`light-dark(${r.gray20}, ${r.gray170})`,fieldActive01:`light-dark(${r.gray30}, ${r.gray160})`,field02:`light-dark(${r.white}, ${r.gray160})`,fieldHover02:`light-dark(${r.whiteHover}, ${r.gray150})`,fieldActive02:`light-dark(${r.gray30}, ${r.gray140})`,fieldDisabled:`light-dark(${r.gray10}, ${r.gray180})`,fieldSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,skeleton01:`light-dark(${r.gray10}, ${r.gray180})`,skeleton02:`light-dark(${r.gray30}, ${r.gray160})`,iconPrimary:`light-dark(${r.gray200}, ${r.gray10})`,iconSecondary:`light-dark(${r.gray140}, ${r.gray70})`,iconTertiary:`light-dark(${r.blue150}, ${r.gray10})`,iconInverse:`light-dark(${r.white}, ${r.gray200})`,iconOnColor:`light-dark(${r.white}, ${r.white})`,iconDisabled:`light-dark(${r.gray50}, ${r.gray140})`,iconSuccess:`light-dark(${r.signalGreen100}, ${r.signalGreen100})`,iconInfo:`light-dark(${r.signalBlue100}, ${r.signalBlue100})`,iconWarning:`light-dark(${r.signalRed100}, ${r.signalRed100})`,iconImportant:`light-dark(${r.signalYellow100}, ${r.signalYellow100})`,linkEnabled:`light-dark(${r.blue120}, ${r.blue70})`,linkHover:`light-dark(${r.blue150}, ${r.blue50})`,linkPressed:`light-dark(${r.gray200}, ${r.blue40})`,linkVisited:`light-dark(${r.purple110}, ${r.purple80})`,supportBorderSuccess:`light-dark(${r.signalGreen100}, ${r.signalGreen100})`,supportBorderInfo:`light-dark(${r.signalBlue100}, ${r.signalBlue100})`,supportBorderImportant:`light-dark(${r.signalYellow100}, ${r.signalYellow100})`,supportBorderWarning:`light-dark(${r.signalRed100}, ${r.signalRed100})`,supportBackgroundSuccess:`light-dark(${r.signalGreen20}, ${r.gray180})`,supportBackgroundSuccessHover:`light-dark(${r.signalGreen30}, ${r.gray170})`,supportBackgroundInfo:`light-dark(${r.signalBlue10}, ${r.gray180})`,supportBackgroundImportant:`light-dark(${r.signalYellow10}, ${r.gray180})`,supportBackgroundWarning:`light-dark(${r.signalRed20}, ${r.gray180})`,supportBackgroundWarningHover:`light-dark(${r.signalRed30}, ${r.gray170})`,textPrimary:`light-dark(${r.gray200}, ${r.gray10})`,textSecondary:`light-dark(${r.gray140}, ${r.gray70})`,textTertiary:`light-dark(${r.blue150}, ${r.gray10})`,textOnColor:`light-dark(${r.white}, ${r.white})`,textInverse:`light-dark(${r.gray10}, ${r.gray200})`,textDisabled:`light-dark(${r.gray50}, ${r.gray140})`,textWarning:`light-dark(${r.signalRed100}, ${r.signalRed80})`,textPlaceholder:`light-dark(${r.gray70}, ${r.gray140})`,buttonBackgroundPrimary:`light-dark(${r.blue150}, ${r.blue100})`,buttonBackgroundPrimaryHover:`light-dark(${r.blue130}, ${r.blue130})`,buttonBackgroundPrimaryActive:`light-dark(${r.blue100}, ${r.blue150})`,buttonBackgroundSecondary:`light-dark(${r.white}, ${r.gray200})`,buttonBackgroundSecondaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundSecondaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundTertiaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundTertiaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundDanger:`light-dark(${r.signalRed100}, ${r.signalRed100})`,buttonBackgroundDangerHover:`light-dark(${r.signalRed120}, ${r.signalRed120})`,buttonBackgroundDangerActive:`light-dark(${r.signalRed150}, ${r.signalRed150})`,buttonBackgroundDisabled:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,buttonBorderSecondary:`light-dark(${r.blue150}, ${r.gray10})`,logoPrimary:`light-dark(${r.red100}, ${r.white})`,menuItemBackgroundHover:`light-dark(${r.gray20}, ${r.gray190})`,menuItemBackgroundSelected:`light-dark(${r.gray10}, ${r.gray180})`},n={base:1,above:10,modal:1e3,toast:1100,skipToContent:1200},o=Object.freeze(Object.defineProperty({__proto__:null,baseColors:r,breakpoints:t,semantic:d,spacing:g,states:i,transitions:l,typography:a,windowSizes:e,zIndex:n},Symbol.toStringTag,{value:"Module"}));exports.baseColors=r;exports.breakpoints=t;exports.semantic=d;exports.spacing=g;exports.states=i;exports.tokens=o;exports.transitions=l;exports.typography=a;exports.windowSizes=e;exports.zIndex=n;
|
|
@@ -149,11 +149,13 @@ const r = {
|
|
|
149
149
|
normal: "300ms",
|
|
150
150
|
fast: "250ms"
|
|
151
151
|
}, e = {
|
|
152
|
+
sm: 480,
|
|
152
153
|
md: 768,
|
|
153
|
-
lg:
|
|
154
|
-
xl:
|
|
154
|
+
lg: 1024,
|
|
155
|
+
xl: 1280
|
|
155
156
|
}, t = {
|
|
156
|
-
|
|
157
|
+
xs: `(max-width: ${e.sm - 1}px)`,
|
|
158
|
+
sm: `(min-width: ${e.sm}px)`,
|
|
157
159
|
md: `(min-width: ${e.md}px)`,
|
|
158
160
|
lg: `(min-width: ${e.lg}px)`,
|
|
159
161
|
xl: `(min-width: ${e.xl}px)`,
|
|
@@ -191,7 +193,12 @@ const r = {
|
|
|
191
193
|
fieldHover02: `light-dark(${r.whiteHover}, ${r.gray150})`,
|
|
192
194
|
fieldActive02: `light-dark(${r.gray30}, ${r.gray140})`,
|
|
193
195
|
fieldDisabled: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated since v10.2.0, please use the `skeleton01` instead.
|
|
198
|
+
*/
|
|
194
199
|
fieldSkeleton: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
200
|
+
skeleton01: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
201
|
+
skeleton02: `light-dark(${r.gray30}, ${r.gray160})`,
|
|
195
202
|
iconPrimary: `light-dark(${r.gray200}, ${r.gray10})`,
|
|
196
203
|
iconSecondary: `light-dark(${r.gray140}, ${r.gray70})`,
|
|
197
204
|
iconTertiary: `light-dark(${r.blue150}, ${r.gray10})`,
|
|
@@ -236,6 +243,9 @@ const r = {
|
|
|
236
243
|
buttonBackgroundDangerHover: `light-dark(${r.signalRed120}, ${r.signalRed120})`,
|
|
237
244
|
buttonBackgroundDangerActive: `light-dark(${r.signalRed150}, ${r.signalRed150})`,
|
|
238
245
|
buttonBackgroundDisabled: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
246
|
+
/**
|
|
247
|
+
* @deprecated since v10.2.0, please use the `skeleton01` instead.
|
|
248
|
+
*/
|
|
239
249
|
buttonBackgroundSkeleton: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
240
250
|
buttonBorderSecondary: `light-dark(${r.blue150}, ${r.gray10})`,
|
|
241
251
|
logoPrimary: `light-dark(${r.red100}, ${r.white})`,
|
|
@@ -262,11 +272,11 @@ const r = {
|
|
|
262
272
|
export {
|
|
263
273
|
a,
|
|
264
274
|
r as b,
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
275
|
+
l as c,
|
|
276
|
+
i as d,
|
|
277
|
+
t as e,
|
|
278
|
+
d as f,
|
|
279
|
+
g as s,
|
|
270
280
|
o as t,
|
|
271
281
|
e as w,
|
|
272
282
|
n as z
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Tooltip-CiWg4zIC.cjs");exports.Tooltip=o.Tooltip;exports.TooltipTrigger=o.TooltipTrigger;
|
package/tooltip/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const e=require("./createLucideIcon-DAY4oS-S.cjs");/**
|
|
2
|
+
* @license lucide-react v0.453.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const t=e.createLucideIcon("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);exports.TriangleAlert=t;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { c as e } from "./createLucideIcon-DeWljiyi.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.453.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = e("TriangleAlert", [
|
|
9
|
+
[
|
|
10
|
+
"path",
|
|
11
|
+
{
|
|
12
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
13
|
+
key: "wmoenq"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
17
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
18
|
+
]);
|
|
19
|
+
export {
|
|
20
|
+
t as T
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./utils-BNtZbAib.cjs"),D=require("./filterDOMProps-BS2lrgFA.cjs"),F=require("./usePress-BFa6cT9o.cjs"),q=require("./useFocusable-CuPQ7Cm5.cjs");function O(e,t){let{elementType:s="button",isDisabled:r,onPress:i,onPressStart:c,onPressEnd:l,onPressUp:u,onPressChange:b,preventFocusOnPress:P,allowFocusWhenDisabled:f,onClick:p,href:$,target:x,rel:h,type:d="button"}=e,a;s==="button"?a={type:d,disabled:r}:a={role:"button",href:s==="a"&&!r?$:void 0,target:s==="a"?x:void 0,type:s==="input"?d:void 0,disabled:s==="input"?r:void 0,"aria-disabled":!r||s==="input"?void 0:r,rel:s==="a"?h:void 0};let{pressProps:g,isPressed:y}=F.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:c,onPressEnd:l,onPressChange:b,onPress:i,onPressUp:u,onClick:p,isDisabled:r,preventFocusOnPress:P,ref:t}),{focusableProps:n}=q.$f645667febf57a63$export$4c014de7c8940b4c(e,t);f&&(n.tabIndex=r?-1:n.tabIndex);let C=o.$3ef42575df84b30b$export$9d1611c77c2fe928(n,g,D.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}));return{isPressed:y,buttonProps:o.$3ef42575df84b30b$export$9d1611c77c2fe928(a,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}exports.$701a24aa0da5b062$export$ea18c227d4417cc3=O;
|