@dxc-technology/halstack-react 0.0.0-ff5083e → 0.0.0-ff6c8bf
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/BackgroundColorContext.d.ts +1 -10
- package/BackgroundColorContext.js +5 -22
- package/HalstackContext.d.ts +1240 -6
- package/HalstackContext.js +126 -111
- package/README.md +47 -0
- package/accordion/Accordion.accessibility.test.js +71 -0
- package/accordion/Accordion.d.ts +1 -1
- package/accordion/Accordion.js +105 -160
- package/accordion/Accordion.stories.tsx +82 -148
- package/accordion/Accordion.test.js +25 -41
- package/accordion/types.d.ts +6 -17
- package/accordion-group/AccordionGroup.accessibility.test.js +88 -0
- package/accordion-group/AccordionGroup.d.ts +2 -2
- package/accordion-group/AccordionGroup.js +31 -98
- package/accordion-group/AccordionGroup.stories.tsx +94 -67
- package/accordion-group/AccordionGroup.test.js +52 -105
- package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
- package/accordion-group/AccordionGroupAccordion.js +31 -0
- package/accordion-group/AccordionGroupContext.d.ts +3 -0
- package/accordion-group/AccordionGroupContext.js +8 -0
- package/accordion-group/types.d.ts +12 -17
- package/action-icon/ActionIcon.accessibility.test.js +63 -0
- package/action-icon/ActionIcon.d.ts +4 -0
- package/action-icon/ActionIcon.js +48 -0
- package/action-icon/ActionIcon.stories.tsx +41 -0
- package/action-icon/ActionIcon.test.js +64 -0
- package/action-icon/types.d.ts +26 -0
- package/alert/Alert.accessibility.test.js +95 -0
- package/alert/Alert.js +37 -127
- package/alert/Alert.stories.tsx +28 -0
- package/alert/Alert.test.js +29 -46
- package/alert/types.d.ts +5 -5
- package/badge/Badge.accessibility.test.js +129 -0
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +142 -42
- package/badge/Badge.stories.tsx +210 -0
- package/badge/Badge.test.js +30 -0
- package/badge/types.d.ts +52 -3
- package/bleed/Bleed.js +13 -21
- package/bleed/Bleed.stories.tsx +64 -63
- package/bleed/types.d.ts +2 -2
- package/box/Box.accessibility.test.js +33 -0
- package/box/Box.d.ts +1 -1
- package/box/Box.js +19 -60
- package/box/Box.stories.tsx +38 -51
- package/box/Box.test.js +2 -7
- package/box/types.d.ts +3 -14
- package/breadcrumbs/Breadcrumbs.accessibility.test.d.ts +1 -0
- package/breadcrumbs/Breadcrumbs.accessibility.test.js +96 -0
- package/breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/breadcrumbs/Breadcrumbs.js +79 -0
- package/breadcrumbs/Breadcrumbs.stories.tsx +194 -0
- package/breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/breadcrumbs/Breadcrumbs.test.js +169 -0
- package/breadcrumbs/Item.d.ts +4 -0
- package/breadcrumbs/Item.js +52 -0
- package/breadcrumbs/dropdownTheme.d.ts +53 -0
- package/breadcrumbs/dropdownTheme.js +62 -0
- package/breadcrumbs/types.d.ts +16 -0
- package/bulleted-list/BulletedList.accessibility.test.js +119 -0
- package/bulleted-list/BulletedList.js +35 -63
- package/bulleted-list/BulletedList.stories.tsx +18 -106
- package/bulleted-list/types.d.ts +32 -5
- package/button/Button.accessibility.test.js +127 -0
- package/button/Button.d.ts +1 -1
- package/button/Button.js +64 -117
- package/button/Button.stories.tsx +151 -100
- package/button/Button.test.js +20 -17
- package/button/types.d.ts +12 -8
- package/card/Card.accessibility.test.js +36 -0
- package/card/Card.d.ts +1 -1
- package/card/Card.js +49 -89
- package/card/Card.stories.tsx +12 -42
- package/card/Card.test.js +11 -22
- package/card/types.d.ts +6 -11
- package/checkbox/Checkbox.accessibility.test.js +87 -0
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +139 -181
- package/checkbox/Checkbox.stories.tsx +128 -94
- package/checkbox/Checkbox.test.js +160 -39
- package/checkbox/types.d.ts +11 -3
- package/chip/Chip.accessibility.test.js +67 -0
- package/chip/Chip.js +45 -80
- package/chip/Chip.stories.tsx +107 -27
- package/chip/Chip.test.js +18 -33
- package/chip/types.d.ts +4 -4
- package/common/coreTokens.d.ts +237 -0
- package/common/coreTokens.js +184 -0
- package/common/utils.d.ts +1 -0
- package/common/utils.js +6 -12
- package/common/variables.d.ts +1392 -0
- package/common/variables.js +984 -1206
- package/container/Container.d.ts +4 -0
- package/container/Container.js +194 -0
- package/container/Container.stories.tsx +214 -0
- package/container/types.d.ts +74 -0
- package/contextual-menu/ContextualMenu.accessibility.test.js +97 -0
- package/contextual-menu/ContextualMenu.d.ts +5 -0
- package/contextual-menu/ContextualMenu.js +88 -0
- package/contextual-menu/ContextualMenu.stories.tsx +232 -0
- package/contextual-menu/ContextualMenu.test.js +205 -0
- package/contextual-menu/GroupItem.d.ts +4 -0
- package/contextual-menu/GroupItem.js +67 -0
- package/contextual-menu/ItemAction.d.ts +4 -0
- package/contextual-menu/ItemAction.js +51 -0
- package/contextual-menu/MenuItem.d.ts +4 -0
- package/contextual-menu/MenuItem.js +29 -0
- package/contextual-menu/SingleItem.d.ts +4 -0
- package/contextual-menu/SingleItem.js +38 -0
- package/contextual-menu/types.d.ts +58 -0
- package/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +214 -0
- package/date-input/DateInput.accessibility.test.js +228 -0
- package/date-input/DateInput.js +149 -299
- package/date-input/DateInput.stories.tsx +210 -56
- package/date-input/DateInput.test.js +700 -371
- package/date-input/DatePicker.d.ts +4 -0
- package/date-input/DatePicker.js +121 -0
- package/date-input/YearPicker.d.ts +4 -0
- package/date-input/YearPicker.js +100 -0
- package/date-input/types.d.ts +72 -15
- package/dialog/Dialog.accessibility.test.js +69 -0
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.js +61 -106
- package/dialog/Dialog.stories.tsx +326 -167
- package/dialog/Dialog.test.js +287 -20
- package/dialog/types.d.ts +18 -25
- package/divider/Divider.accessibility.test.js +33 -0
- package/divider/Divider.d.ts +4 -0
- package/divider/Divider.js +36 -0
- package/divider/Divider.stories.tsx +223 -0
- package/divider/Divider.test.js +38 -0
- package/divider/types.d.ts +21 -0
- package/dropdown/Dropdown.accessibility.test.js +180 -0
- package/dropdown/Dropdown.d.ts +1 -1
- package/dropdown/Dropdown.js +233 -303
- package/dropdown/Dropdown.stories.tsx +235 -57
- package/dropdown/Dropdown.test.js +575 -165
- package/dropdown/DropdownMenu.d.ts +4 -0
- package/dropdown/DropdownMenu.js +63 -0
- package/dropdown/DropdownMenuItem.d.ts +4 -0
- package/dropdown/DropdownMenuItem.js +71 -0
- package/dropdown/types.d.ts +35 -19
- package/file-input/FileInput.accessibility.test.js +160 -0
- package/file-input/FileInput.d.ts +2 -2
- package/file-input/FileInput.js +241 -391
- package/file-input/FileInput.stories.tsx +123 -12
- package/file-input/FileInput.test.js +306 -367
- package/file-input/FileItem.d.ts +4 -14
- package/file-input/FileItem.js +56 -117
- package/file-input/types.d.ts +25 -8
- package/flex/Flex.d.ts +4 -0
- package/flex/Flex.js +57 -0
- package/flex/Flex.stories.tsx +112 -0
- package/flex/types.d.ts +97 -0
- package/footer/Footer.accessibility.test.js +125 -0
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +73 -118
- package/footer/Footer.stories.tsx +99 -21
- package/footer/Footer.test.js +33 -57
- package/footer/Icons.d.ts +3 -2
- package/footer/Icons.js +54 -23
- package/footer/types.d.ts +26 -27
- package/grid/Grid.d.ts +7 -0
- package/grid/Grid.js +76 -0
- package/grid/Grid.stories.tsx +219 -0
- package/grid/types.d.ts +115 -0
- package/grid/types.js +5 -0
- package/header/Header.accessibility.test.js +93 -0
- package/header/Header.d.ts +4 -3
- package/header/Header.js +90 -183
- package/header/Header.stories.tsx +133 -38
- package/header/Header.test.js +13 -26
- package/header/Icons.d.ts +2 -2
- package/header/Icons.js +5 -15
- package/header/types.d.ts +7 -21
- package/heading/Heading.accessibility.test.js +33 -0
- package/heading/Heading.js +10 -32
- package/heading/Heading.test.js +71 -88
- package/heading/types.d.ts +7 -7
- package/icon/Icon.accessibility.test.js +30 -0
- package/icon/Icon.d.ts +4 -0
- package/icon/Icon.js +33 -0
- package/icon/Icon.stories.tsx +28 -0
- package/icon/types.d.ts +4 -0
- package/icon/types.js +5 -0
- package/image/Image.accessibility.test.js +56 -0
- package/image/Image.d.ts +4 -0
- package/image/Image.js +70 -0
- package/image/Image.stories.tsx +129 -0
- package/image/types.d.ts +72 -0
- package/image/types.js +5 -0
- package/inset/Inset.js +13 -21
- package/inset/Inset.stories.tsx +5 -4
- package/inset/types.d.ts +2 -2
- package/layout/ApplicationLayout.d.ts +15 -6
- package/layout/ApplicationLayout.js +57 -119
- package/layout/ApplicationLayout.stories.tsx +81 -45
- package/layout/Icons.d.ts +7 -5
- package/layout/Icons.js +41 -59
- package/layout/types.d.ts +21 -32
- package/link/Link.accessibility.test.js +108 -0
- package/link/Link.js +32 -51
- package/link/Link.stories.tsx +76 -9
- package/link/Link.test.js +24 -44
- package/link/types.d.ts +14 -14
- package/main.d.ts +14 -12
- package/main.js +51 -88
- package/nav-tabs/NavTabs.accessibility.test.js +44 -0
- package/nav-tabs/NavTabs.d.ts +7 -0
- package/{tabs-nav → nav-tabs}/NavTabs.js +30 -62
- package/nav-tabs/NavTabs.stories.tsx +279 -0
- package/nav-tabs/NavTabs.test.js +77 -0
- package/nav-tabs/NavTabsContext.d.ts +3 -0
- package/nav-tabs/NavTabsContext.js +8 -0
- package/nav-tabs/Tab.js +117 -0
- package/{tabs-nav → nav-tabs}/types.d.ts +15 -16
- package/nav-tabs/types.js +5 -0
- package/number-input/NumberInput.accessibility.test.js +228 -0
- package/number-input/NumberInput.js +46 -36
- package/number-input/NumberInput.stories.tsx +42 -26
- package/number-input/NumberInput.test.js +860 -377
- package/number-input/NumberInputContext.d.ts +3 -4
- package/number-input/NumberInputContext.js +3 -14
- package/number-input/types.d.ts +17 -5
- package/package.json +51 -51
- package/paginator/Paginator.accessibility.test.js +79 -0
- package/paginator/Paginator.js +35 -68
- package/paginator/Paginator.stories.tsx +24 -0
- package/paginator/Paginator.test.js +280 -211
- package/paginator/types.d.ts +3 -3
- package/paragraph/Paragraph.accessibility.test.js +28 -0
- package/paragraph/Paragraph.d.ts +3 -4
- package/paragraph/Paragraph.js +7 -23
- package/paragraph/Paragraph.stories.tsx +1 -18
- package/password-input/PasswordInput.accessibility.test.js +153 -0
- package/password-input/PasswordInput.js +58 -127
- package/password-input/PasswordInput.stories.tsx +1 -33
- package/password-input/PasswordInput.test.js +160 -142
- package/password-input/types.d.ts +8 -7
- package/progress-bar/ProgressBar.accessibility.test.js +35 -0
- package/progress-bar/ProgressBar.js +68 -92
- package/progress-bar/{ProgressBar.stories.jsx → ProgressBar.stories.tsx} +39 -4
- package/progress-bar/ProgressBar.test.js +72 -44
- package/progress-bar/types.d.ts +3 -3
- package/quick-nav/QuickNav.accessibility.test.js +57 -0
- package/quick-nav/QuickNav.js +24 -42
- package/quick-nav/QuickNav.stories.tsx +146 -27
- package/quick-nav/types.d.ts +10 -10
- package/radio-group/Radio.d.ts +1 -1
- package/radio-group/Radio.js +59 -76
- package/radio-group/RadioGroup.accessibility.test.js +97 -0
- package/radio-group/RadioGroup.js +68 -114
- package/radio-group/RadioGroup.stories.tsx +132 -18
- package/radio-group/RadioGroup.test.js +518 -457
- package/radio-group/types.d.ts +10 -10
- package/resultset-table/Icons.d.ts +7 -0
- package/resultset-table/Icons.js +47 -0
- package/resultset-table/ResultsetTable.accessibility.test.js +285 -0
- package/resultset-table/ResultsetTable.d.ts +7 -0
- package/resultset-table/ResultsetTable.js +171 -0
- package/{resultsetTable → resultset-table}/ResultsetTable.stories.tsx +168 -30
- package/resultset-table/ResultsetTable.test.js +381 -0
- package/{resultsetTable → resultset-table}/types.d.ts +44 -11
- package/resultset-table/types.js +5 -0
- package/select/Listbox.d.ts +1 -1
- package/select/Listbox.js +68 -65
- package/select/Option.js +35 -56
- package/select/Select.accessibility.test.js +228 -0
- package/select/Select.js +171 -214
- package/select/Select.stories.tsx +515 -190
- package/select/Select.test.js +1934 -1789
- package/select/types.d.ts +17 -21
- package/sidenav/Sidenav.accessibility.test.js +59 -0
- package/sidenav/Sidenav.d.ts +6 -5
- package/sidenav/Sidenav.js +132 -78
- package/sidenav/Sidenav.stories.tsx +246 -151
- package/sidenav/Sidenav.test.js +26 -45
- package/{layout → sidenav}/SidenavContext.d.ts +1 -1
- package/{layout → sidenav}/SidenavContext.js +3 -9
- package/sidenav/types.d.ts +52 -26
- package/slider/Slider.accessibility.test.js +104 -0
- package/slider/Slider.d.ts +2 -2
- package/slider/Slider.js +149 -181
- package/slider/Slider.stories.tsx +64 -61
- package/slider/Slider.test.js +185 -81
- package/slider/types.d.ts +7 -3
- package/spinner/Spinner.accessibility.test.js +96 -0
- package/spinner/Spinner.js +34 -74
- package/spinner/{Spinner.stories.jsx → Spinner.stories.tsx} +53 -27
- package/spinner/Spinner.test.js +26 -35
- package/spinner/types.d.ts +3 -3
- package/status-light/StatusLight.accessibility.test.js +157 -0
- package/status-light/StatusLight.d.ts +4 -0
- package/status-light/StatusLight.js +51 -0
- package/status-light/StatusLight.stories.tsx +74 -0
- package/status-light/StatusLight.test.js +25 -0
- package/status-light/types.d.ts +17 -0
- package/status-light/types.js +5 -0
- package/switch/Switch.accessibility.test.js +98 -0
- package/switch/Switch.d.ts +2 -2
- package/switch/Switch.js +145 -126
- package/switch/Switch.stories.tsx +49 -60
- package/switch/Switch.test.js +138 -56
- package/switch/types.d.ts +7 -3
- package/table/DropdownTheme.js +62 -0
- package/table/Table.accessibility.test.js +93 -0
- package/table/Table.d.ts +6 -2
- package/table/Table.js +78 -35
- package/table/Table.stories.tsx +663 -0
- package/table/Table.test.js +95 -8
- package/table/types.d.ts +34 -6
- package/tabs/Tab.d.ts +4 -0
- package/tabs/Tab.js +117 -0
- package/tabs/Tabs.accessibility.test.js +56 -0
- package/tabs/Tabs.js +303 -141
- package/tabs/Tabs.stories.tsx +124 -6
- package/tabs/Tabs.test.js +213 -77
- package/tabs/types.d.ts +30 -20
- package/tag/Tag.accessibility.test.js +69 -0
- package/tag/Tag.js +35 -67
- package/tag/Tag.stories.tsx +18 -8
- package/tag/Tag.test.js +18 -37
- package/tag/types.d.ts +9 -9
- package/text-input/Suggestion.js +40 -28
- package/text-input/Suggestions.d.ts +4 -0
- package/text-input/Suggestions.js +94 -0
- package/text-input/TextInput.accessibility.test.js +321 -0
- package/text-input/TextInput.js +316 -515
- package/text-input/TextInput.stories.tsx +276 -276
- package/text-input/TextInput.test.js +1419 -1375
- package/text-input/types.d.ts +43 -16
- package/textarea/Textarea.accessibility.test.js +155 -0
- package/textarea/Textarea.js +71 -113
- package/textarea/Textarea.stories.tsx +174 -0
- package/textarea/Textarea.test.js +152 -183
- package/textarea/types.d.ts +9 -5
- package/toggle-group/ToggleGroup.accessibility.test.js +107 -0
- package/toggle-group/ToggleGroup.d.ts +2 -2
- package/toggle-group/ToggleGroup.js +94 -107
- package/toggle-group/ToggleGroup.stories.tsx +52 -7
- package/toggle-group/ToggleGroup.test.js +69 -88
- package/toggle-group/types.d.ts +28 -19
- package/typography/Typography.accessibility.test.js +339 -0
- package/typography/Typography.d.ts +2 -2
- package/typography/Typography.js +16 -124
- package/typography/Typography.stories.tsx +185 -162
- package/typography/types.d.ts +1 -1
- package/useTheme.d.ts +1144 -1
- package/useTheme.js +2 -9
- package/useTranslatedLabels.d.ts +84 -1
- package/useTranslatedLabels.js +1 -7
- package/utils/BaseTypography.d.ts +21 -0
- package/utils/BaseTypography.js +94 -0
- package/utils/FocusLock.d.ts +13 -0
- package/utils/FocusLock.js +124 -0
- package/wizard/Wizard.accessibility.test.js +55 -0
- package/wizard/Wizard.js +34 -87
- package/wizard/Wizard.stories.tsx +59 -1
- package/wizard/Wizard.test.js +54 -81
- package/wizard/types.d.ts +9 -9
- package/card/ice-cream.jpg +0 -0
- package/common/OpenSans.css +0 -81
- package/common/RequiredComponent.js +0 -32
- package/common/fonts/OpenSans-Bold.ttf +0 -0
- package/common/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/common/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/common/fonts/OpenSans-Italic.ttf +0 -0
- package/common/fonts/OpenSans-Light.ttf +0 -0
- package/common/fonts/OpenSans-LightItalic.ttf +0 -0
- package/common/fonts/OpenSans-Regular.ttf +0 -0
- package/common/fonts/OpenSans-SemiBold.ttf +0 -0
- package/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/number-input/numberInputContextTypes.d.ts +0 -19
- package/paginator/Icons.js +0 -66
- package/resultsetTable/ResultsetTable.d.ts +0 -4
- package/resultsetTable/ResultsetTable.js +0 -254
- package/resultsetTable/ResultsetTable.test.js +0 -306
- package/row/Row.d.ts +0 -3
- package/row/Row.js +0 -127
- package/row/Row.stories.tsx +0 -237
- package/row/types.d.ts +0 -28
- package/select/Icons.d.ts +0 -10
- package/select/Icons.js +0 -93
- package/stack/Stack.d.ts +0 -3
- package/stack/Stack.js +0 -97
- package/stack/Stack.stories.tsx +0 -164
- package/stack/types.d.ts +0 -24
- package/table/Table.stories.jsx +0 -277
- package/tabs-nav/NavTabs.d.ts +0 -8
- package/tabs-nav/NavTabs.stories.tsx +0 -170
- package/tabs-nav/NavTabs.test.js +0 -82
- package/tabs-nav/Tab.js +0 -132
- package/textarea/Textarea.stories.jsx +0 -157
- package/typography/typographyContextTypes.d.ts +0 -16
- /package/{resultsetTable → action-icon}/types.js +0 -0
- /package/{row → breadcrumbs}/types.js +0 -0
- /package/{stack → container}/types.js +0 -0
- /package/{tabs-nav → contextual-menu}/types.js +0 -0
- /package/{number-input/numberInputContextTypes.js → divider/types.js} +0 -0
- /package/{typography/typographyContextTypes.js → flex/types.js} +0 -0
- /package/{tabs-nav → nav-tabs}/Tab.d.ts +0 -0
package/HalstackContext.js
CHANGED
|
@@ -1,75 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports["default"] = exports.HalstackProvider = exports.HalstackLanguageContext = void 0;
|
|
11
|
-
|
|
12
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
|
-
|
|
14
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
11
|
var _color = _interopRequireDefault(require("color"));
|
|
17
|
-
|
|
18
|
-
var _rgbHex = _interopRequireDefault(require("rgb-hex"));
|
|
19
|
-
|
|
20
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
21
|
-
|
|
22
|
-
var _variables = require("./common/variables.js");
|
|
23
|
-
|
|
13
|
+
var _variables = require("./common/variables");
|
|
24
14
|
var _templateObject;
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
30
17
|
var HalstackContext = /*#__PURE__*/_react["default"].createContext(null);
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
exports.HalstackLanguageContext = HalstackLanguageContext;
|
|
35
|
-
|
|
36
|
-
var addLightness = function addLightness(hexColor, newLightness) {
|
|
18
|
+
var HalstackLanguageContext = exports.HalstackLanguageContext = /*#__PURE__*/_react["default"].createContext(null);
|
|
19
|
+
var addLightness = function addLightness(newLightness, hexColor) {
|
|
37
20
|
try {
|
|
38
21
|
if (hexColor) {
|
|
39
22
|
var color = (0, _color["default"])(hexColor);
|
|
40
23
|
var hslColor = color.hsl();
|
|
41
|
-
var lightnessColor = hslColor.
|
|
24
|
+
var lightnessColor = hslColor.lightness();
|
|
42
25
|
return hslColor.lightness(lightnessColor + newLightness).hex();
|
|
43
26
|
}
|
|
44
27
|
} catch (e) {
|
|
45
28
|
return null;
|
|
46
29
|
}
|
|
47
30
|
};
|
|
48
|
-
|
|
49
|
-
var subLightness = function subLightness(hexColor, newLightness) {
|
|
31
|
+
var subLightness = function subLightness(newLightness, hexColor) {
|
|
50
32
|
try {
|
|
51
33
|
if (hexColor) {
|
|
52
34
|
var color = (0, _color["default"])(hexColor);
|
|
53
35
|
var hslColor = color.hsl();
|
|
54
|
-
var lightnessColor = hslColor.
|
|
36
|
+
var lightnessColor = hslColor.lightness();
|
|
55
37
|
return hslColor.lightness(lightnessColor - newLightness).hex();
|
|
56
38
|
}
|
|
57
39
|
} catch (e) {
|
|
58
40
|
return null;
|
|
59
41
|
}
|
|
60
42
|
};
|
|
61
|
-
|
|
62
|
-
var setOpacity = function setOpacity(hexColor, newOpacity) {
|
|
63
|
-
try {
|
|
64
|
-
if (hexColor) {
|
|
65
|
-
var color = (0, _color["default"])(hexColor);
|
|
66
|
-
return "#" + (0, _rgbHex["default"])(color.color[0], color.color[1], color.color[2], newOpacity);
|
|
67
|
-
}
|
|
68
|
-
} catch (e) {
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
|
|
73
43
|
var parseAdvancedTheme = function parseAdvancedTheme(advancedTheme) {
|
|
74
44
|
var allTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
|
|
75
45
|
Object.keys(allTokensCopy).map(function (component) {
|
|
@@ -83,18 +53,22 @@ var parseAdvancedTheme = function parseAdvancedTheme(advancedTheme) {
|
|
|
83
53
|
});
|
|
84
54
|
return allTokensCopy;
|
|
85
55
|
};
|
|
86
|
-
|
|
87
56
|
var parseTheme = function parseTheme(theme) {
|
|
88
|
-
var _theme$accordion$
|
|
89
|
-
|
|
57
|
+
var _theme$alert$baseColo, _theme$alert, _theme$alert$accentCo, _theme$alert2, _theme$alert$accentCo2, _theme$alert3, _theme$alert$overlayC, _theme$alert4, _theme$accordion$assi, _theme$accordion, _theme$accordion$titl, _theme$accordion2, _theme$accordion$acce, _theme$accordion3, _theme$accordion$acce2, _theme$accordion4, _addLightness, _theme$accordion5, _theme$box$baseColor, _theme$box, _theme$button$primary, _theme$button, _theme$button$baseCol, _theme$button2, _theme$button$baseCol2, _theme$button3, _theme$button$seconda, _theme$button4, _theme$button$baseCol3, _theme$button5, _theme$button$baseCol4, _theme$button6, _theme$button$baseCol5, _theme$button7, _subLightness, _theme$button8, _subLightness2, _theme$button9, _subLightness3, _theme$button10, _addLightness2, _theme$button11, _addLightness3, _theme$button12, _theme$checkbox$baseC, _theme$checkbox, _theme$checkbox$baseC2, _theme$checkbox2, _theme$checkbox$check, _theme$checkbox3, _theme$checkbox$fontC, _theme$checkbox4, _subLightness4, _theme$checkbox5, _subLightness5, _theme$checkbox6, _theme$chip$baseColor, _theme$chip, _theme$chip$fontColor, _theme$chip2, _theme$chip$iconColor, _theme$chip3, _subLightness6, _theme$chip4, _subLightness7, _theme$chip5, _theme$dateInput$base, _theme$dateInput, _theme$dateInput$sele, _theme$dateInput2, _subLightness8, _theme$dateInput3, _theme$dateInput$sele2, _theme$dateInput4, _theme$dateInput$base2, _theme$dateInput5, _subLightness9, _theme$dateInput6, _theme$dateInput$sele3, _theme$dateInput7, _addLightness4, _theme$dateInput8, _addLightness5, _theme$dateInput9, _addLightness6, _theme$dateInput10, _theme$dialog$baseCol, _theme$dialog, _theme$dialog$closeIc, _theme$dialog2, _theme$dialog$overlay, _theme$dialog3, _theme$dropdown$baseC, _theme$dropdown, _theme$dropdown$fontC, _theme$dropdown2, _theme$dropdown$fontC2, _theme$dropdown3, _theme$dropdown$fontC3, _theme$dropdown4, _theme$dropdown$optio, _theme$dropdown5, _theme$dropdown$optio2, _theme$dropdown6, _subLightness10, _theme$dropdown7, _subLightness11, _theme$dropdown8, _subLightness12, _theme$dropdown9, _subLightness13, _theme$dropdown10, _theme$fileInput$font, _theme$fileInput, _theme$fileInput$font2, _theme$fileInput2, _theme$fileInput$font3, _theme$fileInput3, _theme$fileInput$font4, _theme$fileInput4, _theme$footer$baseCol, _theme$footer, _theme$footer$fontCol, _theme$footer2, _theme$footer$fontCol2, _theme$footer3, _theme$footer$fontCol3, _theme$footer4, _theme$footer$accentC, _theme$footer5, _theme$footer$logo, _theme$footer6, _theme$header$baseCol, _theme$header, _theme$header$accentC, _theme$header2, _theme$header$menuBas, _theme$header3, _theme$header$fontCol, _theme$header4, _theme$header$hamburg, _theme$header5, _addLightness7, _theme$header6, _theme$header$logo, _theme$header7, _theme$header$logoRes, _theme$header8, _theme$header$content, _theme$header9, _theme$header$overlay, _theme$header10, _theme$link$baseColor, _theme$link, _theme$link$baseColor2, _theme$link2, _theme$navTabs$baseCo, _theme$navTabs, _theme$navTabs$baseCo2, _theme$navTabs2, _theme$navTabs$baseCo3, _theme$navTabs3, _theme$navTabs$baseCo4, _theme$navTabs4, _theme$navTabs$accent, _theme$navTabs5, _addLightness8, _theme$navTabs6, _addLightness9, _theme$navTabs7, _theme$paginator$base, _theme$paginator, _theme$paginator$font, _theme$paginator2, _theme$progressBar$ac, _theme$progressBar, _theme$progressBar$ba, _theme$progressBar2, _theme$progressBar$fo, _theme$progressBar3, _theme$progressBar$fo2, _theme$progressBar4, _theme$progressBar$fo3, _theme$progressBar5, _theme$progressBar$ov, _theme$progressBar6, _theme$progressBar$ov2, _theme$progressBar7, _theme$quickNav$fontC, _theme$quickNav, _theme$quickNav$accen, _theme$quickNav2, _theme$radioGroup$bas, _theme$radioGroup, _theme$radioGroup$fon, _theme$radioGroup2, _theme$radioGroup$fon2, _theme$radioGroup3, _theme$radioGroup$fon3, _theme$radioGroup4, _subLightness14, _theme$radioGroup5, _subLightness15, _theme$radioGroup6, _theme$select$selecte, _theme$select, _theme$select$fontCol, _theme$select2, _theme$select$fontCol2, _theme$select3, _theme$select$fontCol3, _theme$select4, _theme$select$optionF, _theme$select5, _addLightness10, _theme$select6, _theme$select$fontCol4, _theme$select7, _theme$select$hoverBo, _theme$select8, _subLightness16, _theme$select9, _subLightness17, _theme$select10, _theme$sidenav$baseCo, _theme$sidenav, _theme$slider$fontCol, _theme$slider, _theme$slider$fontCol2, _theme$slider2, _theme$slider$fontCol3, _theme$slider3, _theme$slider$baseCol, _theme$slider4, _theme$slider$baseCol2, _theme$slider5, _theme$slider$baseCol3, _theme$slider6, _theme$slider$baseCol4, _theme$slider7, _theme$slider$totalLi, _theme$slider8, _subLightness18, _theme$slider9, _subLightness19, _theme$slider10, _theme$spinner$accent, _theme$spinner, _theme$spinner$baseCo, _theme$spinner2, _theme$spinner$overla, _theme$spinner3, _theme$spinner$fontCo, _theme$spinner4, _theme$spinner$fontCo2, _theme$spinner5, _theme$spinner$overla2, _theme$spinner6, _theme$spinner$overla3, _theme$spinner7, _theme$switch$checked, _theme$switch, _theme$switch$fontCol, _theme$switch2, _addLightness11, _theme$switch3, _theme$table$baseColo, _theme$table, _theme$table$headerFo, _theme$table2, _theme$table$cellFont, _theme$table3, _theme$table$headerFo2, _theme$table4, _theme$tabs$baseColor, _theme$tabs, _theme$tabs$baseColor2, _theme$tabs2, _theme$tabs$baseColor3, _theme$tabs3, _theme$tabs$baseColor4, _theme$tabs4, _addLightness12, _theme$tabs5, _addLightness13, _theme$tabs6, _theme$tag$fontColor, _theme$tag, _theme$tag$iconColor, _theme$tag2, _theme$textInput$font, _theme$textInput, _theme$textInput$font2, _theme$textInput2, _theme$textInput$font3, _theme$textInput3, _theme$textInput$font4, _theme$textInput4, _theme$textInput$font5, _theme$textInput5, _theme$textInput$font6, _theme$textInput6, _theme$textInput$font7, _theme$textInput7, _theme$textInput$hove, _theme$textInput8, _addLightness14, _theme$textInput9, _addLightness15, _theme$textInput10, _addLightness16, _theme$textInput11, _theme$textarea$fontC, _theme$textarea, _theme$textarea$fontC2, _theme$textarea2, _theme$textarea$fontC3, _theme$textarea3, _theme$textarea$hover, _theme$textarea4, _addLightness17, _theme$textarea5, _theme$toggleGroup$se, _theme$toggleGroup, _theme$toggleGroup$se2, _theme$toggleGroup2, _theme$toggleGroup$un, _theme$toggleGroup3, _theme$toggleGroup$se3, _theme$toggleGroup4, _theme$toggleGroup$un2, _theme$toggleGroup5, _subLightness20, _theme$toggleGroup6, _subLightness21, _theme$toggleGroup7, _addLightness18, _theme$toggleGroup8, _addLightness19, _theme$toggleGroup9, _subLightness22, _theme$toggleGroup10, _theme$wizard$baseCol, _theme$wizard, _theme$wizard$selecte, _theme$wizard2, _theme$wizard$baseCol2, _theme$wizard3, _theme$wizard$fontCol, _theme$wizard4, _theme$wizard$fontCol2, _theme$wizard5, _theme$wizard$fontCol3, _theme$wizard6, _theme$wizard$fontCol4, _theme$wizard7, _addLightness20, _theme$wizard8, _addLightness21, _theme$wizard9, _addLightness22, _theme$wizard10, _addLightness23, _theme$wizard11;
|
|
90
58
|
var componentTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
|
|
59
|
+
var alertTokens = componentTokensCopy.alert;
|
|
60
|
+
alertTokens.infoBackgroundColor = (_theme$alert$baseColo = theme === null || theme === void 0 ? void 0 : (_theme$alert = theme.alert) === null || _theme$alert === void 0 ? void 0 : _theme$alert.baseColor) !== null && _theme$alert$baseColo !== void 0 ? _theme$alert$baseColo : alertTokens.infoBackgroundColor;
|
|
61
|
+
alertTokens.infoIconColor = (_theme$alert$accentCo = theme === null || theme === void 0 ? void 0 : (_theme$alert2 = theme.alert) === null || _theme$alert2 === void 0 ? void 0 : _theme$alert2.accentColor) !== null && _theme$alert$accentCo !== void 0 ? _theme$alert$accentCo : alertTokens.infoIconColor;
|
|
62
|
+
alertTokens.infoBorderColor = (_theme$alert$accentCo2 = theme === null || theme === void 0 ? void 0 : (_theme$alert3 = theme.alert) === null || _theme$alert3 === void 0 ? void 0 : _theme$alert3.accentColor) !== null && _theme$alert$accentCo2 !== void 0 ? _theme$alert$accentCo2 : alertTokens.infoBorderColor;
|
|
63
|
+
alertTokens.overlayColor = (_theme$alert$overlayC = theme === null || theme === void 0 ? void 0 : (_theme$alert4 = theme.alert) === null || _theme$alert4 === void 0 ? void 0 : _theme$alert4.overlayColor) !== null && _theme$alert$overlayC !== void 0 ? _theme$alert$overlayC : alertTokens.overlayColor;
|
|
91
64
|
var accordionTokens = componentTokensCopy.accordion;
|
|
92
|
-
accordionTokens.assistiveTextFontColor = (_theme$accordion$
|
|
93
|
-
accordionTokens.titleLabelFontColor = (_theme$accordion$
|
|
65
|
+
accordionTokens.assistiveTextFontColor = (_theme$accordion$assi = theme === null || theme === void 0 ? void 0 : (_theme$accordion = theme.accordion) === null || _theme$accordion === void 0 ? void 0 : _theme$accordion.assistiveTextFontColor) !== null && _theme$accordion$assi !== void 0 ? _theme$accordion$assi : accordionTokens.assistiveTextFontColor;
|
|
66
|
+
accordionTokens.titleLabelFontColor = (_theme$accordion$titl = theme === null || theme === void 0 ? void 0 : (_theme$accordion2 = theme.accordion) === null || _theme$accordion2 === void 0 ? void 0 : _theme$accordion2.titleFontColor) !== null && _theme$accordion$titl !== void 0 ? _theme$accordion$titl : accordionTokens.titleLabelFontColor;
|
|
94
67
|
accordionTokens.arrowColor = (_theme$accordion$acce = theme === null || theme === void 0 ? void 0 : (_theme$accordion3 = theme.accordion) === null || _theme$accordion3 === void 0 ? void 0 : _theme$accordion3.accentColor) !== null && _theme$accordion$acce !== void 0 ? _theme$accordion$acce : accordionTokens.arrowColor;
|
|
95
68
|
accordionTokens.iconColor = (_theme$accordion$acce2 = theme === null || theme === void 0 ? void 0 : (_theme$accordion4 = theme.accordion) === null || _theme$accordion4 === void 0 ? void 0 : _theme$accordion4.accentColor) !== null && _theme$accordion$acce2 !== void 0 ? _theme$accordion$acce2 : accordionTokens.iconColor;
|
|
96
|
-
accordionTokens.
|
|
97
|
-
|
|
69
|
+
accordionTokens.hoverBackgroundColor = (_addLightness = addLightness(57, theme === null || theme === void 0 ? void 0 : (_theme$accordion5 = theme.accordion) === null || _theme$accordion5 === void 0 ? void 0 : _theme$accordion5.accentColor)) !== null && _addLightness !== void 0 ? _addLightness : accordionTokens.hoverBackgroundColor;
|
|
70
|
+
var boxTokens = componentTokensCopy.box;
|
|
71
|
+
boxTokens.backgroundColor = (_theme$box$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$box = theme.box) === null || _theme$box === void 0 ? void 0 : _theme$box.baseColor) !== null && _theme$box$baseColor !== void 0 ? _theme$box$baseColor : boxTokens.backgroundColor;
|
|
98
72
|
var buttonTokens = componentTokensCopy.button;
|
|
99
73
|
buttonTokens.primaryFontColor = (_theme$button$primary = theme === null || theme === void 0 ? void 0 : (_theme$button = theme.button) === null || _theme$button === void 0 ? void 0 : _theme$button.primaryFontColor) !== null && _theme$button$primary !== void 0 ? _theme$button$primary : buttonTokens.primaryFontColor;
|
|
100
74
|
buttonTokens.primaryBackgroundColor = (_theme$button$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$button2 = theme.button) === null || _theme$button2 === void 0 ? void 0 : _theme$button2.baseColor) !== null && _theme$button$baseCol !== void 0 ? _theme$button$baseCol : buttonTokens.primaryBackgroundColor;
|
|
@@ -103,37 +77,50 @@ var parseTheme = function parseTheme(theme) {
|
|
|
103
77
|
buttonTokens.secondaryBorderColor = (_theme$button$baseCol3 = theme === null || theme === void 0 ? void 0 : (_theme$button5 = theme.button) === null || _theme$button5 === void 0 ? void 0 : _theme$button5.baseColor) !== null && _theme$button$baseCol3 !== void 0 ? _theme$button$baseCol3 : buttonTokens.secondaryBorderColor;
|
|
104
78
|
buttonTokens.secondaryHoverBackgroundColor = (_theme$button$baseCol4 = theme === null || theme === void 0 ? void 0 : (_theme$button6 = theme.button) === null || _theme$button6 === void 0 ? void 0 : _theme$button6.baseColor) !== null && _theme$button$baseCol4 !== void 0 ? _theme$button$baseCol4 : buttonTokens.secondaryHoverBackgroundColor;
|
|
105
79
|
buttonTokens.textFontColor = (_theme$button$baseCol5 = theme === null || theme === void 0 ? void 0 : (_theme$button7 = theme.button) === null || _theme$button7 === void 0 ? void 0 : _theme$button7.baseColor) !== null && _theme$button$baseCol5 !== void 0 ? _theme$button$baseCol5 : buttonTokens.textFontColor;
|
|
106
|
-
buttonTokens.primaryHoverBackgroundColor = (_subLightness = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$button8 = theme.button) === null || _theme$button8 === void 0 ? void 0 : _theme$button8.baseColor
|
|
107
|
-
buttonTokens.primaryActiveBackgroundColor = (_subLightness2 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$button9 = theme.button) === null || _theme$button9 === void 0 ? void 0 : _theme$button9.baseColor
|
|
108
|
-
buttonTokens.secondaryActiveBackgroundColor = (_subLightness3 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$button10 = theme.button) === null || _theme$button10 === void 0 ? void 0 : _theme$button10.baseColor
|
|
109
|
-
buttonTokens.textHoverBackgroundColor = (
|
|
110
|
-
buttonTokens.textActiveBackgroundColor = (
|
|
80
|
+
buttonTokens.primaryHoverBackgroundColor = (_subLightness = subLightness(8, theme === null || theme === void 0 ? void 0 : (_theme$button8 = theme.button) === null || _theme$button8 === void 0 ? void 0 : _theme$button8.baseColor)) !== null && _subLightness !== void 0 ? _subLightness : buttonTokens.primaryHoverBackgroundColor;
|
|
81
|
+
buttonTokens.primaryActiveBackgroundColor = (_subLightness2 = subLightness(18, theme === null || theme === void 0 ? void 0 : (_theme$button9 = theme.button) === null || _theme$button9 === void 0 ? void 0 : _theme$button9.baseColor)) !== null && _subLightness2 !== void 0 ? _subLightness2 : buttonTokens.primaryActiveBackgroundColor;
|
|
82
|
+
buttonTokens.secondaryActiveBackgroundColor = (_subLightness3 = subLightness(18, theme === null || theme === void 0 ? void 0 : (_theme$button10 = theme.button) === null || _theme$button10 === void 0 ? void 0 : _theme$button10.baseColor)) !== null && _subLightness3 !== void 0 ? _subLightness3 : buttonTokens.secondaryActiveBackgroundColor;
|
|
83
|
+
buttonTokens.textHoverBackgroundColor = (_addLightness2 = addLightness(57, theme === null || theme === void 0 ? void 0 : (_theme$button11 = theme.button) === null || _theme$button11 === void 0 ? void 0 : _theme$button11.baseColor)) !== null && _addLightness2 !== void 0 ? _addLightness2 : buttonTokens.textHoverBackgroundColor;
|
|
84
|
+
buttonTokens.textActiveBackgroundColor = (_addLightness3 = addLightness(52, theme === null || theme === void 0 ? void 0 : (_theme$button12 = theme.button) === null || _theme$button12 === void 0 ? void 0 : _theme$button12.baseColor)) !== null && _addLightness3 !== void 0 ? _addLightness3 : buttonTokens.textActiveBackgroundColor;
|
|
111
85
|
var checkboxTokens = componentTokensCopy.checkbox;
|
|
112
86
|
checkboxTokens.backgroundColorChecked = (_theme$checkbox$baseC = theme === null || theme === void 0 ? void 0 : (_theme$checkbox = theme.checkbox) === null || _theme$checkbox === void 0 ? void 0 : _theme$checkbox.baseColor) !== null && _theme$checkbox$baseC !== void 0 ? _theme$checkbox$baseC : checkboxTokens.backgroundColorChecked;
|
|
113
87
|
checkboxTokens.borderColor = (_theme$checkbox$baseC2 = theme === null || theme === void 0 ? void 0 : (_theme$checkbox2 = theme.checkbox) === null || _theme$checkbox2 === void 0 ? void 0 : _theme$checkbox2.baseColor) !== null && _theme$checkbox$baseC2 !== void 0 ? _theme$checkbox$baseC2 : checkboxTokens.borderColor;
|
|
114
88
|
checkboxTokens.checkColor = (_theme$checkbox$check = theme === null || theme === void 0 ? void 0 : (_theme$checkbox3 = theme.checkbox) === null || _theme$checkbox3 === void 0 ? void 0 : _theme$checkbox3.checkColor) !== null && _theme$checkbox$check !== void 0 ? _theme$checkbox$check : checkboxTokens.checkColor;
|
|
115
89
|
checkboxTokens.fontColor = (_theme$checkbox$fontC = theme === null || theme === void 0 ? void 0 : (_theme$checkbox4 = theme.checkbox) === null || _theme$checkbox4 === void 0 ? void 0 : _theme$checkbox4.fontColor) !== null && _theme$checkbox$fontC !== void 0 ? _theme$checkbox$fontC : checkboxTokens.fontColor;
|
|
116
|
-
checkboxTokens.hoverBackgroundColorChecked = (_subLightness4 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$checkbox5 = theme.checkbox) === null || _theme$checkbox5 === void 0 ? void 0 : _theme$checkbox5.baseColor
|
|
117
|
-
checkboxTokens.hoverBorderColor = (_subLightness5 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$checkbox6 = theme.checkbox) === null || _theme$checkbox6 === void 0 ? void 0 : _theme$checkbox6.baseColor
|
|
90
|
+
checkboxTokens.hoverBackgroundColorChecked = (_subLightness4 = subLightness(15, theme === null || theme === void 0 ? void 0 : (_theme$checkbox5 = theme.checkbox) === null || _theme$checkbox5 === void 0 ? void 0 : _theme$checkbox5.baseColor)) !== null && _subLightness4 !== void 0 ? _subLightness4 : checkboxTokens.hoverBackgroundColorChecked;
|
|
91
|
+
checkboxTokens.hoverBorderColor = (_subLightness5 = subLightness(15, theme === null || theme === void 0 ? void 0 : (_theme$checkbox6 = theme.checkbox) === null || _theme$checkbox6 === void 0 ? void 0 : _theme$checkbox6.baseColor)) !== null && _subLightness5 !== void 0 ? _subLightness5 : checkboxTokens.hoverBorderColor;
|
|
118
92
|
var chipTokens = componentTokensCopy.chip;
|
|
119
93
|
chipTokens.backgroundColor = (_theme$chip$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$chip = theme.chip) === null || _theme$chip === void 0 ? void 0 : _theme$chip.baseColor) !== null && _theme$chip$baseColor !== void 0 ? _theme$chip$baseColor : chipTokens.backgroundColor;
|
|
120
94
|
chipTokens.fontColor = (_theme$chip$fontColor = theme === null || theme === void 0 ? void 0 : (_theme$chip2 = theme.chip) === null || _theme$chip2 === void 0 ? void 0 : _theme$chip2.fontColor) !== null && _theme$chip$fontColor !== void 0 ? _theme$chip$fontColor : chipTokens.fontColor;
|
|
121
|
-
chipTokens.iconColor = (_theme$chip$
|
|
95
|
+
chipTokens.iconColor = (_theme$chip$iconColor = theme === null || theme === void 0 ? void 0 : (_theme$chip3 = theme.chip) === null || _theme$chip3 === void 0 ? void 0 : _theme$chip3.iconColor) !== null && _theme$chip$iconColor !== void 0 ? _theme$chip$iconColor : chipTokens.iconColor;
|
|
96
|
+
chipTokens.hoverIconColor = (_subLightness6 = subLightness(10, theme === null || theme === void 0 ? void 0 : (_theme$chip4 = theme.chip) === null || _theme$chip4 === void 0 ? void 0 : _theme$chip4.iconColor)) !== null && _subLightness6 !== void 0 ? _subLightness6 : chipTokens.hoverIconColor;
|
|
97
|
+
chipTokens.activeIconColor = (_subLightness7 = subLightness(30, theme === null || theme === void 0 ? void 0 : (_theme$chip5 = theme.chip) === null || _theme$chip5 === void 0 ? void 0 : _theme$chip5.iconColor)) !== null && _subLightness7 !== void 0 ? _subLightness7 : chipTokens.activeIconColor;
|
|
122
98
|
var dateTokens = componentTokensCopy.dateInput;
|
|
123
|
-
dateTokens.
|
|
124
|
-
dateTokens.
|
|
125
|
-
dateTokens.
|
|
99
|
+
dateTokens.pickerSelectedBackgroundColor = (_theme$dateInput$base = theme === null || theme === void 0 ? void 0 : (_theme$dateInput = theme.dateInput) === null || _theme$dateInput === void 0 ? void 0 : _theme$dateInput.baseColor) !== null && _theme$dateInput$base !== void 0 ? _theme$dateInput$base : dateTokens.pickerSelectedBackgroundColor;
|
|
100
|
+
dateTokens.pickerSelectedFontColor = (_theme$dateInput$sele = theme === null || theme === void 0 ? void 0 : (_theme$dateInput2 = theme.dateInput) === null || _theme$dateInput2 === void 0 ? void 0 : _theme$dateInput2.selectedFontColor) !== null && _theme$dateInput$sele !== void 0 ? _theme$dateInput$sele : dateTokens.pickerSelectedFontColor;
|
|
101
|
+
dateTokens.pickerActiveBackgroundColor = (_subLightness8 = subLightness(8, theme === null || theme === void 0 ? void 0 : (_theme$dateInput3 = theme.dateInput) === null || _theme$dateInput3 === void 0 ? void 0 : _theme$dateInput3.baseColor)) !== null && _subLightness8 !== void 0 ? _subLightness8 : dateTokens.pickerActiveBackgroundColor;
|
|
102
|
+
dateTokens.pickerActiveFontColor = (_theme$dateInput$sele2 = theme === null || theme === void 0 ? void 0 : (_theme$dateInput4 = theme.dateInput) === null || _theme$dateInput4 === void 0 ? void 0 : _theme$dateInput4.selectedFontColor) !== null && _theme$dateInput$sele2 !== void 0 ? _theme$dateInput$sele2 : dateTokens.pickerActiveFontColor;
|
|
103
|
+
dateTokens.pickerCurrentYearFontColor = (_theme$dateInput$base2 = theme === null || theme === void 0 ? void 0 : (_theme$dateInput5 = theme.dateInput) === null || _theme$dateInput5 === void 0 ? void 0 : _theme$dateInput5.baseColor) !== null && _theme$dateInput$base2 !== void 0 ? _theme$dateInput$base2 : dateTokens.pickerCurrentYearFontColor;
|
|
104
|
+
dateTokens.pickerHeaderActiveBackgroundColor = (_subLightness9 = subLightness(8, theme === null || theme === void 0 ? void 0 : (_theme$dateInput6 = theme.dateInput) === null || _theme$dateInput6 === void 0 ? void 0 : _theme$dateInput6.baseColor)) !== null && _subLightness9 !== void 0 ? _subLightness9 : dateTokens.pickerHeaderActiveBackgroundColor;
|
|
105
|
+
dateTokens.pickerHeaderActiveFontColor = (_theme$dateInput$sele3 = theme === null || theme === void 0 ? void 0 : (_theme$dateInput7 = theme.dateInput) === null || _theme$dateInput7 === void 0 ? void 0 : _theme$dateInput7.selectedFontColor) !== null && _theme$dateInput$sele3 !== void 0 ? _theme$dateInput$sele3 : dateTokens.pickerHeaderActiveFontColor;
|
|
106
|
+
dateTokens.pickerHoverBackgroundColor = (_addLightness4 = addLightness(52, theme === null || theme === void 0 ? void 0 : (_theme$dateInput8 = theme.dateInput) === null || _theme$dateInput8 === void 0 ? void 0 : _theme$dateInput8.baseColor)) !== null && _addLightness4 !== void 0 ? _addLightness4 : dateTokens.pickerHoverBackgroundColor;
|
|
107
|
+
dateTokens.pickerCurrentDateBorderColor = (_addLightness5 = addLightness(42, theme === null || theme === void 0 ? void 0 : (_theme$dateInput9 = theme.dateInput) === null || _theme$dateInput9 === void 0 ? void 0 : _theme$dateInput9.baseColor)) !== null && _addLightness5 !== void 0 ? _addLightness5 : dateTokens.pickerCurrentDateBorderColor;
|
|
108
|
+
dateTokens.pickerHeaderHoverBackgroundColor = (_addLightness6 = addLightness(52, theme === null || theme === void 0 ? void 0 : (_theme$dateInput10 = theme.dateInput) === null || _theme$dateInput10 === void 0 ? void 0 : _theme$dateInput10.baseColor)) !== null && _addLightness6 !== void 0 ? _addLightness6 : dateTokens.pickerHeaderHoverBackgroundColor;
|
|
109
|
+
var dialogTokens = componentTokensCopy.dialog;
|
|
110
|
+
dialogTokens.backgroundColor = (_theme$dialog$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$dialog = theme.dialog) === null || _theme$dialog === void 0 ? void 0 : _theme$dialog.baseColor) !== null && _theme$dialog$baseCol !== void 0 ? _theme$dialog$baseCol : dialogTokens.backgroundColor;
|
|
111
|
+
dialogTokens.closeIconColor = (_theme$dialog$closeIc = theme === null || theme === void 0 ? void 0 : (_theme$dialog2 = theme.dialog) === null || _theme$dialog2 === void 0 ? void 0 : _theme$dialog2.closeIconColor) !== null && _theme$dialog$closeIc !== void 0 ? _theme$dialog$closeIc : dialogTokens.closeIconColor;
|
|
112
|
+
dialogTokens.overlayColor = (_theme$dialog$overlay = theme === null || theme === void 0 ? void 0 : (_theme$dialog3 = theme.dialog) === null || _theme$dialog3 === void 0 ? void 0 : _theme$dialog3.overlayColor) !== null && _theme$dialog$overlay !== void 0 ? _theme$dialog$overlay : dialogTokens.overlayColor;
|
|
126
113
|
var dropdownTokens = componentTokensCopy.dropdown;
|
|
127
114
|
dropdownTokens.buttonBackgroundColor = (_theme$dropdown$baseC = theme === null || theme === void 0 ? void 0 : (_theme$dropdown = theme.dropdown) === null || _theme$dropdown === void 0 ? void 0 : _theme$dropdown.baseColor) !== null && _theme$dropdown$baseC !== void 0 ? _theme$dropdown$baseC : dropdownTokens.buttonBackgroundColor;
|
|
128
115
|
dropdownTokens.buttonFontColor = (_theme$dropdown$fontC = theme === null || theme === void 0 ? void 0 : (_theme$dropdown2 = theme.dropdown) === null || _theme$dropdown2 === void 0 ? void 0 : _theme$dropdown2.fontColor) !== null && _theme$dropdown$fontC !== void 0 ? _theme$dropdown$fontC : dropdownTokens.buttonFontColor;
|
|
129
|
-
dropdownTokens.
|
|
130
|
-
dropdownTokens.
|
|
131
|
-
dropdownTokens.
|
|
132
|
-
dropdownTokens.
|
|
133
|
-
dropdownTokens.
|
|
134
|
-
dropdownTokens.
|
|
135
|
-
dropdownTokens.
|
|
136
|
-
dropdownTokens.
|
|
116
|
+
dropdownTokens.buttonIconColor = (_theme$dropdown$fontC2 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown3 = theme.dropdown) === null || _theme$dropdown3 === void 0 ? void 0 : _theme$dropdown3.fontColor) !== null && _theme$dropdown$fontC2 !== void 0 ? _theme$dropdown$fontC2 : dropdownTokens.caretIconColor;
|
|
117
|
+
dropdownTokens.caretIconColor = (_theme$dropdown$fontC3 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown4 = theme.dropdown) === null || _theme$dropdown4 === void 0 ? void 0 : _theme$dropdown4.fontColor) !== null && _theme$dropdown$fontC3 !== void 0 ? _theme$dropdown$fontC3 : dropdownTokens.caretIconColor;
|
|
118
|
+
dropdownTokens.optionFontColor = (_theme$dropdown$optio = theme === null || theme === void 0 ? void 0 : (_theme$dropdown5 = theme.dropdown) === null || _theme$dropdown5 === void 0 ? void 0 : _theme$dropdown5.optionFontColor) !== null && _theme$dropdown$optio !== void 0 ? _theme$dropdown$optio : dropdownTokens.optionFontColor;
|
|
119
|
+
dropdownTokens.optionIconColor = (_theme$dropdown$optio2 = theme === null || theme === void 0 ? void 0 : (_theme$dropdown6 = theme.dropdown) === null || _theme$dropdown6 === void 0 ? void 0 : _theme$dropdown6.optionFontColor) !== null && _theme$dropdown$optio2 !== void 0 ? _theme$dropdown$optio2 : dropdownTokens.optionIconColor;
|
|
120
|
+
dropdownTokens.hoverButtonBackgroundColor = (_subLightness10 = subLightness(5, theme === null || theme === void 0 ? void 0 : (_theme$dropdown7 = theme.dropdown) === null || _theme$dropdown7 === void 0 ? void 0 : _theme$dropdown7.baseColor)) !== null && _subLightness10 !== void 0 ? _subLightness10 : dropdownTokens.hoverButtonBackgroundColor;
|
|
121
|
+
dropdownTokens.activeButtonBackgroundColor = (_subLightness11 = subLightness(12, theme === null || theme === void 0 ? void 0 : (_theme$dropdown8 = theme.dropdown) === null || _theme$dropdown8 === void 0 ? void 0 : _theme$dropdown8.baseColor)) !== null && _subLightness11 !== void 0 ? _subLightness11 : dropdownTokens.activeButtonBackgroundColor;
|
|
122
|
+
dropdownTokens.hoverOptionBackgroundColor = (_subLightness12 = subLightness(5, theme === null || theme === void 0 ? void 0 : (_theme$dropdown9 = theme.dropdown) === null || _theme$dropdown9 === void 0 ? void 0 : _theme$dropdown9.baseColor)) !== null && _subLightness12 !== void 0 ? _subLightness12 : dropdownTokens.hoverOptionBackgroundColor;
|
|
123
|
+
dropdownTokens.activeOptionBackgroundColor = (_subLightness13 = subLightness(20, theme === null || theme === void 0 ? void 0 : (_theme$dropdown10 = theme.dropdown) === null || _theme$dropdown10 === void 0 ? void 0 : _theme$dropdown10.baseColor)) !== null && _subLightness13 !== void 0 ? _subLightness13 : dropdownTokens.activeOptionBackgroundColor;
|
|
137
124
|
var fileInputTokens = componentTokensCopy.fileInput;
|
|
138
125
|
fileInputTokens.labelFontColor = (_theme$fileInput$font = theme === null || theme === void 0 ? void 0 : (_theme$fileInput = theme.fileInput) === null || _theme$fileInput === void 0 ? void 0 : _theme$fileInput.fontColor) !== null && _theme$fileInput$font !== void 0 ? _theme$fileInput$font : fileInputTokens.labelFontColor;
|
|
139
126
|
fileInputTokens.helperTextFontColor = (_theme$fileInput$font2 = theme === null || theme === void 0 ? void 0 : (_theme$fileInput2 = theme.fileInput) === null || _theme$fileInput2 === void 0 ? void 0 : _theme$fileInput2.fontColor) !== null && _theme$fileInput$font2 !== void 0 ? _theme$fileInput$font2 : fileInputTokens.helperTextFontColor;
|
|
@@ -152,10 +139,22 @@ var parseTheme = function parseTheme(theme) {
|
|
|
152
139
|
headerTokens.menuBackgroundColor = (_theme$header$menuBas = theme === null || theme === void 0 ? void 0 : (_theme$header3 = theme.header) === null || _theme$header3 === void 0 ? void 0 : _theme$header3.menuBaseColor) !== null && _theme$header$menuBas !== void 0 ? _theme$header$menuBas : headerTokens.menuBackgroundColor;
|
|
153
140
|
headerTokens.hamburguerFontColor = (_theme$header$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$header4 = theme.header) === null || _theme$header4 === void 0 ? void 0 : _theme$header4.fontColor) !== null && _theme$header$fontCol !== void 0 ? _theme$header$fontCol : headerTokens.hamburguerFontColor;
|
|
154
141
|
headerTokens.hamburguerIconColor = (_theme$header$hamburg = theme === null || theme === void 0 ? void 0 : (_theme$header5 = theme.header) === null || _theme$header5 === void 0 ? void 0 : _theme$header5.hamburguerColor) !== null && _theme$header$hamburg !== void 0 ? _theme$header$hamburg : headerTokens.hamburguerIconColor;
|
|
155
|
-
headerTokens.hamburguerHoverColor = (
|
|
142
|
+
headerTokens.hamburguerHoverColor = (_addLightness7 = addLightness(90, theme === null || theme === void 0 ? void 0 : (_theme$header6 = theme.header) === null || _theme$header6 === void 0 ? void 0 : _theme$header6.hamburguerColor)) !== null && _addLightness7 !== void 0 ? _addLightness7 : headerTokens.hamburguerHoverColor;
|
|
156
143
|
headerTokens.logo = (_theme$header$logo = theme === null || theme === void 0 ? void 0 : (_theme$header7 = theme.header) === null || _theme$header7 === void 0 ? void 0 : _theme$header7.logo) !== null && _theme$header$logo !== void 0 ? _theme$header$logo : headerTokens.logo;
|
|
157
144
|
headerTokens.logoResponsive = (_theme$header$logoRes = theme === null || theme === void 0 ? void 0 : (_theme$header8 = theme.header) === null || _theme$header8 === void 0 ? void 0 : _theme$header8.logoResponsive) !== null && _theme$header$logoRes !== void 0 ? _theme$header$logoRes : headerTokens.logoResponsive;
|
|
158
145
|
headerTokens.contentColor = (_theme$header$content = theme === null || theme === void 0 ? void 0 : (_theme$header9 = theme.header) === null || _theme$header9 === void 0 ? void 0 : _theme$header9.contentColor) !== null && _theme$header$content !== void 0 ? _theme$header$content : headerTokens.contentColor;
|
|
146
|
+
headerTokens.overlayColor = (_theme$header$overlay = theme === null || theme === void 0 ? void 0 : (_theme$header10 = theme.header) === null || _theme$header10 === void 0 ? void 0 : _theme$header10.overlayColor) !== null && _theme$header$overlay !== void 0 ? _theme$header$overlay : headerTokens.overlayColor;
|
|
147
|
+
var linkTokens = componentTokensCopy.link;
|
|
148
|
+
linkTokens.visitedFontColor = (_theme$link$baseColor = theme === null || theme === void 0 ? void 0 : (_theme$link = theme.link) === null || _theme$link === void 0 ? void 0 : _theme$link.baseColor) !== null && _theme$link$baseColor !== void 0 ? _theme$link$baseColor : linkTokens.visitedFontColor;
|
|
149
|
+
linkTokens.visitedUnderlineColor = (_theme$link$baseColor2 = theme === null || theme === void 0 ? void 0 : (_theme$link2 = theme.link) === null || _theme$link2 === void 0 ? void 0 : _theme$link2.baseColor) !== null && _theme$link$baseColor2 !== void 0 ? _theme$link$baseColor2 : linkTokens.visitedUnderlineColor;
|
|
150
|
+
var navTabsTokens = componentTokensCopy.navTabs;
|
|
151
|
+
navTabsTokens.selectedFontColor = (_theme$navTabs$baseCo = theme === null || theme === void 0 ? void 0 : (_theme$navTabs = theme.navTabs) === null || _theme$navTabs === void 0 ? void 0 : _theme$navTabs.baseColor) !== null && _theme$navTabs$baseCo !== void 0 ? _theme$navTabs$baseCo : navTabsTokens.selectedFontColor;
|
|
152
|
+
navTabsTokens.unselectedFontColor = (_theme$navTabs$baseCo2 = theme === null || theme === void 0 ? void 0 : (_theme$navTabs2 = theme.navTabs) === null || _theme$navTabs2 === void 0 ? void 0 : _theme$navTabs2.baseColor) !== null && _theme$navTabs$baseCo2 !== void 0 ? _theme$navTabs$baseCo2 : navTabsTokens.selectedFontColor;
|
|
153
|
+
navTabsTokens.selectedIconColor = (_theme$navTabs$baseCo3 = theme === null || theme === void 0 ? void 0 : (_theme$navTabs3 = theme.navTabs) === null || _theme$navTabs3 === void 0 ? void 0 : _theme$navTabs3.baseColor) !== null && _theme$navTabs$baseCo3 !== void 0 ? _theme$navTabs$baseCo3 : navTabsTokens.selectedIconColor;
|
|
154
|
+
navTabsTokens.unselectedIconColor = (_theme$navTabs$baseCo4 = theme === null || theme === void 0 ? void 0 : (_theme$navTabs4 = theme.navTabs) === null || _theme$navTabs4 === void 0 ? void 0 : _theme$navTabs4.baseColor) !== null && _theme$navTabs$baseCo4 !== void 0 ? _theme$navTabs$baseCo4 : navTabsTokens.selectedIconColor;
|
|
155
|
+
navTabsTokens.selectedUnderlineColor = (_theme$navTabs$accent = theme === null || theme === void 0 ? void 0 : (_theme$navTabs5 = theme.navTabs) === null || _theme$navTabs5 === void 0 ? void 0 : _theme$navTabs5.accentColor) !== null && _theme$navTabs$accent !== void 0 ? _theme$navTabs$accent : navTabsTokens.selectedUnderlineColor;
|
|
156
|
+
navTabsTokens.hoverBackgroundColor = (_addLightness8 = addLightness(55, theme === null || theme === void 0 ? void 0 : (_theme$navTabs6 = theme.navTabs) === null || _theme$navTabs6 === void 0 ? void 0 : _theme$navTabs6.baseColor)) !== null && _addLightness8 !== void 0 ? _addLightness8 : navTabsTokens.hoverBackgroundColor;
|
|
157
|
+
navTabsTokens.pressedBackgroundColor = (_addLightness9 = addLightness(50, theme === null || theme === void 0 ? void 0 : (_theme$navTabs7 = theme.navTabs) === null || _theme$navTabs7 === void 0 ? void 0 : _theme$navTabs7.baseColor)) !== null && _addLightness9 !== void 0 ? _addLightness9 : navTabsTokens.pressedBackgroundColor;
|
|
159
158
|
var paginatorTokens = componentTokensCopy.paginator;
|
|
160
159
|
paginatorTokens.backgroundColor = (_theme$paginator$base = theme === null || theme === void 0 ? void 0 : (_theme$paginator = theme.paginator) === null || _theme$paginator === void 0 ? void 0 : _theme$paginator.baseColor) !== null && _theme$paginator$base !== void 0 ? _theme$paginator$base : paginatorTokens.backgroundColor;
|
|
161
160
|
paginatorTokens.fontColor = (_theme$paginator$font = theme === null || theme === void 0 ? void 0 : (_theme$paginator2 = theme.paginator) === null || _theme$paginator2 === void 0 ? void 0 : _theme$paginator2.fontColor) !== null && _theme$paginator$font !== void 0 ? _theme$paginator$font : paginatorTokens.fontColor;
|
|
@@ -165,25 +164,29 @@ var parseTheme = function parseTheme(theme) {
|
|
|
165
164
|
progressBarTokens.labelFontColor = (_theme$progressBar$fo = theme === null || theme === void 0 ? void 0 : (_theme$progressBar3 = theme.progressBar) === null || _theme$progressBar3 === void 0 ? void 0 : _theme$progressBar3.fontColor) !== null && _theme$progressBar$fo !== void 0 ? _theme$progressBar$fo : progressBarTokens.labelFontColor;
|
|
166
165
|
progressBarTokens.valueFontColor = (_theme$progressBar$fo2 = theme === null || theme === void 0 ? void 0 : (_theme$progressBar4 = theme.progressBar) === null || _theme$progressBar4 === void 0 ? void 0 : _theme$progressBar4.fontColor) !== null && _theme$progressBar$fo2 !== void 0 ? _theme$progressBar$fo2 : progressBarTokens.valueFontColor;
|
|
167
166
|
progressBarTokens.helperTextFontColor = (_theme$progressBar$fo3 = theme === null || theme === void 0 ? void 0 : (_theme$progressBar5 = theme.progressBar) === null || _theme$progressBar5 === void 0 ? void 0 : _theme$progressBar5.fontColor) !== null && _theme$progressBar$fo3 !== void 0 ? _theme$progressBar$fo3 : progressBarTokens.helperTextFontColor;
|
|
167
|
+
progressBarTokens.overlayColor = (_theme$progressBar$ov = theme === null || theme === void 0 ? void 0 : (_theme$progressBar6 = theme.progressBar) === null || _theme$progressBar6 === void 0 ? void 0 : _theme$progressBar6.overlayColor) !== null && _theme$progressBar$ov !== void 0 ? _theme$progressBar$ov : progressBarTokens.overlayColor;
|
|
168
|
+
progressBarTokens.overlayFontColor = (_theme$progressBar$ov2 = theme === null || theme === void 0 ? void 0 : (_theme$progressBar7 = theme.progressBar) === null || _theme$progressBar7 === void 0 ? void 0 : _theme$progressBar7.overlayFontColor) !== null && _theme$progressBar$ov2 !== void 0 ? _theme$progressBar$ov2 : progressBarTokens.overlayFontColor;
|
|
168
169
|
var quickNavTokens = componentTokensCopy.quickNav;
|
|
169
170
|
quickNavTokens.fontColor = (_theme$quickNav$fontC = theme === null || theme === void 0 ? void 0 : (_theme$quickNav = theme.quickNav) === null || _theme$quickNav === void 0 ? void 0 : _theme$quickNav.fontColor) !== null && _theme$quickNav$fontC !== void 0 ? _theme$quickNav$fontC : quickNavTokens.fontColor;
|
|
170
|
-
quickNavTokens.
|
|
171
|
-
quickNavTokens.hoverFontColor = (_setOpacity8 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$quickNav3 = theme.quickNav) === null || _theme$quickNav3 === void 0 ? void 0 : _theme$quickNav3.accentColor, 0.7)) !== null && _setOpacity8 !== void 0 ? _setOpacity8 : quickNavTokens.hoverFontColor;
|
|
171
|
+
quickNavTokens.hoverFontColor = (_theme$quickNav$accen = theme === null || theme === void 0 ? void 0 : (_theme$quickNav2 = theme.quickNav) === null || _theme$quickNav2 === void 0 ? void 0 : _theme$quickNav2.accentColor) !== null && _theme$quickNav$accen !== void 0 ? _theme$quickNav$accen : quickNavTokens.hoverFontColor;
|
|
172
172
|
var radioGroupTokens = componentTokensCopy.radioGroup;
|
|
173
173
|
radioGroupTokens.radioInputColor = (_theme$radioGroup$bas = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup = theme.radioGroup) === null || _theme$radioGroup === void 0 ? void 0 : _theme$radioGroup.baseColor) !== null && _theme$radioGroup$bas !== void 0 ? _theme$radioGroup$bas : radioGroupTokens.radioInputColor;
|
|
174
174
|
radioGroupTokens.labelFontColor = (_theme$radioGroup$fon = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup2 = theme.radioGroup) === null || _theme$radioGroup2 === void 0 ? void 0 : _theme$radioGroup2.fontColor) !== null && _theme$radioGroup$fon !== void 0 ? _theme$radioGroup$fon : radioGroupTokens.labelFontColor;
|
|
175
175
|
radioGroupTokens.helperTextFontColor = (_theme$radioGroup$fon2 = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup3 = theme.radioGroup) === null || _theme$radioGroup3 === void 0 ? void 0 : _theme$radioGroup3.fontColor) !== null && _theme$radioGroup$fon2 !== void 0 ? _theme$radioGroup$fon2 : radioGroupTokens.helperTextFontColor;
|
|
176
176
|
radioGroupTokens.radioInputLabelFontColor = (_theme$radioGroup$fon3 = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup4 = theme.radioGroup) === null || _theme$radioGroup4 === void 0 ? void 0 : _theme$radioGroup4.fontColor) !== null && _theme$radioGroup$fon3 !== void 0 ? _theme$radioGroup$fon3 : radioGroupTokens.radioInputLabelFontColor;
|
|
177
|
+
radioGroupTokens.hoverRadioInputColor = (_subLightness14 = subLightness(10, theme === null || theme === void 0 ? void 0 : (_theme$radioGroup5 = theme.radioGroup) === null || _theme$radioGroup5 === void 0 ? void 0 : _theme$radioGroup5.baseColor)) !== null && _subLightness14 !== void 0 ? _subLightness14 : radioGroupTokens.radioInputColor;
|
|
178
|
+
radioGroupTokens.activeRadioInputColor = (_subLightness15 = subLightness(25, theme === null || theme === void 0 ? void 0 : (_theme$radioGroup6 = theme.radioGroup) === null || _theme$radioGroup6 === void 0 ? void 0 : _theme$radioGroup6.baseColor)) !== null && _subLightness15 !== void 0 ? _subLightness15 : radioGroupTokens.radioInputColor;
|
|
177
179
|
var selectTokens = componentTokensCopy.select;
|
|
178
180
|
selectTokens.selectedListOptionBackgroundColor = (_theme$select$selecte = theme === null || theme === void 0 ? void 0 : (_theme$select = theme.select) === null || _theme$select === void 0 ? void 0 : _theme$select.selectedOptionBackgroundColor) !== null && _theme$select$selecte !== void 0 ? _theme$select$selecte : selectTokens.selectedListOptionBackgroundColor;
|
|
179
181
|
selectTokens.valueFontColor = (_theme$select$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$select2 = theme.select) === null || _theme$select2 === void 0 ? void 0 : _theme$select2.fontColor) !== null && _theme$select$fontCol !== void 0 ? _theme$select$fontCol : selectTokens.valueFontColor;
|
|
180
182
|
selectTokens.labelFontColor = (_theme$select$fontCol2 = theme === null || theme === void 0 ? void 0 : (_theme$select3 = theme.select) === null || _theme$select3 === void 0 ? void 0 : _theme$select3.fontColor) !== null && _theme$select$fontCol2 !== void 0 ? _theme$select$fontCol2 : selectTokens.labelFontColor;
|
|
181
183
|
selectTokens.helperTextFontColor = (_theme$select$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$select4 = theme.select) === null || _theme$select4 === void 0 ? void 0 : _theme$select4.fontColor) !== null && _theme$select$fontCol3 !== void 0 ? _theme$select$fontCol3 : selectTokens.helperTextFontColor;
|
|
182
|
-
selectTokens.listOptionFontColor = (_theme$select$optionF = theme === null || theme === void 0 ? void 0 : (_theme$select5 = theme.select) === null || _theme$select5 === void 0 ? void 0 : _theme$select5.optionFontColor) !== null && _theme$select$optionF !== void 0 ? _theme$select$optionF : selectTokens.
|
|
183
|
-
selectTokens.placeholderFontColor = (
|
|
184
|
+
selectTokens.listOptionFontColor = (_theme$select$optionF = theme === null || theme === void 0 ? void 0 : (_theme$select5 = theme.select) === null || _theme$select5 === void 0 ? void 0 : _theme$select5.optionFontColor) !== null && _theme$select$optionF !== void 0 ? _theme$select$optionF : selectTokens.listOptionFontColor;
|
|
185
|
+
selectTokens.placeholderFontColor = (_addLightness10 = addLightness(30, theme === null || theme === void 0 ? void 0 : (_theme$select6 = theme.select) === null || _theme$select6 === void 0 ? void 0 : _theme$select6.fontColor)) !== null && _addLightness10 !== void 0 ? _addLightness10 : selectTokens.placeholderFontColor;
|
|
184
186
|
selectTokens.collapseIndicatorColor = (_theme$select$fontCol4 = theme === null || theme === void 0 ? void 0 : (_theme$select7 = theme.select) === null || _theme$select7 === void 0 ? void 0 : _theme$select7.fontColor) !== null && _theme$select$fontCol4 !== void 0 ? _theme$select$fontCol4 : selectTokens.collapseIndicatorColor;
|
|
185
|
-
selectTokens.
|
|
186
|
-
selectTokens.
|
|
187
|
+
selectTokens.hoverInputBorderColor = (_theme$select$hoverBo = theme === null || theme === void 0 ? void 0 : (_theme$select8 = theme.select) === null || _theme$select8 === void 0 ? void 0 : _theme$select8.hoverBorderColor) !== null && _theme$select$hoverBo !== void 0 ? _theme$select$hoverBo : selectTokens.hoverInputBorderColor;
|
|
188
|
+
selectTokens.selectedHoverListOptionBackgroundColor = (_subLightness16 = subLightness(5, theme === null || theme === void 0 ? void 0 : (_theme$select9 = theme.select) === null || _theme$select9 === void 0 ? void 0 : _theme$select9.selectedOptionBackgroundColor)) !== null && _subLightness16 !== void 0 ? _subLightness16 : selectTokens.selectedHoverListOptionBackgroundColor;
|
|
189
|
+
selectTokens.selectedActiveListOptionBackgroundColor = (_subLightness17 = subLightness(15, theme === null || theme === void 0 ? void 0 : (_theme$select10 = theme.select) === null || _theme$select10 === void 0 ? void 0 : _theme$select10.selectedOptionBackgroundColor)) !== null && _subLightness17 !== void 0 ? _subLightness17 : selectTokens.selectedActiveListOptionBackgroundColor;
|
|
187
190
|
var sideNavTokens = componentTokensCopy.sidenav;
|
|
188
191
|
sideNavTokens.backgroundColor = (_theme$sidenav$baseCo = theme === null || theme === void 0 ? void 0 : (_theme$sidenav = theme.sidenav) === null || _theme$sidenav === void 0 ? void 0 : _theme$sidenav.baseColor) !== null && _theme$sidenav$baseCo !== void 0 ? _theme$sidenav$baseCo : sideNavTokens.backgroundColor;
|
|
189
192
|
var sliderTokens = componentTokensCopy.slider;
|
|
@@ -194,18 +197,21 @@ var parseTheme = function parseTheme(theme) {
|
|
|
194
197
|
sliderTokens.focusThumbBackgroundColor = (_theme$slider$baseCol2 = theme === null || theme === void 0 ? void 0 : (_theme$slider5 = theme.slider) === null || _theme$slider5 === void 0 ? void 0 : _theme$slider5.baseColor) !== null && _theme$slider$baseCol2 !== void 0 ? _theme$slider$baseCol2 : sliderTokens.focusThumbBackgroundColor;
|
|
195
198
|
sliderTokens.tickBackgroundColor = (_theme$slider$baseCol3 = theme === null || theme === void 0 ? void 0 : (_theme$slider6 = theme.slider) === null || _theme$slider6 === void 0 ? void 0 : _theme$slider6.baseColor) !== null && _theme$slider$baseCol3 !== void 0 ? _theme$slider$baseCol3 : sliderTokens.tickBackgroundColor;
|
|
196
199
|
sliderTokens.trackLineColor = (_theme$slider$baseCol4 = theme === null || theme === void 0 ? void 0 : (_theme$slider7 = theme.slider) === null || _theme$slider7 === void 0 ? void 0 : _theme$slider7.baseColor) !== null && _theme$slider$baseCol4 !== void 0 ? _theme$slider$baseCol4 : sliderTokens.trackLineColor;
|
|
197
|
-
sliderTokens.
|
|
198
|
-
sliderTokens.
|
|
199
|
-
sliderTokens.
|
|
200
|
+
sliderTokens.totalLineColor = (_theme$slider$totalLi = theme === null || theme === void 0 ? void 0 : (_theme$slider8 = theme.slider) === null || _theme$slider8 === void 0 ? void 0 : _theme$slider8.totalLineColor) !== null && _theme$slider$totalLi !== void 0 ? _theme$slider$totalLi : sliderTokens.totalLineColor;
|
|
201
|
+
sliderTokens.hoverThumbBackgroundColor = (_subLightness18 = subLightness(15, theme === null || theme === void 0 ? void 0 : (_theme$slider9 = theme.slider) === null || _theme$slider9 === void 0 ? void 0 : _theme$slider9.baseColor)) !== null && _subLightness18 !== void 0 ? _subLightness18 : sliderTokens.thumbBackgroundColor;
|
|
202
|
+
sliderTokens.activeThumbBackgroundColor = (_subLightness19 = subLightness(15, theme === null || theme === void 0 ? void 0 : (_theme$slider10 = theme.slider) === null || _theme$slider10 === void 0 ? void 0 : _theme$slider10.baseColor)) !== null && _subLightness19 !== void 0 ? _subLightness19 : sliderTokens.thumbBackgroundColor;
|
|
200
203
|
var spinnerTokens = componentTokensCopy.spinner;
|
|
201
204
|
spinnerTokens.trackCircleColor = (_theme$spinner$accent = theme === null || theme === void 0 ? void 0 : (_theme$spinner = theme.spinner) === null || _theme$spinner === void 0 ? void 0 : _theme$spinner.accentColor) !== null && _theme$spinner$accent !== void 0 ? _theme$spinner$accent : spinnerTokens.trackCircleColor;
|
|
202
205
|
spinnerTokens.totalCircleColor = (_theme$spinner$baseCo = theme === null || theme === void 0 ? void 0 : (_theme$spinner2 = theme.spinner) === null || _theme$spinner2 === void 0 ? void 0 : _theme$spinner2.baseColor) !== null && _theme$spinner$baseCo !== void 0 ? _theme$spinner$baseCo : spinnerTokens.totalCircleColor;
|
|
203
|
-
spinnerTokens.
|
|
204
|
-
spinnerTokens.
|
|
206
|
+
spinnerTokens.trackCircleColorOverlay = (_theme$spinner$overla = theme === null || theme === void 0 ? void 0 : (_theme$spinner3 = theme.spinner) === null || _theme$spinner3 === void 0 ? void 0 : _theme$spinner3.overlayColor) !== null && _theme$spinner$overla !== void 0 ? _theme$spinner$overla : spinnerTokens.trackCircleColorOverlay;
|
|
207
|
+
spinnerTokens.labelFontColor = (_theme$spinner$fontCo = theme === null || theme === void 0 ? void 0 : (_theme$spinner4 = theme.spinner) === null || _theme$spinner4 === void 0 ? void 0 : _theme$spinner4.fontColor) !== null && _theme$spinner$fontCo !== void 0 ? _theme$spinner$fontCo : spinnerTokens.labelFontColor;
|
|
208
|
+
spinnerTokens.progressValueFontColor = (_theme$spinner$fontCo2 = theme === null || theme === void 0 ? void 0 : (_theme$spinner5 = theme.spinner) === null || _theme$spinner5 === void 0 ? void 0 : _theme$spinner5.fontColor) !== null && _theme$spinner$fontCo2 !== void 0 ? _theme$spinner$fontCo2 : spinnerTokens.progressValueFontColor;
|
|
209
|
+
spinnerTokens.overlayLabelFontColor = (_theme$spinner$overla2 = theme === null || theme === void 0 ? void 0 : (_theme$spinner6 = theme.spinner) === null || _theme$spinner6 === void 0 ? void 0 : _theme$spinner6.overlayFontColor) !== null && _theme$spinner$overla2 !== void 0 ? _theme$spinner$overla2 : spinnerTokens.overlayLabelFontColor;
|
|
210
|
+
spinnerTokens.overlayProgressValueFontColor = (_theme$spinner$overla3 = theme === null || theme === void 0 ? void 0 : (_theme$spinner7 = theme.spinner) === null || _theme$spinner7 === void 0 ? void 0 : _theme$spinner7.overlayFontColor) !== null && _theme$spinner$overla3 !== void 0 ? _theme$spinner$overla3 : spinnerTokens.overlayProgressValueFontColor;
|
|
205
211
|
var switchTokens = componentTokensCopy["switch"];
|
|
206
212
|
switchTokens.checkedTrackBackgroundColor = (_theme$switch$checked = theme === null || theme === void 0 ? void 0 : (_theme$switch = theme["switch"]) === null || _theme$switch === void 0 ? void 0 : _theme$switch.checkedBaseColor) !== null && _theme$switch$checked !== void 0 ? _theme$switch$checked : switchTokens.checkedTrackBackgroundColor;
|
|
207
213
|
switchTokens.labelFontColor = (_theme$switch$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$switch2 = theme["switch"]) === null || _theme$switch2 === void 0 ? void 0 : _theme$switch2.fontColor) !== null && _theme$switch$fontCol !== void 0 ? _theme$switch$fontCol : switchTokens.labelFontColor;
|
|
208
|
-
switchTokens.disabledCheckedTrackBackgroundColor = (
|
|
214
|
+
switchTokens.disabledCheckedTrackBackgroundColor = (_addLightness11 = addLightness(57, theme === null || theme === void 0 ? void 0 : (_theme$switch3 = theme["switch"]) === null || _theme$switch3 === void 0 ? void 0 : _theme$switch3.checkedBaseColor)) !== null && _addLightness11 !== void 0 ? _addLightness11 : switchTokens.disabledCheckedTrackBackgroundColor;
|
|
209
215
|
var tableTokens = componentTokensCopy.table;
|
|
210
216
|
tableTokens.headerBackgroundColor = (_theme$table$baseColo = theme === null || theme === void 0 ? void 0 : (_theme$table = theme.table) === null || _theme$table === void 0 ? void 0 : _theme$table.baseColor) !== null && _theme$table$baseColo !== void 0 ? _theme$table$baseColo : tableTokens.headerBackgroundColor;
|
|
211
217
|
tableTokens.headerFontColor = (_theme$table$headerFo = theme === null || theme === void 0 ? void 0 : (_theme$table2 = theme.table) === null || _theme$table2 === void 0 ? void 0 : _theme$table2.headerFontColor) !== null && _theme$table$headerFo !== void 0 ? _theme$table$headerFo : tableTokens.headerFontColor;
|
|
@@ -216,8 +222,11 @@ var parseTheme = function parseTheme(theme) {
|
|
|
216
222
|
tabsTokens.selectedIconColor = (_theme$tabs$baseColor2 = theme === null || theme === void 0 ? void 0 : (_theme$tabs2 = theme.tabs) === null || _theme$tabs2 === void 0 ? void 0 : _theme$tabs2.baseColor) !== null && _theme$tabs$baseColor2 !== void 0 ? _theme$tabs$baseColor2 : tabsTokens.selectedIconColor;
|
|
217
223
|
tabsTokens.selectedUnderlineColor = (_theme$tabs$baseColor3 = theme === null || theme === void 0 ? void 0 : (_theme$tabs3 = theme.tabs) === null || _theme$tabs3 === void 0 ? void 0 : _theme$tabs3.baseColor) !== null && _theme$tabs$baseColor3 !== void 0 ? _theme$tabs$baseColor3 : tabsTokens.selectedUnderlineColor;
|
|
218
224
|
tabsTokens.focusOutline = (_theme$tabs$baseColor4 = theme === null || theme === void 0 ? void 0 : (_theme$tabs4 = theme.tabs) === null || _theme$tabs4 === void 0 ? void 0 : _theme$tabs4.baseColor) !== null && _theme$tabs$baseColor4 !== void 0 ? _theme$tabs$baseColor4 : tabsTokens.focusOutline;
|
|
219
|
-
tabsTokens.hoverBackgroundColor = (
|
|
220
|
-
tabsTokens.pressedBackgroundColor = (
|
|
225
|
+
tabsTokens.hoverBackgroundColor = (_addLightness12 = addLightness(57, theme === null || theme === void 0 ? void 0 : (_theme$tabs5 = theme.tabs) === null || _theme$tabs5 === void 0 ? void 0 : _theme$tabs5.baseColor)) !== null && _addLightness12 !== void 0 ? _addLightness12 : tabsTokens.hoverBackgroundColor;
|
|
226
|
+
tabsTokens.pressedBackgroundColor = (_addLightness13 = addLightness(52, theme === null || theme === void 0 ? void 0 : (_theme$tabs6 = theme.tabs) === null || _theme$tabs6 === void 0 ? void 0 : _theme$tabs6.baseColor)) !== null && _addLightness13 !== void 0 ? _addLightness13 : tabsTokens.pressedBackgroundColor;
|
|
227
|
+
var tagTokens = componentTokensCopy.tag;
|
|
228
|
+
tagTokens.fontColor = (_theme$tag$fontColor = theme === null || theme === void 0 ? void 0 : (_theme$tag = theme.tag) === null || _theme$tag === void 0 ? void 0 : _theme$tag.fontColor) !== null && _theme$tag$fontColor !== void 0 ? _theme$tag$fontColor : tagTokens.fontColor;
|
|
229
|
+
tagTokens.iconColor = (_theme$tag$iconColor = theme === null || theme === void 0 ? void 0 : (_theme$tag2 = theme.tag) === null || _theme$tag2 === void 0 ? void 0 : _theme$tag2.iconColor) !== null && _theme$tag$iconColor !== void 0 ? _theme$tag$iconColor : tagTokens.iconColor;
|
|
221
230
|
var textInputTokens = componentTokensCopy.textInput;
|
|
222
231
|
textInputTokens.labelFontColor = (_theme$textInput$font = theme === null || theme === void 0 ? void 0 : (_theme$textInput = theme.textInput) === null || _theme$textInput === void 0 ? void 0 : _theme$textInput.fontColor) !== null && _theme$textInput$font !== void 0 ? _theme$textInput$font : textInputTokens.labelFontColor;
|
|
223
232
|
textInputTokens.helperTextFontColor = (_theme$textInput$font2 = theme === null || theme === void 0 ? void 0 : (_theme$textInput2 = theme.textInput) === null || _theme$textInput2 === void 0 ? void 0 : _theme$textInput2.fontColor) !== null && _theme$textInput$font2 !== void 0 ? _theme$textInput$font2 : textInputTokens.helperTextFontColor;
|
|
@@ -226,35 +235,41 @@ var parseTheme = function parseTheme(theme) {
|
|
|
226
235
|
textInputTokens.hoverActionIconColor = (_theme$textInput$font5 = theme === null || theme === void 0 ? void 0 : (_theme$textInput5 = theme.textInput) === null || _theme$textInput5 === void 0 ? void 0 : _theme$textInput5.fontColor) !== null && _theme$textInput$font5 !== void 0 ? _theme$textInput$font5 : textInputTokens.hoverActionIconColor;
|
|
227
236
|
textInputTokens.focusActionIconColor = (_theme$textInput$font6 = theme === null || theme === void 0 ? void 0 : (_theme$textInput6 = theme.textInput) === null || _theme$textInput6 === void 0 ? void 0 : _theme$textInput6.fontColor) !== null && _theme$textInput$font6 !== void 0 ? _theme$textInput$font6 : textInputTokens.focusActionIconColor;
|
|
228
237
|
textInputTokens.activeActionIconColor = (_theme$textInput$font7 = theme === null || theme === void 0 ? void 0 : (_theme$textInput7 = theme.textInput) === null || _theme$textInput7 === void 0 ? void 0 : _theme$textInput7.fontColor) !== null && _theme$textInput$font7 !== void 0 ? _theme$textInput$font7 : textInputTokens.activeActionIconColor;
|
|
229
|
-
textInputTokens.
|
|
230
|
-
textInputTokens.
|
|
231
|
-
textInputTokens.
|
|
238
|
+
textInputTokens.hoverBorderColor = (_theme$textInput$hove = theme === null || theme === void 0 ? void 0 : (_theme$textInput8 = theme.textInput) === null || _theme$textInput8 === void 0 ? void 0 : _theme$textInput8.hoverBorderColor) !== null && _theme$textInput$hove !== void 0 ? _theme$textInput$hove : textInputTokens.hoverBorderColor;
|
|
239
|
+
textInputTokens.suffixColor = (_addLightness14 = addLightness(40, theme === null || theme === void 0 ? void 0 : (_theme$textInput9 = theme.textInput) === null || _theme$textInput9 === void 0 ? void 0 : _theme$textInput9.fontColor)) !== null && _addLightness14 !== void 0 ? _addLightness14 : textInputTokens.suffixColor;
|
|
240
|
+
textInputTokens.prefixColor = (_addLightness15 = addLightness(40, theme === null || theme === void 0 ? void 0 : (_theme$textInput10 = theme.textInput) === null || _theme$textInput10 === void 0 ? void 0 : _theme$textInput10.fontColor)) !== null && _addLightness15 !== void 0 ? _addLightness15 : textInputTokens.prefixColor;
|
|
241
|
+
textInputTokens.placeholderFontColor = (_addLightness16 = addLightness(30, theme === null || theme === void 0 ? void 0 : (_theme$textInput11 = theme.textInput) === null || _theme$textInput11 === void 0 ? void 0 : _theme$textInput11.fontColor)) !== null && _addLightness16 !== void 0 ? _addLightness16 : textInputTokens.placeholderFontColor;
|
|
242
|
+
var textareaTokens = componentTokensCopy.textarea;
|
|
243
|
+
textareaTokens.labelFontColor = (_theme$textarea$fontC = theme === null || theme === void 0 ? void 0 : (_theme$textarea = theme.textarea) === null || _theme$textarea === void 0 ? void 0 : _theme$textarea.fontColor) !== null && _theme$textarea$fontC !== void 0 ? _theme$textarea$fontC : textareaTokens.labelFontColor;
|
|
244
|
+
textareaTokens.helperTextFontColor = (_theme$textarea$fontC2 = theme === null || theme === void 0 ? void 0 : (_theme$textarea2 = theme.textarea) === null || _theme$textarea2 === void 0 ? void 0 : _theme$textarea2.fontColor) !== null && _theme$textarea$fontC2 !== void 0 ? _theme$textarea$fontC2 : textareaTokens.helperTextFontColor;
|
|
245
|
+
textareaTokens.valueFontColor = (_theme$textarea$fontC3 = theme === null || theme === void 0 ? void 0 : (_theme$textarea3 = theme.textarea) === null || _theme$textarea3 === void 0 ? void 0 : _theme$textarea3.fontColor) !== null && _theme$textarea$fontC3 !== void 0 ? _theme$textarea$fontC3 : textareaTokens.valueFontColor;
|
|
246
|
+
textareaTokens.hoverBorderColor = (_theme$textarea$hover = theme === null || theme === void 0 ? void 0 : (_theme$textarea4 = theme.textarea) === null || _theme$textarea4 === void 0 ? void 0 : _theme$textarea4.hoverBorderColor) !== null && _theme$textarea$hover !== void 0 ? _theme$textarea$hover : textareaTokens.hoverBorderColor;
|
|
247
|
+
textareaTokens.placeholderFontColor = (_addLightness17 = addLightness(30, theme === null || theme === void 0 ? void 0 : (_theme$textarea5 = theme.textarea) === null || _theme$textarea5 === void 0 ? void 0 : _theme$textarea5.fontColor)) !== null && _addLightness17 !== void 0 ? _addLightness17 : textareaTokens.placeholderFontColor;
|
|
232
248
|
var toggleGroupTokens = componentTokensCopy.toggleGroup;
|
|
233
|
-
toggleGroupTokens.selectedBackgroundColor = (_theme$toggleGroup$se = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup = theme.toggleGroup) === null || _theme$toggleGroup === void 0 ? void 0 : _theme$toggleGroup.selectedBaseColor) !== null && _theme$toggleGroup$se !== void 0 ? _theme$toggleGroup$se :
|
|
249
|
+
toggleGroupTokens.selectedBackgroundColor = (_theme$toggleGroup$se = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup = theme.toggleGroup) === null || _theme$toggleGroup === void 0 ? void 0 : _theme$toggleGroup.selectedBaseColor) !== null && _theme$toggleGroup$se !== void 0 ? _theme$toggleGroup$se : toggleGroupTokens.selectedBackgroundColor;
|
|
234
250
|
toggleGroupTokens.selectedFontColor = (_theme$toggleGroup$se2 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup2 = theme.toggleGroup) === null || _theme$toggleGroup2 === void 0 ? void 0 : _theme$toggleGroup2.selectedFontColor) !== null && _theme$toggleGroup$se2 !== void 0 ? _theme$toggleGroup$se2 : toggleGroupTokens.selectedFontColor;
|
|
235
251
|
toggleGroupTokens.unselectedBackgroundColor = (_theme$toggleGroup$un = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup3 = theme.toggleGroup) === null || _theme$toggleGroup3 === void 0 ? void 0 : _theme$toggleGroup3.unselectedBaseColor) !== null && _theme$toggleGroup$un !== void 0 ? _theme$toggleGroup$un : toggleGroupTokens.unselectedBackgroundColor;
|
|
236
252
|
toggleGroupTokens.unselectedActiveBackgroundColor = (_theme$toggleGroup$se3 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup4 = theme.toggleGroup) === null || _theme$toggleGroup4 === void 0 ? void 0 : _theme$toggleGroup4.selectedBaseColor) !== null && _theme$toggleGroup$se3 !== void 0 ? _theme$toggleGroup$se3 : toggleGroupTokens.unselectedActiveBackgroundColor;
|
|
237
253
|
toggleGroupTokens.unselectedFontColor = (_theme$toggleGroup$un2 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup5 = theme.toggleGroup) === null || _theme$toggleGroup5 === void 0 ? void 0 : _theme$toggleGroup5.unselectedFontColor) !== null && _theme$toggleGroup$un2 !== void 0 ? _theme$toggleGroup$un2 : toggleGroupTokens.unselectedFontColor;
|
|
238
|
-
toggleGroupTokens.selectedHoverBackgroundColor = (
|
|
239
|
-
toggleGroupTokens.selectedActiveBackgroundColor = (
|
|
240
|
-
toggleGroupTokens.selectedDisabledBackgroundColor = (
|
|
241
|
-
toggleGroupTokens.selectedDisabledFontColor = (
|
|
242
|
-
toggleGroupTokens.unselectedHoverBackgroundColor = (
|
|
254
|
+
toggleGroupTokens.selectedHoverBackgroundColor = (_subLightness20 = subLightness(8, theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup6 = theme.toggleGroup) === null || _theme$toggleGroup6 === void 0 ? void 0 : _theme$toggleGroup6.selectedBaseColor)) !== null && _subLightness20 !== void 0 ? _subLightness20 : toggleGroupTokens.selectedHoverBackgroundColor;
|
|
255
|
+
toggleGroupTokens.selectedActiveBackgroundColor = (_subLightness21 = subLightness(18, theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup7 = theme.toggleGroup) === null || _theme$toggleGroup7 === void 0 ? void 0 : _theme$toggleGroup7.selectedBaseColor)) !== null && _subLightness21 !== void 0 ? _subLightness21 : toggleGroupTokens.selectedActiveBackgroundColor;
|
|
256
|
+
toggleGroupTokens.selectedDisabledBackgroundColor = (_addLightness18 = addLightness(57, theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup8 = theme.toggleGroup) === null || _theme$toggleGroup8 === void 0 ? void 0 : _theme$toggleGroup8.selectedBaseColor)) !== null && _addLightness18 !== void 0 ? _addLightness18 : toggleGroupTokens.selectedDisabledBackgroundColor;
|
|
257
|
+
toggleGroupTokens.selectedDisabledFontColor = (_addLightness19 = addLightness(42, theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup9 = theme.toggleGroup) === null || _theme$toggleGroup9 === void 0 ? void 0 : _theme$toggleGroup9.selectedBaseColor)) !== null && _addLightness19 !== void 0 ? _addLightness19 : toggleGroupTokens.selectedDisabledFontColor;
|
|
258
|
+
toggleGroupTokens.unselectedHoverBackgroundColor = (_subLightness22 = subLightness(10, theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup10 = theme.toggleGroup) === null || _theme$toggleGroup10 === void 0 ? void 0 : _theme$toggleGroup10.unselectedBaseColor)) !== null && _subLightness22 !== void 0 ? _subLightness22 : toggleGroupTokens.unselectedHoverBackgroundColor;
|
|
243
259
|
var wizardTokens = componentTokensCopy.wizard;
|
|
244
260
|
wizardTokens.selectedStepBackgroundColor = (_theme$wizard$baseCol = theme === null || theme === void 0 ? void 0 : (_theme$wizard = theme.wizard) === null || _theme$wizard === void 0 ? void 0 : _theme$wizard.baseColor) !== null && _theme$wizard$baseCol !== void 0 ? _theme$wizard$baseCol : wizardTokens.selectedStepBackgroundColor;
|
|
245
|
-
wizardTokens.selectedStepFontColor = (_theme$wizard$
|
|
261
|
+
wizardTokens.selectedStepFontColor = (_theme$wizard$selecte = theme === null || theme === void 0 ? void 0 : (_theme$wizard2 = theme.wizard) === null || _theme$wizard2 === void 0 ? void 0 : _theme$wizard2.selectedStepFontColor) !== null && _theme$wizard$selecte !== void 0 ? _theme$wizard$selecte : wizardTokens.selectedStepFontColor;
|
|
246
262
|
wizardTokens.selectedStepBorderColor = (_theme$wizard$baseCol2 = theme === null || theme === void 0 ? void 0 : (_theme$wizard3 = theme.wizard) === null || _theme$wizard3 === void 0 ? void 0 : _theme$wizard3.baseColor) !== null && _theme$wizard$baseCol2 !== void 0 ? _theme$wizard$baseCol2 : wizardTokens.selectedStepBorderColor;
|
|
247
|
-
wizardTokens.visitedLabelFontColor = (_theme$wizard$
|
|
248
|
-
wizardTokens.selectedLabelFontColor = (_theme$wizard$
|
|
249
|
-
wizardTokens.visitedHelperTextFontColor = (_theme$wizard$
|
|
250
|
-
wizardTokens.selectedHelperTextFontColor = (_theme$wizard$
|
|
251
|
-
wizardTokens.unvisitedStepBorderColor = (
|
|
252
|
-
wizardTokens.unvisitedStepFontColor = (
|
|
253
|
-
wizardTokens.unvisitedLabelFontColor = (
|
|
254
|
-
wizardTokens.unvisitedHelperTextFontColor = (
|
|
263
|
+
wizardTokens.visitedLabelFontColor = (_theme$wizard$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$wizard4 = theme.wizard) === null || _theme$wizard4 === void 0 ? void 0 : _theme$wizard4.fontColor) !== null && _theme$wizard$fontCol !== void 0 ? _theme$wizard$fontCol : wizardTokens.visitedLabelFontColor;
|
|
264
|
+
wizardTokens.selectedLabelFontColor = (_theme$wizard$fontCol2 = theme === null || theme === void 0 ? void 0 : (_theme$wizard5 = theme.wizard) === null || _theme$wizard5 === void 0 ? void 0 : _theme$wizard5.fontColor) !== null && _theme$wizard$fontCol2 !== void 0 ? _theme$wizard$fontCol2 : wizardTokens.selectedLabelFontColor;
|
|
265
|
+
wizardTokens.visitedHelperTextFontColor = (_theme$wizard$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$wizard6 = theme.wizard) === null || _theme$wizard6 === void 0 ? void 0 : _theme$wizard6.fontColor) !== null && _theme$wizard$fontCol3 !== void 0 ? _theme$wizard$fontCol3 : wizardTokens.visitedHelperTextFontColor;
|
|
266
|
+
wizardTokens.selectedHelperTextFontColor = (_theme$wizard$fontCol4 = theme === null || theme === void 0 ? void 0 : (_theme$wizard7 = theme.wizard) === null || _theme$wizard7 === void 0 ? void 0 : _theme$wizard7.fontColor) !== null && _theme$wizard$fontCol4 !== void 0 ? _theme$wizard$fontCol4 : wizardTokens.selectedHelperTextFontColor;
|
|
267
|
+
wizardTokens.unvisitedStepBorderColor = (_addLightness20 = addLightness(40, theme === null || theme === void 0 ? void 0 : (_theme$wizard8 = theme.wizard) === null || _theme$wizard8 === void 0 ? void 0 : _theme$wizard8.fontColor)) !== null && _addLightness20 !== void 0 ? _addLightness20 : wizardTokens.unvisitedStepBorderColor;
|
|
268
|
+
wizardTokens.unvisitedStepFontColor = (_addLightness21 = addLightness(40, theme === null || theme === void 0 ? void 0 : (_theme$wizard9 = theme.wizard) === null || _theme$wizard9 === void 0 ? void 0 : _theme$wizard9.fontColor)) !== null && _addLightness21 !== void 0 ? _addLightness21 : wizardTokens.unvisitedStepFontColor;
|
|
269
|
+
wizardTokens.unvisitedLabelFontColor = (_addLightness22 = addLightness(40, theme === null || theme === void 0 ? void 0 : (_theme$wizard10 = theme.wizard) === null || _theme$wizard10 === void 0 ? void 0 : _theme$wizard10.fontColor)) !== null && _addLightness22 !== void 0 ? _addLightness22 : wizardTokens.unvisitedLabelFontColor;
|
|
270
|
+
wizardTokens.unvisitedHelperTextFontColor = (_addLightness23 = addLightness(40, theme === null || theme === void 0 ? void 0 : (_theme$wizard11 = theme.wizard) === null || _theme$wizard11 === void 0 ? void 0 : _theme$wizard11.fontColor)) !== null && _addLightness23 !== void 0 ? _addLightness23 : wizardTokens.unvisitedHelperTextFontColor;
|
|
255
271
|
return componentTokensCopy;
|
|
256
272
|
};
|
|
257
|
-
|
|
258
273
|
var parseLabels = function parseLabels(labels) {
|
|
259
274
|
var parsedLabels = _variables.defaultTranslatedComponentLabels;
|
|
260
275
|
Object.keys(labels).map(function (component) {
|
|
@@ -269,16 +284,21 @@ var parseLabels = function parseLabels(labels) {
|
|
|
269
284
|
return parsedLabels;
|
|
270
285
|
};
|
|
271
286
|
|
|
272
|
-
|
|
287
|
+
/**
|
|
288
|
+
* This type is used to allow partial themes and labels objects to be passed to the HalstackProvider.
|
|
289
|
+
* This is an extension of the already existing Partial type, which only allows one level of partiality.
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
var HalstackProvider = exports.HalstackProvider = function HalstackProvider(_ref) {
|
|
273
293
|
var theme = _ref.theme,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
294
|
+
advancedTheme = _ref.advancedTheme,
|
|
295
|
+
labels = _ref.labels,
|
|
296
|
+
children = _ref.children;
|
|
277
297
|
var parsedTheme = (0, _react.useMemo)(function () {
|
|
278
|
-
return theme
|
|
298
|
+
return theme ? parseTheme(theme) : advancedTheme ? parseAdvancedTheme(advancedTheme) : _variables.componentTokens;
|
|
279
299
|
}, [theme, advancedTheme]);
|
|
280
300
|
var parsedLabels = (0, _react.useMemo)(function () {
|
|
281
|
-
return labels
|
|
301
|
+
return labels ? parseLabels(labels) : _variables.defaultTranslatedComponentLabels;
|
|
282
302
|
}, [labels]);
|
|
283
303
|
return /*#__PURE__*/_react["default"].createElement(Halstack, null, /*#__PURE__*/_react["default"].createElement(HalstackContext.Provider, {
|
|
284
304
|
value: parsedTheme
|
|
@@ -286,10 +306,5 @@ var HalstackProvider = function HalstackProvider(_ref) {
|
|
|
286
306
|
value: parsedLabels
|
|
287
307
|
}, children)));
|
|
288
308
|
};
|
|
289
|
-
|
|
290
|
-
exports
|
|
291
|
-
|
|
292
|
-
var Halstack = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n @import url(\"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap\");\n"])));
|
|
293
|
-
|
|
294
|
-
var _default = HalstackContext;
|
|
295
|
-
exports["default"] = _default;
|
|
309
|
+
var Halstack = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n @import url(\"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap\");\n @import url(\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1\");\n"])));
|
|
310
|
+
var _default = exports["default"] = HalstackContext;
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://developer.dxc.com/halstack/">
|
|
3
|
+
<img src="website/screens/common/images/halstack_logo.svg" alt="Halstack Design System logo" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<h1 align="center">Halstack Design System</h1>
|
|
8
|
+
|
|
9
|
+
Halstack is an Open Source Design System built and maintained by DXC Technology with the purpose of providing all the necessary tools for designing and implementing accessible, intuitive and consistent User Experiences with React.
|
|
10
|
+
|
|
11
|
+
## How to start
|
|
12
|
+
|
|
13
|
+
You can start using Halstack right now:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm i @dxc-technology/halstack-react
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Usage
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
import React from "react";
|
|
23
|
+
import { DxcButton, DxcTextInput } from "@dxc-technology/halstack-react";
|
|
24
|
+
|
|
25
|
+
const App = () => (
|
|
26
|
+
<>
|
|
27
|
+
<DxcTextInput label="Enter your name" />
|
|
28
|
+
<DxcButton label="Submit" type="submit" />
|
|
29
|
+
</>
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Where to start
|
|
34
|
+
|
|
35
|
+
Learn everything you need to know about Halstack principles and components on the [official documentation site](https://developer.dxc.com/halstack/).
|
|
36
|
+
|
|
37
|
+
## Contributing
|
|
38
|
+
|
|
39
|
+
Any feedback is always welcome in Halstack!
|
|
40
|
+
|
|
41
|
+
Before opening a new issue, pull request or discussion, please read carefully and respect our [contribution guidelines](https://github.com/dxc-technology/halstack-react/wiki/Contributing).
|
|
42
|
+
|
|
43
|
+
## Thanks
|
|
44
|
+
|
|
45
|
+
<a href="https://www.chromatic.com/"><img src="https://user-images.githubusercontent.com/321738/84662277-e3db4f80-af1b-11ea-88f5-91d67a5e59f6.png" width="153" height="30" alt="Chromatic" /></a>
|
|
46
|
+
|
|
47
|
+
Thanks to [Chromatic](https://www.chromatic.com/) for providing the visual testing platform that helps us review UI changes and catch visual regressions.
|