@dfds-ui/react-components 2.0.23-alpha.01f1f4d4 → 2.0.23-alpha.25278a11
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/app-bar/AppBar.js +1 -1
- package/app-bar/AppBarContext.js +1 -1
- package/app-bar/AppBarItem.d.ts +1 -1
- package/app-bar/AppBarItem.js +1 -1
- package/assertions/banner/Banner.js +1 -1
- package/assertions/toast/Toaster.js +8 -6
- package/card/Card.js +1 -1
- package/chip/Chip.js +1 -1
- package/cjs/accordion/Accordion.d.ts +101 -0
- package/cjs/accordion/Accordion.js +1 -2
- package/cjs/accordion/AccordionContent.d.ts +13 -0
- package/cjs/accordion/AccordionContent.js +1 -2
- package/cjs/accordion/AccordionSmall.d.ts +55 -0
- package/cjs/accordion/AccordionSmall.js +1 -2
- package/cjs/accordion/index.d.ts +3 -0
- package/cjs/app-bar/AppBar.d.ts +13 -0
- package/cjs/app-bar/AppBar.js +4 -5
- package/cjs/app-bar/AppBarContext.d.ts +12 -0
- package/cjs/app-bar/AppBarContext.js +3 -3
- package/cjs/app-bar/AppBarDrawer.d.ts +5 -0
- package/cjs/app-bar/AppBarDrawer.js +3 -4
- package/cjs/app-bar/AppBarIconButton.d.ts +10 -0
- package/cjs/app-bar/AppBarIconButton.js +1 -2
- package/cjs/app-bar/AppBarItem.d.ts +23 -0
- package/cjs/app-bar/AppBarItem.js +5 -7
- package/cjs/app-bar/AppBarListItem.d.ts +16 -0
- package/cjs/app-bar/AppBarListItem.js +1 -2
- package/cjs/app-bar/index.d.ts +7 -0
- package/cjs/assertions/banner/Banner.d.ts +74 -0
- package/cjs/assertions/banner/Banner.js +5 -7
- package/cjs/assertions/banner/BannerAction.d.ts +19 -0
- package/cjs/assertions/banner/BannerTypography.d.ts +7 -0
- package/cjs/assertions/banner/index.d.ts +3 -0
- package/cjs/assertions/index.d.ts +2 -0
- package/cjs/assertions/toast/Toast.d.ts +11 -0
- package/cjs/assertions/toast/Toast.js +1 -2
- package/cjs/assertions/toast/Toaster.d.ts +19 -0
- package/cjs/assertions/toast/Toaster.js +9 -8
- package/cjs/assertions/toast/index.d.ts +2 -0
- package/cjs/assertions/toast/index.js +2 -2
- package/cjs/badge/Badge.d.ts +26 -0
- package/cjs/badge/index.d.ts +2 -0
- package/cjs/badge/index.js +2 -2
- package/cjs/button/BadgeIcon.d.ts +7 -0
- package/cjs/button/BadgeIcon.js +1 -2
- package/cjs/button/BaseButton.d.ts +14 -0
- package/cjs/button/BaseButton.js +2 -4
- package/cjs/button/Button.d.ts +19 -0
- package/cjs/button/Button.js +1 -2
- package/cjs/button/IconButton.d.ts +75 -0
- package/cjs/button/IconButton.js +3 -4
- package/cjs/button/LinkButton.d.ts +8 -0
- package/cjs/button/LinkButton.js +3 -4
- package/cjs/button/button-style.d.ts +7 -0
- package/cjs/button/button-style.js +8 -15
- package/cjs/button/index.d.ts +7 -0
- package/cjs/button/index.js +2 -2
- package/cjs/button-stack/ButtonStack.d.ts +11 -0
- package/cjs/button-stack/ButtonStack.js +1 -2
- package/cjs/button-stack/index.d.ts +1 -0
- package/cjs/card/Card.d.ts +18 -0
- package/cjs/card/Card.js +6 -8
- package/cjs/card/CardActions.d.ts +4 -0
- package/cjs/card/CardActions.js +1 -2
- package/cjs/card/CardContent.d.ts +13 -0
- package/cjs/card/CardContent.js +1 -2
- package/cjs/card/CardMedia.d.ts +18 -0
- package/cjs/card/CardMedia.js +1 -2
- package/cjs/card/CardPriceTag.d.ts +25 -0
- package/cjs/card/CardPriceTag.js +1 -2
- package/cjs/card/CardTitle.d.ts +18 -0
- package/cjs/card/CardTitle.js +1 -2
- package/cjs/card/index.d.ts +6 -0
- package/cjs/chip/Chip.d.ts +19 -0
- package/cjs/chip/Chip.js +4 -5
- package/cjs/chip/index.d.ts +2 -0
- package/cjs/chip/index.js +2 -2
- package/cjs/common/LockBodyScroll.d.ts +25 -0
- package/cjs/common/LockBodyScroll.js +2 -4
- package/cjs/common/arrow.d.ts +6 -0
- package/cjs/common/arrow.js +4 -4
- package/cjs/common/emotionCloneElement.d.ts +3 -0
- package/cjs/common/emotionCloneElement.js +6 -5
- package/cjs/common/intent.d.ts +3 -0
- package/cjs/common/miniMoize.d.ts +1 -0
- package/cjs/common/polymorphic.d.ts +25 -0
- package/cjs/common/polymorphic.js +4 -1
- package/cjs/common/use-media.d.ts +1 -0
- package/cjs/common/use-media.js +1 -1
- package/cjs/common/useOnClickOutside.d.ts +4 -0
- package/cjs/common/utils.d.ts +3 -0
- package/cjs/counter/Counter.d.ts +26 -0
- package/cjs/counter/Counter.js +5 -7
- package/cjs/counter/PluralCounter.d.ts +13 -0
- package/cjs/counter/PluralCounter.js +4 -5
- package/cjs/counter/index.d.ts +2 -0
- package/cjs/data-table/DataTable.d.ts +10 -0
- package/cjs/data-table/DataTable.js +5 -5
- package/cjs/data-table/index.d.ts +1 -0
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +1 -2
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +2 -0
- package/cjs/date-range-picker/DatePickerDfdsStyles.js +1 -2
- package/cjs/date-range-picker/DateRangePicker.d.ts +33 -0
- package/cjs/date-range-picker/DateRangePicker.js +6 -7
- package/cjs/date-range-picker/index.d.ts +1 -0
- package/cjs/divider/Divider.d.ts +26 -0
- package/cjs/divider/Divider.js +1 -2
- package/cjs/divider/index.d.ts +1 -0
- package/cjs/drawer/Drawer.d.ts +31 -0
- package/cjs/drawer/Drawer.js +2 -4
- package/cjs/drawer/index.d.ts +1 -0
- package/cjs/dropdown-menu/Dropdown.d.ts +46 -0
- package/cjs/dropdown-menu/Dropdown.js +2 -3
- package/cjs/dropdown-menu/DropdownContext.d.ts +13 -0
- package/cjs/dropdown-menu/DropdownContext.js +4 -6
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +34 -0
- package/cjs/dropdown-menu/MenuCheckbox.js +1 -2
- package/cjs/dropdown-menu/MenuItem.d.ts +45 -0
- package/cjs/dropdown-menu/MenuItem.js +2 -3
- package/cjs/dropdown-menu/MenuTitle.d.ts +14 -0
- package/cjs/dropdown-menu/MenuTitle.js +1 -2
- package/cjs/dropdown-menu/index.d.ts +5 -0
- package/cjs/dropdown-menu/index.js +2 -2
- package/cjs/elevation/index.d.ts +3 -0
- package/cjs/elevation/index.js +3 -2
- package/cjs/flexbox/FlexBox.d.ts +100 -0
- package/cjs/flexbox/FlexBox.js +2 -4
- package/cjs/flexbox/index.d.ts +1 -0
- package/cjs/footer/Footer.d.ts +7 -0
- package/cjs/footer/Footer.js +1 -2
- package/cjs/footer/index.d.ts +1 -0
- package/cjs/forms/assistive-text/AssistiveText.d.ts +8 -0
- package/cjs/forms/assistive-text/AssistiveText.js +1 -2
- package/cjs/forms/asterisk/Asterisk.d.ts +3 -0
- package/cjs/forms/asterisk/Asterisk.js +1 -2
- package/cjs/forms/checkbox/Checkbox.d.ts +39 -0
- package/cjs/forms/checkbox/Checkbox.js +1 -2
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +10 -0
- package/cjs/forms/checkbox/ExampleControlComponent.js +2 -3
- package/cjs/forms/checkbox/index.d.ts +1 -0
- package/cjs/forms/email-field/EmailField.d.ts +6 -0
- package/cjs/forms/email-field/EmailField.js +3 -5
- package/cjs/forms/error-text/ErrorText.d.ts +8 -0
- package/cjs/forms/error-text/ErrorText.js +1 -2
- package/cjs/forms/field/Field.d.ts +10 -0
- package/cjs/forms/field/Field.js +1 -2
- package/cjs/forms/index.d.ts +21 -0
- package/cjs/forms/input/Input.d.ts +19 -0
- package/cjs/forms/input/Input.js +1 -2
- package/cjs/forms/input/InputComposition.d.ts +43 -0
- package/cjs/forms/input/InputComposition.js +14 -10
- package/cjs/forms/label/Label.d.ts +10 -0
- package/cjs/forms/label/Label.js +1 -2
- package/cjs/forms/number-field/NumberField.d.ts +6 -0
- package/cjs/forms/number-field/NumberField.js +2 -3
- package/cjs/forms/password-field/PasswordField.d.ts +4 -0
- package/cjs/forms/password-field/PasswordField.js +5 -6
- package/cjs/forms/radio/Radio.d.ts +35 -0
- package/cjs/forms/radio/Radio.js +2 -4
- package/cjs/forms/reactselect/ReactSelect.d.ts +25 -0
- package/cjs/forms/reactselect/ReactSelect.js +11 -12
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +6 -0
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +2 -2
- package/cjs/forms/select/Select.d.ts +16 -0
- package/cjs/forms/select/Select.js +2 -3
- package/cjs/forms/select-field/SelectField.d.ts +17 -0
- package/cjs/forms/select-field/SelectField.js +2 -3
- package/cjs/forms/switch/Switch.d.ts +13 -0
- package/cjs/forms/switch/Switch.js +1 -2
- package/cjs/forms/tel-field/TelField.d.ts +6 -0
- package/cjs/forms/tel-field/TelField.js +3 -6
- package/cjs/forms/text-field/TextField.d.ts +26 -0
- package/cjs/forms/text-field/TextField.js +3 -4
- package/cjs/global-styles/GlobalStyles.d.ts +3 -0
- package/cjs/global-styles/ResetStyles.d.ts +9 -0
- package/cjs/global-styles/ResetStyles.js +7 -8
- package/cjs/global-styles/sanitize.d.ts +1 -0
- package/cjs/global-styles/sanitize.js +2 -3
- package/cjs/grid/Column.d.ts +10 -0
- package/cjs/grid/Column.js +1 -2
- package/cjs/grid/Container.d.ts +15 -0
- package/cjs/grid/Container.js +1 -2
- package/cjs/grid/index.d.ts +2 -0
- package/cjs/hero/Hero.d.ts +10 -0
- package/cjs/hero/Hero.js +1 -2
- package/cjs/hero/index.d.ts +1 -0
- package/cjs/hero/stripes.d.ts +6 -0
- package/cjs/hero/stripes.js +1 -2
- package/cjs/ie-banner/IEBanner.d.ts +11 -0
- package/cjs/ie-banner/IEBanner.js +4 -5
- package/cjs/ie-banner/index.d.ts +1 -0
- package/cjs/index.d.ts +44 -0
- package/cjs/layout/LayoutLegacy.d.ts +2 -0
- package/cjs/lists/FeatureList.d.ts +24 -0
- package/cjs/lists/FeatureList.js +2 -4
- package/cjs/lists/ListAddon.d.ts +11 -0
- package/cjs/lists/ListAddon.js +1 -2
- package/cjs/lists/ListDivider.d.ts +5 -0
- package/cjs/lists/ListDivider.js +1 -2
- package/cjs/lists/ListIcon.d.ts +18 -0
- package/cjs/lists/ListIcon.js +1 -2
- package/cjs/lists/ListItem.d.ts +46 -0
- package/cjs/lists/ListItem.js +1 -2
- package/cjs/lists/ListText.d.ts +39 -0
- package/cjs/lists/ListText.js +1 -2
- package/cjs/lists/ListTextGroup.d.ts +15 -0
- package/cjs/lists/ListTextGroup.js +1 -2
- package/cjs/lists/ListTitle.d.ts +4 -0
- package/cjs/lists/ListTitle.js +1 -2
- package/cjs/lists/index.d.ts +8 -0
- package/cjs/loader/DfdsLoader.d.ts +9 -0
- package/cjs/loader/DfdsLoader.js +1 -2
- package/cjs/loader/Loader.d.ts +6 -0
- package/cjs/loader/Loader.js +1 -2
- package/cjs/loader/index.d.ts +2 -0
- package/cjs/localization/LocaleFlag.d.ts +13 -0
- package/cjs/localization/LocaleFlag.js +2 -2
- package/cjs/localization/index.d.ts +2 -0
- package/cjs/localization/locales.d.ts +35 -0
- package/cjs/localization/locales.js +3 -6
- package/cjs/logo/Logo.d.ts +11 -0
- package/cjs/logo/Logo.js +3 -4
- package/cjs/logo/index.d.ts +1 -0
- package/cjs/media/index.d.ts +2 -0
- package/cjs/media/index.js +1 -2
- package/cjs/menu/Menu.d.ts +7 -0
- package/cjs/menu/Menu.js +1 -2
- package/cjs/menu/index.d.ts +2 -0
- package/cjs/menu/index.js +2 -2
- package/cjs/mobile-stepper/MobileStepper.d.ts +25 -0
- package/cjs/mobile-stepper/MobileStepper.js +1 -2
- package/cjs/mobile-stepper/index.d.ts +1 -0
- package/cjs/nav-bar/NavBar.d.ts +35 -0
- package/cjs/nav-bar/NavBar.js +6 -9
- package/cjs/nav-bar/index.d.ts +2 -0
- package/cjs/nav-bar/index.js +2 -2
- package/cjs/nav-menu/NavMenuItem.d.ts +10 -0
- package/cjs/nav-menu/NavMenuItem.js +1 -2
- package/cjs/nav-menu/index.d.ts +1 -0
- package/cjs/pagination/Pagination.d.ts +44 -0
- package/cjs/pagination/Pagination.js +1 -2
- package/cjs/pagination/Pagination.styles.d.ts +6 -0
- package/cjs/pagination/Pagination.styles.js +6 -12
- package/cjs/pagination/index.d.ts +1 -0
- package/cjs/popper/Popper.d.ts +29 -0
- package/cjs/popper/Popper.js +1 -2
- package/cjs/popper/index.d.ts +1 -0
- package/cjs/progress-bar/ProgressBar.d.ts +8 -0
- package/cjs/progress-bar/ProgressBar.js +1 -2
- package/cjs/progress-bar/index.d.ts +2 -0
- package/cjs/progress-bar/index.js +2 -2
- package/cjs/schedule/ScheduleItem.d.ts +21 -0
- package/cjs/schedule/ScheduleItem.js +2 -4
- package/cjs/schedule/ScheduleList.d.ts +11 -0
- package/cjs/schedule/ScheduleList.js +1 -2
- package/cjs/schedule/index.d.ts +2 -0
- package/cjs/side-sheet/SideSheet.d.ts +57 -0
- package/cjs/side-sheet/SideSheet.js +4 -5
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +13 -0
- package/cjs/side-sheet/SideSheetCloseButton.js +1 -2
- package/cjs/side-sheet/SideSheetContent.d.ts +7 -0
- package/cjs/side-sheet/SideSheetContent.js +3 -4
- package/cjs/side-sheet/SideSheetFooter.d.ts +7 -0
- package/cjs/side-sheet/SideSheetFooter.js +3 -4
- package/cjs/side-sheet/SideSheetHeader.d.ts +9 -0
- package/cjs/side-sheet/SideSheetHeader.js +3 -4
- package/cjs/side-sheet/SideSheetHeadline.d.ts +7 -0
- package/cjs/side-sheet/SideSheetHeadline.js +1 -2
- package/cjs/side-sheet/index.d.ts +4 -0
- package/cjs/side-sheet/index.js +2 -2
- package/cjs/site-layout/SiteLayout.d.ts +36 -0
- package/cjs/site-layout/SiteLayout.js +3 -5
- package/cjs/site-layout/index.d.ts +2 -0
- package/cjs/site-layout/index.js +2 -2
- package/cjs/skeleton/Skeleton.d.ts +8 -0
- package/cjs/skeleton/Skeleton.js +1 -2
- package/cjs/skeleton/index.d.ts +1 -0
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +26 -0
- package/cjs/social-media-link-list/SocialMediaLinkList.js +2 -4
- package/cjs/social-media-link-list/index.d.ts +1 -0
- package/cjs/spinner/Spinner.d.ts +58 -0
- package/cjs/spinner/Spinner.js +2 -4
- package/cjs/spinner/index.d.ts +1 -0
- package/cjs/step/Step.d.ts +45 -0
- package/cjs/step/Step.js +3 -4
- package/cjs/step/Step.styles.d.ts +4 -0
- package/cjs/step/Step.styles.js +4 -8
- package/cjs/step/StepButton.d.ts +4 -0
- package/cjs/step/StepButton.js +1 -2
- package/cjs/step/StepContent.d.ts +6 -0
- package/cjs/step/StepContent.js +1 -2
- package/cjs/step/StepContext.d.ts +12 -0
- package/cjs/step/StepContext.js +1 -2
- package/cjs/step/StepLabel.d.ts +7 -0
- package/cjs/step/StepLabel.js +1 -2
- package/cjs/step/index.d.ts +1 -0
- package/cjs/stepper/Stepper.d.ts +25 -0
- package/cjs/stepper/Stepper.js +8 -7
- package/cjs/stepper/StepperContext.d.ts +9 -0
- package/cjs/stepper/StepperContext.js +1 -2
- package/cjs/stepper/index.d.ts +1 -0
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +5 -0
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +1 -2
- package/cjs/stepper-feedback-message/index.d.ts +1 -0
- package/cjs/styles/index.d.ts +3 -0
- package/cjs/styles/index.js +2 -2
- package/cjs/styles/media.d.ts +21 -0
- package/cjs/styles/media.js +2 -4
- package/cjs/styles/rem.d.ts +1 -0
- package/cjs/styles/style-helpers.d.ts +1 -0
- package/cjs/styles/style-helpers.js +1 -1
- package/cjs/styles/theme.d.ts +39 -0
- package/cjs/styles/theme.js +2 -4
- package/cjs/surface/Surface.d.ts +32 -0
- package/cjs/surface/Surface.js +8 -7
- package/cjs/surface/index.d.ts +1 -0
- package/cjs/tab/Tab.d.ts +12 -0
- package/cjs/tab/Tab.js +1 -2
- package/cjs/tab/TabPanel.d.ts +7 -0
- package/cjs/tab/TabPanel.js +1 -2
- package/cjs/tab/Tabs.d.ts +11 -0
- package/cjs/tab/Tabs.js +4 -5
- package/cjs/tab/TabsContext.d.ts +16 -0
- package/cjs/tab/TabsContext.js +4 -6
- package/cjs/tab/index.d.ts +4 -0
- package/cjs/table/Table.d.ts +22 -0
- package/cjs/table/Table.js +4 -6
- package/cjs/table/TableBody.d.ts +9 -0
- package/cjs/table/TableBody.js +4 -6
- package/cjs/table/TableDataCell.d.ts +14 -0
- package/cjs/table/TableDataCell.js +4 -6
- package/cjs/table/TableHead.d.ts +14 -0
- package/cjs/table/TableHead.js +5 -8
- package/cjs/table/TableHeaderCell.d.ts +15 -0
- package/cjs/table/TableHeaderCell.js +4 -6
- package/cjs/table/TableRow.d.ts +17 -0
- package/cjs/table/TableRow.js +4 -6
- package/cjs/table/index.d.ts +6 -0
- package/cjs/test/Test.d.ts +8 -0
- package/cjs/test/Test.js +1 -2
- package/cjs/tooltip/Tooltip.d.ts +26 -0
- package/cjs/tooltip/Tooltip.js +3 -4
- package/cjs/tooltip/index.d.ts +2 -0
- package/cjs/tooltip/index.js +2 -2
- package/cjs/typography/Headlines.d.ts +70 -0
- package/cjs/typography/Headlines.js +8 -16
- package/cjs/typography/Text.d.ts +5 -0
- package/cjs/typography/Text.js +2 -3
- package/cjs/typography/index.d.ts +2 -0
- package/common/arrow.js +4 -4
- package/common/emotionCloneElement.js +6 -3
- package/common/polymorphic.js +2 -0
- package/common/use-media.js +1 -1
- package/counter/Counter.js +1 -1
- package/counter/PluralCounter.js +1 -1
- package/data-table/DataTable.js +1 -1
- package/date-range-picker/DateRangePicker.js +4 -4
- package/dropdown-menu/Dropdown.js +1 -1
- package/dropdown-menu/MenuItem.js +1 -1
- package/forms/checkbox/ExampleControlComponent.js +1 -1
- package/forms/password-field/PasswordField.js +1 -1
- package/forms/reactselect/ReactSelect.js +6 -3
- package/forms/text-field/TextField.js +2 -0
- package/grid/Container.js +4 -1
- package/ie-banner/IEBanner.js +1 -1
- package/nav-bar/NavBar.js +1 -1
- package/package.json +9 -9
- package/side-sheet/SideSheet.js +1 -1
- package/stepper/Stepper.js +6 -3
- package/surface/Surface.js +6 -3
- package/tab/Tabs.js +1 -1
- package/table/TableHead.js +4 -1
- package/table/TableRow.js +4 -1
|
@@ -13,15 +13,15 @@ var _typography = require("@dfds-ui/typography");
|
|
|
13
13
|
var _base2 = require("@mui/base");
|
|
14
14
|
var _system = require("@dfds-ui/icons/system");
|
|
15
15
|
const _excluded = ["id", "Icon", "LeadingIcon", "TrailingIcon", "title", "divider", "children", "onClick", "placement", "isActive", "as", "AppBarPopperProps"];
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
20
20
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
21
21
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
22
22
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
23
23
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
24
|
-
function _iterableToArrayLimit(
|
|
24
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
25
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
27
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -60,15 +60,13 @@ const MenuItemBlock = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
60
60
|
ref: ref
|
|
61
61
|
}, children);
|
|
62
62
|
});
|
|
63
|
-
const MenuPopOverContext = /*#__PURE__*/_react.default.createContext(undefined);
|
|
64
|
-
exports.
|
|
65
|
-
const AppBarPopper = /*#__PURE__*/(0, _base.default)(_material.Popper, process.env.NODE_ENV === "production" ? {
|
|
63
|
+
const MenuPopOverContext = exports.MenuPopOverContext = /*#__PURE__*/_react.default.createContext(undefined);
|
|
64
|
+
const AppBarPopper = exports.AppBarPopper = /*#__PURE__*/(0, _base.default)(_material.Popper, process.env.NODE_ENV === "production" ? {
|
|
66
65
|
target: "ekec190"
|
|
67
66
|
} : {
|
|
68
67
|
target: "ekec190",
|
|
69
68
|
label: "AppBarPopper"
|
|
70
69
|
})("border-radius:", _theme.theme.radii.m, ";background-color:", _theme.theme.colors.surface.primary, ";box-shadow:", _theme.theme.elevation[4], ";width:max-content;min-width:8rem;max-width:25rem;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAtYmFyL0FwcEJhckl0ZW0udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtHMEMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2FwcC1iYXIvQXBwQmFySXRlbS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdG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MS41cmVtO1xuICAgICAgICAgIHdpZHRoOiAxcHg7XG4gICAgICAgICAgYmFja2dyb3VuZDogJHt0aGVtZS5jb2xvcnMucHJpbWFyeS5tYWlufTtcbiAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgdG9wOiA1MCU7XG4gICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC01MCUpO1xuICAgICAgICB9XG5cbiAgICAgICAgJHtkaXZpZGVyICYmXG4gICAgICAgIFsnZW5kJywgJ2JvdGgnXS5pbmNsdWRlcyhkaXZpZGVyKSAmJlxuICAgICAgICBjc3NgXG4gICAgICAgICAgJjo6YWZ0ZXIge1xuICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgICAgICByaWdodDogMDtcbiAgICAgICAgICB9XG4gICAgICAgIGB9XG5cbiAgICAgICAgJHtkaXZpZGVyICYmXG4gICAgICAgIFsnc3RhcnQnLCAnYm90aCddLmluY2x1ZGVzKGRpdmlkZXIpICYmXG4gICAgICAgIGNzc2BcbiAgICAgICAgICAmOjpiZWZvcmUge1xuICAgICAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgIH1cbiAgICAgICAgYH1cbiAgICAgIGB9XG4gICAgICByZWY9e3JlZn1cbiAgICA+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9kaXY+XG4gIClcbn0pXG5cbmV4cG9ydCBjb25zdCBNZW51UG9wT3ZlckNvbnRleHQgPSBSZWFjdC5jcmVhdGVDb250ZXh0PHsgaGFuZGxlUG9wb3ZlckNsb3NlOiAoKSA9PiB2b2lkIH0gfCB1bmRlZmluZWQ+KHVuZGVmaW5lZClcblxuZXhwb3J0IGNvbnN0IEFwcEJhclBvcHBlciA9IHN0eWxlZChQb3BwZXIpYFxuICBib3JkZXItcmFkaXVzOiAke3RoZW1lLnJhZGlpLm19O1xuICBiYWNrZ3JvdW5kLWNvbG9y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yQ2xvc2UgfX0+XG4gICAgICA8Q2xpY2tBd2F5TGlzdGVuZXIgb25DbGlja0F3YXk9e2hhbmRsZVBvcG92ZXJDbG9zZX0+XG4gICAgICAgIDxNZW51SXRlbUJsb2NrIGRpdmlkZXI9e2RpdmlkZXJ9PlxuICAgICAgICAgIDxNZW51Q2F0ZWdvcnlcbiAgICAgICAgICAgIGNzcz17bWVudUNhdGVnb3J5U3R5bGVzKHsgaXNBY3RpdmUgfSl9XG4gICAgICAgICAgICBhcmlhLW93bnM9e29wZW4gPyBpZCA6IHVuZGVmaW5lZH1cbiAgICAgICAgICAgIGFyaWEtaGFzcG9wdXA9XCJ0cnVlXCJcbiAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgey4uLihjaGlsZHJlbiAmJiB7IG9uQ2xpY2s6ICFvcGVuID8gaGFuZGxlUG9wb3Zlck9wZW4gOiBoYW5kbGVQb3BvdmVyQ2xvc2UgfSl9XG4gICAgICAgICAgPlxuICAgICAgICAgICAge0ljb24gPyAoXG4gICAgICAgICAgICAgIDxJY29uXG4gICAgICAgICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICAgICAgICBmb250LXNpemU6IDEuNXJlbTtcbiAgICAgICAgICAgICAgICBgfVxuICAgICAgICAgICAgICAgIGFyaWEtbGFiZWw9e3RpdGxlfVxuICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgKSA6IChcbiAgICAgICAgICAgICAgPD5cbiAgICAgICAgICAgICAgICB7TGVhZGluZ0ljb24gJiYgKFxuICAgICAgICAgICAgICAgICAgPExlYWRpbmdJY29uXG4gICAgICAgICAgICAgICAgICAgIGNzcz17Y3NzYFxuICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAgICAgYH1cbiAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICAgICAgc3R5bGVkQXM9XCJhY3Rpb25Cb2xkXCJcbiAgICAgICAgICAgICAgICAgIGFzPVwic3BhblwiXG4gICAgICAgICAgICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplOiAxNnB4O1xuICAgICAgICAgICAgICAgICAgYH1cbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICB7dGl0bGV9XG4gICAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgICAgIHtUcmFpbGluZ0ljb24gPyAoXG4gICAgICAgICAgICAgICAgICA8VHJhaWxpbmdJY29uXG4gICAgICAgICAgICAgICAgICAgIGNzcz17Y3NzYFxuICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICAgICBgfVxuICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICApIDogKFxuICAgICAgICAgICAgICAgICAgY2hpbGRyZW4gJiYgKFxuICAgICAgICAgICAgICAgICAgICA8Q2hldnJvbkRvd25cbiAgICAgICAgICAgICAgICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICAgICAgIGB9XG4gICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgPC8+XG4gICAgICAgICAgICApfVxuICAgICAgICAgIDwvTWVudUNhdGVnb3J5PlxuICAgICAgICAgIHtjaGlsZHJlbiAmJiAoXG4gICAgICAgICAgICA8QXBwQmFyUG9wcGVyXG4gICAgICAgICAgICAgIG9wZW49e29wZW59XG4gICAgICAgICAgICAgIGlkPXtpZH1cbiAgICAgICAgICAgICAgYW5jaG9yRWw9e2FuY2hvckVsfVxuICAgICAgICAgICAgICBwbGFjZW1lbnQ9e3BsYWNlbWVudH1cbiAgICAgICAgICAgICAgZGlzYWJsZVBvcnRhbFxuICAgICAgICAgICAgICB7Li4uQXBwQmFyUG9wcGVyUHJvcHN9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDwvQXBwQmFyUG9wcGVyPlxuICAgICAgICAgICl9XG4gICAgICAgIDwvTWVudUl0ZW1CbG9jaz5cbiAgICAgIDwvQ2xpY2tBd2F5TGlzdGVuZXI+XG4gICAgPC9NZW51UG9wT3ZlckNvbnRleHQuUHJvdmlkZXI+XG4gIClcbn1cbiJdfQ== */"));
|
|
71
|
-
exports.AppBarPopper = AppBarPopper;
|
|
72
70
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
73
71
|
name: "1y2mh23",
|
|
74
72
|
styles: "margin-left:0.25rem"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const AppBarListItem: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
multiline?: boolean | undefined;
|
|
4
|
+
selected?: boolean | undefined;
|
|
5
|
+
condensed?: boolean | undefined;
|
|
6
|
+
tabIndex?: number | undefined;
|
|
7
|
+
clickable?: boolean | undefined;
|
|
8
|
+
divider?: boolean | undefined;
|
|
9
|
+
onClick?: (() => void) | undefined;
|
|
10
|
+
flexBoxProps?: import("../flexbox").FlexBoxProps | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
} & import("..").PolymorphicComponentProps & {
|
|
14
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
export default AppBarListItem;
|
|
@@ -17,5 +17,4 @@ const AppBarListItem = /*#__PURE__*/(0, _base.default)(_ListItem.default, proces
|
|
|
17
17
|
})("&:active{color:", _theme.theme.colors.secondary.main, ";}", p => p.selected && /*#__PURE__*/(0, _react.css)("background:", _theme.theme.colors.surface.primary, ";color:", _theme.theme.colors.secondary.main, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:AppBarListItem;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAtYmFyL0FwcEJhckxpc3RJdGVtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZTyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvYXBwLWJhci9BcHBCYXJMaXN0SXRlbS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IExpc3RJdGVtIGZyb20gJy4uL2xpc3RzL0xpc3RJdGVtJ1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcblxuY29uc3QgQXBwQmFyTGlzdEl0ZW0gPSBzdHlsZWQoTGlzdEl0ZW0pYFxuICAmOmFjdGl2ZSB7XG4gICAgY29sb3I6ICR7dGhlbWUuY29sb3JzLnNlY29uZGFyeS5tYWlufTtcbiAgfVxuXG4gICR7KHApID0+XG4gICAgcC5zZWxlY3RlZCAmJlxuICAgIGNzc2BcbiAgICAgIGJhY2tncm91bmQ6ICR7dGhlbWUuY29sb3JzLnN1cmZhY2UucHJpbWFyeX07XG4gICAgICBjb2xvcjogJHt0aGVtZS5jb2xvcnMuc2Vjb25kYXJ5Lm1haW59O1xuICAgIGB9XG5cbiAgJHsocCkgPT5cbiAgICB0aGVtZS5zdGF0ZXMub3ZlcmxheShwLnNlbGVjdGVkLCB7XG4gICAgICBjb2xvcjogdGhlbWUuY29sb3JzLnNlY29uZGFyeS5tYWluLFxuICAgIH0pfVxuYFxuXG5leHBvcnQgZGVmYXVsdCBBcHBCYXJMaXN0SXRlbVxuIl19 */"), " ", p => _theme.theme.states.overlay(p.selected, {
|
|
18
18
|
color: _theme.theme.colors.secondary.main
|
|
19
19
|
}), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAtYmFyL0FwcEJhckxpc3RJdGVtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLdUMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2FwcC1iYXIvQXBwQmFyTGlzdEl0ZW0udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCBMaXN0SXRlbSBmcm9tICcuLi9saXN0cy9MaXN0SXRlbSdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5cbmNvbnN0IEFwcEJhckxpc3RJdGVtID0gc3R5bGVkKExpc3RJdGVtKWBcbiAgJjphY3RpdmUge1xuICAgIGNvbG9yOiAke3RoZW1lLmNvbG9ycy5zZWNvbmRhcnkubWFpbn07XG4gIH1cblxuICAkeyhwKSA9PlxuICAgIHAuc2VsZWN0ZWQgJiZcbiAgICBjc3NgXG4gICAgICBiYWNrZ3JvdW5kOiAke3RoZW1lLmNvbG9ycy5zdXJmYWNlLnByaW1hcnl9O1xuICAgICAgY29sb3I6ICR7dGhlbWUuY29sb3JzLnNlY29uZGFyeS5tYWlufTtcbiAgICBgfVxuXG4gICR7KHApID0+XG4gICAgdGhlbWUuc3RhdGVzLm92ZXJsYXkocC5zZWxlY3RlZCwge1xuICAgICAgY29sb3I6IHRoZW1lLmNvbG9ycy5zZWNvbmRhcnkubWFpbixcbiAgICB9KX1cbmBcblxuZXhwb3J0IGRlZmF1bHQgQXBwQmFyTGlzdEl0ZW1cbiJdfQ== */"));
|
|
20
|
-
var _default = AppBarListItem;
|
|
21
|
-
exports.default = _default;
|
|
20
|
+
var _default = exports.default = AppBarListItem;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useAppBarContext, AppBarProvider } from './AppBarContext';
|
|
2
|
+
import { AppBarItem, MenuPopOverContext } from './AppBarItem';
|
|
3
|
+
export { default as AppBarDrawer } from './AppBarDrawer';
|
|
4
|
+
export { default as AppBar } from './AppBar';
|
|
5
|
+
export { default as AppBarIconButton } from './AppBarIconButton';
|
|
6
|
+
export { default as AppBarListItem } from './AppBarListItem';
|
|
7
|
+
export { useAppBarContext, AppBarProvider, AppBarItem, MenuPopOverContext };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { ElementType, FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { Intent } from '../../common/intent';
|
|
3
|
+
export declare type BannerVariant = 'lowEmphasis' | 'mediumEmphasis' | 'highEmphasis' | 'default' | 'inverted';
|
|
4
|
+
export declare type BannerStickyPosition = 'top' | 'bottom' | 'bottom-right';
|
|
5
|
+
export declare type BannerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies the intent of the Banner (change the color of the banner icon to match intended status)
|
|
8
|
+
*/
|
|
9
|
+
intent?: Intent;
|
|
10
|
+
/**
|
|
11
|
+
* Actions to be displayed inside the banner
|
|
12
|
+
*/
|
|
13
|
+
actions?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Class name to be added to the banner
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Add a close icon in the top-right corner which will invoke the provided callback
|
|
20
|
+
*/
|
|
21
|
+
onRequestClose?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the ariaLabel to be added to the close(x) button
|
|
24
|
+
*/
|
|
25
|
+
closeLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the variation of the banner.
|
|
28
|
+
*
|
|
29
|
+
* `default` and `inverted` variants are deprecated
|
|
30
|
+
*/
|
|
31
|
+
variant?: BannerVariant;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies if the Banner should be displayed with `position: fixed;`
|
|
34
|
+
*
|
|
35
|
+
* When the value is `undefined` the Banner default to being sticky if `variant` is set to `inverted`
|
|
36
|
+
*/
|
|
37
|
+
sticky?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the position of the Sticky Banner.
|
|
40
|
+
*/
|
|
41
|
+
stickyPosition?: BannerStickyPosition;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies if the Banner should have a border/divider at the bottom.
|
|
44
|
+
*/
|
|
45
|
+
divider?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Specify a custom icon to replace the one derived from `intent`
|
|
48
|
+
*
|
|
49
|
+
* @type {ElementType<{ className?: string }>}
|
|
50
|
+
*/
|
|
51
|
+
icon?: ElementType<{
|
|
52
|
+
className?: string;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies if the actions should always appear below the content
|
|
56
|
+
*/
|
|
57
|
+
wrapActions?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Content of the Banner
|
|
60
|
+
*/
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies if the banner should be narrow
|
|
64
|
+
*/
|
|
65
|
+
isNarrow?: boolean;
|
|
66
|
+
};
|
|
67
|
+
interface BannerContextInterface {
|
|
68
|
+
intent: NonNullable<BannerProps['intent']>;
|
|
69
|
+
variant: NonNullable<BannerProps['variant']>;
|
|
70
|
+
}
|
|
71
|
+
export declare const BannerContext: React.Context<BannerContextInterface | undefined>;
|
|
72
|
+
export declare const useBannerContext: () => BannerContextInterface;
|
|
73
|
+
export declare const Banner: FunctionComponent<BannerProps>;
|
|
74
|
+
export default Banner;
|
|
@@ -14,13 +14,13 @@ var _divider = require("../../divider");
|
|
|
14
14
|
var _theme = require("@dfds-ui/theme");
|
|
15
15
|
var _typography = require("@dfds-ui/typography");
|
|
16
16
|
const _excluded = ["isNarrow", "intent", "actions", "onRequestClose", "closeLabel", "children", "variant", "sticky", "stickyPosition", "divider", "wrapActions", "icon"];
|
|
17
|
-
function _getRequireWildcardCache(
|
|
18
|
-
function _interopRequireWildcard(
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
19
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
20
20
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
21
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
22
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
|
-
function _iterableToArrayLimit(
|
|
23
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
25
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -128,8 +128,7 @@ const BannerCloseButton = _ref3 => {
|
|
|
128
128
|
"data-testid": "banner-close"
|
|
129
129
|
}, props)));
|
|
130
130
|
};
|
|
131
|
-
const BannerContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
132
|
-
exports.BannerContext = BannerContext;
|
|
131
|
+
const BannerContext = exports.BannerContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
133
132
|
const useBannerContext = () => {
|
|
134
133
|
const ctx = (0, _react.useContext)(BannerContext);
|
|
135
134
|
if (ctx === undefined) {
|
|
@@ -247,5 +246,4 @@ const Banner = _ref4 => {
|
|
|
247
246
|
})));
|
|
248
247
|
};
|
|
249
248
|
exports.Banner = Banner;
|
|
250
|
-
var _default = Banner;
|
|
251
|
-
exports.default = _default;
|
|
249
|
+
var _default = exports.default = Banner;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export declare type BannerActionVariation = 'primary' | 'secondary' | 'primary-thick' | 'secondary-thick';
|
|
3
|
+
export interface BannerActionProps {
|
|
4
|
+
variation?: BannerActionVariation;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* className to be assigned to the button
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* HTML tag or custom component being rendered
|
|
12
|
+
*/
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
/**
|
|
15
|
+
* Updates component with children prop accordingly to the @types update
|
|
16
|
+
*/
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const BannerAction: React.FunctionComponent<BannerActionProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Intent } from '../../common/intent';
|
|
3
|
+
export declare type ToastProps = {
|
|
4
|
+
intent?: Intent;
|
|
5
|
+
className?: string;
|
|
6
|
+
onRequestClose?: () => void;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
onRequestAction?: () => void;
|
|
9
|
+
};
|
|
10
|
+
declare const Toast: React.FunctionComponent<ToastProps>;
|
|
11
|
+
export default Toast;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { PropsWithChildren, FunctionComponent } from 'react';
|
|
2
|
+
import { ToastProps } from './Toast';
|
|
3
|
+
declare type TimeoutType = {
|
|
4
|
+
timeout?: number;
|
|
5
|
+
};
|
|
6
|
+
declare type ToasterState = {
|
|
7
|
+
open: boolean;
|
|
8
|
+
hasActive: boolean;
|
|
9
|
+
toastProps: ToastProps | null;
|
|
10
|
+
} & TimeoutType;
|
|
11
|
+
export declare const useToaster: () => {
|
|
12
|
+
addToast: (props: PropsWithChildren<ToastProps & TimeoutType>) => Promise<void>;
|
|
13
|
+
state: ToasterState;
|
|
14
|
+
};
|
|
15
|
+
declare const Toaster: FunctionComponent<{
|
|
16
|
+
children: React.ReactNode | React.ReactNode[];
|
|
17
|
+
globalTimeout?: number;
|
|
18
|
+
}>;
|
|
19
|
+
export default Toaster;
|
|
@@ -9,20 +9,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _ = require(".");
|
|
10
10
|
var _material = require("@mui/material");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
16
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
17
17
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
20
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
23
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
22
24
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
23
25
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
24
26
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25
|
-
function _iterableToArrayLimit(
|
|
27
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
26
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
29
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
28
30
|
const Container = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
@@ -148,5 +150,4 @@ const Toaster = ({
|
|
|
148
150
|
}
|
|
149
151
|
} : {}))))));
|
|
150
152
|
};
|
|
151
|
-
var _default = Toaster;
|
|
152
|
-
exports.default = _default;
|
|
153
|
+
var _default = exports.default = Toaster;
|
|
@@ -23,6 +23,6 @@ Object.defineProperty(exports, "useToaster", {
|
|
|
23
23
|
});
|
|
24
24
|
var _Toast = _interopRequireDefault(require("./Toast"));
|
|
25
25
|
var _Toaster = _interopRequireWildcard(require("./Toaster"));
|
|
26
|
-
function _getRequireWildcardCache(
|
|
27
|
-
function _interopRequireWildcard(
|
|
26
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Intent } from '../common/intent';
|
|
3
|
+
import { FlexBoxProps } from '../flexbox/FlexBox';
|
|
4
|
+
export declare type BadgeProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the intent of the Badge
|
|
7
|
+
*/
|
|
8
|
+
intent?: Intent;
|
|
9
|
+
/**
|
|
10
|
+
* Text to be shown in the badge (usually just a string)
|
|
11
|
+
*/
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Class name to be added to the badge
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Props controlling the flexbox
|
|
19
|
+
*/
|
|
20
|
+
flexBoxProps?: FlexBoxProps;
|
|
21
|
+
/**
|
|
22
|
+
* HTML tag or custom component being rendered
|
|
23
|
+
*/
|
|
24
|
+
as?: React.ElementType;
|
|
25
|
+
};
|
|
26
|
+
export default function Badge({ as, children, intent, flexBoxProps, ...rest }: BadgeProps): JSX.Element;
|
package/cjs/badge/index.js
CHANGED
|
@@ -24,5 +24,5 @@ Object.keys(_Badge).forEach(function (key) {
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
function _getRequireWildcardCache(
|
|
28
|
-
function _interopRequireWildcard(
|
|
27
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
28
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/cjs/button/BadgeIcon.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const variations: readonly ["primary", "secondary", "outlined", "text", "danger", "link"];
|
|
3
|
+
export declare type BaseButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['button']>;
|
|
4
|
+
export declare type ButtonVariation = typeof variations[number];
|
|
5
|
+
export declare type ButtonVariationProps = {
|
|
6
|
+
variation?: ButtonVariation;
|
|
7
|
+
};
|
|
8
|
+
export declare const BaseButton: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: React.ElementType<any> | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
selected?: boolean | undefined;
|
|
13
|
+
}, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
14
|
+
export declare function getButtonVariationStyle(variation?: ButtonVariation): import("@emotion/utils").SerializedStyles;
|
package/cjs/button/BaseButton.js
CHANGED
|
@@ -10,15 +10,13 @@ var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
|
10
10
|
var _buttonStyle = require("./button-style");
|
|
11
11
|
var _theme = require("@dfds-ui/theme");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
const variations = ['primary', 'secondary', 'outlined', 'text', 'danger', 'link'];
|
|
14
|
-
exports.
|
|
15
|
-
const BaseButton = /*#__PURE__*/(0, _base.default)("button", process.env.NODE_ENV === "production" ? {
|
|
13
|
+
const variations = exports.variations = ['primary', 'secondary', 'outlined', 'text', 'danger', 'link'];
|
|
14
|
+
const BaseButton = exports.BaseButton = /*#__PURE__*/(0, _base.default)("button", process.env.NODE_ENV === "production" ? {
|
|
16
15
|
target: "egdn0t20"
|
|
17
16
|
} : {
|
|
18
17
|
target: "egdn0t20",
|
|
19
18
|
label: "BaseButton"
|
|
20
19
|
})(_buttonStyle.baseButtonStyle, ";", props => _theme.theme.states.overlay(props.selected), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9idXR0b24vQmFzZUJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWStEIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9idXR0b24vQmFzZUJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6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XVsdDpcbiAgICBjYXNlICdwcmltYXJ5JzpcbiAgICAgIHJldHVybiBwcmltYXJ5QnV0dG9uU3R5bGVzXG4gICAgY2FzZSAnc2Vjb25kYXJ5JzpcbiAgICAgIHJldHVybiBzZWNvbmRhcnlCdXR0b25TdHlsZXNcbiAgICBjYXNlICdvdXRsaW5lZCc6XG4gICAgICByZXR1cm4gb3V0bGluZWRCdXR0b25TdHlsZXNcbiAgfVxufVxuIl19 */"));
|
|
21
|
-
exports.BaseButton = BaseButton;
|
|
22
20
|
function getButtonVariationStyle(variation) {
|
|
23
21
|
switch (variation) {
|
|
24
22
|
default:
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseButtonProps, ButtonVariationProps } from './BaseButton';
|
|
3
|
+
declare type ButtonSize = 'medium' | 'small';
|
|
4
|
+
declare type IconAlign = 'left' | 'right';
|
|
5
|
+
export declare type ButtonProps = BaseButtonProps & ButtonVariationProps & {
|
|
6
|
+
className?: string;
|
|
7
|
+
replace?: boolean;
|
|
8
|
+
submitting?: boolean;
|
|
9
|
+
fillWidth?: boolean;
|
|
10
|
+
size?: ButtonSize;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
iconAlign?: IconAlign;
|
|
13
|
+
iconSpacing?: string;
|
|
14
|
+
iconColor?: string;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
declare const Button: React.FC<ButtonProps>;
|
|
19
|
+
export default Button;
|
package/cjs/button/Button.js
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React, { ElementType, ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { OverlayOptions } from '@dfds-ui/theme/states';
|
|
3
|
+
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
4
|
+
export declare type IconButtonSize = 'small' | 'medium' | 'large' | 's' | 'm' | 'l';
|
|
5
|
+
export interface IconButtonProps extends PolymorphicComponentProps, ComponentPropsWithRef<'button'> {
|
|
6
|
+
/**
|
|
7
|
+
* Icon to be displayed on the button.
|
|
8
|
+
*/
|
|
9
|
+
icon: ElementType;
|
|
10
|
+
/**
|
|
11
|
+
* Text of the aria-label as well as the fallback value used for tooltip.
|
|
12
|
+
*/
|
|
13
|
+
ariaLabel: string;
|
|
14
|
+
/**
|
|
15
|
+
* Size of the button.
|
|
16
|
+
*/
|
|
17
|
+
size?: IconButtonSize;
|
|
18
|
+
/**
|
|
19
|
+
* className to be assigned to the button.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Disable button.
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Disable overlay states.
|
|
28
|
+
*/
|
|
29
|
+
disableOverlay?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Disable tooltip.
|
|
32
|
+
*/
|
|
33
|
+
disableTooltip?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Text of the tooltip, if none, aria-label will be used.
|
|
36
|
+
*/
|
|
37
|
+
tooltip?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Color of the button and the overlay state.
|
|
40
|
+
*/
|
|
41
|
+
color?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Override color to be used for the hover state.
|
|
44
|
+
*/
|
|
45
|
+
hoverColor?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Override color to be used for the active state.
|
|
48
|
+
*/
|
|
49
|
+
activeColor?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Override color to be used for the focus state.
|
|
52
|
+
*/
|
|
53
|
+
focusColor?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Override the overlay options to use.
|
|
56
|
+
*/
|
|
57
|
+
overlayOptions?: OverlayOptions;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Helper function returning the default icon size when rendering an IconButton in the specified size.
|
|
61
|
+
* @param size : IconButtonSize;
|
|
62
|
+
* @returns The default icon size
|
|
63
|
+
*/
|
|
64
|
+
export declare const getDefaultIconButtonIconSize: (size: IconButtonSize) => "1.5rem" | "1.25rem" | "2rem";
|
|
65
|
+
/**
|
|
66
|
+
* Helper function returning the default dimensions of an IconButton in the specified size.
|
|
67
|
+
* @param size : IconButtonSize;
|
|
68
|
+
* @returns The default size
|
|
69
|
+
*/
|
|
70
|
+
export declare const getDefaultIconButtonDimensions: (size: IconButtonSize) => {
|
|
71
|
+
height: string;
|
|
72
|
+
width: string;
|
|
73
|
+
};
|
|
74
|
+
declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "type" | "key" | "id" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "ariaLabel" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "size" | "icon" | "tooltip" | "as" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disableOverlay" | "disableTooltip" | "hoverColor" | "activeColor" | "focusColor" | "overlayOptions"> & React.RefAttributes<HTMLButtonElement>>;
|
|
75
|
+
export default IconButton;
|