@dfds-ui/react-components 2.2.0-alpha.9bb1ab0f → 2.2.0-alpha.a1ae8508
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/accordion/Accordion.js +70 -51
- package/accordion/AccordionContent.js +13 -6
- package/accordion/AccordionSmall.js +52 -38
- package/app-bar/AppBar.js +49 -35
- package/app-bar/AppBarContext.js +7 -6
- package/app-bar/AppBarDrawer.js +14 -7
- package/app-bar/AppBarIconButton.js +10 -5
- package/app-bar/AppBarItem.js +76 -60
- package/assertions/banner/Banner.js +71 -57
- package/assertions/banner/BannerAction.js +10 -5
- package/assertions/banner/BannerTypography.js +9 -4
- package/assertions/toast/Toast.js +28 -17
- package/assertions/toast/Toaster.d.ts +2 -2
- package/assertions/toast/Toaster.js +53 -57
- package/badge/Badge.js +17 -9
- package/button/BadgeIcon.js +18 -16
- package/button/Button.js +27 -19
- package/button/IconButton.d.ts +1 -1
- package/button/IconButton.js +46 -49
- package/button/LinkButton.js +8 -3
- package/button-stack/ButtonStack.js +30 -22
- package/card/Card.js +49 -35
- package/card/CardActions.js +13 -6
- package/card/CardContent.js +19 -9
- package/card/CardMedia.js +15 -6
- package/card/CardPriceTag.js +22 -4
- package/card/CardTitle.js +25 -15
- package/chip/Chip.js +22 -13
- package/cjs/accordion/Accordion.js +63 -50
- package/cjs/accordion/AccordionContent.js +7 -6
- package/cjs/accordion/AccordionSmall.js +45 -37
- package/cjs/app-bar/AppBar.js +45 -35
- package/cjs/app-bar/AppBarContext.js +5 -4
- package/cjs/app-bar/AppBarDrawer.js +8 -8
- package/cjs/app-bar/AppBarIconButton.js +6 -6
- package/cjs/app-bar/AppBarItem.js +69 -60
- package/cjs/app-bar/AppBarListItem.js +1 -2
- package/cjs/assertions/banner/Banner.js +62 -55
- package/cjs/assertions/banner/BannerAction.js +5 -4
- package/cjs/assertions/banner/BannerTypography.js +9 -7
- package/cjs/assertions/toast/Toast.js +22 -17
- package/cjs/assertions/toast/Toaster.d.ts +2 -2
- package/cjs/assertions/toast/Toaster.js +37 -29
- package/cjs/badge/Badge.js +11 -7
- package/cjs/button/BadgeIcon.js +19 -17
- package/cjs/button/BaseButton.js +2 -4
- package/cjs/button/Button.js +21 -19
- package/cjs/button/IconButton.d.ts +1 -1
- package/cjs/button/IconButton.js +20 -29
- package/cjs/button/LinkButton.js +6 -6
- package/cjs/button/button-style.js +8 -15
- package/cjs/button-stack/ButtonStack.js +22 -20
- package/cjs/card/Card.js +39 -29
- package/cjs/card/CardActions.js +7 -7
- package/cjs/card/CardContent.js +13 -9
- package/cjs/card/CardMedia.js +9 -6
- package/cjs/card/CardPriceTag.js +16 -4
- package/cjs/card/CardTitle.js +16 -12
- package/cjs/chip/Chip.js +18 -15
- package/cjs/common/LockBodyScroll.d.ts +2 -1
- package/cjs/common/LockBodyScroll.js +23 -16
- package/cjs/common/emotionCloneElement.js +1 -3
- package/cjs/common/polymorphic.js +9 -5
- package/cjs/common/use-media.js +1 -1
- package/cjs/common/useOnClickOutside.d.ts +1 -1
- package/cjs/common/useOnClickOutside.js +2 -2
- package/cjs/counter/Counter.d.ts +2 -1
- package/cjs/counter/Counter.js +57 -49
- package/cjs/counter/PluralCounter.d.ts +3 -2
- package/cjs/counter/PluralCounter.js +15 -14
- package/cjs/data-table/DataTable.js +47 -39
- package/cjs/divider/Divider.js +6 -6
- package/cjs/drawer/Drawer.d.ts +2 -1
- package/cjs/drawer/Drawer.js +12 -10
- package/cjs/dropdown-menu/Dropdown.d.ts +1 -1
- package/cjs/dropdown-menu/Dropdown.js +39 -35
- package/cjs/dropdown-menu/DropdownContext.js +7 -8
- package/cjs/dropdown-menu/MenuCheckbox.js +24 -23
- package/cjs/dropdown-menu/MenuItem.js +30 -28
- package/cjs/dropdown-menu/MenuTitle.js +15 -12
- package/cjs/elevation/index.js +1 -2
- package/cjs/flexbox/FlexBox.js +2 -4
- package/cjs/footer/Footer.js +10 -6
- package/cjs/forms/assistive-text/AssistiveText.js +1 -2
- package/cjs/forms/asterisk/Asterisk.js +5 -4
- package/cjs/forms/checkbox/Checkbox.d.ts +2 -2
- package/cjs/forms/checkbox/Checkbox.js +41 -37
- package/cjs/forms/checkbox/ExampleControlComponent.js +7 -7
- package/cjs/forms/email-field/EmailField.d.ts +18 -2
- package/cjs/forms/email-field/EmailField.js +12 -8
- package/cjs/forms/error-text/ErrorText.js +1 -2
- package/cjs/forms/field/Field.js +10 -6
- package/cjs/forms/input/Input.d.ts +2 -2
- package/cjs/forms/input/Input.js +34 -33
- package/cjs/forms/input/InputComposition.d.ts +1 -1
- package/cjs/forms/input/InputComposition.js +40 -35
- package/cjs/forms/label/Label.js +6 -3
- package/cjs/forms/number-field/NumberField.d.ts +18 -2
- package/cjs/forms/number-field/NumberField.js +12 -8
- package/cjs/forms/password-field/PasswordField.d.ts +2 -2
- package/cjs/forms/password-field/PasswordField.js +12 -13
- package/cjs/forms/radio/Radio.d.ts +1 -1
- package/cjs/forms/radio/Radio.js +25 -23
- package/cjs/forms/reactselect/ReactSelect.d.ts +2 -2
- package/cjs/forms/reactselect/ReactSelect.js +75 -67
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +1 -1
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +47 -38
- package/cjs/forms/select/Select.d.ts +2 -2
- package/cjs/forms/select/Select.js +32 -30
- package/cjs/forms/select-field/SelectField.d.ts +12 -4
- package/cjs/forms/select-field/SelectField.js +37 -34
- package/cjs/forms/switch/Switch.js +28 -22
- package/cjs/forms/tel-field/TelField.d.ts +18 -2
- package/cjs/forms/tel-field/TelField.js +12 -8
- package/cjs/forms/text-field/TextField.d.ts +19 -2
- package/cjs/forms/text-field/TextField.js +41 -39
- package/cjs/global-styles/GlobalStyles.js +3 -2
- package/cjs/global-styles/ResetStyles.js +2 -1
- package/cjs/global-styles/sanitize.js +2 -3
- package/cjs/grid/Column.js +7 -7
- package/cjs/grid/Container.js +34 -29
- package/cjs/hero/Hero.js +32 -12
- package/cjs/hero/stripes.js +177 -162
- package/cjs/ie-banner/IEBanner.js +13 -8
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +0 -12
- package/cjs/layout/LayoutLegacy.js +2 -1
- package/cjs/lists/FeatureList.js +16 -13
- package/cjs/lists/ListAddon.js +10 -7
- package/cjs/lists/ListDivider.js +6 -6
- package/cjs/lists/ListIcon.js +6 -6
- package/cjs/lists/ListItem.js +7 -6
- package/cjs/lists/ListText.js +6 -6
- package/cjs/lists/ListTextGroup.js +6 -6
- package/cjs/lists/ListTitle.js +6 -6
- package/cjs/loader/DfdsLoader.js +27 -21
- package/cjs/loader/Loader.js +9 -3
- package/cjs/localization/LocaleFlag.js +5 -4
- package/cjs/localization/locales.js +3 -6
- package/cjs/logo/Logo.js +12 -9
- package/cjs/media/index.js +1 -2
- package/cjs/menu/Menu.js +29 -23
- package/cjs/mobile-stepper/MobileStepper.js +17 -15
- package/cjs/nav-bar/NavBar.js +34 -24
- package/cjs/nav-menu/NavMenuItem.js +13 -11
- package/cjs/pagination/Pagination.js +50 -38
- package/cjs/pagination/Pagination.styles.js +6 -12
- package/cjs/popper/Popper.d.ts +1 -1
- package/cjs/popper/Popper.js +21 -17
- package/cjs/progress-bar/ProgressBar.js +3 -3
- package/cjs/schedule/ScheduleItem.js +11 -8
- package/cjs/schedule/ScheduleList.js +10 -11
- package/cjs/side-sheet/SideSheet.js +48 -40
- package/cjs/side-sheet/SideSheetCloseButton.js +6 -6
- package/cjs/side-sheet/SideSheetContent.js +10 -7
- package/cjs/side-sheet/SideSheetFooter.js +10 -7
- package/cjs/side-sheet/SideSheetHeader.js +10 -7
- package/cjs/side-sheet/SideSheetHeadline.js +6 -5
- package/cjs/site-layout/SiteLayout.js +35 -24
- package/cjs/skeleton/Skeleton.js +6 -6
- package/cjs/social-media-link-list/SocialMediaLinkList.js +64 -58
- package/cjs/spinner/Spinner.js +13 -13
- package/cjs/step/Step.js +29 -20
- package/cjs/step/Step.styles.js +4 -8
- package/cjs/step/StepButton.js +26 -23
- package/cjs/step/StepContent.js +12 -10
- package/cjs/step/StepContext.js +1 -2
- package/cjs/step/StepLabel.js +9 -7
- package/cjs/stepper/Stepper.js +12 -10
- package/cjs/stepper/StepperContext.js +1 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +10 -7
- package/cjs/styles/media.js +2 -4
- package/cjs/styles/theme.js +2 -4
- package/cjs/surface/Surface.d.ts +3 -2
- package/cjs/surface/Surface.js +20 -14
- package/cjs/tab/Tab.js +7 -6
- package/cjs/tab/TabPanel.js +6 -6
- package/cjs/tab/Tabs.js +32 -31
- package/cjs/tab/TabsContext.js +7 -8
- package/cjs/table/Table.d.ts +1 -1
- package/cjs/table/Table.js +17 -17
- package/cjs/table/TableBody.d.ts +1 -1
- package/cjs/table/TableBody.js +11 -12
- package/cjs/table/TableDataCell.d.ts +1 -1
- package/cjs/table/TableDataCell.js +13 -14
- package/cjs/table/TableHead.d.ts +1 -1
- package/cjs/table/TableHead.js +12 -15
- package/cjs/table/TableHeaderCell.d.ts +1 -1
- package/cjs/table/TableHeaderCell.js +14 -15
- package/cjs/table/TableRow.d.ts +1 -1
- package/cjs/table/TableRow.js +12 -14
- package/cjs/test/Test.js +5 -4
- package/cjs/tooltip/Tooltip.d.ts +14 -8
- package/cjs/tooltip/Tooltip.js +81 -50
- package/cjs/typography/Headlines.js +14 -20
- package/cjs/typography/Text.js +2 -3
- package/common/LockBodyScroll.d.ts +2 -1
- package/common/LockBodyScroll.js +28 -16
- package/common/emotionCloneElement.js +1 -2
- package/common/polymorphic.js +9 -3
- package/common/use-media.js +3 -3
- package/common/useOnClickOutside.d.ts +1 -1
- package/common/useOnClickOutside.js +2 -2
- package/counter/Counter.d.ts +2 -1
- package/counter/Counter.js +59 -51
- package/counter/PluralCounter.d.ts +3 -2
- package/counter/PluralCounter.js +24 -17
- package/data-table/DataTable.js +54 -40
- package/divider/Divider.js +10 -5
- package/drawer/Drawer.d.ts +2 -1
- package/drawer/Drawer.js +19 -11
- package/dropdown-menu/Dropdown.d.ts +1 -1
- package/dropdown-menu/Dropdown.js +47 -38
- package/dropdown-menu/DropdownContext.js +5 -4
- package/dropdown-menu/MenuCheckbox.js +24 -17
- package/dropdown-menu/MenuItem.js +26 -18
- package/dropdown-menu/MenuTitle.js +14 -11
- package/flexbox/FlexBox.js +2 -2
- package/footer/Footer.js +9 -4
- package/forms/asterisk/Asterisk.js +4 -2
- package/forms/checkbox/Checkbox.d.ts +2 -2
- package/forms/checkbox/Checkbox.js +50 -41
- package/forms/checkbox/ExampleControlComponent.js +15 -8
- package/forms/email-field/EmailField.d.ts +18 -2
- package/forms/email-field/EmailField.js +16 -6
- package/forms/field/Field.js +9 -4
- package/forms/input/Input.d.ts +2 -2
- package/forms/input/Input.js +42 -36
- package/forms/input/InputComposition.d.ts +1 -1
- package/forms/input/InputComposition.js +41 -31
- package/forms/label/Label.js +12 -4
- package/forms/number-field/NumberField.d.ts +18 -2
- package/forms/number-field/NumberField.js +17 -7
- package/forms/password-field/PasswordField.d.ts +2 -2
- package/forms/password-field/PasswordField.js +18 -13
- package/forms/radio/Radio.d.ts +1 -1
- package/forms/radio/Radio.js +33 -25
- package/forms/reactselect/ReactSelect.d.ts +2 -2
- package/forms/reactselect/ReactSelect.js +72 -66
- package/forms/searchable-select/AsyncSearchableSelect.d.ts +1 -1
- package/forms/searchable-select/AsyncSearchableSelect.js +50 -38
- package/forms/select/Select.d.ts +2 -2
- package/forms/select/Select.js +40 -33
- package/forms/select-field/SelectField.d.ts +12 -4
- package/forms/select-field/SelectField.js +44 -36
- package/forms/switch/Switch.js +35 -23
- package/forms/tel-field/TelField.d.ts +18 -2
- package/forms/tel-field/TelField.js +16 -6
- package/forms/text-field/TextField.d.ts +19 -2
- package/forms/text-field/TextField.js +49 -41
- package/global-styles/GlobalStyles.js +3 -3
- package/global-styles/ResetStyles.js +2 -2
- package/grid/Column.js +14 -7
- package/grid/Container.js +41 -35
- package/hero/Hero.js +32 -10
- package/hero/stripes.js +176 -160
- package/ie-banner/IEBanner.js +14 -8
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/layout/LayoutLegacy.js +2 -2
- package/lists/FeatureList.js +21 -11
- package/lists/ListAddon.js +13 -6
- package/lists/ListDivider.js +10 -5
- package/lists/ListIcon.js +10 -5
- package/lists/ListItem.js +13 -6
- package/lists/ListText.js +10 -5
- package/lists/ListTextGroup.js +10 -5
- package/lists/ListTitle.js +10 -5
- package/loader/DfdsLoader.js +25 -19
- package/loader/Loader.js +8 -2
- package/localization/LocaleFlag.js +10 -5
- package/logo/Logo.js +14 -7
- package/menu/Menu.js +33 -21
- package/mobile-stepper/MobileStepper.js +26 -18
- package/nav-bar/NavBar.js +41 -23
- package/nav-menu/NavMenuItem.js +12 -10
- package/package.json +16 -21
- package/pagination/Pagination.js +53 -35
- package/popper/Popper.d.ts +1 -1
- package/popper/Popper.js +27 -17
- package/progress-bar/ProgressBar.js +2 -2
- package/schedule/ScheduleItem.js +9 -4
- package/schedule/ScheduleList.js +16 -10
- package/side-sheet/SideSheet.js +54 -41
- package/side-sheet/SideSheetCloseButton.js +10 -5
- package/side-sheet/SideSheetContent.js +17 -8
- package/side-sheet/SideSheetFooter.js +17 -8
- package/side-sheet/SideSheetHeader.js +17 -8
- package/side-sheet/SideSheetHeadline.js +5 -4
- package/site-layout/SiteLayout.js +36 -17
- package/skeleton/Skeleton.js +10 -5
- package/social-media-link-list/SocialMediaLinkList.js +69 -55
- package/spinner/Spinner.js +17 -10
- package/step/Step.js +34 -20
- package/step/StepButton.js +23 -15
- package/step/StepContent.js +11 -9
- package/step/StepLabel.js +8 -6
- package/stepper/Stepper.js +13 -11
- package/stepper-feedback-message/StepperFeedbackMessage.js +9 -6
- package/surface/Surface.d.ts +3 -2
- package/surface/Surface.js +17 -14
- package/tab/Tab.js +13 -6
- package/tab/TabPanel.js +5 -4
- package/tab/Tabs.js +46 -39
- package/tab/TabsContext.js +5 -4
- package/table/Table.d.ts +1 -1
- package/table/Table.js +23 -17
- package/table/TableBody.d.ts +1 -1
- package/table/TableBody.js +15 -10
- package/table/TableDataCell.d.ts +1 -1
- package/table/TableDataCell.js +17 -12
- package/table/TableHead.d.ts +1 -1
- package/table/TableHead.js +13 -12
- package/table/TableHeaderCell.d.ts +1 -1
- package/table/TableHeaderCell.js +18 -13
- package/table/TableRow.d.ts +1 -1
- package/table/TableRow.js +14 -14
- package/test/Test.js +4 -2
- package/tooltip/Tooltip.d.ts +14 -8
- package/tooltip/Tooltip.js +93 -57
- package/typography/Headlines.js +13 -6
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +0 -19
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
- package/cjs/date-range-picker/DatePickerDfdsStyles.js +0 -11
- package/cjs/date-range-picker/DateRangePicker.d.ts +0 -33
- package/cjs/date-range-picker/DateRangePicker.js +0 -263
- package/cjs/date-range-picker/index.d.ts +0 -1
- package/cjs/date-range-picker/index.js +0 -13
- package/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
- package/date-range-picker/DatePickerDefaultStyles.js +0 -12
- package/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
- package/date-range-picker/DatePickerDfdsStyles.js +0 -4
- package/date-range-picker/DateRangePicker.d.ts +0 -33
- package/date-range-picker/DateRangePicker.js +0 -310
- package/date-range-picker/index.d.ts +0 -1
- package/date-range-picker/index.js +0 -1
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
import _styled from "@emotion/styled/base";
|
|
2
3
|
var _excluded = ["instagramLink", "facebookLink", "blogLink", "twitterLink", "linkedinLink", "youtubeLink", "mailshareLink", "iconSize", "noPadding", "colorOverwrite"];
|
|
3
|
-
function
|
|
4
|
-
function
|
|
5
|
-
function
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
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); }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
11
|
import React from 'react';
|
|
7
12
|
import FlexBox from '../flexbox/FlexBox';
|
|
8
13
|
import { Blog, Facebook, Instagram, LinkedIn, MailShare, Twitter, Youtube } from '@dfds-ui/icons';
|
|
9
|
-
import { jsx as
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
10
15
|
export var SoMeWrapper = /*#__PURE__*/_styled(FlexBox, process.env.NODE_ENV === "production" ? {
|
|
11
16
|
target: "e1vhyn6d0"
|
|
12
17
|
} : {
|
|
@@ -37,60 +42,69 @@ export var SocialMediaLinkList = function SocialMediaLinkList(_ref5) {
|
|
|
37
42
|
noPadding = _ref5.noPadding,
|
|
38
43
|
colorOverwrite = _ref5.colorOverwrite,
|
|
39
44
|
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
40
|
-
return
|
|
45
|
+
return _jsxs(SoMeWrapper, _objectSpread(_objectSpread({
|
|
41
46
|
colorOverwrite: colorOverwrite,
|
|
42
47
|
noPadding: noPadding,
|
|
43
48
|
wrapWrap: true,
|
|
44
49
|
iconSize: iconSize
|
|
45
|
-
}, rest),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
50
|
+
}, rest), {}, {
|
|
51
|
+
children: [facebookLink && _jsx("a", {
|
|
52
|
+
href: facebookLink,
|
|
53
|
+
target: "_blank",
|
|
54
|
+
rel: "noopener noreferrer",
|
|
55
|
+
children: _jsx(Facebook, {
|
|
56
|
+
height: iconSize,
|
|
57
|
+
width: iconSize
|
|
58
|
+
})
|
|
59
|
+
}), blogLink && _jsx("a", {
|
|
60
|
+
href: blogLink,
|
|
61
|
+
target: "_blank",
|
|
62
|
+
rel: "noopener noreferrer",
|
|
63
|
+
children: _jsx(Blog, {
|
|
64
|
+
height: iconSize,
|
|
65
|
+
width: iconSize
|
|
66
|
+
})
|
|
67
|
+
}), instagramLink && _jsx("a", {
|
|
68
|
+
href: instagramLink,
|
|
69
|
+
target: "_blank",
|
|
70
|
+
rel: "noopener noreferrer",
|
|
71
|
+
children: _jsx(Instagram, {
|
|
72
|
+
height: iconSize,
|
|
73
|
+
width: iconSize
|
|
74
|
+
})
|
|
75
|
+
}), linkedinLink && _jsx("a", {
|
|
76
|
+
href: linkedinLink,
|
|
77
|
+
target: "_blank",
|
|
78
|
+
rel: "noopener noreferrer",
|
|
79
|
+
children: _jsx(LinkedIn, {
|
|
80
|
+
height: iconSize,
|
|
81
|
+
width: iconSize
|
|
82
|
+
})
|
|
83
|
+
}), twitterLink && _jsx("a", {
|
|
84
|
+
href: twitterLink,
|
|
85
|
+
target: "_blank",
|
|
86
|
+
rel: "noopener noreferrer",
|
|
87
|
+
children: _jsx(Twitter, {
|
|
88
|
+
height: iconSize,
|
|
89
|
+
width: iconSize
|
|
90
|
+
})
|
|
91
|
+
}), youtubeLink && _jsx("a", {
|
|
92
|
+
href: youtubeLink,
|
|
93
|
+
target: "_blank",
|
|
94
|
+
rel: "noopener noreferrer",
|
|
95
|
+
children: _jsx(Youtube, {
|
|
96
|
+
height: iconSize,
|
|
97
|
+
width: iconSize
|
|
98
|
+
})
|
|
99
|
+
}), mailshareLink && _jsx("a", {
|
|
100
|
+
href: mailshareLink,
|
|
101
|
+
target: "_blank",
|
|
102
|
+
rel: "noopener noreferrer",
|
|
103
|
+
children: _jsx(MailShare, {
|
|
104
|
+
height: iconSize,
|
|
105
|
+
width: iconSize
|
|
106
|
+
})
|
|
107
|
+
})]
|
|
108
|
+
}));
|
|
95
109
|
};
|
|
96
110
|
export default SocialMediaLinkList;
|
package/spinner/Spinner.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
import _styled from "@emotion/styled/base";
|
|
2
3
|
var _excluded = ["instant", "size", "className", "color", "as"];
|
|
3
4
|
var _templateObject, _templateObject2;
|
|
4
|
-
function
|
|
5
|
-
function
|
|
6
|
-
function
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
+
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); }
|
|
10
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
11
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
7
12
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
8
13
|
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)."; }
|
|
9
14
|
import React from 'react';
|
|
10
15
|
import { keyframes, css } from '@emotion/react';
|
|
11
16
|
import { SvgAnimatedSpinner } from '@dfds-ui/icons';
|
|
12
17
|
import { theme } from '@dfds-ui/theme';
|
|
13
|
-
import { jsx as
|
|
18
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
14
19
|
var paths = 8;
|
|
15
20
|
var duration = 0.8;
|
|
16
21
|
var delay = duration / paths;
|
|
@@ -54,14 +59,16 @@ export function Spinner(_ref) {
|
|
|
54
59
|
var Svg = instant ? InstantSpinner : FadedSpinner;
|
|
55
60
|
var colorPicker = color == 'dark' ? theme.colors.primary.main : color == 'light' ? theme.colors.surface.primary : theme.colors.secondary.main;
|
|
56
61
|
var Component = as;
|
|
57
|
-
return
|
|
62
|
+
return _jsx(Component, _objectSpread(_objectSpread({
|
|
58
63
|
className: className,
|
|
59
64
|
css: /*#__PURE__*/css("color:", colorPicker, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:Spinner;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zcGlubmVyL1NwaW5uZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtHYyIsImZpbGUiOiIuLi8uLi9zcmMvc3Bpbm5lci9TcGlubmVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsga2V5ZnJhbWVzLCBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IFN2Z0FuaW1hdGVkU3Bpbm5lciB9IGZyb20gJ0BkZmRzLXVpL2ljb25zJ1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCB7IFBvbHltb3JwaGljQ29tcG9uZW50UHJvcHMgfSBmcm9tICcuLi9jb21tb24vcG9seW1vcnBoaWMnXG5cbnR5cGUgQ29sb3IgPSAnZGFyaycgfCAnc2Vjb25kYXJ5JyB8ICdsaWdodCdcblxuZXhwb3J0IHR5cGUgU3Bpbm5lclByb3BzID0ge1xuICAvKipcbiAgICogSW5kaWNhdGVzIHRoYXQgU3Bpbm5lciB3aWxsIHNob3cgdXAgaW5zdGFudGFuZW91c2x5IChpbnN0ZWFkIG9mIGZhZGluZyBpbikuXG4gICAqXG4gICAqL1xuICBpbnN0YW50PzogYm9vbGVhblxuICAvKipcbiAgICogU3BlY2lmaWVzIHRoZSBzaXplIG9mIHRoZSBTcGlubmVyLlxuICAgKlxuICAgKiBAZGVwcmVjYXRlZCBVc2UgY3NzIGluc3RlYWQuXG4gICAqL1xuICBzaXplPzogc3RyaW5nXG4gIC8qKlxuICAgKiBDbGFzcyBuYW1lIHRvIGJlIGFzc2lnbmVkIHRvIGNvbXBvbmVudC5cbiAgICovXG4gIGNsYXNzTmFtZT86IHN0cmluZ1xuICAvKipcbiAgICogU2V0IHRoZSBjb2xvciB2YXJpYW50IHRvIHVzZS5cbiAgICovXG4gIGNvbG9yPzogQ29sb3Jcbn0gJiBQb2x5bW9ycGhpY0NvbXBvbmVudFByb3BzXG5cbmNvbnN0IHBhdGhzID0gOFxuY29uc3QgZHVyYXRpb24gPSAwLjhcbmNvbnN0IGRlbGF5ID0gZHVyYXRpb24gLyBwYXRoc1xuXG5jb25zdCBzcGluID0ga2V5ZnJhbWVzYFxuICAwJSwgMjUlIHtcbiAgICBvcGFjaXR5OiAxO1xuICB9XG4gIDEwMCUge1xuICAgIG9wYWNpdHk6IC4yNTtcbiAgfVxuYFxuXG5jb25zdCBmYWRlID0ga2V5ZnJhbWVzYFxuICBmcm9tIHtcbiAgICBvcGFjaXR5OiAwO1xuICB9XG5cbiAgdG8ge1xuICAgIG9wYWNpdHk6IDE7XG4gIH1cbiAgYFxuXG5jb25zdCBJbnN0YW50U3Bpbm5lciA9IHN0eWxlZChTdmdBbmltYXRlZFNwaW5uZXIpPHsgc2l6ZT86IHN0cmluZyB9PmBcbiAgd2lkdGg6ICR7KHApID0+IHAuc2l6ZSB8fCAnMS41ZW0nfTtcbiAgaGVpZ2h0OiAkeyhwKSA9PiBwLnNpemUgfHwgJzEuNWVtJ307XG5cbiAgcGF0aCB7XG4gICAgYW5pbWF0aW9uOiAke3NwaW59ICR7ZHVyYXRpb259cyBpbmZpbml0ZTtcblxuICAgICR7KCkgPT4ge1xuICAgICAgbGV0IGRlbGF5cyA9IGBgXG4gICAgICBmb3IgKGxldCBpID0gMTsgaSA8IHBhdGhzOyBpKyspIHtcbiAgICAgICAgZGVsYXlzICs9IGBcbiAgICAgICAgICAmOm50aC1vZi10eXBlKCR7aX0pIHtcbiAgICAgICAgICAgIG9wYWNpdHk6ICR7MS4wNSAtIGkgLyBwYXRoc307XG4gICAgICAgICAgICBhbmltYXRpb24tZGVsYXk6ICR7ZGVsYXkgKiBpfXM7XG4gICAgICAgICAgfVxuICAgICAgICBgXG4gICAgICB9XG4gICAgICByZXR1cm4gZGVsYXlzXG4gICAgfX1cbiAgfVxuYFxuXG5jb25zdCBGYWRlZFNwaW5uZXIgPSBzdHlsZWQoSW5zdGFudFNwaW5uZXIpYFxuICBvcGFjaXR5OiAwO1xuICBhbmltYXRpb246ICR7ZmFkZX0gMnMgZWFzZSAwLjZzIGZvcndhcmRzO1xuYFxuXG4vKipcbiAqIEEgc3Bpbm5lciBpcyB1c2VkIHRvIGdpdmUgdXNlciBhIHNlbnNlIG9mIHByb2dyZXNzLCB3aGVuIHRoZSB0aW1lIHJlcXVpcmVkIHRvIGNvbXBsZXRlIHRoZSBnaXZlbiB0YXNrIGlzIG5vdCBrbm93bi5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIFNwaW5uZXIoeyBpbnN0YW50LCBzaXplLCBjbGFzc05hbWUsIGNvbG9yID0gJ2RhcmsnLCBhcyA9ICdkaXYnLCAuLi5yZXN0IH06IFNwaW5uZXJQcm9wcykge1xuICBjb25zdCBTdmcgPSBpbnN0YW50ID8gSW5zdGFudFNwaW5uZXIgOiBGYWRlZFNwaW5uZXJcbiAgY29uc3QgY29sb3JQaWNrZXIgPVxuICAgIGNvbG9yID09ICdkYXJrJ1xuICAgICAgPyB0aGVtZS5jb2xvcnMucHJpbWFyeS5tYWluXG4gICAgICA6IGNvbG9yID09ICdsaWdodCdcbiAgICAgID8gdGhlbWUuY29sb3JzLnN1cmZhY2UucHJpbWFyeVxuICAgICAgOiB0aGVtZS5jb2xvcnMuc2Vjb25kYXJ5Lm1haW5cblxuICBjb25zdCBDb21wb25lbnQgPSBhc1xuXG4gIHJldHVybiAoXG4gICAgPENvbXBvbmVudFxuICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgY29sb3I6ICR7Y29sb3JQaWNrZXJ9O1xuICAgICAgYH1cbiAgICAgIHsuLi5yZXN0fVxuICAgID5cbiAgICAgIDxTdmcgd2lkdGg9ezMyfSBoZWlnaHQ9ezMyfSB2aWV3Qm94PVwiMCAwIDMyIDMyXCIgc2l6ZT17c2l6ZX0gLz5cbiAgICA8L0NvbXBvbmVudD5cbiAgKVxufVxuXG5TcGlubmVyLmRpc3BsYXlOYW1lID0gJ1NwaW5uZXInXG5cbi8qKlxuICogQGRlcHJlY2F0ZWQgU3R5bGUgdGhlIHJlZ3VsYXIgc3Bpbm5lciB0byBhY2hpZXZlIHRoZSBkZXNpcmVkIGVmZmVjdC5cbiAqL1xuZXhwb3J0IGNvbnN0IENlbnRlcmVkU3Bpbm5lciA9IHN0eWxlZChTcGlubmVyKWBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsZWZ0OiA1MCU7XG4gIHRvcDogNTAlO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbmBcblxuZXhwb3J0IGRlZmF1bHQgU3Bpbm5lclxuIl19 */")
|
|
60
|
-
}, rest),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
}, rest), {}, {
|
|
66
|
+
children: _jsx(Svg, {
|
|
67
|
+
width: 32,
|
|
68
|
+
height: 32,
|
|
69
|
+
viewBox: "0 0 32 32",
|
|
70
|
+
size: size
|
|
71
|
+
})
|
|
65
72
|
}));
|
|
66
73
|
}
|
|
67
74
|
Spinner.displayName = 'Spinner';
|
package/step/Step.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
var _excluded = ["index", "label", "active", "completed", "disabled", "children", "hasError", "optionalStepText", "isEditing", "handleStepClick"];
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
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); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
10
|
import React, { memo, useContext } from 'react';
|
|
6
11
|
import StepLabel from './StepLabel';
|
|
7
12
|
import StepButton from './StepButton';
|
|
@@ -10,7 +15,7 @@ import StepContext from './StepContext';
|
|
|
10
15
|
import StepperContext from '../stepper/StepperContext';
|
|
11
16
|
import { stepWrapperHorizontalStyles, stepWrapperVerticalStyles, stepContentStyles, stepHeaderStyles } from './Step.styles';
|
|
12
17
|
import { StepperFeedbackMessage } from '../stepper-feedback-message';
|
|
13
|
-
import { jsx as
|
|
18
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
14
19
|
var Step = function Step(_ref) {
|
|
15
20
|
var index = _ref.index,
|
|
16
21
|
_ref$label = _ref.label,
|
|
@@ -48,21 +53,30 @@ var Step = function Step(_ref) {
|
|
|
48
53
|
};
|
|
49
54
|
}, [index, active, completed, disabled, hasError, isEditing]);
|
|
50
55
|
var displayFeedbackCondition = orientation === 'vertical' && stepFeedbackMessage && activeStep === index;
|
|
51
|
-
return
|
|
52
|
-
value: contextValue
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
56
|
+
return _jsx(StepContext.Provider, {
|
|
57
|
+
value: contextValue,
|
|
58
|
+
children: _jsxs("div", _objectSpread(_objectSpread({
|
|
59
|
+
css: orientation === 'horizontal' ? stepWrapperHorizontalStyles : stepWrapperVerticalStyles
|
|
60
|
+
}, props), {}, {
|
|
61
|
+
"data-testid": "step",
|
|
62
|
+
children: [_jsx("div", {
|
|
63
|
+
css: stepHeaderStyles,
|
|
64
|
+
onClick: handleStepClick,
|
|
65
|
+
children: displayFeedbackCondition ? _jsx(StepperFeedbackMessage, {
|
|
66
|
+
message: stepFeedbackMessage
|
|
67
|
+
}) : _jsxs(_Fragment, {
|
|
68
|
+
children: [_jsx(StepButton, _objectSpread({}, props)), label ? _jsx(StepLabel, {
|
|
69
|
+
optionalStepText: optionalStepText,
|
|
70
|
+
children: label
|
|
71
|
+
}) : null]
|
|
72
|
+
})
|
|
73
|
+
}), orientation === 'vertical' ? _jsx("div", {
|
|
74
|
+
css: stepContentStyles,
|
|
75
|
+
children: _jsx(StepContent, {
|
|
76
|
+
children: children
|
|
77
|
+
})
|
|
78
|
+
}) : null]
|
|
79
|
+
}))
|
|
80
|
+
});
|
|
67
81
|
};
|
|
68
82
|
export default /*#__PURE__*/memo(Step);
|
package/step/StepButton.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
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); }
|
|
1
7
|
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
2
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t)
|
|
8
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
9
|
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)."; }
|
|
4
10
|
import React from 'react';
|
|
5
11
|
import { css } from '@emotion/react';
|
|
@@ -8,7 +14,7 @@ import { Yes, MoreHorizontal, StatusAlert } from '@dfds-ui/icons/system';
|
|
|
8
14
|
import { Button } from '../button';
|
|
9
15
|
import { theme } from '@dfds-ui/theme';
|
|
10
16
|
import StepContext from './StepContext';
|
|
11
|
-
import { jsx as
|
|
17
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
12
18
|
var buttonStyles = function buttonStyles(_ref2) {
|
|
13
19
|
var active = _ref2.active,
|
|
14
20
|
_ref2$completed = _ref2.completed,
|
|
@@ -34,10 +40,10 @@ var StepButtonElement = function StepButtonElement(_ref3) {
|
|
|
34
40
|
isEditing = _React$useContext.isEditing,
|
|
35
41
|
disabled = _React$useContext.disabled;
|
|
36
42
|
if (hasError) {
|
|
37
|
-
return
|
|
43
|
+
return _jsx(IconButton, _objectSpread(_objectSpread({
|
|
38
44
|
disabled: disabled,
|
|
39
45
|
"data-testid": "step-button-error"
|
|
40
|
-
}, rest, {
|
|
46
|
+
}, rest), {}, {
|
|
41
47
|
icon: StatusAlert,
|
|
42
48
|
ariaLabel: "Error",
|
|
43
49
|
color: theme.colors.status.alert,
|
|
@@ -45,9 +51,9 @@ var StepButtonElement = function StepButtonElement(_ref3) {
|
|
|
45
51
|
disableOverlay: true
|
|
46
52
|
}));
|
|
47
53
|
} else if (isEditing) {
|
|
48
|
-
return
|
|
54
|
+
return _jsx(IconButton, _objectSpread(_objectSpread({
|
|
49
55
|
disabled: disabled
|
|
50
|
-
}, rest, {
|
|
56
|
+
}, rest), {}, {
|
|
51
57
|
"data-testid": "step-button-editing",
|
|
52
58
|
size: "small",
|
|
53
59
|
color: "white",
|
|
@@ -57,9 +63,9 @@ var StepButtonElement = function StepButtonElement(_ref3) {
|
|
|
57
63
|
disableOverlay: true
|
|
58
64
|
}));
|
|
59
65
|
} else if (completed) {
|
|
60
|
-
return
|
|
66
|
+
return _jsx(IconButton, _objectSpread(_objectSpread({
|
|
61
67
|
disabled: disabled
|
|
62
|
-
}, rest, {
|
|
68
|
+
}, rest), {}, {
|
|
63
69
|
"data-testid": "step-button-completed",
|
|
64
70
|
size: "small",
|
|
65
71
|
color: "white",
|
|
@@ -72,18 +78,19 @@ var StepButtonElement = function StepButtonElement(_ref3) {
|
|
|
72
78
|
disableOverlay: true
|
|
73
79
|
}));
|
|
74
80
|
}
|
|
75
|
-
return
|
|
81
|
+
return _jsx(Button, _objectSpread(_objectSpread({
|
|
76
82
|
disabled: disabled,
|
|
77
83
|
"data-testid": "step-button-index"
|
|
78
|
-
}, rest, {
|
|
84
|
+
}, rest), {}, {
|
|
79
85
|
size: "small",
|
|
80
86
|
variation: "text",
|
|
81
87
|
color: "white",
|
|
82
88
|
css: buttonStyles({
|
|
83
89
|
active: active,
|
|
84
90
|
completed: completed
|
|
85
|
-
})
|
|
86
|
-
|
|
91
|
+
}),
|
|
92
|
+
children: index + 1
|
|
93
|
+
}));
|
|
87
94
|
};
|
|
88
95
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
89
96
|
name: "br76u9",
|
|
@@ -95,9 +102,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
95
102
|
};
|
|
96
103
|
var StepButton = function StepButton(_ref4) {
|
|
97
104
|
var rest = _extends({}, (_objectDestructuringEmpty(_ref4), _ref4));
|
|
98
|
-
return
|
|
105
|
+
return _jsx("div", {
|
|
99
106
|
"data-testid": "step-button",
|
|
100
|
-
css: _ref
|
|
101
|
-
|
|
107
|
+
css: _ref,
|
|
108
|
+
children: _jsx(StepButtonElement, _objectSpread({}, rest))
|
|
109
|
+
});
|
|
102
110
|
};
|
|
103
111
|
export default StepButton;
|
package/step/StepContent.js
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { Accordion } from '../accordion';
|
|
5
5
|
import StepContext from '../step/StepContext';
|
|
6
|
-
import { jsx as
|
|
6
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
7
7
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
8
8
|
name: "1go1kzf",
|
|
9
9
|
styles: "& .accordion__content{padding:0;background-color:inherit;}"
|
|
@@ -24,14 +24,16 @@ var StepContent = function StepContent(_ref3) {
|
|
|
24
24
|
var children = _ref3.children;
|
|
25
25
|
var _React$useContext = React.useContext(StepContext),
|
|
26
26
|
active = _React$useContext.active;
|
|
27
|
-
return
|
|
27
|
+
return _jsx("div", {
|
|
28
28
|
"data-testid": "step-content",
|
|
29
|
-
css: _ref2
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
css: _ref2,
|
|
30
|
+
children: _jsx(Accordion, {
|
|
31
|
+
isOpen: active,
|
|
32
|
+
css: _ref,
|
|
33
|
+
header: _jsx("div", {}),
|
|
34
|
+
type: "small",
|
|
35
|
+
children: children
|
|
36
|
+
})
|
|
37
|
+
});
|
|
36
38
|
};
|
|
37
39
|
export default StepContent;
|
package/step/StepLabel.js
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import StepContext from './StepContext';
|
|
5
5
|
import { theme } from '@dfds-ui/theme';
|
|
6
|
-
import { jsx as
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
7
7
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
8
8
|
name: "rnnx2x",
|
|
9
9
|
styles: "font-size:12px"
|
|
@@ -18,11 +18,13 @@ var StepLabel = function StepLabel(_ref2) {
|
|
|
18
18
|
var _React$useContext = React.useContext(StepContext),
|
|
19
19
|
completed = _React$useContext.completed,
|
|
20
20
|
active = _React$useContext.active;
|
|
21
|
-
return
|
|
21
|
+
return _jsxs("div", {
|
|
22
22
|
"data-testid": "step-label",
|
|
23
|
-
css: /*#__PURE__*/css("display:flex;flex-direction:column;font-size:16px;color:", completed || active ? theme.colors.text.primary.primary : theme.colors.text.primary.secondary, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:StepLabel;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdGVwL1N0ZXBMYWJlbC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JjIiwiZmlsZSI6Ii4uLy4uL3NyYy9zdGVwL1N0ZXBMYWJlbC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRkMsIFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgU3RlcENvbnRleHQgZnJvbSAnLi9TdGVwQ29udGV4dCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5cbnR5cGUgU3RlcExhYmxlVHlwZXMgPSB7XG4gIGNoaWxkcmVuOiBSZWFjdE5vZGVcbiAgb3B0aW9uYWxTdGVwVGV4dD86IFJlYWN0Tm9kZVxufVxuXG5jb25zdCBTdGVwTGFiZWw6IEZDPFN0ZXBMYWJsZVR5cGVzPiA9ICh7IGNoaWxkcmVuLCBvcHRpb25hbFN0ZXBUZXh0IH0pID0+IHtcbiAgY29uc3QgeyBjb21wbGV0ZWQsIGFjdGl2ZSB9ID0gUmVhY3QudXNlQ29udGV4dChTdGVwQ29udGV4dClcblxuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIGRhdGEtdGVzdGlkPVwic3RlcC1sYWJlbFwiXG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgZm9udC1zaXplOiAxNnB4O1xuICAgICAgICBjb2xvcjogJHtjb21wbGV0ZWQgfHwgYWN0aXZlID8gdGhlbWUuY29sb3JzLnRleHQucHJpbWFyeS5wcmltYXJ5IDogdGhlbWUuY29sb3JzLnRleHQucHJpbWFyeS5zZWNvbmRhcnl9O1xuICAgICAgYH1cbiAgICA+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgICA8c3BhblxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICBmb250LXNpemU6IDEycHg7XG4gICAgICAgIGB9XG4gICAgICA+XG4gICAgICAgIHtvcHRpb25hbFN0ZXBUZXh0ID8gb3B0aW9uYWxTdGVwVGV4dCA6IG51bGx9XG4gICAgICA8L3NwYW4+XG4gICAgPC9kaXY+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgU3RlcExhYmVsXG4iXX0= */")
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
css: /*#__PURE__*/css("display:flex;flex-direction:column;font-size:16px;color:", completed || active ? theme.colors.text.primary.primary : theme.colors.text.primary.secondary, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:StepLabel;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdGVwL1N0ZXBMYWJlbC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JjIiwiZmlsZSI6Ii4uLy4uL3NyYy9zdGVwL1N0ZXBMYWJlbC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRkMsIFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgU3RlcENvbnRleHQgZnJvbSAnLi9TdGVwQ29udGV4dCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5cbnR5cGUgU3RlcExhYmxlVHlwZXMgPSB7XG4gIGNoaWxkcmVuOiBSZWFjdE5vZGVcbiAgb3B0aW9uYWxTdGVwVGV4dD86IFJlYWN0Tm9kZVxufVxuXG5jb25zdCBTdGVwTGFiZWw6IEZDPFN0ZXBMYWJsZVR5cGVzPiA9ICh7IGNoaWxkcmVuLCBvcHRpb25hbFN0ZXBUZXh0IH0pID0+IHtcbiAgY29uc3QgeyBjb21wbGV0ZWQsIGFjdGl2ZSB9ID0gUmVhY3QudXNlQ29udGV4dChTdGVwQ29udGV4dClcblxuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIGRhdGEtdGVzdGlkPVwic3RlcC1sYWJlbFwiXG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgZm9udC1zaXplOiAxNnB4O1xuICAgICAgICBjb2xvcjogJHtjb21wbGV0ZWQgfHwgYWN0aXZlID8gdGhlbWUuY29sb3JzLnRleHQucHJpbWFyeS5wcmltYXJ5IDogdGhlbWUuY29sb3JzLnRleHQucHJpbWFyeS5zZWNvbmRhcnl9O1xuICAgICAgYH1cbiAgICA+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgICA8c3BhblxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICBmb250LXNpemU6IDEycHg7XG4gICAgICAgIGB9XG4gICAgICA+XG4gICAgICAgIHtvcHRpb25hbFN0ZXBUZXh0ID8gb3B0aW9uYWxTdGVwVGV4dCA6IG51bGx9XG4gICAgICA8L3NwYW4+XG4gICAgPC9kaXY+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgU3RlcExhYmVsXG4iXX0= */"),
|
|
24
|
+
children: [children, _jsx("span", {
|
|
25
|
+
css: _ref,
|
|
26
|
+
children: optionalStepText ? optionalStepText : null
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
27
29
|
};
|
|
28
30
|
export default StepLabel;
|
package/stepper/Stepper.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["children", "activeStep", "sequential", "orientation", "stepFeedbackMessage"];
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
4
3
|
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; }
|
|
5
4
|
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; }
|
|
6
5
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
7
|
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); }
|
|
9
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++)
|
|
10
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r)
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
10
|
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)."; }
|
|
12
11
|
import React, { memo } from 'react';
|
|
13
12
|
import { css } from '@emotion/react';
|
|
14
13
|
import StepperContext from './StepperContext';
|
|
15
14
|
import { StepperFeedbackMessage } from '../stepper-feedback-message';
|
|
16
|
-
import { jsx as
|
|
15
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
17
16
|
var stepperWrapperHorizontalStyles = process.env.NODE_ENV === "production" ? {
|
|
18
17
|
name: "1eoy87d",
|
|
19
18
|
styles: "display:flex;justify-content:space-between"
|
|
@@ -55,12 +54,15 @@ var StepperProvider = function StepperProvider(_ref) {
|
|
|
55
54
|
};
|
|
56
55
|
}, [activeStep, sequential, orientation, stepFeedbackMessage]);
|
|
57
56
|
var displayFeedbackCondition = stepFeedbackMessage && orientation === 'horizontal';
|
|
58
|
-
return
|
|
59
|
-
value: contextValue
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
return _jsx(StepperContext.Provider, {
|
|
58
|
+
value: contextValue,
|
|
59
|
+
children: _jsx("div", _objectSpread(_objectSpread({
|
|
60
|
+
css: orientation === 'horizontal' ? stepperWrapperHorizontalStyles : StepperWrapperVerticalStyles
|
|
61
|
+
}, other), {}, {
|
|
62
|
+
children: displayFeedbackCondition ? _jsx(StepperFeedbackMessage, {
|
|
63
|
+
message: stepFeedbackMessage
|
|
64
|
+
}) : steps
|
|
65
|
+
}))
|
|
66
|
+
});
|
|
65
67
|
};
|
|
66
68
|
export default /*#__PURE__*/memo(StepperProvider);
|
|
@@ -2,7 +2,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Spinner from '../spinner/Spinner';
|
|
5
|
-
import { jsx as
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
6
6
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
7
7
|
name: "1yydxi7",
|
|
8
8
|
styles: "display:flex;align-items:center;gap:8px"
|
|
@@ -13,11 +13,14 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
13
13
|
};
|
|
14
14
|
var StepperFeedbackMessage = function StepperFeedbackMessage(_ref2) {
|
|
15
15
|
var message = _ref2.message;
|
|
16
|
-
return
|
|
16
|
+
return _jsxs("div", {
|
|
17
17
|
"data-testid": "stepper-feedback-message",
|
|
18
|
-
css: _ref
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
css: _ref,
|
|
19
|
+
children: [_jsx(Spinner, {
|
|
20
|
+
color: "secondary"
|
|
21
|
+
}), _jsx("span", {
|
|
22
|
+
children: message
|
|
23
|
+
})]
|
|
24
|
+
});
|
|
22
25
|
};
|
|
23
26
|
export default StepperFeedbackMessage;
|
package/surface/Surface.d.ts
CHANGED
|
@@ -21,9 +21,10 @@ export declare const SurfaceProvider: ({ children, surface }: {
|
|
|
21
21
|
surface: SurfaceType;
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
}) => React.JSX.Element;
|
|
24
|
-
export declare function MaybeSurfaceProvider({ surface, ...rest }:
|
|
24
|
+
export declare function MaybeSurfaceProvider({ surface, ...rest }: {
|
|
25
25
|
surface?: SurfaceType;
|
|
26
|
-
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
}): React.JSX.Element;
|
|
27
28
|
export declare const useSurfaceContext: (surface?: SurfaceType) => SurfaceContextType;
|
|
28
29
|
export declare const Surface: ({ surface, children, ...rest }: {
|
|
29
30
|
surface: SurfaceType;
|