@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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("../../chunks/pagination.BpxTz0AB.js"),I=require("./Truncation.cjs.js"),i=require("./PageButton.cjs.js"),A=({shouldTruncate:l,currentPage:e,offset:n,onPageChange:a})=>{const s=t.calculateTotalOffset(n),r=l&&e<t.MAX_INITIAL_PAGES+n?t.createPageRange(1,t.MAX_INITIAL_PAGES-1+s):[1];return i.renderPageButtons(r,e,a)},_=({shouldTruncate:l,currentPage:e,offset:n,totalPages:a,onPageChange:s})=>{const r=t.getAdjustedTotalPages(a),o=t.calculateTotalOffset(n);if(!l)return i.renderPageButtons(t.createPageRange(t.MIDPOINT_START,r),e,s);const c=t.generateMiddlePages(a,e,n),d=e>=t.MAX_INITIAL_PAGES+n?u.jsx(I.Truncation,{start:t.MIDPOINT_START,end:Math.min(r-o,e-n),handler:g=>s(parseInt(g.target.value,10))},"lower-truncation"):null,T=e<r-n?u.jsx(I.Truncation,{start:Math.max(t.MAX_INITIAL_PAGES+o,e+1+n),end:a,handler:g=>s(parseInt(g.target.value,10))},"higher-truncation"):null;return[d,...i.renderPageButtons(c,e,s),T].filter(Boolean)},M=({shouldTruncate:l,currentPage:e,offset:n,totalPages:a,onPageChange:s})=>{if(a<=1)return[];const r=t.getAdjustedTotalPages(a),o=t.calculateTotalOffset(n),c=l&&e>=r-n?t.createPageRange(r-o,t.MAX_END_PAGES+o):[a];return i.renderPageButtons(c,e,s)},N=({currentPage:l,onPageChange:e,offset:n,totalPages:a})=>{const s=t.calculateTotalOffset(n),o={shouldTruncate:a>t.TRUNCATION_PAGE_MINIMUM+s,currentPage:l,offset:n,totalPages:a,onPageChange:e},c=[...A(o),..._(o),...M(o)];return u.jsx(u.Fragment,{children:c.map((d,T)=>u.jsx(u.Fragment,{children:d},T))})};exports.PageButtons=N;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface PageButtonsProps {
|
|
2
|
+
currentPage: number;
|
|
3
|
+
onPageChange: (page: number) => void;
|
|
4
|
+
offset: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const PageButtons: ({ currentPage, onPageChange, offset, totalPages, }: PageButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as c, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { M as i, c as I, g as O, a as h, b as N, d as _, T as g, e as u } from "../../chunks/pagination.Cx3KTy4R.js";
|
|
3
|
+
import { Truncation as A } from "./Truncation.es.js";
|
|
4
|
+
import { renderPageButtons as d } from "./PageButton.es.js";
|
|
5
|
+
const B = ({
|
|
6
|
+
shouldTruncate: e,
|
|
7
|
+
currentPage: t,
|
|
8
|
+
offset: n,
|
|
9
|
+
onPageChange: s
|
|
10
|
+
}) => {
|
|
11
|
+
const a = u(n), o = e && t < i + n ? I(1, i - 1 + a) : [1];
|
|
12
|
+
return d(o, t, s);
|
|
13
|
+
}, j = ({
|
|
14
|
+
shouldTruncate: e,
|
|
15
|
+
currentPage: t,
|
|
16
|
+
offset: n,
|
|
17
|
+
totalPages: s,
|
|
18
|
+
onPageChange: a
|
|
19
|
+
}) => {
|
|
20
|
+
const o = N(s), r = u(n);
|
|
21
|
+
if (!e)
|
|
22
|
+
return d(
|
|
23
|
+
I(h, o),
|
|
24
|
+
t,
|
|
25
|
+
a
|
|
26
|
+
);
|
|
27
|
+
const l = O(s, t, n), T = t >= i + n ? /* @__PURE__ */ c(
|
|
28
|
+
A,
|
|
29
|
+
{
|
|
30
|
+
start: h,
|
|
31
|
+
end: Math.min(o - r, t - n),
|
|
32
|
+
handler: (p) => a(parseInt(p.target.value, 10))
|
|
33
|
+
},
|
|
34
|
+
"lower-truncation"
|
|
35
|
+
) : null, m = t < o - n ? /* @__PURE__ */ c(
|
|
36
|
+
A,
|
|
37
|
+
{
|
|
38
|
+
start: Math.max(i + r, t + 1 + n),
|
|
39
|
+
end: s,
|
|
40
|
+
handler: (p) => a(parseInt(p.target.value, 10))
|
|
41
|
+
},
|
|
42
|
+
"higher-truncation"
|
|
43
|
+
) : null;
|
|
44
|
+
return [
|
|
45
|
+
T,
|
|
46
|
+
...d(l, t, a),
|
|
47
|
+
m
|
|
48
|
+
].filter(Boolean);
|
|
49
|
+
}, E = ({
|
|
50
|
+
shouldTruncate: e,
|
|
51
|
+
currentPage: t,
|
|
52
|
+
offset: n,
|
|
53
|
+
totalPages: s,
|
|
54
|
+
onPageChange: a
|
|
55
|
+
}) => {
|
|
56
|
+
if (s <= 1) return [];
|
|
57
|
+
const o = N(s), r = u(n), l = e && t >= o - n ? I(
|
|
58
|
+
o - r,
|
|
59
|
+
_ + r
|
|
60
|
+
) : [s];
|
|
61
|
+
return d(l, t, a);
|
|
62
|
+
}, S = ({
|
|
63
|
+
currentPage: e,
|
|
64
|
+
onPageChange: t,
|
|
65
|
+
offset: n,
|
|
66
|
+
totalPages: s
|
|
67
|
+
}) => {
|
|
68
|
+
const a = u(n), r = { shouldTruncate: s > g + a, currentPage: e, offset: n, totalPages: s, onPageChange: t }, l = [
|
|
69
|
+
...B(r),
|
|
70
|
+
...j(r),
|
|
71
|
+
...E(r)
|
|
72
|
+
];
|
|
73
|
+
return /* @__PURE__ */ c(M, { children: l.map((T, m) => /* @__PURE__ */ c(M, { children: T }, m)) });
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
S as PageButtons
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var y=require("../../assets/Pagination.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("react"),d=require("clsx"),h=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const q=require("../../chunks/pagination.BpxTz0AB.js"),v=require("./PageButtons.cjs.js"),x=require("./PaginationControls.cjs.js"),b={"bm-light":"bm-light","bm-dark":"bm-dark","bm-inverse":"bm-inverse","bm-pagination":"bm-pagination","bm-pagination--determinate":"bm-pagination--determinate","bm-pagination__chevrons":"bm-pagination__chevrons","bm-state-layer":"bm-state-layer","bm-pagination__buttons":"bm-pagination__buttons","bm-pagination__truncation":"bm-pagination__truncation","bm-pagination__buttons--active":"bm-pagination__buttons--active"},j=({totalPages:e,onPageChange:s,offset:g=0,currentPage:n=1,indeterminate:i=!1,controlsFirstLast:u=!1,className:l})=>{const{baseClassNamePrefix:_,classModifierPrefix:p}=h.getBEMClassNames("pagination"),[o,r]=t.useState(n),f=q.compensateOffset(e,g),P=d(b[_],!i&&b[`${p}determinate`],l),c=t.useCallback(m=>{r(m),s(m)},[s]);t.useEffect(()=>{n>0&&r(n)},[n]);const C=t.useRef(null);return a.jsx("div",{className:P,ref:C,children:a.jsx(x.PaginationControls,{totalPages:e,onPageChange:c,currentPage:o,controlsFirstLast:u,children:!i&&a.jsx(v.PageButtons,{totalPages:e,offset:f,onPageChange:c,currentPage:o})})})};exports.Pagination=j;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PaginationProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/** Callback to execute on page change
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
onPageChange: (desiredPageNumber: number) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Sets total number of pages
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
totalPages: number;
|
|
12
|
+
/**
|
|
13
|
+
* The currently active page in the pagination.
|
|
14
|
+
* @default 1
|
|
15
|
+
*/
|
|
16
|
+
currentPage?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Specify if Pagination displays without a page count
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
indeterminate?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Specify how many extra items display on each side of the active item
|
|
24
|
+
* @default 0
|
|
25
|
+
*/
|
|
26
|
+
offset?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Specify if the first and last Pagination controls display
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
controlsFirstLast?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const Pagination: ({ totalPages, onPageChange, offset: userOffset, currentPage: initialPage, indeterminate, controlsFirstLast, className: _className, }: PaginationProps) => React.ReactElement;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import "../../assets/Pagination.css";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useState as C, useCallback as v, useEffect as d, useRef as x } from "react";
|
|
4
|
+
import N from "clsx";
|
|
5
|
+
import { g as P } from "../../chunks/classNames.DNsS4J__.js";
|
|
6
|
+
import "../../chunks/constants.BBi77pmH.js";
|
|
7
|
+
import { f as k } from "../../chunks/pagination.Cx3KTy4R.js";
|
|
8
|
+
import { PageButtons as y } from "./PageButtons.es.js";
|
|
9
|
+
import { PaginationControls as B } from "./PaginationControls.es.js";
|
|
10
|
+
const b = {
|
|
11
|
+
"bm-light": "bm-light",
|
|
12
|
+
"bm-dark": "bm-dark",
|
|
13
|
+
"bm-inverse": "bm-inverse",
|
|
14
|
+
"bm-pagination": "bm-pagination",
|
|
15
|
+
"bm-pagination--determinate": "bm-pagination--determinate",
|
|
16
|
+
"bm-pagination__chevrons": "bm-pagination__chevrons",
|
|
17
|
+
"bm-state-layer": "bm-state-layer",
|
|
18
|
+
"bm-pagination__buttons": "bm-pagination__buttons",
|
|
19
|
+
"bm-pagination__truncation": "bm-pagination__truncation",
|
|
20
|
+
"bm-pagination__buttons--active": "bm-pagination__buttons--active"
|
|
21
|
+
}, z = ({
|
|
22
|
+
totalPages: n,
|
|
23
|
+
onPageChange: o,
|
|
24
|
+
offset: c = 0,
|
|
25
|
+
currentPage: t = 1,
|
|
26
|
+
indeterminate: e = !1,
|
|
27
|
+
controlsFirstLast: p = !1,
|
|
28
|
+
className: f
|
|
29
|
+
}) => {
|
|
30
|
+
const { baseClassNamePrefix: g, classModifierPrefix: _ } = P("pagination"), [s, i] = C(t), l = k(n, c), u = N(
|
|
31
|
+
b[g],
|
|
32
|
+
!e && b[`${_}determinate`],
|
|
33
|
+
f
|
|
34
|
+
), m = v(
|
|
35
|
+
(r) => {
|
|
36
|
+
i(r), o(r);
|
|
37
|
+
},
|
|
38
|
+
[o]
|
|
39
|
+
);
|
|
40
|
+
d(() => {
|
|
41
|
+
t > 0 && i(t);
|
|
42
|
+
}, [t]);
|
|
43
|
+
const h = x(null);
|
|
44
|
+
return /* @__PURE__ */ a("div", { className: u, ref: h, children: /* @__PURE__ */ a(
|
|
45
|
+
B,
|
|
46
|
+
{
|
|
47
|
+
totalPages: n,
|
|
48
|
+
onPageChange: m,
|
|
49
|
+
currentPage: s,
|
|
50
|
+
controlsFirstLast: p,
|
|
51
|
+
children: !e && /* @__PURE__ */ a(
|
|
52
|
+
y,
|
|
53
|
+
{
|
|
54
|
+
totalPages: n,
|
|
55
|
+
offset: l,
|
|
56
|
+
onPageChange: m,
|
|
57
|
+
currentPage: s
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
) });
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
z as Pagination
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),u=require("../../chunks/pagination.BpxTz0AB.js"),d=require("../Button/Button.cjs.js"),v=require("../../chunks/ChevronLeftCurved.JKg9pOxN.js"),g=require("../../chunks/ChevronRightCurved.CoT-Bqyo.js"),f=require("react"),b=require("../../chunks/classNames.DAeKwerT.js");function p(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=p(f),m=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M7.33333 6C6.8731 6 6.5 6.3731 6.5 6.83333V17.1667C6.5 17.6269 6.8731 18 7.33333 18C7.79357 18 8.16667 17.6269 8.16667 17.1667V6.83333C8.16667 6.3731 7.79357 6 7.33333 6Z",fill:"currentColor"}),s.createElement("path",{d:"M16.7786 6.03959C16.9048 6.07619 17.0225 6.13729 17.125 6.2194C17.2276 6.30145 17.313 6.4029 17.3764 6.51798C17.4398 6.63305 17.4798 6.75947 17.4943 6.89004C17.5088 7.0206 17.4974 7.15274 17.4608 7.2789C17.4242 7.40506 17.3631 7.52278 17.281 7.62532L13.7812 12.0001L17.281 16.3748C17.4468 16.5819 17.5235 16.8464 17.4942 17.1101C17.465 17.3737 17.3322 17.615 17.125 17.7807C16.9179 17.9465 16.6534 18.0231 16.3898 17.9939C16.1261 17.9646 15.8849 17.8318 15.7191 17.6247L11.7194 12.625C11.5774 12.4477 11.5 12.2272 11.5 12.0001C11.5 11.7729 11.5774 11.5524 11.7194 11.3751L15.7191 6.37539C15.8012 6.2728 15.9026 6.18738 16.0177 6.12402C16.1328 6.06066 16.2592 6.02059 16.3898 6.0061C16.5203 5.99161 16.6525 6.00299 16.7786 6.03959Z",fill:"currentColor"})),x=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M16.6671 18C17.1273 18 17.5004 17.6269 17.5004 17.1667V6.83333C17.5004 6.3731 17.1273 6 16.6671 6C16.2069 6 15.8338 6.3731 15.8338 6.83333L15.8338 17.1667C15.8338 17.6269 16.2069 18 16.6671 18Z",fill:"currentColor"}),s.createElement("path",{d:"M7.2218 17.9604C7.09564 17.9238 6.97793 17.8627 6.87539 17.7806C6.7728 17.6986 6.68738 17.5971 6.62401 17.482C6.56065 17.367 6.52058 17.2405 6.50609 17.11C6.49161 16.9794 6.50299 16.8473 6.53959 16.7211C6.57619 16.5949 6.63729 16.4772 6.71939 16.3747L10.2192 11.9999L6.71939 7.6252C6.55364 7.41808 6.47696 7.1536 6.50622 6.88994C6.53547 6.62628 6.66826 6.38503 6.87539 6.21928C7.08251 6.05353 7.34699 5.97685 7.61065 6.0061C7.87431 6.03536 8.11555 6.16815 8.2813 6.37527L12.2811 11.375C12.4231 11.5523 12.5004 11.7728 12.5004 11.9999C12.5004 12.2271 12.4231 12.4476 12.2811 12.6249L8.2813 17.6246C8.19925 17.7272 8.0978 17.8126 7.98273 17.876C7.86765 17.9393 7.74123 17.9794 7.61066 17.9939C7.4801 18.0084 7.34796 17.997 7.2218 17.9604Z",fill:"currentColor"})),l=({onClick:e,icon:r,disabled:t,...o})=>{const{subElementClassPrefix:a}=b.getBEMClassNames("pagination"),i=`${a}chevrons`;return n.jsx(d.Button,{appearance:"neutral",className:i,disabled:t,iconBefore:r,iconOnly:!0,kind:"ghost",onClick:e,size:"sm",...o})},h=({currentPage:e,controlsFirstLast:r,onPageChange:t,totalPages:o,children:a})=>{const i=e===1,C=e===o,c=r&&o>u.MAX_END_PAGES;return n.jsxs(n.Fragment,{children:[c&&n.jsx(l,{disabled:i,icon:n.jsx(m,{"aria-label":"First Page",role:"button"}),onClick:()=>t(1)},"first-page"),n.jsx(l,{disabled:i,icon:n.jsx(v.SvgChevronLeftCurved,{"aria-label":"Previous Page",role:"button"}),onClick:()=>t(e-1)},"previous-page"),a,n.jsx(l,{disabled:C,icon:n.jsx(g.SvgChevronRightCurved,{"aria-label":"Next Page",role:"button"}),onClick:()=>t(e+1)},"next-page"),c&&n.jsx(l,{disabled:C,icon:n.jsx(x,{"aria-label":"Last Page",role:"button"}),onClick:()=>t(o)},"last-page")]})};exports.PageControlButton=l;exports.PaginationControls=h;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button';
|
|
2
|
+
interface PageControlButton extends Omit<ButtonProps, 'onClick'> {
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const PageControlButton: ({ onClick, icon, disabled, ...rest }: PageControlButton) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
interface PaginationControlsProps {
|
|
8
|
+
currentPage: number;
|
|
9
|
+
controlsFirstLast: boolean;
|
|
10
|
+
onPageChange: (page: number) => void;
|
|
11
|
+
totalPages: number;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const PaginationControls: ({ currentPage, controlsFirstLast, onPageChange, totalPages, children, }: PaginationControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx as t, jsxs as m, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { d as v } from "../../chunks/pagination.Cx3KTy4R.js";
|
|
3
|
+
import { Button as d } from "../Button/Button.es.js";
|
|
4
|
+
import { S as u } from "../../chunks/ChevronLeftCurved.CX7aH27X.js";
|
|
5
|
+
import { S as f } from "../../chunks/ChevronRightCurved.9hi9Zc8J.js";
|
|
6
|
+
import * as r from "react";
|
|
7
|
+
import { g } from "../../chunks/classNames.DNsS4J__.js";
|
|
8
|
+
const L = (e) => /* @__PURE__ */ r.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ r.createElement("path", { d: "M7.33333 6C6.8731 6 6.5 6.3731 6.5 6.83333V17.1667C6.5 17.6269 6.8731 18 7.33333 18C7.79357 18 8.16667 17.6269 8.16667 17.1667V6.83333C8.16667 6.3731 7.79357 6 7.33333 6Z", fill: "currentColor" }), /* @__PURE__ */ r.createElement("path", { d: "M16.7786 6.03959C16.9048 6.07619 17.0225 6.13729 17.125 6.2194C17.2276 6.30145 17.313 6.4029 17.3764 6.51798C17.4398 6.63305 17.4798 6.75947 17.4943 6.89004C17.5088 7.0206 17.4974 7.15274 17.4608 7.2789C17.4242 7.40506 17.3631 7.52278 17.281 7.62532L13.7812 12.0001L17.281 16.3748C17.4468 16.5819 17.5235 16.8464 17.4942 17.1101C17.465 17.3737 17.3322 17.615 17.125 17.7807C16.9179 17.9465 16.6534 18.0231 16.3898 17.9939C16.1261 17.9646 15.8849 17.8318 15.7191 17.6247L11.7194 12.625C11.5774 12.4477 11.5 12.2272 11.5 12.0001C11.5 11.7729 11.5774 11.5524 11.7194 11.3751L15.7191 6.37539C15.8012 6.2728 15.9026 6.18738 16.0177 6.12402C16.1328 6.06066 16.2592 6.02059 16.3898 6.0061C16.5203 5.99161 16.6525 6.00299 16.7786 6.03959Z", fill: "currentColor" })), b = (e) => /* @__PURE__ */ r.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ r.createElement("path", { d: "M16.6671 18C17.1273 18 17.5004 17.6269 17.5004 17.1667V6.83333C17.5004 6.3731 17.1273 6 16.6671 6C16.2069 6 15.8338 6.3731 15.8338 6.83333L15.8338 17.1667C15.8338 17.6269 16.2069 18 16.6671 18Z", fill: "currentColor" }), /* @__PURE__ */ r.createElement("path", { d: "M7.2218 17.9604C7.09564 17.9238 6.97793 17.8627 6.87539 17.7806C6.7728 17.6986 6.68738 17.5971 6.62401 17.482C6.56065 17.367 6.52058 17.2405 6.50609 17.11C6.49161 16.9794 6.50299 16.8473 6.53959 16.7211C6.57619 16.5949 6.63729 16.4772 6.71939 16.3747L10.2192 11.9999L6.71939 7.6252C6.55364 7.41808 6.47696 7.1536 6.50622 6.88994C6.53547 6.62628 6.66826 6.38503 6.87539 6.21928C7.08251 6.05353 7.34699 5.97685 7.61065 6.0061C7.87431 6.03536 8.11555 6.16815 8.2813 6.37527L12.2811 11.375C12.4231 11.5523 12.5004 11.7728 12.5004 11.9999C12.5004 12.2271 12.4231 12.4476 12.2811 12.6249L8.2813 17.6246C8.19925 17.7272 8.0978 17.8126 7.98273 17.876C7.86765 17.9393 7.74123 17.9794 7.61066 17.9939C7.4801 18.0084 7.34796 17.997 7.2218 17.9604Z", fill: "currentColor" })), C = ({
|
|
9
|
+
onClick: e,
|
|
10
|
+
icon: l,
|
|
11
|
+
disabled: o,
|
|
12
|
+
...n
|
|
13
|
+
}) => {
|
|
14
|
+
const { subElementClassPrefix: a } = g("pagination"), s = `${a}chevrons`;
|
|
15
|
+
return /* @__PURE__ */ t(
|
|
16
|
+
d,
|
|
17
|
+
{
|
|
18
|
+
appearance: "neutral",
|
|
19
|
+
className: s,
|
|
20
|
+
disabled: o,
|
|
21
|
+
iconBefore: l,
|
|
22
|
+
iconOnly: !0,
|
|
23
|
+
kind: "ghost",
|
|
24
|
+
onClick: e,
|
|
25
|
+
size: "sm",
|
|
26
|
+
...n
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}, M = ({
|
|
30
|
+
currentPage: e,
|
|
31
|
+
controlsFirstLast: l,
|
|
32
|
+
onPageChange: o,
|
|
33
|
+
totalPages: n,
|
|
34
|
+
children: a
|
|
35
|
+
}) => {
|
|
36
|
+
const s = e === 1, i = e === n, c = l && n > v;
|
|
37
|
+
return /* @__PURE__ */ m(p, { children: [
|
|
38
|
+
c && /* @__PURE__ */ t(
|
|
39
|
+
C,
|
|
40
|
+
{
|
|
41
|
+
disabled: s,
|
|
42
|
+
icon: /* @__PURE__ */ t(L, { "aria-label": "First Page", role: "button" }),
|
|
43
|
+
onClick: () => o(1)
|
|
44
|
+
},
|
|
45
|
+
"first-page"
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ t(
|
|
48
|
+
C,
|
|
49
|
+
{
|
|
50
|
+
disabled: s,
|
|
51
|
+
icon: /* @__PURE__ */ t(u, { "aria-label": "Previous Page", role: "button" }),
|
|
52
|
+
onClick: () => o(e - 1)
|
|
53
|
+
},
|
|
54
|
+
"previous-page"
|
|
55
|
+
),
|
|
56
|
+
a,
|
|
57
|
+
/* @__PURE__ */ t(
|
|
58
|
+
C,
|
|
59
|
+
{
|
|
60
|
+
disabled: i,
|
|
61
|
+
icon: /* @__PURE__ */ t(f, { "aria-label": "Next Page", role: "button" }),
|
|
62
|
+
onClick: () => o(e + 1)
|
|
63
|
+
},
|
|
64
|
+
"next-page"
|
|
65
|
+
),
|
|
66
|
+
c && /* @__PURE__ */ t(
|
|
67
|
+
C,
|
|
68
|
+
{
|
|
69
|
+
disabled: i,
|
|
70
|
+
icon: /* @__PURE__ */ t(b, { "aria-label": "Last Page", role: "button" }),
|
|
71
|
+
onClick: () => o(n)
|
|
72
|
+
},
|
|
73
|
+
"last-page"
|
|
74
|
+
)
|
|
75
|
+
] });
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
C as PageControlButton,
|
|
79
|
+
M as PaginationControls
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const i=({start:e,end:o,handler:a})=>{const{subElementClassPrefix:r}=l.getBEMClassNames("pagination"),t=`${r}truncation`;return s.jsxs("select",{"aria-label":"Choose page number",onChange:a,value:"...",className:t,children:[s.jsx("option",{value:"",hidden:!0,children:"..."}),Array.from({length:o-e},(c,n)=>s.jsx("option",{value:e+n,children:e+n},`opt-${e+n}`))]},`select-${e}-${o}`)};exports.Truncation=i;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { g as i } from "../../chunks/classNames.DNsS4J__.js";
|
|
3
|
+
import "../../chunks/constants.BBi77pmH.js";
|
|
4
|
+
const h = ({ start: e, end: o, handler: r }) => {
|
|
5
|
+
const { subElementClassPrefix: l } = i("pagination"), s = `${l}truncation`;
|
|
6
|
+
return /* @__PURE__ */ t(
|
|
7
|
+
"select",
|
|
8
|
+
{
|
|
9
|
+
"aria-label": "Choose page number",
|
|
10
|
+
onChange: r,
|
|
11
|
+
value: "...",
|
|
12
|
+
className: s,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ a("option", { value: "", hidden: !0, children: "..." }),
|
|
15
|
+
Array.from({ length: o - e }, (c, n) => /* @__PURE__ */ a("option", { value: e + n, children: e + n }, `opt-${e + n}`))
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
`select-${e}-${o}`
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
h as Truncation
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./Pagination.cjs.js");exports.Pagination=i.Pagination;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Pagination';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),b=require("./Popover.content.cjs.js"),t=require("./Popover.trigger.cjs.js"),m=require("../FloatingUI/FloatingUI.root.cjs.js"),C=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const x=require("../../utils/hooks/index.cjs.js"),F=require("../../chunks/CSSLookup.DESAWWRT.js"),I=require("../../chunks/tokens.Bgac_JPh.js"),T=require("../../chunks/popover.module.Dum8SaSU.js"),U=require("./Popover.context.cjs.js"),j=require("./Popover.utils.cjs.js"),w=require("../FloatingUI/FloatingUI.treeWrapper.cjs.js"),s=({children:i,openOnClick:n=!0,hideArrow:l=!1,offset:a,trapFocus:u=!1,focusConfiguration:o,appearance:c="default",theme:g,role:d,...p})=>{const{subElementClassPrefix:_}=C.getBEMClassNames("popover"),P=x.useCSSLookup(I.bmSemSpace100),v={edgePadding:F.parseSizeString(P),hide:l,className:T.popoverStyles[`${_}arrow`]},f=j.usePopOverOffSet(a),q={modal:!!(u||o&&o.modal),...o},S=d??{enabled:!0,role:"dialog"};return r.jsx(w.FloatingUITreeWrapper,{children:r.jsx(m.FloatingUIRoot,{openOnClick:n,arrow:v,offset:f,focusConfiguration:q,transitionConfig:{duration:0},role:S,...p,children:r.jsx(U.PopoverProvider,{theme:g,appearance:c,children:i})})})},e=s;e.Content=b.Content;e.Trigger=t.Trigger;e.CloseTrigger=t.CloseTrigger;exports.Popover=e;exports.Root=s;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),u=require("clsx"),l=require("../../chunks/popover.module.Dum8SaSU.js"),p=require("../../chunks/classNames.DAeKwerT.js"),t=require("../../chunks/constants.hwjHOsvT.js");require("../../chunks/FloatingUI.context.BULqADss.js");require("react");require("@floating-ui/react");const m=require("../FloatingUI/FloatingUI.content.cjs.js"),q=require("./Popover.context.cjs.js");function o({children:r,className:n,...s}){const{theme:e,appearance:i}=q.usePopoverContext(),{baseClassNamePrefix:a}=p.getBEMClassNames("popover");return c.jsx(m.Content,{className:u(e&&t.themeClassName(e),l.popoverStyles[a],i==="inverse"&&t.BEAM_INVERSE,n),...s,children:r})}o.displayName="Popover.Content";exports.Content=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FloatingUIContentProps } from '../FloatingUI/FloatingUI.content';
|
|
3
|
+
export interface PopoverContentProps extends FloatingUIContentProps {
|
|
4
|
+
/**
|
|
5
|
+
* Specify custom content for the Popover
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function Content({ children, className, ...props }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace Content {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
import { p as n } from "../../chunks/popover.module.C6KFea25.js";
|
|
4
|
+
import { g as i } from "../../chunks/classNames.DNsS4J__.js";
|
|
5
|
+
import { t as f, c as C } from "../../chunks/constants.BBi77pmH.js";
|
|
6
|
+
import "../../chunks/FloatingUI.context.2kPXcTvi.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "@floating-ui/react";
|
|
9
|
+
import { Content as c } from "../FloatingUI/FloatingUI.content.es.js";
|
|
10
|
+
import { usePopoverContext as l } from "./Popover.context.es.js";
|
|
11
|
+
function N({ children: t, className: e, ...r }) {
|
|
12
|
+
const { theme: o, appearance: m } = l(), { baseClassNamePrefix: s } = i("popover");
|
|
13
|
+
return /* @__PURE__ */ p(
|
|
14
|
+
c,
|
|
15
|
+
{
|
|
16
|
+
className: a(
|
|
17
|
+
o && f(o),
|
|
18
|
+
n[s],
|
|
19
|
+
m === "inverse" && C,
|
|
20
|
+
e
|
|
21
|
+
),
|
|
22
|
+
...r,
|
|
23
|
+
children: t
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
N.displayName = "Popover.Content";
|
|
28
|
+
export {
|
|
29
|
+
N as Content
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("react"),t=o.createContext(void 0),u=({theme:e,appearance:r,children:n})=>s.jsx(t.Provider,{value:{theme:e,appearance:r},children:n}),i=()=>{const e=o.useContext(t);if(!e)throw new Error("usePopoverContext must be used within a PopoverProvider");return e};exports.PopoverProvider=u;exports.usePopoverContext=i;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { ThemeTypes } from '@viasat/beam-shared/utils';
|
|
3
|
+
interface PopoverContextProps {
|
|
4
|
+
theme?: ThemeTypes;
|
|
5
|
+
appearance?: 'default' | 'inverse';
|
|
6
|
+
}
|
|
7
|
+
interface PopoverProviderProps {
|
|
8
|
+
theme: PopoverContextProps['theme'];
|
|
9
|
+
appearance: PopoverContextProps['appearance'];
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const PopoverProvider: React.FC<PopoverProviderProps>;
|
|
13
|
+
export declare const usePopoverContext: () => PopoverContextProps;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as s, useContext as v } from "react";
|
|
3
|
+
const e = s(void 0), u = ({
|
|
4
|
+
theme: o,
|
|
5
|
+
appearance: r,
|
|
6
|
+
children: t
|
|
7
|
+
}) => /* @__PURE__ */ n(e.Provider, { value: { theme: o, appearance: r }, children: t }), x = () => {
|
|
8
|
+
const o = v(e);
|
|
9
|
+
if (!o)
|
|
10
|
+
throw new Error("usePopoverContext must be used within a PopoverProvider");
|
|
11
|
+
return o;
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
u as PopoverProvider,
|
|
15
|
+
x as usePopoverContext
|
|
16
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { FC, default as React } from 'react';
|
|
2
|
+
import { Content } from './Popover.content';
|
|
3
|
+
import { Trigger, CloseTrigger } from './Popover.trigger';
|
|
4
|
+
import { FloatingUIProps } from '../FloatingUI/FloatingUI.context';
|
|
5
|
+
import { Spacing, ThemeTypes } from '@viasat/beam-shared/utils';
|
|
6
|
+
import { MiddlewareModifier } from '@viasat/beam-shared/components/floatingui';
|
|
7
|
+
import { Placement, AutoPlacementOptions, FlipOptions, ShiftOptions, HideOptions, OffsetOptions, UseHoverProps, UseClickProps, UseFocusProps, FloatingPortalProps, UseFloatingOptions, UseRoleProps } from '@floating-ui/react';
|
|
8
|
+
import { FocusManagerProps } from '../FloatingUI/FloatingUI.content';
|
|
9
|
+
export interface PopoverProps extends Omit<FloatingUIProps, 'arrow' | 'offset'> {
|
|
10
|
+
/**
|
|
11
|
+
* Specify the theme of the Popover. By default it inherits the theme from the parent
|
|
12
|
+
*/
|
|
13
|
+
theme?: ThemeTypes;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the arrow is visible
|
|
16
|
+
*/
|
|
17
|
+
hideArrow?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Specify the color mode of the Popover
|
|
20
|
+
*
|
|
21
|
+
* @default 'default'
|
|
22
|
+
*/
|
|
23
|
+
appearance?: 'default' | 'inverse';
|
|
24
|
+
/**
|
|
25
|
+
* Specify content and sub-components of the Popover
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Specify the location of the floating content
|
|
31
|
+
*
|
|
32
|
+
* @default 'top'
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
placement?: Placement;
|
|
36
|
+
/**
|
|
37
|
+
* Specify if the floating content should automatically choose the placement that has the most space.
|
|
38
|
+
* <a href="https://floating-ui.com/docs/autoplacement#options" target="_blank" rel="noopener noreferrer">AutoPlacementOptions</a>
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
autoPlacement?: boolean | AutoPlacementOptions;
|
|
42
|
+
/**
|
|
43
|
+
* Specify if the floating content should flip to the opposite side if there is not enough space.
|
|
44
|
+
* <a href="https://floating-ui.com/docs/flip#options" target="_blank" rel="noopener noreferrer">FlipOptions</a>
|
|
45
|
+
*
|
|
46
|
+
* Cannot be used with `autoPlacement`
|
|
47
|
+
*/
|
|
48
|
+
flip?: boolean | FlipOptions;
|
|
49
|
+
/**
|
|
50
|
+
* Allow shifting of the floating content.
|
|
51
|
+
* <a href="https://floating-ui.com/docs/shift#options" target="_blank" rel="noopener noreferrer">ShiftOptions</a>
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
shift?: boolean | ShiftOptions;
|
|
55
|
+
/**
|
|
56
|
+
* Specify if the Popover should auto-hide when the anchor is not in view.
|
|
57
|
+
* <a href="https://floating-ui.com/docs/hide#options" target="_blank" rel="noopener noreferrer">HideOptions</a>
|
|
58
|
+
*/
|
|
59
|
+
autoHiding?: boolean | HideOptions;
|
|
60
|
+
/**
|
|
61
|
+
* Middleware functions to modify the behavior of the floating element
|
|
62
|
+
*/
|
|
63
|
+
middleware?: MiddlewareModifier;
|
|
64
|
+
/**
|
|
65
|
+
* Specify the distance between the anchor and the Popover in rems.
|
|
66
|
+
* <a href="https://floating-ui.com/docs/offset#options" target="_blank" rel="noopener noreferrer">OffsetOptions</a>
|
|
67
|
+
*
|
|
68
|
+
* @default 0.5
|
|
69
|
+
*/
|
|
70
|
+
offset?: OffsetOptions | Spacing;
|
|
71
|
+
/**
|
|
72
|
+
* Specify the display state
|
|
73
|
+
*/
|
|
74
|
+
open?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Specify the default open state
|
|
77
|
+
*/
|
|
78
|
+
defaultOpen?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Enable hover interaction.
|
|
81
|
+
* <a href="https://floating-ui.com/docs/usehover#props" target="_blank" rel="noopener noreferrer">UseHoverProps</a>
|
|
82
|
+
*/
|
|
83
|
+
openOnHover?: boolean | UseHoverProps;
|
|
84
|
+
/**
|
|
85
|
+
* Enable click interaction.
|
|
86
|
+
* <a href="https://floating-ui.com/docs/useclick#props" target="_blank" rel="noopener noreferrer">UseClickProps</a>
|
|
87
|
+
*
|
|
88
|
+
* @default true
|
|
89
|
+
*/
|
|
90
|
+
openOnClick?: boolean | UseClickProps;
|
|
91
|
+
/**
|
|
92
|
+
* Enable focus interaction.
|
|
93
|
+
* <a href="https://floating-ui.com/docs/usefocus#props" target="_blank" rel="noopener noreferrer">UseFocusProps</a>
|
|
94
|
+
*/
|
|
95
|
+
openOnFocus?: boolean | UseFocusProps;
|
|
96
|
+
/**
|
|
97
|
+
* Specify if the Popover is portalled
|
|
98
|
+
*/
|
|
99
|
+
portalled?: boolean | FloatingPortalProps;
|
|
100
|
+
/**
|
|
101
|
+
* Specify if the Popover should trap focus within the floating content.
|
|
102
|
+
*/
|
|
103
|
+
trapFocus?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Configure modal or non-modal focus management for popover content.
|
|
106
|
+
* <a href="https://floating-ui.com/docs/floatingfocusmanager#props" target="_blank" rel="noopener noreferrer">FloatingFocusManagerProps</a>
|
|
107
|
+
*/
|
|
108
|
+
focusConfiguration?: FocusManagerProps;
|
|
109
|
+
/**
|
|
110
|
+
* Callback function that receives change in visibility state of the FloatingUI
|
|
111
|
+
*
|
|
112
|
+
* <a href="https://floating-ui.com/docs/react#open-event-callback" target="_blank" rel="noopener noreferrer">
|
|
113
|
+
* onOpenChange
|
|
114
|
+
* </a>
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
onOpenChange?: UseFloatingOptions['onOpenChange'];
|
|
118
|
+
/**
|
|
119
|
+
* Adds base screen reader props to the reference and floating elements for a given `role`
|
|
120
|
+
*/
|
|
121
|
+
role?: UseRoleProps;
|
|
122
|
+
}
|
|
123
|
+
export declare const Root: FC<PopoverProps>;
|
|
124
|
+
export declare const Popover: typeof Root & {
|
|
125
|
+
Content: typeof Content;
|
|
126
|
+
Trigger: typeof Trigger;
|
|
127
|
+
CloseTrigger: typeof CloseTrigger;
|
|
128
|
+
};
|
|
129
|
+
export default Popover;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Content as C } from "./Popover.content.es.js";
|
|
3
|
+
import { Trigger as S, CloseTrigger as v } from "./Popover.trigger.es.js";
|
|
4
|
+
import { FloatingUIRoot as w } from "../FloatingUI/FloatingUI.root.es.js";
|
|
5
|
+
import { g as T } from "../../chunks/classNames.DNsS4J__.js";
|
|
6
|
+
import "../../chunks/constants.BBi77pmH.js";
|
|
7
|
+
import { useCSSLookup as b } from "../../utils/hooks/index.es.js";
|
|
8
|
+
import { p as E } from "../../chunks/CSSLookup.Cjf6o2Gz.js";
|
|
9
|
+
import { b as h } from "../../chunks/tokens.CXaNS8Cf.js";
|
|
10
|
+
import { p as x } from "../../chunks/popover.module.C6KFea25.js";
|
|
11
|
+
import { PopoverProvider as F } from "./Popover.context.es.js";
|
|
12
|
+
import { usePopOverOffSet as I } from "./Popover.utils.es.js";
|
|
13
|
+
import { FloatingUITreeWrapper as N } from "../FloatingUI/FloatingUI.treeWrapper.es.js";
|
|
14
|
+
const O = ({
|
|
15
|
+
children: t,
|
|
16
|
+
openOnClick: i = !0,
|
|
17
|
+
hideArrow: a = !1,
|
|
18
|
+
offset: s,
|
|
19
|
+
trapFocus: m = !1,
|
|
20
|
+
focusConfiguration: o,
|
|
21
|
+
appearance: n = "default",
|
|
22
|
+
theme: p,
|
|
23
|
+
role: f,
|
|
24
|
+
...l
|
|
25
|
+
}) => {
|
|
26
|
+
const { subElementClassPrefix: d } = T("popover"), g = b(h), c = {
|
|
27
|
+
edgePadding: E(g),
|
|
28
|
+
hide: a,
|
|
29
|
+
className: x[`${d}arrow`]
|
|
30
|
+
}, u = I(s), P = {
|
|
31
|
+
modal: !!(m || o && o.modal),
|
|
32
|
+
...o
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(
|
|
35
|
+
w,
|
|
36
|
+
{
|
|
37
|
+
openOnClick: i,
|
|
38
|
+
arrow: c,
|
|
39
|
+
offset: u,
|
|
40
|
+
focusConfiguration: P,
|
|
41
|
+
transitionConfig: {
|
|
42
|
+
duration: 0
|
|
43
|
+
},
|
|
44
|
+
role: f ?? {
|
|
45
|
+
enabled: !0,
|
|
46
|
+
role: "dialog"
|
|
47
|
+
},
|
|
48
|
+
...l,
|
|
49
|
+
children: /* @__PURE__ */ r(F, { theme: p, appearance: n, children: t })
|
|
50
|
+
}
|
|
51
|
+
) });
|
|
52
|
+
}, e = O;
|
|
53
|
+
e.Content = C;
|
|
54
|
+
e.Trigger = S;
|
|
55
|
+
e.CloseTrigger = v;
|
|
56
|
+
export {
|
|
57
|
+
e as Popover,
|
|
58
|
+
O as Root,
|
|
59
|
+
e as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PopoverProps } from './Popover';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export declare const Trigger: React.ForwardRefExoticComponent<{
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
fixedWith?: boolean;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
} & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export declare const BasePopover: ({ text, fixedWith, portalled, ...args }: Omit<PopoverProps, "children"> & {
|
|
10
|
+
text?: string;
|
|
11
|
+
fixedWith?: boolean;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const ControlledPopover: ({ buttonText, withCheckBox, ...args }: {
|
|
14
|
+
buttonText: string;
|
|
15
|
+
withCheckBox?: boolean;
|
|
16
|
+
} & Omit<PopoverProps, "children">) => import("react/jsx-runtime").JSX.Element;
|