@easypost/easy-ui 1.0.0-alpha.4 → 1.0.0-alpha.40
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/Badge/index.js +32 -26
- package/Badge/index.mjs +32 -26
- package/Banner/index.js +15 -16
- package/Banner/index.mjs +15 -16
- package/Button/Button.d.ts +69 -8
- package/Button/Button.d.ts.map +1 -1
- package/Button/index.js +2 -127
- package/Button/index.mjs +2 -127
- package/CHANGELOG.md +321 -0
- package/Card/Card.d.ts +1 -1
- package/Card/Card.d.ts.map +1 -1
- package/Card/Card.stories.d.ts +1 -0
- package/Card/Card.stories.d.ts.map +1 -1
- package/Card/index.js +1 -4
- package/Card/index.mjs +1 -4
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.d.ts.map +1 -1
- package/Checkbox/Checkbox.test.d.ts.map +1 -1
- package/Checkbox/index.js +3 -219
- package/Checkbox/index.mjs +3 -203
- package/CodeBlock/CodeBlock.d.ts +55 -61
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/CodeBlock.stories.d.ts +3 -2
- package/CodeBlock/CodeBlock.stories.d.ts.map +1 -1
- package/CodeBlock/CopyButton.d.ts +9 -0
- package/CodeBlock/CopyButton.d.ts.map +1 -0
- package/CodeBlock/LanguageMenu.d.ts +18 -0
- package/CodeBlock/LanguageMenu.d.ts.map +1 -0
- package/CodeBlock/context.d.ts +11 -0
- package/CodeBlock/context.d.ts.map +1 -0
- package/CodeBlock/index.js +290 -5341
- package/CodeBlock/index.mjs +280 -5347
- package/CodeSnippet/CodeSnippet.d.ts +82 -0
- package/CodeSnippet/CodeSnippet.d.ts.map +1 -0
- package/CodeSnippet/CodeSnippet.stories.d.ts +14 -0
- package/CodeSnippet/CodeSnippet.stories.d.ts.map +1 -0
- package/CodeSnippet/CodeSnippet.test.d.ts +2 -0
- package/CodeSnippet/CodeSnippet.test.d.ts.map +1 -0
- package/CodeSnippet/SyntaxHighlighter.d.ts +15 -0
- package/CodeSnippet/SyntaxHighlighter.d.ts.map +1 -0
- package/CodeSnippet/index.d.ts +2 -0
- package/CodeSnippet/index.d.ts.map +1 -0
- package/CodeSnippet/index.js +4 -0
- package/CodeSnippet/index.mjs +4 -0
- package/{CodeBlock → CodeSnippet}/theme.d.ts +0 -1
- package/CodeSnippet/theme.d.ts.map +1 -0
- package/CodeSnippet/useScrollbar.d.ts.map +1 -0
- package/DataGrid/ActionsCellContent.d.ts +8 -0
- package/DataGrid/ActionsCellContent.d.ts.map +1 -0
- package/DataGrid/Cell.d.ts +10 -0
- package/DataGrid/Cell.d.ts.map +1 -0
- package/DataGrid/ColumnHeader.d.ts +10 -0
- package/DataGrid/ColumnHeader.d.ts.map +1 -0
- package/DataGrid/DataGrid.d.ts +39 -0
- package/DataGrid/DataGrid.d.ts.map +1 -0
- package/DataGrid/DataGrid.stories.d.ts +15 -0
- package/DataGrid/DataGrid.stories.d.ts.map +1 -0
- package/DataGrid/DataGrid.test.d.ts +2 -0
- package/DataGrid/DataGrid.test.d.ts.map +1 -0
- package/DataGrid/ExpandCellContent.d.ts +8 -0
- package/DataGrid/ExpandCellContent.d.ts.map +1 -0
- package/DataGrid/ExpandedRowContent.d.ts +7 -0
- package/DataGrid/ExpandedRowContent.d.ts.map +1 -0
- package/DataGrid/HeaderRow.d.ts +11 -0
- package/DataGrid/HeaderRow.d.ts.map +1 -0
- package/DataGrid/Row.d.ts +12 -0
- package/DataGrid/Row.d.ts.map +1 -0
- package/DataGrid/RowGroup.d.ts +8 -0
- package/DataGrid/RowGroup.d.ts.map +1 -0
- package/DataGrid/SortIndicator.d.ts +7 -0
- package/DataGrid/SortIndicator.d.ts.map +1 -0
- package/DataGrid/Table.d.ts +8 -0
- package/DataGrid/Table.d.ts.map +1 -0
- package/DataGrid/UnstyledPressButton.d.ts +10 -0
- package/DataGrid/UnstyledPressButton.d.ts.map +1 -0
- package/DataGrid/VisuallyHiddenCellContent.d.ts +7 -0
- package/DataGrid/VisuallyHiddenCellContent.d.ts.map +1 -0
- package/DataGrid/constants.d.ts +4 -0
- package/DataGrid/constants.d.ts.map +1 -0
- package/DataGrid/context.d.ts +28 -0
- package/DataGrid/context.d.ts.map +1 -0
- package/DataGrid/index.d.ts +2 -0
- package/DataGrid/index.d.ts.map +1 -0
- package/DataGrid/index.js +3509 -0
- package/DataGrid/index.mjs +3493 -0
- package/DataGrid/useEdgeInterceptors.d.ts +15 -0
- package/DataGrid/useEdgeInterceptors.d.ts.map +1 -0
- package/DataGrid/useExpandedRow.d.ts +14 -0
- package/DataGrid/useExpandedRow.d.ts.map +1 -0
- package/DataGrid/useGridTemplate.d.ts +14 -0
- package/DataGrid/useGridTemplate.d.ts.map +1 -0
- package/DropdownButton/DropdownButton.d.ts +51 -3
- package/DropdownButton/DropdownButton.d.ts.map +1 -1
- package/DropdownButton/index.js +27 -102
- package/DropdownButton/index.mjs +27 -86
- package/FocusedProductLayout/BackArrow.d.ts +4 -0
- package/FocusedProductLayout/BackArrow.d.ts.map +1 -0
- package/FocusedProductLayout/Content.d.ts +10 -0
- package/FocusedProductLayout/Content.d.ts.map +1 -0
- package/FocusedProductLayout/FocusedProductLayout.d.ts +111 -0
- package/FocusedProductLayout/FocusedProductLayout.d.ts.map +1 -0
- package/FocusedProductLayout/FocusedProductLayout.stories.d.ts +12 -0
- package/FocusedProductLayout/FocusedProductLayout.stories.d.ts.map +1 -0
- package/FocusedProductLayout/FocusedProductLayout.test.d.ts +2 -0
- package/FocusedProductLayout/FocusedProductLayout.test.d.ts.map +1 -0
- package/FocusedProductLayout/HeaderAtTopOfPage.d.ts +11 -0
- package/FocusedProductLayout/HeaderAtTopOfPage.d.ts.map +1 -0
- package/FocusedProductLayout/HeaderInContentArea.d.ts +11 -0
- package/FocusedProductLayout/HeaderInContentArea.d.ts.map +1 -0
- package/FocusedProductLayout/SidePanel.d.ts +13 -0
- package/FocusedProductLayout/SidePanel.d.ts.map +1 -0
- package/FocusedProductLayout/WizardContent.d.ts +49 -0
- package/FocusedProductLayout/WizardContent.d.ts.map +1 -0
- package/FocusedProductLayout/index.d.ts +2 -0
- package/FocusedProductLayout/index.d.ts.map +1 -0
- package/FocusedProductLayout/index.js +239 -0
- package/FocusedProductLayout/index.mjs +223 -0
- package/FormLayout/FormLayout.d.ts +55 -0
- package/FormLayout/FormLayout.d.ts.map +1 -0
- package/FormLayout/FormLayout.stories.d.ts +13 -0
- package/FormLayout/FormLayout.stories.d.ts.map +1 -0
- package/FormLayout/FormLayout.test.d.ts +2 -0
- package/FormLayout/FormLayout.test.d.ts.map +1 -0
- package/FormLayout/Grid.d.ts +19 -0
- package/FormLayout/Grid.d.ts.map +1 -0
- package/FormLayout/Header.d.ts +9 -0
- package/FormLayout/Header.d.ts.map +1 -0
- package/FormLayout/HelperText.d.ts +13 -0
- package/FormLayout/HelperText.d.ts.map +1 -0
- package/FormLayout/Section.d.ts +12 -0
- package/FormLayout/Section.d.ts.map +1 -0
- package/FormLayout/Title.d.ts +23 -0
- package/FormLayout/Title.d.ts.map +1 -0
- package/FormLayout/context.d.ts +2 -0
- package/FormLayout/context.d.ts.map +1 -0
- package/FormLayout/index.d.ts +2 -0
- package/FormLayout/index.d.ts.map +1 -0
- package/FormLayout/index.js +126 -0
- package/FormLayout/index.mjs +126 -0
- package/HorizontalGrid/index.js +2 -82
- package/HorizontalGrid/index.mjs +2 -82
- package/HorizontalStack/index.js +1 -3
- package/HorizontalStack/index.mjs +1 -3
- package/Icon/Icon.d.ts +53 -2
- package/Icon/Icon.d.ts.map +1 -1
- package/Icon/Icon.stories.d.ts.map +1 -1
- package/Icon/index.js +1 -3
- package/Icon/index.mjs +1 -3
- package/IconButton/IconButton.d.ts +65 -3
- package/IconButton/IconButton.d.ts.map +1 -1
- package/IconButton/index.js +23 -43
- package/IconButton/index.mjs +23 -43
- package/InputField/InputField.d.ts +3 -4
- package/InputField/InputField.d.ts.map +1 -1
- package/InputField/InputField.test.d.ts.map +1 -1
- package/InputField/Label.d.ts +2 -7
- package/InputField/Label.d.ts.map +1 -1
- package/InputField/index.js +1 -10
- package/InputField/index.mjs +1 -10
- package/InputField/useInputField.d.ts +1 -1
- package/InputField/utilities.d.ts +3 -1
- package/InputField/utilities.d.ts.map +1 -1
- package/Menu/MenuItem.d.ts.map +1 -1
- package/Menu/MenuOverlay.d.ts +2 -2
- package/Menu/MenuOverlay.d.ts.map +1 -1
- package/Menu/MenuSection.d.ts.map +1 -1
- package/Menu/MenuTrigger.d.ts.map +1 -1
- package/Menu/index.js +2 -2174
- package/Menu/index.mjs +2 -2174
- package/Menu/utilities.d.ts +10 -0
- package/Menu/utilities.d.ts.map +1 -0
- package/Modal/Modal.d.ts +53 -0
- package/Modal/Modal.d.ts.map +1 -0
- package/Modal/Modal.stories.d.ts +15 -0
- package/Modal/Modal.stories.d.ts.map +1 -0
- package/Modal/Modal.test.d.ts +2 -0
- package/Modal/Modal.test.d.ts.map +1 -0
- package/Modal/ModalBody.d.ts +10 -0
- package/Modal/ModalBody.d.ts.map +1 -0
- package/Modal/ModalContainer.d.ts +26 -0
- package/Modal/ModalContainer.d.ts.map +1 -0
- package/Modal/ModalFooter.d.ts +25 -0
- package/Modal/ModalFooter.d.ts.map +1 -0
- package/Modal/ModalHeader.d.ts +35 -0
- package/Modal/ModalHeader.d.ts.map +1 -0
- package/Modal/ModalTrigger.d.ts +26 -0
- package/Modal/ModalTrigger.d.ts.map +1 -0
- package/Modal/ModalUnderlay.d.ts +19 -0
- package/Modal/ModalUnderlay.d.ts.map +1 -0
- package/Modal/context.d.ts +23 -0
- package/Modal/context.d.ts.map +1 -0
- package/Modal/index.d.ts +2 -0
- package/Modal/index.d.ts.map +1 -0
- package/Modal/index.js +292 -0
- package/Modal/index.mjs +292 -0
- package/Modal/useIntersectionDetection.d.ts +10 -0
- package/Modal/useIntersectionDetection.d.ts.map +1 -0
- package/Notification/index.js +1 -11
- package/Notification/index.mjs +4 -14
- package/ProductLayout/HelpMenu.d.ts +8 -0
- package/ProductLayout/HelpMenu.d.ts.map +1 -0
- package/ProductLayout/LayoutScreenSizeRenderer.d.ts +21 -0
- package/ProductLayout/LayoutScreenSizeRenderer.d.ts.map +1 -0
- package/ProductLayout/ProductLayout.d.ts +75 -0
- package/ProductLayout/ProductLayout.d.ts.map +1 -0
- package/ProductLayout/ProductLayout.stories.d.ts +8 -0
- package/ProductLayout/ProductLayout.stories.d.ts.map +1 -0
- package/ProductLayout/ProductLayout.test.d.ts +2 -0
- package/ProductLayout/ProductLayout.test.d.ts.map +1 -0
- package/ProductLayout/ProductLayoutContent.d.ts +9 -0
- package/ProductLayout/ProductLayoutContent.d.ts.map +1 -0
- package/ProductLayout/ProductLayoutHeader.d.ts +44 -0
- package/ProductLayout/ProductLayoutHeader.d.ts.map +1 -0
- package/ProductLayout/ProductLayoutSidebar.d.ts +9 -0
- package/ProductLayout/ProductLayoutSidebar.d.ts.map +1 -0
- package/ProductLayout/ProductLayoutTabbedContent.d.ts +15 -0
- package/ProductLayout/ProductLayoutTabbedContent.d.ts.map +1 -0
- package/ProductLayout/constants.d.ts +2 -0
- package/ProductLayout/constants.d.ts.map +1 -0
- package/ProductLayout/context.d.ts +13 -0
- package/ProductLayout/context.d.ts.map +1 -0
- package/ProductLayout/index.d.ts +2 -0
- package/ProductLayout/index.d.ts.map +1 -0
- package/ProductLayout/index.js +278 -0
- package/ProductLayout/index.mjs +278 -0
- package/Provider/index.js +9 -21
- package/Provider/index.mjs +9 -21
- package/README.md +20 -14
- package/RadioGroup/index.js +169 -134
- package/RadioGroup/index.mjs +155 -120
- package/SearchNav/CTAGroup.d.ts +21 -0
- package/SearchNav/CTAGroup.d.ts.map +1 -0
- package/SearchNav/CondensedSearchNav.d.ts +9 -0
- package/SearchNav/CondensedSearchNav.d.ts.map +1 -0
- package/SearchNav/Logo.d.ts +13 -0
- package/SearchNav/Logo.d.ts.map +1 -0
- package/SearchNav/LogoGroup.d.ts +21 -0
- package/SearchNav/LogoGroup.d.ts.map +1 -0
- package/SearchNav/PrimaryCTAItem.d.ts +14 -0
- package/SearchNav/PrimaryCTAItem.d.ts.map +1 -0
- package/SearchNav/Search.d.ts +13 -0
- package/SearchNav/Search.d.ts.map +1 -0
- package/SearchNav/SearchNav.d.ts +105 -0
- package/SearchNav/SearchNav.d.ts.map +1 -0
- package/SearchNav/SearchNav.stories.d.ts +14 -0
- package/SearchNav/SearchNav.stories.d.ts.map +1 -0
- package/SearchNav/SearchNav.test.d.ts +2 -0
- package/SearchNav/SearchNav.test.d.ts.map +1 -0
- package/SearchNav/SecondaryCTAItem.d.ts +23 -0
- package/SearchNav/SecondaryCTAItem.d.ts.map +1 -0
- package/SearchNav/Selector.d.ts +15 -0
- package/SearchNav/Selector.d.ts.map +1 -0
- package/SearchNav/SelectorTrigger.d.ts +14 -0
- package/SearchNav/SelectorTrigger.d.ts.map +1 -0
- package/SearchNav/Separator.d.ts +9 -0
- package/SearchNav/Separator.d.ts.map +1 -0
- package/SearchNav/Title.d.ts +12 -0
- package/SearchNav/Title.d.ts.map +1 -0
- package/SearchNav/context.d.ts +20 -0
- package/SearchNav/context.d.ts.map +1 -0
- package/SearchNav/index.d.ts +2 -0
- package/SearchNav/index.d.ts.map +1 -0
- package/SearchNav/index.js +512 -0
- package/SearchNav/index.mjs +496 -0
- package/SearchNav/utilities.d.ts +14 -0
- package/SearchNav/utilities.d.ts.map +1 -0
- package/Select/Select.d.ts +89 -0
- package/Select/Select.d.ts.map +1 -0
- package/Select/Select.stories.d.ts +17 -0
- package/Select/Select.stories.d.ts.map +1 -0
- package/Select/Select.test.d.ts +2 -0
- package/Select/Select.test.d.ts.map +1 -0
- package/Select/SelectContext.d.ts +14 -0
- package/Select/SelectContext.d.ts.map +1 -0
- package/Select/SelectField.d.ts +61 -0
- package/Select/SelectField.d.ts.map +1 -0
- package/Select/SelectOption.d.ts +23 -0
- package/Select/SelectOption.d.ts.map +1 -0
- package/Select/SelectOverlay.d.ts +3 -0
- package/Select/SelectOverlay.d.ts.map +1 -0
- package/Select/SelectSection.d.ts +22 -0
- package/Select/SelectSection.d.ts.map +1 -0
- package/Select/SelectTrigger.d.ts +30 -0
- package/Select/SelectTrigger.d.ts.map +1 -0
- package/Select/index.d.ts +2 -0
- package/Select/index.d.ts.map +1 -0
- package/Select/index.js +121 -0
- package/Select/index.mjs +121 -0
- package/SelectorErrorTooltip/index.js +1 -12
- package/SelectorErrorTooltip/index.mjs +1 -12
- package/Stepper/Step.d.ts +33 -0
- package/Stepper/Step.d.ts.map +1 -0
- package/Stepper/StepButton.d.ts +25 -0
- package/Stepper/StepButton.d.ts.map +1 -0
- package/Stepper/Stepper.d.ts +104 -0
- package/Stepper/Stepper.d.ts.map +1 -0
- package/Stepper/Stepper.stories.d.ts +10 -0
- package/Stepper/Stepper.stories.d.ts.map +1 -0
- package/Stepper/Stepper.test.d.ts +2 -0
- package/Stepper/Stepper.test.d.ts.map +1 -0
- package/Stepper/StepperContext.d.ts +11 -0
- package/Stepper/StepperContext.d.ts.map +1 -0
- package/Stepper/index.d.ts +2 -0
- package/Stepper/index.d.ts.map +1 -0
- package/Stepper/index.js +4 -0
- package/Stepper/index.mjs +4 -0
- package/TabNav/TabNav.d.ts +29 -0
- package/TabNav/TabNav.d.ts.map +1 -0
- package/TabNav/TabNav.stories.d.ts +9 -0
- package/TabNav/TabNav.stories.d.ts.map +1 -0
- package/TabNav/TabNav.test.d.ts +2 -0
- package/TabNav/TabNav.test.d.ts.map +1 -0
- package/TabNav/TabNavItem.d.ts +12 -0
- package/TabNav/TabNavItem.d.ts.map +1 -0
- package/TabNav/index.d.ts +2 -0
- package/TabNav/index.d.ts.map +1 -0
- package/TabNav/index.js +4 -0
- package/TabNav/index.mjs +4 -0
- package/TabPanels/TabPanels.d.ts +68 -0
- package/TabPanels/TabPanels.d.ts.map +1 -0
- package/TabPanels/TabPanels.stories.d.ts +14 -0
- package/TabPanels/TabPanels.stories.d.ts.map +1 -0
- package/TabPanels/TabPanels.test.d.ts +2 -0
- package/TabPanels/TabPanels.test.d.ts.map +1 -0
- package/TabPanels/TabPanelsItem.d.ts +15 -0
- package/TabPanels/TabPanelsItem.d.ts.map +1 -0
- package/TabPanels/TabPanelsPanels.d.ts +14 -0
- package/TabPanels/TabPanelsPanels.d.ts.map +1 -0
- package/TabPanels/TabPanelsTabs.d.ts +15 -0
- package/TabPanels/TabPanelsTabs.d.ts.map +1 -0
- package/TabPanels/context.d.ts +10 -0
- package/TabPanels/context.d.ts.map +1 -0
- package/TabPanels/index.d.ts +2 -0
- package/TabPanels/index.d.ts.map +1 -0
- package/TabPanels/index.js +309 -0
- package/TabPanels/index.mjs +309 -0
- package/Tabs/Edge.d.ts +8 -0
- package/Tabs/Edge.d.ts.map +1 -0
- package/Tabs/Tabs.d.ts +23 -0
- package/Tabs/Tabs.d.ts.map +1 -0
- package/Tabs/TabsItem.d.ts +13 -0
- package/Tabs/TabsItem.d.ts.map +1 -0
- package/Tabs/context.d.ts +7 -0
- package/Tabs/context.d.ts.map +1 -0
- package/Tabs/index.d.ts +2 -0
- package/Tabs/index.d.ts.map +1 -0
- package/Tabs/index.js +4 -0
- package/Tabs/index.mjs +4 -0
- package/Tabs/useIndicatorSizing.d.ts +11 -0
- package/Tabs/useIndicatorSizing.d.ts.map +1 -0
- package/Tabs/useScrollIntoViewIfNeeded.d.ts +11 -0
- package/Tabs/useScrollIntoViewIfNeeded.d.ts.map +1 -0
- package/Tabs/useScrollbar.d.ts +6 -0
- package/Tabs/useScrollbar.d.ts.map +1 -0
- package/Tabs/util.d.ts +9 -0
- package/Tabs/util.d.ts.map +1 -0
- package/Text/Text.d.ts +10 -5
- package/Text/Text.d.ts.map +1 -1
- package/Text/Text.stories.d.ts.map +1 -1
- package/Text/index.js +1 -3
- package/Text/index.mjs +1 -3
- package/TextField/TextField.d.ts +3 -3
- package/TextField/TextField.d.ts.map +1 -1
- package/TextField/TextField.stories.d.ts.map +1 -1
- package/TextField/index.js +39 -48
- package/TextField/index.mjs +39 -48
- package/Textarea/Textarea.d.ts +3 -3
- package/Textarea/Textarea.d.ts.map +1 -1
- package/Textarea/Textarea.stories.d.ts.map +1 -1
- package/Textarea/index.js +40 -45
- package/Textarea/index.mjs +40 -45
- package/Theme/index.js +1 -5
- package/Theme/index.mjs +1 -5
- package/Toggle/Toggle.d.ts +34 -1
- package/Toggle/Toggle.d.ts.map +1 -1
- package/Toggle/index.js +75 -59
- package/Toggle/index.mjs +73 -57
- package/Tooltip/Tooltip.stories.d.ts +3 -0
- package/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/Tooltip/index.js +1 -10
- package/Tooltip/index.mjs +1 -10
- package/UnstyledButton/UnstyledButton.d.ts +2 -2
- package/UnstyledButton/UnstyledButton.d.ts.map +1 -1
- package/UnstyledButton/index.js +1 -6
- package/UnstyledButton/index.mjs +1 -6
- package/VerticalNav/Container.d.ts +4 -0
- package/VerticalNav/Container.d.ts.map +1 -0
- package/VerticalNav/ExpandButton.d.ts +7 -0
- package/VerticalNav/ExpandButton.d.ts.map +1 -0
- package/VerticalNav/Item.d.ts +37 -0
- package/VerticalNav/Item.d.ts.map +1 -0
- package/VerticalNav/ListVerticalNav.d.ts +29 -0
- package/VerticalNav/ListVerticalNav.d.ts.map +1 -0
- package/VerticalNav/NavItem.d.ts +13 -0
- package/VerticalNav/NavItem.d.ts.map +1 -0
- package/VerticalNav/Subnav.d.ts +18 -0
- package/VerticalNav/Subnav.d.ts.map +1 -0
- package/VerticalNav/SubnavItem.d.ts +9 -0
- package/VerticalNav/SubnavItem.d.ts.map +1 -0
- package/VerticalNav/SubnavItemDot.d.ts +7 -0
- package/VerticalNav/SubnavItemDot.d.ts.map +1 -0
- package/VerticalNav/SupplementaryAction.d.ts +26 -0
- package/VerticalNav/SupplementaryAction.d.ts.map +1 -0
- package/VerticalNav/TreeVerticalNav.d.ts +58 -0
- package/VerticalNav/TreeVerticalNav.d.ts.map +1 -0
- package/VerticalNav/VerticalNav.d.ts +29 -0
- package/VerticalNav/VerticalNav.d.ts.map +1 -0
- package/VerticalNav/VerticalNav.stories.d.ts +13 -0
- package/VerticalNav/VerticalNav.stories.d.ts.map +1 -0
- package/VerticalNav/VerticalNav.test.d.ts +2 -0
- package/VerticalNav/VerticalNav.test.d.ts.map +1 -0
- package/VerticalNav/context.d.ts +4 -0
- package/VerticalNav/context.d.ts.map +1 -0
- package/VerticalNav/index.d.ts +2 -0
- package/VerticalNav/index.d.ts.map +1 -0
- package/VerticalNav/index.js +293 -0
- package/VerticalNav/index.mjs +293 -0
- package/VerticalStack/index.js +2 -87
- package/VerticalStack/index.mjs +2 -87
- package/__chunks__/ArrowForwardIos-DSeLeLhY.mjs +41 -0
- package/__chunks__/ArrowForwardIos-DpRiDPNZ.js +57 -0
- package/__chunks__/Button-BaubP6uS.mjs +91 -0
- package/__chunks__/Button-DAkTMKc7.js +90 -0
- package/__chunks__/{Card-7bbd41e0.mjs → Card-DehIhT69.mjs} +38 -50
- package/__chunks__/{Card-dac53c75.js → Card-W8FV5nST.js} +38 -50
- package/__chunks__/CheckCircle-C9h2PNWU.mjs +41 -0
- package/__chunks__/CheckCircle-lgmtkEe6.js +57 -0
- package/__chunks__/Checkbox-BDwYTNp5.mjs +229 -0
- package/__chunks__/Checkbox-ByR0MCQQ.js +244 -0
- package/__chunks__/Close-BQ2IlPyf.js +57 -0
- package/__chunks__/Close-Cq6Q6MN6.mjs +41 -0
- package/__chunks__/CodeSnippet-Cf8DRmRf.mjs +5405 -0
- package/__chunks__/CodeSnippet-CvuQYPRA.js +5404 -0
- package/__chunks__/ExpandMore400-CH7GNxqk.mjs +41 -0
- package/__chunks__/ExpandMore400-CJpvxyJm.js +57 -0
- package/__chunks__/FocusScope-BGRMuwmY.mjs +605 -0
- package/__chunks__/FocusScope-DdNsLxwN.js +604 -0
- package/__chunks__/HelpMenu-B66mX476.mjs +110 -0
- package/__chunks__/HelpMenu-DCEaqj88.js +125 -0
- package/__chunks__/HorizontalGrid-CSzSaaTe.js +61 -0
- package/__chunks__/HorizontalGrid-Dywm-knN.mjs +62 -0
- package/__chunks__/{HorizontalStack-a862839b.js → HorizontalStack-Bz7sTYdR.js} +10 -40
- package/__chunks__/{HorizontalStack-a441c63f.mjs → HorizontalStack-lMwFRL_g.mjs} +10 -40
- package/__chunks__/{Icon-3d00481a.js → Icon-C6yUAtXy.js} +14 -19
- package/__chunks__/{Icon-a75b5201.mjs → Icon-DN1ACRdm.mjs} +15 -20
- package/__chunks__/InputField-BIS56fVO.js +298 -0
- package/__chunks__/InputField-C9MNvZEx.mjs +283 -0
- package/__chunks__/InputIcon-BW5NkXfq.js +150 -0
- package/__chunks__/InputIcon-Ca_E7SPB.mjs +151 -0
- package/__chunks__/Menu-OacI_98l.js +57 -0
- package/__chunks__/Menu-QMGN6ZpX.mjs +468 -0
- package/__chunks__/Menu-qMqvSorL.mjs +41 -0
- package/__chunks__/Menu-vEyyCMmA.js +467 -0
- package/__chunks__/{Notification-b8eafec6.mjs → Notification-B4Aefmu-.mjs} +813 -891
- package/__chunks__/{Notification-c5b34eb3.js → Notification-CSI5lDXk.js} +815 -893
- package/__chunks__/Overlay-BMSoD-Mi.js +57 -0
- package/__chunks__/Overlay-ChwDmz_p.mjs +58 -0
- package/__chunks__/SelectOverlay-BQervyV3.js +564 -0
- package/__chunks__/SelectOverlay-CZFSoXBa.mjs +565 -0
- package/__chunks__/SelectionManager-C6c124iQ.mjs +709 -0
- package/__chunks__/SelectionManager-J8v5knIC.js +708 -0
- package/__chunks__/SelectorErrorTooltip-BnWKUVOX.mjs +75 -0
- package/__chunks__/SelectorErrorTooltip-uAR6mjkK.js +90 -0
- package/__chunks__/Stepper-Df5f2gK7.mjs +169 -0
- package/__chunks__/Stepper-FN3Mxa_Z.js +168 -0
- package/__chunks__/TabNav-B6ouOcUh.mjs +58 -0
- package/__chunks__/TabNav-BvEH8gGa.js +57 -0
- package/__chunks__/Tabs-D3Gqggcr.mjs +254 -0
- package/__chunks__/Tabs-DcOtLEzp.js +253 -0
- package/__chunks__/Text-H5mSc9Q7.mjs +95 -0
- package/__chunks__/Text-TtRUaI0j.js +94 -0
- package/__chunks__/{Theme-751e5575.js → Theme-BkS2hsW1.js} +54 -39
- package/__chunks__/{Theme-4e498252.mjs → Theme-Mqcrx2yr.mjs} +54 -39
- package/__chunks__/{Tooltip-bd55165e.js → Tooltip-2mmk9Lvd.js} +147 -179
- package/__chunks__/{Tooltip-f7e67b21.mjs → Tooltip-poipNGo-.mjs} +140 -172
- package/__chunks__/{UnstyledButton-96172ec0.js → UnstyledButton-C0LUNGpx.js} +46 -65
- package/__chunks__/{UnstyledButton-883f0c6c.mjs → UnstyledButton-CuMq0lXn.mjs} +42 -61
- package/__chunks__/VerticalStack-0ef2BK6_.js +54 -0
- package/__chunks__/VerticalStack-7P4mbZZ4.mjs +55 -0
- package/__chunks__/ariaHideOutside-BODRoFZn.mjs +415 -0
- package/__chunks__/ariaHideOutside-tJLHdPcl.js +414 -0
- package/__chunks__/context-CVdyTo4T.js +91 -0
- package/__chunks__/context-D_DOjzPV.mjs +92 -0
- package/__chunks__/focusSafely-Bht1zxpi.mjs +150 -0
- package/__chunks__/focusSafely-ejXLwM6A.js +149 -0
- package/__chunks__/index-CRCwzqmF.mjs +306 -0
- package/__chunks__/index-DNdIt8Ju.js +305 -0
- package/__chunks__/isScrollable-B7SdKvJi.js +8 -0
- package/__chunks__/isScrollable-Dh9D9IOd.mjs +9 -0
- package/__chunks__/mergeRefs-Ch1vYMzt.js +11 -0
- package/__chunks__/mergeRefs-Cx39pFjp.mjs +12 -0
- package/__chunks__/{omit-fca26542.js → omit-CRub4SL2.js} +7 -2
- package/__chunks__/{omit-f17deb8f.mjs → omit-DhmzK_QE.mjs} +7 -2
- package/__chunks__/{overlayscrollbars-react.es-c8369a03.mjs → overlayscrollbars-react-94m_JKe3.mjs} +983 -881
- package/__chunks__/{overlayscrollbars-react.es-20563393.js → overlayscrollbars-react-DQ2-g-6m.js} +983 -881
- package/__chunks__/{tokens-6be8e137.mjs → tokens-Cz_mVlab.mjs} +60 -113
- package/__chunks__/{tokens-e696ca96.js → tokens-fk3juWxT.js} +60 -113
- package/__chunks__/useCloseOnScroll-CNhtGQoH.mjs +54 -0
- package/__chunks__/useCloseOnScroll-ChaJfTY3.js +53 -0
- package/__chunks__/useControlledState-CFWhSD5C.mjs +47 -0
- package/__chunks__/useControlledState-mnKBd6Uc.js +46 -0
- package/__chunks__/useDialog-DnUtLlKI.js +94 -0
- package/__chunks__/useDialog-DvIc9jw_.mjs +95 -0
- package/__chunks__/useEdgeInterceptors-C36mOFsG.js +48 -0
- package/__chunks__/useEdgeInterceptors-CzmLWO0k.mjs +49 -0
- package/__chunks__/{import-baa3cd0c.mjs → useField--wFqYBgG.mjs} +9 -6
- package/__chunks__/{import-01299af6.js → useField-CPaXL3HO.js} +14 -11
- package/__chunks__/useFocusRing-DqtNblNA.js +41 -0
- package/__chunks__/useFocusRing-w__JgBm3.mjs +42 -0
- package/__chunks__/useFocusVisible-CRd8c0i3.mjs +526 -0
- package/__chunks__/useFocusVisible-CZ_sFz-F.js +525 -0
- package/__chunks__/useFocusWithin-B4Ikmlz7.mjs +48 -0
- package/__chunks__/useFocusWithin-CaQNzvj-.js +47 -0
- package/__chunks__/useFocusable-8hK9klDf.mjs +64 -0
- package/__chunks__/useFocusable-CHCTy0xb.js +63 -0
- package/__chunks__/useFormReset-CSfk372A.js +21 -0
- package/__chunks__/useFormReset-CX9wp_NH.mjs +22 -0
- package/__chunks__/useFormValidation-BF32N04_.mjs +235 -0
- package/__chunks__/useFormValidation-Bf30OTMn.js +234 -0
- package/__chunks__/useHasTabbableChild-BdQyudsz.mjs +37 -0
- package/__chunks__/useHasTabbableChild-C7VbIP9o.js +36 -0
- package/__chunks__/useHover-BIKwjrCT.js +109 -0
- package/__chunks__/useHover-BOYR4wqI.mjs +110 -0
- package/__chunks__/useIntersectionDetection-BvUmtDgl.mjs +22 -0
- package/__chunks__/useIntersectionDetection-DI5n4zwA.js +21 -0
- package/__chunks__/useKeyboard-C9jAeK81.mjs +52 -0
- package/__chunks__/useKeyboard-cV-AdZ-T.js +51 -0
- package/__chunks__/useLabels-C3WqA4W3.js +22 -0
- package/__chunks__/useLabels-DbDdKwiy.mjs +23 -0
- package/__chunks__/useListState-DXdmgF5O.mjs +168 -0
- package/__chunks__/useListState-st8iADmC.js +167 -0
- package/__chunks__/useLocalizedStringFormatter-BLVK8-7o.js +118 -0
- package/__chunks__/useLocalizedStringFormatter-BeeOHqNm.mjs +119 -0
- package/__chunks__/useModal-DAxn8HNF.js +86 -0
- package/__chunks__/useModal-DHcgMfrN.mjs +87 -0
- package/__chunks__/useOverlayPosition-Bfb8Rk50.js +438 -0
- package/__chunks__/useOverlayPosition-CxzDT_JH.mjs +439 -0
- package/__chunks__/usePress-Brm5TpCc.mjs +719 -0
- package/__chunks__/usePress-DN1nfHxR.js +718 -0
- package/__chunks__/useResizeObserver-CDUSOkcs.mjs +32 -0
- package/__chunks__/useResizeObserver-DI-x4M8K.js +31 -0
- package/__chunks__/useSelectableItem-C9EW6XuA.js +631 -0
- package/__chunks__/useSelectableItem-DzOaNYWl.mjs +632 -0
- package/__chunks__/useSingleSelectListState-BcO_l_1Y.mjs +55 -0
- package/__chunks__/useSingleSelectListState-uCmnWGvJ.js +54 -0
- package/__chunks__/{import-e7f45c7e.mjs → useToggle-7nwJEJ8R.mjs} +37 -27
- package/__chunks__/useToggle-uxZwbKBc.js +91 -0
- package/__chunks__/useTreeState-BJPom4Zq.mjs +137 -0
- package/__chunks__/useTreeState-BpmyExZp.js +136 -0
- package/__chunks__/useTriggerWidth-BQSIkcxV.mjs +910 -0
- package/__chunks__/useTriggerWidth-DuZxxZcm.js +909 -0
- package/package.json +16 -14
- package/style.css +3357 -1444
- package/styles/_accessibility.scss +48 -0
- package/styles/_common.scss +8 -0
- package/styles/_media-queries.scss +19 -0
- package/styles/_poppins-fallback.scss +62 -0
- package/styles/_responsive-props.scss +86 -0
- package/styles/_scrollbars.scss +43 -0
- package/styles/_string-functions.scss +26 -0
- package/styles/_token-helpers.scss +41 -0
- package/styles/_typography.scss +53 -0
- package/styles/_unstyled.scss +32 -0
- package/styles/global.scss +32 -0
- package/types.d.ts +3 -1
- package/types.d.ts.map +1 -1
- package/utilities/css.d.ts +1 -0
- package/utilities/css.d.ts.map +1 -1
- package/utilities/css.js +33 -58
- package/utilities/css.mjs +33 -58
- package/utilities/react.d.ts +31 -0
- package/utilities/react.d.ts.map +1 -0
- package/utilities/react.js +70 -0
- package/utilities/react.mjs +70 -0
- package/utilities/storybook.d.ts +9 -1
- package/utilities/storybook.d.ts.map +1 -1
- package/utilities/test.d.ts +18 -3
- package/utilities/test.d.ts.map +1 -1
- package/utilities/tokens.d.ts.map +1 -1
- package/{Menu → utilities}/useScrollbar.d.ts +2 -4
- package/utilities/useScrollbar.d.ts.map +1 -0
- package/utilities/useScrollbar.js +22 -0
- package/utilities/useScrollbar.mjs +22 -0
- package/CodeBlock/SyntaxHighlighter.d.ts +0 -5
- package/CodeBlock/SyntaxHighlighter.d.ts.map +0 -1
- package/CodeBlock/theme.d.ts.map +0 -1
- package/CodeBlock/useScrollbar.d.ts.map +0 -1
- package/Menu/useScrollbar.d.ts.map +0 -1
- package/__chunks__/InputField-4fbaae06.js +0 -487
- package/__chunks__/InputField-a272f602.mjs +0 -472
- package/__chunks__/SelectorErrorTooltip-43c5e29e.js +0 -84
- package/__chunks__/SelectorErrorTooltip-b6204987.mjs +0 -69
- package/__chunks__/Text-1ae70c19.js +0 -102
- package/__chunks__/Text-4ae50d5c.mjs +0 -103
- package/__chunks__/import-0d1b4d93.js +0 -1383
- package/__chunks__/import-3ab42f86.js +0 -1108
- package/__chunks__/import-63bf0645.js +0 -640
- package/__chunks__/import-7545401a.js +0 -81
- package/__chunks__/import-76076ca6.js +0 -54
- package/__chunks__/import-856e0385.mjs +0 -1109
- package/__chunks__/import-86330a7c.mjs +0 -55
- package/__chunks__/import-ab878fb6.mjs +0 -1384
- package/__chunks__/import-b7971a11.mjs +0 -641
- package/__chunks__/real-module-ae2a4342.js +0 -215
- package/__chunks__/real-module-e4cd2301.mjs +0 -216
- /package/{CodeBlock → CodeSnippet}/useScrollbar.d.ts +0 -0
package/Badge/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const Icon = require("../__chunks__/Icon-
|
|
5
|
-
const Text = require("../__chunks__/Text-
|
|
4
|
+
const Icon = require("../__chunks__/Icon-C6yUAtXy.js");
|
|
5
|
+
const Text = require("../__chunks__/Text-TtRUaI0j.js");
|
|
6
6
|
const utilities_css = require("../utilities/css.js");
|
|
7
|
-
const root = "
|
|
8
|
-
const primary = "
|
|
9
|
-
const secondary = "
|
|
10
|
-
const text = "
|
|
11
|
-
const variantPrimary = "
|
|
12
|
-
const variantSecondary = "
|
|
13
|
-
const variantBlack = "
|
|
14
|
-
const variantInverse = "
|
|
15
|
-
const variantGray = "
|
|
16
|
-
const variantSuccess = "
|
|
17
|
-
const variantWarning = "
|
|
18
|
-
const variantDanger = "
|
|
7
|
+
const root = "_root_iqkrp_5";
|
|
8
|
+
const primary = "_primary_iqkrp_16";
|
|
9
|
+
const secondary = "_secondary_iqkrp_17";
|
|
10
|
+
const text = "_text_iqkrp_32";
|
|
11
|
+
const variantPrimary = "_variantPrimary_iqkrp_37";
|
|
12
|
+
const variantSecondary = "_variantSecondary_iqkrp_44";
|
|
13
|
+
const variantBlack = "_variantBlack_iqkrp_51";
|
|
14
|
+
const variantInverse = "_variantInverse_iqkrp_58";
|
|
15
|
+
const variantGray = "_variantGray_iqkrp_65";
|
|
16
|
+
const variantSuccess = "_variantSuccess_iqkrp_72";
|
|
17
|
+
const variantWarning = "_variantWarning_iqkrp_79";
|
|
18
|
+
const variantDanger = "_variantDanger_iqkrp_86";
|
|
19
19
|
const styles = {
|
|
20
20
|
root,
|
|
21
21
|
primary,
|
|
@@ -32,17 +32,8 @@ const styles = {
|
|
|
32
32
|
};
|
|
33
33
|
const DEFAULT_VARIANT = "primary";
|
|
34
34
|
function Badge(props) {
|
|
35
|
-
const {
|
|
36
|
-
|
|
37
|
-
children,
|
|
38
|
-
secondaryLabel,
|
|
39
|
-
icon,
|
|
40
|
-
variant = DEFAULT_VARIANT
|
|
41
|
-
} = props;
|
|
42
|
-
const className = utilities_css.classNames(
|
|
43
|
-
styles.root,
|
|
44
|
-
styles[utilities_css.variationName("variant", variant)]
|
|
45
|
-
);
|
|
35
|
+
const { accessibilityLabel, children, secondaryLabel, icon, variant = DEFAULT_VARIANT } = props;
|
|
36
|
+
const className = utilities_css.classNames(styles.root, styles[utilities_css.variationName("variant", variant)]);
|
|
46
37
|
if (!icon && !children) {
|
|
47
38
|
console.warn("Badge requires one of children or icon");
|
|
48
39
|
}
|
|
@@ -52,7 +43,22 @@ function Badge(props) {
|
|
|
52
43
|
if (icon && !children && !accessibilityLabel) {
|
|
53
44
|
console.warn("Badge with only icon must have accessibilityLabel");
|
|
54
45
|
}
|
|
55
|
-
return
|
|
46
|
+
return React.createElement("span", {
|
|
47
|
+
className
|
|
48
|
+
}, accessibilityLabel && React.createElement(Text.Text, {
|
|
49
|
+
visuallyHidden: true
|
|
50
|
+
}, accessibilityLabel), React.createElement("span", {
|
|
51
|
+
className: styles.primary
|
|
52
|
+
}, icon ? React.createElement(Icon.Icon, {
|
|
53
|
+
symbol: icon,
|
|
54
|
+
size: "sm"
|
|
55
|
+
}) : React.createElement("span", {
|
|
56
|
+
className: styles.text
|
|
57
|
+
}, children)), children && (icon || secondaryLabel) && React.createElement("span", {
|
|
58
|
+
className: styles.secondary
|
|
59
|
+
}, React.createElement("span", {
|
|
60
|
+
className: styles.text
|
|
61
|
+
}, icon ? React.createElement(React.Fragment, null, children) : React.createElement(React.Fragment, null, secondaryLabel))));
|
|
56
62
|
}
|
|
57
63
|
exports.Badge = Badge;
|
|
58
64
|
exports.DEFAULT_VARIANT = DEFAULT_VARIANT;
|
package/Badge/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
3
|
-
import { T as Text } from "../__chunks__/Text-
|
|
2
|
+
import { I as Icon } from "../__chunks__/Icon-DN1ACRdm.mjs";
|
|
3
|
+
import { T as Text } from "../__chunks__/Text-H5mSc9Q7.mjs";
|
|
4
4
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
5
|
-
const root = "
|
|
6
|
-
const primary = "
|
|
7
|
-
const secondary = "
|
|
8
|
-
const text = "
|
|
9
|
-
const variantPrimary = "
|
|
10
|
-
const variantSecondary = "
|
|
11
|
-
const variantBlack = "
|
|
12
|
-
const variantInverse = "
|
|
13
|
-
const variantGray = "
|
|
14
|
-
const variantSuccess = "
|
|
15
|
-
const variantWarning = "
|
|
16
|
-
const variantDanger = "
|
|
5
|
+
const root = "_root_iqkrp_5";
|
|
6
|
+
const primary = "_primary_iqkrp_16";
|
|
7
|
+
const secondary = "_secondary_iqkrp_17";
|
|
8
|
+
const text = "_text_iqkrp_32";
|
|
9
|
+
const variantPrimary = "_variantPrimary_iqkrp_37";
|
|
10
|
+
const variantSecondary = "_variantSecondary_iqkrp_44";
|
|
11
|
+
const variantBlack = "_variantBlack_iqkrp_51";
|
|
12
|
+
const variantInverse = "_variantInverse_iqkrp_58";
|
|
13
|
+
const variantGray = "_variantGray_iqkrp_65";
|
|
14
|
+
const variantSuccess = "_variantSuccess_iqkrp_72";
|
|
15
|
+
const variantWarning = "_variantWarning_iqkrp_79";
|
|
16
|
+
const variantDanger = "_variantDanger_iqkrp_86";
|
|
17
17
|
const styles = {
|
|
18
18
|
root,
|
|
19
19
|
primary,
|
|
@@ -30,17 +30,8 @@ const styles = {
|
|
|
30
30
|
};
|
|
31
31
|
const DEFAULT_VARIANT = "primary";
|
|
32
32
|
function Badge(props) {
|
|
33
|
-
const {
|
|
34
|
-
|
|
35
|
-
children,
|
|
36
|
-
secondaryLabel,
|
|
37
|
-
icon,
|
|
38
|
-
variant = DEFAULT_VARIANT
|
|
39
|
-
} = props;
|
|
40
|
-
const className = classNames(
|
|
41
|
-
styles.root,
|
|
42
|
-
styles[variationName("variant", variant)]
|
|
43
|
-
);
|
|
33
|
+
const { accessibilityLabel, children, secondaryLabel, icon, variant = DEFAULT_VARIANT } = props;
|
|
34
|
+
const className = classNames(styles.root, styles[variationName("variant", variant)]);
|
|
44
35
|
if (!icon && !children) {
|
|
45
36
|
console.warn("Badge requires one of children or icon");
|
|
46
37
|
}
|
|
@@ -50,7 +41,22 @@ function Badge(props) {
|
|
|
50
41
|
if (icon && !children && !accessibilityLabel) {
|
|
51
42
|
console.warn("Badge with only icon must have accessibilityLabel");
|
|
52
43
|
}
|
|
53
|
-
return
|
|
44
|
+
return React__default.createElement("span", {
|
|
45
|
+
className
|
|
46
|
+
}, accessibilityLabel && React__default.createElement(Text, {
|
|
47
|
+
visuallyHidden: true
|
|
48
|
+
}, accessibilityLabel), React__default.createElement("span", {
|
|
49
|
+
className: styles.primary
|
|
50
|
+
}, icon ? React__default.createElement(Icon, {
|
|
51
|
+
symbol: icon,
|
|
52
|
+
size: "sm"
|
|
53
|
+
}) : React__default.createElement("span", {
|
|
54
|
+
className: styles.text
|
|
55
|
+
}, children)), children && (icon || secondaryLabel) && React__default.createElement("span", {
|
|
56
|
+
className: styles.secondary
|
|
57
|
+
}, React__default.createElement("span", {
|
|
58
|
+
className: styles.text
|
|
59
|
+
}, icon ? React__default.createElement(React__default.Fragment, null, children) : React__default.createElement(React__default.Fragment, null, secondaryLabel))));
|
|
54
60
|
}
|
|
55
61
|
export {
|
|
56
62
|
Badge,
|
package/Banner/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const Text = require("../__chunks__/Text-
|
|
4
|
+
const Text = require("../__chunks__/Text-TtRUaI0j.js");
|
|
5
5
|
const utilities_css = require("../utilities/css.js");
|
|
6
|
-
const colorSuccess = "
|
|
7
|
-
const colorPrimary = "
|
|
8
|
-
const colorNeutral = "
|
|
9
|
-
const Banner$1 = "
|
|
6
|
+
const colorSuccess = "_colorSuccess_1pbgt_5";
|
|
7
|
+
const colorPrimary = "_colorPrimary_1pbgt_10";
|
|
8
|
+
const colorNeutral = "_colorNeutral_1pbgt_11";
|
|
9
|
+
const Banner$1 = "_Banner_1pbgt_23";
|
|
10
10
|
const styles = {
|
|
11
11
|
colorSuccess,
|
|
12
12
|
colorPrimary,
|
|
@@ -15,16 +15,15 @@ const styles = {
|
|
|
15
15
|
};
|
|
16
16
|
function Banner(props) {
|
|
17
17
|
const { color = "success", emphasisText, children } = props;
|
|
18
|
-
return
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
);
|
|
18
|
+
return React.createElement("div", {
|
|
19
|
+
className: utilities_css.classNames(styles.Banner, styles[utilities_css.variationName("color", color)])
|
|
20
|
+
}, emphasisText && React.createElement(Text.Text, {
|
|
21
|
+
as: "strong",
|
|
22
|
+
variant: "subtitle1",
|
|
23
|
+
alignment: "center"
|
|
24
|
+
}, !children ? React.createElement(React.Fragment, null, emphasisText) : React.createElement(React.Fragment, null, emphasisText, ": ")), children && React.createElement(Text.Text, {
|
|
25
|
+
variant: "body1",
|
|
26
|
+
alignment: "center"
|
|
27
|
+
}, children));
|
|
29
28
|
}
|
|
30
29
|
exports.Banner = Banner;
|
package/Banner/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { T as Text } from "../__chunks__/Text-
|
|
2
|
+
import { T as Text } from "../__chunks__/Text-H5mSc9Q7.mjs";
|
|
3
3
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
4
|
-
const colorSuccess = "
|
|
5
|
-
const colorPrimary = "
|
|
6
|
-
const colorNeutral = "
|
|
7
|
-
const Banner$1 = "
|
|
4
|
+
const colorSuccess = "_colorSuccess_1pbgt_5";
|
|
5
|
+
const colorPrimary = "_colorPrimary_1pbgt_10";
|
|
6
|
+
const colorNeutral = "_colorNeutral_1pbgt_11";
|
|
7
|
+
const Banner$1 = "_Banner_1pbgt_23";
|
|
8
8
|
const styles = {
|
|
9
9
|
colorSuccess,
|
|
10
10
|
colorPrimary,
|
|
@@ -13,17 +13,16 @@ const styles = {
|
|
|
13
13
|
};
|
|
14
14
|
function Banner(props) {
|
|
15
15
|
const { color = "success", emphasisText, children } = props;
|
|
16
|
-
return
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
);
|
|
16
|
+
return React__default.createElement("div", {
|
|
17
|
+
className: classNames(styles.Banner, styles[variationName("color", color)])
|
|
18
|
+
}, emphasisText && React__default.createElement(Text, {
|
|
19
|
+
as: "strong",
|
|
20
|
+
variant: "subtitle1",
|
|
21
|
+
alignment: "center"
|
|
22
|
+
}, !children ? React__default.createElement(React__default.Fragment, null, emphasisText) : React__default.createElement(React__default.Fragment, null, emphasisText, ": ")), children && React__default.createElement(Text, {
|
|
23
|
+
variant: "body1",
|
|
24
|
+
alignment: "center"
|
|
25
|
+
}, children));
|
|
27
26
|
}
|
|
28
27
|
export {
|
|
29
28
|
Banner
|
package/Button/Button.d.ts
CHANGED
|
@@ -24,24 +24,85 @@ export type ButtonProps = AriaButtonProps & {
|
|
|
24
24
|
/** Link's destination */
|
|
25
25
|
href?: string;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Allow users to perform an action or to navigate to another page.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Use to communicate an action the user can take in order to continue
|
|
32
|
+
* flow in the UI. Supports icons, multiple colors, outlined and link variations,
|
|
33
|
+
* and small size buttons. Underlying element is a button, but becomes an
|
|
34
|
+
* anchor when `href` is provided.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* _Default:_
|
|
38
|
+
* ```tsx
|
|
39
|
+
* import { Button } from "@easypost/easy-ui/Button";
|
|
40
|
+
*
|
|
41
|
+
* export function Component() {
|
|
42
|
+
* return <Button onPress={() => alert("clicked")}>Button</Button>;
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* _Outlined variant:_
|
|
48
|
+
* ```tsx
|
|
49
|
+
* import { Button } from "@easypost/easy-ui/Button";
|
|
50
|
+
*
|
|
51
|
+
* export function Component() {
|
|
52
|
+
* return (
|
|
53
|
+
* <Button onPress={() => alert("clicked")} variant="outlined">
|
|
54
|
+
* Button
|
|
55
|
+
* </Button>
|
|
56
|
+
* );
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* _Success color:_
|
|
62
|
+
* ```tsx
|
|
63
|
+
* import { Button } from "@easypost/easy-ui/Button";
|
|
64
|
+
*
|
|
65
|
+
* export function Component() {
|
|
66
|
+
* return (
|
|
67
|
+
* <Button onPress={() => alert("clicked")} color="success">
|
|
68
|
+
* Button
|
|
69
|
+
* </Button>
|
|
70
|
+
* );
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
* @example
|
|
74
|
+
* _With href and icon:_
|
|
75
|
+
* ```tsx
|
|
76
|
+
* import { Button } from "@easypost/easy-ui/Button";
|
|
77
|
+
* import ArrowBackIcon from "@easypost/easy-ui-icons/ArrowBack";
|
|
78
|
+
*
|
|
79
|
+
* export function Component() {
|
|
80
|
+
* return (
|
|
81
|
+
* <Button href="https://www.easypost.com/" iconAtEnd={ArrowBackIcon}>
|
|
82
|
+
* Button
|
|
83
|
+
* </Button>
|
|
84
|
+
* );
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
27
88
|
export declare const Button: React.ForwardRefExoticComponent<AriaButtonProps<"button"> & {
|
|
28
89
|
/** Button color */
|
|
29
|
-
color?: ButtonColor
|
|
90
|
+
color?: ButtonColor;
|
|
30
91
|
/** Button variant */
|
|
31
|
-
variant?: ButtonVariant
|
|
92
|
+
variant?: ButtonVariant;
|
|
32
93
|
/** Button size */
|
|
33
|
-
size?: ButtonSize
|
|
94
|
+
size?: ButtonSize;
|
|
34
95
|
/** Disables button */
|
|
35
|
-
isDisabled?: boolean
|
|
96
|
+
isDisabled?: boolean;
|
|
36
97
|
/** Button will grow to width of container */
|
|
37
|
-
isBlock?: boolean
|
|
98
|
+
isBlock?: boolean;
|
|
38
99
|
/** Positions icon symbol before children */
|
|
39
|
-
iconAtStart?: IconSymbol
|
|
100
|
+
iconAtStart?: IconSymbol;
|
|
40
101
|
/** Positions icon symbol after children */
|
|
41
|
-
iconAtEnd?: IconSymbol
|
|
102
|
+
iconAtEnd?: IconSymbol;
|
|
42
103
|
/** Content inside button */
|
|
43
104
|
children?: ReactNode;
|
|
44
105
|
/** Link's destination */
|
|
45
|
-
href?: string
|
|
106
|
+
href?: string;
|
|
46
107
|
} & React.RefAttributes<null>>;
|
|
47
108
|
//# sourceMappingURL=Button.d.ts.map
|
package/Button/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,eAAO,MAAM,MAAM;IAjFjB,mBAAmB;YACX,WAAW;IACnB,qBAAqB;cACX,aAAa;IACvB,kBAAkB;WACX,UAAU;IACjB,sBAAsB;iBACT,OAAO;IACpB,6CAA6C;cACnC,OAAO;IACjB,4CAA4C;kBAC9B,UAAU;IACxB,2CAA2C;gBAC/B,UAAU;IACtB,6BAA6B;eAClB,SAAS;IACpB,yBAAyB;WAClB,MAAM;8BAsHb,CAAC"}
|
package/Button/index.js
CHANGED
|
@@ -1,129 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __spreadValues = (a, b) => {
|
|
8
|
-
for (var prop in b || (b = {}))
|
|
9
|
-
if (__hasOwnProp.call(b, prop))
|
|
10
|
-
__defNormalProp(a, prop, b[prop]);
|
|
11
|
-
if (__getOwnPropSymbols)
|
|
12
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
-
if (__propIsEnum.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
}
|
|
16
|
-
return a;
|
|
17
|
-
};
|
|
18
|
-
var __objRest = (source, exclude) => {
|
|
19
|
-
var target = {};
|
|
20
|
-
for (var prop in source)
|
|
21
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
22
|
-
target[prop] = source[prop];
|
|
23
|
-
if (source != null && __getOwnPropSymbols)
|
|
24
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
25
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
26
|
-
target[prop] = source[prop];
|
|
27
|
-
}
|
|
28
|
-
return target;
|
|
29
|
-
};
|
|
30
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const Icon = require("../__chunks__/Icon-3d00481a.js");
|
|
34
|
-
const utilities_css = require("../utilities/css.js");
|
|
35
|
-
require("../__chunks__/import-63bf0645.js");
|
|
36
|
-
require("../__chunks__/omit-fca26542.js");
|
|
37
|
-
require("../__chunks__/import-0d1b4d93.js");
|
|
38
|
-
const Button$1 = "_Button_1f8mn_5";
|
|
39
|
-
const colorPrimary = "_colorPrimary_1f8mn_20";
|
|
40
|
-
const colorSecondary = "_colorSecondary_1f8mn_28";
|
|
41
|
-
const colorSuccess = "_colorSuccess_1f8mn_36";
|
|
42
|
-
const colorWarning = "_colorWarning_1f8mn_44";
|
|
43
|
-
const colorNeutral = "_colorNeutral_1f8mn_52";
|
|
44
|
-
const colorSupport = "_colorSupport_1f8mn_60";
|
|
45
|
-
const colorInverse = "_colorInverse_1f8mn_66";
|
|
46
|
-
const variantFilled = "_variantFilled_1f8mn_72";
|
|
47
|
-
const variantOutlined = "_variantOutlined_1f8mn_99";
|
|
48
|
-
const variantLink = "_variantLink_1f8mn_127";
|
|
49
|
-
const sizeMd = "_sizeMd_1f8mn_153";
|
|
50
|
-
const sizeSm = "_sizeSm_1f8mn_161";
|
|
51
|
-
const block = "_block_1f8mn_180";
|
|
52
|
-
const iconAtStart = "_iconAtStart_1f8mn_185";
|
|
53
|
-
const iconAtEnd = "_iconAtEnd_1f8mn_189";
|
|
54
|
-
const styles = {
|
|
55
|
-
Button: Button$1,
|
|
56
|
-
colorPrimary,
|
|
57
|
-
colorSecondary,
|
|
58
|
-
colorSuccess,
|
|
59
|
-
colorWarning,
|
|
60
|
-
colorNeutral,
|
|
61
|
-
colorSupport,
|
|
62
|
-
colorInverse,
|
|
63
|
-
variantFilled,
|
|
64
|
-
variantOutlined,
|
|
65
|
-
variantLink,
|
|
66
|
-
sizeMd,
|
|
67
|
-
sizeSm,
|
|
68
|
-
block,
|
|
69
|
-
iconAtStart,
|
|
70
|
-
iconAtEnd
|
|
71
|
-
};
|
|
72
|
-
const Button = React.forwardRef((props, inRef) => {
|
|
73
|
-
const _a = props, {
|
|
74
|
-
color = "primary",
|
|
75
|
-
variant = "filled",
|
|
76
|
-
size = "md",
|
|
77
|
-
isDisabled = false,
|
|
78
|
-
isBlock = false,
|
|
79
|
-
iconAtStart: iconAtStart2,
|
|
80
|
-
iconAtEnd: iconAtEnd2,
|
|
81
|
-
children = "Button",
|
|
82
|
-
href = ""
|
|
83
|
-
} = _a, restProps = __objRest(_a, [
|
|
84
|
-
"color",
|
|
85
|
-
"variant",
|
|
86
|
-
"size",
|
|
87
|
-
"isDisabled",
|
|
88
|
-
"isBlock",
|
|
89
|
-
"iconAtStart",
|
|
90
|
-
"iconAtEnd",
|
|
91
|
-
"children",
|
|
92
|
-
"href"
|
|
93
|
-
]);
|
|
94
|
-
const bothIconPropsDefined = iconAtEnd2 && iconAtStart2;
|
|
95
|
-
if (bothIconPropsDefined) {
|
|
96
|
-
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
97
|
-
}
|
|
98
|
-
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
|
|
99
|
-
UnstyledButton.logWarningIfInvalidColorVariantCombination(color, variant);
|
|
100
|
-
return /* @__PURE__ */ React.createElement(
|
|
101
|
-
UnstyledButton.UnstyledButton,
|
|
102
|
-
__spreadValues({
|
|
103
|
-
isDisabled,
|
|
104
|
-
ref: inRef,
|
|
105
|
-
className: utilities_css.classNames(
|
|
106
|
-
styles.Button,
|
|
107
|
-
styles[utilities_css.variationName("color", color)],
|
|
108
|
-
styles[utilities_css.variationName("variant", variant)],
|
|
109
|
-
styles[utilities_css.variationName("size", size)],
|
|
110
|
-
isBlock && styles.block
|
|
111
|
-
),
|
|
112
|
-
href
|
|
113
|
-
}, restProps),
|
|
114
|
-
iconAtStart2 && canUseIcon && /* @__PURE__ */ React.createElement(Icon.Icon, { symbol: iconAtStart2 }),
|
|
115
|
-
/* @__PURE__ */ React.createElement(
|
|
116
|
-
"span",
|
|
117
|
-
{
|
|
118
|
-
className: utilities_css.classNames(
|
|
119
|
-
iconAtStart2 && canUseIcon && styles.iconAtStart,
|
|
120
|
-
iconAtEnd2 && canUseIcon && styles.iconAtEnd
|
|
121
|
-
)
|
|
122
|
-
},
|
|
123
|
-
children
|
|
124
|
-
),
|
|
125
|
-
iconAtEnd2 && canUseIcon && /* @__PURE__ */ React.createElement(Icon.Icon, { symbol: iconAtEnd2 })
|
|
126
|
-
);
|
|
127
|
-
});
|
|
128
|
-
Button.displayName = "Button";
|
|
129
|
-
exports.Button = Button;
|
|
3
|
+
const Button = require("../__chunks__/Button-DAkTMKc7.js");
|
|
4
|
+
exports.Button = Button.Button;
|
package/Button/index.mjs
CHANGED
|
@@ -1,129 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
var __objRest = (source, exclude) => {
|
|
18
|
-
var target = {};
|
|
19
|
-
for (var prop in source)
|
|
20
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
-
target[prop] = source[prop];
|
|
22
|
-
if (source != null && __getOwnPropSymbols)
|
|
23
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
import React__default, { forwardRef } from "react";
|
|
30
|
-
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/UnstyledButton-883f0c6c.mjs";
|
|
31
|
-
import { I as Icon } from "../__chunks__/Icon-a75b5201.mjs";
|
|
32
|
-
import { classNames, variationName } from "../utilities/css.mjs";
|
|
33
|
-
import "../__chunks__/import-b7971a11.mjs";
|
|
34
|
-
import "../__chunks__/omit-f17deb8f.mjs";
|
|
35
|
-
import "../__chunks__/import-ab878fb6.mjs";
|
|
36
|
-
const Button$1 = "_Button_1f8mn_5";
|
|
37
|
-
const colorPrimary = "_colorPrimary_1f8mn_20";
|
|
38
|
-
const colorSecondary = "_colorSecondary_1f8mn_28";
|
|
39
|
-
const colorSuccess = "_colorSuccess_1f8mn_36";
|
|
40
|
-
const colorWarning = "_colorWarning_1f8mn_44";
|
|
41
|
-
const colorNeutral = "_colorNeutral_1f8mn_52";
|
|
42
|
-
const colorSupport = "_colorSupport_1f8mn_60";
|
|
43
|
-
const colorInverse = "_colorInverse_1f8mn_66";
|
|
44
|
-
const variantFilled = "_variantFilled_1f8mn_72";
|
|
45
|
-
const variantOutlined = "_variantOutlined_1f8mn_99";
|
|
46
|
-
const variantLink = "_variantLink_1f8mn_127";
|
|
47
|
-
const sizeMd = "_sizeMd_1f8mn_153";
|
|
48
|
-
const sizeSm = "_sizeSm_1f8mn_161";
|
|
49
|
-
const block = "_block_1f8mn_180";
|
|
50
|
-
const iconAtStart = "_iconAtStart_1f8mn_185";
|
|
51
|
-
const iconAtEnd = "_iconAtEnd_1f8mn_189";
|
|
52
|
-
const styles = {
|
|
53
|
-
Button: Button$1,
|
|
54
|
-
colorPrimary,
|
|
55
|
-
colorSecondary,
|
|
56
|
-
colorSuccess,
|
|
57
|
-
colorWarning,
|
|
58
|
-
colorNeutral,
|
|
59
|
-
colorSupport,
|
|
60
|
-
colorInverse,
|
|
61
|
-
variantFilled,
|
|
62
|
-
variantOutlined,
|
|
63
|
-
variantLink,
|
|
64
|
-
sizeMd,
|
|
65
|
-
sizeSm,
|
|
66
|
-
block,
|
|
67
|
-
iconAtStart,
|
|
68
|
-
iconAtEnd
|
|
69
|
-
};
|
|
70
|
-
const Button = forwardRef((props, inRef) => {
|
|
71
|
-
const _a = props, {
|
|
72
|
-
color = "primary",
|
|
73
|
-
variant = "filled",
|
|
74
|
-
size = "md",
|
|
75
|
-
isDisabled = false,
|
|
76
|
-
isBlock = false,
|
|
77
|
-
iconAtStart: iconAtStart2,
|
|
78
|
-
iconAtEnd: iconAtEnd2,
|
|
79
|
-
children = "Button",
|
|
80
|
-
href = ""
|
|
81
|
-
} = _a, restProps = __objRest(_a, [
|
|
82
|
-
"color",
|
|
83
|
-
"variant",
|
|
84
|
-
"size",
|
|
85
|
-
"isDisabled",
|
|
86
|
-
"isBlock",
|
|
87
|
-
"iconAtStart",
|
|
88
|
-
"iconAtEnd",
|
|
89
|
-
"children",
|
|
90
|
-
"href"
|
|
91
|
-
]);
|
|
92
|
-
const bothIconPropsDefined = iconAtEnd2 && iconAtStart2;
|
|
93
|
-
if (bothIconPropsDefined) {
|
|
94
|
-
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
95
|
-
}
|
|
96
|
-
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
|
|
97
|
-
logWarningIfInvalidColorVariantCombination(color, variant);
|
|
98
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
99
|
-
UnstyledButton,
|
|
100
|
-
__spreadValues({
|
|
101
|
-
isDisabled,
|
|
102
|
-
ref: inRef,
|
|
103
|
-
className: classNames(
|
|
104
|
-
styles.Button,
|
|
105
|
-
styles[variationName("color", color)],
|
|
106
|
-
styles[variationName("variant", variant)],
|
|
107
|
-
styles[variationName("size", size)],
|
|
108
|
-
isBlock && styles.block
|
|
109
|
-
),
|
|
110
|
-
href
|
|
111
|
-
}, restProps),
|
|
112
|
-
iconAtStart2 && canUseIcon && /* @__PURE__ */ React__default.createElement(Icon, { symbol: iconAtStart2 }),
|
|
113
|
-
/* @__PURE__ */ React__default.createElement(
|
|
114
|
-
"span",
|
|
115
|
-
{
|
|
116
|
-
className: classNames(
|
|
117
|
-
iconAtStart2 && canUseIcon && styles.iconAtStart,
|
|
118
|
-
iconAtEnd2 && canUseIcon && styles.iconAtEnd
|
|
119
|
-
)
|
|
120
|
-
},
|
|
121
|
-
children
|
|
122
|
-
),
|
|
123
|
-
iconAtEnd2 && canUseIcon && /* @__PURE__ */ React__default.createElement(Icon, { symbol: iconAtEnd2 })
|
|
124
|
-
);
|
|
125
|
-
});
|
|
126
|
-
Button.displayName = "Button";
|
|
1
|
+
import { B } from "../__chunks__/Button-BaubP6uS.mjs";
|
|
127
2
|
export {
|
|
128
|
-
Button
|
|
3
|
+
B as Button
|
|
129
4
|
};
|