@easypost/easy-ui 1.0.0-alpha.3 → 1.0.0-alpha.30
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 -27
- package/Badge/index.mjs +32 -27
- package/Banner/index.js +15 -17
- package/Banner/index.mjs +15 -17
- package/Button/Button.d.ts +61 -0
- package/Button/Button.d.ts.map +1 -1
- package/Button/index.js +32 -70
- package/Button/index.mjs +31 -69
- package/CHANGELOG.md +276 -0
- package/Card/Card.d.ts +93 -0
- package/Card/Card.d.ts.map +1 -0
- package/Card/Card.stories.d.ts +20 -0
- package/Card/Card.stories.d.ts.map +1 -0
- package/Card/Card.test.d.ts +2 -0
- package/Card/Card.test.d.ts.map +1 -0
- package/Card/index.d.ts +2 -0
- package/Card/index.d.ts.map +1 -0
- package/Card/index.js +96 -0
- package/Card/index.mjs +96 -0
- package/Checkbox/Checkbox.d.ts +90 -0
- package/Checkbox/Checkbox.d.ts.map +1 -0
- package/Checkbox/Checkbox.stories.d.ts +13 -0
- package/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/Checkbox/Checkbox.test.d.ts +3 -0
- package/Checkbox/Checkbox.test.d.ts.map +1 -0
- package/Checkbox/index.d.ts +2 -0
- package/Checkbox/index.d.ts.map +1 -0
- package/Checkbox/index.js +260 -0
- package/Checkbox/index.mjs +244 -0
- package/CodeBlock/CodeBlock.d.ts +76 -0
- package/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/CodeBlock/CodeBlock.stories.d.ts +10 -0
- package/CodeBlock/CodeBlock.stories.d.ts.map +1 -0
- package/CodeBlock/CodeBlock.test.d.ts +2 -0
- package/CodeBlock/CodeBlock.test.d.ts.map +1 -0
- 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.d.ts +2 -0
- package/CodeBlock/index.d.ts.map +1 -0
- package/CodeBlock/index.js +357 -0
- package/CodeBlock/index.mjs +341 -0
- 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 +8 -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/CodeSnippet/theme.d.ts +20 -0
- package/CodeSnippet/theme.d.ts.map +1 -0
- package/CodeSnippet/useScrollbar.d.ts +12 -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 +27 -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 +3615 -0
- package/DataGrid/index.mjs +3599 -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 +48 -0
- 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 +247 -0
- package/FocusedProductLayout/index.mjs +231 -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 +3 -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/HorizontalGrid.d.ts +52 -0
- package/HorizontalGrid/HorizontalGrid.d.ts.map +1 -0
- package/HorizontalGrid/HorizontalGrid.stories.d.ts +14 -0
- package/HorizontalGrid/HorizontalGrid.stories.d.ts.map +1 -0
- package/HorizontalGrid/HorizontalGrid.test.d.ts +2 -0
- package/HorizontalGrid/HorizontalGrid.test.d.ts.map +1 -0
- package/HorizontalGrid/index.d.ts +2 -0
- package/HorizontalGrid/index.d.ts.map +1 -0
- package/HorizontalGrid/index.js +64 -0
- package/HorizontalGrid/index.mjs +64 -0
- package/HorizontalGrid/utilities.d.ts +4 -0
- package/HorizontalGrid/utilities.d.ts.map +1 -0
- package/HorizontalStack/HorizontalStack.d.ts +47 -0
- package/HorizontalStack/HorizontalStack.d.ts.map +1 -0
- package/HorizontalStack/HorizontalStack.stories.d.ts +12 -0
- package/HorizontalStack/HorizontalStack.stories.d.ts.map +1 -0
- package/HorizontalStack/HorizontalStack.test.d.ts +2 -0
- package/HorizontalStack/HorizontalStack.test.d.ts.map +1 -0
- package/HorizontalStack/index.d.ts +2 -0
- package/HorizontalStack/index.d.ts.map +1 -0
- package/HorizontalStack/index.js +50 -0
- package/HorizontalStack/index.mjs +50 -0
- 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 +38 -5
- package/Icon/index.mjs +38 -5
- package/IconButton/IconButton.d.ts +62 -0
- package/IconButton/IconButton.d.ts.map +1 -1
- package/IconButton/index.js +24 -44
- package/IconButton/index.mjs +23 -43
- package/InputField/InputCaption.d.ts +15 -0
- package/InputField/InputCaption.d.ts.map +1 -0
- package/InputField/InputField.d.ts +80 -0
- package/InputField/InputField.d.ts.map +1 -0
- package/InputField/InputField.test.d.ts +3 -0
- package/InputField/InputField.test.d.ts.map +1 -0
- package/InputField/InputIcon.d.ts +30 -0
- package/InputField/InputIcon.d.ts.map +1 -0
- package/InputField/Label.d.ts +29 -0
- package/InputField/Label.d.ts.map +1 -0
- package/InputField/PasswordButton.d.ts +39 -0
- package/InputField/PasswordButton.d.ts.map +1 -0
- package/InputField/index.d.ts +2 -0
- package/InputField/index.d.ts.map +1 -0
- package/InputField/index.js +312 -0
- package/InputField/index.mjs +296 -0
- package/InputField/useInputField.d.ts +9 -0
- package/InputField/useInputField.d.ts.map +1 -0
- package/InputField/utilities.d.ts +8 -0
- package/InputField/utilities.d.ts.map +1 -0
- package/Menu/MenuItem.d.ts.map +1 -1
- 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 +201 -4534
- package/Menu/index.mjs +200 -4533
- package/Menu/utilities.d.ts +11 -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 +290 -0
- package/Modal/index.mjs +290 -0
- package/Modal/useIntersectionDetection.d.ts +10 -0
- package/Modal/useIntersectionDetection.d.ts.map +1 -0
- package/Notification/Notification.d.ts +231 -0
- package/Notification/Notification.d.ts.map +1 -0
- package/Notification/Notification.stories.d.ts +10 -0
- package/Notification/Notification.stories.d.ts.map +1 -0
- package/Notification/Notification.test.d.ts +2 -0
- package/Notification/Notification.test.d.ts.map +1 -0
- package/Notification/NotificationContainer.d.ts +23 -0
- package/Notification/NotificationContainer.d.ts.map +1 -0
- package/Notification/NotificationQueue.d.ts +20 -0
- package/Notification/NotificationQueue.d.ts.map +1 -0
- package/Notification/NotificationRegion.d.ts +17 -0
- package/Notification/NotificationRegion.d.ts.map +1 -0
- package/Notification/index.d.ts +2 -0
- package/Notification/index.d.ts.map +1 -0
- package/Notification/index.js +1448 -0
- package/Notification/index.mjs +1432 -0
- package/Notification/useNotificationState.d.ts +8 -0
- package/Notification/useNotificationState.d.ts.map +1 -0
- 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 +276 -0
- package/ProductLayout/index.mjs +276 -0
- package/Provider/Provider.d.ts +55 -1
- package/Provider/Provider.d.ts.map +1 -1
- package/Provider/index.js +9 -6
- package/Provider/index.mjs +9 -6
- package/README.md +16 -14
- package/RadioGroup/RadioGroup.d.ts +71 -0
- package/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/RadioGroup/RadioGroup.stories.d.ts +17 -0
- package/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
- package/RadioGroup/RadioGroup.test.d.ts +2 -0
- package/RadioGroup/RadioGroup.test.d.ts.map +1 -0
- package/RadioGroup/RadioGroupContext.d.ts +8 -0
- package/RadioGroup/RadioGroupContext.d.ts.map +1 -0
- package/RadioGroup/RadioGroupItem.d.ts +28 -0
- package/RadioGroup/RadioGroupItem.d.ts.map +1 -0
- package/RadioGroup/index.d.ts +2 -0
- package/RadioGroup/index.d.ts.map +1 -0
- package/RadioGroup/index.js +336 -0
- package/RadioGroup/index.mjs +336 -0
- 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 +528 -0
- package/SearchNav/index.mjs +512 -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/SelectorErrorTooltip.d.ts +4 -0
- package/SelectorErrorTooltip/SelectorErrorTooltip.d.ts.map +1 -0
- package/SelectorErrorTooltip/index.d.ts +2 -0
- package/SelectorErrorTooltip/index.d.ts.map +1 -0
- package/SelectorErrorTooltip/index.js +99 -0
- package/SelectorErrorTooltip/index.mjs +83 -0
- 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 +12 -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 +171 -0
- package/Stepper/index.mjs +171 -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 +58 -0
- package/TabNav/index.mjs +58 -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 +11 -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 +312 -0
- package/TabPanels/index.mjs +312 -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 +8 -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 +252 -0
- package/Tabs/index.mjs +252 -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 +11 -6
- package/Text/Text.d.ts.map +1 -1
- package/Text/Text.stories.d.ts.map +1 -1
- package/Text/index.js +93 -5
- package/Text/index.mjs +93 -5
- package/TextField/TextField.d.ts +110 -0
- package/TextField/TextField.d.ts.map +1 -0
- package/TextField/TextField.stories.d.ts +15 -0
- package/TextField/TextField.stories.d.ts.map +1 -0
- package/TextField/TextField.test.d.ts +2 -0
- package/TextField/TextField.test.d.ts.map +1 -0
- package/TextField/index.d.ts +2 -0
- package/TextField/index.d.ts.map +1 -0
- package/TextField/index.js +45 -0
- package/TextField/index.mjs +45 -0
- package/Textarea/Textarea.d.ts +87 -0
- package/Textarea/Textarea.d.ts.map +1 -0
- package/Textarea/Textarea.stories.d.ts +13 -0
- package/Textarea/Textarea.stories.d.ts.map +1 -0
- package/Textarea/Textarea.test.d.ts +2 -0
- package/Textarea/Textarea.test.d.ts.map +1 -0
- package/Textarea/index.d.ts +2 -0
- package/Textarea/index.d.ts.map +1 -0
- package/Textarea/index.js +46 -0
- package/Textarea/index.mjs +46 -0
- package/Theme/Theme.d.ts.map +1 -1
- package/Theme/index.js +145 -8
- package/Theme/index.mjs +145 -8
- package/Toggle/Switch.d.ts +24 -0
- package/Toggle/Switch.d.ts.map +1 -0
- package/Toggle/Toggle.d.ts +105 -0
- package/Toggle/Toggle.d.ts.map +1 -0
- package/Toggle/Toggle.stories.d.ts +10 -0
- package/Toggle/Toggle.stories.d.ts.map +1 -0
- package/Toggle/Toggle.test.d.ts +2 -0
- package/Toggle/Toggle.test.d.ts.map +1 -0
- package/Toggle/index.d.ts +2 -0
- package/Toggle/index.d.ts.map +1 -0
- package/Toggle/index.js +132 -0
- package/Toggle/index.mjs +132 -0
- package/Tooltip/Tooltip.stories.d.ts +3 -0
- package/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/Tooltip/Tooltip.test.d.ts +4 -1
- package/Tooltip/Tooltip.test.d.ts.map +1 -1
- package/Tooltip/index.js +2 -317
- package/Tooltip/index.mjs +2 -317
- package/UnstyledButton/UnstyledButton.d.ts.map +1 -1
- package/UnstyledButton/index.js +2 -7
- 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 +28 -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 +17 -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 +35 -0
- package/VerticalNav/SupplementaryAction.d.ts.map +1 -0
- package/VerticalNav/TreeVerticalNav.d.ts +57 -0
- package/VerticalNav/TreeVerticalNav.d.ts.map +1 -0
- package/VerticalNav/VerticalNav.d.ts +32 -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 +5 -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 +290 -0
- package/VerticalNav/index.mjs +290 -0
- package/VerticalStack/VerticalStack.d.ts +43 -0
- package/VerticalStack/VerticalStack.d.ts.map +1 -0
- package/VerticalStack/VerticalStack.stories.d.ts +12 -0
- package/VerticalStack/VerticalStack.stories.d.ts.map +1 -0
- package/VerticalStack/VerticalStack.test.d.ts +2 -0
- package/VerticalStack/VerticalStack.test.d.ts.map +1 -0
- package/VerticalStack/index.d.ts +2 -0
- package/VerticalStack/index.d.ts.map +1 -0
- package/VerticalStack/index.js +55 -0
- package/VerticalStack/index.mjs +55 -0
- package/__chunks__/ArrowForwardIos-kdkKbymv.mjs +49 -0
- package/__chunks__/ArrowForwardIos-rGvloreW.js +65 -0
- package/__chunks__/CheckCircle-VrvUCl5A.mjs +49 -0
- package/__chunks__/CheckCircle-mghrdMPJ.js +65 -0
- package/__chunks__/Close-Q99KJrcY.mjs +49 -0
- package/__chunks__/Close-pWwB1aCW.js +65 -0
- package/__chunks__/ExpandMore400-I7nIZ4Dn.mjs +49 -0
- package/__chunks__/ExpandMore400-f7xxwtIT.js +65 -0
- package/__chunks__/HelpMenu-FgLglMLd.js +141 -0
- package/__chunks__/HelpMenu-jlvvMPk7.mjs +126 -0
- package/__chunks__/InputIcon-OLCQEe8p.mjs +151 -0
- package/__chunks__/InputIcon-Q9gL3lh1.js +150 -0
- package/__chunks__/Menu-0hmX2JEQ.mjs +49 -0
- package/__chunks__/Menu-RHS5rIdQ.js +65 -0
- package/__chunks__/SelectOverlay-XC1HF-o8.js +576 -0
- package/__chunks__/SelectOverlay-bhN3e747.mjs +577 -0
- package/__chunks__/import-0rUXPsJm.js +2131 -0
- package/__chunks__/import-1dizUVDG.mjs +72 -0
- package/__chunks__/import-3Ab-2Yxl.mjs +839 -0
- package/__chunks__/import-3DDQooK4.mjs +149 -0
- package/__chunks__/import-6JIVsAQ4.mjs +92 -0
- package/__chunks__/import-AP3AFYrv.mjs +725 -0
- package/__chunks__/import-AdSP9fsz.js +148 -0
- package/__chunks__/import-ExASbr5t.js +231 -0
- package/__chunks__/import-GC-6m69n.js +55 -0
- package/__chunks__/import-J0seVzci.js +838 -0
- package/__chunks__/import-LjgF4Avq.js +71 -0
- package/__chunks__/import-OCdXkqfQ.js +253 -0
- package/__chunks__/import-RKadoJrB.mjs +232 -0
- package/__chunks__/import-Tu4mq5N5.mjs +820 -0
- package/__chunks__/{import-998c9181.js → import-a5pkKaOt.js} +302 -458
- package/__chunks__/import-iN84q3Qc.js +819 -0
- package/__chunks__/import-iaGkW2_A.mjs +2132 -0
- package/__chunks__/import-j-cSWNWF.mjs +56 -0
- package/__chunks__/import-lhxHUqoC.js +61 -0
- package/__chunks__/import-mOdM6Zz9.mjs +62 -0
- package/__chunks__/import-n3XADlnC.js +91 -0
- package/__chunks__/import-o8OpczmV.mjs +254 -0
- package/__chunks__/{import-8fe3968d.mjs → import-t_Sxp5et.mjs} +288 -444
- package/__chunks__/import-wT9yNJBX.js +724 -0
- package/__chunks__/index-2_WHg2Jk.js +295 -0
- package/__chunks__/index-3w8mSoRx.mjs +5421 -0
- package/__chunks__/index-9weLpYXa.mjs +308 -0
- package/__chunks__/{UnstyledButton-bcc44509.js → index-hDJcco6g.js} +26 -44
- package/__chunks__/index-hnDwuSY-.js +307 -0
- package/__chunks__/index-k4YGEYVi.js +5420 -0
- package/__chunks__/{UnstyledButton-8557c6d4.mjs → index-mteZT19W.mjs} +24 -42
- package/__chunks__/index-v2hIlQJK.mjs +296 -0
- package/__chunks__/{omit-c0cd4d0b.mjs → omit-B9V4OM3c.mjs} +133 -33
- package/__chunks__/{omit-c8af4eea.js → omit-tcSejr4A.js} +148 -48
- package/__chunks__/overlayscrollbars-react-uKTugL6b.mjs +2630 -0
- package/__chunks__/overlayscrollbars-react-uaQJA9_l.js +2629 -0
- package/__chunks__/real-module-hif3NbKs.mjs +249 -0
- package/__chunks__/real-module-sgJg4nS3.js +248 -0
- package/__chunks__/tokens-AfPLdQEB.mjs +260 -0
- package/__chunks__/tokens-QQiosMbP.js +259 -0
- package/__chunks__/useEdgeInterceptors-JTn-JEL3.js +48 -0
- package/__chunks__/useEdgeInterceptors-edJPTYF9.mjs +49 -0
- package/__chunks__/useIntersectionDetection-AE3_5rD0.js +21 -0
- package/__chunks__/useIntersectionDetection-u9UnfEyl.mjs +22 -0
- package/__chunks__/useTriggerWidth-VDTOGly4.mjs +551 -0
- package/__chunks__/useTriggerWidth-rbd_jMSR.js +550 -0
- package/package.json +16 -11
- package/style.css +4450 -1607
- 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 +7 -2
- package/types.d.ts.map +1 -1
- package/utilities/Noop.d.ts +9 -0
- package/utilities/Noop.d.ts.map +1 -0
- package/utilities/css.d.ts +11 -2
- package/utilities/css.d.ts.map +1 -1
- package/utilities/css.js +37 -49
- package/utilities/css.mjs +37 -49
- 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 +20 -1
- package/utilities/storybook.d.ts.map +1 -1
- package/utilities/test.d.ts +11 -2
- package/utilities/test.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/Menu/useScrollbar.d.ts.map +0 -1
- package/__chunks__/Icon-0104616d.js +0 -44
- package/__chunks__/Icon-5827beea.mjs +0 -45
- package/__chunks__/Text-9479d08b.js +0 -99
- package/__chunks__/Text-f9e0e2d8.mjs +0 -100
- package/__chunks__/Theme-2534fc39.js +0 -392
- package/__chunks__/Theme-911ffd8c.mjs +0 -393
- package/__chunks__/import-922563af.js +0 -1936
- package/__chunks__/import-c72f764d.mjs +0 -1937
- package/__chunks__/kebabCase-244e6e3f.mjs +0 -383
- package/__chunks__/kebabCase-4fed899a.js +0 -382
package/Badge/index.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const Icon_index = require("../Icon/index.js");
|
|
5
|
+
const Text_index = require("../Text/index.js");
|
|
6
6
|
const utilities_css = require("../utilities/css.js");
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const variantDanger = "_variantDanger_qdscb_86";
|
|
7
|
+
const root = "_root_145ul_5";
|
|
8
|
+
const primary = "_primary_145ul_16";
|
|
9
|
+
const secondary = "_secondary_145ul_17";
|
|
10
|
+
const text = "_text_145ul_32";
|
|
11
|
+
const variantPrimary = "_variantPrimary_145ul_37";
|
|
12
|
+
const variantSecondary = "_variantSecondary_145ul_44";
|
|
13
|
+
const variantBlack = "_variantBlack_145ul_51";
|
|
14
|
+
const variantInverse = "_variantInverse_145ul_58";
|
|
15
|
+
const variantGray = "_variantGray_145ul_65";
|
|
16
|
+
const variantSuccess = "_variantSuccess_145ul_72";
|
|
17
|
+
const variantWarning = "_variantWarning_145ul_79";
|
|
18
|
+
const variantDanger = "_variantDanger_145ul_86";
|
|
20
19
|
const styles = {
|
|
21
20
|
root,
|
|
22
21
|
primary,
|
|
@@ -33,17 +32,8 @@ const styles = {
|
|
|
33
32
|
};
|
|
34
33
|
const DEFAULT_VARIANT = "primary";
|
|
35
34
|
function Badge(props) {
|
|
36
|
-
const {
|
|
37
|
-
|
|
38
|
-
children,
|
|
39
|
-
secondaryLabel,
|
|
40
|
-
icon,
|
|
41
|
-
variant = DEFAULT_VARIANT
|
|
42
|
-
} = props;
|
|
43
|
-
const className = utilities_css.classNames(
|
|
44
|
-
styles.root,
|
|
45
|
-
styles[utilities_css.variationName("variant", variant)]
|
|
46
|
-
);
|
|
35
|
+
const { accessibilityLabel, children, secondaryLabel, icon, variant = DEFAULT_VARIANT } = props;
|
|
36
|
+
const className = utilities_css.classNames(styles.root, styles[utilities_css.variationName("variant", variant)]);
|
|
47
37
|
if (!icon && !children) {
|
|
48
38
|
console.warn("Badge requires one of children or icon");
|
|
49
39
|
}
|
|
@@ -53,7 +43,22 @@ function Badge(props) {
|
|
|
53
43
|
if (icon && !children && !accessibilityLabel) {
|
|
54
44
|
console.warn("Badge with only icon must have accessibilityLabel");
|
|
55
45
|
}
|
|
56
|
-
return
|
|
46
|
+
return React.createElement("span", {
|
|
47
|
+
className
|
|
48
|
+
}, accessibilityLabel && React.createElement(Text_index.Text, {
|
|
49
|
+
visuallyHidden: true
|
|
50
|
+
}, accessibilityLabel), React.createElement("span", {
|
|
51
|
+
className: styles.primary
|
|
52
|
+
}, icon ? React.createElement(Icon_index.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))));
|
|
57
62
|
}
|
|
58
63
|
exports.Badge = Badge;
|
|
59
64
|
exports.DEFAULT_VARIANT = DEFAULT_VARIANT;
|
package/Badge/index.mjs
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Icon } from "../Icon/index.mjs";
|
|
3
|
+
import { Text } from "../Text/index.mjs";
|
|
4
4
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const variantDanger = "_variantDanger_qdscb_86";
|
|
5
|
+
const root = "_root_145ul_5";
|
|
6
|
+
const primary = "_primary_145ul_16";
|
|
7
|
+
const secondary = "_secondary_145ul_17";
|
|
8
|
+
const text = "_text_145ul_32";
|
|
9
|
+
const variantPrimary = "_variantPrimary_145ul_37";
|
|
10
|
+
const variantSecondary = "_variantSecondary_145ul_44";
|
|
11
|
+
const variantBlack = "_variantBlack_145ul_51";
|
|
12
|
+
const variantInverse = "_variantInverse_145ul_58";
|
|
13
|
+
const variantGray = "_variantGray_145ul_65";
|
|
14
|
+
const variantSuccess = "_variantSuccess_145ul_72";
|
|
15
|
+
const variantWarning = "_variantWarning_145ul_79";
|
|
16
|
+
const variantDanger = "_variantDanger_145ul_86";
|
|
18
17
|
const styles = {
|
|
19
18
|
root,
|
|
20
19
|
primary,
|
|
@@ -31,17 +30,8 @@ const styles = {
|
|
|
31
30
|
};
|
|
32
31
|
const DEFAULT_VARIANT = "primary";
|
|
33
32
|
function Badge(props) {
|
|
34
|
-
const {
|
|
35
|
-
|
|
36
|
-
children,
|
|
37
|
-
secondaryLabel,
|
|
38
|
-
icon,
|
|
39
|
-
variant = DEFAULT_VARIANT
|
|
40
|
-
} = props;
|
|
41
|
-
const className = classNames(
|
|
42
|
-
styles.root,
|
|
43
|
-
styles[variationName("variant", variant)]
|
|
44
|
-
);
|
|
33
|
+
const { accessibilityLabel, children, secondaryLabel, icon, variant = DEFAULT_VARIANT } = props;
|
|
34
|
+
const className = classNames(styles.root, styles[variationName("variant", variant)]);
|
|
45
35
|
if (!icon && !children) {
|
|
46
36
|
console.warn("Badge requires one of children or icon");
|
|
47
37
|
}
|
|
@@ -51,7 +41,22 @@ function Badge(props) {
|
|
|
51
41
|
if (icon && !children && !accessibilityLabel) {
|
|
52
42
|
console.warn("Badge with only icon must have accessibilityLabel");
|
|
53
43
|
}
|
|
54
|
-
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))));
|
|
55
60
|
}
|
|
56
61
|
export {
|
|
57
62
|
Badge,
|
package/Banner/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
4
|
+
const Text_index = require("../Text/index.js");
|
|
5
5
|
const utilities_css = require("../utilities/css.js");
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const Banner$1 = "_Banner_zfrrh_23";
|
|
6
|
+
const colorSuccess = "_colorSuccess_wbg6e_5";
|
|
7
|
+
const colorPrimary = "_colorPrimary_wbg6e_10";
|
|
8
|
+
const colorNeutral = "_colorNeutral_wbg6e_11";
|
|
9
|
+
const Banner$1 = "_Banner_wbg6e_23";
|
|
11
10
|
const styles = {
|
|
12
11
|
colorSuccess,
|
|
13
12
|
colorPrimary,
|
|
@@ -16,16 +15,15 @@ const styles = {
|
|
|
16
15
|
};
|
|
17
16
|
function Banner(props) {
|
|
18
17
|
const { color = "success", emphasisText, children } = props;
|
|
19
|
-
return
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
18
|
+
return React.createElement("div", {
|
|
19
|
+
className: utilities_css.classNames(styles.Banner, styles[utilities_css.variationName("color", color)])
|
|
20
|
+
}, emphasisText && React.createElement(Text_index.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_index.Text, {
|
|
25
|
+
variant: "body1",
|
|
26
|
+
alignment: "center"
|
|
27
|
+
}, children));
|
|
30
28
|
}
|
|
31
29
|
exports.Banner = Banner;
|
package/Banner/index.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Text } from "../Text/index.mjs";
|
|
3
3
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const Banner$1 = "_Banner_zfrrh_23";
|
|
4
|
+
const colorSuccess = "_colorSuccess_wbg6e_5";
|
|
5
|
+
const colorPrimary = "_colorPrimary_wbg6e_10";
|
|
6
|
+
const colorNeutral = "_colorNeutral_wbg6e_11";
|
|
7
|
+
const Banner$1 = "_Banner_wbg6e_23";
|
|
9
8
|
const styles = {
|
|
10
9
|
colorSuccess,
|
|
11
10
|
colorPrimary,
|
|
@@ -14,17 +13,16 @@ const styles = {
|
|
|
14
13
|
};
|
|
15
14
|
function Banner(props) {
|
|
16
15
|
const { color = "success", emphasisText, children } = props;
|
|
17
|
-
return
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
);
|
|
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));
|
|
28
26
|
}
|
|
29
27
|
export {
|
|
30
28
|
Banner
|
package/Button/Button.d.ts
CHANGED
|
@@ -24,6 +24,67 @@ 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
90
|
color?: ButtonColor | undefined;
|
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;;IAEnB,qBAAqB;;IAErB,kBAAkB;;IAElB,sBAAsB;;IAEtB,6CAA6C;;IAE7C,4CAA4C;;IAE5C,2CAA2C;;IAE3C,6BAA6B;eAClB,SAAS;IACpB,yBAAyB;;8BAuHzB,CAAC"}
|
package/Button/index.js
CHANGED
|
@@ -29,28 +29,25 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
31
|
const React = require("react");
|
|
32
|
-
const
|
|
33
|
-
const
|
|
32
|
+
const UnstyledButton_index = require("../__chunks__/index-hDJcco6g.js");
|
|
33
|
+
const Icon_index = require("../Icon/index.js");
|
|
34
34
|
const utilities_css = require("../utilities/css.js");
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const block = "_block_ksjrc_180";
|
|
52
|
-
const iconAtStart = "_iconAtStart_ksjrc_185";
|
|
53
|
-
const iconAtEnd = "_iconAtEnd_ksjrc_189";
|
|
35
|
+
const Button$1 = "_Button_1y7p2_5";
|
|
36
|
+
const colorPrimary = "_colorPrimary_1y7p2_20";
|
|
37
|
+
const colorSecondary = "_colorSecondary_1y7p2_28";
|
|
38
|
+
const colorSuccess = "_colorSuccess_1y7p2_36";
|
|
39
|
+
const colorWarning = "_colorWarning_1y7p2_44";
|
|
40
|
+
const colorNeutral = "_colorNeutral_1y7p2_52";
|
|
41
|
+
const colorSupport = "_colorSupport_1y7p2_60";
|
|
42
|
+
const colorInverse = "_colorInverse_1y7p2_66";
|
|
43
|
+
const variantFilled = "_variantFilled_1y7p2_72";
|
|
44
|
+
const variantOutlined = "_variantOutlined_1y7p2_99";
|
|
45
|
+
const variantLink = "_variantLink_1y7p2_127";
|
|
46
|
+
const sizeMd = "_sizeMd_1y7p2_151";
|
|
47
|
+
const sizeSm = "_sizeSm_1y7p2_159";
|
|
48
|
+
const block = "_block_1y7p2_176";
|
|
49
|
+
const iconAtStart = "_iconAtStart_1y7p2_181";
|
|
50
|
+
const iconAtEnd = "_iconAtEnd_1y7p2_185";
|
|
54
51
|
const styles = {
|
|
55
52
|
Button: Button$1,
|
|
56
53
|
colorPrimary,
|
|
@@ -70,60 +67,25 @@ const styles = {
|
|
|
70
67
|
iconAtEnd
|
|
71
68
|
};
|
|
72
69
|
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
|
-
]);
|
|
70
|
+
const _a = props, { color = "primary", variant = "filled", size = "md", isDisabled = false, isBlock = false, iconAtStart: iconAtStart2, iconAtEnd: iconAtEnd2, children = "Button", href = "" } = _a, restProps = __objRest(_a, ["color", "variant", "size", "isDisabled", "isBlock", "iconAtStart", "iconAtEnd", "children", "href"]);
|
|
94
71
|
const bothIconPropsDefined = iconAtEnd2 && iconAtStart2;
|
|
95
72
|
if (bothIconPropsDefined) {
|
|
96
73
|
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
97
74
|
}
|
|
98
75
|
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
|
|
99
|
-
|
|
100
|
-
return
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
);
|
|
76
|
+
UnstyledButton_index.logWarningIfInvalidColorVariantCombination(color, variant);
|
|
77
|
+
return React.createElement(UnstyledButton_index.UnstyledButton, __spreadValues({
|
|
78
|
+
isDisabled,
|
|
79
|
+
ref: inRef,
|
|
80
|
+
className: utilities_css.classNames(styles.Button, styles[utilities_css.variationName("color", color)], styles[utilities_css.variationName("variant", variant)], styles[utilities_css.variationName("size", size)], isBlock && styles.block),
|
|
81
|
+
href
|
|
82
|
+
}, restProps), iconAtStart2 && canUseIcon && React.createElement(Icon_index.Icon, {
|
|
83
|
+
symbol: iconAtStart2
|
|
84
|
+
}), React.createElement("span", {
|
|
85
|
+
className: utilities_css.classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
|
|
86
|
+
}, children), iconAtEnd2 && canUseIcon && React.createElement(Icon_index.Icon, {
|
|
87
|
+
symbol: iconAtEnd2
|
|
88
|
+
}));
|
|
127
89
|
});
|
|
128
90
|
Button.displayName = "Button";
|
|
129
91
|
exports.Button = Button;
|
package/Button/index.mjs
CHANGED
|
@@ -27,28 +27,25 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
29
|
import React__default, { forwardRef } from "react";
|
|
30
|
-
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/
|
|
31
|
-
import {
|
|
30
|
+
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/index-mteZT19W.mjs";
|
|
31
|
+
import { Icon } from "../Icon/index.mjs";
|
|
32
32
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const block = "_block_ksjrc_180";
|
|
50
|
-
const iconAtStart = "_iconAtStart_ksjrc_185";
|
|
51
|
-
const iconAtEnd = "_iconAtEnd_ksjrc_189";
|
|
33
|
+
const Button$1 = "_Button_1y7p2_5";
|
|
34
|
+
const colorPrimary = "_colorPrimary_1y7p2_20";
|
|
35
|
+
const colorSecondary = "_colorSecondary_1y7p2_28";
|
|
36
|
+
const colorSuccess = "_colorSuccess_1y7p2_36";
|
|
37
|
+
const colorWarning = "_colorWarning_1y7p2_44";
|
|
38
|
+
const colorNeutral = "_colorNeutral_1y7p2_52";
|
|
39
|
+
const colorSupport = "_colorSupport_1y7p2_60";
|
|
40
|
+
const colorInverse = "_colorInverse_1y7p2_66";
|
|
41
|
+
const variantFilled = "_variantFilled_1y7p2_72";
|
|
42
|
+
const variantOutlined = "_variantOutlined_1y7p2_99";
|
|
43
|
+
const variantLink = "_variantLink_1y7p2_127";
|
|
44
|
+
const sizeMd = "_sizeMd_1y7p2_151";
|
|
45
|
+
const sizeSm = "_sizeSm_1y7p2_159";
|
|
46
|
+
const block = "_block_1y7p2_176";
|
|
47
|
+
const iconAtStart = "_iconAtStart_1y7p2_181";
|
|
48
|
+
const iconAtEnd = "_iconAtEnd_1y7p2_185";
|
|
52
49
|
const styles = {
|
|
53
50
|
Button: Button$1,
|
|
54
51
|
colorPrimary,
|
|
@@ -68,60 +65,25 @@ const styles = {
|
|
|
68
65
|
iconAtEnd
|
|
69
66
|
};
|
|
70
67
|
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
|
-
]);
|
|
68
|
+
const _a = props, { color = "primary", variant = "filled", size = "md", isDisabled = false, isBlock = false, iconAtStart: iconAtStart2, iconAtEnd: iconAtEnd2, children = "Button", href = "" } = _a, restProps = __objRest(_a, ["color", "variant", "size", "isDisabled", "isBlock", "iconAtStart", "iconAtEnd", "children", "href"]);
|
|
92
69
|
const bothIconPropsDefined = iconAtEnd2 && iconAtStart2;
|
|
93
70
|
if (bothIconPropsDefined) {
|
|
94
71
|
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
95
72
|
}
|
|
96
73
|
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
|
|
97
74
|
logWarningIfInvalidColorVariantCombination(color, variant);
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
);
|
|
75
|
+
return React__default.createElement(UnstyledButton, __spreadValues({
|
|
76
|
+
isDisabled,
|
|
77
|
+
ref: inRef,
|
|
78
|
+
className: classNames(styles.Button, styles[variationName("color", color)], styles[variationName("variant", variant)], styles[variationName("size", size)], isBlock && styles.block),
|
|
79
|
+
href
|
|
80
|
+
}, restProps), iconAtStart2 && canUseIcon && React__default.createElement(Icon, {
|
|
81
|
+
symbol: iconAtStart2
|
|
82
|
+
}), React__default.createElement("span", {
|
|
83
|
+
className: classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
|
|
84
|
+
}, children), iconAtEnd2 && canUseIcon && React__default.createElement(Icon, {
|
|
85
|
+
symbol: iconAtEnd2
|
|
86
|
+
}));
|
|
125
87
|
});
|
|
126
88
|
Button.displayName = "Button";
|
|
127
89
|
export {
|