@viasat/beam-react 2.0.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/README.md +273 -0
- package/assets/ActionList.css +1 -0
- package/assets/Alert.css +1 -0
- package/assets/AspectRatio.css +1 -0
- package/assets/Avatar.css +1 -0
- package/assets/Badge.css +1 -0
- package/assets/BadgeDot.css +1 -0
- package/assets/Box.css +1 -0
- package/assets/BreadcrumbsItem.css +1 -0
- package/assets/Button.css +1 -0
- package/assets/Checkbox.css +1 -0
- package/assets/Chip.css +1 -0
- package/assets/ChipGroup.css +1 -0
- package/assets/CloseButton.css +1 -0
- package/assets/Divider.css +1 -0
- package/assets/EmptyState.css +1 -0
- package/assets/Flag.css +1 -0
- package/assets/Icon.css +1 -0
- package/assets/InputChoiceGroup.css +1 -0
- package/assets/Label.css +1 -0
- package/assets/Link.css +1 -0
- package/assets/List.css +1 -0
- package/assets/Logo.css +1 -0
- package/assets/Menu.css +1 -0
- package/assets/NativeSelect.css +1 -0
- package/assets/NavigationItem.css +1 -0
- package/assets/PageHeader.css +1 -0
- package/assets/Pagination.css +1 -0
- package/assets/ProgressBar.css +1 -0
- package/assets/RadioButton.css +1 -0
- package/assets/SpinnerWrap.css +1 -0
- package/assets/StateLayer.css +1 -0
- package/assets/Switch.css +1 -0
- package/assets/Text.css +1 -0
- package/assets/TextArea.css +1 -0
- package/assets/TextField.css +1 -0
- package/assets/Toast.css +1 -0
- package/assets/ToastContainer.css +1 -0
- package/assets/Tooltip.css +1 -0
- package/assets/accordion.css +1 -0
- package/assets/card.css +1 -0
- package/assets/combobox.css +1 -0
- package/assets/dialog.css +1 -0
- package/assets/fileUpload.css +1 -0
- package/assets/floatingui.css +1 -0
- package/assets/form.css +1 -0
- package/assets/header.css +1 -0
- package/assets/index.css +1 -0
- package/assets/pageLayout.css +1 -0
- package/assets/popover.css +1 -0
- package/assets/segmentedControl.css +1 -0
- package/assets/sideNav.css +1 -0
- package/assets/slider.css +1 -0
- package/assets/stepper.css +1 -0
- package/assets/tabs.css +1 -0
- package/chunks/ActionList.Group.Bv9vgU22.js +1 -0
- package/chunks/ActionList.Group.DuNxYNZQ.js +107 -0
- package/chunks/ActionList.Item.D7Rg5iMb.js +1 -0
- package/chunks/ActionList.Item.Dg_KHGsm.js +186 -0
- package/chunks/Avatar.C9tpC3sT.js +180 -0
- package/chunks/Avatar.CKJ80I6h.js +1 -0
- package/chunks/BreadcrumbsItem.BkT8MeqE.js +1 -0
- package/chunks/BreadcrumbsItem.CPJ-ECZa.js +109 -0
- package/chunks/CSSLookup.Cjf6o2Gz.js +106 -0
- package/chunks/CSSLookup.DESAWWRT.js +1 -0
- package/chunks/Check.CR4kqxW9.js +1 -0
- package/chunks/Check.DrrmNVhJ.js +5 -0
- package/chunks/CheckCircleOutline.Bn3mTuUE.js +5 -0
- package/chunks/CheckCircleOutline.iRHrT_Eb.js +1 -0
- package/chunks/ChevronLeftCurved.CX7aH27X.js +5 -0
- package/chunks/ChevronLeftCurved.JKg9pOxN.js +1 -0
- package/chunks/ChevronRightCurved.9hi9Zc8J.js +5 -0
- package/chunks/ChevronRightCurved.CoT-Bqyo.js +1 -0
- package/chunks/Close.B6_m4YZQ.js +5 -0
- package/chunks/Close.DXMVoxHm.js +1 -0
- package/chunks/ErrorOutline.Cb78OesH.js +1 -0
- package/chunks/ErrorOutline._gBx3dtF.js +5 -0
- package/chunks/FloatingUI.context.2kPXcTvi.js +320 -0
- package/chunks/FloatingUI.context.BULqADss.js +1 -0
- package/chunks/InfoOutline.Co5VGOxN.js +5 -0
- package/chunks/InfoOutline.Gr8gkm5N.js +1 -0
- package/chunks/InfoOutlined.C-WIrH0D.js +1 -0
- package/chunks/InfoOutlined.D3_Iy2PA.js +5 -0
- package/chunks/NavigationItem.Dj8FWMjs.js +64 -0
- package/chunks/NavigationItem.PeFGKPy2.js +1 -0
- package/chunks/SpinnerWrap.DI2J26ka.js +180 -0
- package/chunks/SpinnerWrap.Dyuei3Yi.js +1 -0
- package/chunks/ToastContext.BJK1U8nL.js +1 -0
- package/chunks/ToastContext.DzKCvrgk.js +46 -0
- package/chunks/Upload.Dwk6BbNa.js +5 -0
- package/chunks/Upload.jKR_HysC.js +1 -0
- package/chunks/WarningOutlined.B3hTzZPs.js +5 -0
- package/chunks/WarningOutlined.BPePPeyt.js +1 -0
- package/chunks/accordion.module.CoPeAto1.js +1 -0
- package/chunks/accordion.module.D_MgtPh7.js +25 -0
- package/chunks/card.module.DA5t5zn2.js +1 -0
- package/chunks/card.module.DlwBUz0H.js +56 -0
- package/chunks/classNames.DAeKwerT.js +1 -0
- package/chunks/classNames.DNsS4J__.js +18 -0
- package/chunks/combobox.module.DNJ3sGlK.js +27 -0
- package/chunks/combobox.module.XIDBRMf_.js +1 -0
- package/chunks/constants.BBi77pmH.js +56 -0
- package/chunks/constants.hwjHOsvT.js +1 -0
- package/chunks/dialog.module.COfowyPc.js +1 -0
- package/chunks/dialog.module.D6BI3ubv.js +31 -0
- package/chunks/fileUpload.module.CYse7_N5.js +1 -0
- package/chunks/fileUpload.module.Ck0Nfc4j.js +38 -0
- package/chunks/floatingui.module.BcBFebz0.js +10 -0
- package/chunks/floatingui.module.D3Aw_aYe.js +1 -0
- package/chunks/form.context.B1PXIJNq.js +1 -0
- package/chunks/form.context.CNWjF5qA.js +119 -0
- package/chunks/header.module.BuIYSyu4.js +1 -0
- package/chunks/header.module.WpoWPQ08.js +23 -0
- package/chunks/helpers.COm6C5Gf.js +1 -0
- package/chunks/helpers.Wv7n4ip7.js +53 -0
- package/chunks/pageLayout.module.DMI6jywC.js +1 -0
- package/chunks/pageLayout.module.DdHiv8V-.js +10 -0
- package/chunks/pagination.BpxTz0AB.js +1 -0
- package/chunks/pagination.Cx3KTy4R.js +25 -0
- package/chunks/popover.module.C6KFea25.js +11 -0
- package/chunks/popover.module.Dum8SaSU.js +1 -0
- package/chunks/segmentedControl.module.BLAuwbVR.js +32 -0
- package/chunks/segmentedControl.module.BTtkp9Hz.js +1 -0
- package/chunks/sideNav.module.B3wMOMTH.js +1 -0
- package/chunks/sideNav.module.DBN2ryFs.js +56 -0
- package/chunks/slider.module.BW1fy3GU.js +25 -0
- package/chunks/slider.module.Ds7jMW6I.js +1 -0
- package/chunks/stepper.C_I6_cLs.js +13 -0
- package/chunks/stepper.Dv0fTQr3.js +1 -0
- package/chunks/stepper.module.B6DIBv0A.js +1 -0
- package/chunks/stepper.module.BbV81plY.js +28 -0
- package/chunks/tabs.module.B6iC5RD9.js +1 -0
- package/chunks/tabs.module.DIdPGCch.js +42 -0
- package/chunks/tokens.Bgac_JPh.js +1 -0
- package/chunks/tokens.CXaNS8Cf.js +13 -0
- package/chunks/useFormValidator.hook.BtP4A6XY.js +1 -0
- package/chunks/useFormValidator.hook.CSmddwEt.js +171 -0
- package/custom-properties.d.cjs.js +1 -0
- package/custom-properties.d.es.js +1 -0
- package/index.cjs.js +1 -0
- package/index.d.ts +2 -0
- package/index.es.js +159 -0
- package/lib/Accordion/Accordion.cjs.js +1 -0
- package/lib/Accordion/Accordion.d.ts +37 -0
- package/lib/Accordion/Accordion.es.js +92 -0
- package/lib/Accordion/Accordion.figma.d.ts +1 -0
- package/lib/Accordion/AccordionContext.cjs.js +1 -0
- package/lib/Accordion/AccordionContext.d.ts +16 -0
- package/lib/Accordion/AccordionContext.es.js +37 -0
- package/lib/Accordion/AccordionGroup.cjs.js +1 -0
- package/lib/Accordion/AccordionGroup.d.ts +19 -0
- package/lib/Accordion/AccordionGroup.es.js +21 -0
- package/lib/Accordion/AccordionGroup.figma.d.ts +1 -0
- package/lib/Accordion/index.cjs.js +1 -0
- package/lib/Accordion/index.d.ts +2 -0
- package/lib/Accordion/index.es.js +6 -0
- package/lib/ActionList/ActionList.Group.cjs.js +1 -0
- package/lib/ActionList/ActionList.Group.d.ts +40 -0
- package/lib/ActionList/ActionList.Group.es.js +12 -0
- package/lib/ActionList/ActionList.IconButton.cjs.js +1 -0
- package/lib/ActionList/ActionList.IconButton.d.ts +7 -0
- package/lib/ActionList/ActionList.IconButton.es.js +60 -0
- package/lib/ActionList/ActionList.Item.cjs.js +1 -0
- package/lib/ActionList/ActionList.Item.context.cjs.js +1 -0
- package/lib/ActionList/ActionList.Item.context.d.ts +11 -0
- package/lib/ActionList/ActionList.Item.context.es.js +20 -0
- package/lib/ActionList/ActionList.Item.d.ts +61 -0
- package/lib/ActionList/ActionList.Item.es.js +29 -0
- package/lib/ActionList/ActionList.cjs.js +1 -0
- package/lib/ActionList/ActionList.context.cjs.js +1 -0
- package/lib/ActionList/ActionList.context.d.ts +36 -0
- package/lib/ActionList/ActionList.context.es.js +78 -0
- package/lib/ActionList/ActionList.d.ts +51 -0
- package/lib/ActionList/ActionList.es.js +93 -0
- package/lib/ActionList/ActionListIndentationContext.cjs.js +1 -0
- package/lib/ActionList/ActionListIndentationContext.d.ts +13 -0
- package/lib/ActionList/ActionListIndentationContext.es.js +20 -0
- package/lib/ActionList/ActionListSelectionContext.cjs.js +1 -0
- package/lib/ActionList/ActionListSelectionContext.d.ts +10 -0
- package/lib/ActionList/ActionListSelectionContext.es.js +81 -0
- package/lib/ActionList/index.cjs.js +1 -0
- package/lib/ActionList/index.d.ts +1 -0
- package/lib/ActionList/index.es.js +4 -0
- package/lib/ActionList/useActionListChildren.cjs.js +1 -0
- package/lib/ActionList/useActionListChildren.d.ts +13 -0
- package/lib/ActionList/useActionListChildren.es.js +8 -0
- package/lib/Alert/Alert.cjs.js +1 -0
- package/lib/Alert/Alert.d.ts +171 -0
- package/lib/Alert/Alert.es.js +187 -0
- package/lib/Alert/index.cjs.js +1 -0
- package/lib/Alert/index.d.ts +1 -0
- package/lib/Alert/index.es.js +4 -0
- package/lib/Autocomplete/Autocomplete.cjs.js +1 -0
- package/lib/Autocomplete/Autocomplete.d.ts +108 -0
- package/lib/Autocomplete/Autocomplete.es.js +308 -0
- package/lib/Autocomplete/Autocomplete.types.cjs.js +1 -0
- package/lib/Autocomplete/Autocomplete.types.d.ts +24 -0
- package/lib/Autocomplete/Autocomplete.types.es.js +1 -0
- package/lib/Autocomplete/AutocompleteDropdown.cjs.js +1 -0
- package/lib/Autocomplete/AutocompleteDropdown.d.ts +25 -0
- package/lib/Autocomplete/AutocompleteDropdown.es.js +88 -0
- package/lib/Autocomplete/AutocompleteField.cjs.js +1 -0
- package/lib/Autocomplete/AutocompleteField.d.ts +19 -0
- package/lib/Autocomplete/AutocompleteField.es.js +56 -0
- package/lib/Autocomplete/index.cjs.js +1 -0
- package/lib/Autocomplete/index.d.ts +3 -0
- package/lib/Autocomplete/index.es.js +5 -0
- package/lib/Autocomplete/useAutocompleteA11y.cjs.js +1 -0
- package/lib/Autocomplete/useAutocompleteA11y.d.ts +26 -0
- package/lib/Autocomplete/useAutocompleteA11y.es.js +28 -0
- package/lib/Autocomplete/useAutocompleteChipKeyboard.cjs.js +1 -0
- package/lib/Autocomplete/useAutocompleteChipKeyboard.d.ts +39 -0
- package/lib/Autocomplete/useAutocompleteChipKeyboard.es.js +47 -0
- package/lib/Autocomplete/useAutocompleteChips.cjs.js +1 -0
- package/lib/Autocomplete/useAutocompleteChips.d.ts +29 -0
- package/lib/Autocomplete/useAutocompleteChips.es.js +57 -0
- package/lib/Autocomplete/useAutocompleteDropdown.cjs.js +1 -0
- package/lib/Autocomplete/useAutocompleteDropdown.d.ts +57 -0
- package/lib/Autocomplete/useAutocompleteDropdown.es.js +160 -0
- package/lib/Autocomplete/useAutocompleteInteractions.cjs.js +1 -0
- package/lib/Autocomplete/useAutocompleteInteractions.d.ts +20 -0
- package/lib/Autocomplete/useAutocompleteInteractions.es.js +48 -0
- package/lib/Autocomplete/useAutocompleteKeyboardManager.cjs.js +1 -0
- package/lib/Autocomplete/useAutocompleteKeyboardManager.d.ts +37 -0
- package/lib/Autocomplete/useAutocompleteKeyboardManager.es.js +32 -0
- package/lib/Autocomplete/useClearSelection.cjs.js +1 -0
- package/lib/Autocomplete/useClearSelection.d.ts +22 -0
- package/lib/Autocomplete/useClearSelection.es.js +27 -0
- package/lib/Autocomplete/utils/filterOptions.cjs.js +1 -0
- package/lib/Autocomplete/utils/filterOptions.d.ts +3 -0
- package/lib/Autocomplete/utils/filterOptions.es.js +11 -0
- package/lib/Avatar/Avatar.cjs.js +1 -0
- package/lib/Avatar/Avatar.d.ts +45 -0
- package/lib/Avatar/Avatar.es.js +8 -0
- package/lib/Avatar/AvatarGroup.cjs.js +1 -0
- package/lib/Avatar/AvatarGroup.d.ts +29 -0
- package/lib/Avatar/AvatarGroup.es.js +68 -0
- package/lib/Avatar/index.cjs.js +1 -0
- package/lib/Avatar/index.d.ts +4 -0
- package/lib/Avatar/index.es.js +6 -0
- package/lib/Badge/Badge.cjs.js +1 -0
- package/lib/Badge/Badge.d.ts +51 -0
- package/lib/Badge/Badge.es.js +91 -0
- package/lib/Badge/Badge.figma.d.ts +1 -0
- package/lib/Badge/index.cjs.js +1 -0
- package/lib/Badge/index.d.ts +1 -0
- package/lib/Badge/index.es.js +4 -0
- package/lib/BadgeDot/BadgeDot.cjs.js +1 -0
- package/lib/BadgeDot/BadgeDot.d.ts +35 -0
- package/lib/BadgeDot/BadgeDot.es.js +71 -0
- package/lib/BadgeDot/index.cjs.js +1 -0
- package/lib/BadgeDot/index.d.ts +2 -0
- package/lib/BadgeDot/index.es.js +4 -0
- package/lib/Box/Box.cjs.js +1 -0
- package/lib/Box/Box.d.ts +40 -0
- package/lib/Box/Box.es.js +97 -0
- package/lib/Box/index.cjs.js +1 -0
- package/lib/Box/index.d.ts +1 -0
- package/lib/Box/index.es.js +4 -0
- package/lib/Breadcrumbs/Breadcrumbs.cjs.js +1 -0
- package/lib/Breadcrumbs/Breadcrumbs.d.ts +28 -0
- package/lib/Breadcrumbs/Breadcrumbs.es.js +54 -0
- package/lib/Breadcrumbs/BreadcrumbsItem.cjs.js +1 -0
- package/lib/Breadcrumbs/BreadcrumbsItem.d.ts +33 -0
- package/lib/Breadcrumbs/BreadcrumbsItem.es.js +10 -0
- package/lib/Breadcrumbs/index.cjs.js +1 -0
- package/lib/Breadcrumbs/index.d.ts +2 -0
- package/lib/Breadcrumbs/index.es.js +6 -0
- package/lib/Button/Button.cjs.js +1 -0
- package/lib/Button/Button.d.ts +75 -0
- package/lib/Button/Button.es.js +149 -0
- package/lib/Button/Button.figma.d.ts +1 -0
- package/lib/Button/index.cjs.js +1 -0
- package/lib/Button/index.d.ts +1 -0
- package/lib/Button/index.es.js +5 -0
- package/lib/Card/AspectRatio.cjs.js +1 -0
- package/lib/Card/AspectRatio.d.ts +16 -0
- package/lib/Card/AspectRatio.es.js +36 -0
- package/lib/Card/Card.Body.cjs.js +1 -0
- package/lib/Card/Card.Body.d.ts +11 -0
- package/lib/Card/Card.Body.es.js +17 -0
- package/lib/Card/Card.Content.cjs.js +1 -0
- package/lib/Card/Card.Content.d.ts +11 -0
- package/lib/Card/Card.Content.es.js +22 -0
- package/lib/Card/Card.Footer.cjs.js +1 -0
- package/lib/Card/Card.Footer.d.ts +30 -0
- package/lib/Card/Card.Footer.es.js +33 -0
- package/lib/Card/Card.Header.cjs.js +1 -0
- package/lib/Card/Card.Header.d.ts +95 -0
- package/lib/Card/Card.Header.es.js +95 -0
- package/lib/Card/Card.Media.cjs.js +1 -0
- package/lib/Card/Card.Media.d.ts +37 -0
- package/lib/Card/Card.Media.es.js +47 -0
- package/lib/Card/Card.MediaAbove.cjs.js +1 -0
- package/lib/Card/Card.MediaAbove.d.ts +33 -0
- package/lib/Card/Card.MediaAbove.es.js +7 -0
- package/lib/Card/Card.MediaBelow.cjs.js +1 -0
- package/lib/Card/Card.MediaBelow.d.ts +38 -0
- package/lib/Card/Card.MediaBelow.es.js +7 -0
- package/lib/Card/Card.cjs.js +1 -0
- package/lib/Card/Card.d.ts +87 -0
- package/lib/Card/Card.es.js +55 -0
- package/lib/Card/CardContext.cjs.js +1 -0
- package/lib/Card/CardContext.d.ts +11 -0
- package/lib/Card/CardContext.es.js +15 -0
- package/lib/Card/index.cjs.js +1 -0
- package/lib/Card/index.d.ts +2 -0
- package/lib/Card/index.es.js +4 -0
- package/lib/Checkbox/Checkbox.cjs.js +1 -0
- package/lib/Checkbox/Checkbox.d.ts +30 -0
- package/lib/Checkbox/Checkbox.es.js +97 -0
- package/lib/Checkbox/Checkbox.figma.d.ts +1 -0
- package/lib/Checkbox/index.cjs.js +1 -0
- package/lib/Checkbox/index.d.ts +1 -0
- package/lib/Checkbox/index.es.js +4 -0
- package/lib/Chips/Chip.cjs.js +1 -0
- package/lib/Chips/Chip.context.cjs.js +1 -0
- package/lib/Chips/Chip.context.d.ts +29 -0
- package/lib/Chips/Chip.context.es.js +40 -0
- package/lib/Chips/Chip.d.ts +67 -0
- package/lib/Chips/Chip.es.js +136 -0
- package/lib/Chips/ChipGroup.cjs.js +1 -0
- package/lib/Chips/ChipGroup.d.ts +42 -0
- package/lib/Chips/ChipGroup.es.js +56 -0
- package/lib/Chips/index.cjs.js +1 -0
- package/lib/Chips/index.d.ts +4 -0
- package/lib/Chips/index.es.js +6 -0
- package/lib/CloseButton/CloseButton.cjs.js +1 -0
- package/lib/CloseButton/CloseButton.d.ts +25 -0
- package/lib/CloseButton/CloseButton.es.js +58 -0
- package/lib/CloseButton/CloseButton.figma.d.ts +1 -0
- package/lib/CloseButton/index.cjs.js +1 -0
- package/lib/CloseButton/index.d.ts +1 -0
- package/lib/CloseButton/index.es.js +4 -0
- package/lib/Dialog/Dialog.Body.cjs.js +1 -0
- package/lib/Dialog/Dialog.Body.d.ts +16 -0
- package/lib/Dialog/Dialog.Body.es.js +31 -0
- package/lib/Dialog/Dialog.Content.cjs.js +1 -0
- package/lib/Dialog/Dialog.Content.d.ts +11 -0
- package/lib/Dialog/Dialog.Content.es.js +33 -0
- package/lib/Dialog/Dialog.Footer.cjs.js +1 -0
- package/lib/Dialog/Dialog.Footer.d.ts +12 -0
- package/lib/Dialog/Dialog.Footer.es.js +37 -0
- package/lib/Dialog/Dialog.Header.cjs.js +1 -0
- package/lib/Dialog/Dialog.Header.d.ts +56 -0
- package/lib/Dialog/Dialog.Header.es.js +95 -0
- package/lib/Dialog/Dialog.Trigger.cjs.js +1 -0
- package/lib/Dialog/Dialog.Trigger.d.ts +22 -0
- package/lib/Dialog/Dialog.Trigger.es.js +13 -0
- package/lib/Dialog/Dialog.cjs.js +1 -0
- package/lib/Dialog/Dialog.context.cjs.js +1 -0
- package/lib/Dialog/Dialog.context.d.ts +19 -0
- package/lib/Dialog/Dialog.context.es.js +20 -0
- package/lib/Dialog/Dialog.d.ts +77 -0
- package/lib/Dialog/Dialog.es.js +52 -0
- package/lib/Dialog/index.cjs.js +1 -0
- package/lib/Dialog/index.d.ts +8 -0
- package/lib/Dialog/index.es.js +5 -0
- package/lib/Divider/Divider.cjs.js +1 -0
- package/lib/Divider/Divider.d.ts +48 -0
- package/lib/Divider/Divider.es.js +96 -0
- package/lib/Divider/index.cjs.js +1 -0
- package/lib/Divider/index.d.ts +1 -0
- package/lib/Divider/index.es.js +4 -0
- package/lib/EmptyState/EmptyState.cjs.js +1 -0
- package/lib/EmptyState/EmptyState.d.ts +26 -0
- package/lib/EmptyState/EmptyState.es.js +51 -0
- package/lib/EmptyState/EmptyState.figma.d.ts +1 -0
- package/lib/EmptyState/index.cjs.js +1 -0
- package/lib/EmptyState/index.d.ts +1 -0
- package/lib/EmptyState/index.es.js +4 -0
- package/lib/FileUpload/FileUpload.Button.cjs.js +1 -0
- package/lib/FileUpload/FileUpload.Button.d.ts +22 -0
- package/lib/FileUpload/FileUpload.Button.es.js +65 -0
- package/lib/FileUpload/FileUpload.Dropzone.cjs.js +1 -0
- package/lib/FileUpload/FileUpload.Dropzone.d.ts +17 -0
- package/lib/FileUpload/FileUpload.Dropzone.es.js +87 -0
- package/lib/FileUpload/FileUpload.List.Item.cjs.js +1 -0
- package/lib/FileUpload/FileUpload.List.Item.d.ts +49 -0
- package/lib/FileUpload/FileUpload.List.Item.es.js +116 -0
- package/lib/FileUpload/FileUpload.List.cjs.js +1 -0
- package/lib/FileUpload/FileUpload.List.d.ts +34 -0
- package/lib/FileUpload/FileUpload.List.es.js +51 -0
- package/lib/FileUpload/FileUpload.cjs.js +1 -0
- package/lib/FileUpload/FileUpload.d.ts +86 -0
- package/lib/FileUpload/FileUpload.es.js +186 -0
- package/lib/FileUpload/FileUpload.reducer.cjs.js +1 -0
- package/lib/FileUpload/FileUpload.reducer.d.ts +2 -0
- package/lib/FileUpload/FileUpload.reducer.es.js +59 -0
- package/lib/FileUpload/FileUploadContext.cjs.js +1 -0
- package/lib/FileUpload/FileUploadContext.d.ts +3 -0
- package/lib/FileUpload/FileUploadContext.es.js +6 -0
- package/lib/FileUpload/FileUploadListContext.cjs.js +1 -0
- package/lib/FileUpload/FileUploadListContext.d.ts +3 -0
- package/lib/FileUpload/FileUploadListContext.es.js +6 -0
- package/lib/FileUpload/helpers.cjs.js +1 -0
- package/lib/FileUpload/helpers.d.ts +1 -0
- package/lib/FileUpload/helpers.es.js +36 -0
- package/lib/FileUpload/index.cjs.js +1 -0
- package/lib/FileUpload/index.d.ts +2 -0
- package/lib/FileUpload/index.es.js +4 -0
- package/lib/FileUpload/useFileManagement.cjs.js +1 -0
- package/lib/FileUpload/useFileManagement.d.ts +14 -0
- package/lib/FileUpload/useFileManagement.es.js +228 -0
- package/lib/Flag/Flag.cjs.js +1 -0
- package/lib/Flag/Flag.d.ts +29 -0
- package/lib/Flag/Flag.es.js +53 -0
- package/lib/Flag/index.cjs.js +1 -0
- package/lib/Flag/index.d.ts +1 -0
- package/lib/Flag/index.es.js +4 -0
- package/lib/FloatingUI/FloatingUI.arrow.cjs.js +1 -0
- package/lib/FloatingUI/FloatingUI.arrow.d.ts +11 -0
- package/lib/FloatingUI/FloatingUI.arrow.es.js +20 -0
- package/lib/FloatingUI/FloatingUI.content.cjs.js +1 -0
- package/lib/FloatingUI/FloatingUI.content.d.ts +20 -0
- package/lib/FloatingUI/FloatingUI.content.es.js +111 -0
- package/lib/FloatingUI/FloatingUI.context.cjs.js +1 -0
- package/lib/FloatingUI/FloatingUI.context.d.ts +232 -0
- package/lib/FloatingUI/FloatingUI.context.es.js +9 -0
- package/lib/FloatingUI/FloatingUI.interactions.cjs.js +1 -0
- package/lib/FloatingUI/FloatingUI.interactions.d.ts +19 -0
- package/lib/FloatingUI/FloatingUI.interactions.es.js +47 -0
- package/lib/FloatingUI/FloatingUI.root.cjs.js +1 -0
- package/lib/FloatingUI/FloatingUI.root.d.ts +5 -0
- package/lib/FloatingUI/FloatingUI.root.es.js +13 -0
- package/lib/FloatingUI/FloatingUI.treeWrapper.cjs.js +1 -0
- package/lib/FloatingUI/FloatingUI.treeWrapper.d.ts +5 -0
- package/lib/FloatingUI/FloatingUI.treeWrapper.es.js +9 -0
- package/lib/FloatingUI/FloatingUI.trigger.cjs.js +1 -0
- package/lib/FloatingUI/FloatingUI.trigger.close.cjs.js +1 -0
- package/lib/FloatingUI/FloatingUI.trigger.close.d.ts +9 -0
- package/lib/FloatingUI/FloatingUI.trigger.close.es.js +30 -0
- package/lib/FloatingUI/FloatingUI.trigger.d.ts +9 -0
- package/lib/FloatingUI/FloatingUI.trigger.es.js +25 -0
- package/lib/FloatingUI/index.cjs.js +1 -0
- package/lib/FloatingUI/index.d.ts +5 -0
- package/lib/FloatingUI/index.es.js +10 -0
- package/lib/FloatingUI/useSelected.cjs.js +1 -0
- package/lib/FloatingUI/useSelected.d.ts +9 -0
- package/lib/FloatingUI/useSelected.es.js +22 -0
- package/lib/Form/Form.cjs.js +1 -0
- package/lib/Form/Form.d.ts +29 -0
- package/lib/Form/Form.es.js +67 -0
- package/lib/Form/contexts/form.context.cjs.js +1 -0
- package/lib/Form/contexts/form.context.d.ts +30 -0
- package/lib/Form/contexts/form.context.es.js +9 -0
- package/lib/Form/contexts/helperText.context.cjs.js +1 -0
- package/lib/Form/contexts/helperText.context.d.ts +12 -0
- package/lib/Form/contexts/helperText.context.es.js +14 -0
- package/lib/Form/contexts/index.cjs.js +1 -0
- package/lib/Form/contexts/index.d.ts +3 -0
- package/lib/Form/contexts/index.es.js +12 -0
- package/lib/Form/contexts/label.context.cjs.js +1 -0
- package/lib/Form/contexts/label.context.d.ts +14 -0
- package/lib/Form/contexts/label.context.es.js +16 -0
- package/lib/Form/hooks/index.cjs.js +1 -0
- package/lib/Form/hooks/index.d.ts +5 -0
- package/lib/Form/hooks/index.es.js +14 -0
- package/lib/Form/hooks/useAccessibleId.hook.cjs.js +1 -0
- package/lib/Form/hooks/useAccessibleId.hook.d.ts +5 -0
- package/lib/Form/hooks/useAccessibleId.hook.es.js +16 -0
- package/lib/Form/hooks/useActionValidator.hook.cjs.js +1 -0
- package/lib/Form/hooks/useActionValidator.hook.d.ts +7 -0
- package/lib/Form/hooks/useActionValidator.hook.es.js +14 -0
- package/lib/Form/hooks/useFieldValidator.hook.cjs.js +1 -0
- package/lib/Form/hooks/useFieldValidator.hook.d.ts +8 -0
- package/lib/Form/hooks/useFieldValidator.hook.es.js +7 -0
- package/lib/Form/hooks/useFormValidator.hook.cjs.js +1 -0
- package/lib/Form/hooks/useFormValidator.hook.d.ts +16 -0
- package/lib/Form/hooks/useFormValidator.hook.es.js +5 -0
- package/lib/Form/hooks/useUniversalRef.hook.cjs.js +1 -0
- package/lib/Form/hooks/useUniversalRef.hook.d.ts +6 -0
- package/lib/Form/hooks/useUniversalRef.hook.es.js +12 -0
- package/lib/Form/index.cjs.js +1 -0
- package/lib/Form/index.d.ts +1 -0
- package/lib/Form/index.es.js +6 -0
- package/lib/Header/Header.cjs.js +1 -0
- package/lib/Header/Header.d.ts +23 -0
- package/lib/Header/Header.es.js +57 -0
- package/lib/Header/HeaderAction.cjs.js +1 -0
- package/lib/Header/HeaderAction.d.ts +13 -0
- package/lib/Header/HeaderAction.es.js +23 -0
- package/lib/Header/HeaderActionGroup.cjs.js +1 -0
- package/lib/Header/HeaderActionGroup.d.ts +21 -0
- package/lib/Header/HeaderActionGroup.es.js +29 -0
- package/lib/Header/HeaderMasthead.cjs.js +1 -0
- package/lib/Header/HeaderMasthead.d.ts +55 -0
- package/lib/Header/HeaderMasthead.es.js +100 -0
- package/lib/Header/HeaderNavigation.cjs.js +1 -0
- package/lib/Header/HeaderNavigation.d.ts +14 -0
- package/lib/Header/HeaderNavigation.es.js +16 -0
- package/lib/Header/HeaderSideNavTrigger.cjs.js +1 -0
- package/lib/Header/HeaderSideNavTrigger.d.ts +15 -0
- package/lib/Header/HeaderSideNavTrigger.es.js +61 -0
- package/lib/Header/index.cjs.js +1 -0
- package/lib/Header/index.d.ts +4 -0
- package/lib/Header/index.es.js +11 -0
- package/lib/HelperText/HelperText.cjs.js +1 -0
- package/lib/HelperText/HelperText.d.ts +37 -0
- package/lib/HelperText/HelperText.es.js +12 -0
- package/lib/HelperText/HelperText.figma.d.ts +1 -0
- package/lib/HelperText/index.cjs.js +1 -0
- package/lib/HelperText/index.d.ts +1 -0
- package/lib/HelperText/index.es.js +4 -0
- package/lib/Icon/Icon.cjs.js +1 -0
- package/lib/Icon/Icon.d.ts +37 -0
- package/lib/Icon/Icon.es.js +75 -0
- package/lib/Icon/index.cjs.js +1 -0
- package/lib/Icon/index.d.ts +2 -0
- package/lib/Icon/index.es.js +4 -0
- package/lib/InputChoiceGroup/CheckboxGroup/CheckboxGroup.cjs.js +1 -0
- package/lib/InputChoiceGroup/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/lib/InputChoiceGroup/CheckboxGroup/CheckboxGroup.es.js +9 -0
- package/lib/InputChoiceGroup/CheckboxGroup/CheckboxGroup.figma.d.ts +1 -0
- package/lib/InputChoiceGroup/CheckboxGroup/index.cjs.js +1 -0
- package/lib/InputChoiceGroup/CheckboxGroup/index.d.ts +1 -0
- package/lib/InputChoiceGroup/CheckboxGroup/index.es.js +4 -0
- package/lib/InputChoiceGroup/InputChoiceGroup.cjs.js +1 -0
- package/lib/InputChoiceGroup/InputChoiceGroup.context.cjs.js +1 -0
- package/lib/InputChoiceGroup/InputChoiceGroup.context.d.ts +14 -0
- package/lib/InputChoiceGroup/InputChoiceGroup.context.es.js +16 -0
- package/lib/InputChoiceGroup/InputChoiceGroup.d.ts +65 -0
- package/lib/InputChoiceGroup/InputChoiceGroup.es.js +99 -0
- package/lib/InputChoiceGroup/RadioButtonGroup/RadioButtonGroup.cjs.js +1 -0
- package/lib/InputChoiceGroup/RadioButtonGroup/RadioButtonGroup.d.ts +4 -0
- package/lib/InputChoiceGroup/RadioButtonGroup/RadioButtonGroup.es.js +9 -0
- package/lib/InputChoiceGroup/RadioButtonGroup/index.cjs.js +1 -0
- package/lib/InputChoiceGroup/RadioButtonGroup/index.d.ts +1 -0
- package/lib/InputChoiceGroup/RadioButtonGroup/index.es.js +4 -0
- package/lib/InputChoiceGroup/SwitchGroup/SwitchGroup.cjs.js +1 -0
- package/lib/InputChoiceGroup/SwitchGroup/SwitchGroup.d.ts +4 -0
- package/lib/InputChoiceGroup/SwitchGroup/SwitchGroup.es.js +9 -0
- package/lib/InputChoiceGroup/SwitchGroup/index.cjs.js +1 -0
- package/lib/InputChoiceGroup/SwitchGroup/index.d.ts +1 -0
- package/lib/InputChoiceGroup/SwitchGroup/index.es.js +4 -0
- package/lib/InputChoiceGroup/index.cjs.js +1 -0
- package/lib/InputChoiceGroup/index.d.ts +3 -0
- package/lib/InputChoiceGroup/index.es.js +8 -0
- package/lib/Label/Label.cjs.js +1 -0
- package/lib/Label/Label.d.ts +32 -0
- package/lib/Label/Label.es.js +50 -0
- package/lib/Label/Label.figma.d.ts +1 -0
- package/lib/Label/index.cjs.js +1 -0
- package/lib/Label/index.d.ts +1 -0
- package/lib/Label/index.es.js +4 -0
- package/lib/Link/Link.cjs.js +1 -0
- package/lib/Link/Link.d.ts +48 -0
- package/lib/Link/Link.es.js +65 -0
- package/lib/Link/index.cjs.js +1 -0
- package/lib/Link/index.d.ts +1 -0
- package/lib/Link/index.es.js +4 -0
- package/lib/List/List.Item.cjs.js +1 -0
- package/lib/List/List.Item.d.ts +16 -0
- package/lib/List/List.Item.es.js +21 -0
- package/lib/List/List.cjs.js +1 -0
- package/lib/List/List.d.ts +41 -0
- package/lib/List/List.es.js +83 -0
- package/lib/List/ListContext.cjs.js +1 -0
- package/lib/List/ListContext.d.ts +11 -0
- package/lib/List/ListContext.es.js +13 -0
- package/lib/List/index.cjs.js +1 -0
- package/lib/List/index.d.ts +2 -0
- package/lib/List/index.es.js +4 -0
- package/lib/Logo/Logo.cjs.js +1 -0
- package/lib/Logo/Logo.d.ts +29 -0
- package/lib/Logo/Logo.es.js +53 -0
- package/lib/Logo/index.cjs.js +1 -0
- package/lib/Logo/index.d.ts +2 -0
- package/lib/Logo/index.es.js +4 -0
- package/lib/Menu/ActionListContextWrapper.cjs.js +1 -0
- package/lib/Menu/ActionListContextWrapper.d.ts +5 -0
- package/lib/Menu/ActionListContextWrapper.es.js +13 -0
- package/lib/Menu/Menu.PopoverContent.cjs.js +1 -0
- package/lib/Menu/Menu.PopoverContent.d.ts +8 -0
- package/lib/Menu/Menu.PopoverContent.es.js +37 -0
- package/lib/Menu/Menu.Trigger.cjs.js +1 -0
- package/lib/Menu/Menu.Trigger.d.ts +8 -0
- package/lib/Menu/Menu.Trigger.es.js +14 -0
- package/lib/Menu/Menu.cjs.js +1 -0
- package/lib/Menu/Menu.context.cjs.js +1 -0
- package/lib/Menu/Menu.context.d.ts +10 -0
- package/lib/Menu/Menu.context.es.js +6 -0
- package/lib/Menu/Menu.d.ts +39 -0
- package/lib/Menu/Menu.es.js +118 -0
- package/lib/Menu/Menu.stories.utils.d.ts +6 -0
- package/lib/Menu/index.cjs.js +1 -0
- package/lib/Menu/index.d.ts +2 -0
- package/lib/Menu/index.es.js +6 -0
- package/lib/NativeSelect/NativeSelect.cjs.js +1 -0
- package/lib/NativeSelect/NativeSelect.d.ts +62 -0
- package/lib/NativeSelect/NativeSelect.es.js +135 -0
- package/lib/NativeSelect/index.cjs.js +1 -0
- package/lib/NativeSelect/index.d.ts +1 -0
- package/lib/NativeSelect/index.es.js +4 -0
- package/lib/PageHeader/PageHeader.cjs.js +1 -0
- package/lib/PageHeader/PageHeader.d.ts +107 -0
- package/lib/PageHeader/PageHeader.es.js +138 -0
- package/lib/PageHeader/index.cjs.js +1 -0
- package/lib/PageHeader/index.d.ts +2 -0
- package/lib/PageHeader/index.es.js +4 -0
- package/lib/PageLayout/PageLayout.cjs.js +1 -0
- package/lib/PageLayout/PageLayout.d.ts +22 -0
- package/lib/PageLayout/PageLayout.es.js +32 -0
- package/lib/PageLayout/PageLayoutAside.cjs.js +1 -0
- package/lib/PageLayout/PageLayoutAside.d.ts +11 -0
- package/lib/PageLayout/PageLayoutAside.es.js +24 -0
- package/lib/PageLayout/PageLayoutHeader.cjs.js +1 -0
- package/lib/PageLayout/PageLayoutHeader.d.ts +11 -0
- package/lib/PageLayout/PageLayoutHeader.es.js +24 -0
- package/lib/PageLayout/PageLayoutMain.cjs.js +1 -0
- package/lib/PageLayout/PageLayoutMain.d.ts +11 -0
- package/lib/PageLayout/PageLayoutMain.es.js +24 -0
- package/lib/PageLayout/index.cjs.js +1 -0
- package/lib/PageLayout/index.d.ts +1 -0
- package/lib/PageLayout/index.es.js +4 -0
- package/lib/Pagination/PageButton.cjs.js +1 -0
- package/lib/Pagination/PageButton.d.ts +1 -0
- package/lib/Pagination/PageButton.es.js +38 -0
- package/lib/Pagination/PageButtons.cjs.js +1 -0
- package/lib/Pagination/PageButtons.d.ts +8 -0
- package/lib/Pagination/PageButtons.es.js +77 -0
- package/lib/Pagination/Pagination.cjs.js +1 -0
- package/lib/Pagination/Pagination.d.ts +33 -0
- package/lib/Pagination/Pagination.es.js +65 -0
- package/lib/Pagination/PaginationControls.cjs.js +1 -0
- package/lib/Pagination/PaginationControls.d.ts +15 -0
- package/lib/Pagination/PaginationControls.es.js +80 -0
- package/lib/Pagination/Truncation.cjs.js +1 -0
- package/lib/Pagination/Truncation.d.ts +7 -0
- package/lib/Pagination/Truncation.es.js +23 -0
- package/lib/Pagination/index.cjs.js +1 -0
- package/lib/Pagination/index.d.ts +1 -0
- package/lib/Pagination/index.es.js +4 -0
- package/lib/Popover/Popover.cjs.js +1 -0
- package/lib/Popover/Popover.content.cjs.js +1 -0
- package/lib/Popover/Popover.content.d.ts +13 -0
- package/lib/Popover/Popover.content.es.js +30 -0
- package/lib/Popover/Popover.context.cjs.js +1 -0
- package/lib/Popover/Popover.context.d.ts +14 -0
- package/lib/Popover/Popover.context.es.js +16 -0
- package/lib/Popover/Popover.d.ts +129 -0
- package/lib/Popover/Popover.es.js +60 -0
- package/lib/Popover/Popover.stories.utils.d.ts +16 -0
- package/lib/Popover/Popover.trigger.cjs.js +1 -0
- package/lib/Popover/Popover.trigger.d.ts +22 -0
- package/lib/Popover/Popover.trigger.es.js +13 -0
- package/lib/Popover/Popover.utils.cjs.js +1 -0
- package/lib/Popover/Popover.utils.d.ts +2 -0
- package/lib/Popover/Popover.utils.es.js +15 -0
- package/lib/Popover/index.cjs.js +1 -0
- package/lib/Popover/index.d.ts +3 -0
- package/lib/Popover/index.es.js +5 -0
- package/lib/PortalProvider/PortalContext.cjs.js +1 -0
- package/lib/PortalProvider/PortalContext.d.ts +32 -0
- package/lib/PortalProvider/PortalContext.es.js +13 -0
- package/lib/PortalProvider/PortalProvider.cjs.js +1 -0
- package/lib/PortalProvider/PortalProvider.d.ts +22 -0
- package/lib/PortalProvider/PortalProvider.es.js +22 -0
- package/lib/PortalProvider/index.cjs.js +1 -0
- package/lib/PortalProvider/index.d.ts +2 -0
- package/lib/PortalProvider/index.es.js +7 -0
- package/lib/ProgressBar/ProgressBar.cjs.js +1 -0
- package/lib/ProgressBar/ProgressBar.d.ts +38 -0
- package/lib/ProgressBar/ProgressBar.es.js +117 -0
- package/lib/ProgressBar/index.cjs.js +1 -0
- package/lib/ProgressBar/index.d.ts +1 -0
- package/lib/ProgressBar/index.es.js +4 -0
- package/lib/RadioButton/RadioButton.cjs.js +1 -0
- package/lib/RadioButton/RadioButton.d.ts +29 -0
- package/lib/RadioButton/RadioButton.es.js +101 -0
- package/lib/RadioButton/index.cjs.js +1 -0
- package/lib/RadioButton/index.d.ts +1 -0
- package/lib/RadioButton/index.es.js +4 -0
- package/lib/SegmentedControl/SegmentedControl.Item.cjs.js +1 -0
- package/lib/SegmentedControl/SegmentedControl.Item.d.ts +20 -0
- package/lib/SegmentedControl/SegmentedControl.Item.es.js +96 -0
- package/lib/SegmentedControl/SegmentedControl.List.cjs.js +1 -0
- package/lib/SegmentedControl/SegmentedControl.List.d.ts +12 -0
- package/lib/SegmentedControl/SegmentedControl.List.es.js +33 -0
- package/lib/SegmentedControl/SegmentedControl.Panel.cjs.js +1 -0
- package/lib/SegmentedControl/SegmentedControl.Panel.d.ts +12 -0
- package/lib/SegmentedControl/SegmentedControl.Panel.es.js +31 -0
- package/lib/SegmentedControl/SegmentedControl.cjs.js +1 -0
- package/lib/SegmentedControl/SegmentedControl.d.ts +42 -0
- package/lib/SegmentedControl/SegmentedControl.es.js +52 -0
- package/lib/SegmentedControl/SegmentedControlContext.cjs.js +1 -0
- package/lib/SegmentedControl/SegmentedControlContext.d.ts +19 -0
- package/lib/SegmentedControl/SegmentedControlContext.es.js +15 -0
- package/lib/SegmentedControl/index.cjs.js +1 -0
- package/lib/SegmentedControl/index.d.ts +1 -0
- package/lib/SegmentedControl/index.es.js +4 -0
- package/lib/Select/Select.cjs.js +1 -0
- package/lib/Select/Select.d.ts +95 -0
- package/lib/Select/Select.es.js +259 -0
- package/lib/Select/Select.types.cjs.js +1 -0
- package/lib/Select/Select.types.d.ts +24 -0
- package/lib/Select/Select.types.es.js +1 -0
- package/lib/Select/SelectDropdown.cjs.js +1 -0
- package/lib/Select/SelectDropdown.d.ts +2 -0
- package/lib/Select/SelectDropdown.es.js +88 -0
- package/lib/Select/SelectField.cjs.js +1 -0
- package/lib/Select/SelectField.d.ts +26 -0
- package/lib/Select/SelectField.es.js +68 -0
- package/lib/Select/index.cjs.js +1 -0
- package/lib/Select/index.d.ts +3 -0
- package/lib/Select/index.es.js +5 -0
- package/lib/Select/useClearSelection.cjs.js +1 -0
- package/lib/Select/useClearSelection.d.ts +19 -0
- package/lib/Select/useClearSelection.es.js +22 -0
- package/lib/Select/useSelectA11y.cjs.js +1 -0
- package/lib/Select/useSelectA11y.d.ts +26 -0
- package/lib/Select/useSelectA11y.es.js +28 -0
- package/lib/Select/useSelectChipKeyboard.cjs.js +1 -0
- package/lib/Select/useSelectChipKeyboard.d.ts +32 -0
- package/lib/Select/useSelectChipKeyboard.es.js +38 -0
- package/lib/Select/useSelectChips.cjs.js +1 -0
- package/lib/Select/useSelectChips.d.ts +27 -0
- package/lib/Select/useSelectChips.es.js +55 -0
- package/lib/Select/useSelectDropdown.cjs.js +1 -0
- package/lib/Select/useSelectDropdown.d.ts +54 -0
- package/lib/Select/useSelectDropdown.es.js +123 -0
- package/lib/Select/useSelectKeyboardManager.cjs.js +1 -0
- package/lib/Select/useSelectKeyboardManager.d.ts +35 -0
- package/lib/Select/useSelectKeyboardManager.es.js +25 -0
- package/lib/SideNav/SideNav.cjs.js +1 -0
- package/lib/SideNav/SideNav.d.ts +68 -0
- package/lib/SideNav/SideNav.es.js +179 -0
- package/lib/SideNav/SideNavActionList.cjs.js +1 -0
- package/lib/SideNav/SideNavActionList.d.ts +19 -0
- package/lib/SideNav/SideNavActionList.es.js +26 -0
- package/lib/SideNav/SideNavActionListGroup.cjs.js +1 -0
- package/lib/SideNav/SideNavActionListGroup.d.ts +10 -0
- package/lib/SideNav/SideNavActionListGroup.es.js +33 -0
- package/lib/SideNav/SideNavActionListGroupHeading.cjs.js +1 -0
- package/lib/SideNav/SideNavActionListGroupHeading.d.ts +16 -0
- package/lib/SideNav/SideNavActionListGroupHeading.es.js +20 -0
- package/lib/SideNav/SideNavActionListItem.cjs.js +1 -0
- package/lib/SideNav/SideNavActionListItem.d.ts +23 -0
- package/lib/SideNav/SideNavActionListItem.es.js +82 -0
- package/lib/SideNav/SideNavActionListItemExpandable.cjs.js +1 -0
- package/lib/SideNav/SideNavActionListItemExpandable.d.ts +39 -0
- package/lib/SideNav/SideNavActionListItemExpandable.es.js +87 -0
- package/lib/SideNav/SideNavActionListItemFlyout.cjs.js +1 -0
- package/lib/SideNav/SideNavActionListItemFlyout.d.ts +17 -0
- package/lib/SideNav/SideNavActionListItemFlyout.es.js +49 -0
- package/lib/SideNav/SideNavActionListItemLabel.cjs.js +1 -0
- package/lib/SideNav/SideNavActionListItemLabel.d.ts +8 -0
- package/lib/SideNav/SideNavActionListItemLabel.es.js +5 -0
- package/lib/SideNav/SideNavBody.cjs.js +1 -0
- package/lib/SideNav/SideNavBody.d.ts +20 -0
- package/lib/SideNav/SideNavBody.es.js +83 -0
- package/lib/SideNav/SideNavContext.cjs.js +3 -0
- package/lib/SideNav/SideNavContext.d.ts +29 -0
- package/lib/SideNav/SideNavContext.es.js +73 -0
- package/lib/SideNav/SideNavExpandableContext.cjs.js +1 -0
- package/lib/SideNav/SideNavExpandableContext.d.ts +10 -0
- package/lib/SideNav/SideNavExpandableContext.es.js +13 -0
- package/lib/SideNav/SideNavFooter.cjs.js +1 -0
- package/lib/SideNav/SideNavFooter.d.ts +9 -0
- package/lib/SideNav/SideNavFooter.es.js +16 -0
- package/lib/SideNav/SideNavHeader.cjs.js +1 -0
- package/lib/SideNav/SideNavHeader.d.ts +9 -0
- package/lib/SideNav/SideNavHeader.es.js +16 -0
- package/lib/SideNav/SideNavLayoutContext.cjs.js +1 -0
- package/lib/SideNav/SideNavLayoutContext.d.ts +12 -0
- package/lib/SideNav/SideNavLayoutContext.es.js +19 -0
- package/lib/SideNav/index.cjs.js +1 -0
- package/lib/SideNav/index.d.ts +2 -0
- package/lib/SideNav/index.es.js +18 -0
- package/lib/Slider/DualSlider.cjs.js +1 -0
- package/lib/Slider/DualSlider.d.ts +8 -0
- package/lib/Slider/DualSlider.es.js +322 -0
- package/lib/Slider/SingleSlider.cjs.js +1 -0
- package/lib/Slider/SingleSlider.d.ts +8 -0
- package/lib/Slider/SingleSlider.es.js +215 -0
- package/lib/Slider/Slider.Error.cjs.js +1 -0
- package/lib/Slider/Slider.Error.d.ts +7 -0
- package/lib/Slider/Slider.Error.es.js +27 -0
- package/lib/Slider/Slider.TextField.cjs.js +1 -0
- package/lib/Slider/Slider.TextField.d.ts +16 -0
- package/lib/Slider/Slider.TextField.es.js +73 -0
- package/lib/Slider/Slider.Thumb.cjs.js +1 -0
- package/lib/Slider/Slider.Thumb.d.ts +31 -0
- package/lib/Slider/Slider.Thumb.es.js +115 -0
- package/lib/Slider/Slider.TickMarks.cjs.js +1 -0
- package/lib/Slider/Slider.TickMarks.d.ts +13 -0
- package/lib/Slider/Slider.TickMarks.es.js +37 -0
- package/lib/Slider/Slider.ValueAxisLabels.cjs.js +1 -0
- package/lib/Slider/Slider.ValueAxisLabels.d.ts +13 -0
- package/lib/Slider/Slider.ValueAxisLabels.es.js +49 -0
- package/lib/Slider/Slider.cjs.js +1 -0
- package/lib/Slider/Slider.d.ts +7 -0
- package/lib/Slider/Slider.es.js +65 -0
- package/lib/Slider/Slider.types.cjs.js +1 -0
- package/lib/Slider/Slider.types.d.ts +152 -0
- package/lib/Slider/Slider.types.es.js +1 -0
- package/lib/Slider/hooks/index.cjs.js +1 -0
- package/lib/Slider/hooks/index.d.ts +6 -0
- package/lib/Slider/hooks/index.es.js +14 -0
- package/lib/Slider/hooks/useAxisPoints.cjs.js +1 -0
- package/lib/Slider/hooks/useAxisPoints.d.ts +8 -0
- package/lib/Slider/hooks/useAxisPoints.es.js +10 -0
- package/lib/Slider/hooks/useDualSliderLogic.cjs.js +1 -0
- package/lib/Slider/hooks/useDualSliderLogic.d.ts +23 -0
- package/lib/Slider/hooks/useDualSliderLogic.es.js +60 -0
- package/lib/Slider/hooks/useSingleSliderLogic.cjs.js +1 -0
- package/lib/Slider/hooks/useSingleSliderLogic.d.ts +22 -0
- package/lib/Slider/hooks/useSingleSliderLogic.es.js +49 -0
- package/lib/Slider/hooks/useSliderApi.cjs.js +1 -0
- package/lib/Slider/hooks/useSliderApi.d.ts +17 -0
- package/lib/Slider/hooks/useSliderApi.es.js +59 -0
- package/lib/Slider/hooks/useSliderBase.cjs.js +1 -0
- package/lib/Slider/hooks/useSliderBase.d.ts +65 -0
- package/lib/Slider/hooks/useSliderBase.es.js +111 -0
- package/lib/Slider/hooks/useSliderEvents.cjs.js +1 -0
- package/lib/Slider/hooks/useSliderEvents.d.ts +2 -0
- package/lib/Slider/hooks/useSliderEvents.es.js +39 -0
- package/lib/Slider/hooks/useSliderThumbNavigation.cjs.js +1 -0
- package/lib/Slider/hooks/useSliderThumbNavigation.d.ts +13 -0
- package/lib/Slider/hooks/useSliderThumbNavigation.es.js +62 -0
- package/lib/Slider/index.cjs.js +1 -0
- package/lib/Slider/index.d.ts +4 -0
- package/lib/Slider/index.es.js +5 -0
- package/lib/Slider/slider.constants.cjs.js +1 -0
- package/lib/Slider/slider.constants.d.ts +29 -0
- package/lib/Slider/slider.constants.es.js +14 -0
- package/lib/Slider/utils/slider.rendering.utils.cjs.js +1 -0
- package/lib/Slider/utils/slider.rendering.utils.d.ts +13 -0
- package/lib/Slider/utils/slider.rendering.utils.es.js +43 -0
- package/lib/Slider/utils/slider.validation.utils.cjs.js +1 -0
- package/lib/Slider/utils/slider.validation.utils.d.ts +8 -0
- package/lib/Slider/utils/slider.validation.utils.es.js +46 -0
- package/lib/Slider/utils/sliderLogic.utils.cjs.js +1 -0
- package/lib/Slider/utils/sliderLogic.utils.d.ts +4 -0
- package/lib/Slider/utils/sliderLogic.utils.es.js +27 -0
- package/lib/Spinner/Spinner.cjs.js +1 -0
- package/lib/Spinner/Spinner.d.ts +39 -0
- package/lib/Spinner/Spinner.es.js +47 -0
- package/lib/Spinner/Spinner.figma.d.ts +1 -0
- package/lib/Spinner/SpinnerWrap.cjs.js +1 -0
- package/lib/Spinner/SpinnerWrap.d.ts +34 -0
- package/lib/Spinner/SpinnerWrap.es.js +11 -0
- package/lib/Spinner/index.cjs.js +1 -0
- package/lib/Spinner/index.d.ts +2 -0
- package/lib/Spinner/index.es.js +4 -0
- package/lib/StateLayer/StateLayer.cjs.js +1 -0
- package/lib/StateLayer/StateLayer.d.ts +11 -0
- package/lib/StateLayer/StateLayer.es.js +30 -0
- package/lib/StateLayer/index.cjs.js +1 -0
- package/lib/StateLayer/index.d.ts +1 -0
- package/lib/StateLayer/index.es.js +4 -0
- package/lib/Stepper/Stepper.Body.cjs.js +1 -0
- package/lib/Stepper/Stepper.Body.d.ts +3 -0
- package/lib/Stepper/Stepper.Body.es.js +16 -0
- package/lib/Stepper/Stepper.Context.cjs.js +1 -0
- package/lib/Stepper/Stepper.Context.d.ts +6 -0
- package/lib/Stepper/Stepper.Context.es.js +9 -0
- package/lib/Stepper/Stepper.Heading.cjs.js +1 -0
- package/lib/Stepper/Stepper.Heading.d.ts +2 -0
- package/lib/Stepper/Stepper.Heading.es.js +21 -0
- package/lib/Stepper/Stepper.Marker.cjs.js +1 -0
- package/lib/Stepper/Stepper.Marker.d.ts +9 -0
- package/lib/Stepper/Stepper.Marker.es.js +40 -0
- package/lib/Stepper/Stepper.Step.cjs.js +1 -0
- package/lib/Stepper/Stepper.Step.d.ts +24 -0
- package/lib/Stepper/Stepper.Step.es.js +56 -0
- package/lib/Stepper/Stepper.cjs.js +1 -0
- package/lib/Stepper/Stepper.d.ts +37 -0
- package/lib/Stepper/Stepper.es.js +43 -0
- package/lib/Stepper/index.cjs.js +1 -0
- package/lib/Stepper/index.d.ts +2 -0
- package/lib/Stepper/index.es.js +7 -0
- package/lib/Stepper/useBeamStepper.cjs.js +1 -0
- package/lib/Stepper/useBeamStepper.d.ts +95 -0
- package/lib/Stepper/useBeamStepper.es.js +193 -0
- package/lib/Switch/Switch.cjs.js +1 -0
- package/lib/Switch/Switch.d.ts +35 -0
- package/lib/Switch/Switch.es.js +107 -0
- package/lib/Switch/index.cjs.js +1 -0
- package/lib/Switch/index.d.ts +1 -0
- package/lib/Switch/index.es.js +4 -0
- package/lib/Tabs/Tabs.Group.cjs.js +1 -0
- package/lib/Tabs/Tabs.Group.d.ts +10 -0
- package/lib/Tabs/Tabs.Group.es.js +203 -0
- package/lib/Tabs/Tabs.Item.cjs.js +1 -0
- package/lib/Tabs/Tabs.Item.d.ts +21 -0
- package/lib/Tabs/Tabs.Item.es.js +114 -0
- package/lib/Tabs/Tabs.Panel.cjs.js +1 -0
- package/lib/Tabs/Tabs.Panel.d.ts +12 -0
- package/lib/Tabs/Tabs.Panel.es.js +33 -0
- package/lib/Tabs/Tabs.cjs.js +1 -0
- package/lib/Tabs/Tabs.d.ts +53 -0
- package/lib/Tabs/Tabs.es.js +117 -0
- package/lib/Tabs/TabsContext.cjs.js +1 -0
- package/lib/Tabs/TabsContext.d.ts +21 -0
- package/lib/Tabs/TabsContext.es.js +15 -0
- package/lib/Tabs/index.cjs.js +1 -0
- package/lib/Tabs/index.d.ts +1 -0
- package/lib/Tabs/index.es.js +4 -0
- package/lib/Text/Text.cjs.js +1 -0
- package/lib/Text/Text.d.ts +64 -0
- package/lib/Text/Text.es.js +175 -0
- package/lib/Text/index.cjs.js +1 -0
- package/lib/Text/index.d.ts +1 -0
- package/lib/Text/index.es.js +4 -0
- package/lib/TextArea/TextArea.cjs.js +1 -0
- package/lib/TextArea/TextArea.d.ts +83 -0
- package/lib/TextArea/TextArea.es.js +151 -0
- package/lib/TextArea/index.cjs.js +1 -0
- package/lib/TextArea/index.d.ts +1 -0
- package/lib/TextArea/index.es.js +4 -0
- package/lib/TextField/TextField.cjs.js +1 -0
- package/lib/TextField/TextField.d.ts +74 -0
- package/lib/TextField/TextField.es.js +111 -0
- package/lib/TextField/TextField.figma.d.ts +1 -0
- package/lib/TextField/index.cjs.js +1 -0
- package/lib/TextField/index.d.ts +1 -0
- package/lib/TextField/index.es.js +4 -0
- package/lib/Toasts/Toast.cjs.js +1 -0
- package/lib/Toasts/Toast.d.ts +60 -0
- package/lib/Toasts/Toast.es.js +131 -0
- package/lib/Toasts/ToastContainer.cjs.js +1 -0
- package/lib/Toasts/ToastContainer.d.ts +28 -0
- package/lib/Toasts/ToastContainer.es.js +93 -0
- package/lib/Toasts/ToastContext.cjs.js +1 -0
- package/lib/Toasts/ToastContext.d.ts +15 -0
- package/lib/Toasts/ToastContext.es.js +7 -0
- package/lib/Toasts/index.cjs.js +1 -0
- package/lib/Toasts/index.d.ts +3 -0
- package/lib/Toasts/index.es.js +9 -0
- package/lib/Tooltip/Tooltip.cjs.js +1 -0
- package/lib/Tooltip/Tooltip.d.ts +122 -0
- package/lib/Tooltip/Tooltip.es.js +116 -0
- package/lib/Tooltip/index.cjs.js +1 -0
- package/lib/Tooltip/index.d.ts +1 -0
- package/lib/Tooltip/index.es.js +5 -0
- package/lib/Tooltip/useTooltipClipping.cjs.js +1 -0
- package/lib/Tooltip/useTooltipClipping.d.ts +5 -0
- package/lib/Tooltip/useTooltipClipping.es.js +20 -0
- package/lib/_Navigation/Navigation.cjs.js +1 -0
- package/lib/_Navigation/Navigation.d.ts +20 -0
- package/lib/_Navigation/Navigation.es.js +32 -0
- package/lib/_Navigation/NavigationItem.cjs.js +1 -0
- package/lib/_Navigation/NavigationItem.d.ts +26 -0
- package/lib/_Navigation/NavigationItem.es.js +10 -0
- package/lib/_Navigation/classes.cjs.js +1 -0
- package/lib/_Navigation/classes.d.ts +11 -0
- package/lib/_Navigation/classes.es.js +16 -0
- package/lib/_Navigation/index.cjs.js +1 -0
- package/lib/_Navigation/index.d.ts +2 -0
- package/lib/_Navigation/index.es.js +6 -0
- package/lib/_Options/Option.cjs.js +1 -0
- package/lib/_Options/Option.context.cjs.js +1 -0
- package/lib/_Options/Option.context.d.ts +29 -0
- package/lib/_Options/Option.context.es.js +123 -0
- package/lib/_Options/Option.d.ts +3 -0
- package/lib/_Options/Option.es.js +31 -0
- package/lib/_Options/Option.types.cjs.js +1 -0
- package/lib/_Options/Option.types.d.ts +11 -0
- package/lib/_Options/Option.types.es.js +1 -0
- package/lib/_Options/OptionChips.cjs.js +1 -0
- package/lib/_Options/OptionChips.d.ts +20 -0
- package/lib/_Options/OptionChips.es.js +48 -0
- package/lib/_Options/index.cjs.js +1 -0
- package/lib/_Options/index.d.ts +4 -0
- package/lib/_Options/index.es.js +10 -0
- package/lib/_Options/strategies/SelectionStrategy.cjs.js +1 -0
- package/lib/_Options/strategies/SelectionStrategy.d.ts +16 -0
- package/lib/_Options/strategies/SelectionStrategy.es.js +42 -0
- package/lib/_Options/useSelectValue.cjs.js +1 -0
- package/lib/_Options/useSelectValue.d.ts +13 -0
- package/lib/_Options/useSelectValue.es.js +109 -0
- package/lib/index.cjs.js +1 -0
- package/lib/index.d.ts +51 -0
- package/lib/index.es.js +152 -0
- package/lib/wip/index.cjs.js +1 -0
- package/lib/wip/index.d.ts +0 -0
- package/lib/wip/index.es.js +1 -0
- package/package.json +78 -0
- package/utils/children.cjs.js +1 -0
- package/utils/children.d.ts +1 -0
- package/utils/children.es.js +9 -0
- package/utils/extractSpecifiedComponents.cjs.js +1 -0
- package/utils/extractSpecifiedComponents.d.ts +28 -0
- package/utils/extractSpecifiedComponents.es.js +16 -0
- package/utils/functions.cjs.js +1 -0
- package/utils/functions.d.ts +13 -0
- package/utils/functions.es.js +35 -0
- package/utils/hooks/index.cjs.js +1 -0
- package/utils/hooks/index.d.ts +56 -0
- package/utils/hooks/index.es.js +108 -0
- package/utils/hooks/useBoundingBox.cjs.js +1 -0
- package/utils/hooks/useBoundingBox.d.ts +6 -0
- package/utils/hooks/useBoundingBox.es.js +39 -0
- package/utils/hooks/useElementClick.cjs.js +1 -0
- package/utils/hooks/useElementClick.d.ts +42 -0
- package/utils/hooks/useElementClick.es.js +23 -0
- package/utils/hooks/useElementResize.cjs.js +1 -0
- package/utils/hooks/useElementResize.d.ts +1 -0
- package/utils/hooks/useElementResize.es.js +46 -0
- package/utils/hooks/useId.cjs.js +1 -0
- package/utils/hooks/useId.d.ts +7 -0
- package/utils/hooks/useId.es.js +24 -0
- package/utils/hooks/useIsMounted.cjs.js +1 -0
- package/utils/hooks/useIsMounted.d.ts +11 -0
- package/utils/hooks/useIsMounted.es.js +10 -0
- package/utils/hooks/useKeyboardNavigation.cjs.js +1 -0
- package/utils/hooks/useKeyboardNavigation.d.ts +38 -0
- package/utils/hooks/useKeyboardNavigation.es.js +97 -0
- package/utils/hooks/useLocalStorage.cjs.js +1 -0
- package/utils/hooks/useLocalStorage.d.ts +3 -0
- package/utils/hooks/useLocalStorage.es.js +41 -0
- package/utils/keyboardComposition.cjs.js +1 -0
- package/utils/keyboardComposition.d.ts +17 -0
- package/utils/keyboardComposition.es.js +21 -0
- package/utils/safeReact.cjs.js +1 -0
- package/utils/safeReact.d.ts +63 -0
- package/utils/safeReact.es.js +5 -0
- package/utils/spacing.cjs.js +1 -0
- package/utils/spacing.d.ts +77 -0
- package/utils/spacing.es.js +29 -0
- package/utils/theming/index.cjs.js +1 -0
- package/utils/theming/index.d.ts +1 -0
- package/utils/theming/index.es.js +8 -0
- package/utils/theming/useBeamTheme.cjs.js +1 -0
- package/utils/theming/useBeamTheme.d.ts +34 -0
- package/utils/theming/useBeamTheme.es.js +213 -0
- package/utils/types/render-fn.cjs.js +1 -0
- package/utils/types/render-fn.d.ts +9 -0
- package/utils/types/render-fn.es.js +1 -0
- package/utils/types.cjs.js +1 -0
- package/utils/types.d.ts +23 -0
- package/utils/types.es.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useElementResize: (resizeEnabled: boolean, resizableElementRef: React.RefObject<HTMLElement>, resizeHandlerRef: React.RefObject<HTMLElement>, minWidth?: number, maxWidth?: number, defaultWidth?: number) => number;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { useState as y, useRef as C, useCallback as s, useMemo as S, useEffect as f } from "react";
|
|
2
|
+
import { a as M } from "../../chunks/constants.BBi77pmH.js";
|
|
3
|
+
import { d as W } from "../../chunks/helpers.Wv7n4ip7.js";
|
|
4
|
+
const g = (p, n, r, d = 165, v = 400, X = 0) => {
|
|
5
|
+
const [a, w] = y(X), c = C(0), m = C(!1), L = s(
|
|
6
|
+
(t) => {
|
|
7
|
+
if (!n.current) return;
|
|
8
|
+
const P = t.clientX - c.current;
|
|
9
|
+
c.current = t.clientX;
|
|
10
|
+
const h = n.current.offsetWidth, u = m.current ? h - P : h + P;
|
|
11
|
+
u >= d && u <= v && (requestAnimationFrame(() => {
|
|
12
|
+
n.current && (n.current.style.inlineSize = `${u}px`);
|
|
13
|
+
}), w(u));
|
|
14
|
+
},
|
|
15
|
+
[n, d, v]
|
|
16
|
+
), o = S(
|
|
17
|
+
() => W(L, M),
|
|
18
|
+
[L]
|
|
19
|
+
), e = s(
|
|
20
|
+
(t) => {
|
|
21
|
+
r.current && r.current.releasePointerCapture(t.pointerId), n.current && (n.current.style.transition = ""), document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", e);
|
|
22
|
+
},
|
|
23
|
+
[o, n, r]
|
|
24
|
+
), i = s(
|
|
25
|
+
(t) => {
|
|
26
|
+
t.preventDefault(), n.current && (m.current = getComputedStyle(n.current).direction === "rtl", n.current.style.transition = "none"), r.current && r.current.setPointerCapture(t.pointerId), c.current = t.clientX, document.addEventListener("pointermove", o), document.addEventListener("pointerup", e);
|
|
27
|
+
},
|
|
28
|
+
[o, e, n, r]
|
|
29
|
+
);
|
|
30
|
+
return f(() => {
|
|
31
|
+
if (!p || !r.current || !document) return;
|
|
32
|
+
const t = r.current;
|
|
33
|
+
return t && t.addEventListener("pointerdown", i), () => {
|
|
34
|
+
t && t.removeEventListener("pointerdown", i), document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", e);
|
|
35
|
+
};
|
|
36
|
+
}, [
|
|
37
|
+
i,
|
|
38
|
+
o,
|
|
39
|
+
e,
|
|
40
|
+
p,
|
|
41
|
+
r
|
|
42
|
+
]), a;
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
g as useElementResize
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),a=require("../safeReact.cjs.js"),i=require("../../chunks/constants.hwjHOsvT.js");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=f(u);var l=u.useLayoutEffect;let c=!1,d=0;const s=()=>`${i.prefix}-${Math.random().toString(36).slice(2,6)}${d++}`;function g(){const[e,t]=r.useState(()=>c?s():void 0);return l(()=>{e==null&&t(s())},[]),r.useEffect(()=>{c=!0},[]),e}const p=a.SafeReact.useId,b=p||g;exports.useId=b;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uses React 18's built-in `useId()` when available, or falls back to a
|
|
3
|
+
* slightly less performant (requiring a double render) implementation for
|
|
4
|
+
* earlier React versions.
|
|
5
|
+
* @see https://floating-ui.com/docs/react-utils#useid
|
|
6
|
+
*/
|
|
7
|
+
export declare const useId: () => string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { useLayoutEffect as f } from "react";
|
|
3
|
+
import { SafeReact as n } from "../safeReact.es.js";
|
|
4
|
+
import { p as a } from "../../chunks/constants.BBi77pmH.js";
|
|
5
|
+
var i = f;
|
|
6
|
+
let o = !1, u = 0;
|
|
7
|
+
const r = () => `${a}-${Math.random().toString(36).slice(2, 6)}${u++}`;
|
|
8
|
+
function c() {
|
|
9
|
+
const [e, s] = t.useState(
|
|
10
|
+
() => (
|
|
11
|
+
// if server-side, we don't want to generate an id
|
|
12
|
+
o ? r() : void 0
|
|
13
|
+
)
|
|
14
|
+
);
|
|
15
|
+
return i(() => {
|
|
16
|
+
e == null && s(r());
|
|
17
|
+
}, []), t.useEffect(() => {
|
|
18
|
+
o = !0;
|
|
19
|
+
}, []), e;
|
|
20
|
+
}
|
|
21
|
+
const d = n.useId, I = d || c;
|
|
22
|
+
export {
|
|
23
|
+
I as useId
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),u=()=>{const[t,s]=e.useState(!1);return e.useEffect(()=>{s(!0)},[]),t};exports.useIsMounted=u;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A custom React hook that tracks whether the component is mounted.
|
|
3
|
+
*
|
|
4
|
+
* This is particularly useful in scenarios where certain browser-specific objects
|
|
5
|
+
* or APIs (e.g., `window`, `document`) are not defined during the initial server-side render (SSR).
|
|
6
|
+
* By using this hook, you can ensure that such logic only runs after the component
|
|
7
|
+
* has been mounted on the client side.
|
|
8
|
+
*
|
|
9
|
+
* @returns {boolean} `true` if the component is mounted, otherwise `false`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useIsMounted: () => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),y=require("./index.cjs.js");function b({currentValue:d,items:r,containerRef:t,dataAttribute:g,disabledClassName:i,onFocusItem:k,onSelectItem:f,isHorizontal:u=!0}){const h=y.useRTLDirection(t),l=w.useRef(new Map);w.useEffect(()=>{if(!t.current)return;const n=t.current,c=new Map;r.forEach(a=>{const e=`[${g}="${CSS.escape(a)}"]`,s=n.querySelector(e);c.set(a,(s==null?void 0:s.classList.contains(i))??!1)}),l.current=c},[r,t,g,i]);const o=w.useCallback((n,c)=>{if(!t.current)return-1;let a=n,e=0;for(;e<r.length;){a=(a+c+r.length)%r.length;const s=r[a];if(!l.current.get(s))return a;e++}return-1},[r,t]);return{handleKeyDown:w.useCallback(n=>{if(!r||r.length===0)return;const c=r.indexOf(d);if(["ArrowRight","ArrowLeft","ArrowDown","ArrowUp","Home","End","Enter"," "].includes(n.key)){if(n.preventDefault(),n.key==="Enter"||n.key===" "){f==null||f(d);return}let e=-1;switch(n.key){case"ArrowRight":u&&(e=o(c,h?-1:1));break;case"ArrowLeft":u&&(e=o(c,h?1:-1));break;case"ArrowDown":u||(e=o(c,1));break;case"ArrowUp":u||(e=o(c,-1));break;case"Home":e=o(-1,1);break;case"End":e=o(r.length,-1);break}e>=0&&k(r[e])}},[d,r,u,h,o,k,f])}}exports.useKeyboardNavigation=b;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
interface KeyboardNavigationOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Current value of the selected item
|
|
4
|
+
*/
|
|
5
|
+
currentValue: string;
|
|
6
|
+
/**
|
|
7
|
+
* Array of all available item values
|
|
8
|
+
*/
|
|
9
|
+
items: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Reference to the container element
|
|
12
|
+
*/
|
|
13
|
+
containerRef: React.RefObject<HTMLElement>;
|
|
14
|
+
/**
|
|
15
|
+
* Data attribute to use to find items in the container
|
|
16
|
+
*/
|
|
17
|
+
dataAttribute: string;
|
|
18
|
+
/**
|
|
19
|
+
* CSS class name that indicates an item is disabled
|
|
20
|
+
*/
|
|
21
|
+
disabledClassName: string;
|
|
22
|
+
/**
|
|
23
|
+
* Callback to focus an item at a specific index
|
|
24
|
+
*/
|
|
25
|
+
onFocusItem: (value: string) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Callback to select an item
|
|
28
|
+
*/
|
|
29
|
+
onSelectItem?: (value: string) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the component is in horizontal orientation
|
|
32
|
+
*/
|
|
33
|
+
isHorizontal?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function useKeyboardNavigation({ currentValue, items, containerRef, dataAttribute, disabledClassName, onFocusItem, onSelectItem, isHorizontal, }: KeyboardNavigationOptions): {
|
|
36
|
+
handleKeyDown: (event: React.KeyboardEvent) => void;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { useRef as b, useEffect as x, useCallback as p } from "react";
|
|
2
|
+
import { useRTLDirection as i } from "./index.es.js";
|
|
3
|
+
function E({
|
|
4
|
+
currentValue: s,
|
|
5
|
+
items: r,
|
|
6
|
+
containerRef: f,
|
|
7
|
+
dataAttribute: d,
|
|
8
|
+
disabledClassName: g,
|
|
9
|
+
onFocusItem: k,
|
|
10
|
+
onSelectItem: w,
|
|
11
|
+
isHorizontal: t = !0
|
|
12
|
+
}) {
|
|
13
|
+
const h = i(f), y = b(/* @__PURE__ */ new Map());
|
|
14
|
+
x(() => {
|
|
15
|
+
if (!f.current) return;
|
|
16
|
+
const e = f.current, c = /* @__PURE__ */ new Map();
|
|
17
|
+
r.forEach((o) => {
|
|
18
|
+
const n = `[${d}="${CSS.escape(o)}"]`, u = e.querySelector(n);
|
|
19
|
+
c.set(
|
|
20
|
+
o,
|
|
21
|
+
(u == null ? void 0 : u.classList.contains(g)) ?? !1
|
|
22
|
+
);
|
|
23
|
+
}), y.current = c;
|
|
24
|
+
}, [r, f, d, g]);
|
|
25
|
+
const a = p(
|
|
26
|
+
(e, c) => {
|
|
27
|
+
if (!f.current) return -1;
|
|
28
|
+
let o = e, n = 0;
|
|
29
|
+
for (; n < r.length; ) {
|
|
30
|
+
o = (o + c + r.length) % r.length;
|
|
31
|
+
const u = r[o];
|
|
32
|
+
if (!y.current.get(u))
|
|
33
|
+
return o;
|
|
34
|
+
n++;
|
|
35
|
+
}
|
|
36
|
+
return -1;
|
|
37
|
+
},
|
|
38
|
+
[r, f]
|
|
39
|
+
);
|
|
40
|
+
return { handleKeyDown: p(
|
|
41
|
+
(e) => {
|
|
42
|
+
if (!r || r.length === 0)
|
|
43
|
+
return;
|
|
44
|
+
const c = r.indexOf(s);
|
|
45
|
+
if ([
|
|
46
|
+
"ArrowRight",
|
|
47
|
+
"ArrowLeft",
|
|
48
|
+
"ArrowDown",
|
|
49
|
+
"ArrowUp",
|
|
50
|
+
"Home",
|
|
51
|
+
"End",
|
|
52
|
+
"Enter",
|
|
53
|
+
" "
|
|
54
|
+
// Space
|
|
55
|
+
].includes(e.key)) {
|
|
56
|
+
if (e.preventDefault(), e.key === "Enter" || e.key === " ") {
|
|
57
|
+
w == null || w(s);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
let n = -1;
|
|
61
|
+
switch (e.key) {
|
|
62
|
+
case "ArrowRight":
|
|
63
|
+
t && (n = a(c, h ? -1 : 1));
|
|
64
|
+
break;
|
|
65
|
+
case "ArrowLeft":
|
|
66
|
+
t && (n = a(c, h ? 1 : -1));
|
|
67
|
+
break;
|
|
68
|
+
case "ArrowDown":
|
|
69
|
+
t || (n = a(c, 1));
|
|
70
|
+
break;
|
|
71
|
+
case "ArrowUp":
|
|
72
|
+
t || (n = a(c, -1));
|
|
73
|
+
break;
|
|
74
|
+
case "Home":
|
|
75
|
+
n = a(-1, 1);
|
|
76
|
+
break;
|
|
77
|
+
case "End":
|
|
78
|
+
n = a(r.length, -1);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
n >= 0 && k(r[n]);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
[
|
|
85
|
+
s,
|
|
86
|
+
r,
|
|
87
|
+
t,
|
|
88
|
+
h,
|
|
89
|
+
a,
|
|
90
|
+
k,
|
|
91
|
+
w
|
|
92
|
+
]
|
|
93
|
+
) };
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
E as useKeyboardNavigation
|
|
97
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../chunks/constants.hwjHOsvT.js"),l=require("../../chunks/helpers.COm6C5Gf.js"),u=require("react");function f(e,t){typeof window>"u"||!window.localStorage||window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}const c=l.debounce((e,t)=>{if(typeof window>"u"||!window.localStorage)return;const r=JSON.stringify(t);window.localStorage.setItem(e,r),f(e,r)},d.FPS_60),w=e=>{typeof window>"u"||!window.localStorage||(window.localStorage.removeItem(e),f(e,null))},S=e=>typeof window>"u"||!window.localStorage?null:window.localStorage.getItem(e);function g(e,t,r=!0){const[i,s]=u.useState(()=>{if(!r)return t??null;const o=S(e);return o!==null?o:typeof t<"u"?(c(e,t),JSON.stringify(t)):null}),a=u.useCallback(o=>{try{if(!r)return;const n=typeof o=="function"?o(i?JSON.parse(i):null):o;n==null?(w(e),s(null)):(c(e,n),s(JSON.stringify(n)))}catch(n){console.error(n)}},[e,i,r]);return u.useEffect(()=>{if(!r||typeof window>"u")return;const o=n=>{n.key===e&&s(n.newValue)};return window.addEventListener("storage",o),()=>window.removeEventListener("storage",o)},[e,r]),[i?JSON.parse(i):t,a]}exports.useLocalStorage=g;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { b as c } from "../../chunks/constants.BBi77pmH.js";
|
|
2
|
+
import { d as w } from "../../chunks/helpers.Wv7n4ip7.js";
|
|
3
|
+
import s from "react";
|
|
4
|
+
function d(t, e) {
|
|
5
|
+
typeof window > "u" || !window.localStorage || window.dispatchEvent(new StorageEvent("storage", { key: t, newValue: e }));
|
|
6
|
+
}
|
|
7
|
+
const u = w((t, e) => {
|
|
8
|
+
if (typeof window > "u" || !window.localStorage) return;
|
|
9
|
+
const r = JSON.stringify(e);
|
|
10
|
+
window.localStorage.setItem(t, r), d(t, r);
|
|
11
|
+
}, c), l = (t) => {
|
|
12
|
+
typeof window > "u" || !window.localStorage || (window.localStorage.removeItem(t), d(t, null));
|
|
13
|
+
}, S = (t) => typeof window > "u" || !window.localStorage ? null : window.localStorage.getItem(t);
|
|
14
|
+
function v(t, e, r = !0) {
|
|
15
|
+
const [i, f] = s.useState(() => {
|
|
16
|
+
if (!r) return e ?? null;
|
|
17
|
+
const o = S(t);
|
|
18
|
+
return o !== null ? o : typeof e < "u" ? (u(t, e), JSON.stringify(e)) : null;
|
|
19
|
+
}), a = s.useCallback(
|
|
20
|
+
(o) => {
|
|
21
|
+
try {
|
|
22
|
+
if (!r) return;
|
|
23
|
+
const n = typeof o == "function" ? o(i ? JSON.parse(i) : null) : o;
|
|
24
|
+
n == null ? (l(t), f(null)) : (u(t, n), f(JSON.stringify(n)));
|
|
25
|
+
} catch (n) {
|
|
26
|
+
console.error(n);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
[t, i, r]
|
|
30
|
+
);
|
|
31
|
+
return s.useEffect(() => {
|
|
32
|
+
if (!r || typeof window > "u") return;
|
|
33
|
+
const o = (n) => {
|
|
34
|
+
n.key === t && f(n.newValue);
|
|
35
|
+
};
|
|
36
|
+
return window.addEventListener("storage", o), () => window.removeEventListener("storage", o);
|
|
37
|
+
}, [t, r]), [i ? JSON.parse(i) : e, a];
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
v as useLocalStorage
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(...n){return e=>{for(const o of n){if(!o)continue;const t=o(e);if(e.defaultPrevented||t===!0)return}}}function p({baseProps:n,captureHandlers:e=[],bubbleHandlers:o=[]}){const{onKeyDown:t,onKeyDownCapture:s,...u}=n,a=r(...e,s),c=r(...o,t);return{...u,onKeyDownCapture:a,onKeyDown:c}}exports.augmentKeyboardProps=p;exports.composeHandlers=r;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type KeyHandler = (e: React.KeyboardEvent) => void | boolean | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Compose handlers. Stops after a handler prevents default or explicitly returns true.
|
|
5
|
+
*/
|
|
6
|
+
export declare function composeHandlers(...handlers: Array<KeyHandler | undefined>): KeyHandler;
|
|
7
|
+
export interface AugmentKeyboardPropsParams<E extends HTMLElement = HTMLElement> {
|
|
8
|
+
baseProps: React.HTMLProps<E>;
|
|
9
|
+
captureHandlers?: KeyHandler[];
|
|
10
|
+
bubbleHandlers?: KeyHandler[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Safely layer our handlers around an opaque set of base props which MAY include
|
|
14
|
+
* either `onKeyDown` and/or `onKeyDownCapture`, or neither. We treat their presence
|
|
15
|
+
* as optional and never assume a specific ordering inside the library.
|
|
16
|
+
*/
|
|
17
|
+
export declare function augmentKeyboardProps<E extends HTMLElement>({ baseProps, captureHandlers, bubbleHandlers }: AugmentKeyboardPropsParams<E>): React.HTMLProps<E>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function r(...o) {
|
|
2
|
+
return (e) => {
|
|
3
|
+
for (const n of o) {
|
|
4
|
+
if (!n) continue;
|
|
5
|
+
const t = n(e);
|
|
6
|
+
if (e.defaultPrevented || t === !0) return;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function p({ baseProps: o, captureHandlers: e = [], bubbleHandlers: n = [] }) {
|
|
11
|
+
const { onKeyDown: t, onKeyDownCapture: u, ...s } = o, c = r(...e, u), a = r(...n, t);
|
|
12
|
+
return {
|
|
13
|
+
...s,
|
|
14
|
+
onKeyDownCapture: c,
|
|
15
|
+
onKeyDown: a
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
p as augmentKeyboardProps,
|
|
20
|
+
r as composeHandlers
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function a(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const o=a(n),u={...o};exports.SafeReact=u;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const SafeReact: {
|
|
3
|
+
createFactory<T extends HTMLElement>(type: keyof React.ReactHTML): React.HTMLFactory<T>;
|
|
4
|
+
createFactory(type: keyof React.ReactSVG): React.SVGFactory;
|
|
5
|
+
createFactory<P extends React.DOMAttributes<T>, T extends Element>(type: string): React.DOMFactory<P, T>;
|
|
6
|
+
createFactory<P>(type: React.FunctionComponent<P>): React.FunctionComponentFactory<P>;
|
|
7
|
+
createFactory<P>(type: React.ClassType<P, React.ClassicComponent<P, React.ComponentState>, React.ClassicComponentClass<P>>): React.CFactory<P, React.ClassicComponent<P, React.ComponentState>>;
|
|
8
|
+
createFactory<P, T extends React.Component<P, React.ComponentState>, C extends React.ComponentClass<P>>(type: React.ClassType<P, T, C>): React.CFactory<P, T>;
|
|
9
|
+
createFactory<P>(type: React.ComponentClass<P>): React.Factory<P>;
|
|
10
|
+
createElement(type: "input", props?: (React.InputHTMLAttributes<HTMLInputElement> & React.ClassAttributes<HTMLInputElement>) | null, ...children: React.ReactNode[]): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
11
|
+
createElement<P extends React.HTMLAttributes<T>, T extends HTMLElement>(type: keyof React.ReactHTML, props?: (React.ClassAttributes<T> & P) | null, ...children: React.ReactNode[]): React.DetailedReactHTMLElement<P, T>;
|
|
12
|
+
createElement<P extends React.SVGAttributes<T>, T extends SVGElement>(type: keyof React.ReactSVG, props?: (React.ClassAttributes<T> & P) | null, ...children: React.ReactNode[]): React.ReactSVGElement;
|
|
13
|
+
createElement<P extends React.DOMAttributes<T>, T extends Element>(type: string, props?: (React.ClassAttributes<T> & P) | null, ...children: React.ReactNode[]): React.DOMElement<P, T>;
|
|
14
|
+
createElement<P extends {}>(type: React.FunctionComponent<P>, props?: (React.Attributes & P) | null, ...children: React.ReactNode[]): React.FunctionComponentElement<P>;
|
|
15
|
+
createElement<P extends {}>(type: React.ClassType<P, React.ClassicComponent<P, React.ComponentState>, React.ClassicComponentClass<P>>, props?: (React.ClassAttributes<React.ClassicComponent<P, React.ComponentState>> & P) | null, ...children: React.ReactNode[]): React.CElement<P, React.ClassicComponent<P, React.ComponentState>>;
|
|
16
|
+
createElement<P extends {}, T extends React.Component<P, React.ComponentState>, C extends React.ComponentClass<P>>(type: React.ClassType<P, T, C>, props?: (React.ClassAttributes<T> & P) | null, ...children: React.ReactNode[]): React.CElement<P, T>;
|
|
17
|
+
createElement<P extends {}>(type: React.FunctionComponent<P> | React.ComponentClass<P> | string, props?: (React.Attributes & P) | null, ...children: React.ReactNode[]): React.ReactElement<P>;
|
|
18
|
+
cloneElement<P extends React.HTMLAttributes<T>, T extends HTMLElement>(element: React.DetailedReactHTMLElement<P, T>, props?: P, ...children: React.ReactNode[]): React.DetailedReactHTMLElement<P, T>;
|
|
19
|
+
cloneElement<P extends React.HTMLAttributes<T>, T extends HTMLElement>(element: React.ReactHTMLElement<T>, props?: P, ...children: React.ReactNode[]): React.ReactHTMLElement<T>;
|
|
20
|
+
cloneElement<P extends React.SVGAttributes<T>, T extends SVGElement>(element: React.ReactSVGElement, props?: P, ...children: React.ReactNode[]): React.ReactSVGElement;
|
|
21
|
+
cloneElement<P extends React.DOMAttributes<T>, T extends Element>(element: React.DOMElement<P, T>, props?: React.DOMAttributes<T> & P, ...children: React.ReactNode[]): React.DOMElement<P, T>;
|
|
22
|
+
cloneElement<P>(element: React.FunctionComponentElement<P>, props?: Partial<P> & React.Attributes, ...children: React.ReactNode[]): React.FunctionComponentElement<P>;
|
|
23
|
+
cloneElement<P, T extends React.Component<P, React.ComponentState>>(element: React.CElement<P, T>, props?: Partial<P> & React.ClassAttributes<T>, ...children: React.ReactNode[]): React.CElement<P, T>;
|
|
24
|
+
cloneElement<P>(element: React.ReactElement<P>, props?: Partial<P> & React.Attributes, ...children: React.ReactNode[]): React.ReactElement<P>;
|
|
25
|
+
createContext<T>(defaultValue: T): React.Context<T>;
|
|
26
|
+
isValidElement<P>(object: {} | null | undefined): object is React.ReactElement<P>;
|
|
27
|
+
createRef<T>(): React.RefObject<T>;
|
|
28
|
+
forwardRef<T, P = {}>(render: React.ForwardRefRenderFunction<T, P>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
29
|
+
memo<P extends object>(Component: React.FunctionComponent<P>, propsAreEqual?: (prevProps: Readonly<React.PropsWithChildren<P>>, nextProps: Readonly<React.PropsWithChildren<P>>) => boolean): React.NamedExoticComponent<P>;
|
|
30
|
+
memo<T extends React.ComponentType<any>>(Component: T, propsAreEqual?: (prevProps: Readonly<React.ComponentProps<T>>, nextProps: Readonly<React.ComponentProps<T>>) => boolean): React.MemoExoticComponent<T>;
|
|
31
|
+
lazy<T extends React.ComponentType<any>>(factory: () => Promise<{
|
|
32
|
+
default: T;
|
|
33
|
+
}>): React.LazyExoticComponent<T>;
|
|
34
|
+
useContext<T>(context: React.Context<T>): T;
|
|
35
|
+
useState<S>(initialState: S | (() => S)): [S, React.Dispatch<React.SetStateAction<S>>];
|
|
36
|
+
useState<S = undefined>(): [S | undefined, React.Dispatch<React.SetStateAction<S | undefined>>];
|
|
37
|
+
useReducer<R extends React.ReducerWithoutAction<any>, I>(reducer: R, initializerArg: I, initializer: (arg: I) => React.ReducerStateWithoutAction<R>): [React.ReducerStateWithoutAction<R>, React.DispatchWithoutAction];
|
|
38
|
+
useReducer<R extends React.ReducerWithoutAction<any>>(reducer: R, initializerArg: React.ReducerStateWithoutAction<R>, initializer?: undefined): [React.ReducerStateWithoutAction<R>, React.DispatchWithoutAction];
|
|
39
|
+
useReducer<R extends React.Reducer<any, any>, I>(reducer: R, initializerArg: I & React.ReducerState<R>, initializer: (arg: I & React.ReducerState<R>) => React.ReducerState<R>): [React.ReducerState<R>, React.Dispatch<React.ReducerAction<R>>];
|
|
40
|
+
useReducer<R extends React.Reducer<any, any>, I>(reducer: R, initializerArg: I, initializer: (arg: I) => React.ReducerState<R>): [React.ReducerState<R>, React.Dispatch<React.ReducerAction<R>>];
|
|
41
|
+
useReducer<R extends React.Reducer<any, any>>(reducer: R, initialState: React.ReducerState<R>, initializer?: undefined): [React.ReducerState<R>, React.Dispatch<React.ReducerAction<R>>];
|
|
42
|
+
useRef<T>(initialValue: T): React.MutableRefObject<T>;
|
|
43
|
+
useRef<T>(initialValue: T | null): React.RefObject<T>;
|
|
44
|
+
useRef<T = undefined>(): React.MutableRefObject<T | undefined>;
|
|
45
|
+
useLayoutEffect(effect: React.EffectCallback, deps?: React.DependencyList): void;
|
|
46
|
+
useEffect(effect: React.EffectCallback, deps?: React.DependencyList): void;
|
|
47
|
+
useImperativeHandle<T, R extends T>(ref: React.Ref<T> | undefined, init: () => R, deps?: React.DependencyList): void;
|
|
48
|
+
useCallback<T extends (...args: any[]) => any>(callback: T, deps: React.DependencyList): T;
|
|
49
|
+
useMemo<T>(factory: () => T, deps: React.DependencyList | undefined): T;
|
|
50
|
+
useDebugValue<T>(value: T, format?: (value: T) => any): void;
|
|
51
|
+
Children: React.ReactChildren;
|
|
52
|
+
Fragment: React.ExoticComponent<{
|
|
53
|
+
children?: React.ReactNode | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
StrictMode: React.ExoticComponent<{
|
|
56
|
+
children?: React.ReactNode | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
Suspense: React.ExoticComponent<React.SuspenseProps>;
|
|
59
|
+
version: string;
|
|
60
|
+
Profiler: React.ExoticComponent<React.ProfilerProps>;
|
|
61
|
+
Component: typeof React.Component;
|
|
62
|
+
PureComponent: typeof React.PureComponent;
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../chunks/helpers.COm6C5Gf.js"),P=["m","mx","my","mTop","mBottom","mBefore","mAfter"],t=["p","px","py","pTop","pBottom","pBefore","pAfter"],o=["gap"],p=[...P,...t,...o],_=(r,e=p)=>A.partitionProps(r,e);exports.MARGIN_PROP_NAMES=P;exports.OTHER_SPACING_PROP_NAMES=o;exports.PADDING_PROP_NAMES=t;exports.SPACING_PROP_NAMES=p;exports.partitionSpacingProps=_;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Spacing } from '@viasat/beam-shared/utils';
|
|
2
|
+
export type PaddingSpacingProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Specify all padding
|
|
5
|
+
*/
|
|
6
|
+
p?: Spacing;
|
|
7
|
+
/**
|
|
8
|
+
* Specify all margin
|
|
9
|
+
*/
|
|
10
|
+
m?: Spacing;
|
|
11
|
+
/**
|
|
12
|
+
* Specify before and after padding
|
|
13
|
+
*/
|
|
14
|
+
px?: Spacing;
|
|
15
|
+
/**
|
|
16
|
+
* Specify top and bottom padding
|
|
17
|
+
*/
|
|
18
|
+
py?: Spacing;
|
|
19
|
+
/**
|
|
20
|
+
* Specify top padding
|
|
21
|
+
*/
|
|
22
|
+
pTop?: Spacing;
|
|
23
|
+
/**
|
|
24
|
+
* Specify bottom padding
|
|
25
|
+
*/
|
|
26
|
+
pBottom?: Spacing;
|
|
27
|
+
/**
|
|
28
|
+
* Specify before padding
|
|
29
|
+
*/
|
|
30
|
+
pBefore?: Spacing;
|
|
31
|
+
/**
|
|
32
|
+
* Specify after padding
|
|
33
|
+
*/
|
|
34
|
+
pAfter?: Spacing;
|
|
35
|
+
};
|
|
36
|
+
export type MarginSpacingProps = {
|
|
37
|
+
/**
|
|
38
|
+
* Specify all margin
|
|
39
|
+
*/
|
|
40
|
+
m?: Spacing;
|
|
41
|
+
/**
|
|
42
|
+
* Specify before and after margin
|
|
43
|
+
*/
|
|
44
|
+
mx?: Spacing;
|
|
45
|
+
/**
|
|
46
|
+
* Specify top and bottom margin
|
|
47
|
+
*/
|
|
48
|
+
my?: Spacing;
|
|
49
|
+
/**
|
|
50
|
+
* Specify top margin
|
|
51
|
+
*/
|
|
52
|
+
mTop?: Spacing;
|
|
53
|
+
/**
|
|
54
|
+
* Specify bottom margin
|
|
55
|
+
*/
|
|
56
|
+
mBottom?: Spacing;
|
|
57
|
+
/**
|
|
58
|
+
* Specify before margin
|
|
59
|
+
*/
|
|
60
|
+
mBefore?: Spacing;
|
|
61
|
+
/**
|
|
62
|
+
* Specify after margin
|
|
63
|
+
*/
|
|
64
|
+
mAfter?: Spacing;
|
|
65
|
+
};
|
|
66
|
+
export type OtherSpacingProps = {
|
|
67
|
+
/**
|
|
68
|
+
* Specify gap between child elements
|
|
69
|
+
*/
|
|
70
|
+
gap?: Spacing;
|
|
71
|
+
};
|
|
72
|
+
export type SpacingProps = PaddingSpacingProps & MarginSpacingProps & OtherSpacingProps;
|
|
73
|
+
export declare const MARGIN_PROP_NAMES: readonly ["m", "mx", "my", "mTop", "mBottom", "mBefore", "mAfter"];
|
|
74
|
+
export declare const PADDING_PROP_NAMES: readonly ["p", "px", "py", "pTop", "pBottom", "pBefore", "pAfter"];
|
|
75
|
+
export declare const OTHER_SPACING_PROP_NAMES: readonly ["gap"];
|
|
76
|
+
export declare const SPACING_PROP_NAMES: readonly ["m", "mx", "my", "mTop", "mBottom", "mBefore", "mAfter", "p", "px", "py", "pTop", "pBottom", "pBefore", "pAfter", "gap"];
|
|
77
|
+
export declare const partitionSpacingProps: <PartitionProps extends Record<string, unknown>>(props: PartitionProps, propNames?: readonly string[]) => [Record<string, Spacing | undefined>, Omit<PartitionProps, keyof (typeof propNames)[number]>];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { p as t } from "../chunks/helpers.Wv7n4ip7.js";
|
|
2
|
+
const r = [
|
|
3
|
+
"m",
|
|
4
|
+
"mx",
|
|
5
|
+
"my",
|
|
6
|
+
"mTop",
|
|
7
|
+
"mBottom",
|
|
8
|
+
"mBefore",
|
|
9
|
+
"mAfter"
|
|
10
|
+
], P = [
|
|
11
|
+
"p",
|
|
12
|
+
"px",
|
|
13
|
+
"py",
|
|
14
|
+
"pTop",
|
|
15
|
+
"pBottom",
|
|
16
|
+
"pBefore",
|
|
17
|
+
"pAfter"
|
|
18
|
+
], m = ["gap"], A = [
|
|
19
|
+
...r,
|
|
20
|
+
...P,
|
|
21
|
+
...m
|
|
22
|
+
], _ = (o, p = A) => t(o, p);
|
|
23
|
+
export {
|
|
24
|
+
r as MARGIN_PROP_NAMES,
|
|
25
|
+
m as OTHER_SPACING_PROP_NAMES,
|
|
26
|
+
P as PADDING_PROP_NAMES,
|
|
27
|
+
A as SPACING_PROP_NAMES,
|
|
28
|
+
_ as partitionSpacingProps
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useBeamTheme.cjs.js");exports.ALL_THEMES=e.ALL_THEMES;exports.BeamThemeProvider=e.BeamThemeProvider;exports.fromAttr=e.fromAttr;exports.toAttr=e.toAttr;exports.useBeamTheme=e.useBeamTheme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useBeamTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),d=require("react"),a=require("../../chunks/constants.hwjHOsvT.js");function K(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=K(d);var F=(e,n,t,s,r,o,h,u)=>{let f=document.documentElement,g=["light","dark"];function E(m){(Array.isArray(e)?e:[e]).forEach(p=>{let c=p==="class",A=c&&o?r.map(b=>o[b]||b):r;c?(f.classList.remove(...A),f.classList.add(o&&o[m]?o[m]:m)):f.setAttribute(p,m)}),v(m)}function v(m){u&&g.includes(m)&&(f.style.colorScheme=m)}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)E(s);else try{let m=localStorage.getItem(n)||t,p=h&&m==="system"?i():m;E(p)}catch{}},D=["light","dark"],N="(prefers-color-scheme: dark)",V=typeof window>"u",P=l.createContext(void 0),Q={setTheme:e=>{},themes:[]},W=()=>{var e;return(e=l.useContext(P))!=null?e:Q},q=e=>l.useContext(P)?l.createElement(l.Fragment,null,e.children):l.createElement(G,{...e}),z=["light","dark"],G=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:t=!0,enableColorScheme:s=!0,storageKey:r="theme",themes:o=z,defaultTheme:h=t?"system":"light",attribute:u="data-theme",value:f,children:g,nonce:E,scriptProps:v})=>{let[i,m]=l.useState(()=>$(r,h)),[p,c]=l.useState(()=>i==="system"?L():i),A=f?Object.values(f):o,b=l.useCallback(T=>{let y=T;if(!y)return;T==="system"&&t&&(y=L());let M=f?f[y]:y,x=n?X(E):null,k=document.documentElement,j=S=>{S==="class"?(k.classList.remove(...A),M&&k.classList.add(M)):S.startsWith("data-")&&(M?k.setAttribute(S,M):k.removeAttribute(S))};if(Array.isArray(u)?u.forEach(j):j(u),s){let S=D.includes(h)?h:null,H=D.includes(y)?y:S;k.style.colorScheme=H}x==null||x()},[E]),C=l.useCallback(T=>{let y=typeof T=="function"?T(i):T;m(y);try{localStorage.setItem(r,y)}catch{}},[i]),_=l.useCallback(T=>{let y=L(T);c(y),i==="system"&&t&&!e&&b("system")},[i,e]);l.useEffect(()=>{let T=window.matchMedia(N);return T.addListener(_),_(T),()=>T.removeListener(_)},[_]),l.useEffect(()=>{let T=y=>{y.key===r&&(y.newValue?m(y.newValue):C(h))};return window.addEventListener("storage",T),()=>window.removeEventListener("storage",T)},[C]),l.useEffect(()=>{b(e??i)},[e,i]);let Y=l.useMemo(()=>({theme:i,setTheme:C,forcedTheme:e,resolvedTheme:i==="system"?p:i,themes:t?[...o,"system"]:o,systemTheme:t?p:void 0}),[i,C,e,p,t,o]);return l.createElement(P.Provider,{value:Y},l.createElement(J,{forcedTheme:e,storageKey:r,attribute:u,enableSystem:t,enableColorScheme:s,defaultTheme:h,value:f,themes:o,nonce:E,scriptProps:v}),g)},J=l.memo(({forcedTheme:e,storageKey:n,attribute:t,enableSystem:s,enableColorScheme:r,defaultTheme:o,value:h,themes:u,nonce:f,scriptProps:g})=>{let E=JSON.stringify([t,n,o,e,u,h,s,r]).slice(1,-1);return l.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${F.toString()})(${E})`}})}),$=(e,n)=>{if(V)return;let t;try{t=localStorage.getItem(e)||void 0}catch{}return t||n},X=e=>{let n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(n)},1)}},L=e=>(e||(e=window.matchMedia(N)),e.matches?"dark":"light");const w=e=>[a.themeClassName(e.mode),a.accentThemeClassName(e.accent),"bm-expressive-accent",a.productTypeThemeClassName(e.productType)].join(" "),R=e=>{var o,h;if(!e)return a.DEFAULT_THEME;e=e.replaceAll(a.prefix,"");const n=e.split(" "),t=a.themeTypeValues.find(u=>n.includes(u))??a.DEFAULT_MODE,s=((o=Object.entries(a.ACCENT).find(([,u])=>n.includes(u)))==null?void 0:o[1])??a.DEFAULT_ACCENT,r=((h=Object.entries(a.PRODUCT_TYPE).find(([,u])=>n.includes(u)))==null?void 0:h[1])??a.DEFAULT_PRODUCT_TYPE;return{mode:t,accent:s,productType:r}},U=Object.values(a.themeTypeValues).flatMap(e=>Object.values(a.ACCENT).flatMap(n=>Object.values(a.PRODUCT_TYPE).map(t=>[a.themeClassName(e),a.accentThemeClassName(n),"bm-expressive-accent",a.productTypeThemeClassName(t)].join(" ")))),B="(prefers-color-scheme: dark)";function Z(){return typeof window>"u"?"light":window.matchMedia(B).matches?"dark":"light"}const I=d.createContext(null),ee=q,te=({children:e,defaultTheme:n=a.DEFAULT_THEME,forcedMode:t,enableSystemMode:s=!1,...r})=>{const o={...a.DEFAULT_THEME,...n,mode:t??(s?Z():n.mode)};return O.jsx(ee,{attribute:a.ATTRIBUTE,storageKey:a.STORAGE_KEY,defaultTheme:w(o),themes:U,enableSystem:!0,enableColorScheme:!1,...r,children:O.jsx(ne,{enableSystemMode:s,forcedMode:t,children:e})})},ne=({children:e,enableSystemMode:n,forcedMode:t})=>{const s=W(),r=d.useMemo(()=>R(s.theme),[s.theme]),o=d.useCallback(c=>{t||s.setTheme(w({...r,mode:c}))},[r,s,t]),h=d.useCallback(c=>s.setTheme(w({...r,accent:c})),[r,s]),u=d.useCallback(c=>s.setTheme(w({...r,productType:c})),[r,s]),f=d.useCallback(()=>o(r.mode==="light"?"dark":"light"),[r.mode,o]),g=d.useCallback(()=>{if(typeof window>"u")return;const c=localStorage.getItem(a.SYSTEM_MODE_ENABLED_KEY);return c?c==="true":n},[n]),[E,v]=d.useState(void 0),i=d.useCallback(c=>{v(c),localStorage.setItem(a.SYSTEM_MODE_ENABLED_KEY,c.toString())},[v]);d.useEffect(()=>{i(g()??n),t&&s.setTheme(w({...r,mode:t}))},[]);const m=d.useRef(o);m.current=o,d.useEffect(()=>{if(typeof window>"u")return;const c=window.matchMedia(B),A=localStorage.getItem(a.STORAGE_KEY),b=C=>{E&&m.current(C.matches?"dark":"light")};return E&&(!A&&m.current(c.matches?"dark":"light"),c.addEventListener("change",b)),()=>{c.removeEventListener("change",b)}},[E]),d.useEffect(()=>{typeof window>"u"||(document.documentElement.style.colorScheme=r.mode)},[r.mode]);const p=d.useMemo(()=>({theme:r,systemMode:s.systemTheme,systemModeEnabled:E,setSystemModeEnabled:i,setMode:o,setAccent:h,setProductType:u,toggleMode:f}),[r,s.systemTheme,E,i,o,h,u,f]);return O.jsx(I.Provider,{value:p,children:e})},se=()=>{const e=d.useContext(I);if(!e)throw new Error("useBeamTheme must be used within <BeamThemeProvider>");return e};exports.ALL_THEMES=U;exports.BeamThemeProvider=te;exports.fromAttr=R;exports.toAttr=w;exports.useBeamTheme=se;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BeamTheme, ThemeTypes, Accent, ProductType } from '@viasat/beam-shared/utils/constants';
|
|
2
|
+
export declare const toAttr: (t: BeamTheme) => string;
|
|
3
|
+
export declare const fromAttr: (attr?: string) => BeamTheme;
|
|
4
|
+
export declare const ALL_THEMES: string[];
|
|
5
|
+
export interface BeamThemeContextValue {
|
|
6
|
+
theme: BeamTheme;
|
|
7
|
+
systemMode: ThemeTypes | undefined;
|
|
8
|
+
systemModeEnabled: boolean | undefined;
|
|
9
|
+
setSystemModeEnabled: (enabled: boolean) => void;
|
|
10
|
+
setMode: (mode: ThemeTypes) => void;
|
|
11
|
+
setAccent: (accent: Accent) => void;
|
|
12
|
+
setProductType: (productType: ProductType) => void;
|
|
13
|
+
toggleMode: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface BeamThemeProviderProps {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* The default mode, accent and productType to use.
|
|
19
|
+
*/
|
|
20
|
+
defaultTheme?: Partial<BeamTheme>;
|
|
21
|
+
/**
|
|
22
|
+
* If provided, the mode will be locked to the provided value and all mode controls will be a no-op.
|
|
23
|
+
*/
|
|
24
|
+
forcedMode?: ThemeTypes;
|
|
25
|
+
/**
|
|
26
|
+
* If true, the system mode will be used as the default mode and will
|
|
27
|
+
* dynamically update mode when the system theme changes. Otherwise, the default mode will be used.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
enableSystemMode?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const BeamThemeProvider: React.FC<BeamThemeProviderProps>;
|
|
34
|
+
export declare const useBeamTheme: () => BeamThemeContextValue;
|