@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,114 @@
|
|
|
1
|
+
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as q, useState as G, useMemo as C, useEffect as H } from "react";
|
|
3
|
+
import P from "clsx";
|
|
4
|
+
import { s as r } from "../../chunks/tabs.module.DIdPGCch.js";
|
|
5
|
+
import { useTabs as J } from "./TabsContext.es.js";
|
|
6
|
+
import { g as L } from "../../chunks/classNames.DNsS4J__.js";
|
|
7
|
+
import "../../chunks/constants.BBi77pmH.js";
|
|
8
|
+
import { Tooltip as Q } from "../Tooltip/Tooltip.es.js";
|
|
9
|
+
import { useIsOverFlowing as U } from "../../utils/hooks/index.es.js";
|
|
10
|
+
import { useKeyboardNavigation as V } from "../../utils/hooks/useKeyboardNavigation.es.js";
|
|
11
|
+
const le = ({
|
|
12
|
+
value: s,
|
|
13
|
+
disabled: E = !1,
|
|
14
|
+
className: F,
|
|
15
|
+
children: i,
|
|
16
|
+
icon: c,
|
|
17
|
+
"aria-label": p,
|
|
18
|
+
...S
|
|
19
|
+
}) => {
|
|
20
|
+
const d = q(null), [T, $] = G(!1), {
|
|
21
|
+
selectedValue: w,
|
|
22
|
+
setSelectedValue: u,
|
|
23
|
+
fluid: M,
|
|
24
|
+
orientation: m,
|
|
25
|
+
size: I,
|
|
26
|
+
disabled: g,
|
|
27
|
+
onChange: o,
|
|
28
|
+
tabItems: h,
|
|
29
|
+
groupRef: l
|
|
30
|
+
} = J(), a = E || g, b = w === s, v = !!c && !i, { subElementClassPrefix: z } = L("tabs"), e = `${z}item`, K = P(
|
|
31
|
+
r[e],
|
|
32
|
+
b && r[`${e}--selected`],
|
|
33
|
+
m && r[`${e}--${m}`],
|
|
34
|
+
I && r[`${e}--${I}`],
|
|
35
|
+
M && m === "horizontal" && r[`${e}--fluid`],
|
|
36
|
+
a && r[`${e}--disabled`],
|
|
37
|
+
v && r[`${e}--icon-only`],
|
|
38
|
+
F
|
|
39
|
+
), A = C(
|
|
40
|
+
() => `tab-${s}-${Math.random().toString(36).slice(2, 9)}`,
|
|
41
|
+
[s]
|
|
42
|
+
), B = () => {
|
|
43
|
+
a || (u(s), o == null || o(s));
|
|
44
|
+
}, D = (t, k = !1) => {
|
|
45
|
+
if (t !== s) {
|
|
46
|
+
if (!(l != null && l.current)) return;
|
|
47
|
+
const x = l.current.querySelector(
|
|
48
|
+
`[data-tab-value="${t}"]`
|
|
49
|
+
);
|
|
50
|
+
x && (x.focus(), k && (u(t), o == null || o(t)));
|
|
51
|
+
}
|
|
52
|
+
}, { handleKeyDown: O } = V({
|
|
53
|
+
currentValue: s,
|
|
54
|
+
items: h || [],
|
|
55
|
+
containerRef: l || d,
|
|
56
|
+
dataAttribute: "data-tab-value",
|
|
57
|
+
disabledClassName: r[`${e}--disabled`],
|
|
58
|
+
onFocusItem: (t) => D(t, !1),
|
|
59
|
+
onSelectItem: (t) => {
|
|
60
|
+
a || (u(t), o == null || o(t));
|
|
61
|
+
},
|
|
62
|
+
isHorizontal: m === "horizontal"
|
|
63
|
+
}), { ref: R, isOverFlowing: j } = U();
|
|
64
|
+
let f = !1;
|
|
65
|
+
(!i && c || j) && (f = !0);
|
|
66
|
+
const _ = () => {
|
|
67
|
+
a || $(!0);
|
|
68
|
+
}, N = () => {
|
|
69
|
+
$(!1);
|
|
70
|
+
};
|
|
71
|
+
return H(() => {
|
|
72
|
+
var t;
|
|
73
|
+
d.current && ((t = d.current.querySelector(".bm-floatingui-trigger")) == null || t.removeAttribute("aria-expanded"));
|
|
74
|
+
}, []), /* @__PURE__ */ y(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
className: K,
|
|
78
|
+
ref: d,
|
|
79
|
+
"data-tab-value": s,
|
|
80
|
+
role: "tab",
|
|
81
|
+
id: A,
|
|
82
|
+
"aria-selected": b,
|
|
83
|
+
"aria-disabled": a,
|
|
84
|
+
"aria-controls": `panel-${s}`,
|
|
85
|
+
tabIndex: a ? -1 : b ? 0 : -1,
|
|
86
|
+
onKeyDown: a ? void 0 : O,
|
|
87
|
+
onClick: a ? void 0 : B,
|
|
88
|
+
onFocus: _,
|
|
89
|
+
onBlur: N,
|
|
90
|
+
onMouseEnter: _,
|
|
91
|
+
onMouseLeave: N,
|
|
92
|
+
...S,
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ n(
|
|
95
|
+
Q,
|
|
96
|
+
{
|
|
97
|
+
text: p || i,
|
|
98
|
+
disabled: !f,
|
|
99
|
+
portalled: !0,
|
|
100
|
+
open: T && f,
|
|
101
|
+
children: /* @__PURE__ */ n("div", { className: `${e}__content`, children: /* @__PURE__ */ y("div", { className: `${e}__label`, "aria-label": p, children: [
|
|
102
|
+
c && /* @__PURE__ */ n("span", { className: `${e}__icon`, children: c }),
|
|
103
|
+
i && /* @__PURE__ */ n("span", { ref: R, className: `${e}__controlText`, children: i })
|
|
104
|
+
] }) })
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ n("span", { className: `${e}__indicator` })
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
le as TabsItem
|
|
114
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),d=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const a=require("../../chunks/tabs.module.B6iC5RD9.js"),m=require("clsx"),q=require("./TabsContext.cjs.js"),T=({value:e,children:l,className:n,...r})=>{const{selectedValue:c}=q.useTabs(),s=c===e,o=`panel-${e}`,{subElementClassPrefix:i}=d.getBEMClassNames("tabs"),t=`${i}panel`,b=m(a.styles[t],s&&a.styles[`${t}--selected`],n);return u.jsx("div",{role:"tabpanel",className:b,"aria-hidden":!s,id:o,"aria-labelledby":`tab-${e}`,...r,children:l})};exports.TabsPanel=T;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TabsPanelProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Specify the value of the panel
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* Specify the content of the panel
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const TabsPanel: ({ value, children, className: _className, ...props }: TabsPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { g as b } from "../../chunks/classNames.DNsS4J__.js";
|
|
3
|
+
import "../../chunks/constants.BBi77pmH.js";
|
|
4
|
+
import { s as t } from "../../chunks/tabs.module.DIdPGCch.js";
|
|
5
|
+
import d from "clsx";
|
|
6
|
+
import { useTabs as f } from "./TabsContext.es.js";
|
|
7
|
+
const y = ({
|
|
8
|
+
value: s,
|
|
9
|
+
children: o,
|
|
10
|
+
className: l,
|
|
11
|
+
...r
|
|
12
|
+
}) => {
|
|
13
|
+
const { selectedValue: m } = f(), e = m === s, n = `panel-${s}`, { subElementClassPrefix: c } = b("tabs"), a = `${c}panel`, i = d(
|
|
14
|
+
t[a],
|
|
15
|
+
e && t[`${a}--selected`],
|
|
16
|
+
l
|
|
17
|
+
);
|
|
18
|
+
return /* @__PURE__ */ p(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
role: "tabpanel",
|
|
22
|
+
className: i,
|
|
23
|
+
"aria-hidden": !e,
|
|
24
|
+
id: n,
|
|
25
|
+
"aria-labelledby": `tab-${s}`,
|
|
26
|
+
...r,
|
|
27
|
+
children: o
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
y as TabsPanel
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),M=require("../Box/Box.cjs.js"),R=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const z=require("clsx"),s=require("../../chunks/tabs.module.B6iC5RD9.js"),w=require("./TabsContext.cjs.js"),g=require("./Tabs.Group.cjs.js"),h=require("./Tabs.Panel.cjs.js"),A=require("./Tabs.Item.cjs.js"),P=require("../Divider/Divider.cjs.js"),i=({orientation:a="horizontal",fluid:n=!1,divider:o=!0,size:c="md",initialSelection:I,disabled:u=!1,contentGutter:b,dividerColor:d="03",onChange:m,children:$,className:S,...C})=>{const{baseClassNamePrefix:G,classModifierPrefix:p,subElementClassPrefix:l}=R.getBEMClassNames("tabs"),V=z(s.styles[G],n&&a==="horizontal"&&s.styles[`${p}fluid`],a==="vertical"&&s.styles[`${p}vertical`],S),[y,x]=t.useState(I),[T,v]=t.useState([]),[_,f]=t.useState(void 0),q=t.Children.toArray($),j=q.find(r=>t.isValidElement(r)&&typeof r.type!="string"&&r.type===g.TabsGroup),N=q.filter(r=>t.isValidElement(r)&&typeof r.type!="string"&&r.type===h.TabsPanel),B=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s.styles[`${l}wrapper`],style:{paddingInline:b},children:[j,o&&e.jsx(P.Divider,{className:s.styles[`${l}divider`],borderColor:d})]}),e.jsx("div",{className:s.styles[`${l}panels`],style:{paddingInline:b},children:N})]}),D=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s.styles[`${l}wrapper`],children:[o&&e.jsx(P.Divider,{className:s.styles[`${l}divider`],borderColor:d,orientation:"vertical"}),j]}),N]}),E=t.useMemo(()=>({orientation:a,fluid:n,size:c,selectedValue:y,setSelectedValue:x,tabItems:T,setTabItems:v,onChange:m,disabled:u,groupRef:_,setGroupRef:f}),[a,n,c,y,T,m,u,_,x,v,f]);return e.jsx(w.TabsProvider,{value:E,children:e.jsxs(M.Box,{className:V,...C,children:[a==="horizontal"&&B(),a==="vertical"&&D()]})})};i.Group=g.TabsGroup;i.Panel=h.TabsPanel;i.Item=A.TabsItem;exports.Tabs=i;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Box } from '../Box/Box';
|
|
3
|
+
import { TabsOrientation, TabsSize, TabsDividerColor } from '@viasat/beam-shared/components/tabs';
|
|
4
|
+
export interface TabsProps extends Omit<React.ComponentPropsWithoutRef<typeof Box>, 'onChange'> {
|
|
5
|
+
/**
|
|
6
|
+
* Specify the orientation of Tabs
|
|
7
|
+
* @default 'horizontal'
|
|
8
|
+
*/
|
|
9
|
+
orientation?: TabsOrientation;
|
|
10
|
+
/**
|
|
11
|
+
* Specify if Tabs.Items display as fluid
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
fluid?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Specify if all Tab.Items are disabled
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specify if a Divider displays under Tabs.Group
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
divider?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Specify the size of a Tabs
|
|
27
|
+
* @default 'md'
|
|
28
|
+
*/
|
|
29
|
+
size?: TabsSize;
|
|
30
|
+
/**
|
|
31
|
+
* Specify the value of the selected item
|
|
32
|
+
*/
|
|
33
|
+
initialSelection?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Specify a call back function to utilize the value of the selected item
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (value: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Specify the inline padding value on the inner content of the Tabs for horizontal orientation only
|
|
40
|
+
*/
|
|
41
|
+
contentGutter?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Specify the border color of the divider component
|
|
44
|
+
* @default '03'
|
|
45
|
+
*/
|
|
46
|
+
dividerColor?: TabsDividerColor;
|
|
47
|
+
}
|
|
48
|
+
export declare const Tabs: {
|
|
49
|
+
({ orientation, fluid, divider, size, initialSelection, disabled, contentGutter, dividerColor, onChange, children, className: _className, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
Group: ({ children, className: _className, ...props }: import('./Tabs.Group').TabsGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
Panel: ({ value, children, className: _className, ...props }: import('./Tabs.Panel').TabsPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
Item: ({ value, "disabled": _disabled, "className": _className, children, icon, "aria-label": ariaLabel, ...props }: import('./Tabs.Item').TabsItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as o, jsxs as a, Fragment as T } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, Children as F, isValidElement as C, useMemo as k } from "react";
|
|
3
|
+
import { Box as q } from "../Box/Box.es.js";
|
|
4
|
+
import { g as H } from "../../chunks/classNames.DNsS4J__.js";
|
|
5
|
+
import "../../chunks/constants.BBi77pmH.js";
|
|
6
|
+
import J from "clsx";
|
|
7
|
+
import { s as e } from "../../chunks/tabs.module.DIdPGCch.js";
|
|
8
|
+
import { TabsProvider as K } from "./TabsContext.es.js";
|
|
9
|
+
import { TabsGroup as z } from "./Tabs.Group.es.js";
|
|
10
|
+
import { TabsPanel as E } from "./Tabs.Panel.es.js";
|
|
11
|
+
import { TabsItem as L } from "./Tabs.Item.es.js";
|
|
12
|
+
import { Divider as V } from "../Divider/Divider.es.js";
|
|
13
|
+
const i = ({
|
|
14
|
+
orientation: s = "horizontal",
|
|
15
|
+
fluid: l = !1,
|
|
16
|
+
divider: n = !0,
|
|
17
|
+
size: c = "md",
|
|
18
|
+
initialSelection: G,
|
|
19
|
+
disabled: p = !1,
|
|
20
|
+
contentGutter: f,
|
|
21
|
+
dividerColor: d = "03",
|
|
22
|
+
onChange: u,
|
|
23
|
+
children: M,
|
|
24
|
+
className: j,
|
|
25
|
+
...w
|
|
26
|
+
}) => {
|
|
27
|
+
const { baseClassNamePrefix: A, classModifierPrefix: b, subElementClassPrefix: t } = H("tabs"), B = J(
|
|
28
|
+
e[A],
|
|
29
|
+
l && s === "horizontal" && e[`${b}fluid`],
|
|
30
|
+
s === "vertical" && e[`${b}vertical`],
|
|
31
|
+
j
|
|
32
|
+
), [v, y] = m(
|
|
33
|
+
G
|
|
34
|
+
), [x, N] = m([]), [h, g] = m(
|
|
35
|
+
void 0
|
|
36
|
+
), P = F.toArray(M), $ = P.find(
|
|
37
|
+
(r) => C(r) && typeof r.type != "string" && r.type === z
|
|
38
|
+
), I = P.filter(
|
|
39
|
+
(r) => C(r) && typeof r.type != "string" && r.type === E
|
|
40
|
+
), R = () => /* @__PURE__ */ a(T, { children: [
|
|
41
|
+
/* @__PURE__ */ a(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: e[`${t}wrapper`],
|
|
45
|
+
style: { paddingInline: f },
|
|
46
|
+
children: [
|
|
47
|
+
$,
|
|
48
|
+
n && /* @__PURE__ */ o(
|
|
49
|
+
V,
|
|
50
|
+
{
|
|
51
|
+
className: e[`${t}divider`],
|
|
52
|
+
borderColor: d
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ o(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
className: e[`${t}panels`],
|
|
62
|
+
style: { paddingInline: f },
|
|
63
|
+
children: I
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }), S = () => /* @__PURE__ */ a(T, { children: [
|
|
67
|
+
/* @__PURE__ */ a("div", { className: e[`${t}wrapper`], children: [
|
|
68
|
+
n && /* @__PURE__ */ o(
|
|
69
|
+
V,
|
|
70
|
+
{
|
|
71
|
+
className: e[`${t}divider`],
|
|
72
|
+
borderColor: d,
|
|
73
|
+
orientation: "vertical"
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
$
|
|
77
|
+
] }),
|
|
78
|
+
I
|
|
79
|
+
] }), D = k(
|
|
80
|
+
() => ({
|
|
81
|
+
orientation: s,
|
|
82
|
+
fluid: l,
|
|
83
|
+
size: c,
|
|
84
|
+
selectedValue: v,
|
|
85
|
+
setSelectedValue: y,
|
|
86
|
+
tabItems: x,
|
|
87
|
+
setTabItems: N,
|
|
88
|
+
onChange: u,
|
|
89
|
+
disabled: p,
|
|
90
|
+
groupRef: h,
|
|
91
|
+
setGroupRef: g
|
|
92
|
+
}),
|
|
93
|
+
[
|
|
94
|
+
s,
|
|
95
|
+
l,
|
|
96
|
+
c,
|
|
97
|
+
v,
|
|
98
|
+
x,
|
|
99
|
+
u,
|
|
100
|
+
p,
|
|
101
|
+
h,
|
|
102
|
+
y,
|
|
103
|
+
N,
|
|
104
|
+
g
|
|
105
|
+
]
|
|
106
|
+
);
|
|
107
|
+
return /* @__PURE__ */ o(K, { value: D, children: /* @__PURE__ */ a(q, { className: B, ...w, children: [
|
|
108
|
+
s === "horizontal" && R(),
|
|
109
|
+
s === "vertical" && S()
|
|
110
|
+
] }) });
|
|
111
|
+
};
|
|
112
|
+
i.Group = z;
|
|
113
|
+
i.Panel = E;
|
|
114
|
+
i.Item = L;
|
|
115
|
+
export {
|
|
116
|
+
i as Tabs
|
|
117
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("react"),r=t.createContext(void 0),n=({children:e,value:s})=>o.jsx(r.Provider,{value:s,children:e}),i=()=>{const e=t.useContext(r);if(!e)throw new Error("useTabs must be used within a TabsProvider");return e};exports.TabsProvider=n;exports.useTabs=i;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React, RefObject } from 'react';
|
|
2
|
+
import { TabsOrientation, TabsSize } from '@viasat/beam-shared/components/tabs';
|
|
3
|
+
interface TabsContextProps {
|
|
4
|
+
orientation?: TabsOrientation;
|
|
5
|
+
fluid?: boolean;
|
|
6
|
+
size?: TabsSize;
|
|
7
|
+
selectedValue?: string;
|
|
8
|
+
setSelectedValue: (value: string) => void;
|
|
9
|
+
tabItems: string[];
|
|
10
|
+
setTabItems: (items: string[]) => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
groupRef?: RefObject<HTMLDivElement>;
|
|
14
|
+
setGroupRef: (ref: RefObject<HTMLDivElement>) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const TabsProvider: ({ children, value, }: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
value: TabsContextProps;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const useTabs: () => TabsContextProps;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as s, useContext as n } from "react";
|
|
3
|
+
const r = s(void 0), u = ({
|
|
4
|
+
children: t,
|
|
5
|
+
value: o
|
|
6
|
+
}) => /* @__PURE__ */ e(r.Provider, { value: o, children: t }), b = () => {
|
|
7
|
+
const t = n(r);
|
|
8
|
+
if (!t)
|
|
9
|
+
throw new Error("useTabs must be used within a TabsProvider");
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
u as TabsProvider,
|
|
14
|
+
b as useTabs
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Tabs.cjs.js");exports.Tabs=e.Tabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var M=require("../../assets/Text.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),A=require("clsx"),N=require("react"),x=require("../../chunks/constants.hwjHOsvT.js"),E=require("../../chunks/classNames.DAeKwerT.js"),p=`${x.prefix}sem-typo-`,_="compact-",k={"heading-6xl":"h1","heading-5xl":"h2","heading-4xl":"h3","heading-3xl":"h4","heading-2xl":"h5","heading-xl":"h6","heading-lg":"h6","heading-md":"h6","heading-sm":"h6","heading-xs":"h6","heading-alt-6xl":"h1","heading-alt-5xl":"h2","heading-alt-4xl":"h3","heading-alt-3xl":"h4","heading-alt-2xl":"h5","heading-alt-xl":"h6","heading-alt-lg":"h6","heading-alt-md":"h6","heading-alt-sm":"h6","heading-alt-xs":"h6","body-2xl":"span","body-xl":"span","body-lg":"span","body-md":"span","body-sm":"span","body-xs":"span","detail-xl":"span","detail-lg":"span","detail-md":"span","detail-sm":"span","detail-xs":"span","label-2xl":"span","label-xl":"span","label-lg":"span","label-md":"span","label-sm":"span","label-xs":"span"},e={"bm-sem-typo-heading-6xl":"bm-sem-typo-heading-6xl","bm-sem-typo-heading-5xl":"bm-sem-typo-heading-5xl","bm-sem-typo-heading-4xl":"bm-sem-typo-heading-4xl","bm-sem-typo-heading-3xl":"bm-sem-typo-heading-3xl","bm-sem-typo-heading-2xl":"bm-sem-typo-heading-2xl","bm-sem-typo-heading-alt-6xl":"bm-sem-typo-heading-alt-6xl","bm-sem-typo-heading-alt-5xl":"bm-sem-typo-heading-alt-5xl","bm-sem-typo-heading-alt-4xl":"bm-sem-typo-heading-alt-4xl","bm-sem-typo-heading-alt-3xl":"bm-sem-typo-heading-alt-3xl","bm-sem-typo-heading-alt-2xl":"bm-sem-typo-heading-alt-2xl","bm-sem-typo-heading-xl":"bm-sem-typo-heading-xl","bm-sem-typo-heading-lg":"bm-sem-typo-heading-lg","bm-sem-typo-heading-md":"bm-sem-typo-heading-md","bm-sem-typo-heading-sm":"bm-sem-typo-heading-sm","bm-sem-typo-heading-xs":"bm-sem-typo-heading-xs","bm-sem-typo-heading-alt-xl":"bm-sem-typo-heading-alt-xl","bm-sem-typo-heading-alt-lg":"bm-sem-typo-heading-alt-lg","bm-sem-typo-heading-alt-md":"bm-sem-typo-heading-alt-md","bm-sem-typo-heading-alt-sm":"bm-sem-typo-heading-alt-sm","bm-sem-typo-heading-alt-xs":"bm-sem-typo-heading-alt-xs","bm-sem-typo-body-xs":"bm-sem-typo-body-xs","bm-sem-typo-body-sm":"bm-sem-typo-body-sm","bm-sem-typo-body-md":"bm-sem-typo-body-md","bm-sem-typo-body-lg":"bm-sem-typo-body-lg","bm-sem-typo-body-xl":"bm-sem-typo-body-xl","bm-sem-typo-body-2xl":"bm-sem-typo-body-2xl","bm-sem-typo-detail-xs":"bm-sem-typo-detail-xs","bm-sem-typo-detail-sm":"bm-sem-typo-detail-sm","bm-sem-typo-detail-md":"bm-sem-typo-detail-md","bm-sem-typo-detail-lg":"bm-sem-typo-detail-lg","bm-sem-typo-detail-xl":"bm-sem-typo-detail-xl","bm-sem-typo-label-xs":"bm-sem-typo-label-xs","bm-sem-typo-label-sm":"bm-sem-typo-label-sm","bm-sem-typo-label-md":"bm-sem-typo-label-md","bm-sem-typo-label-lg":"bm-sem-typo-label-lg","bm-sem-typo-label-xl":"bm-sem-typo-label-xl","bm-sem-typo-label-2xl":"bm-sem-typo-label-2xl","bm-sem-typo-compact-body-xs":"bm-sem-typo-compact-body-xs","bm-sem-typo-compact-body-sm":"bm-sem-typo-compact-body-sm","bm-sem-typo-compact-body-md":"bm-sem-typo-compact-body-md","bm-sem-typo-compact-body-lg":"bm-sem-typo-compact-body-lg","bm-sem-typo-compact-body-xl":"bm-sem-typo-compact-body-xl","bm-sem-typo-compact-body-2xl":"bm-sem-typo-compact-body-2xl","bm-sem-typo-compact-label-xs":"bm-sem-typo-compact-label-xs","bm-sem-typo-compact-label-sm":"bm-sem-typo-compact-label-sm","bm-sem-typo-compact-label-md":"bm-sem-typo-compact-label-md","bm-sem-typo-compact-label-lg":"bm-sem-typo-compact-label-lg","bm-sem-typo-compact-label-xl":"bm-sem-typo-compact-label-xl","bm-sem-typo-compact-label-2xl":"bm-sem-typo-compact-label-2xl","bm-text":"bm-text","bm-text--normal":"bm-text--normal","bm-text--breakAll":"bm-text--breakAll","bm-text--breakWord":"bm-text--breakWord","bm-text--start":"bm-text--start","bm-text--center":"bm-text--center","bm-text--end":"bm-text--end","bm-text--block":"bm-text--block","bm-text--truncate":"bm-text--truncate","bm-text--italic":"bm-text--italic","bm-text--underline":"bm-text--underline","bm-text--strikethrough":"bm-text--strikethrough","bm-text--heading-regular":"bm-text--heading-regular","bm-text--heading-bold":"bm-text--heading-bold","bm-text--body-regular":"bm-text--body-regular","bm-text--body-bold":"bm-text--body-bold","bm-text--primary":"bm-text--primary","bm-text--secondary":"bm-text--secondary","bm-text--positive":"bm-text--positive","bm-text--warning":"bm-text--warning","bm-text--negative":"bm-text--negative","bm-text--infoPrimary":"bm-text--infoPrimary","bm-text--infoSecondary":"bm-text--infoSecondary","bm-text--selected":"bm-text--selected","bm-text--disabled":"bm-text--disabled","bm-text--primaryInverse":"bm-text--primaryInverse","bm-text--secondaryInverse":"bm-text--secondaryInverse","bm-text--expressive":"bm-text--expressive","bm-text--expressiveStronger":"bm-text--expressiveStronger","bm-text--expressiveInverse":"bm-text--expressiveInverse","bm-text--expressiveInverseStronger":"bm-text--expressiveInverseStronger"},{baseClassNamePrefix:C,classModifierPrefix:t}=E.getBEMClassNames("text"),y=N.forwardRef(({kind:m="body-md",color:b,theme:a,as:n,bold:s,alignment:l,wordBreak:o,truncate:i,block:r,compact:g,strikethrough:c,underline:h,italic:u,children:v,className:$,...f},S)=>{const I=n||k[m],d=!m.includes("body");s&&d&&console.warn("The `bold` prop is not supported for heading, label or detail `kind` variants. Use the `bold` for body `kind` variants.");const P=A(e[C],a&&x.themeClassName(a),m&&e[`${p}${m}`],g&&e[`${p}${_}${m}`],s&&!d&&e[`${t}body-bold`],b&&e[`${t}${b}`],o&&e[`${t}${o}`],l&&e[`${t}${l}`],r&&e[`${t}block`],i&&e[`${t}truncate`],c&&e[`${t}strikethrough`],h&&e[`${t}underline`],u&&e[`${t}italic`],$);return T.jsx(I,{ref:S,className:P,...f,children:v})});y.displayName="Text";exports.Text=y;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextAlignment, TextColor, TextKind, TextWordBreak } from '@viasat/beam-shared/components/text';
|
|
3
|
+
import { ThemeTypes } from '@viasat/beam-shared/utils/constants';
|
|
4
|
+
export interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
+
/**
|
|
6
|
+
* The text content
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Specify the theme of the Text. By default it inherits the theme from the parent
|
|
11
|
+
*/
|
|
12
|
+
theme?: ThemeTypes;
|
|
13
|
+
/**
|
|
14
|
+
* Specify if Text displays as a heading, body, detail, or label variant
|
|
15
|
+
* @default 'body-md'
|
|
16
|
+
*/
|
|
17
|
+
kind?: TextKind;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the color of the text
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
color?: TextColor;
|
|
23
|
+
/**
|
|
24
|
+
* Specify if Text is bold. This prop only works for body `kinds`
|
|
25
|
+
*/
|
|
26
|
+
bold?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies which HTML component to wrap the text content in
|
|
29
|
+
*/
|
|
30
|
+
as?: React.ElementType;
|
|
31
|
+
/**
|
|
32
|
+
* Sets css text-align to either start, center, or end
|
|
33
|
+
*/
|
|
34
|
+
alignment?: TextAlignment;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the css word-break property
|
|
37
|
+
*/
|
|
38
|
+
wordBreak?: TextWordBreak;
|
|
39
|
+
/**
|
|
40
|
+
* Truncates the text with ellipsis if it exceeds the container
|
|
41
|
+
*/
|
|
42
|
+
truncate?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Changes the css display to block
|
|
45
|
+
*/
|
|
46
|
+
block?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Reduces the line-height of body and label `kind` variants
|
|
49
|
+
*/
|
|
50
|
+
compact?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Adds a strikethrough to the text
|
|
53
|
+
*/
|
|
54
|
+
strikethrough?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Underlines the text
|
|
57
|
+
*/
|
|
58
|
+
underline?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Italicizes the text
|
|
61
|
+
*/
|
|
62
|
+
italic?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<Element>>;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import "../../assets/Text.css";
|
|
2
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
3
|
+
import _ from "clsx";
|
|
4
|
+
import A from "react";
|
|
5
|
+
import { p as P, t as E } from "../../chunks/constants.BBi77pmH.js";
|
|
6
|
+
import { g as N } from "../../chunks/classNames.DNsS4J__.js";
|
|
7
|
+
const d = `${P}sem-typo-`, T = "compact-", k = {
|
|
8
|
+
// defaults
|
|
9
|
+
"heading-6xl": "h1",
|
|
10
|
+
"heading-5xl": "h2",
|
|
11
|
+
"heading-4xl": "h3",
|
|
12
|
+
"heading-3xl": "h4",
|
|
13
|
+
"heading-2xl": "h5",
|
|
14
|
+
"heading-xl": "h6",
|
|
15
|
+
"heading-lg": "h6",
|
|
16
|
+
"heading-md": "h6",
|
|
17
|
+
"heading-sm": "h6",
|
|
18
|
+
"heading-xs": "h6",
|
|
19
|
+
"heading-alt-6xl": "h1",
|
|
20
|
+
"heading-alt-5xl": "h2",
|
|
21
|
+
"heading-alt-4xl": "h3",
|
|
22
|
+
"heading-alt-3xl": "h4",
|
|
23
|
+
"heading-alt-2xl": "h5",
|
|
24
|
+
"heading-alt-xl": "h6",
|
|
25
|
+
"heading-alt-lg": "h6",
|
|
26
|
+
"heading-alt-md": "h6",
|
|
27
|
+
"heading-alt-sm": "h6",
|
|
28
|
+
"heading-alt-xs": "h6",
|
|
29
|
+
"body-2xl": "span",
|
|
30
|
+
"body-xl": "span",
|
|
31
|
+
"body-lg": "span",
|
|
32
|
+
"body-md": "span",
|
|
33
|
+
"body-sm": "span",
|
|
34
|
+
"body-xs": "span",
|
|
35
|
+
"detail-xl": "span",
|
|
36
|
+
"detail-lg": "span",
|
|
37
|
+
"detail-md": "span",
|
|
38
|
+
"detail-sm": "span",
|
|
39
|
+
"detail-xs": "span",
|
|
40
|
+
"label-2xl": "span",
|
|
41
|
+
"label-xl": "span",
|
|
42
|
+
"label-lg": "span",
|
|
43
|
+
"label-md": "span",
|
|
44
|
+
"label-sm": "span",
|
|
45
|
+
"label-xs": "span"
|
|
46
|
+
}, e = {
|
|
47
|
+
"bm-sem-typo-heading-6xl": "bm-sem-typo-heading-6xl",
|
|
48
|
+
"bm-sem-typo-heading-5xl": "bm-sem-typo-heading-5xl",
|
|
49
|
+
"bm-sem-typo-heading-4xl": "bm-sem-typo-heading-4xl",
|
|
50
|
+
"bm-sem-typo-heading-3xl": "bm-sem-typo-heading-3xl",
|
|
51
|
+
"bm-sem-typo-heading-2xl": "bm-sem-typo-heading-2xl",
|
|
52
|
+
"bm-sem-typo-heading-alt-6xl": "bm-sem-typo-heading-alt-6xl",
|
|
53
|
+
"bm-sem-typo-heading-alt-5xl": "bm-sem-typo-heading-alt-5xl",
|
|
54
|
+
"bm-sem-typo-heading-alt-4xl": "bm-sem-typo-heading-alt-4xl",
|
|
55
|
+
"bm-sem-typo-heading-alt-3xl": "bm-sem-typo-heading-alt-3xl",
|
|
56
|
+
"bm-sem-typo-heading-alt-2xl": "bm-sem-typo-heading-alt-2xl",
|
|
57
|
+
"bm-sem-typo-heading-xl": "bm-sem-typo-heading-xl",
|
|
58
|
+
"bm-sem-typo-heading-lg": "bm-sem-typo-heading-lg",
|
|
59
|
+
"bm-sem-typo-heading-md": "bm-sem-typo-heading-md",
|
|
60
|
+
"bm-sem-typo-heading-sm": "bm-sem-typo-heading-sm",
|
|
61
|
+
"bm-sem-typo-heading-xs": "bm-sem-typo-heading-xs",
|
|
62
|
+
"bm-sem-typo-heading-alt-xl": "bm-sem-typo-heading-alt-xl",
|
|
63
|
+
"bm-sem-typo-heading-alt-lg": "bm-sem-typo-heading-alt-lg",
|
|
64
|
+
"bm-sem-typo-heading-alt-md": "bm-sem-typo-heading-alt-md",
|
|
65
|
+
"bm-sem-typo-heading-alt-sm": "bm-sem-typo-heading-alt-sm",
|
|
66
|
+
"bm-sem-typo-heading-alt-xs": "bm-sem-typo-heading-alt-xs",
|
|
67
|
+
"bm-sem-typo-body-xs": "bm-sem-typo-body-xs",
|
|
68
|
+
"bm-sem-typo-body-sm": "bm-sem-typo-body-sm",
|
|
69
|
+
"bm-sem-typo-body-md": "bm-sem-typo-body-md",
|
|
70
|
+
"bm-sem-typo-body-lg": "bm-sem-typo-body-lg",
|
|
71
|
+
"bm-sem-typo-body-xl": "bm-sem-typo-body-xl",
|
|
72
|
+
"bm-sem-typo-body-2xl": "bm-sem-typo-body-2xl",
|
|
73
|
+
"bm-sem-typo-detail-xs": "bm-sem-typo-detail-xs",
|
|
74
|
+
"bm-sem-typo-detail-sm": "bm-sem-typo-detail-sm",
|
|
75
|
+
"bm-sem-typo-detail-md": "bm-sem-typo-detail-md",
|
|
76
|
+
"bm-sem-typo-detail-lg": "bm-sem-typo-detail-lg",
|
|
77
|
+
"bm-sem-typo-detail-xl": "bm-sem-typo-detail-xl",
|
|
78
|
+
"bm-sem-typo-label-xs": "bm-sem-typo-label-xs",
|
|
79
|
+
"bm-sem-typo-label-sm": "bm-sem-typo-label-sm",
|
|
80
|
+
"bm-sem-typo-label-md": "bm-sem-typo-label-md",
|
|
81
|
+
"bm-sem-typo-label-lg": "bm-sem-typo-label-lg",
|
|
82
|
+
"bm-sem-typo-label-xl": "bm-sem-typo-label-xl",
|
|
83
|
+
"bm-sem-typo-label-2xl": "bm-sem-typo-label-2xl",
|
|
84
|
+
"bm-sem-typo-compact-body-xs": "bm-sem-typo-compact-body-xs",
|
|
85
|
+
"bm-sem-typo-compact-body-sm": "bm-sem-typo-compact-body-sm",
|
|
86
|
+
"bm-sem-typo-compact-body-md": "bm-sem-typo-compact-body-md",
|
|
87
|
+
"bm-sem-typo-compact-body-lg": "bm-sem-typo-compact-body-lg",
|
|
88
|
+
"bm-sem-typo-compact-body-xl": "bm-sem-typo-compact-body-xl",
|
|
89
|
+
"bm-sem-typo-compact-body-2xl": "bm-sem-typo-compact-body-2xl",
|
|
90
|
+
"bm-sem-typo-compact-label-xs": "bm-sem-typo-compact-label-xs",
|
|
91
|
+
"bm-sem-typo-compact-label-sm": "bm-sem-typo-compact-label-sm",
|
|
92
|
+
"bm-sem-typo-compact-label-md": "bm-sem-typo-compact-label-md",
|
|
93
|
+
"bm-sem-typo-compact-label-lg": "bm-sem-typo-compact-label-lg",
|
|
94
|
+
"bm-sem-typo-compact-label-xl": "bm-sem-typo-compact-label-xl",
|
|
95
|
+
"bm-sem-typo-compact-label-2xl": "bm-sem-typo-compact-label-2xl",
|
|
96
|
+
"bm-text": "bm-text",
|
|
97
|
+
"bm-text--normal": "bm-text--normal",
|
|
98
|
+
"bm-text--breakAll": "bm-text--breakAll",
|
|
99
|
+
"bm-text--breakWord": "bm-text--breakWord",
|
|
100
|
+
"bm-text--start": "bm-text--start",
|
|
101
|
+
"bm-text--center": "bm-text--center",
|
|
102
|
+
"bm-text--end": "bm-text--end",
|
|
103
|
+
"bm-text--block": "bm-text--block",
|
|
104
|
+
"bm-text--truncate": "bm-text--truncate",
|
|
105
|
+
"bm-text--italic": "bm-text--italic",
|
|
106
|
+
"bm-text--underline": "bm-text--underline",
|
|
107
|
+
"bm-text--strikethrough": "bm-text--strikethrough",
|
|
108
|
+
"bm-text--heading-regular": "bm-text--heading-regular",
|
|
109
|
+
"bm-text--heading-bold": "bm-text--heading-bold",
|
|
110
|
+
"bm-text--body-regular": "bm-text--body-regular",
|
|
111
|
+
"bm-text--body-bold": "bm-text--body-bold",
|
|
112
|
+
"bm-text--primary": "bm-text--primary",
|
|
113
|
+
"bm-text--secondary": "bm-text--secondary",
|
|
114
|
+
"bm-text--positive": "bm-text--positive",
|
|
115
|
+
"bm-text--warning": "bm-text--warning",
|
|
116
|
+
"bm-text--negative": "bm-text--negative",
|
|
117
|
+
"bm-text--infoPrimary": "bm-text--infoPrimary",
|
|
118
|
+
"bm-text--infoSecondary": "bm-text--infoSecondary",
|
|
119
|
+
"bm-text--selected": "bm-text--selected",
|
|
120
|
+
"bm-text--disabled": "bm-text--disabled",
|
|
121
|
+
"bm-text--primaryInverse": "bm-text--primaryInverse",
|
|
122
|
+
"bm-text--secondaryInverse": "bm-text--secondaryInverse",
|
|
123
|
+
"bm-text--expressive": "bm-text--expressive",
|
|
124
|
+
"bm-text--expressiveStronger": "bm-text--expressiveStronger",
|
|
125
|
+
"bm-text--expressiveInverse": "bm-text--expressiveInverse",
|
|
126
|
+
"bm-text--expressiveInverseStronger": "bm-text--expressiveInverseStronger"
|
|
127
|
+
}, { baseClassNamePrefix: C, classModifierPrefix: t } = N("text"), M = A.forwardRef(
|
|
128
|
+
({
|
|
129
|
+
kind: m = "body-md",
|
|
130
|
+
color: b,
|
|
131
|
+
theme: a,
|
|
132
|
+
as: x,
|
|
133
|
+
bold: s,
|
|
134
|
+
alignment: l,
|
|
135
|
+
wordBreak: o,
|
|
136
|
+
truncate: y,
|
|
137
|
+
block: n,
|
|
138
|
+
compact: i,
|
|
139
|
+
strikethrough: r,
|
|
140
|
+
underline: g,
|
|
141
|
+
italic: h,
|
|
142
|
+
children: c,
|
|
143
|
+
className: v,
|
|
144
|
+
...f
|
|
145
|
+
}, u) => {
|
|
146
|
+
const $ = x || k[m], p = !m.includes("body");
|
|
147
|
+
s && p && console.warn(
|
|
148
|
+
"The `bold` prop is not supported for heading, label or detail `kind` variants. Use the `bold` for body `kind` variants."
|
|
149
|
+
);
|
|
150
|
+
const S = _(
|
|
151
|
+
e[C],
|
|
152
|
+
a && E(a),
|
|
153
|
+
// no need to redo typography tokens, fonts are already defined in typography.classes.css
|
|
154
|
+
m && e[`${d}${m}`],
|
|
155
|
+
// no need to redo compact typography tokens, if a font does not support compact, this class will
|
|
156
|
+
// not exist and therefore not be applied
|
|
157
|
+
i && e[`${d}${T}${m}`],
|
|
158
|
+
s && !p && e[`${t}body-bold`],
|
|
159
|
+
b && e[`${t}${b}`],
|
|
160
|
+
o && e[`${t}${o}`],
|
|
161
|
+
l && e[`${t}${l}`],
|
|
162
|
+
n && e[`${t}block`],
|
|
163
|
+
y && e[`${t}truncate`],
|
|
164
|
+
r && e[`${t}strikethrough`],
|
|
165
|
+
g && e[`${t}underline`],
|
|
166
|
+
h && e[`${t}italic`],
|
|
167
|
+
v
|
|
168
|
+
);
|
|
169
|
+
return /* @__PURE__ */ I($, { ref: u, className: S, ...f, children: c });
|
|
170
|
+
}
|
|
171
|
+
);
|
|
172
|
+
M.displayName = "Text";
|
|
173
|
+
export {
|
|
174
|
+
M as Text
|
|
175
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Text.cjs.js");exports.Text=e.Text;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Text';
|