@dfds-ui/react-components 1.1.14-alpha.4d56eb1c → 1.1.14-alpha.5d09d611
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 +26 -34
- package/accordion/AccordionContent.js +3 -8
- package/accordion/AccordionSmall.js +14 -22
- package/app-bar/AppBar.js +40 -73
- package/app-bar/AppBarContext.js +6 -17
- package/app-bar/AppBarDrawer.js +3 -12
- package/app-bar/AppBarIconButton.js +4 -12
- package/app-bar/AppBarItem.js +17 -43
- package/app-bar/AppBarListItem.js +0 -2
- package/assertions/banner/Banner.js +36 -75
- package/assertions/banner/BannerAction.js +3 -13
- package/assertions/banner/BannerTypography.js +0 -6
- package/assertions/toast/Toast.js +6 -22
- package/assertions/toast/Toaster.js +10 -48
- package/badge/Badge.js +9 -17
- package/button/BadgeIcon.js +1 -1
- package/button/BaseButton.d.ts +1 -1
- package/button/BaseButton.js +0 -2
- package/button/Button.js +14 -38
- package/button/IconButton.js +23 -49
- package/button/LinkButton.js +0 -1
- package/button/button-style.d.ts +7 -7
- package/button/button-style.js +0 -1
- package/button/index.js +2 -1
- package/button-stack/ButtonStack.js +9 -21
- package/card/Card.js +32 -85
- package/card/CardActions.js +1 -9
- package/card/CardContent.js +2 -10
- package/card/CardMedia.js +4 -14
- package/card/CardPriceTag.js +4 -17
- package/card/CardTitle.js +5 -15
- package/chip/Chip.js +16 -40
- package/cjs/accordion/Accordion.js +19 -41
- package/cjs/accordion/AccordionContent.js +3 -15
- package/cjs/accordion/AccordionSmall.js +9 -30
- package/cjs/accordion/index.js +0 -6
- package/cjs/app-bar/AppBar.js +40 -82
- package/cjs/app-bar/AppBarContext.js +6 -25
- package/cjs/app-bar/AppBarDrawer.js +3 -21
- package/cjs/app-bar/AppBarIconButton.js +4 -17
- package/cjs/app-bar/AppBarItem.js +16 -56
- package/cjs/app-bar/AppBarListItem.js +0 -6
- package/cjs/app-bar/index.js +0 -7
- package/cjs/assertions/banner/Banner.js +28 -81
- package/cjs/assertions/banner/BannerAction.js +3 -21
- package/cjs/assertions/banner/BannerTypography.js +0 -12
- package/cjs/assertions/banner/index.js +0 -6
- package/cjs/assertions/index.js +0 -4
- package/cjs/assertions/toast/Toast.js +6 -28
- package/cjs/assertions/toast/Toaster.js +9 -50
- package/cjs/assertions/toast/index.js +0 -5
- package/cjs/badge/Badge.js +9 -24
- package/cjs/badge/index.js +0 -4
- package/cjs/button/BadgeIcon.js +0 -6
- package/cjs/button/BaseButton.d.ts +1 -1
- package/cjs/button/BaseButton.js +0 -8
- package/cjs/button/Button.js +14 -39
- package/cjs/button/IconButton.js +23 -57
- package/cjs/button/LinkButton.js +0 -10
- package/cjs/button/button-style.d.ts +7 -7
- package/cjs/button/button-style.js +0 -4
- package/cjs/button/index.js +0 -10
- package/cjs/button-stack/ButtonStack.js +7 -23
- package/cjs/button-stack/index.js +0 -2
- package/cjs/card/Card.js +34 -91
- package/cjs/card/CardActions.js +1 -15
- package/cjs/card/CardContent.js +2 -15
- package/cjs/card/CardMedia.js +4 -17
- package/cjs/card/CardPriceTag.js +4 -16
- package/cjs/card/CardTitle.js +5 -21
- package/cjs/card/index.js +0 -7
- package/cjs/chip/Chip.js +15 -47
- package/cjs/chip/index.js +0 -4
- package/cjs/common/LockBodyScroll.js +3 -21
- package/cjs/common/arrow.d.ts +1 -1
- package/cjs/common/arrow.js +2 -8
- package/cjs/common/emotionCloneElement.js +0 -6
- package/cjs/common/intent.js +0 -8
- package/cjs/common/miniMoize.js +0 -7
- package/cjs/common/polymorphic.js +2 -8
- package/cjs/common/use-media.js +16 -23
- package/cjs/common/useOnClickOutside.js +1 -10
- package/cjs/common/utils.d.ts +3 -3
- package/cjs/common/utils.js +0 -5
- package/cjs/counter/Counter.js +3 -26
- package/cjs/counter/PluralCounter.js +8 -35
- package/cjs/counter/index.js +0 -3
- package/cjs/data-table/DataTable.js +15 -42
- package/cjs/data-table/index.js +0 -2
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +1 -1
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +0 -3
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +1 -1
- package/cjs/date-range-picker/DatePickerDfdsStyles.js +0 -3
- package/cjs/date-range-picker/DateRangePicker.js +34 -88
- package/cjs/date-range-picker/index.js +0 -2
- package/cjs/divider/Divider.d.ts +1 -1
- package/cjs/divider/Divider.js +5 -18
- package/cjs/divider/index.js +0 -2
- package/cjs/drawer/Drawer.js +10 -24
- package/cjs/drawer/index.js +0 -2
- package/cjs/dropdown-menu/Dropdown.js +17 -58
- package/cjs/dropdown-menu/DropdownContext.js +0 -11
- package/cjs/dropdown-menu/MenuCheckbox.js +1 -15
- package/cjs/dropdown-menu/MenuItem.d.ts +2 -2
- package/cjs/dropdown-menu/MenuItem.js +17 -51
- package/cjs/dropdown-menu/MenuTitle.js +1 -14
- package/cjs/dropdown-menu/index.js +0 -8
- package/cjs/elevation/index.d.ts +1 -1
- package/cjs/elevation/index.js +0 -10
- package/cjs/flexbox/FlexBox.d.ts +1 -1
- package/cjs/flexbox/FlexBox.js +6 -23
- package/cjs/flexbox/index.js +0 -2
- package/cjs/footer/Footer.js +0 -8
- package/cjs/footer/index.js +0 -2
- package/cjs/forms/assistive-text/AssistiveText.js +0 -5
- package/cjs/forms/asterisk/Asterisk.js +0 -8
- package/cjs/forms/checkbox/Checkbox.js +14 -34
- package/cjs/forms/checkbox/ExampleControlComponent.js +5 -23
- package/cjs/forms/checkbox/index.js +0 -2
- package/cjs/forms/email-field/EmailField.js +0 -9
- package/cjs/forms/error-text/ErrorText.js +0 -8
- package/cjs/forms/field/Field.js +0 -9
- package/cjs/forms/index.js +0 -19
- package/cjs/forms/input/Input.js +13 -35
- package/cjs/forms/input/InputComposition.d.ts +1 -1
- package/cjs/forms/input/InputComposition.js +22 -47
- package/cjs/forms/label/Label.js +3 -17
- package/cjs/forms/number-field/NumberField.js +2 -11
- package/cjs/forms/password-field/PasswordField.js +3 -25
- package/cjs/forms/radio/Radio.js +9 -26
- package/cjs/forms/reactselect/ReactSelect.js +33 -64
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +27 -45
- package/cjs/forms/select/Select.js +10 -30
- package/cjs/forms/select-field/SelectField.js +12 -32
- package/cjs/forms/switch/Switch.js +15 -33
- package/cjs/forms/tel-field/TelField.js +1 -9
- package/cjs/forms/text-field/TextField.js +15 -36
- package/cjs/global-styles/GlobalStyles.js +1 -12
- package/cjs/global-styles/ResetStyles.js +0 -7
- package/cjs/global-styles/sanitize.d.ts +1 -1
- package/cjs/global-styles/sanitize.js +0 -3
- package/cjs/grid/Column.js +5 -16
- package/cjs/grid/Container.js +3 -23
- package/cjs/grid/index.js +0 -3
- package/cjs/hero/Hero.js +0 -12
- package/cjs/hero/index.js +0 -2
- package/cjs/hero/stripes.js +0 -6
- package/cjs/ie-banner/IEBanner.js +9 -27
- package/cjs/ie-banner/index.js +0 -2
- package/cjs/index.js +0 -85
- package/cjs/layout/LayoutLegacy.js +0 -7
- package/cjs/lists/FeatureList.js +5 -18
- package/cjs/lists/ListAddon.js +4 -16
- package/cjs/lists/ListDivider.js +4 -16
- package/cjs/lists/ListIcon.js +9 -23
- package/cjs/lists/ListItem.d.ts +1 -1
- package/cjs/lists/ListItem.js +19 -35
- package/cjs/lists/ListText.js +8 -25
- package/cjs/lists/ListTextGroup.js +8 -20
- package/cjs/lists/ListTitle.js +2 -15
- package/cjs/lists/index.js +0 -9
- package/cjs/loader/DfdsLoader.js +0 -13
- package/cjs/loader/Loader.js +0 -10
- package/cjs/loader/index.js +0 -3
- package/cjs/localization/LocaleFlag.js +3 -18
- package/cjs/localization/index.js +0 -4
- package/cjs/localization/locales.js +1 -5
- package/cjs/logo/Logo.js +1 -17
- package/cjs/logo/index.js +0 -2
- package/cjs/media/index.js +0 -2
- package/cjs/menu/Menu.js +13 -34
- package/cjs/menu/index.js +0 -4
- package/cjs/mobile-stepper/MobileStepper.js +7 -23
- package/cjs/mobile-stepper/index.js +0 -2
- package/cjs/nav-bar/NavBar.js +23 -56
- package/cjs/nav-bar/index.js +0 -4
- package/cjs/nav-menu/NavMenuItem.js +0 -10
- package/cjs/nav-menu/index.js +0 -2
- package/cjs/pagination/Pagination.js +3 -22
- package/cjs/pagination/Pagination.styles.d.ts +6 -6
- package/cjs/pagination/Pagination.styles.js +0 -4
- package/cjs/pagination/index.js +0 -2
- package/cjs/popper/Popper.js +17 -35
- package/cjs/popper/index.js +0 -2
- package/cjs/progress-bar/ProgressBar.js +0 -11
- package/cjs/progress-bar/index.js +0 -4
- package/cjs/schedule/ScheduleItem.js +0 -8
- package/cjs/schedule/ScheduleList.js +1 -13
- package/cjs/schedule/index.js +0 -3
- package/cjs/side-sheet/SideSheet.js +32 -66
- package/cjs/side-sheet/SideSheetCloseButton.js +8 -21
- package/cjs/side-sheet/SideSheetContent.js +2 -14
- package/cjs/side-sheet/SideSheetFooter.js +2 -14
- package/cjs/side-sheet/SideSheetHeader.js +5 -19
- package/cjs/side-sheet/SideSheetHeadline.js +0 -7
- package/cjs/side-sheet/index.js +0 -7
- package/cjs/site-layout/SiteLayout.js +16 -39
- package/cjs/site-layout/index.js +0 -4
- package/cjs/skeleton/Skeleton.js +1 -15
- package/cjs/skeleton/index.js +0 -2
- package/cjs/social-media-link-list/SocialMediaLinkList.js +10 -24
- package/cjs/social-media-link-list/index.js +0 -2
- package/cjs/spinner/Spinner.js +9 -25
- package/cjs/spinner/index.js +0 -2
- package/cjs/step/Step.js +21 -44
- package/cjs/step/Step.styles.d.ts +4 -4
- package/cjs/step/Step.styles.js +0 -4
- package/cjs/step/StepButton.js +9 -27
- package/cjs/step/StepContent.js +1 -12
- package/cjs/step/StepContext.js +0 -4
- package/cjs/step/StepLabel.js +2 -12
- package/cjs/step/index.js +0 -2
- package/cjs/stepper/Stepper.js +8 -31
- package/cjs/stepper/StepperContext.js +0 -4
- package/cjs/stepper/index.js +0 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +0 -8
- package/cjs/stepper-feedback-message/index.js +0 -2
- package/cjs/styles/index.js +0 -6
- package/cjs/styles/media.js +1 -7
- package/cjs/styles/rem.js +0 -2
- package/cjs/styles/style-helpers.d.ts +1 -1
- package/cjs/styles/style-helpers.js +0 -5
- package/cjs/styles/theme.js +0 -3
- package/cjs/surface/Surface.js +6 -36
- package/cjs/surface/index.js +0 -2
- package/cjs/tab/Tab.js +7 -25
- package/cjs/tab/TabPanel.js +1 -10
- package/cjs/tab/Tabs.js +22 -60
- package/cjs/tab/TabsContext.js +0 -11
- package/cjs/tab/index.js +0 -6
- package/cjs/table/Table.js +5 -20
- package/cjs/table/TableBody.js +1 -11
- package/cjs/table/TableDataCell.js +3 -17
- package/cjs/table/TableHead.d.ts +1 -1
- package/cjs/table/TableHead.js +3 -17
- package/cjs/table/TableHeaderCell.d.ts +1 -1
- package/cjs/table/TableHeaderCell.js +3 -18
- package/cjs/table/TableRow.js +5 -19
- package/cjs/table/index.js +0 -12
- package/cjs/test/Test.js +0 -5
- package/cjs/tooltip/Tooltip.js +8 -29
- package/cjs/tooltip/index.js +0 -3
- package/cjs/typography/Headlines.d.ts +4 -4
- package/cjs/typography/Headlines.js +8 -22
- package/cjs/typography/Text.js +0 -4
- package/cjs/typography/index.js +0 -4
- package/common/LockBodyScroll.js +9 -19
- package/common/arrow.d.ts +1 -1
- package/common/arrow.js +2 -8
- package/common/emotionCloneElement.js +2 -6
- package/common/intent.js +0 -6
- package/common/miniMoize.js +0 -6
- package/common/polymorphic.js +5 -6
- package/common/use-media.js +17 -22
- package/common/useOnClickOutside.js +0 -7
- package/common/utils.d.ts +3 -3
- package/common/utils.js +0 -5
- package/counter/Counter.js +3 -24
- package/counter/PluralCounter.js +8 -27
- package/data-table/DataTable.js +15 -37
- package/date-range-picker/DatePickerDefaultStyles.d.ts +1 -1
- package/date-range-picker/DatePickerDefaultStyles.js +2 -3
- package/date-range-picker/DatePickerDfdsStyles.d.ts +1 -1
- package/date-range-picker/DateRangePicker.js +37 -78
- package/divider/Divider.d.ts +1 -1
- package/divider/Divider.js +5 -11
- package/drawer/Drawer.js +13 -21
- package/dropdown-menu/Dropdown.js +17 -46
- package/dropdown-menu/DropdownContext.js +1 -5
- package/dropdown-menu/MenuCheckbox.js +10 -16
- package/dropdown-menu/MenuItem.d.ts +2 -2
- package/dropdown-menu/MenuItem.js +17 -41
- package/dropdown-menu/MenuTitle.js +4 -11
- package/elevation/index.d.ts +1 -1
- package/elevation/index.js +2 -9
- package/flexbox/FlexBox.d.ts +1 -1
- package/flexbox/FlexBox.js +6 -18
- package/footer/Footer.js +2 -7
- package/forms/assistive-text/AssistiveText.js +0 -2
- package/forms/asterisk/Asterisk.js +0 -3
- package/forms/checkbox/Checkbox.js +14 -27
- package/forms/checkbox/ExampleControlComponent.js +5 -19
- package/forms/email-field/EmailField.js +2 -5
- package/forms/error-text/ErrorText.js +0 -6
- package/forms/field/Field.js +3 -10
- package/forms/input/Input.js +13 -31
- package/forms/input/InputComposition.d.ts +1 -1
- package/forms/input/InputComposition.js +24 -43
- package/forms/label/Label.js +3 -11
- package/forms/number-field/NumberField.js +2 -5
- package/forms/password-field/PasswordField.js +3 -17
- package/forms/radio/Radio.js +9 -19
- package/forms/reactselect/ReactSelect.js +33 -51
- package/forms/searchable-select/AsyncSearchableSelect.js +27 -36
- package/forms/select/Select.js +10 -24
- package/forms/select-field/SelectField.js +12 -21
- package/forms/switch/Switch.js +15 -30
- package/forms/tel-field/TelField.js +2 -5
- package/forms/text-field/TextField.js +15 -23
- package/global-styles/GlobalStyles.js +11 -12
- package/global-styles/ResetStyles.js +1 -4
- package/global-styles/sanitize.d.ts +1 -1
- package/global-styles/sanitize.js +0 -1
- package/grid/Column.js +5 -12
- package/grid/Container.js +5 -16
- package/hero/Hero.js +0 -16
- package/hero/stripes.js +0 -2
- package/ie-banner/IEBanner.js +12 -26
- package/layout/LayoutLegacy.js +8 -10
- package/lists/FeatureList.js +5 -12
- package/lists/ListAddon.js +4 -11
- package/lists/ListDivider.js +4 -11
- package/lists/ListIcon.js +10 -19
- package/lists/ListItem.d.ts +1 -1
- package/lists/ListItem.js +24 -31
- package/lists/ListText.js +10 -23
- package/lists/ListTextGroup.js +8 -15
- package/lists/ListTitle.js +2 -11
- package/loader/DfdsLoader.js +3 -9
- package/loader/Loader.js +0 -10
- package/localization/LocaleFlag.js +3 -8
- package/localization/locales.js +1 -4
- package/logo/Logo.js +1 -9
- package/menu/Menu.js +13 -26
- package/mobile-stepper/MobileStepper.js +7 -24
- package/nav-bar/NavBar.js +23 -46
- package/nav-menu/NavMenuItem.js +6 -12
- package/package.json +13 -13
- package/pagination/Pagination.js +14 -26
- package/pagination/Pagination.styles.d.ts +6 -6
- package/pagination/Pagination.styles.js +0 -3
- package/popper/Popper.js +17 -28
- package/progress-bar/ProgressBar.js +6 -13
- package/schedule/ScheduleItem.js +2 -4
- package/schedule/ScheduleList.js +1 -8
- package/side-sheet/SideSheet.js +38 -62
- package/side-sheet/SideSheetCloseButton.js +8 -13
- package/side-sheet/SideSheetContent.js +2 -7
- package/side-sheet/SideSheetFooter.js +2 -7
- package/side-sheet/SideSheetHeader.js +5 -10
- package/side-sheet/SideSheetHeadline.js +1 -1
- package/site-layout/SiteLayout.js +16 -31
- package/skeleton/Skeleton.js +1 -12
- package/social-media-link-list/SocialMediaLinkList.js +10 -15
- package/spinner/Spinner.js +9 -22
- package/step/Step.js +21 -29
- package/step/Step.styles.d.ts +4 -4
- package/step/Step.styles.js +2 -2
- package/step/StepButton.js +11 -22
- package/step/StepContent.js +1 -8
- package/step/StepLabel.js +3 -9
- package/stepper/Stepper.js +8 -19
- package/stepper-feedback-message/StepperFeedbackMessage.js +0 -4
- package/styles/media.js +1 -5
- package/styles/style-helpers.d.ts +1 -1
- package/styles/style-helpers.js +2 -3
- package/surface/Surface.js +7 -21
- package/tab/Tab.js +7 -18
- package/tab/TabPanel.js +2 -7
- package/tab/Tabs.js +24 -52
- package/tab/TabsContext.js +1 -3
- package/table/Table.js +5 -12
- package/table/TableBody.js +1 -6
- package/table/TableDataCell.js +3 -10
- package/table/TableHead.d.ts +1 -1
- package/table/TableHead.js +3 -10
- package/table/TableHeaderCell.d.ts +1 -1
- package/table/TableHeaderCell.js +3 -10
- package/table/TableRow.js +5 -13
- package/tooltip/Tooltip.js +19 -29
- package/typography/Headlines.d.ts +4 -4
- package/typography/Headlines.js +8 -13
- package/typography/Text.js +0 -2
package/cjs/index.js
CHANGED
|
@@ -40,17 +40,11 @@ Object.defineProperty(exports, "media", {
|
|
|
40
40
|
return _media.default;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
|
|
44
43
|
var _elevation = _interopRequireDefault(require("./elevation"));
|
|
45
|
-
|
|
46
44
|
var _media = _interopRequireDefault(require("./media"));
|
|
47
|
-
|
|
48
45
|
var _ResetStyles = require("./global-styles/ResetStyles");
|
|
49
|
-
|
|
50
46
|
var _GlobalStyles = require("./global-styles/GlobalStyles");
|
|
51
|
-
|
|
52
47
|
var _accordion = require("./accordion");
|
|
53
|
-
|
|
54
48
|
Object.keys(_accordion).forEach(function (key) {
|
|
55
49
|
if (key === "default" || key === "__esModule") return;
|
|
56
50
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -62,9 +56,7 @@ Object.keys(_accordion).forEach(function (key) {
|
|
|
62
56
|
}
|
|
63
57
|
});
|
|
64
58
|
});
|
|
65
|
-
|
|
66
59
|
var _appBar = require("./app-bar");
|
|
67
|
-
|
|
68
60
|
Object.keys(_appBar).forEach(function (key) {
|
|
69
61
|
if (key === "default" || key === "__esModule") return;
|
|
70
62
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -76,9 +68,7 @@ Object.keys(_appBar).forEach(function (key) {
|
|
|
76
68
|
}
|
|
77
69
|
});
|
|
78
70
|
});
|
|
79
|
-
|
|
80
71
|
var _assertions = require("./assertions");
|
|
81
|
-
|
|
82
72
|
Object.keys(_assertions).forEach(function (key) {
|
|
83
73
|
if (key === "default" || key === "__esModule") return;
|
|
84
74
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -90,9 +80,7 @@ Object.keys(_assertions).forEach(function (key) {
|
|
|
90
80
|
}
|
|
91
81
|
});
|
|
92
82
|
});
|
|
93
|
-
|
|
94
83
|
var _badge = require("./badge");
|
|
95
|
-
|
|
96
84
|
Object.keys(_badge).forEach(function (key) {
|
|
97
85
|
if (key === "default" || key === "__esModule") return;
|
|
98
86
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -104,9 +92,7 @@ Object.keys(_badge).forEach(function (key) {
|
|
|
104
92
|
}
|
|
105
93
|
});
|
|
106
94
|
});
|
|
107
|
-
|
|
108
95
|
var _buttonStack = require("./button-stack");
|
|
109
|
-
|
|
110
96
|
Object.keys(_buttonStack).forEach(function (key) {
|
|
111
97
|
if (key === "default" || key === "__esModule") return;
|
|
112
98
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -118,9 +104,7 @@ Object.keys(_buttonStack).forEach(function (key) {
|
|
|
118
104
|
}
|
|
119
105
|
});
|
|
120
106
|
});
|
|
121
|
-
|
|
122
107
|
var _button = require("./button");
|
|
123
|
-
|
|
124
108
|
Object.keys(_button).forEach(function (key) {
|
|
125
109
|
if (key === "default" || key === "__esModule") return;
|
|
126
110
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -132,9 +116,7 @@ Object.keys(_button).forEach(function (key) {
|
|
|
132
116
|
}
|
|
133
117
|
});
|
|
134
118
|
});
|
|
135
|
-
|
|
136
119
|
var _card = require("./card");
|
|
137
|
-
|
|
138
120
|
Object.keys(_card).forEach(function (key) {
|
|
139
121
|
if (key === "default" || key === "__esModule") return;
|
|
140
122
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -146,9 +128,7 @@ Object.keys(_card).forEach(function (key) {
|
|
|
146
128
|
}
|
|
147
129
|
});
|
|
148
130
|
});
|
|
149
|
-
|
|
150
131
|
var _chip = require("./chip");
|
|
151
|
-
|
|
152
132
|
Object.keys(_chip).forEach(function (key) {
|
|
153
133
|
if (key === "default" || key === "__esModule") return;
|
|
154
134
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -160,9 +140,7 @@ Object.keys(_chip).forEach(function (key) {
|
|
|
160
140
|
}
|
|
161
141
|
});
|
|
162
142
|
});
|
|
163
|
-
|
|
164
143
|
var _polymorphic = require("./common/polymorphic");
|
|
165
|
-
|
|
166
144
|
Object.keys(_polymorphic).forEach(function (key) {
|
|
167
145
|
if (key === "default" || key === "__esModule") return;
|
|
168
146
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -174,9 +152,7 @@ Object.keys(_polymorphic).forEach(function (key) {
|
|
|
174
152
|
}
|
|
175
153
|
});
|
|
176
154
|
});
|
|
177
|
-
|
|
178
155
|
var _counter = require("./counter");
|
|
179
|
-
|
|
180
156
|
Object.keys(_counter).forEach(function (key) {
|
|
181
157
|
if (key === "default" || key === "__esModule") return;
|
|
182
158
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -188,9 +164,7 @@ Object.keys(_counter).forEach(function (key) {
|
|
|
188
164
|
}
|
|
189
165
|
});
|
|
190
166
|
});
|
|
191
|
-
|
|
192
167
|
var _dataTable = require("./data-table");
|
|
193
|
-
|
|
194
168
|
Object.keys(_dataTable).forEach(function (key) {
|
|
195
169
|
if (key === "default" || key === "__esModule") return;
|
|
196
170
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -202,9 +176,7 @@ Object.keys(_dataTable).forEach(function (key) {
|
|
|
202
176
|
}
|
|
203
177
|
});
|
|
204
178
|
});
|
|
205
|
-
|
|
206
179
|
var _dateRangePicker = require("./date-range-picker");
|
|
207
|
-
|
|
208
180
|
Object.keys(_dateRangePicker).forEach(function (key) {
|
|
209
181
|
if (key === "default" || key === "__esModule") return;
|
|
210
182
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -216,9 +188,7 @@ Object.keys(_dateRangePicker).forEach(function (key) {
|
|
|
216
188
|
}
|
|
217
189
|
});
|
|
218
190
|
});
|
|
219
|
-
|
|
220
191
|
var _drawer = require("./drawer");
|
|
221
|
-
|
|
222
192
|
Object.keys(_drawer).forEach(function (key) {
|
|
223
193
|
if (key === "default" || key === "__esModule") return;
|
|
224
194
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -230,9 +200,7 @@ Object.keys(_drawer).forEach(function (key) {
|
|
|
230
200
|
}
|
|
231
201
|
});
|
|
232
202
|
});
|
|
233
|
-
|
|
234
203
|
var _footer = require("./footer");
|
|
235
|
-
|
|
236
204
|
Object.keys(_footer).forEach(function (key) {
|
|
237
205
|
if (key === "default" || key === "__esModule") return;
|
|
238
206
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -244,9 +212,7 @@ Object.keys(_footer).forEach(function (key) {
|
|
|
244
212
|
}
|
|
245
213
|
});
|
|
246
214
|
});
|
|
247
|
-
|
|
248
215
|
var _forms = require("./forms");
|
|
249
|
-
|
|
250
216
|
Object.keys(_forms).forEach(function (key) {
|
|
251
217
|
if (key === "default" || key === "__esModule") return;
|
|
252
218
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -258,9 +224,7 @@ Object.keys(_forms).forEach(function (key) {
|
|
|
258
224
|
}
|
|
259
225
|
});
|
|
260
226
|
});
|
|
261
|
-
|
|
262
227
|
var _grid = require("./grid");
|
|
263
|
-
|
|
264
228
|
Object.keys(_grid).forEach(function (key) {
|
|
265
229
|
if (key === "default" || key === "__esModule") return;
|
|
266
230
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -272,9 +236,7 @@ Object.keys(_grid).forEach(function (key) {
|
|
|
272
236
|
}
|
|
273
237
|
});
|
|
274
238
|
});
|
|
275
|
-
|
|
276
239
|
var _hero = require("./hero");
|
|
277
|
-
|
|
278
240
|
Object.keys(_hero).forEach(function (key) {
|
|
279
241
|
if (key === "default" || key === "__esModule") return;
|
|
280
242
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -286,9 +248,7 @@ Object.keys(_hero).forEach(function (key) {
|
|
|
286
248
|
}
|
|
287
249
|
});
|
|
288
250
|
});
|
|
289
|
-
|
|
290
251
|
var _ieBanner = require("./ie-banner");
|
|
291
|
-
|
|
292
252
|
Object.keys(_ieBanner).forEach(function (key) {
|
|
293
253
|
if (key === "default" || key === "__esModule") return;
|
|
294
254
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -300,9 +260,7 @@ Object.keys(_ieBanner).forEach(function (key) {
|
|
|
300
260
|
}
|
|
301
261
|
});
|
|
302
262
|
});
|
|
303
|
-
|
|
304
263
|
var _lists = require("./lists");
|
|
305
|
-
|
|
306
264
|
Object.keys(_lists).forEach(function (key) {
|
|
307
265
|
if (key === "default" || key === "__esModule") return;
|
|
308
266
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -314,9 +272,7 @@ Object.keys(_lists).forEach(function (key) {
|
|
|
314
272
|
}
|
|
315
273
|
});
|
|
316
274
|
});
|
|
317
|
-
|
|
318
275
|
var _loader = require("./loader");
|
|
319
|
-
|
|
320
276
|
Object.keys(_loader).forEach(function (key) {
|
|
321
277
|
if (key === "default" || key === "__esModule") return;
|
|
322
278
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -328,9 +284,7 @@ Object.keys(_loader).forEach(function (key) {
|
|
|
328
284
|
}
|
|
329
285
|
});
|
|
330
286
|
});
|
|
331
|
-
|
|
332
287
|
var _localization = require("./localization");
|
|
333
|
-
|
|
334
288
|
Object.keys(_localization).forEach(function (key) {
|
|
335
289
|
if (key === "default" || key === "__esModule") return;
|
|
336
290
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -342,9 +296,7 @@ Object.keys(_localization).forEach(function (key) {
|
|
|
342
296
|
}
|
|
343
297
|
});
|
|
344
298
|
});
|
|
345
|
-
|
|
346
299
|
var _menu = require("./menu");
|
|
347
|
-
|
|
348
300
|
Object.keys(_menu).forEach(function (key) {
|
|
349
301
|
if (key === "default" || key === "__esModule") return;
|
|
350
302
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -356,9 +308,7 @@ Object.keys(_menu).forEach(function (key) {
|
|
|
356
308
|
}
|
|
357
309
|
});
|
|
358
310
|
});
|
|
359
|
-
|
|
360
311
|
var _navBar = require("./nav-bar");
|
|
361
|
-
|
|
362
312
|
Object.keys(_navBar).forEach(function (key) {
|
|
363
313
|
if (key === "default" || key === "__esModule") return;
|
|
364
314
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -370,9 +320,7 @@ Object.keys(_navBar).forEach(function (key) {
|
|
|
370
320
|
}
|
|
371
321
|
});
|
|
372
322
|
});
|
|
373
|
-
|
|
374
323
|
var _navMenu = require("./nav-menu");
|
|
375
|
-
|
|
376
324
|
Object.keys(_navMenu).forEach(function (key) {
|
|
377
325
|
if (key === "default" || key === "__esModule") return;
|
|
378
326
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -384,9 +332,7 @@ Object.keys(_navMenu).forEach(function (key) {
|
|
|
384
332
|
}
|
|
385
333
|
});
|
|
386
334
|
});
|
|
387
|
-
|
|
388
335
|
var _pagination = require("./pagination");
|
|
389
|
-
|
|
390
336
|
Object.keys(_pagination).forEach(function (key) {
|
|
391
337
|
if (key === "default" || key === "__esModule") return;
|
|
392
338
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -398,9 +344,7 @@ Object.keys(_pagination).forEach(function (key) {
|
|
|
398
344
|
}
|
|
399
345
|
});
|
|
400
346
|
});
|
|
401
|
-
|
|
402
347
|
var _popper = require("./popper");
|
|
403
|
-
|
|
404
348
|
Object.keys(_popper).forEach(function (key) {
|
|
405
349
|
if (key === "default" || key === "__esModule") return;
|
|
406
350
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -412,9 +356,7 @@ Object.keys(_popper).forEach(function (key) {
|
|
|
412
356
|
}
|
|
413
357
|
});
|
|
414
358
|
});
|
|
415
|
-
|
|
416
359
|
var _progressBar = require("./progress-bar");
|
|
417
|
-
|
|
418
360
|
Object.keys(_progressBar).forEach(function (key) {
|
|
419
361
|
if (key === "default" || key === "__esModule") return;
|
|
420
362
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -426,9 +368,7 @@ Object.keys(_progressBar).forEach(function (key) {
|
|
|
426
368
|
}
|
|
427
369
|
});
|
|
428
370
|
});
|
|
429
|
-
|
|
430
371
|
var _sideSheet = require("./side-sheet");
|
|
431
|
-
|
|
432
372
|
Object.keys(_sideSheet).forEach(function (key) {
|
|
433
373
|
if (key === "default" || key === "__esModule") return;
|
|
434
374
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -440,9 +380,7 @@ Object.keys(_sideSheet).forEach(function (key) {
|
|
|
440
380
|
}
|
|
441
381
|
});
|
|
442
382
|
});
|
|
443
|
-
|
|
444
383
|
var _schedule = require("./schedule");
|
|
445
|
-
|
|
446
384
|
Object.keys(_schedule).forEach(function (key) {
|
|
447
385
|
if (key === "default" || key === "__esModule") return;
|
|
448
386
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -454,9 +392,7 @@ Object.keys(_schedule).forEach(function (key) {
|
|
|
454
392
|
}
|
|
455
393
|
});
|
|
456
394
|
});
|
|
457
|
-
|
|
458
395
|
var _siteLayout = require("./site-layout");
|
|
459
|
-
|
|
460
396
|
Object.keys(_siteLayout).forEach(function (key) {
|
|
461
397
|
if (key === "default" || key === "__esModule") return;
|
|
462
398
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -468,9 +404,7 @@ Object.keys(_siteLayout).forEach(function (key) {
|
|
|
468
404
|
}
|
|
469
405
|
});
|
|
470
406
|
});
|
|
471
|
-
|
|
472
407
|
var _socialMediaLinkList = require("./social-media-link-list");
|
|
473
|
-
|
|
474
408
|
Object.keys(_socialMediaLinkList).forEach(function (key) {
|
|
475
409
|
if (key === "default" || key === "__esModule") return;
|
|
476
410
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -482,9 +416,7 @@ Object.keys(_socialMediaLinkList).forEach(function (key) {
|
|
|
482
416
|
}
|
|
483
417
|
});
|
|
484
418
|
});
|
|
485
|
-
|
|
486
419
|
var _spinner = require("./spinner");
|
|
487
|
-
|
|
488
420
|
Object.keys(_spinner).forEach(function (key) {
|
|
489
421
|
if (key === "default" || key === "__esModule") return;
|
|
490
422
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -496,9 +428,7 @@ Object.keys(_spinner).forEach(function (key) {
|
|
|
496
428
|
}
|
|
497
429
|
});
|
|
498
430
|
});
|
|
499
|
-
|
|
500
431
|
var _styles = require("./styles");
|
|
501
|
-
|
|
502
432
|
Object.keys(_styles).forEach(function (key) {
|
|
503
433
|
if (key === "default" || key === "__esModule") return;
|
|
504
434
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -510,9 +440,7 @@ Object.keys(_styles).forEach(function (key) {
|
|
|
510
440
|
}
|
|
511
441
|
});
|
|
512
442
|
});
|
|
513
|
-
|
|
514
443
|
var _tab = require("./tab");
|
|
515
|
-
|
|
516
444
|
Object.keys(_tab).forEach(function (key) {
|
|
517
445
|
if (key === "default" || key === "__esModule") return;
|
|
518
446
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -524,9 +452,7 @@ Object.keys(_tab).forEach(function (key) {
|
|
|
524
452
|
}
|
|
525
453
|
});
|
|
526
454
|
});
|
|
527
|
-
|
|
528
455
|
var _table = require("./table");
|
|
529
|
-
|
|
530
456
|
Object.keys(_table).forEach(function (key) {
|
|
531
457
|
if (key === "default" || key === "__esModule") return;
|
|
532
458
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -538,9 +464,7 @@ Object.keys(_table).forEach(function (key) {
|
|
|
538
464
|
}
|
|
539
465
|
});
|
|
540
466
|
});
|
|
541
|
-
|
|
542
467
|
var _typography = require("./typography");
|
|
543
|
-
|
|
544
468
|
Object.keys(_typography).forEach(function (key) {
|
|
545
469
|
if (key === "default" || key === "__esModule") return;
|
|
546
470
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -552,9 +476,7 @@ Object.keys(_typography).forEach(function (key) {
|
|
|
552
476
|
}
|
|
553
477
|
});
|
|
554
478
|
});
|
|
555
|
-
|
|
556
479
|
var _LockBodyScroll = require("./common/LockBodyScroll");
|
|
557
|
-
|
|
558
480
|
Object.keys(_LockBodyScroll).forEach(function (key) {
|
|
559
481
|
if (key === "default" || key === "__esModule") return;
|
|
560
482
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -566,9 +488,7 @@ Object.keys(_LockBodyScroll).forEach(function (key) {
|
|
|
566
488
|
}
|
|
567
489
|
});
|
|
568
490
|
});
|
|
569
|
-
|
|
570
491
|
var _dropdownMenu = require("./dropdown-menu");
|
|
571
|
-
|
|
572
492
|
Object.keys(_dropdownMenu).forEach(function (key) {
|
|
573
493
|
if (key === "default" || key === "__esModule") return;
|
|
574
494
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -580,9 +500,7 @@ Object.keys(_dropdownMenu).forEach(function (key) {
|
|
|
580
500
|
}
|
|
581
501
|
});
|
|
582
502
|
});
|
|
583
|
-
|
|
584
503
|
var _skeleton = require("./skeleton");
|
|
585
|
-
|
|
586
504
|
Object.keys(_skeleton).forEach(function (key) {
|
|
587
505
|
if (key === "default" || key === "__esModule") return;
|
|
588
506
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -594,9 +512,7 @@ Object.keys(_skeleton).forEach(function (key) {
|
|
|
594
512
|
}
|
|
595
513
|
});
|
|
596
514
|
});
|
|
597
|
-
|
|
598
515
|
var _tooltip = require("./tooltip");
|
|
599
|
-
|
|
600
516
|
Object.keys(_tooltip).forEach(function (key) {
|
|
601
517
|
if (key === "default" || key === "__esModule") return;
|
|
602
518
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -608,5 +524,4 @@ Object.keys(_tooltip).forEach(function (key) {
|
|
|
608
524
|
}
|
|
609
525
|
});
|
|
610
526
|
});
|
|
611
|
-
|
|
612
527
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Layout = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
const regular = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Regular.woff';
|
|
15
11
|
const regular2 = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Regular.woff2';
|
|
16
12
|
const italic = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Italic.woff';
|
|
@@ -41,7 +37,6 @@ const DFDS_FONTS = [{
|
|
|
41
37
|
woff2: light2,
|
|
42
38
|
fontWeight: 300
|
|
43
39
|
}];
|
|
44
|
-
|
|
45
40
|
function fontFace({
|
|
46
41
|
fontFamily,
|
|
47
42
|
woff,
|
|
@@ -60,12 +55,10 @@ function fontFace({
|
|
|
60
55
|
font-display: ${fontDisplay};
|
|
61
56
|
}`;
|
|
62
57
|
}
|
|
63
|
-
|
|
64
58
|
const Layout = () => {
|
|
65
59
|
const sty = /*#__PURE__*/(0, _react2.css)(DFDS_FONTS.reduce((prev, cur) => prev += fontFace(cur), ''), " *{font-family:DFDS;}" + (process.env.NODE_ENV === "production" ? "" : ";label:sty;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9sYXlvdXQvTGF5b3V0TGVnYWN5LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpRGlCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9sYXlvdXQvTGF5b3V0TGVnYWN5LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcblxuY29uc3QgcmVndWxhciA9ICdodHRwczovL3VucGtnLmNvbS9AZGZkcy11aS9mb250c0AwLjAuNDIvZm9udHMvREZEUy1SZWd1bGFyLndvZmYnXG5jb25zdCByZWd1bGFyMiA9ICdodHRwczovL3VucGtnLmNvbS9AZGZkcy11aS9mb250c0AwLjAuNDIvZm9udHMvREZEUy1SZWd1bGFyLndvZmYyJ1xuY29uc3QgaXRhbGljID0gJ2h0dHBzOi8vdW5wa2cuY29tL0BkZmRzLXVpL2ZvbnRzQDAuMC40Mi9mb250cy9ERkRTLUl0YWxpYy53b2ZmJ1xuY29uc3QgaXRhbGljMiA9ICdodHRwczovL3VucGtnLmNvbS9AZGZkcy11aS9mb250c0AwLjAuNDIvZm9udHMvREZEUy1JdGFsaWMud29mZjInXG5jb25zdCBib2xkID0gJ2h0dHBzOi8vdW5wa2cuY29tL0BkZmRzLXVpL2ZvbnRzQDAuMC40Mi9mb250cy9ERkRTLUJvbGQud29mZidcbmNvbnN0IGJvbGQyID0gJ2h0dHBzOi8vdW5wa2cuY29tL0BkZmRzLXVpL2ZvbnRzQDAuMC40Mi9mb250cy9ERkRTLUJvbGQud29mZjInXG5jb25zdCBsaWdodCA9ICdodHRwczovL3VucGtnLmNvbS9AZGZkcy11aS9mb250c0AwLjAuNDIvZm9udHMvREZEUy1MaWdodC53b2ZmJ1xuY29uc3QgbGlnaHQyID0gJ2h0dHBzOi8vdW5wa2cuY29tL0BkZmRzLXVpL2ZvbnRzQDAuMC40Mi9mb250cy9ERkRTLUxpZ2h0LndvZmYyJ1xuXG5pbXBvcnQgeyBHbG9iYWwsIGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuXG50eXBlIEZvbnREZWZpbml0aW9uID0ge1xuICBmb250RmFtaWx5OiBzdHJpbmdcbiAgd29mZjogc3RyaW5nXG4gIHdvZmYyOiBzdHJpbmdcbiAgZm9udFdlaWdodD86IDEwMCB8IDIwMCB8IDMwMCB8IDQwMCB8IDUwMCB8IDYwMCB8IDcwMCB8IDgwMFxuICBmb250U3R5bGU/OiAnbm9ybWFsJyB8ICdpdGFsaWMnIHwgJ29ibGlxdWUnXG4gIGZvbnREaXNwbGF5PzogJ2F1dG8nIHwgJ2Jsb2NrJyB8ICdzd2FwJyB8ICdmYWxsYmFjaycgfCAnb3B0aW9uYWwnXG59XG5cbmNvbnN0IERGRFNfRk9OVFM6IEZvbnREZWZpbml0aW9uW10gPSBbXG4gIHsgZm9udEZhbWlseTogJ0RGRFMnLCB3b2ZmOiByZWd1bGFyLCB3b2ZmMjogcmVndWxhcjIsIGZvbnRXZWlnaHQ6IDQwMCB9LFxuICB7IGZvbnRGYW1pbHk6ICdERkRTJywgd29mZjogaXRhbGljLCB3b2ZmMjogaXRhbGljMiwgZm9udFdlaWdodDogNDAwLCBmb250U3R5bGU6ICdpdGFsaWMnIH0sXG4gIHsgZm9udEZhbWlseTogJ0RGRFMnLCB3b2ZmOiBib2xkLCB3b2ZmMjogYm9sZDIsIGZvbnRXZWlnaHQ6IDcwMCB9LFxuICB7IGZvbnRGYW1pbHk6ICdERkRTJywgd29mZjogbGlnaHQsIHdvZmYyOiBsaWdodDIsIGZvbnRXZWlnaHQ6IDMwMCB9LFxuXVxuXG5mdW5jdGlvbiBmb250RmFjZSh7XG4gIGZvbnRGYW1pbHksXG4gIHdvZmYsXG4gIHdvZmYyLFxuICBmb250V2VpZ2h0ID0gNDAwLFxuICBmb250U3R5bGUgPSAnbm9ybWFsJyxcbiAgZm9udERpc3BsYXkgPSAnZmFsbGJhY2snLFxufTogRm9udERlZmluaXRpb24pIHtcbiAgcmV0dXJuIGBcbiAgQGZvbnQtZmFjZSB7XG4gICAgZm9udC1mYW1pbHk6ICR7Zm9udEZhbWlseX07XG4gICAgc3JjOnVybCgke3dvZmYyfSkgZm9ybWF0KCd3b2ZmMicpLFxuICAgICAgdXJsKCR7d29mZn0pIGZvcm1hdCgnd29mZicpO1xuICAgIGZvbnQtd2VpZ2h0OiAke2ZvbnRXZWlnaHR9O1xuICAgIGZvbnQtc3R5bGU6ICR7Zm9udFN0eWxlfTtcbiAgICBmb250LWRpc3BsYXk6ICR7Zm9udERpc3BsYXl9O1xuICB9YFxufVxuXG5leHBvcnQgY29uc3QgTGF5b3V0ID0gKCkgPT4ge1xuICBjb25zdCBzdHkgPSBjc3NgXG4gICAgJHtERkRTX0ZPTlRTLnJlZHVjZSgocHJldiwgY3VyKSA9PiAocHJldiArPSBmb250RmFjZShjdXIpKSwgJycpfVxuXG4gICAgKiB7XG4gICAgICBmb250LWZhbWlseTogREZEUztcbiAgICB9XG4gIGBcbiAgcmV0dXJuIDxHbG9iYWwgc3R5bGVzPXtzdHl9IC8+XG59XG4iXX0= */");
|
|
66
60
|
return (0, _react2.jsx)(_react2.Global, {
|
|
67
61
|
styles: sty
|
|
68
62
|
});
|
|
69
63
|
};
|
|
70
|
-
|
|
71
64
|
exports.Layout = Layout;
|
package/cjs/lists/FeatureList.js
CHANGED
|
@@ -4,25 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.ListItem = void 0;
|
|
7
|
-
|
|
8
7
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _FlexBox = _interopRequireDefault(require("./../flexbox/FlexBox"));
|
|
13
|
-
|
|
14
10
|
var _react2 = require("@emotion/react");
|
|
15
|
-
|
|
16
11
|
const _excluded = ["icon", "items", "iconColor", "textTag"];
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
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); }
|
|
21
|
-
|
|
22
14
|
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; }
|
|
23
|
-
|
|
24
15
|
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; }
|
|
25
|
-
|
|
26
16
|
const ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.NODE_ENV === "production" ? {
|
|
27
17
|
target: "e1hxsk0v0"
|
|
28
18
|
} : {
|
|
@@ -32,15 +22,13 @@ const ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.N
|
|
|
32
22
|
iconColor
|
|
33
23
|
}) => iconColor && `color: ${iconColor}`, ";}p{margin:0 0 1em;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9GZWF0dXJlTGlzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYzhFIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9saXN0cy9GZWF0dXJlTGlzdC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IEZsZXhCb3gsIHsgRmxleEJveFByb3BzIH0gZnJvbSAnLi8uLi9mbGV4Ym94L0ZsZXhCb3gnXG5cbnR5cGUgRmVhdHVyZUxpc3RQcm9wcyA9IHtcbiAgaWNvbjogYW55XG4gIGl0ZW1zOiBzdHJpbmdbXVxuICBpY29uQ29sb3I/OiBzdHJpbmdcbiAgdGV4dFRhZz86IFJlYWN0LkVsZW1lbnRUeXBlXG4gIGFzPzogUmVhY3QuRWxlbWVudFR5cGVcbn1cblxudHlwZSBGZWF0dXJlTGlzdENvbXBvbmVudCA9IEZ1bmN0aW9uQ29tcG9uZW50PEZlYXR1cmVMaXN0UHJvcHM+XG5cbmV4cG9ydCBjb25zdCBMaXN0SXRlbSA9IHN0eWxlZChGbGV4Qm94KTxGbGV4Qm94UHJvcHMgJiB7IGljb25Db2xvcj86IHN0cmluZyB9PmBcbiAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XG4gIHN2ZyB7XG4gICAgbWFyZ2luLXJpZ2h0OiAyMHB4O1xuICAgICR7KHsgaWNvbkNvbG9yIH0pID0+IGljb25Db2xvciAmJiBgY29sb3I6ICR7aWNvbkNvbG9yfWB9XG4gIH1cbiAgcCB7XG4gICAgbWFyZ2luOiAwIDAgMWVtO1xuICB9XG5gXG5cbmNvbnN0IEZlYXR1cmVMaXN0OiBGZWF0dXJlTGlzdENvbXBvbmVudCA9ICh7IGljb24sIGl0ZW1zLCBpY29uQ29sb3IsIHRleHRUYWcgPSAncCcsIC4uLnJlc3QgfSkgPT4ge1xuICBjb25zdCBsaXN0ID0gaXRlbXMubWFwKChpdGVtOiBzdHJpbmcsIGkpID0+IHtcbiAgICBjb25zdCBUZXh0VGFnID0gdGV4dFRhZ1xuICAgIHJldHVybiAoXG4gICAgICA8TGlzdEl0ZW0ga2V5PXtpfSBpY29uQ29sb3I9e2ljb25Db2xvcn0+XG4gICAgICAgIHtpY29ufVxuICAgICAgICA8VGV4dFRhZz57aXRlbX08L1RleHRUYWc+XG4gICAgICA8L0xpc3RJdGVtPlxuICAgIClcbiAgfSlcbiAgcmV0dXJuIChcbiAgICA8PlxuICAgICAgPEZsZXhCb3ggey4uLnJlc3R9IGRpcmVjdGlvbkNvbHVtbj5cbiAgICAgICAge2xpc3R9XG4gICAgICA8L0ZsZXhCb3g+XG4gICAgPC8+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgRmVhdHVyZUxpc3RcbiJdfQ== */"));
|
|
34
24
|
exports.ListItem = ListItem;
|
|
35
|
-
|
|
36
25
|
const FeatureList = _ref => {
|
|
37
26
|
let icon = _ref.icon,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
items = _ref.items,
|
|
28
|
+
iconColor = _ref.iconColor,
|
|
29
|
+
_ref$textTag = _ref.textTag,
|
|
30
|
+
textTag = _ref$textTag === void 0 ? 'p' : _ref$textTag,
|
|
31
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
44
32
|
const list = items.map((item, i) => {
|
|
45
33
|
const TextTag = textTag;
|
|
46
34
|
return (0, _react2.jsx)(ListItem, {
|
|
@@ -52,6 +40,5 @@ const FeatureList = _ref => {
|
|
|
52
40
|
directionColumn: true
|
|
53
41
|
}), list));
|
|
54
42
|
};
|
|
55
|
-
|
|
56
43
|
var _default = FeatureList;
|
|
57
44
|
exports.default = _default;
|
package/cjs/lists/ListAddon.js
CHANGED
|
@@ -4,38 +4,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
12
9
|
var _theme = require("@dfds-ui/theme");
|
|
13
|
-
|
|
14
10
|
var _ListIcon = _interopRequireDefault(require("./ListIcon"));
|
|
15
|
-
|
|
16
11
|
const _excluded = ["className", "as", "children"];
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
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); }
|
|
21
|
-
|
|
22
14
|
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; }
|
|
23
|
-
|
|
24
15
|
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; }
|
|
25
|
-
|
|
26
16
|
const ListAddon = _ref => {
|
|
27
17
|
let className = _ref.className,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
_ref$as = _ref.as,
|
|
19
|
+
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
22
|
const Component = as;
|
|
34
23
|
return (0, _react2.jsx)(_ListIcon.default, _extends({
|
|
35
24
|
icon: props => (0, _react2.jsx)(Component, props, children),
|
|
36
25
|
css: /*#__PURE__*/(0, _react2.css)("flex-basis:auto;height:auto;margin:0;&:first-of-type{margin-left:-", _theme.theme.spacing.xs, ";}&:last-of-type{margin-right:-", _theme.theme.spacing.xs, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:ListAddon;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9MaXN0QWRkb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1CYyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvbGlzdHMvTGlzdEFkZG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCBMaXN0SWNvbiBmcm9tICcuL0xpc3RJY29uJ1xuXG5leHBvcnQgdHlwZSBMaXN0QWRkb25Qcm9wcyA9IHtcbiAgY2xhc3NOYW1lPzogc3RyaW5nXG4gIC8qKlxuICAgKiBIVE1MIHRhZyBvciBjdXN0b20gY29tcG9uZW50IGJlaW5nIHJlbmRlcmVkLlxuICAgKi9cbiAgYXM/OiBSZWFjdC5FbGVtZW50VHlwZVxuICBjaGlsZHJlbj86IFJlYWN0LlJlYWN0Tm9kZVxufVxuXG5jb25zdCBMaXN0QWRkb24gPSAoeyBjbGFzc05hbWUsIGFzID0gJ3NwYW4nLCBjaGlsZHJlbiwgLi4ucmVzdCB9OiBMaXN0QWRkb25Qcm9wcykgPT4ge1xuICBjb25zdCBDb21wb25lbnQgPSBhc1xuICByZXR1cm4gKFxuICAgIDxMaXN0SWNvblxuICAgICAgaWNvbj17KHByb3BzKSA9PiA8Q29tcG9uZW50IHsuLi5wcm9wc30+e2NoaWxkcmVufTwvQ29tcG9uZW50Pn1cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBmbGV4LWJhc2lzOiBhdXRvO1xuICAgICAgICBoZWlnaHQ6IGF1dG87XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgJjpmaXJzdC1vZi10eXBlIHtcbiAgICAgICAgICBtYXJnaW4tbGVmdDogLSR7dGhlbWUuc3BhY2luZy54c307XG4gICAgICAgIH1cbiAgICAgICAgJjpsYXN0LW9mLXR5cGUge1xuICAgICAgICAgIG1hcmdpbi1yaWdodDogLSR7dGhlbWUuc3BhY2luZy54c307XG4gICAgICAgIH1cbiAgICAgIGB9XG4gICAgICB7Li4ucmVzdH1cbiAgICAvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IExpc3RBZGRvblxuIl19 */")
|
|
37
26
|
}, rest));
|
|
38
27
|
};
|
|
39
|
-
|
|
40
28
|
var _default = ListAddon;
|
|
41
29
|
exports.default = _default;
|
package/cjs/lists/ListDivider.js
CHANGED
|
@@ -4,32 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _divider = require("../divider");
|
|
11
|
-
|
|
12
9
|
var _react2 = require("@emotion/react");
|
|
13
|
-
|
|
14
10
|
var _theme = require("@dfds-ui/theme");
|
|
15
|
-
|
|
16
11
|
const _excluded = ["indent", "margins", "as"];
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
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); }
|
|
21
|
-
|
|
22
14
|
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; }
|
|
23
|
-
|
|
24
15
|
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; }
|
|
25
|
-
|
|
26
16
|
const ListDivider = _ref => {
|
|
27
17
|
let indent = _ref.indent,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
margins = _ref.margins,
|
|
19
|
+
_ref$as = _ref.as,
|
|
20
|
+
as = _ref$as === void 0 ? 'hr' : _ref$as,
|
|
21
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
22
|
return (0, _react2.jsx)(_divider.Divider, _extends({
|
|
34
23
|
indent: indent,
|
|
35
24
|
margins: margins,
|
|
@@ -37,6 +26,5 @@ const ListDivider = _ref => {
|
|
|
37
26
|
css: /*#__PURE__*/(0, _react2.css)("margin:0 ", margins ? _theme.theme.spacing.s : 0, " 0 ", margins || indent ? _theme.theme.spacing.s : 0, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ListDivider;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9MaXN0RGl2aWRlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYWMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2xpc3RzL0xpc3REaXZpZGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IERpdmlkZXJQcm9wcywgRGl2aWRlciB9IGZyb20gJy4uL2RpdmlkZXInXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5cbmV4cG9ydCB0eXBlIExpc3REaXZpZGVyUHJvcHMgPSBQaWNrPERpdmlkZXJQcm9wcywgJ2FzJyB8ICdpbmRlbnQnIHwgJ21hcmdpbnMnPlxuXG5jb25zdCBMaXN0RGl2aWRlciA9ICh7IGluZGVudCwgbWFyZ2lucywgYXMgPSAnaHInLCAuLi5yZXN0IH06IExpc3REaXZpZGVyUHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8RGl2aWRlclxuICAgICAgaW5kZW50PXtpbmRlbnR9XG4gICAgICBtYXJnaW5zPXttYXJnaW5zfVxuICAgICAgYXM9e2FzfVxuICAgICAgY3NzPXtjc3NgXG4gICAgICAgIG1hcmdpbjogMCAke21hcmdpbnMgPyB0aGVtZS5zcGFjaW5nLnMgOiAwfSAwICR7bWFyZ2lucyB8fCBpbmRlbnQgPyB0aGVtZS5zcGFjaW5nLnMgOiAwfTtcbiAgICAgIGB9XG4gICAgICB7Li4ucmVzdH1cbiAgICAvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IExpc3REaXZpZGVyXG4iXX0= */")
|
|
38
27
|
}, rest));
|
|
39
28
|
};
|
|
40
|
-
|
|
41
29
|
var _default = ListDivider;
|
|
42
30
|
exports.default = _default;
|
package/cjs/lists/ListIcon.js
CHANGED
|
@@ -4,52 +4,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
12
9
|
var _theme = require("@dfds-ui/theme");
|
|
13
|
-
|
|
14
10
|
const _excluded = ["icon", "size", "color"];
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
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); }
|
|
19
|
-
|
|
20
13
|
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; }
|
|
21
|
-
|
|
22
14
|
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; }
|
|
23
|
-
|
|
24
15
|
const _theme$spacing = _theme.theme.spacing,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
xs = _theme$spacing.xs,
|
|
17
|
+
s = _theme$spacing.s,
|
|
18
|
+
m = _theme$spacing.m,
|
|
19
|
+
l = _theme$spacing.l;
|
|
29
20
|
const sizes = {
|
|
30
21
|
small: xs,
|
|
31
22
|
medium: s,
|
|
32
23
|
large: m,
|
|
33
24
|
xl: l
|
|
34
25
|
};
|
|
35
|
-
|
|
36
26
|
function getSize(size = 'medium') {
|
|
37
27
|
return sizes[size];
|
|
38
28
|
}
|
|
39
|
-
|
|
40
29
|
const listIconStyles = ({
|
|
41
30
|
size,
|
|
42
31
|
color
|
|
43
32
|
}) => /*#__PURE__*/(0, _react2.css)("width:auto;height:", getSize(size), ";min-width:", getSize(size), ";object-fit:contain;flex-shrink:0;color:", color, ";flex:0;fill:", color, ";margin:0;&:not(:last-child){margin-right:", _theme.theme.spacing.xs, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:listIconStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9MaXN0SWNvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0N1RSIsImZpbGUiOiIuLi8uLi8uLi9zcmMvbGlzdHMvTGlzdEljb24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyB0aGVtZSB9IGZyb20gJ0BkZmRzLXVpL3RoZW1lJ1xuXG50eXBlIFNpemUgPSAnc21hbGwnIHwgJ21lZGl1bScgfCAnbGFyZ2UnIHwgJ3hsJ1xuXG5jb25zdCB7IHhzLCBzLCBtLCBsIH0gPSB0aGVtZS5zcGFjaW5nXG5cbmNvbnN0IHNpemVzID0ge1xuICBzbWFsbDogeHMsXG4gIG1lZGl1bTogcyxcbiAgbGFyZ2U6IG0sXG4gIHhsOiBsLFxufVxuXG50eXBlIExpc3RJY29uUHJvcHMgPSB7XG4gIC8qKlxuICAgKiBDaG9vc2UgdGhlIG5lZWRlZCBpY29uLlxuICAgKi9cbiAgaWNvbjogUmVhY3QuRWxlbWVudFR5cGVcbiAgLyoqXG4gICAqIENob29zZSB0aGUgc2l6ZSBvZiB0aGUgaWNvbi5cbiAgICovXG4gIHNpemU/OiBTaXplXG4gIC8qKlxuICAgKiBDaG9vc2UgdGhlIGNvbG9yIG9mIHRoZSBpY29uLlxuICAgKi9cbiAgY29sb3I/OiBzdHJpbmdcbn1cblxuZnVuY3Rpb24gZ2V0U2l6ZShzaXplOiBTaXplID0gJ21lZGl1bScpIHtcbiAgcmV0dXJuIHNpemVzW3NpemVdXG59XG5cbmNvbnN0IGxpc3RJY29uU3R5bGVzID0gKHsgc2l6ZSwgY29sb3IgfTogUGFydGlhbDxMaXN0SWNvblByb3BzPikgPT4gY3NzYFxuICB3aWR0aDogYXV0bztcbiAgaGVpZ2h0OiAke2dldFNpemUoc2l6ZSl9O1xuICBtaW4td2lkdGg6ICR7Z2V0U2l6ZShzaXplKX07XG4gIG9iamVjdC1maXQ6IGNvbnRhaW47XG4gIGZsZXgtc2hyaW5rOiAwO1xuICBjb2xvcjogJHtjb2xvcn07XG4gIGZsZXg6IDA7XG4gIGZpbGw6ICR7Y29sb3J9O1xuICBtYXJnaW46IDA7XG4gICY6bm90KDpsYXN0LWNoaWxkKSB7XG4gICAgbWFyZ2luLXJpZ2h0OiAke3RoZW1lLnNwYWNpbmcueHN9O1xuICB9XG5gXG5cbmNvbnN0IExpc3RJY29uID0gKHsgaWNvbjogSWNvbiwgc2l6ZSA9ICdsYXJnZScsIGNvbG9yID0gdGhlbWUuY29sb3JzLnRleHQuZGFyay5wcmltYXJ5LCAuLi5yZXN0IH06IExpc3RJY29uUHJvcHMpID0+IHtcbiAgcmV0dXJuIDxJY29uIGNzcz17bGlzdEljb25TdHlsZXMoeyBzaXplLCBjb2xvciB9KX0gey4uLnJlc3R9IC8+XG59XG5cbmV4cG9ydCBkZWZhdWx0IExpc3RJY29uXG4iXX0= */");
|
|
44
|
-
|
|
45
33
|
const ListIcon = _ref => {
|
|
46
34
|
let Icon = _ref.icon,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
35
|
+
_ref$size = _ref.size,
|
|
36
|
+
size = _ref$size === void 0 ? 'large' : _ref$size,
|
|
37
|
+
_ref$color = _ref.color,
|
|
38
|
+
color = _ref$color === void 0 ? _theme.theme.colors.text.dark.primary : _ref$color,
|
|
39
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
53
40
|
return (0, _react2.jsx)(Icon, _extends({
|
|
54
41
|
css: listIconStyles({
|
|
55
42
|
size,
|
|
@@ -57,6 +44,5 @@ const ListIcon = _ref => {
|
|
|
57
44
|
})
|
|
58
45
|
}, rest));
|
|
59
46
|
};
|
|
60
|
-
|
|
61
47
|
var _default = ListIcon;
|
|
62
48
|
exports.default = _default;
|
package/cjs/lists/ListItem.d.ts
CHANGED
|
@@ -41,6 +41,6 @@ export declare type ListItemProps = {
|
|
|
41
41
|
className?: string;
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
} & PolymorphicComponentProps;
|
|
44
|
-
export declare const listItemStyles: ({ multiline, selected, clickable, condensed, flexBoxProps, divider, }: Partial<ListItemProps>) => import("@emotion/
|
|
44
|
+
export declare const listItemStyles: ({ multiline, selected, clickable, condensed, flexBoxProps, divider, }: Partial<ListItemProps>) => import("@emotion/utils").SerializedStyles;
|
|
45
45
|
declare const ListItem: ({ children, multiline, condensed, selected, tabIndex, clickable, divider, onClick, as, flexBoxProps, ...rest }: ListItemProps) => JSX.Element;
|
|
46
46
|
export default ListItem;
|