@norges-domstoler/dds-components 2.2.0 → 2.3.0
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/dist/index.es.js +1177 -783
- package/dist/index.js +1183 -784
- package/dist/{components → src/components}/Breadcrumbs/Breadcrumb.d.ts +0 -0
- package/dist/{components → src/components}/Breadcrumbs/Breadcrumb.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/dist/{components → src/components}/Breadcrumbs/index.d.ts +0 -0
- package/dist/{components → src/components}/Button/Button.d.ts +2 -4
- package/dist/{components → src/components}/Button/Button.styles.d.ts +0 -0
- package/dist/{components → src/components}/Button/Button.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Button/Button.types.d.ts +13 -5
- package/dist/{components → src/components}/Button/index.d.ts +0 -0
- package/dist/{components → src/components}/Card/Card.d.ts +3 -0
- package/dist/{components → src/components}/Card/Card.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Card/CardAccordion/CardAccordion.d.ts +2 -0
- package/dist/src/components/Card/CardAccordion/CardAccordionBody.d.ts +18 -0
- package/dist/{components → src/components}/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -0
- package/dist/src/components/Card/CardAccordion/CardAccordionHeader.d.ts +17 -0
- package/dist/{components → src/components}/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Card/index.d.ts +0 -0
- package/dist/{components → src/components}/Checkbox/Checkbox.d.ts +0 -2
- package/dist/{components → src/components}/Checkbox/Checkbox.styles.d.ts +0 -0
- package/dist/{components → src/components}/Checkbox/Checkbox.tokens.d.ts +0 -0
- package/dist/src/components/Checkbox/Checkbox.types.d.ts +13 -0
- package/dist/src/components/Checkbox/CheckboxGroup.d.ts +17 -0
- package/dist/{components → src/components}/Checkbox/CheckboxGroup.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Checkbox/CheckboxGroupContext.d.ts +0 -0
- package/dist/{components → src/components}/Checkbox/index.d.ts +0 -0
- package/dist/{components → src/components}/Datepicker/Datepicker.d.ts +0 -0
- package/dist/{components → src/components}/Datepicker/Datepicker.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Datepicker/index.d.ts +0 -0
- package/dist/{components → src/components}/DescriptionList/DescriptionList.d.ts +2 -0
- package/dist/{components → src/components}/DescriptionList/DescriptionListDesc.d.ts +2 -0
- package/dist/{components → src/components}/DescriptionList/DescriptionListDesc.tokens.d.ts +0 -0
- package/dist/{components → src/components}/DescriptionList/DescriptionListGroup.d.ts +2 -0
- package/dist/{components → src/components}/DescriptionList/DescriptionListGroup.tokens.d.ts +0 -0
- package/dist/{components → src/components}/DescriptionList/DescriptionListTerm.d.ts +0 -0
- package/dist/{components → src/components}/DescriptionList/DescriptionListTerm.tokens.d.ts +0 -0
- package/dist/{components → src/components}/DescriptionList/index.d.ts +0 -0
- package/dist/{components → src/components}/Divider/Divider.d.ts +2 -0
- package/dist/{components → src/components}/Divider/Divider.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Divider/index.d.ts +0 -0
- package/dist/src/components/Drawer/Drawer.d.ts +45 -0
- package/dist/{components → src/components}/Drawer/Drawer.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Drawer/DrawerGroup.d.ts +4 -0
- package/dist/{components → src/components}/Drawer/index.d.ts +0 -0
- package/dist/{components → src/components}/GlobalMessage/GlobalMessage.d.ts +8 -0
- package/dist/{components → src/components}/GlobalMessage/GlobalMessage.tokens.d.ts +0 -0
- package/dist/{components → src/components}/GlobalMessage/index.d.ts +0 -0
- package/dist/{helpers → src/components}/IconWrapper/IconWrapper.d.ts +3 -0
- package/dist/{helpers → src/components}/IconWrapper/index.d.ts +0 -0
- package/dist/{components → src/components}/InputMessage/InputMessage.d.ts +4 -0
- package/dist/{components → src/components}/InputMessage/InputMessage.tokens.d.ts +0 -0
- package/dist/{components → src/components}/InputMessage/index.d.ts +0 -0
- package/dist/{components → src/components}/InternalHeader/InternalHeader.d.ts +0 -0
- package/dist/{components → src/components}/InternalHeader/InternalHeader.styles.d.ts +4 -4
- package/dist/{components → src/components}/InternalHeader/InternalHeader.tokens.d.ts +0 -0
- package/dist/{components → src/components}/InternalHeader/InternalHeader.types.d.ts +7 -0
- package/dist/{components → src/components}/InternalHeader/InternalHeaderListItem.d.ts +0 -0
- package/dist/{components → src/components}/InternalHeader/NavigationItem.d.ts +0 -0
- package/dist/{components → src/components}/InternalHeader/index.d.ts +0 -0
- package/dist/src/components/List/List.d.ts +16 -0
- package/dist/{components → src/components}/List/List.tokens.d.ts +0 -0
- package/dist/{components → src/components}/List/ListItem.d.ts +0 -0
- package/dist/{components → src/components}/List/ListItem.tokens.d.ts +0 -0
- package/dist/{components → src/components}/List/index.d.ts +0 -0
- package/dist/{components → src/components}/LocalMessage/LocalMessage.d.ts +14 -2
- package/dist/{components → src/components}/LocalMessage/LocalMessage.tokens.d.ts +0 -0
- package/dist/{components → src/components}/LocalMessage/index.d.ts +0 -0
- package/dist/src/components/Modal/Modal.d.ts +25 -0
- package/dist/{components → src/components}/Modal/Modal.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Modal/ModalActions.d.ts +0 -0
- package/dist/{components → src/components}/Modal/ModalBody.d.ts +2 -0
- package/dist/{components → src/components}/Modal/index.d.ts +0 -0
- package/dist/{components → src/components}/OverflowMenu/OverflowMenu.d.ts +4 -4
- package/dist/{components → src/components}/OverflowMenu/OverflowMenu.tokens.d.ts +0 -0
- package/dist/{components → src/components}/OverflowMenu/OverflowMenu.types.d.ts +12 -4
- package/dist/{components → src/components}/OverflowMenu/OverflowMenuGroup.d.ts +5 -0
- package/dist/{components → src/components}/OverflowMenu/OverflowMenuItem.d.ts +1 -1
- package/dist/{components → src/components}/OverflowMenu/index.d.ts +0 -0
- package/dist/src/components/Pagination/Pagination.d.ts +49 -0
- package/dist/{components → src/components}/Pagination/Pagination.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Pagination/index.d.ts +0 -0
- package/dist/{components → src/components}/Pagination/paginationGenerator.d.ts +0 -0
- package/dist/{components → src/components}/Popover/Popover.d.ts +22 -4
- package/dist/{components → src/components}/Popover/Popover.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Popover/PopoverGroup.d.ts +5 -0
- package/dist/{components → src/components}/Popover/index.d.ts +0 -0
- package/dist/{components → src/components}/RadioButton/RadioButton.d.ts +0 -2
- package/dist/{components → src/components}/RadioButton/RadioButton.styles.d.ts +0 -0
- package/dist/{components → src/components}/RadioButton/RadioButton.tokens.d.ts +0 -0
- package/dist/src/components/RadioButton/RadioButton.types.d.ts +9 -0
- package/dist/src/components/RadioButton/RadioButtonGroup.d.ts +28 -0
- package/dist/{components → src/components}/RadioButton/RadioButtonGroup.tokens.d.ts +0 -0
- package/dist/{components → src/components}/RadioButton/RadioButtonGroupContext.d.ts +0 -0
- package/dist/{components → src/components}/RadioButton/index.d.ts +0 -0
- package/dist/{components → src/components}/Search/Search.d.ts +8 -6
- package/dist/{components → src/components}/Search/Search.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Search/index.d.ts +0 -0
- package/dist/{components → src/components}/Select/Select.d.ts +8 -0
- package/dist/{components → src/components}/Select/Select.styles.d.ts +1 -1
- package/dist/{components → src/components}/Select/Select.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Select/index.d.ts +0 -0
- package/dist/{components → src/components}/SkipToContent/SkipToContent.d.ts +6 -0
- package/dist/{components → src/components}/SkipToContent/SkipToContent.tokens.d.ts +0 -0
- package/dist/{components → src/components}/SkipToContent/index.d.ts +0 -0
- package/dist/{components → src/components}/Spinner/Spinner.d.ts +2 -0
- package/dist/{components → src/components}/Spinner/Spinner.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Spinner/index.d.ts +0 -0
- package/dist/{components → src/components}/Table/Body.d.ts +0 -0
- package/dist/{components → src/components}/Table/Cell.d.ts +2 -0
- package/dist/{components → src/components}/Table/Cell.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Table/Foot.d.ts +0 -0
- package/dist/{components → src/components}/Table/Head.d.ts +0 -0
- package/dist/src/components/Table/Row.d.ts +23 -0
- package/dist/{components → src/components}/Table/Row.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Table/SortCell.d.ts +6 -0
- package/dist/{components → src/components}/Table/Table.d.ts +4 -0
- package/dist/{components → src/components}/Table/TableWrapper.d.ts +0 -0
- package/dist/{components → src/components}/Table/index.d.ts +0 -0
- package/dist/{components → src/components}/Table/tableData.d.ts +0 -0
- package/dist/src/components/Tabs/Tab.d.ts +32 -0
- package/dist/src/components/Tabs/TabList.d.ts +3 -0
- package/dist/src/components/Tabs/TabPanel.d.ts +9 -0
- package/dist/src/components/Tabs/TabPanels.d.ts +3 -0
- package/dist/src/components/Tabs/Tabs.context.d.ts +17 -0
- package/dist/src/components/Tabs/Tabs.d.ts +23 -0
- package/dist/src/components/Tabs/Tabs.tokens.d.ts +35 -0
- package/dist/src/components/Tabs/index.d.ts +5 -0
- package/dist/{components → src/components}/TextInput/CharCounter.d.ts +0 -0
- package/dist/{components → src/components}/TextInput/CharCounter.tokens.d.ts +0 -0
- package/dist/{components → src/components}/TextInput/TextInput.d.ts +0 -2
- package/dist/{components → src/components}/TextInput/TextInput.styles.d.ts +2 -1
- package/dist/{components → src/components}/TextInput/TextInput.tokens.d.ts +0 -0
- package/dist/{components → src/components}/TextInput/TextInput.types.d.ts +2 -3
- package/dist/{components → src/components}/TextInput/index.d.ts +0 -0
- package/dist/{components → src/components}/ToggleButton/ToggleButton.d.ts +4 -0
- package/dist/{components → src/components}/ToggleButton/ToggleButton.tokens.d.ts +0 -0
- package/dist/{components → src/components}/ToggleButton/ToggleButtonGroup.d.ts +4 -1
- package/dist/{components → src/components}/ToggleButton/index.d.ts +0 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +28 -0
- package/dist/{components → src/components}/Tooltip/Tooltip.styles.d.ts +0 -0
- package/dist/{components → src/components}/Tooltip/Tooltip.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Tooltip/index.d.ts +0 -0
- package/dist/src/components/Typography/Typography.d.ts +32 -0
- package/dist/{components → src/components}/Typography/Typography.tokens.d.ts +0 -0
- package/dist/{components → src/components}/Typography/Typography.types.d.ts +0 -0
- package/dist/{components → src/components}/Typography/index.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Backdrop/Backdrop.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Backdrop/Backdrop.utils.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Backdrop/index.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Chevron/AnimatedChevronUpDown.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Chevron/AnimatedChevronUpDown.styles.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Chevron/index.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Input/Input.styles.d.ts +3 -2
- package/dist/{helpers → src/helpers}/Input/Input.tokens.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Input/Input.types.d.ts +9 -2
- package/dist/{helpers → src/helpers}/Input/index.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Input/inputFieldStylingBase.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Paper/Paper.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Paper/Paper.tokens.d.ts +0 -0
- package/dist/{helpers → src/helpers}/Paper/index.d.ts +0 -0
- package/dist/{helpers → src/helpers}/RequiredMarker.d.ts +0 -0
- package/dist/{helpers → src/helpers}/color.d.ts +0 -0
- package/dist/{helpers → src/helpers}/functions.d.ts +0 -0
- package/dist/{helpers → src/helpers}/scrollbarStyling.d.ts +0 -0
- package/dist/{helpers → src/helpers}/styling/danger.d.ts +0 -0
- package/dist/{helpers → src/helpers}/styling/focus.d.ts +0 -0
- package/dist/{helpers → src/helpers}/styling/focusVisible.d.ts +0 -0
- package/dist/{helpers → src/helpers}/styling/hideInput.d.ts +0 -0
- package/dist/{helpers → src/helpers}/styling/hover.d.ts +0 -0
- package/dist/{helpers → src/helpers}/styling/index.d.ts +0 -0
- package/dist/src/helpers/styling/removeButtonStyling.d.ts +9 -0
- package/dist/{helpers → src/helpers}/styling/visibilityTransition.d.ts +0 -0
- package/dist/{hooks → src/hooks}/index.d.ts +0 -0
- package/dist/{hooks → src/hooks}/useCombinedRefs.d.ts +0 -0
- package/dist/{hooks → src/hooks}/useFloatPosition.d.ts +0 -0
- package/dist/{hooks → src/hooks}/useFocusTrap.d.ts +0 -0
- package/dist/{hooks → src/hooks}/useId.d.ts +0 -0
- package/dist/{hooks → src/hooks}/useMountTransition.d.ts +0 -0
- package/dist/{hooks → src/hooks}/useOnClickOutside.d.ts +0 -0
- package/dist/{hooks → src/hooks}/useOnKeyDown.d.ts +0 -0
- package/dist/src/hooks/useRoveFocus.d.ts +3 -0
- package/dist/{index.d.ts → src/index.d.ts} +2 -1
- package/dist/{utils → src/utils}/combineHandlers.d.ts +0 -0
- package/dist/{utils → src/utils}/getScrollbarSize.d.ts +0 -0
- package/dist/{utils → src/utils}/idGenerator.d.ts +0 -0
- package/dist/{utils → src/utils}/index.d.ts +0 -0
- package/package.json +1 -1
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +0 -12
- package/dist/components/Card/CardAccordion/CardAccordionHeader.d.ts +0 -11
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -10
- package/dist/components/Checkbox/CheckboxGroup.d.ts +0 -15
- package/dist/components/Drawer/Drawer.d.ts +0 -29
- package/dist/components/List/List.d.ts +0 -12
- package/dist/components/Modal/Modal.d.ts +0 -15
- package/dist/components/Pagination/Pagination.d.ts +0 -29
- package/dist/components/RadioButton/RadioButton.types.d.ts +0 -8
- package/dist/components/RadioButton/RadioButtonGroup.d.ts +0 -20
- package/dist/components/Table/Row.d.ts +0 -15
- package/dist/components/Tooltip/Tooltip.d.ts +0 -18
- package/dist/components/Typography/Typography.d.ts +0 -22
- package/dist/helpers/styling/removeButtonStyling.d.ts +0 -1
- package/dist/hooks/useRoveFocus.d.ts +0 -2
package/dist/index.es.js
CHANGED
|
@@ -12169,17 +12169,17 @@ var ddsBaseTokens = {
|
|
|
12169
12169
|
fontPackages: fontPackages,
|
|
12170
12170
|
};
|
|
12171
12171
|
|
|
12172
|
-
var Colors$
|
|
12172
|
+
var Colors$u = ddsBaseTokens.colors, FontPackages$l = ddsBaseTokens.fontPackages, BorderRadius$9 = ddsBaseTokens.borderRadius, Border$j = ddsBaseTokens.border;
|
|
12173
12173
|
var textDefault$8 = {
|
|
12174
|
-
textColor: Colors$
|
|
12174
|
+
textColor: Colors$u.DdsColorNeutralsGray9,
|
|
12175
12175
|
font: FontPackages$l.body_sans_02.base,
|
|
12176
12176
|
};
|
|
12177
12177
|
var focus = {
|
|
12178
|
-
colorDefault: Border$
|
|
12179
|
-
outlineWidth: Border$
|
|
12180
|
-
color__TextInput: Colors$
|
|
12181
|
-
textColor__TextInput: Colors$
|
|
12182
|
-
borderWidth__TextInput: Border$
|
|
12178
|
+
colorDefault: Border$j.BordersDdsBorderFocusBaseStroke,
|
|
12179
|
+
outlineWidth: Border$j.BordersDdsBorderFocusBaseStrokeWeight,
|
|
12180
|
+
color__TextInput: Colors$u.DdsColorInteractiveBase,
|
|
12181
|
+
textColor__TextInput: Colors$u.DdsColorInteractiveDark,
|
|
12182
|
+
borderWidth__TextInput: Border$j.BordersDdsBorderFocusInputfieldStrokeWeight,
|
|
12183
12183
|
};
|
|
12184
12184
|
var ddsReferenceTokens = {
|
|
12185
12185
|
focus: focus,
|
|
@@ -12187,12 +12187,12 @@ var ddsReferenceTokens = {
|
|
|
12187
12187
|
textInput: {
|
|
12188
12188
|
input: {
|
|
12189
12189
|
borderRadius: BorderRadius$9.RadiiDdsBorderRadius1Radius,
|
|
12190
|
-
borderWidth: Border$
|
|
12191
|
-
borderColor: Colors$
|
|
12190
|
+
borderWidth: Border$j.BordersDdsBorderStyleLightStrokeWeight,
|
|
12191
|
+
borderColor: Colors$u.DdsColorNeutralsGray5,
|
|
12192
12192
|
textColor: textDefault$8.textColor,
|
|
12193
12193
|
font: FontPackages$l.supportingStyle_inputtext_02.base,
|
|
12194
12194
|
hover: {
|
|
12195
|
-
backgroundColor: Colors$
|
|
12195
|
+
backgroundColor: Colors$u.DdsColorInteractiveLightest,
|
|
12196
12196
|
borderColor: focus.color__TextInput,
|
|
12197
12197
|
borderWidth: focus.borderWidth__TextInput,
|
|
12198
12198
|
},
|
|
@@ -12212,80 +12212,87 @@ var ddsReferenceTokens = {
|
|
|
12212
12212
|
},
|
|
12213
12213
|
};
|
|
12214
12214
|
|
|
12215
|
-
var removeButtonStyling =
|
|
12216
|
-
|
|
12215
|
+
var removeButtonStyling = {
|
|
12216
|
+
background: 'none',
|
|
12217
|
+
color: 'inherit',
|
|
12218
|
+
border: 'none',
|
|
12219
|
+
padding: 0,
|
|
12220
|
+
font: 'inherit',
|
|
12221
|
+
cursor: 'pointer',
|
|
12222
|
+
outline: 'inherit'
|
|
12223
|
+
};
|
|
12217
12224
|
|
|
12218
|
-
var Border$
|
|
12219
|
-
Colors$
|
|
12225
|
+
var Border$i = ddsBaseTokens.border,
|
|
12226
|
+
Colors$t = ddsBaseTokens.colors;
|
|
12220
12227
|
var outlineOffset = '2px';
|
|
12221
12228
|
var focusVisible = {
|
|
12222
|
-
outline: "".concat(Border$
|
|
12229
|
+
outline: "".concat(Border$i.BordersDdsBorderFocusBaseStrokeWeight, " ").concat(Border$i.BordersDdsBorderFocusBaseStroke, " solid"),
|
|
12223
12230
|
outlineOffset: outlineOffset
|
|
12224
12231
|
};
|
|
12225
12232
|
var focusVisibleOnDark = {
|
|
12226
|
-
outline: "".concat(Border$
|
|
12233
|
+
outline: "".concat(Border$i.BordersDdsBorderFocusOndarkStrokeWeight, " ").concat(Border$i.BordersDdsBorderFocusOndarkStroke, " solid"),
|
|
12227
12234
|
outlineOffset: outlineOffset
|
|
12228
12235
|
};
|
|
12229
12236
|
var focusVisibleLink = {
|
|
12230
12237
|
outline: 'none',
|
|
12231
|
-
backgroundColor: Border$
|
|
12232
|
-
color: Colors$
|
|
12238
|
+
backgroundColor: Border$i.BordersDdsBorderFocusBaseStroke,
|
|
12239
|
+
color: Colors$t.DdsColorNeutralsWhite,
|
|
12233
12240
|
textDecoration: 'none'
|
|
12234
12241
|
};
|
|
12235
12242
|
({
|
|
12236
12243
|
outline: 'none',
|
|
12237
|
-
backgroundColor: Border$
|
|
12238
|
-
color: Colors$
|
|
12244
|
+
backgroundColor: Border$i.BordersDdsBorderFocusOndarkStroke,
|
|
12245
|
+
color: Colors$t.DdsColorNeutralsGray9,
|
|
12239
12246
|
textDecoration: 'none'
|
|
12240
12247
|
});
|
|
12241
12248
|
var focusVisibleWithBorder = {
|
|
12242
12249
|
outline: 'none',
|
|
12243
|
-
borderColor: Border$
|
|
12244
|
-
boxShadow: "inset 0 0 0 1px ".concat(Border$
|
|
12250
|
+
borderColor: Border$i.BordersDdsBorderFocusCardStroke,
|
|
12251
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$i.BordersDdsBorderFocusCardStroke)
|
|
12245
12252
|
};
|
|
12246
12253
|
({
|
|
12247
12254
|
outline: 'none',
|
|
12248
|
-
borderColor: Border$
|
|
12249
|
-
boxShadow: "inset 0 0 0 1px ".concat(Border$
|
|
12255
|
+
borderColor: Border$i.BordersDdsBorderFocusOndarkStroke,
|
|
12256
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$i.BordersDdsBorderFocusOndarkStroke)
|
|
12250
12257
|
});
|
|
12251
12258
|
var focusVisibleInset = {
|
|
12252
12259
|
outline: 'none',
|
|
12253
|
-
boxShadow: "inset 0 0 0 2px ".concat(Border$
|
|
12260
|
+
boxShadow: "inset 0 0 0 2px ".concat(Border$i.BordersDdsBorderFocusCardStroke)
|
|
12254
12261
|
};
|
|
12255
12262
|
|
|
12256
|
-
var Border$
|
|
12257
|
-
Colors$
|
|
12263
|
+
var Border$h = ddsBaseTokens.border,
|
|
12264
|
+
Colors$s = ddsBaseTokens.colors;
|
|
12258
12265
|
var hoverWithBorder = {
|
|
12259
|
-
borderColor: Border$
|
|
12260
|
-
boxShadow: "inset 0 0 0 1px ".concat(Border$
|
|
12266
|
+
borderColor: Border$h.BordersDdsBorderFocusInputfieldStroke,
|
|
12267
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$h.BordersDdsBorderFocusInputfieldStroke)
|
|
12261
12268
|
};
|
|
12262
12269
|
var hoverInputfield = {
|
|
12263
|
-
borderColor: Border$
|
|
12264
|
-
boxShadow: "inset 0 0 0 1px ".concat(Border$
|
|
12265
|
-
backgroundColor: Colors$
|
|
12270
|
+
borderColor: Border$h.BordersDdsBorderFocusInputfieldStroke,
|
|
12271
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$h.BordersDdsBorderFocusInputfieldStroke),
|
|
12272
|
+
backgroundColor: Colors$s.DdsColorInteractiveLightest
|
|
12266
12273
|
};
|
|
12267
12274
|
var hoverDangerInputfield = {
|
|
12268
|
-
borderColor: Colors$
|
|
12269
|
-
boxShadow: "inset 0 0 0 1px ".concat(Colors$
|
|
12270
|
-
backgroundColor: Colors$
|
|
12275
|
+
borderColor: Colors$s.DdsColorDangerBase,
|
|
12276
|
+
boxShadow: "inset 0 0 0 1px ".concat(Colors$s.DdsColorDangerBase),
|
|
12277
|
+
backgroundColor: Colors$s.DdsColorDangerLightest
|
|
12271
12278
|
};
|
|
12272
12279
|
|
|
12273
|
-
var Border$
|
|
12274
|
-
Colors$
|
|
12280
|
+
var Border$g = ddsBaseTokens.border,
|
|
12281
|
+
Colors$r = ddsBaseTokens.colors;
|
|
12275
12282
|
var focusInputfield = {
|
|
12276
12283
|
outline: 'none',
|
|
12277
|
-
borderColor: Border$
|
|
12278
|
-
boxShadow: "inset 0 0 0 1px ".concat(Border$
|
|
12284
|
+
borderColor: Border$g.BordersDdsBorderFocusInputfieldStroke,
|
|
12285
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$g.BordersDdsBorderFocusInputfieldStroke)
|
|
12279
12286
|
};
|
|
12280
12287
|
var focusDangerInputfield = {
|
|
12281
|
-
borderColor: Colors$
|
|
12282
|
-
boxShadow: "inset 0 0 0 1px ".concat(Colors$
|
|
12288
|
+
borderColor: Colors$r.DdsColorDangerBase,
|
|
12289
|
+
boxShadow: "inset 0 0 0 1px ".concat(Colors$r.DdsColorDangerBase)
|
|
12283
12290
|
};
|
|
12284
12291
|
|
|
12285
|
-
var Colors$
|
|
12292
|
+
var Colors$q = ddsBaseTokens.colors;
|
|
12286
12293
|
var dangerInputfield = {
|
|
12287
|
-
borderColor: Colors$
|
|
12288
|
-
boxShadow: "inset 0 0 0 1px ".concat(Colors$
|
|
12294
|
+
borderColor: Colors$q.DdsColorDangerBase,
|
|
12295
|
+
boxShadow: "inset 0 0 0 1px ".concat(Colors$q.DdsColorDangerBase)
|
|
12289
12296
|
};
|
|
12290
12297
|
|
|
12291
12298
|
var hideInput = {
|
|
@@ -12296,31 +12303,31 @@ var hideInput = {
|
|
|
12296
12303
|
margin: 0
|
|
12297
12304
|
};
|
|
12298
12305
|
|
|
12299
|
-
var Colors$
|
|
12306
|
+
var Colors$p = ddsBaseTokens.colors,
|
|
12300
12307
|
FontPackages$k = ddsBaseTokens.fontPackages,
|
|
12301
|
-
Spacing$
|
|
12308
|
+
Spacing$z = ddsBaseTokens.spacing;
|
|
12302
12309
|
var textDefault$7 = ddsReferenceTokens.textDefault;
|
|
12303
12310
|
var textColors = {
|
|
12304
|
-
interactive: Colors$
|
|
12305
|
-
primary: Colors$
|
|
12306
|
-
danger: Colors$
|
|
12307
|
-
success: Colors$
|
|
12308
|
-
warning: Colors$
|
|
12311
|
+
interactive: Colors$p.DdsColorInteractiveBase,
|
|
12312
|
+
primary: Colors$p.DdsColorPrimaryBase,
|
|
12313
|
+
danger: Colors$p.DdsColorDangerBase,
|
|
12314
|
+
success: Colors$p.DdsColorSuccessBase,
|
|
12315
|
+
warning: Colors$p.DdsColorWarningBase,
|
|
12309
12316
|
onLight: textDefault$7.textColor,
|
|
12310
|
-
onDark: Colors$
|
|
12311
|
-
gray1: Colors$
|
|
12312
|
-
gray2: Colors$
|
|
12313
|
-
gray3: Colors$
|
|
12314
|
-
gray4: Colors$
|
|
12315
|
-
gray5: Colors$
|
|
12316
|
-
gray6: Colors$
|
|
12317
|
-
gray7: Colors$
|
|
12318
|
-
gray8: Colors$
|
|
12319
|
-
gray9: Colors$
|
|
12317
|
+
onDark: Colors$p.DdsColorNeutralsWhite,
|
|
12318
|
+
gray1: Colors$p.DdsColorNeutralsGray1,
|
|
12319
|
+
gray2: Colors$p.DdsColorNeutralsGray2,
|
|
12320
|
+
gray3: Colors$p.DdsColorNeutralsGray3,
|
|
12321
|
+
gray4: Colors$p.DdsColorNeutralsGray4,
|
|
12322
|
+
gray5: Colors$p.DdsColorNeutralsGray5,
|
|
12323
|
+
gray6: Colors$p.DdsColorNeutralsGray6,
|
|
12324
|
+
gray7: Colors$p.DdsColorNeutralsGray7,
|
|
12325
|
+
gray8: Colors$p.DdsColorNeutralsGray8,
|
|
12326
|
+
gray9: Colors$p.DdsColorNeutralsGray9
|
|
12320
12327
|
};
|
|
12321
12328
|
var textColorsArray = ['interactive', 'primary', 'danger', 'success', 'warning', 'onLight', 'onDark', 'gray1', 'gray2', 'gray3', 'gray4', 'gray5', 'gray6', 'gray7', 'gray8', 'gray9'];
|
|
12322
12329
|
var aBase = {
|
|
12323
|
-
color: Colors$
|
|
12330
|
+
color: Colors$p.DdsColorInteractiveBase,
|
|
12324
12331
|
font: 'inherit',
|
|
12325
12332
|
textDecoration: 'underline',
|
|
12326
12333
|
width: 'fit-content'
|
|
@@ -12330,7 +12337,7 @@ var aMarginsBase = {
|
|
|
12330
12337
|
marginBottom: FontPackages$k.body_sans_02.paragraph.paragraphSpacing
|
|
12331
12338
|
};
|
|
12332
12339
|
var aHoverBase = {
|
|
12333
|
-
color: Colors$
|
|
12340
|
+
color: Colors$p.DdsColorInteractiveDark
|
|
12334
12341
|
};
|
|
12335
12342
|
|
|
12336
12343
|
var aFocusBase = __assign({}, focusVisibleLink);
|
|
@@ -12356,7 +12363,7 @@ var headingSans01Base = __assign({
|
|
|
12356
12363
|
var headingSans01MarginsBase = {
|
|
12357
12364
|
marginTop: 0,
|
|
12358
12365
|
marginBottom: FontPackages$k.heading_sans_01.paragraph.paragraphSpacing,
|
|
12359
|
-
paddingTop: Spacing$
|
|
12366
|
+
paddingTop: Spacing$z.SpacingDdsSpacingPaddingTopHeadingSans01Top
|
|
12360
12367
|
};
|
|
12361
12368
|
|
|
12362
12369
|
var headingSans02Base = __assign({
|
|
@@ -12366,7 +12373,7 @@ var headingSans02Base = __assign({
|
|
|
12366
12373
|
var headingSans02MarginsBase = {
|
|
12367
12374
|
marginTop: 0,
|
|
12368
12375
|
marginBottom: FontPackages$k.heading_sans_02.paragraph.paragraphSpacing,
|
|
12369
|
-
paddingTop: Spacing$
|
|
12376
|
+
paddingTop: Spacing$z.SpacingDdsSpacingPaddingTopHeadingSans02Top
|
|
12370
12377
|
};
|
|
12371
12378
|
|
|
12372
12379
|
var headingSans03Base = __assign({
|
|
@@ -12376,7 +12383,7 @@ var headingSans03Base = __assign({
|
|
|
12376
12383
|
var headingSans03MarginsBase = {
|
|
12377
12384
|
marginTop: 0,
|
|
12378
12385
|
marginBottom: FontPackages$k.heading_sans_03.paragraph.paragraphSpacing,
|
|
12379
|
-
paddingTop: Spacing$
|
|
12386
|
+
paddingTop: Spacing$z.SpacingDdsSpacingPaddingTopHeadingSans03Top
|
|
12380
12387
|
};
|
|
12381
12388
|
|
|
12382
12389
|
var headingSans04Base = __assign({
|
|
@@ -12386,7 +12393,7 @@ var headingSans04Base = __assign({
|
|
|
12386
12393
|
var headingSans04MarginsBase = {
|
|
12387
12394
|
marginTop: 0,
|
|
12388
12395
|
marginBottom: FontPackages$k.heading_sans_04.paragraph.paragraphSpacing,
|
|
12389
|
-
paddingTop: Spacing$
|
|
12396
|
+
paddingTop: Spacing$z.SpacingDdsSpacingPaddingTopHeadingSans04Top
|
|
12390
12397
|
};
|
|
12391
12398
|
|
|
12392
12399
|
var headingSans05Base = __assign({
|
|
@@ -12396,7 +12403,7 @@ var headingSans05Base = __assign({
|
|
|
12396
12403
|
var headingSans05MarginsBase = {
|
|
12397
12404
|
marginTop: 0,
|
|
12398
12405
|
marginBottom: FontPackages$k.heading_sans_05.paragraph.paragraphSpacing,
|
|
12399
|
-
paddingTop: Spacing$
|
|
12406
|
+
paddingTop: Spacing$z.SpacingDdsSpacingPaddingTopHeadingSans05Top
|
|
12400
12407
|
};
|
|
12401
12408
|
|
|
12402
12409
|
var headingSans06Base = __assign({
|
|
@@ -12406,7 +12413,7 @@ var headingSans06Base = __assign({
|
|
|
12406
12413
|
var headingSans06MarginsBase = {
|
|
12407
12414
|
marginTop: 0,
|
|
12408
12415
|
marginBottom: FontPackages$k.heading_sans_06.paragraph.paragraphSpacing,
|
|
12409
|
-
paddingTop: Spacing$
|
|
12416
|
+
paddingTop: Spacing$z.SpacingDdsSpacingPaddingTopHeadingSans06Top
|
|
12410
12417
|
};
|
|
12411
12418
|
|
|
12412
12419
|
var headingSans07Base = __assign({
|
|
@@ -12416,7 +12423,7 @@ var headingSans07Base = __assign({
|
|
|
12416
12423
|
var headingSans07MarginsBase = {
|
|
12417
12424
|
marginTop: 0,
|
|
12418
12425
|
marginBottom: FontPackages$k.heading_sans_07.paragraph.paragraphSpacing,
|
|
12419
|
-
paddingTop: Spacing$
|
|
12426
|
+
paddingTop: Spacing$z.SpacingDdsSpacingPaddingTopHeadingSans07Top
|
|
12420
12427
|
};
|
|
12421
12428
|
|
|
12422
12429
|
var headingSans08Base = __assign({
|
|
@@ -12426,7 +12433,7 @@ var headingSans08Base = __assign({
|
|
|
12426
12433
|
var headingSans08MarginsBase = {
|
|
12427
12434
|
marginTop: 0,
|
|
12428
12435
|
marginBottom: FontPackages$k.heading_sans_08.paragraph.paragraphSpacing,
|
|
12429
|
-
paddingTop: Spacing$
|
|
12436
|
+
paddingTop: Spacing$z.SpacingDdsSpacingPaddingTopHeadingSans08Top
|
|
12430
12437
|
};
|
|
12431
12438
|
|
|
12432
12439
|
var bodySans01Base$1 = __assign({
|
|
@@ -12547,7 +12554,7 @@ var leadSans05MarginsBase = {
|
|
|
12547
12554
|
};
|
|
12548
12555
|
|
|
12549
12556
|
var supportingStyleLabel01Base = __assign(__assign({
|
|
12550
|
-
color: Colors$
|
|
12557
|
+
color: Colors$p.DdsColorNeutralsGray7
|
|
12551
12558
|
}, FontPackages$k.supportingStyle_label_01.base), {
|
|
12552
12559
|
margin: 0
|
|
12553
12560
|
});
|
|
@@ -12558,7 +12565,7 @@ var supportingStyleLabel01MarginsBase = {
|
|
|
12558
12565
|
};
|
|
12559
12566
|
|
|
12560
12567
|
var supportingStyleHelperText01Base = __assign(__assign({
|
|
12561
|
-
color: Colors$
|
|
12568
|
+
color: Colors$p.DdsColorNeutralsGray6
|
|
12562
12569
|
}, FontPackages$k.supportingStyle_helpertext_01.base), {
|
|
12563
12570
|
margin: 0
|
|
12564
12571
|
});
|
|
@@ -12602,7 +12609,7 @@ var supportingStyleInputText03MarginsBase = {
|
|
|
12602
12609
|
};
|
|
12603
12610
|
|
|
12604
12611
|
var supportingStylePlaceholderText01Base = __assign(__assign({
|
|
12605
|
-
color: Colors$
|
|
12612
|
+
color: Colors$p.DdsColorNeutralsGray6
|
|
12606
12613
|
}, FontPackages$k.supportingStyle_placeholdertext_01.base), {
|
|
12607
12614
|
margin: 0
|
|
12608
12615
|
});
|
|
@@ -12635,7 +12642,7 @@ var supportingStyleTiny02MarginsBase = {
|
|
|
12635
12642
|
};
|
|
12636
12643
|
var selectionBase = {
|
|
12637
12644
|
color: textDefault$7.textColor,
|
|
12638
|
-
backgroundColor: Colors$
|
|
12645
|
+
backgroundColor: Colors$p.DdsColorTertiaryLightest
|
|
12639
12646
|
};
|
|
12640
12647
|
var typographyTokens = {
|
|
12641
12648
|
selection: {
|
|
@@ -12657,7 +12664,7 @@ var typographyTokens = {
|
|
|
12657
12664
|
base: aBoldBase
|
|
12658
12665
|
},
|
|
12659
12666
|
icon: {
|
|
12660
|
-
marginLeft: Spacing$
|
|
12667
|
+
marginLeft: Spacing$z.SizesDdsSpacingLocalX0125
|
|
12661
12668
|
}
|
|
12662
12669
|
},
|
|
12663
12670
|
headingSans01: {
|
|
@@ -20167,13 +20174,13 @@ var getTextColor = function getTextColor(color) {
|
|
|
20167
20174
|
};
|
|
20168
20175
|
|
|
20169
20176
|
var getElementStyling = function getElementStyling(type) {
|
|
20170
|
-
return Ae(templateObject_1$
|
|
20177
|
+
return Ae(templateObject_1$Y || (templateObject_1$Y = __makeTemplateObject(["\n ", "\n &::selection, *::selection {\n ", "\n }\n "], ["\n ", "\n &::selection, *::selection {\n ", "\n }\n "])), typographyTokens.typographyType[type].base, typographyTokens.selection.base);
|
|
20171
20178
|
};
|
|
20172
20179
|
|
|
20173
20180
|
var LinkIconWrapper = styled$3(IconWrapper$1).withConfig({
|
|
20174
20181
|
displayName: "Typography__LinkIconWrapper",
|
|
20175
20182
|
componentId: "sc-1uvxoh6-0"
|
|
20176
|
-
})(templateObject_2$
|
|
20183
|
+
})(templateObject_2$H || (templateObject_2$H = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyTokens.typographyType.a.icon);
|
|
20177
20184
|
var StyledTypography = styled$3.p.withConfig({
|
|
20178
20185
|
displayName: "Typography__StyledTypography",
|
|
20179
20186
|
componentId: "sc-1uvxoh6-1"
|
|
@@ -20234,20 +20241,20 @@ var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20234
20241
|
}) : '']
|
|
20235
20242
|
}));
|
|
20236
20243
|
});
|
|
20237
|
-
var templateObject_1$
|
|
20244
|
+
var templateObject_1$Y, templateObject_2$H, templateObject_3$u, templateObject_4$p, templateObject_5$g, templateObject_6$f, templateObject_7$b, templateObject_8$8, templateObject_9$7, templateObject_10$7, templateObject_11$5, templateObject_12$3, templateObject_13$2;
|
|
20238
20245
|
|
|
20239
20246
|
var RadioButtonGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
20240
20247
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
20241
20248
|
return useContext(RadioButtonGroupContext);
|
|
20242
20249
|
};
|
|
20243
20250
|
|
|
20244
|
-
var Colors$
|
|
20245
|
-
Spacing$
|
|
20251
|
+
var Colors$o = ddsBaseTokens.colors,
|
|
20252
|
+
Spacing$y = ddsBaseTokens.spacing,
|
|
20246
20253
|
FontPackages$j = ddsBaseTokens.fontPackages;
|
|
20247
20254
|
var radioButtonBase = {
|
|
20248
20255
|
border: '1px solid',
|
|
20249
|
-
borderColor: Colors$
|
|
20250
|
-
backgroundColor: Colors$
|
|
20256
|
+
borderColor: Colors$o.DdsColorNeutralsGray5,
|
|
20257
|
+
backgroundColor: Colors$o.DdsColorNeutralsWhite,
|
|
20251
20258
|
height: FontPackages$j.supportingStyle_inputtext_02.numbers.fontSizeNumber,
|
|
20252
20259
|
width: FontPackages$j.supportingStyle_inputtext_02.numbers.fontSizeNumber
|
|
20253
20260
|
};
|
|
@@ -20255,8 +20262,8 @@ var radioButtonBase = {
|
|
|
20255
20262
|
var radioButtonHoverBase = __assign({}, hoverInputfield);
|
|
20256
20263
|
|
|
20257
20264
|
var radioButtonDisabledBase = {
|
|
20258
|
-
borderColor: Colors$
|
|
20259
|
-
color: Colors$
|
|
20265
|
+
borderColor: Colors$o.DdsColorNeutralsGray5,
|
|
20266
|
+
color: Colors$o.DdsColorNeutralsGray6
|
|
20260
20267
|
};
|
|
20261
20268
|
var radioButtonReadOnlyBase = {
|
|
20262
20269
|
backgroundColor: 'transparent'
|
|
@@ -20267,31 +20274,31 @@ var radioButtonDangerBase = __assign({}, dangerInputfield);
|
|
|
20267
20274
|
var radioButtonDangerHoverBase = __assign({}, hoverDangerInputfield);
|
|
20268
20275
|
|
|
20269
20276
|
var radioButtonCheckedBase = {
|
|
20270
|
-
backgroundColor: Colors$
|
|
20271
|
-
borderColor: Colors$
|
|
20277
|
+
backgroundColor: Colors$o.DdsColorInteractiveBase,
|
|
20278
|
+
borderColor: Colors$o.DdsColorInteractiveBase
|
|
20272
20279
|
};
|
|
20273
20280
|
var radioButtonCheckedHoverBase = {
|
|
20274
|
-
backgroundColor: Colors$
|
|
20275
|
-
borderColor: Colors$
|
|
20276
|
-
boxShadow: "inset 0 0 0 1px ".concat(Colors$
|
|
20281
|
+
backgroundColor: Colors$o.DdsColorInteractiveDark,
|
|
20282
|
+
borderColor: Colors$o.DdsColorInteractiveDark,
|
|
20283
|
+
boxShadow: "inset 0 0 0 1px ".concat(Colors$o.DdsColorInteractiveDark)
|
|
20277
20284
|
};
|
|
20278
20285
|
var radioButtonCheckedDisabledBase = {
|
|
20279
|
-
borderColor: Colors$
|
|
20280
|
-
backgroundColor: Colors$
|
|
20286
|
+
borderColor: Colors$o.DdsColorNeutralsGray6,
|
|
20287
|
+
backgroundColor: Colors$o.DdsColorNeutralsGray6
|
|
20281
20288
|
};
|
|
20282
20289
|
var radioButtonCheckedReadOnlyBase = {
|
|
20283
|
-
borderColor: Colors$
|
|
20284
|
-
backgroundColor: Colors$
|
|
20290
|
+
borderColor: Colors$o.DdsColorNeutralsGray6,
|
|
20291
|
+
backgroundColor: Colors$o.DdsColorNeutralsGray6
|
|
20285
20292
|
};
|
|
20286
20293
|
var checkmarkBase$1 = {
|
|
20287
|
-
backgroundColor: Colors$
|
|
20288
|
-
height: Spacing$
|
|
20289
|
-
width: Spacing$
|
|
20290
|
-
left: "calc(50% - ".concat(Spacing$
|
|
20291
|
-
top: "calc(50% - ".concat(Spacing$
|
|
20294
|
+
backgroundColor: Colors$o.DdsColorNeutralsWhite,
|
|
20295
|
+
height: Spacing$y.SizesDdsSpacingLocalX05,
|
|
20296
|
+
width: Spacing$y.SizesDdsSpacingLocalX05,
|
|
20297
|
+
left: "calc(50% - ".concat(Spacing$y.SizesDdsSpacingLocalX05NumberPx / 2, "px)"),
|
|
20298
|
+
top: "calc(50% - ".concat(Spacing$y.SizesDdsSpacingLocalX05NumberPx / 2, "px)")
|
|
20292
20299
|
};
|
|
20293
20300
|
var containerBase$8 = {
|
|
20294
|
-
padding: "0 ".concat(Spacing$
|
|
20301
|
+
padding: "0 ".concat(Spacing$y.SizesDdsSpacingLocalX025, " 0 ").concat(20 + Spacing$y.SizesDdsSpacingLocalX075NumberPx, "px")
|
|
20295
20302
|
};
|
|
20296
20303
|
|
|
20297
20304
|
var focusBase$6 = __assign({}, focusVisible);
|
|
@@ -20299,7 +20306,7 @@ var focusBase$6 = __assign({}, focusVisible);
|
|
|
20299
20306
|
var radioButtonTokens = {
|
|
20300
20307
|
radioButton: {
|
|
20301
20308
|
base: radioButtonBase,
|
|
20302
|
-
spaceLeft: Spacing$
|
|
20309
|
+
spaceLeft: Spacing$y.SizesDdsSpacingLocalX025,
|
|
20303
20310
|
hover: {
|
|
20304
20311
|
base: radioButtonHoverBase
|
|
20305
20312
|
},
|
|
@@ -20342,7 +20349,7 @@ var radioButtonTokens = {
|
|
|
20342
20349
|
var CustomRadioButton = styled$3.span.withConfig({
|
|
20343
20350
|
displayName: "RadioButtonstyles__CustomRadioButton",
|
|
20344
20351
|
componentId: "sc-iwypha-0"
|
|
20345
|
-
})(templateObject_1$
|
|
20352
|
+
})(templateObject_1$X || (templateObject_1$X = __makeTemplateObject(["\n position: absolute;\n box-sizing: border-box;\n border-radius: 50%;\n vertical-align: middle;\n ", "\n left: ", ";\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"], ["\n position: absolute;\n box-sizing: border-box;\n border-radius: 50%;\n vertical-align: middle;\n ", "\n left: ", ";\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"])), radioButtonTokens.radioButton.base, radioButtonTokens.radioButton.spaceLeft);
|
|
20346
20353
|
var Input$6 = styled$3.input.attrs(function (_a) {
|
|
20347
20354
|
var _b = _a.type,
|
|
20348
20355
|
type = _b === void 0 ? 'radio' : _b;
|
|
@@ -20352,8 +20359,8 @@ var Input$6 = styled$3.input.attrs(function (_a) {
|
|
|
20352
20359
|
}).withConfig({
|
|
20353
20360
|
displayName: "RadioButtonstyles__Input",
|
|
20354
20361
|
componentId: "sc-iwypha-1"
|
|
20355
|
-
})(templateObject_2$
|
|
20356
|
-
var Container$
|
|
20362
|
+
})(templateObject_2$G || (templateObject_2$G = __makeTemplateObject(["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"], ["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"])));
|
|
20363
|
+
var Container$i = styled$3.label.withConfig({
|
|
20357
20364
|
displayName: "RadioButtonstyles__Container",
|
|
20358
20365
|
componentId: "sc-iwypha-2"
|
|
20359
20366
|
})(templateObject_6$e || (templateObject_6$e = __makeTemplateObject(["\n position: relative;\n display: block;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n display: flex;\n align-items: center;\n ", "\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n\n &:focus-within {\n ", "\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border-radius: 50%;\n ", "\n }\n"], ["\n position: relative;\n display: block;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n display: flex;\n align-items: center;\n ", "\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n\n &:focus-within {\n ", "\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border-radius: 50%;\n ", "\n }\n"])), radioButtonTokens.container.base, CustomRadioButton, CustomRadioButton, CustomRadioButton, radioButtonTokens.radioButton.checked.base, CustomRadioButton, radioButtonTokens.radioButton.hover.base, CustomRadioButton, radioButtonTokens.radioButton.checked.hover.base, radioButtonTokens.container.focus.base, function (_a) {
|
|
@@ -20366,9 +20373,9 @@ var Container$h = styled$3.label.withConfig({
|
|
|
20366
20373
|
var readOnly = _a.readOnly;
|
|
20367
20374
|
return readOnly && Ae(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "], ["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "])), CustomRadioButton, radioButtonTokens.radioButton.readOnly.base, CustomRadioButton, radioButtonTokens.radioButton.checked.readOnly.base);
|
|
20368
20375
|
}, CustomRadioButton, radioButtonTokens.checkmark.base);
|
|
20369
|
-
var templateObject_1$
|
|
20376
|
+
var templateObject_1$X, templateObject_2$G, templateObject_3$t, templateObject_4$o, templateObject_5$f, templateObject_6$e;
|
|
20370
20377
|
|
|
20371
|
-
var nextUniqueId$
|
|
20378
|
+
var nextUniqueId$h = 0;
|
|
20372
20379
|
|
|
20373
20380
|
var isValueEqualToGroupValueOrFalsy = function isValueEqualToGroupValueOrFalsy(value, group) {
|
|
20374
20381
|
if (typeof value !== 'undefined' && value !== null && group) {
|
|
@@ -20399,7 +20406,7 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20399
20406
|
ariaDescribedby = _a["aria-describedby"],
|
|
20400
20407
|
rest = __rest(_a, ["id", "name", "label", "disabled", "readOnly", "error", "style", "checked", "value", "className", "children", "required", "onChange", 'aria-describedby']);
|
|
20401
20408
|
|
|
20402
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "radioButton-".concat(nextUniqueId$
|
|
20409
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "radioButton-".concat(nextUniqueId$h++))[0];
|
|
20403
20410
|
var radioButtonGroup = useRadioButtonGroup();
|
|
20404
20411
|
|
|
20405
20412
|
var handleChange = function handleChange(event) {
|
|
@@ -20430,7 +20437,7 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20430
20437
|
style: style,
|
|
20431
20438
|
className: className
|
|
20432
20439
|
};
|
|
20433
|
-
return jsxRuntime.exports.jsxs(Container$
|
|
20440
|
+
return jsxRuntime.exports.jsxs(Container$i, __assign({}, containerProps, {
|
|
20434
20441
|
htmlFor: uniqueId
|
|
20435
20442
|
}, {
|
|
20436
20443
|
children: [jsxRuntime.exports.jsx(Input$6, __assign({
|
|
@@ -20446,14 +20453,14 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20446
20453
|
var MarkerWrapper = styled$3.span.withConfig({
|
|
20447
20454
|
displayName: "RequiredMarker__MarkerWrapper",
|
|
20448
20455
|
componentId: "sc-1p5sjqf-0"
|
|
20449
|
-
})(templateObject_1$
|
|
20456
|
+
})(templateObject_1$W || (templateObject_1$W = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), ddsBaseTokens.colors.DdsColorDangerBase);
|
|
20450
20457
|
|
|
20451
20458
|
function RequiredMarker() {
|
|
20452
20459
|
return jsxRuntime.exports.jsx(MarkerWrapper, {
|
|
20453
20460
|
children: "*"
|
|
20454
20461
|
});
|
|
20455
20462
|
}
|
|
20456
|
-
var templateObject_1$
|
|
20463
|
+
var templateObject_1$W;
|
|
20457
20464
|
|
|
20458
20465
|
var ReportProblemOutlined = {};
|
|
20459
20466
|
|
|
@@ -20474,21 +20481,21 @@ var _default$j = (0, _createSvgIcon$j.default)( /*#__PURE__*/(0, _jsxRuntime$j.j
|
|
|
20474
20481
|
|
|
20475
20482
|
default_1$j = ReportProblemOutlined.default = _default$j;
|
|
20476
20483
|
|
|
20477
|
-
var Colors$
|
|
20478
|
-
Spacing$
|
|
20484
|
+
var Colors$n = ddsBaseTokens.colors,
|
|
20485
|
+
Spacing$x = ddsBaseTokens.spacing;
|
|
20479
20486
|
var base$b = {
|
|
20480
|
-
padding: "".concat(Spacing$
|
|
20487
|
+
padding: "".concat(Spacing$x.SizesDdsSpacingLocalX025, " ").concat(Spacing$x.SizesDdsSpacingLocalX05),
|
|
20481
20488
|
maxWidth: '100%'
|
|
20482
20489
|
};
|
|
20483
20490
|
var tipBase = {
|
|
20484
|
-
backgroundColor: Colors$
|
|
20491
|
+
backgroundColor: Colors$n.DdsColorNeutralsWhite
|
|
20485
20492
|
};
|
|
20486
20493
|
var errorBase = {
|
|
20487
|
-
color: Colors$
|
|
20488
|
-
backgroundColor: Colors$
|
|
20494
|
+
color: Colors$n.DdsColorDangerBase,
|
|
20495
|
+
backgroundColor: Colors$n.DdsColorDangerLightest
|
|
20489
20496
|
};
|
|
20490
20497
|
var inputMessageTokens = {
|
|
20491
|
-
padding: "".concat(Spacing$
|
|
20498
|
+
padding: "".concat(Spacing$x.SizesDdsSpacingLocalX025, " ").concat(Spacing$x.SizesDdsSpacingLocalX05),
|
|
20492
20499
|
base: base$b,
|
|
20493
20500
|
tip: {
|
|
20494
20501
|
base: tipBase
|
|
@@ -20497,16 +20504,16 @@ var inputMessageTokens = {
|
|
|
20497
20504
|
base: errorBase
|
|
20498
20505
|
},
|
|
20499
20506
|
icon: {
|
|
20500
|
-
spaceRight: Spacing$
|
|
20507
|
+
spaceRight: Spacing$x.SizesDdsSpacingLocalX05
|
|
20501
20508
|
}
|
|
20502
20509
|
};
|
|
20503
20510
|
|
|
20504
20511
|
var InputMessageWrapper = styled$3.div.withConfig({
|
|
20505
20512
|
displayName: "InputMessage__InputMessageWrapper",
|
|
20506
20513
|
componentId: "sc-c954fy-0"
|
|
20507
|
-
})(templateObject_2$
|
|
20514
|
+
})(templateObject_2$F || (templateObject_2$F = __makeTemplateObject(["\n display: flex;\n align-items: center;\n width: fit-content;\n word-break: break-word;\n ", "\n ", "\n svg {\n margin-right: ", ";\n position: relative;\n }\n"], ["\n display: flex;\n align-items: center;\n width: fit-content;\n word-break: break-word;\n ", "\n ", "\n svg {\n margin-right: ", ";\n position: relative;\n }\n"])), inputMessageTokens.base, function (_a) {
|
|
20508
20515
|
var messageType = _a.messageType;
|
|
20509
|
-
return messageType && Ae(templateObject_1$
|
|
20516
|
+
return messageType && Ae(templateObject_1$V || (templateObject_1$V = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputMessageTokens[messageType].base);
|
|
20510
20517
|
}, inputMessageTokens.icon.spaceRight);
|
|
20511
20518
|
var InputMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
20512
20519
|
var message = _a.message,
|
|
@@ -20533,21 +20540,21 @@ var InputMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20533
20540
|
}))]
|
|
20534
20541
|
}));
|
|
20535
20542
|
});
|
|
20536
|
-
var templateObject_1$
|
|
20543
|
+
var templateObject_1$V, templateObject_2$F;
|
|
20537
20544
|
|
|
20538
|
-
var Spacing$
|
|
20545
|
+
var Spacing$w = ddsBaseTokens.spacing;
|
|
20539
20546
|
var groupContainerRowBase$1 = {
|
|
20540
|
-
gap: Spacing$
|
|
20547
|
+
gap: Spacing$w.SizesDdsSpacingLocalX075
|
|
20541
20548
|
};
|
|
20542
20549
|
var groupContainerColumnBase$1 = {
|
|
20543
|
-
gap: Spacing$
|
|
20550
|
+
gap: Spacing$w.SizesDdsSpacingLocalX05
|
|
20544
20551
|
};
|
|
20545
20552
|
var containerBase$7 = {
|
|
20546
|
-
gap: Spacing$
|
|
20553
|
+
gap: Spacing$w.SizesDdsSpacingLocalX0125
|
|
20547
20554
|
};
|
|
20548
20555
|
var radioButtonGroupTokens = {
|
|
20549
20556
|
label: {
|
|
20550
|
-
spaceLeft: Spacing$
|
|
20557
|
+
spaceLeft: Spacing$w.SizesDdsSpacingLocalX025
|
|
20551
20558
|
},
|
|
20552
20559
|
container: {
|
|
20553
20560
|
base: containerBase$7
|
|
@@ -20591,16 +20598,16 @@ var spaceSeparatedIdListGenerator = function spaceSeparatedIdListGenerator(value
|
|
|
20591
20598
|
return (_a = idArrayGenerator(values)) === null || _a === void 0 ? void 0 : _a.join(' ');
|
|
20592
20599
|
};
|
|
20593
20600
|
|
|
20594
|
-
var Container$
|
|
20601
|
+
var Container$h = styled$3.div.withConfig({
|
|
20595
20602
|
displayName: "RadioButtonGroup__Container",
|
|
20596
20603
|
componentId: "sc-1xsll60-0"
|
|
20597
|
-
})(templateObject_1$
|
|
20604
|
+
})(templateObject_1$U || (templateObject_1$U = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n ", "\n"])), radioButtonGroupTokens.container.base);
|
|
20598
20605
|
var GroupContainer$1 = styled$3.div.withConfig({
|
|
20599
20606
|
displayName: "RadioButtonGroup__GroupContainer",
|
|
20600
20607
|
componentId: "sc-1xsll60-1"
|
|
20601
20608
|
})(templateObject_3$s || (templateObject_3$s = __makeTemplateObject(["\n display: flex;\n ", "\n"], ["\n display: flex;\n ", "\n"])), function (_a) {
|
|
20602
20609
|
var direction = _a.direction;
|
|
20603
|
-
return Ae(templateObject_2$
|
|
20610
|
+
return Ae(templateObject_2$E || (templateObject_2$E = __makeTemplateObject(["\n flex-direction: ", ";\n ", "\n "], ["\n flex-direction: ", ";\n ", "\n "])), direction, radioButtonGroupTokens.groupContainer.direction[direction].base);
|
|
20604
20611
|
});
|
|
20605
20612
|
var Label$4 = styled$3(Typography).withConfig({
|
|
20606
20613
|
displayName: "RadioButtonGroup__Label",
|
|
@@ -20655,7 +20662,7 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
20655
20662
|
value: groupValue,
|
|
20656
20663
|
onChange: handleChange
|
|
20657
20664
|
};
|
|
20658
|
-
return jsxRuntime.exports.jsxs(Container$
|
|
20665
|
+
return jsxRuntime.exports.jsxs(Container$h, __assign({}, containerProps, {
|
|
20659
20666
|
children: [jsxRuntime.exports.jsxs(Label$4, __assign({
|
|
20660
20667
|
forwardedAs: "span",
|
|
20661
20668
|
typographyType: "supportingStyleLabel01",
|
|
@@ -20685,46 +20692,46 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
20685
20692
|
})]
|
|
20686
20693
|
}));
|
|
20687
20694
|
};
|
|
20688
|
-
var templateObject_1$
|
|
20695
|
+
var templateObject_1$U, templateObject_2$E, templateObject_3$s, templateObject_4$n;
|
|
20689
20696
|
|
|
20690
|
-
var Colors$
|
|
20691
|
-
Spacing$
|
|
20697
|
+
var Colors$m = ddsBaseTokens.colors,
|
|
20698
|
+
Spacing$v = ddsBaseTokens.spacing,
|
|
20692
20699
|
FontPackages$i = ddsBaseTokens.fontPackages,
|
|
20693
20700
|
BorderRadius$8 = ddsBaseTokens.borderRadius;
|
|
20694
20701
|
var checkboxBase = {
|
|
20695
20702
|
border: '1px solid',
|
|
20696
|
-
backgroundColor: Colors$
|
|
20697
|
-
borderColor: Colors$
|
|
20703
|
+
backgroundColor: Colors$m.DdsColorNeutralsWhite,
|
|
20704
|
+
borderColor: Colors$m.DdsColorNeutralsGray5,
|
|
20698
20705
|
borderRadius: BorderRadius$8.RadiiDdsBorderRadius1Radius,
|
|
20699
20706
|
height: FontPackages$i.supportingStyle_inputtext_02.base.fontSize,
|
|
20700
20707
|
width: FontPackages$i.supportingStyle_inputtext_02.base.fontSize
|
|
20701
20708
|
};
|
|
20702
20709
|
var checkboxCheckedBase = {
|
|
20703
|
-
borderColor: Colors$
|
|
20704
|
-
backgroundColor: Colors$
|
|
20710
|
+
borderColor: Colors$m.DdsColorInteractiveBase,
|
|
20711
|
+
backgroundColor: Colors$m.DdsColorInteractiveBase
|
|
20705
20712
|
};
|
|
20706
20713
|
var checkboxDisabledBase = {
|
|
20707
|
-
borderColor: Colors$
|
|
20708
|
-
color: Colors$
|
|
20714
|
+
borderColor: Colors$m.DdsColorNeutralsGray5,
|
|
20715
|
+
color: Colors$m.DdsColorNeutralsGray6
|
|
20709
20716
|
};
|
|
20710
20717
|
var checkboxCheckedDisabledBase = {
|
|
20711
|
-
borderColor: Colors$
|
|
20712
|
-
backgroundColor: Colors$
|
|
20718
|
+
borderColor: Colors$m.DdsColorNeutralsGray6,
|
|
20719
|
+
backgroundColor: Colors$m.DdsColorNeutralsGray6
|
|
20713
20720
|
};
|
|
20714
20721
|
var checkboxReadOnlyBase = {
|
|
20715
20722
|
backgroundColor: 'transparent'
|
|
20716
20723
|
};
|
|
20717
20724
|
var checkboxCheckedReadOnlyBase = {
|
|
20718
|
-
borderColor: Colors$
|
|
20719
|
-
backgroundColor: Colors$
|
|
20725
|
+
borderColor: Colors$m.DdsColorNeutralsGray6,
|
|
20726
|
+
backgroundColor: Colors$m.DdsColorNeutralsGray6
|
|
20720
20727
|
};
|
|
20721
20728
|
|
|
20722
20729
|
var checkboxHoverBase = __assign({}, hoverInputfield);
|
|
20723
20730
|
|
|
20724
20731
|
var checkboxCheckedHoverBase = {
|
|
20725
|
-
backgroundColor: Colors$
|
|
20726
|
-
boxShadow: "inset 0 0 0 1px ".concat(Colors$
|
|
20727
|
-
borderColor: Colors$
|
|
20732
|
+
backgroundColor: Colors$m.DdsColorInteractiveDark,
|
|
20733
|
+
boxShadow: "inset 0 0 0 1px ".concat(Colors$m.DdsColorInteractiveDark),
|
|
20734
|
+
borderColor: Colors$m.DdsColorInteractiveDark
|
|
20728
20735
|
};
|
|
20729
20736
|
|
|
20730
20737
|
var checkboxDangerBase = __assign({}, dangerInputfield);
|
|
@@ -20748,16 +20755,16 @@ var checkmarkIndeterminateBase = {
|
|
|
20748
20755
|
var containerBase$6 = __assign({}, FontPackages$i.body_sans_02.base);
|
|
20749
20756
|
|
|
20750
20757
|
var containerWithLabelBase = __assign(__assign({}, FontPackages$i.body_sans_02.base), {
|
|
20751
|
-
padding: "0 ".concat(Spacing$
|
|
20758
|
+
padding: "0 ".concat(Spacing$v.SizesDdsSpacingLocalX025, " 0 ").concat(FontPackages$i.supportingStyle_inputtext_02.numbers.fontSizeNumber + Spacing$v.SizesDdsSpacingLocalX075NumberPx, "px")
|
|
20752
20759
|
});
|
|
20753
20760
|
|
|
20754
20761
|
var containerNoLabelBase = {
|
|
20755
|
-
padding: "".concat(Spacing$
|
|
20762
|
+
padding: "".concat(Spacing$v.SizesDdsSpacingLocalX075, " ").concat(Spacing$v.SizesDdsSpacingLocalX0125, " ").concat(Spacing$v.SizesDdsSpacingLocalX075, " ").concat(Spacing$v.SizesDdsSpacingLocalX15)
|
|
20756
20763
|
};
|
|
20757
20764
|
var checkboxTokens = {
|
|
20758
20765
|
checkbox: {
|
|
20759
20766
|
base: checkboxBase,
|
|
20760
|
-
spaceLeft: Spacing$
|
|
20767
|
+
spaceLeft: Spacing$v.SizesDdsSpacingLocalX025,
|
|
20761
20768
|
hover: {
|
|
20762
20769
|
base: checkboxHoverBase
|
|
20763
20770
|
},
|
|
@@ -20800,7 +20807,7 @@ var checkboxTokens = {
|
|
|
20800
20807
|
},
|
|
20801
20808
|
checkmark: {
|
|
20802
20809
|
base: checkmarkBase,
|
|
20803
|
-
color: Colors$
|
|
20810
|
+
color: Colors$m.DdsColorNeutralsWhite,
|
|
20804
20811
|
indeterminate: {
|
|
20805
20812
|
base: checkmarkIndeterminateBase
|
|
20806
20813
|
}
|
|
@@ -20822,7 +20829,7 @@ var checkboxTokens = {
|
|
|
20822
20829
|
var CustomCheckbox = styled$3.span.withConfig({
|
|
20823
20830
|
displayName: "Checkboxstyles__CustomCheckbox",
|
|
20824
20831
|
componentId: "sc-17q1ubf-0"
|
|
20825
|
-
})(templateObject_1$
|
|
20832
|
+
})(templateObject_1$T || (templateObject_1$T = __makeTemplateObject(["\n position: absolute;\n ", "\n left: ", ";\n box-sizing: border-box;\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"], ["\n position: absolute;\n ", "\n left: ", ";\n box-sizing: border-box;\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"])), checkboxTokens.checkbox.base, checkboxTokens.checkbox.spaceLeft);
|
|
20826
20833
|
var Input$5 = styled$3.input.attrs(function (_a) {
|
|
20827
20834
|
var _b = _a.type,
|
|
20828
20835
|
type = _b === void 0 ? 'checkbox' : _b;
|
|
@@ -20832,8 +20839,8 @@ var Input$5 = styled$3.input.attrs(function (_a) {
|
|
|
20832
20839
|
}).withConfig({
|
|
20833
20840
|
displayName: "Checkboxstyles__Input",
|
|
20834
20841
|
componentId: "sc-17q1ubf-1"
|
|
20835
|
-
})(templateObject_2$
|
|
20836
|
-
var Container$
|
|
20842
|
+
})(templateObject_2$D || (templateObject_2$D = __makeTemplateObject(["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"], ["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"])));
|
|
20843
|
+
var Container$g = styled$3.label.withConfig({
|
|
20837
20844
|
displayName: "Checkboxstyles__Container",
|
|
20838
20845
|
componentId: "sc-17q1ubf-2"
|
|
20839
20846
|
})(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n ", "\n ", "\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n &:focus-within {\n ", "\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border: solid ", ";\n ", "\n }\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n ", "\n ", "\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n &:focus-within {\n ", "\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border: solid ", ";\n ", "\n }\n"])), checkboxTokens.container.base, function (_a) {
|
|
@@ -20857,14 +20864,14 @@ var Container$f = styled$3.label.withConfig({
|
|
|
20857
20864
|
var indeterminate = _a.indeterminate;
|
|
20858
20865
|
return indeterminate ? Ae(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "], ["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "])), checkboxTokens.checkmark.indeterminate.base) : Ae(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.checkmark.base);
|
|
20859
20866
|
});
|
|
20860
|
-
var templateObject_1$
|
|
20867
|
+
var templateObject_1$T, templateObject_2$D, templateObject_3$r, templateObject_4$m, templateObject_5$e, templateObject_6$d, templateObject_7$a, templateObject_8$7, templateObject_9$6, templateObject_10$6, templateObject_11$4, templateObject_12$2, templateObject_13$1;
|
|
20861
20868
|
|
|
20862
20869
|
var CheckboxGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
20863
20870
|
var useCheckboxGroup = function useCheckboxGroup() {
|
|
20864
20871
|
return useContext(CheckboxGroupContext);
|
|
20865
20872
|
};
|
|
20866
20873
|
|
|
20867
|
-
var nextUniqueId$
|
|
20874
|
+
var nextUniqueId$g = 0;
|
|
20868
20875
|
var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
20869
20876
|
var id = _a.id,
|
|
20870
20877
|
name = _a.name,
|
|
@@ -20878,7 +20885,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20878
20885
|
style = _a.style,
|
|
20879
20886
|
rest = __rest(_a, ["id", "name", "label", "error", "disabled", "readOnly", "indeterminate", 'aria-describedby', "className", "style"]);
|
|
20880
20887
|
|
|
20881
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "checkbox-".concat(nextUniqueId$
|
|
20888
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "checkbox-".concat(nextUniqueId$g++))[0];
|
|
20882
20889
|
var checkboxGroup = useCheckboxGroup();
|
|
20883
20890
|
var containerProps = {
|
|
20884
20891
|
error: error || (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.error),
|
|
@@ -20904,7 +20911,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20904
20911
|
'aria-readonly': readOnly
|
|
20905
20912
|
}, rest);
|
|
20906
20913
|
|
|
20907
|
-
return jsxRuntime.exports.jsxs(Container$
|
|
20914
|
+
return jsxRuntime.exports.jsxs(Container$g, __assign({}, containerProps, {
|
|
20908
20915
|
children: [jsxRuntime.exports.jsx(Input$5, __assign({}, inputProps, {
|
|
20909
20916
|
"data-indeterminate": indeterminate
|
|
20910
20917
|
})), jsxRuntime.exports.jsx(CustomCheckbox, {}), label && jsxRuntime.exports.jsx(Typography, __assign({
|
|
@@ -20915,19 +20922,19 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20915
20922
|
}));
|
|
20916
20923
|
});
|
|
20917
20924
|
|
|
20918
|
-
var Spacing$
|
|
20925
|
+
var Spacing$u = ddsBaseTokens.spacing;
|
|
20919
20926
|
var groupContainerRowBase = {
|
|
20920
|
-
gap: Spacing$
|
|
20927
|
+
gap: Spacing$u.SizesDdsSpacingLocalX075
|
|
20921
20928
|
};
|
|
20922
20929
|
var groupContainerColumnBase = {
|
|
20923
|
-
gap: Spacing$
|
|
20930
|
+
gap: Spacing$u.SizesDdsSpacingLocalX05
|
|
20924
20931
|
};
|
|
20925
20932
|
var containerBase$5 = {
|
|
20926
|
-
gap: Spacing$
|
|
20933
|
+
gap: Spacing$u.SizesDdsSpacingLocalX0125
|
|
20927
20934
|
};
|
|
20928
20935
|
var checkboxGroupTokens = {
|
|
20929
20936
|
label: {
|
|
20930
|
-
spaceLeft: Spacing$
|
|
20937
|
+
spaceLeft: Spacing$u.SizesDdsSpacingLocalX025
|
|
20931
20938
|
},
|
|
20932
20939
|
container: {
|
|
20933
20940
|
base: containerBase$5
|
|
@@ -20944,16 +20951,16 @@ var checkboxGroupTokens = {
|
|
|
20944
20951
|
}
|
|
20945
20952
|
};
|
|
20946
20953
|
|
|
20947
|
-
var Container$
|
|
20954
|
+
var Container$f = styled$3.div.withConfig({
|
|
20948
20955
|
displayName: "CheckboxGroup__Container",
|
|
20949
20956
|
componentId: "sc-uixbzg-0"
|
|
20950
|
-
})(templateObject_1$
|
|
20957
|
+
})(templateObject_1$S || (templateObject_1$S = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n ", "\n"])), checkboxGroupTokens.container.base);
|
|
20951
20958
|
var GroupContainer = styled$3.div.withConfig({
|
|
20952
20959
|
displayName: "CheckboxGroup__GroupContainer",
|
|
20953
20960
|
componentId: "sc-uixbzg-1"
|
|
20954
20961
|
})(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n display: flex;\n ", "\n"], ["\n display: flex;\n ", "\n"])), function (_a) {
|
|
20955
20962
|
var direction = _a.direction;
|
|
20956
|
-
return Ae(templateObject_2$
|
|
20963
|
+
return Ae(templateObject_2$C || (templateObject_2$C = __makeTemplateObject(["\n flex-direction: ", ";\n ", "\n "], ["\n flex-direction: ", ";\n ", "\n "])), direction, checkboxGroupTokens.groupContainer.direction[direction].base);
|
|
20957
20964
|
});
|
|
20958
20965
|
var Label$3 = styled$3(Typography).withConfig({
|
|
20959
20966
|
displayName: "CheckboxGroup__Label",
|
|
@@ -20988,7 +20995,7 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
20988
20995
|
uniqueGroupId: uniqueGroupId,
|
|
20989
20996
|
tipId: tipId
|
|
20990
20997
|
};
|
|
20991
|
-
return jsxRuntime.exports.jsxs(Container$
|
|
20998
|
+
return jsxRuntime.exports.jsxs(Container$f, __assign({}, containerProps, {
|
|
20992
20999
|
children: [jsxRuntime.exports.jsxs(Label$3, __assign({
|
|
20993
21000
|
forwardedAs: "span",
|
|
20994
21001
|
typographyType: "supportingStyleLabel01",
|
|
@@ -21017,15 +21024,15 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
21017
21024
|
})]
|
|
21018
21025
|
}));
|
|
21019
21026
|
};
|
|
21020
|
-
var templateObject_1$
|
|
21027
|
+
var templateObject_1$S, templateObject_2$C, templateObject_3$q, templateObject_4$l;
|
|
21021
21028
|
|
|
21022
21029
|
var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineHeight, fontSize) {
|
|
21023
21030
|
return lineHeight * 0.01 * fontSize;
|
|
21024
21031
|
};
|
|
21025
21032
|
|
|
21026
|
-
var Colors$
|
|
21027
|
-
Border$
|
|
21028
|
-
Spacing$
|
|
21033
|
+
var Colors$l = ddsBaseTokens.colors,
|
|
21034
|
+
Border$f = ddsBaseTokens.border,
|
|
21035
|
+
Spacing$t = ddsBaseTokens.spacing,
|
|
21029
21036
|
FontPackages$h = ddsBaseTokens.fontPackages,
|
|
21030
21037
|
BorderRadius$7 = ddsBaseTokens.borderRadius,
|
|
21031
21038
|
OuterShadow$5 = ddsBaseTokens.outerShadow;
|
|
@@ -21033,10 +21040,10 @@ var iconSizeTinyPx = calculateHeightWithLineHeight(FontPackages$h.supportingStyl
|
|
|
21033
21040
|
var iconSizeSmallPx = calculateHeightWithLineHeight(FontPackages$h.body_sans_01.numbers.lineHeightNumber, FontPackages$h.body_sans_01.numbers.fontSizeNumber);
|
|
21034
21041
|
var iconSizeMediumPx = calculateHeightWithLineHeight(FontPackages$h.body_sans_02.numbers.lineHeightNumber, FontPackages$h.body_sans_02.numbers.fontSizeNumber);
|
|
21035
21042
|
var iconSizeLargePx = calculateHeightWithLineHeight(FontPackages$h.body_sans_04.numbers.lineHeightNumber, FontPackages$h.body_sans_04.numbers.fontSizeNumber);
|
|
21036
|
-
var svgOffset = Spacing$
|
|
21043
|
+
var svgOffset = Spacing$t.SizesDdsSpacingLocalX0125NumberPx;
|
|
21037
21044
|
var justIconSmallBase = {
|
|
21038
21045
|
fontSize: "".concat(iconSizeSmallPx + svgOffset, "px"),
|
|
21039
|
-
padding: Spacing$
|
|
21046
|
+
padding: Spacing$t.SizesDdsSpacingLocalX05
|
|
21040
21047
|
};
|
|
21041
21048
|
var justIconWrapperSmallBase = {
|
|
21042
21049
|
height: "".concat(iconSizeSmallPx, "px"),
|
|
@@ -21044,12 +21051,12 @@ var justIconWrapperSmallBase = {
|
|
|
21044
21051
|
};
|
|
21045
21052
|
|
|
21046
21053
|
var textSmallBase = __assign(__assign({}, FontPackages$h.body_sans_01.base), {
|
|
21047
|
-
padding: "".concat(Spacing$
|
|
21054
|
+
padding: "".concat(Spacing$t.SizesDdsSpacingLocalX05, " ").concat(Spacing$t.SizesDdsSpacingLocalX1NumberPx - 2, "px")
|
|
21048
21055
|
});
|
|
21049
21056
|
|
|
21050
21057
|
var justIconMediumBase = {
|
|
21051
21058
|
fontSize: "".concat(iconSizeMediumPx + svgOffset, "px"),
|
|
21052
|
-
padding: Spacing$
|
|
21059
|
+
padding: Spacing$t.SizesDdsSpacingLocalX075
|
|
21053
21060
|
};
|
|
21054
21061
|
var justIconWrapperMediumBase = {
|
|
21055
21062
|
height: "".concat(iconSizeMediumPx, "px"),
|
|
@@ -21057,12 +21064,12 @@ var justIconWrapperMediumBase = {
|
|
|
21057
21064
|
};
|
|
21058
21065
|
|
|
21059
21066
|
var textMediumBase = __assign(__assign({}, FontPackages$h.body_sans_02.base), {
|
|
21060
|
-
padding: "".concat(Spacing$
|
|
21067
|
+
padding: "".concat(Spacing$t.SizesDdsSpacingLocalX075, " ").concat(Spacing$t.SizesDdsSpacingLocalX15NumberPx - 2, "px")
|
|
21061
21068
|
});
|
|
21062
21069
|
|
|
21063
21070
|
var justIconLargeBase = {
|
|
21064
21071
|
fontSize: "".concat(iconSizeLargePx + svgOffset, "px"),
|
|
21065
|
-
padding: Spacing$
|
|
21072
|
+
padding: Spacing$t.SizesDdsSpacingLocalX1
|
|
21066
21073
|
};
|
|
21067
21074
|
var justIconWrapperLargeBase = {
|
|
21068
21075
|
height: "".concat(iconSizeLargePx, "px"),
|
|
@@ -21070,12 +21077,12 @@ var justIconWrapperLargeBase = {
|
|
|
21070
21077
|
};
|
|
21071
21078
|
|
|
21072
21079
|
var textLargeBase = __assign(__assign({}, FontPackages$h.body_sans_04.base), {
|
|
21073
|
-
padding: "".concat(Spacing$
|
|
21080
|
+
padding: "".concat(Spacing$t.SizesDdsSpacingLocalX1, " ").concat(Spacing$t.SizesDdsSpacingLocalX2NumberPx - 2, "px")
|
|
21074
21081
|
});
|
|
21075
21082
|
|
|
21076
21083
|
var justIconTinyBase = {
|
|
21077
21084
|
fontSize: "".concat(iconSizeTinyPx + svgOffset, "px"),
|
|
21078
|
-
padding: Spacing$
|
|
21085
|
+
padding: Spacing$t.SizesDdsSpacingLocalX025
|
|
21079
21086
|
};
|
|
21080
21087
|
var justIconWrapperTinyBase = {
|
|
21081
21088
|
height: "".concat(iconSizeTinyPx, "px"),
|
|
@@ -21083,65 +21090,65 @@ var justIconWrapperTinyBase = {
|
|
|
21083
21090
|
};
|
|
21084
21091
|
|
|
21085
21092
|
var textTinyBase = __assign(__assign({}, FontPackages$h.supportingStyle_tiny_01.base), {
|
|
21086
|
-
padding: "".concat(Spacing$
|
|
21093
|
+
padding: "".concat(Spacing$t.SizesDdsSpacingLocalX025, " ").concat(Spacing$t.SizesDdsSpacingLocalX075)
|
|
21087
21094
|
});
|
|
21088
21095
|
|
|
21089
21096
|
var buttonBase$1 = {
|
|
21090
|
-
border: "".concat(Border$
|
|
21097
|
+
border: "".concat(Border$f.BordersDdsBorderStyleLightStrokeWeight, " solid")
|
|
21091
21098
|
};
|
|
21092
21099
|
var filledButtonColors = {
|
|
21093
21100
|
primary: {
|
|
21094
21101
|
base: {
|
|
21095
|
-
color: Colors$
|
|
21096
|
-
backgroundColor: Colors$
|
|
21097
|
-
borderColor: Colors$
|
|
21102
|
+
color: Colors$l.DdsColorNeutralsWhite,
|
|
21103
|
+
backgroundColor: Colors$l.DdsColorInteractiveBase,
|
|
21104
|
+
borderColor: Colors$l.DdsColorInteractiveBase
|
|
21098
21105
|
},
|
|
21099
21106
|
hover: {
|
|
21100
21107
|
base: {
|
|
21101
|
-
backgroundColor: Colors$
|
|
21102
|
-
borderColor: Colors$
|
|
21108
|
+
backgroundColor: Colors$l.DdsColorInteractiveDark,
|
|
21109
|
+
borderColor: Colors$l.DdsColorInteractiveDark
|
|
21103
21110
|
}
|
|
21104
21111
|
},
|
|
21105
21112
|
active: {
|
|
21106
21113
|
base: {
|
|
21107
|
-
backgroundColor: Colors$
|
|
21108
|
-
borderColor: Colors$
|
|
21114
|
+
backgroundColor: Colors$l.DdsColorInteractiveDarker,
|
|
21115
|
+
borderColor: Colors$l.DdsColorInteractiveDarker
|
|
21109
21116
|
}
|
|
21110
21117
|
}
|
|
21111
21118
|
},
|
|
21112
21119
|
secondary: {
|
|
21113
21120
|
base: {
|
|
21114
|
-
color: Colors$
|
|
21115
|
-
backgroundColor: Colors$
|
|
21116
|
-
borderColor: Colors$
|
|
21121
|
+
color: Colors$l.DdsColorNeutralsGray8,
|
|
21122
|
+
backgroundColor: Colors$l.DdsColorNeutralsGray1,
|
|
21123
|
+
borderColor: Colors$l.DdsColorNeutralsGray5
|
|
21117
21124
|
},
|
|
21118
21125
|
hover: {
|
|
21119
21126
|
base: {
|
|
21120
|
-
backgroundColor: Colors$
|
|
21127
|
+
backgroundColor: Colors$l.DdsColorNeutralsGray2
|
|
21121
21128
|
}
|
|
21122
21129
|
},
|
|
21123
21130
|
active: {
|
|
21124
21131
|
base: {
|
|
21125
|
-
backgroundColor: Colors$
|
|
21132
|
+
backgroundColor: Colors$l.DdsColorNeutralsGray3
|
|
21126
21133
|
}
|
|
21127
21134
|
}
|
|
21128
21135
|
},
|
|
21129
21136
|
danger: {
|
|
21130
21137
|
base: {
|
|
21131
|
-
color: Colors$
|
|
21132
|
-
backgroundColor: Colors$
|
|
21133
|
-
borderColor: Colors$
|
|
21138
|
+
color: Colors$l.DdsColorNeutralsWhite,
|
|
21139
|
+
backgroundColor: Colors$l.DdsColorDangerBase,
|
|
21140
|
+
borderColor: Colors$l.DdsColorDangerBase
|
|
21134
21141
|
},
|
|
21135
21142
|
hover: {
|
|
21136
21143
|
base: {
|
|
21137
|
-
backgroundColor: Colors$
|
|
21138
|
-
borderColor: Colors$
|
|
21144
|
+
backgroundColor: Colors$l.DdsColorDangerDark,
|
|
21145
|
+
borderColor: Colors$l.DdsColorDangerDark
|
|
21139
21146
|
}
|
|
21140
21147
|
},
|
|
21141
21148
|
active: {
|
|
21142
21149
|
base: {
|
|
21143
|
-
backgroundColor: Colors$
|
|
21144
|
-
borderColor: Colors$
|
|
21150
|
+
backgroundColor: Colors$l.DdsColorDangerDarker,
|
|
21151
|
+
borderColor: Colors$l.DdsColorDangerDarker
|
|
21145
21152
|
}
|
|
21146
21153
|
}
|
|
21147
21154
|
}
|
|
@@ -21196,62 +21203,62 @@ var borderlessBase = {
|
|
|
21196
21203
|
textDecorationColor: 'transparent'
|
|
21197
21204
|
};
|
|
21198
21205
|
var borderlessPrimaryBase = {
|
|
21199
|
-
color: Colors$
|
|
21200
|
-
taxtDecorationColor: Colors$
|
|
21206
|
+
color: Colors$l.DdsColorInteractiveBase,
|
|
21207
|
+
taxtDecorationColor: Colors$l.DdsColorInteractiveBase
|
|
21201
21208
|
};
|
|
21202
21209
|
var borderlessPrimaryHoverBase = {
|
|
21203
|
-
color: Colors$
|
|
21204
|
-
textDecorationColor: Colors$
|
|
21210
|
+
color: Colors$l.DdsColorInteractiveDark,
|
|
21211
|
+
textDecorationColor: Colors$l.DdsColorInteractiveDark
|
|
21205
21212
|
};
|
|
21206
21213
|
var borderlessPrimaryActiveBase = {
|
|
21207
|
-
color: Colors$
|
|
21208
|
-
textDecorationColor: Colors$
|
|
21214
|
+
color: Colors$l.DdsColorInteractiveDarker,
|
|
21215
|
+
textDecorationColor: Colors$l.DdsColorInteractiveDarker
|
|
21209
21216
|
};
|
|
21210
21217
|
var borderlessPrimaryIconHoverBase = {
|
|
21211
|
-
borderColor: Colors$
|
|
21212
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21218
|
+
borderColor: Colors$l.DdsColorInteractiveDark,
|
|
21219
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorInteractiveDark)
|
|
21213
21220
|
};
|
|
21214
21221
|
var borderlessPrimaryIconActiveBase = {
|
|
21215
|
-
borderColor: Colors$
|
|
21216
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21222
|
+
borderColor: Colors$l.DdsColorInteractiveDarker,
|
|
21223
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorInteractiveDarker)
|
|
21217
21224
|
};
|
|
21218
21225
|
var borderlessSecondaryBase = {
|
|
21219
|
-
color: Colors$
|
|
21226
|
+
color: Colors$l.DdsColorNeutralsGray7
|
|
21220
21227
|
};
|
|
21221
21228
|
var borderlessSecondaryHoverBase = {
|
|
21222
|
-
color: Colors$
|
|
21223
|
-
textDecorationColor: Colors$
|
|
21229
|
+
color: Colors$l.DdsColorNeutralsGray8,
|
|
21230
|
+
textDecorationColor: Colors$l.DdsColorNeutralsGray8
|
|
21224
21231
|
};
|
|
21225
21232
|
var borderlessSecondaryActiveBase = {
|
|
21226
|
-
color: Colors$
|
|
21227
|
-
textDecorationColor: Colors$
|
|
21233
|
+
color: Colors$l.DdsColorNeutralsGray9,
|
|
21234
|
+
textDecorationColor: Colors$l.DdsColorNeutralsGray9
|
|
21228
21235
|
};
|
|
21229
21236
|
var borderlessSecondaryIconHoverBase = {
|
|
21230
|
-
borderColor: Colors$
|
|
21231
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21237
|
+
borderColor: Colors$l.DdsColorNeutralsGray8,
|
|
21238
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorNeutralsGray8)
|
|
21232
21239
|
};
|
|
21233
21240
|
var borderlessSecondaryIconActiveBase = {
|
|
21234
|
-
borderColor: Colors$
|
|
21235
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21241
|
+
borderColor: Colors$l.DdsColorNeutralsGray9,
|
|
21242
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorNeutralsGray9)
|
|
21236
21243
|
};
|
|
21237
21244
|
var borderlessDangerBase = {
|
|
21238
|
-
color: Colors$
|
|
21245
|
+
color: Colors$l.DdsColorDangerBase
|
|
21239
21246
|
};
|
|
21240
21247
|
var borderlessDangerHoverBase = {
|
|
21241
|
-
color: Colors$
|
|
21242
|
-
textDecorationColor: Colors$
|
|
21248
|
+
color: Colors$l.DdsColorDangerDarker,
|
|
21249
|
+
textDecorationColor: Colors$l.DdsColorDangerDarker
|
|
21243
21250
|
};
|
|
21244
21251
|
var borderlessDangerActiveBase = {
|
|
21245
|
-
color: Colors$
|
|
21246
|
-
textDecorationColor: Colors$
|
|
21252
|
+
color: Colors$l.DdsColorDangerDarkest,
|
|
21253
|
+
textDecorationColor: Colors$l.DdsColorDangerDarkest
|
|
21247
21254
|
};
|
|
21248
21255
|
var borderlessDangerIconHoverBase = {
|
|
21249
|
-
borderColor: Colors$
|
|
21250
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21256
|
+
borderColor: Colors$l.DdsColorDangerDark,
|
|
21257
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorDangerDark)
|
|
21251
21258
|
};
|
|
21252
21259
|
var borderlessDangerIconActiveBase = {
|
|
21253
|
-
borderColor: Colors$
|
|
21254
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21260
|
+
borderColor: Colors$l.DdsColorDangerDarker,
|
|
21261
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorDangerDarker)
|
|
21255
21262
|
};
|
|
21256
21263
|
var ghostBase = {
|
|
21257
21264
|
borderRadius: BorderRadius$7.RadiiDdsBorderRadius1Radius,
|
|
@@ -21259,46 +21266,46 @@ var ghostBase = {
|
|
|
21259
21266
|
backgroundColor: 'transparent'
|
|
21260
21267
|
};
|
|
21261
21268
|
var ghostPrimaryBase = {
|
|
21262
|
-
color: Colors$
|
|
21263
|
-
borderColor: Colors$
|
|
21269
|
+
color: Colors$l.DdsColorInteractiveBase,
|
|
21270
|
+
borderColor: Colors$l.DdsColorInteractiveBase
|
|
21264
21271
|
};
|
|
21265
21272
|
var ghostPrimaryHoverBase = {
|
|
21266
|
-
color: Colors$
|
|
21267
|
-
borderColor: Colors$
|
|
21268
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21273
|
+
color: Colors$l.DdsColorInteractiveDark,
|
|
21274
|
+
borderColor: Colors$l.DdsColorInteractiveDark,
|
|
21275
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorInteractiveDark)
|
|
21269
21276
|
};
|
|
21270
21277
|
var ghostPrimaryActiveBase = {
|
|
21271
|
-
color: Colors$
|
|
21272
|
-
borderColor: Colors$
|
|
21273
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21278
|
+
color: Colors$l.DdsColorInteractiveDarker,
|
|
21279
|
+
borderColor: Colors$l.DdsColorInteractiveDarker,
|
|
21280
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorInteractiveDarker)
|
|
21274
21281
|
};
|
|
21275
21282
|
var ghostSecondaryBase = {
|
|
21276
|
-
color: Colors$
|
|
21277
|
-
borderColor: Colors$
|
|
21283
|
+
color: Colors$l.DdsColorNeutralsGray7,
|
|
21284
|
+
borderColor: Colors$l.DdsColorNeutralsGray7
|
|
21278
21285
|
};
|
|
21279
21286
|
var ghostSecondaryHoverBase = {
|
|
21280
|
-
color: Colors$
|
|
21281
|
-
borderColor: Colors$
|
|
21282
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21287
|
+
color: Colors$l.DdsColorNeutralsGray8,
|
|
21288
|
+
borderColor: Colors$l.DdsColorNeutralsGray8,
|
|
21289
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorNeutralsGray8)
|
|
21283
21290
|
};
|
|
21284
21291
|
var ghostSecondaryActiveBase = {
|
|
21285
|
-
color: Colors$
|
|
21286
|
-
borderColor: Colors$
|
|
21287
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21292
|
+
color: Colors$l.DdsColorNeutralsGray9,
|
|
21293
|
+
borderColor: Colors$l.DdsColorNeutralsGray9,
|
|
21294
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorNeutralsGray9)
|
|
21288
21295
|
};
|
|
21289
21296
|
var ghostDangerBase = {
|
|
21290
|
-
color: Colors$
|
|
21291
|
-
borderColor: Colors$
|
|
21297
|
+
color: Colors$l.DdsColorDangerBase,
|
|
21298
|
+
borderColor: Colors$l.DdsColorDangerBase
|
|
21292
21299
|
};
|
|
21293
21300
|
var ghostDangerHoverBase = {
|
|
21294
|
-
color: Colors$
|
|
21295
|
-
borderColor: Colors$
|
|
21296
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21301
|
+
color: Colors$l.DdsColorDangerDark,
|
|
21302
|
+
borderColor: Colors$l.DdsColorDangerDark,
|
|
21303
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorDangerDark)
|
|
21297
21304
|
};
|
|
21298
21305
|
var ghostDangerActiveBase = {
|
|
21299
|
-
color: Colors$
|
|
21300
|
-
borderColor: Colors$
|
|
21301
|
-
boxShadow: "0 0 0 1px ".concat(Colors$
|
|
21306
|
+
color: Colors$l.DdsColorDangerDarkest,
|
|
21307
|
+
borderColor: Colors$l.DdsColorDangerDarkest,
|
|
21308
|
+
boxShadow: "0 0 0 1px ".concat(Colors$l.DdsColorDangerDarkest)
|
|
21302
21309
|
};
|
|
21303
21310
|
var roundedBase = {
|
|
21304
21311
|
borderRadius: '100px',
|
|
@@ -21323,7 +21330,7 @@ var buttonTokens = {
|
|
|
21323
21330
|
text: {
|
|
21324
21331
|
base: textSmallBase
|
|
21325
21332
|
},
|
|
21326
|
-
iconWithTextMargin: Spacing$
|
|
21333
|
+
iconWithTextMargin: Spacing$t.SizesDdsSpacingLocalX05
|
|
21327
21334
|
},
|
|
21328
21335
|
medium: {
|
|
21329
21336
|
justIcon: {
|
|
@@ -21335,7 +21342,7 @@ var buttonTokens = {
|
|
|
21335
21342
|
text: {
|
|
21336
21343
|
base: textMediumBase
|
|
21337
21344
|
},
|
|
21338
|
-
iconWithTextMargin: Spacing$
|
|
21345
|
+
iconWithTextMargin: Spacing$t.SizesDdsSpacingLocalX075
|
|
21339
21346
|
},
|
|
21340
21347
|
large: {
|
|
21341
21348
|
justIcon: {
|
|
@@ -21347,7 +21354,7 @@ var buttonTokens = {
|
|
|
21347
21354
|
text: {
|
|
21348
21355
|
base: textLargeBase
|
|
21349
21356
|
},
|
|
21350
|
-
iconWithTextMargin: Spacing$
|
|
21357
|
+
iconWithTextMargin: Spacing$t.SizesDdsSpacingLocalX1
|
|
21351
21358
|
},
|
|
21352
21359
|
tiny: {
|
|
21353
21360
|
justIcon: {
|
|
@@ -21359,7 +21366,7 @@ var buttonTokens = {
|
|
|
21359
21366
|
text: {
|
|
21360
21367
|
base: textTinyBase
|
|
21361
21368
|
},
|
|
21362
|
-
iconWithTextMargin: Spacing$
|
|
21369
|
+
iconWithTextMargin: Spacing$t.SizesDdsSpacingLocalX05
|
|
21363
21370
|
}
|
|
21364
21371
|
},
|
|
21365
21372
|
appearance: {
|
|
@@ -21510,9 +21517,9 @@ var buttonTokens = {
|
|
|
21510
21517
|
}
|
|
21511
21518
|
};
|
|
21512
21519
|
|
|
21513
|
-
var Colors$
|
|
21520
|
+
var Colors$k = ddsBaseTokens.colors;
|
|
21514
21521
|
var ciclreBase = {
|
|
21515
|
-
stroke: Colors$
|
|
21522
|
+
stroke: Colors$k.DdsColorInteractiveBase
|
|
21516
21523
|
};
|
|
21517
21524
|
var spinnerTokens = {
|
|
21518
21525
|
circle: {
|
|
@@ -21523,7 +21530,7 @@ var spinnerTokens = {
|
|
|
21523
21530
|
var StyledSpinner = styled$3.svg.withConfig({
|
|
21524
21531
|
displayName: "Spinner__StyledSpinner",
|
|
21525
21532
|
componentId: "sc-13hsttm-0"
|
|
21526
|
-
})(templateObject_1$
|
|
21533
|
+
})(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n display: block;\n animation: rotate 2s linear infinite;\n animation-delay: ", "ms;\n width: ", ";\n height: ", ";\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"], ["\n display: block;\n animation: rotate 2s linear infinite;\n animation-delay: ", "ms;\n width: ", ";\n height: ", ";\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"])), function (_a) {
|
|
21527
21534
|
var outerAnimationDelay = _a.outerAnimationDelay;
|
|
21528
21535
|
return outerAnimationDelay;
|
|
21529
21536
|
}, function (_a) {
|
|
@@ -21536,14 +21543,14 @@ var StyledSpinner = styled$3.svg.withConfig({
|
|
|
21536
21543
|
var Circle = styled$3.circle.withConfig({
|
|
21537
21544
|
displayName: "Spinner__Circle",
|
|
21538
21545
|
componentId: "sc-13hsttm-1"
|
|
21539
|
-
})(templateObject_2$
|
|
21546
|
+
})(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n ", "\n stroke: ", ";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n animation-delay: ", "ms;\n"], ["\n ", "\n stroke: ", ";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n animation-delay: ", "ms;\n"])), spinnerTokens.circle.base, function (_a) {
|
|
21540
21547
|
var color = _a.color;
|
|
21541
21548
|
return color && getTextColor(color);
|
|
21542
21549
|
}, function (_a) {
|
|
21543
21550
|
var innerAnimationDelay = _a.innerAnimationDelay;
|
|
21544
21551
|
return innerAnimationDelay;
|
|
21545
21552
|
});
|
|
21546
|
-
var nextUniqueId$
|
|
21553
|
+
var nextUniqueId$f = 0;
|
|
21547
21554
|
function Spinner(_a) {
|
|
21548
21555
|
var _b = _a.size,
|
|
21549
21556
|
size = _b === void 0 ? ddsBaseTokens.iconSizes.DdsIconsizeMedium : _b,
|
|
@@ -21554,7 +21561,7 @@ function Spinner(_a) {
|
|
|
21554
21561
|
var mountTime = React__default.useRef(Date.now());
|
|
21555
21562
|
var outerAnimationDelay = -(mountTime.current % 2000);
|
|
21556
21563
|
var innerAnimationDelay = -(mountTime.current % 1500);
|
|
21557
|
-
var uniqueId = useState("spinnerTitle-".concat(nextUniqueId$
|
|
21564
|
+
var uniqueId = useState("spinnerTitle-".concat(nextUniqueId$f++))[0];
|
|
21558
21565
|
|
|
21559
21566
|
var spinnerProps = __assign({
|
|
21560
21567
|
outerAnimationDelay: outerAnimationDelay,
|
|
@@ -21583,7 +21590,7 @@ function Spinner(_a) {
|
|
|
21583
21590
|
}))]
|
|
21584
21591
|
}));
|
|
21585
21592
|
}
|
|
21586
|
-
var templateObject_1$
|
|
21593
|
+
var templateObject_1$R, templateObject_2$B;
|
|
21587
21594
|
|
|
21588
21595
|
var ButtonWrapper$1 = styled$3.button.withConfig({
|
|
21589
21596
|
displayName: "Buttonstyles__ButtonWrapper",
|
|
@@ -21594,13 +21601,13 @@ var ButtonWrapper$1 = styled$3.button.withConfig({
|
|
|
21594
21601
|
}, function (_a) {
|
|
21595
21602
|
var appearance = _a.appearance,
|
|
21596
21603
|
purpose = _a.purpose;
|
|
21597
|
-
return Ae(templateObject_1$
|
|
21604
|
+
return Ae(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["\n ", "\n ", "\n\n &:hover {\n ", "\n }\n\n &:active {\n ", "\n }\n "], ["\n ", "\n ", "\n\n &:hover {\n ", "\n }\n\n &:active {\n ", "\n }\n "])), buttonTokens.appearance[appearance].base, buttonTokens.appearance[appearance][purpose].base, buttonTokens.appearance[appearance][purpose].hover.base, buttonTokens.appearance[appearance][purpose].active.base);
|
|
21598
21605
|
}, function (_a) {
|
|
21599
21606
|
var hasIcon = _a.hasIcon,
|
|
21600
21607
|
hasLabel = _a.hasLabel,
|
|
21601
21608
|
appearance = _a.appearance,
|
|
21602
21609
|
purpose = _a.purpose;
|
|
21603
|
-
return hasIcon && !hasLabel && appearance === 'borderless' && Ae(templateObject_2$
|
|
21610
|
+
return hasIcon && !hasLabel && appearance === 'borderless' && Ae(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n "])), buttonTokens.appearance[appearance][purpose].justIcon.hover.base, buttonTokens.appearance[appearance][purpose].justIcon.active.base);
|
|
21604
21611
|
}, function (_a) {
|
|
21605
21612
|
var size = _a.size,
|
|
21606
21613
|
hasLabel = _a.hasLabel;
|
|
@@ -21625,9 +21632,9 @@ var Label$2 = styled$3.span.withConfig({
|
|
|
21625
21632
|
displayName: "Buttonstyles__Label",
|
|
21626
21633
|
componentId: "sc-14dutqk-2"
|
|
21627
21634
|
})(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
21628
|
-
var templateObject_1$
|
|
21635
|
+
var templateObject_1$Q, templateObject_2$A, templateObject_3$p, templateObject_4$k, templateObject_5$d, templateObject_6$c, templateObject_7$9, templateObject_8$6, templateObject_9$5, templateObject_10$5, templateObject_11$3, templateObject_12$1, templateObject_13;
|
|
21629
21636
|
|
|
21630
|
-
var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
21637
|
+
var Button$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
21631
21638
|
var label = _a.label,
|
|
21632
21639
|
disabled = _a.disabled,
|
|
21633
21640
|
_b = _a.purpose,
|
|
@@ -21700,21 +21707,21 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21700
21707
|
}));
|
|
21701
21708
|
});
|
|
21702
21709
|
|
|
21703
|
-
var Colors$
|
|
21704
|
-
Spacing$
|
|
21710
|
+
var Colors$j = ddsBaseTokens.colors,
|
|
21711
|
+
Spacing$s = ddsBaseTokens.spacing;
|
|
21705
21712
|
var TextInput$3 = ddsReferenceTokens.textInput;
|
|
21706
21713
|
var inputMultilineBase = {
|
|
21707
|
-
paddingBottom: Spacing$
|
|
21714
|
+
paddingBottom: Spacing$s.SizesDdsSpacingLocalX05
|
|
21708
21715
|
};
|
|
21709
21716
|
var inputMultilineWithLabelBase = {
|
|
21710
|
-
paddingTop: Spacing$
|
|
21717
|
+
paddingTop: Spacing$s.SizesDdsSpacingLocalX2
|
|
21711
21718
|
};
|
|
21712
21719
|
var inputMultilineNoLabelBase = {
|
|
21713
|
-
paddingTop: Spacing$
|
|
21720
|
+
paddingTop: Spacing$s.SizesDdsSpacingLocalX075
|
|
21714
21721
|
};
|
|
21715
21722
|
var inputLabelMultilineBase = {
|
|
21716
|
-
backgroundColor: Colors$
|
|
21717
|
-
padding: "".concat(Spacing$
|
|
21723
|
+
backgroundColor: Colors$j.DdsColorNeutralsWhite,
|
|
21724
|
+
padding: "".concat(Spacing$s.SizesDdsSpacingLocalX075NumberPx - 1, "px ").concat(Spacing$s.SizesDdsSpacingLocalX1, " 0px ").concat(Spacing$s.SizesDdsSpacingLocalX1NumberPx - 1, "px")
|
|
21718
21725
|
};
|
|
21719
21726
|
var defaultWidth$2 = '320px';
|
|
21720
21727
|
var textInputTokens = {
|
|
@@ -21749,9 +21756,9 @@ var textInputTokens = {
|
|
|
21749
21756
|
}
|
|
21750
21757
|
};
|
|
21751
21758
|
|
|
21752
|
-
var Spacing$
|
|
21759
|
+
var Spacing$r = ddsBaseTokens.spacing;
|
|
21753
21760
|
var charCounterBase = {
|
|
21754
|
-
padding: "".concat(Spacing$
|
|
21761
|
+
padding: "".concat(Spacing$r.SizesDdsSpacingLocalX025, " ").concat(Spacing$r.SizesDdsSpacingLocalX05)
|
|
21755
21762
|
};
|
|
21756
21763
|
var charCounterTokens = {
|
|
21757
21764
|
base: charCounterBase
|
|
@@ -21760,8 +21767,8 @@ var charCounterTokens = {
|
|
|
21760
21767
|
var Wrapper$6 = styled$3(Typography).withConfig({
|
|
21761
21768
|
displayName: "CharCounter__Wrapper",
|
|
21762
21769
|
componentId: "sc-qty1z2-0"
|
|
21763
|
-
})(templateObject_1$
|
|
21764
|
-
var nextUniqueId$
|
|
21770
|
+
})(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
21771
|
+
var nextUniqueId$e = 0;
|
|
21765
21772
|
|
|
21766
21773
|
function CharCounter(_a) {
|
|
21767
21774
|
var current = _a.current,
|
|
@@ -21769,7 +21776,7 @@ function CharCounter(_a) {
|
|
|
21769
21776
|
id = _a.id,
|
|
21770
21777
|
rest = __rest(_a, ["current", "max", "id"]);
|
|
21771
21778
|
|
|
21772
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "characterCounter-".concat(nextUniqueId$
|
|
21779
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "characterCounter-".concat(nextUniqueId$e++))[0];
|
|
21773
21780
|
return jsxRuntime.exports.jsxs(Wrapper$6, __assign({
|
|
21774
21781
|
forwardedAs: "div",
|
|
21775
21782
|
typographyType: "supportingStyleHelperText01",
|
|
@@ -21779,26 +21786,26 @@ function CharCounter(_a) {
|
|
|
21779
21786
|
children: [current, "/", max]
|
|
21780
21787
|
}));
|
|
21781
21788
|
}
|
|
21782
|
-
var templateObject_1$
|
|
21789
|
+
var templateObject_1$P;
|
|
21783
21790
|
|
|
21784
|
-
var Colors$
|
|
21785
|
-
Spacing$
|
|
21791
|
+
var Colors$i = ddsBaseTokens.colors,
|
|
21792
|
+
Spacing$q = ddsBaseTokens.spacing,
|
|
21786
21793
|
FontPackages$g = ddsBaseTokens.fontPackages,
|
|
21787
|
-
Border$
|
|
21794
|
+
Border$e = ddsBaseTokens.border;
|
|
21788
21795
|
var TextInput$2 = ddsReferenceTokens.textInput;
|
|
21789
21796
|
var inputBase$2 = {
|
|
21790
|
-
border: " ".concat(Border$
|
|
21791
|
-
backgroundColor: Colors$
|
|
21797
|
+
border: " ".concat(Border$e.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(Colors$i.DdsColorNeutralsGray5),
|
|
21798
|
+
backgroundColor: Colors$i.DdsColorNeutralsWhite
|
|
21792
21799
|
};
|
|
21793
21800
|
var inputWithLabelBase = {
|
|
21794
|
-
padding: "".concat(Spacing$
|
|
21801
|
+
padding: "".concat(Spacing$q.SizesDdsSpacingLocalX075NumberPx + FontPackages$g.supportingStyle_label_01.numbers.lineHeightNumber * 0.01 * FontPackages$g.supportingStyle_label_01.numbers.fontSizeNumber, "px ").concat(Spacing$q.SizesDdsSpacingLocalX1, " ").concat(Spacing$q.SizesDdsSpacingLocalX075, " ").concat(Spacing$q.SizesDdsSpacingLocalX1)
|
|
21795
21802
|
};
|
|
21796
21803
|
var inputNoLabelBase$1 = {
|
|
21797
|
-
padding: "".concat(Spacing$
|
|
21804
|
+
padding: "".concat(Spacing$q.SizesDdsSpacingLocalX075, " ").concat(Spacing$q.SizesDdsSpacingLocalX1, " ").concat(Spacing$q.SizesDdsSpacingLocalX075, " ").concat(Spacing$q.SizesDdsSpacingLocalX1)
|
|
21798
21805
|
};
|
|
21799
21806
|
var inputDisabledBase = {
|
|
21800
|
-
color: Colors$
|
|
21801
|
-
backgroundColor: Colors$
|
|
21807
|
+
color: Colors$i.DdsColorNeutralsGray7,
|
|
21808
|
+
backgroundColor: Colors$i.DdsColorNeutralsGray1
|
|
21802
21809
|
};
|
|
21803
21810
|
|
|
21804
21811
|
var inputErrorBase = __assign({}, dangerInputfield);
|
|
@@ -21810,10 +21817,10 @@ var inputErrorFocusBase = __assign({}, focusDangerInputfield);
|
|
|
21810
21817
|
var inputReadOnlyBase = {
|
|
21811
21818
|
border: 'none',
|
|
21812
21819
|
backgroundColor: 'transparent',
|
|
21813
|
-
paddingLeft: Spacing$
|
|
21820
|
+
paddingLeft: Spacing$q.SizesDdsSpacingLocalX1
|
|
21814
21821
|
};
|
|
21815
21822
|
var inputLabelBase = {
|
|
21816
|
-
padding: "".concat(Spacing$
|
|
21823
|
+
padding: "".concat(Spacing$q.SizesDdsSpacingLocalX075, " ").concat(Spacing$q.SizesDdsSpacingLocalX1)
|
|
21817
21824
|
};
|
|
21818
21825
|
var inputLabelHoverBase = {
|
|
21819
21826
|
color: TextInput$2.label.hover.textColor
|
|
@@ -21822,7 +21829,7 @@ var inputLabelFocusBase = {
|
|
|
21822
21829
|
color: TextInput$2.label.focus.textColor
|
|
21823
21830
|
};
|
|
21824
21831
|
var inputLabelDisabledBase = {
|
|
21825
|
-
color: Colors$
|
|
21832
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
21826
21833
|
};
|
|
21827
21834
|
var inputTokens = {
|
|
21828
21835
|
general: TextInput$2,
|
|
@@ -21864,12 +21871,12 @@ var inputTokens = {
|
|
|
21864
21871
|
};
|
|
21865
21872
|
|
|
21866
21873
|
var TextInput$1 = ddsReferenceTokens.textInput;
|
|
21867
|
-
var Border$
|
|
21874
|
+
var Border$d = ddsBaseTokens.border;
|
|
21868
21875
|
|
|
21869
21876
|
var stylingBase = __assign({
|
|
21870
21877
|
color: TextInput$1.input.textColor,
|
|
21871
21878
|
borderRadius: TextInput$1.input.borderRadius,
|
|
21872
|
-
border: "".concat(Border$
|
|
21879
|
+
border: "".concat(Border$d.BordersDdsBorderStyleLightStrokeWeight, " solid"),
|
|
21873
21880
|
borderColor: TextInput$1.input.borderColor
|
|
21874
21881
|
}, TextInput$1.input.font);
|
|
21875
21882
|
|
|
@@ -21878,28 +21885,28 @@ var focusBase$3 = __assign({}, focusInputfield);
|
|
|
21878
21885
|
var hoverBase$2 = __assign({}, hoverInputfield);
|
|
21879
21886
|
|
|
21880
21887
|
var inputFieldStylingBase = function inputFieldStylingBase() {
|
|
21881
|
-
return Ae(templateObject_1$
|
|
21888
|
+
return Ae(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n width: 100%;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n transition: box-shadow 0.2s, border-color 0.2s, background-color 0.2s;\n &[type='text'],\n &[type='password'],\n &[type='number'],\n &[type='tel'],\n &[type='date'],\n &[type='url'],\n &[type='email'],\n &[type='search'],\n &[type='datetime-local'] {\n -webkit-appearance: none;\n }\n &::selection {\n ", "\n }\n ", "\n\n &:focus:enabled:read-write, &:active:enabled:read-write {\n ", "\n }\n &:focus {\n outline: none;\n }\n\n &:hover:enabled:read-write {\n ", "\n }\n "], ["\n width: 100%;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n transition: box-shadow 0.2s, border-color 0.2s, background-color 0.2s;\n &[type='text'],\n &[type='password'],\n &[type='number'],\n &[type='tel'],\n &[type='date'],\n &[type='url'],\n &[type='email'],\n &[type='search'],\n &[type='datetime-local'] {\n -webkit-appearance: none;\n }\n &::selection {\n ", "\n }\n ", "\n\n &:focus:enabled:read-write, &:active:enabled:read-write {\n ", "\n }\n &:focus {\n outline: none;\n }\n\n &:hover:enabled:read-write {\n ", "\n }\n "])), typographyTokens.selection.base, stylingBase, focusBase$3, hoverBase$2);
|
|
21882
21889
|
};
|
|
21883
|
-
var templateObject_1$
|
|
21890
|
+
var templateObject_1$O;
|
|
21884
21891
|
|
|
21885
21892
|
var inputStyling = function inputStyling(_a) {
|
|
21886
21893
|
var readOnly = _a.readOnly,
|
|
21887
|
-
|
|
21894
|
+
hasLabel = _a.hasLabel,
|
|
21888
21895
|
disabled = _a.disabled,
|
|
21889
21896
|
hasErrorMessage = _a.hasErrorMessage;
|
|
21890
|
-
return Ae(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n ", "\n ", "\n box-sizing: border-box;\n box-shadow: none;\n -webkit-appearance: textfield;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n box-sizing: border-box;\n box-shadow: none;\n -webkit-appearance: textfield;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "])), inputFieldStylingBase, inputTokens.base,
|
|
21897
|
+
return Ae(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n ", "\n ", "\n box-sizing: border-box;\n box-shadow: none;\n -webkit-appearance: textfield;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n box-sizing: border-box;\n box-shadow: none;\n -webkit-appearance: textfield;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "])), inputFieldStylingBase, inputTokens.base, hasLabel ? Ae(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.withLabel.base) : Ae(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.noLabel.base), inputTokens.label.hover.base, inputTokens.label.focus.base, disabled && Ae(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n cursor: not-allowed;\n ", "\n "], ["\n cursor: not-allowed;\n ", "\n "])), inputTokens.disabled.base), hasErrorMessage && Ae(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\n ", "\n &:hover:enabled:read-write {\n ", "\n }\n &:focus:enabled:read-write,\n &:active:enabled:read-write {\n ", "\n }\n "], ["\n ", "\n &:hover:enabled:read-write {\n ", "\n }\n &:focus:enabled:read-write,\n &:active:enabled:read-write {\n ", "\n }\n "])), inputTokens.error.base, inputTokens.error.hover.base, inputTokens.error.focus.base), readOnly && Ae(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n cursor: default;\n ", "\n "], ["\n cursor: default;\n ", "\n "])), inputTokens.readOnly.base));
|
|
21891
21898
|
};
|
|
21892
21899
|
var Input$4 = styled$3.input.withConfig({
|
|
21893
21900
|
displayName: "Inputstyles__Input",
|
|
21894
21901
|
componentId: "sc-1oz9x8w-0"
|
|
21895
21902
|
})(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
21896
|
-
var
|
|
21903
|
+
var hasLabel = _a.hasLabel,
|
|
21897
21904
|
disabled = _a.disabled,
|
|
21898
21905
|
readOnly = _a.readOnly,
|
|
21899
21906
|
hasErrorMessage = _a.hasErrorMessage;
|
|
21900
21907
|
return inputStyling({
|
|
21901
21908
|
readOnly: readOnly,
|
|
21902
|
-
|
|
21909
|
+
hasLabel: hasLabel,
|
|
21903
21910
|
disabled: disabled,
|
|
21904
21911
|
hasErrorMessage: hasErrorMessage
|
|
21905
21912
|
});
|
|
@@ -21922,31 +21929,31 @@ var OuterInputContainer = styled$3.div.withConfig({
|
|
|
21922
21929
|
var width = _a.width;
|
|
21923
21930
|
return width;
|
|
21924
21931
|
});
|
|
21925
|
-
var templateObject_1$
|
|
21932
|
+
var templateObject_1$N, templateObject_2$z, templateObject_3$o, templateObject_4$j, templateObject_5$c, templateObject_6$b, templateObject_7$8, templateObject_8$5, templateObject_9$4, templateObject_10$4, templateObject_11$2;
|
|
21926
21933
|
|
|
21927
|
-
var scrollbarStyling = Ae(templateObject_1$
|
|
21928
|
-
var templateObject_1$
|
|
21934
|
+
var scrollbarStyling = Ae(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n /* width */\n &::-webkit-scrollbar {\n width: 10px;\n height: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 100px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 100px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n\n /* Firefox */\n scrollbar-color: ", "\n transparent;\n scrollbar-width: thin;\n"], ["\n /* width */\n &::-webkit-scrollbar {\n width: 10px;\n height: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 100px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 100px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n\n /* Firefox */\n scrollbar-color: ", "\n transparent;\n scrollbar-width: thin;\n"])), ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)', ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.5)', ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)');
|
|
21935
|
+
var templateObject_1$M;
|
|
21929
21936
|
|
|
21930
21937
|
var TextArea = styled$3.textarea.withConfig({
|
|
21931
21938
|
displayName: "TextInputstyles__TextArea",
|
|
21932
21939
|
componentId: "sc-165zflr-0"
|
|
21933
21940
|
})(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n ", "\n resize: vertical;\n height: auto;\n ", "\n min-height: ", ";\n ", "\n ", "\n\n &:hover:enabled:read-write ~ label {\n background-color: ", ";\n }\n"], ["\n ", "\n resize: vertical;\n height: auto;\n ", "\n min-height: ", ";\n ", "\n ", "\n\n &:hover:enabled:read-write ~ label {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
21934
|
-
var
|
|
21941
|
+
var hasLabel = _a.hasLabel,
|
|
21935
21942
|
disabled = _a.disabled,
|
|
21936
21943
|
readOnly = _a.readOnly,
|
|
21937
21944
|
hasErrorMessage = _a.hasErrorMessage;
|
|
21938
21945
|
return inputStyling({
|
|
21939
21946
|
readOnly: readOnly,
|
|
21940
|
-
|
|
21947
|
+
hasLabel: hasLabel,
|
|
21941
21948
|
disabled: disabled,
|
|
21942
21949
|
hasErrorMessage: hasErrorMessage
|
|
21943
21950
|
});
|
|
21944
21951
|
}, scrollbarStyling, function (_a) {
|
|
21945
|
-
var
|
|
21946
|
-
return
|
|
21952
|
+
var hasLabel = _a.hasLabel;
|
|
21953
|
+
return hasLabel ? textInputTokens.container.multiline.withLabel.height : textInputTokens.container.multiline.noLabel.height;
|
|
21947
21954
|
}, textInputTokens.multiline.base, function (_a) {
|
|
21948
|
-
var
|
|
21949
|
-
return
|
|
21955
|
+
var hasLabel = _a.hasLabel;
|
|
21956
|
+
return hasLabel ? Ae(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), textInputTokens.multiline.withLabel.base) : Ae(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), textInputTokens.multiline.noLabel.base);
|
|
21950
21957
|
}, function (_a) {
|
|
21951
21958
|
var hasErrorMessage = _a.hasErrorMessage;
|
|
21952
21959
|
return hasErrorMessage ? inputTokens.error.hover.base.backgroundColor : inputTokens.general.input.hover.backgroundColor;
|
|
@@ -21988,9 +21995,9 @@ var InputContainer$1 = styled$3(InputContainer$2).withConfig({
|
|
|
21988
21995
|
return textInputTokens.container.multiline.noLabel.height;
|
|
21989
21996
|
}
|
|
21990
21997
|
});
|
|
21991
|
-
var templateObject_1$
|
|
21998
|
+
var templateObject_1$L, templateObject_2$y, templateObject_3$n, templateObject_4$i, templateObject_5$b, templateObject_6$a, templateObject_7$7, templateObject_8$4, templateObject_9$3, templateObject_10$3;
|
|
21992
21999
|
|
|
21993
|
-
var nextUniqueId$
|
|
22000
|
+
var nextUniqueId$d = 0;
|
|
21994
22001
|
var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
21995
22002
|
var label = _a.label,
|
|
21996
22003
|
disabled = _a.disabled,
|
|
@@ -22054,16 +22061,17 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
22054
22061
|
}
|
|
22055
22062
|
};
|
|
22056
22063
|
|
|
22057
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "textInput-".concat(nextUniqueId$
|
|
22064
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "textInput-".concat(nextUniqueId$d++))[0];
|
|
22058
22065
|
var hasErrorMessage = !!errorMessage;
|
|
22059
22066
|
var hasTip = !!tip;
|
|
22067
|
+
var hasLabel = !!label;
|
|
22060
22068
|
var characterCounterId = derivativeIdGenerator(uniqueId, 'characterCounter', maxLength);
|
|
22061
22069
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
22062
22070
|
var errorMessageId = derivativeIdGenerator(uniqueId, 'errorMessage', errorMessage);
|
|
22063
22071
|
|
|
22064
22072
|
var generalInputProps = __assign({
|
|
22065
22073
|
id: uniqueId,
|
|
22066
|
-
|
|
22074
|
+
hasLabel: hasLabel,
|
|
22067
22075
|
errorMessage: errorMessage,
|
|
22068
22076
|
hasErrorMessage: hasErrorMessage,
|
|
22069
22077
|
disabled: disabled,
|
|
@@ -22105,7 +22113,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
22105
22113
|
onChange: onChangeHandler,
|
|
22106
22114
|
type: type,
|
|
22107
22115
|
required: required
|
|
22108
|
-
}, generalInputProps)),
|
|
22116
|
+
}, generalInputProps)), hasLabel && jsxRuntime.exports.jsxs(Label$1, __assign({}, labelProps, {
|
|
22109
22117
|
typographyType: "supportingStyleLabel01",
|
|
22110
22118
|
forwardedAs: "label",
|
|
22111
22119
|
htmlFor: uniqueId
|
|
@@ -26746,38 +26754,38 @@ var StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
26746
26754
|
|
|
26747
26755
|
var ReactSelect = StateManagedSelect;
|
|
26748
26756
|
|
|
26749
|
-
var Colors$
|
|
26750
|
-
Spacing$
|
|
26757
|
+
var Colors$h = ddsBaseTokens.colors,
|
|
26758
|
+
Spacing$p = ddsBaseTokens.spacing,
|
|
26751
26759
|
FontPackages$f = ddsBaseTokens.fontPackages,
|
|
26752
26760
|
BorderRadius$6 = ddsBaseTokens.borderRadius,
|
|
26753
|
-
Border$
|
|
26761
|
+
Border$c = ddsBaseTokens.border,
|
|
26754
26762
|
IconSizes$2 = ddsBaseTokens.iconSizes;
|
|
26755
26763
|
var textDefault$6 = ddsReferenceTokens.textDefault;
|
|
26756
|
-
var multiValueContainerMinHeight = "".concat(Spacing$
|
|
26764
|
+
var multiValueContainerMinHeight = "".concat(Spacing$p.SizesDdsSpacingLocalX0125NumberPx * 2 + Spacing$p.SizesDdsSpacingLocalX025NumberPx * 2 + calculateHeightWithLineHeight(FontPackages$f.supportingStyle_inputtext_01.numbers.lineHeightNumber, FontPackages$f.supportingStyle_inputtext_01.numbers.fontSizeNumber), "px"); //custom spacing so that multiselect has same height as single value select
|
|
26757
26765
|
|
|
26758
|
-
var valueContainerMarginBottomMultiWithLabel = "".concat(Spacing$
|
|
26766
|
+
var valueContainerMarginBottomMultiWithLabel = "".concat(Spacing$p.SizesDdsSpacingLocalX025NumberPx + Spacing$p.SizesDdsSpacingLocalX0125NumberPx, "px"); //custom spacing so that multiselect has same height as single value select
|
|
26759
26767
|
|
|
26760
|
-
var inputMultiNoLabelPaddingTop = "".concat(Spacing$
|
|
26768
|
+
var inputMultiNoLabelPaddingTop = "".concat(Spacing$p.SizesDdsSpacingLocalX05NumberPx + Spacing$p.SizesDdsSpacingLocalX0125NumberPx, "px");
|
|
26761
26769
|
|
|
26762
26770
|
var labelBase = __assign({
|
|
26763
|
-
color: Colors$
|
|
26764
|
-
paddingTop: Spacing$
|
|
26765
|
-
paddingLeft: Spacing$
|
|
26771
|
+
color: Colors$h.DdsColorNeutralsGray7,
|
|
26772
|
+
paddingTop: Spacing$p.SizesDdsSpacingLocalX075,
|
|
26773
|
+
paddingLeft: Spacing$p.SizesDdsSpacingLocalX1,
|
|
26766
26774
|
paddingBottom: 0,
|
|
26767
|
-
paddingRight: Spacing$
|
|
26775
|
+
paddingRight: Spacing$p.SizesDdsSpacingLocalX05
|
|
26768
26776
|
}, FontPackages$f.supportingStyle_label_01.base);
|
|
26769
26777
|
|
|
26770
26778
|
var labelHoverBase = {
|
|
26771
|
-
color: Colors$
|
|
26779
|
+
color: Colors$h.DdsColorInteractiveBase
|
|
26772
26780
|
};
|
|
26773
26781
|
var labelFocusBase = {
|
|
26774
|
-
color: Colors$
|
|
26782
|
+
color: Colors$h.DdsColorInteractiveBase
|
|
26775
26783
|
};
|
|
26776
26784
|
var valueContainerWithLabelBase = {
|
|
26777
|
-
marginBottom: Spacing$
|
|
26785
|
+
marginBottom: Spacing$p.SizesDdsSpacingLocalX075
|
|
26778
26786
|
};
|
|
26779
26787
|
var valueContainerNoLabelBase = {
|
|
26780
|
-
marginBottom: Spacing$
|
|
26788
|
+
marginBottom: Spacing$p.SizesDdsSpacingLocalX075
|
|
26781
26789
|
};
|
|
26782
26790
|
var valueContainerIsMultiBase = {
|
|
26783
26791
|
minHeight: multiValueContainerMinHeight
|
|
@@ -26786,13 +26794,13 @@ var valueContainerIsMultiWithLabelBase = {
|
|
|
26786
26794
|
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
26787
26795
|
};
|
|
26788
26796
|
var valueContainerIsMultiNoLabelBase = {
|
|
26789
|
-
marginBottom: Spacing$
|
|
26797
|
+
marginBottom: Spacing$p.SizesDdsSpacingLocalX05
|
|
26790
26798
|
};
|
|
26791
26799
|
var containerBase$4 = {
|
|
26792
26800
|
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
26793
|
-
border: "".concat(Border$
|
|
26794
|
-
borderColor: Colors$
|
|
26795
|
-
backgroundColor: Colors$
|
|
26801
|
+
border: "".concat(Border$c.BordersDdsBorderStyleLightStrokeWeight, " solid"),
|
|
26802
|
+
borderColor: Colors$h.DdsColorNeutralsGray5,
|
|
26803
|
+
backgroundColor: Colors$h.DdsColorNeutralsWhite
|
|
26796
26804
|
};
|
|
26797
26805
|
|
|
26798
26806
|
var containerHoverBase = __assign({}, hoverInputfield);
|
|
@@ -26806,119 +26814,119 @@ var containerDangerHoverBase = __assign({}, hoverDangerInputfield);
|
|
|
26806
26814
|
var containerDangerFocusBase = __assign({}, focusDangerInputfield);
|
|
26807
26815
|
|
|
26808
26816
|
var inputBase$1 = __assign({
|
|
26809
|
-
padding: "0 ".concat(Spacing$
|
|
26817
|
+
padding: "0 ".concat(Spacing$p.SizesDdsSpacingLocalX05, " 0 ").concat(Spacing$p.SizesDdsSpacingLocalX1)
|
|
26810
26818
|
}, FontPackages$f.supportingStyle_inputtext_02.base);
|
|
26811
26819
|
|
|
26812
26820
|
var inputNoLabelBase = {
|
|
26813
|
-
paddingTop: Spacing$
|
|
26821
|
+
paddingTop: Spacing$p.SizesDdsSpacingLocalX075
|
|
26814
26822
|
};
|
|
26815
26823
|
var inputIsMultiNoLabelBase = {
|
|
26816
26824
|
paddingTop: inputMultiNoLabelPaddingTop
|
|
26817
26825
|
};
|
|
26818
26826
|
|
|
26819
26827
|
var placeholderBase = __assign({
|
|
26820
|
-
color: Colors$
|
|
26828
|
+
color: Colors$h.DdsColorNeutralsGray6
|
|
26821
26829
|
}, FontPackages$f.supportingStyle_placeholdertext_01.base);
|
|
26822
26830
|
|
|
26823
26831
|
var indicatorsContainerWithLabelBase = {
|
|
26824
|
-
marginBottom: Spacing$
|
|
26832
|
+
marginBottom: Spacing$p.SizesDdsSpacingLocalX1
|
|
26825
26833
|
};
|
|
26826
26834
|
var indicatorsContainerNoLabelBase = {
|
|
26827
|
-
marginBottom: Spacing$
|
|
26835
|
+
marginBottom: Spacing$p.SizesDdsSpacingLocalX075
|
|
26828
26836
|
};
|
|
26829
26837
|
var indicatorsContainerIsMultiWithLabelBase = {
|
|
26830
26838
|
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
26831
26839
|
};
|
|
26832
26840
|
var indicatorsContainerIsMultiNoLabelBase = {
|
|
26833
|
-
marginBottom: Spacing$
|
|
26841
|
+
marginBottom: Spacing$p.SizesDdsSpacingLocalX05
|
|
26834
26842
|
};
|
|
26835
26843
|
var dropdownIndicatorBase = {
|
|
26836
|
-
color: Colors$
|
|
26844
|
+
color: Colors$h.DdsColorNeutralsGray6,
|
|
26837
26845
|
padding: 0
|
|
26838
26846
|
};
|
|
26839
26847
|
var dropdownIndicatorHoverBase = {
|
|
26840
|
-
color: Colors$
|
|
26848
|
+
color: Colors$h.DdsColorInteractiveBase
|
|
26841
26849
|
};
|
|
26842
26850
|
var drodownIndicatorReadOnlyBase = {
|
|
26843
26851
|
color: 'transparent'
|
|
26844
26852
|
};
|
|
26845
26853
|
var clearIndicatorBase = {
|
|
26846
|
-
color: Colors$
|
|
26847
|
-
padding: " 0 ".concat(Spacing$
|
|
26854
|
+
color: Colors$h.DdsColorNeutralsGray6,
|
|
26855
|
+
padding: " 0 ".concat(Spacing$p.SizesDdsSpacingLocalX025, " 0 0")
|
|
26848
26856
|
};
|
|
26849
26857
|
var loadingIndicatorBase = {
|
|
26850
|
-
color: Colors$
|
|
26858
|
+
color: Colors$h.DdsColorNeutralsGray6,
|
|
26851
26859
|
padding: 0
|
|
26852
26860
|
};
|
|
26853
26861
|
var clearIndicatorHoverBase = {
|
|
26854
|
-
color: Colors$
|
|
26862
|
+
color: Colors$h.DdsColorInteractiveBase
|
|
26855
26863
|
};
|
|
26856
26864
|
var menuBase = {
|
|
26857
26865
|
border: '1px solid',
|
|
26858
|
-
borderColor: Colors$
|
|
26859
|
-
backgroundColor: Colors$
|
|
26866
|
+
borderColor: Colors$h.DdsColorInteractiveBase,
|
|
26867
|
+
backgroundColor: Colors$h.DdsColorNeutralsWhite,
|
|
26860
26868
|
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
26861
|
-
marginTop: Spacing$
|
|
26862
|
-
marginBottom: Spacing$
|
|
26869
|
+
marginTop: Spacing$p.SizesDdsSpacingLocalX025,
|
|
26870
|
+
marginBottom: Spacing$p.SizesDdsSpacingLocalX025
|
|
26863
26871
|
};
|
|
26864
26872
|
|
|
26865
26873
|
var optionBase = __assign(__assign({
|
|
26866
|
-
padding: "".concat(Spacing$
|
|
26874
|
+
padding: "".concat(Spacing$p.SizesDdsSpacingLocalX05, " ").concat(Spacing$p.SizesDdsSpacingLocalX1)
|
|
26867
26875
|
}, FontPackages$f.body_sans_02.base), {
|
|
26868
26876
|
color: textDefault$6.textColor
|
|
26869
26877
|
});
|
|
26870
26878
|
|
|
26871
26879
|
var optionHoverBase = {
|
|
26872
|
-
backgroundColor: Colors$
|
|
26880
|
+
backgroundColor: Colors$h.DdsColorInteractiveLighter
|
|
26873
26881
|
};
|
|
26874
26882
|
|
|
26875
26883
|
var optionSelectedBase = __assign(__assign({
|
|
26876
|
-
backgroundColor: Colors$
|
|
26884
|
+
backgroundColor: Colors$h.DdsColorInteractiveLightest
|
|
26877
26885
|
}, FontPackages$f.body_sans_02.base), {
|
|
26878
26886
|
fontWeight: 600
|
|
26879
26887
|
});
|
|
26880
26888
|
|
|
26881
26889
|
var noOptionsMessageBase = __assign({
|
|
26882
|
-
padding: "".concat(Spacing$
|
|
26883
|
-
color: Colors$
|
|
26890
|
+
padding: "".concat(Spacing$p.SizesDdsSpacingLocalX05, " ").concat(Spacing$p.SizesDdsSpacingLocalX1),
|
|
26891
|
+
color: Colors$h.DdsColorNeutralsGray6
|
|
26884
26892
|
}, FontPackages$f.supportingStyle_placeholdertext_01.base);
|
|
26885
26893
|
|
|
26886
26894
|
var multiValueBase = {
|
|
26887
26895
|
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
26888
|
-
margin: Spacing$
|
|
26896
|
+
margin: Spacing$p.SizesDdsSpacingLocalX0125
|
|
26889
26897
|
};
|
|
26890
26898
|
var multiValueEnabledBase = {
|
|
26891
|
-
backgroundColor: Colors$
|
|
26899
|
+
backgroundColor: Colors$h.DdsColorInteractiveLighter
|
|
26892
26900
|
};
|
|
26893
26901
|
var multiValueDisabledBase = {
|
|
26894
|
-
backgroundColor: Colors$
|
|
26902
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray3
|
|
26895
26903
|
};
|
|
26896
26904
|
|
|
26897
26905
|
var multiValueLabelBase = __assign(__assign({
|
|
26898
|
-
paddingTop: "".concat(Spacing$
|
|
26899
|
-
paddingRight: "".concat(Spacing$
|
|
26900
|
-
paddingLeft: "".concat(Spacing$
|
|
26901
|
-
paddingBottom: "".concat(Spacing$
|
|
26902
|
-
color: Colors$
|
|
26906
|
+
paddingTop: "".concat(Spacing$p.SizesDdsSpacingLocalX025),
|
|
26907
|
+
paddingRight: "".concat(Spacing$p.SizesDdsSpacingLocalX05),
|
|
26908
|
+
paddingLeft: "".concat(Spacing$p.SizesDdsSpacingLocalX05),
|
|
26909
|
+
paddingBottom: "".concat(Spacing$p.SizesDdsSpacingLocalX025),
|
|
26910
|
+
color: Colors$h.DdsColorNeutralsGray9
|
|
26903
26911
|
}, FontPackages$f.supportingStyle_inputtext_01.base), {
|
|
26904
26912
|
fontWeight: 'bold'
|
|
26905
26913
|
});
|
|
26906
26914
|
|
|
26907
26915
|
var multiValueRemoveBase = {
|
|
26908
|
-
padding: "".concat(Spacing$
|
|
26909
|
-
color: Colors$
|
|
26916
|
+
padding: "".concat(Spacing$p.SizesDdsSpacingLocalX025),
|
|
26917
|
+
color: Colors$h.DdsColorNeutralsGray9
|
|
26910
26918
|
};
|
|
26911
26919
|
var multiValueRemoveHoverBase = {
|
|
26912
|
-
color: Colors$
|
|
26913
|
-
backgroundColor: Colors$
|
|
26920
|
+
color: Colors$h.DdsColorNeutralsWhite,
|
|
26921
|
+
backgroundColor: Colors$h.DdsColorInteractiveBase
|
|
26914
26922
|
};
|
|
26915
26923
|
var multiValueRemoveIconBase = {
|
|
26916
26924
|
height: IconSizes$2.DdsIconsizeSmall,
|
|
26917
26925
|
width: IconSizes$2.DdsIconsizeSmall
|
|
26918
26926
|
};
|
|
26919
26927
|
var containerDisabledBase = {
|
|
26920
|
-
backgroundColor: Colors$
|
|
26921
|
-
borderColor: Colors$
|
|
26928
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray1,
|
|
26929
|
+
borderColor: Colors$h.DdsColorNeutralsGray5
|
|
26922
26930
|
};
|
|
26923
26931
|
var containerReadOnlyBase = {
|
|
26924
26932
|
borderColor: 'transparent',
|
|
@@ -26976,7 +26984,7 @@ var selectTokens = {
|
|
|
26976
26984
|
},
|
|
26977
26985
|
menu: {
|
|
26978
26986
|
base: menuBase,
|
|
26979
|
-
spaceTop: Spacing$
|
|
26987
|
+
spaceTop: Spacing$p.SizesDdsSpacingLocalX1NumberPx + 2 //grunnet shadow-box
|
|
26980
26988
|
|
|
26981
26989
|
},
|
|
26982
26990
|
option: {
|
|
@@ -26987,7 +26995,7 @@ var selectTokens = {
|
|
|
26987
26995
|
selected: {
|
|
26988
26996
|
base: optionSelectedBase,
|
|
26989
26997
|
icon: {
|
|
26990
|
-
margin: "0 ".concat(Spacing$
|
|
26998
|
+
margin: "0 ".concat(Spacing$p.SizesDdsSpacingLocalX05, " 0 0")
|
|
26991
26999
|
}
|
|
26992
27000
|
}
|
|
26993
27001
|
},
|
|
@@ -27072,13 +27080,13 @@ var prefix = 'dds-select';
|
|
|
27072
27080
|
var Label = styled$3(Typography).withConfig({
|
|
27073
27081
|
displayName: "Selectstyles__Label",
|
|
27074
27082
|
componentId: "sc-19jkd5s-0"
|
|
27075
|
-
})(templateObject_1$
|
|
27076
|
-
var Container$
|
|
27083
|
+
})(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n display: block;\n ", "\n"], ["\n display: block;\n ", "\n"])), selectTokens.label.base);
|
|
27084
|
+
var Container$e = styled$3.div.withConfig({
|
|
27077
27085
|
displayName: "Selectstyles__Container",
|
|
27078
27086
|
componentId: "sc-19jkd5s-1"
|
|
27079
27087
|
})(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n transition: 0.2s;\n position: relative;\n ", "\n ", "\n *::selection {\n ", "\n }\n ", "\n\n ", "\n &:hover {\n ", "\n ", " {\n ", "\n }\n }\n &:focus-within {\n ", "\n ", " {\n ", "\n }\n }\n ", "\n\n .", "__menu-list {\n ", "\n }\n &:hover\n .", "__dropdown-indicator,\n &:focus-within\n .", "__dropdown-indicator {\n ", "\n }\n\n ", "\n ", "\n"], ["\n transition: 0.2s;\n position: relative;\n ", "\n ", "\n *::selection {\n ", "\n }\n ", "\n\n ", "\n &:hover {\n ", "\n ", " {\n ", "\n }\n }\n &:focus-within {\n ", "\n ", " {\n ", "\n }\n }\n ", "\n\n .", "__menu-list {\n ", "\n }\n &:hover\n .", "__dropdown-indicator,\n &:focus-within\n .", "__dropdown-indicator {\n ", "\n }\n\n ", "\n ", "\n"])), selectTokens.container.base, scrollbarStyling, typographyTokens.selection.base, function (_a) {
|
|
27080
27088
|
var isMulti = _a.isMulti;
|
|
27081
|
-
return isMulti && Ae(templateObject_2$
|
|
27089
|
+
return isMulti && Ae(templateObject_2$x || (templateObject_2$x = __makeTemplateObject([""], [""])));
|
|
27082
27090
|
}, function (_a) {
|
|
27083
27091
|
var hasLabel = _a.hasLabel,
|
|
27084
27092
|
isMulti = _a.isMulti;
|
|
@@ -27202,7 +27210,7 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
27202
27210
|
}
|
|
27203
27211
|
};
|
|
27204
27212
|
};
|
|
27205
|
-
var templateObject_1$
|
|
27213
|
+
var templateObject_1$K, templateObject_2$x, templateObject_3$m, templateObject_4$h, templateObject_5$a, templateObject_6$9, templateObject_7$6, templateObject_8$3, templateObject_9$2, templateObject_10$2, templateObject_11$1, templateObject_12;
|
|
27206
27214
|
|
|
27207
27215
|
var DdsOption = components.Option,
|
|
27208
27216
|
NoOptionsMessage = components.NoOptionsMessage,
|
|
@@ -27232,7 +27240,7 @@ function searchFilter(text, search) {
|
|
|
27232
27240
|
var searchFilterRegex = new RegExp("(?:^|[\\s-(])".concat(escapeRegexCharacters(search.toLowerCase())));
|
|
27233
27241
|
return searchFilterRegex.test(text.toLowerCase());
|
|
27234
27242
|
}
|
|
27235
|
-
var nextUniqueId$
|
|
27243
|
+
var nextUniqueId$c = 0;
|
|
27236
27244
|
|
|
27237
27245
|
var SelectInner = function SelectInner(_a, ref) {
|
|
27238
27246
|
var id = _a.id,
|
|
@@ -27257,7 +27265,7 @@ var SelectInner = function SelectInner(_a, ref) {
|
|
|
27257
27265
|
placeholder = _d === void 0 ? '-- Velg fra listen --' : _d,
|
|
27258
27266
|
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "isMulti", "value", "defaultValue", "width", "closeMenuOnSelect", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
27259
27267
|
|
|
27260
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-".concat(nextUniqueId$
|
|
27268
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-".concat(nextUniqueId$c++))[0];
|
|
27261
27269
|
var hasLabel = !!label;
|
|
27262
27270
|
var hasErrorMessage = !!errorMessage;
|
|
27263
27271
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
@@ -27308,7 +27316,7 @@ var SelectInner = function SelectInner(_a, ref) {
|
|
|
27308
27316
|
}, rest);
|
|
27309
27317
|
|
|
27310
27318
|
return jsxRuntime.exports.jsxs(Wrapper$5, __assign({}, wrapperProps, {
|
|
27311
|
-
children: [jsxRuntime.exports.jsxs(Container$
|
|
27319
|
+
children: [jsxRuntime.exports.jsxs(Container$e, __assign({}, containerProps, {
|
|
27312
27320
|
children: [label && jsxRuntime.exports.jsxs(Label, __assign({
|
|
27313
27321
|
htmlFor: uniqueId,
|
|
27314
27322
|
forwardedAs: "label",
|
|
@@ -27395,37 +27403,37 @@ var _default$f = (0, _createSvgIcon$f.default)( /*#__PURE__*/(0, _jsxRuntime$f.j
|
|
|
27395
27403
|
|
|
27396
27404
|
default_1$f = InfoOutlined.default = _default$f;
|
|
27397
27405
|
|
|
27398
|
-
var Colors$
|
|
27399
|
-
Spacing$
|
|
27406
|
+
var Colors$g = ddsBaseTokens.colors,
|
|
27407
|
+
Spacing$o = ddsBaseTokens.spacing,
|
|
27400
27408
|
FontPackages$e = ddsBaseTokens.fontPackages;
|
|
27401
27409
|
|
|
27402
27410
|
var containerBase$3 = __assign(__assign({
|
|
27403
27411
|
borderBottom: '2px solid',
|
|
27404
|
-
padding: "0 ".concat(Spacing$
|
|
27412
|
+
padding: "0 ".concat(Spacing$o.SizesDdsSpacingLocalX1),
|
|
27405
27413
|
width: '100%'
|
|
27406
27414
|
}, FontPackages$e.body_sans_02.base), {
|
|
27407
|
-
color: Colors$
|
|
27415
|
+
color: Colors$g.DdsColorNeutralsGray8
|
|
27408
27416
|
});
|
|
27409
27417
|
|
|
27410
27418
|
var contentContainerBase$3 = {
|
|
27411
|
-
paddingRight: Spacing$
|
|
27412
|
-
paddingTop: Spacing$
|
|
27413
|
-
paddingBottom: Spacing$
|
|
27419
|
+
paddingRight: Spacing$o.SizesDdsSpacingLocalX15,
|
|
27420
|
+
paddingTop: Spacing$o.SizesDdsSpacingLocalX075,
|
|
27421
|
+
paddingBottom: Spacing$o.SizesDdsSpacingLocalX075
|
|
27414
27422
|
};
|
|
27415
27423
|
var contentContainerWithClosableBase$1 = {
|
|
27416
|
-
paddingRight: Spacing$
|
|
27424
|
+
paddingRight: Spacing$o.SizesDdsSpacingLocalX075
|
|
27417
27425
|
};
|
|
27418
27426
|
var containerInfoBase$1 = {
|
|
27419
|
-
borderColor: Colors$
|
|
27420
|
-
backgroundColor: Colors$
|
|
27427
|
+
borderColor: Colors$g.DdsColorInfoLighter,
|
|
27428
|
+
backgroundColor: Colors$g.DdsColorInfoLightest
|
|
27421
27429
|
};
|
|
27422
27430
|
var containerDangerBase$1 = {
|
|
27423
|
-
borderColor: Colors$
|
|
27424
|
-
backgroundColor: Colors$
|
|
27431
|
+
borderColor: Colors$g.DdsColorDangerLighter,
|
|
27432
|
+
backgroundColor: Colors$g.DdsColorDangerLightest
|
|
27425
27433
|
};
|
|
27426
27434
|
var containerWarningBase$1 = {
|
|
27427
|
-
borderColor: Colors$
|
|
27428
|
-
backgroundColor: Colors$
|
|
27435
|
+
borderColor: Colors$g.DdsColorWarningLighter,
|
|
27436
|
+
backgroundColor: Colors$g.DdsColorWarningLightest
|
|
27429
27437
|
};
|
|
27430
27438
|
var globalMessageTokens = {
|
|
27431
27439
|
container: {
|
|
@@ -27447,18 +27455,18 @@ var globalMessageTokens = {
|
|
|
27447
27455
|
}
|
|
27448
27456
|
},
|
|
27449
27457
|
icon: {
|
|
27450
|
-
marginRight: "".concat(Spacing$
|
|
27458
|
+
marginRight: "".concat(Spacing$o.SizesDdsSpacingLocalX075),
|
|
27451
27459
|
info: {
|
|
27452
27460
|
icon: default_1$f,
|
|
27453
|
-
color: Colors$
|
|
27461
|
+
color: Colors$g.DdsColorInfoDarkest
|
|
27454
27462
|
},
|
|
27455
27463
|
danger: {
|
|
27456
27464
|
icon: default_1$j,
|
|
27457
|
-
color: Colors$
|
|
27465
|
+
color: Colors$g.DdsColorDangerDarkest
|
|
27458
27466
|
},
|
|
27459
27467
|
warning: {
|
|
27460
27468
|
icon: default_1$g,
|
|
27461
|
-
color: Colors$
|
|
27469
|
+
color: Colors$g.DdsColorWarningDarkest
|
|
27462
27470
|
}
|
|
27463
27471
|
},
|
|
27464
27472
|
button: {
|
|
@@ -27474,12 +27482,12 @@ var globalMessageTokens = {
|
|
|
27474
27482
|
}
|
|
27475
27483
|
};
|
|
27476
27484
|
|
|
27477
|
-
var Container$
|
|
27485
|
+
var Container$d = styled$3.div.withConfig({
|
|
27478
27486
|
displayName: "GlobalMessage__Container",
|
|
27479
27487
|
componentId: "sc-bf2l65-0"
|
|
27480
|
-
})(templateObject_2$
|
|
27488
|
+
})(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n ", "\n"])), function (_a) {
|
|
27481
27489
|
var purpose = _a.purpose;
|
|
27482
|
-
return purpose && Ae(templateObject_1$
|
|
27490
|
+
return purpose && Ae(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), globalMessageTokens.container.base, globalMessageTokens.container[purpose].base);
|
|
27483
27491
|
});
|
|
27484
27492
|
var MessageIconWrapper$1 = styled$3(IconWrapper$1).withConfig({
|
|
27485
27493
|
displayName: "GlobalMessage__MessageIconWrapper",
|
|
@@ -27516,7 +27524,7 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27516
27524
|
purpose: purpose
|
|
27517
27525
|
}, rest);
|
|
27518
27526
|
|
|
27519
|
-
return !isClosed ? jsxRuntime.exports.jsxs(Container$
|
|
27527
|
+
return !isClosed ? jsxRuntime.exports.jsxs(Container$d, __assign({}, containerProps, {
|
|
27520
27528
|
children: [jsxRuntime.exports.jsxs(ContentContainer$4, __assign({
|
|
27521
27529
|
closable: closable
|
|
27522
27530
|
}, {
|
|
@@ -27529,7 +27537,7 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27529
27537
|
children: message
|
|
27530
27538
|
}))]
|
|
27531
27539
|
})), jsxRuntime.exports.jsx(ControlsContainer, {
|
|
27532
|
-
children: closable && jsxRuntime.exports.jsx(Button, {
|
|
27540
|
+
children: closable && jsxRuntime.exports.jsx(Button$1, {
|
|
27533
27541
|
Icon: default_1$h,
|
|
27534
27542
|
purpose: buttonPurpose,
|
|
27535
27543
|
appearance: "borderless",
|
|
@@ -27543,7 +27551,7 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27543
27551
|
})]
|
|
27544
27552
|
})) : null;
|
|
27545
27553
|
});
|
|
27546
|
-
var templateObject_1$
|
|
27554
|
+
var templateObject_1$J, templateObject_2$w, templateObject_3$l, templateObject_4$g, templateObject_5$9, templateObject_6$8;
|
|
27547
27555
|
|
|
27548
27556
|
var CheckCircleOutlined = {};
|
|
27549
27557
|
|
|
@@ -27589,63 +27597,63 @@ var _default$d = (0, _createSvgIcon$d.default)([/*#__PURE__*/(0, _jsxRuntime$d.j
|
|
|
27589
27597
|
|
|
27590
27598
|
default_1$d = EmojiObjectsOutlined.default = _default$d;
|
|
27591
27599
|
|
|
27592
|
-
var Colors$
|
|
27593
|
-
Spacing$
|
|
27600
|
+
var Colors$f = ddsBaseTokens.colors,
|
|
27601
|
+
Spacing$n = ddsBaseTokens.spacing,
|
|
27594
27602
|
FontPackages$d = ddsBaseTokens.fontPackages,
|
|
27595
27603
|
BorderRadius$5 = ddsBaseTokens.borderRadius,
|
|
27596
|
-
Border$
|
|
27604
|
+
Border$b = ddsBaseTokens.border,
|
|
27597
27605
|
OuterShadow$4 = ddsBaseTokens.outerShadow;
|
|
27598
27606
|
|
|
27599
27607
|
var containerBase$2 = __assign(__assign({
|
|
27600
27608
|
boxShadow: OuterShadow$4.DdsShadow1Onlight,
|
|
27601
27609
|
borderRadius: BorderRadius$5.RadiiDdsBorderRadius1Radius,
|
|
27602
|
-
border: "".concat(Border$
|
|
27603
|
-
padding: "0 ".concat(Spacing$
|
|
27610
|
+
border: "".concat(Border$b.BordersDdsBorderStyleLightStrokeWeight, " solid"),
|
|
27611
|
+
padding: "0 ".concat(Spacing$n.SizesDdsSpacingLocalX1)
|
|
27604
27612
|
}, FontPackages$d.body_sans_02.base), {
|
|
27605
|
-
color: Colors$
|
|
27613
|
+
color: Colors$f.DdsColorNeutralsGray8
|
|
27606
27614
|
});
|
|
27607
27615
|
|
|
27608
27616
|
var defaultWidth = '400px';
|
|
27609
27617
|
var contentContainerBase$2 = {
|
|
27610
|
-
paddingRight: Spacing$
|
|
27611
|
-
paddingTop: Spacing$
|
|
27612
|
-
paddingBottom: Spacing$
|
|
27618
|
+
paddingRight: Spacing$n.SizesDdsSpacingLocalX15,
|
|
27619
|
+
paddingTop: Spacing$n.SizesDdsSpacingLocalX075,
|
|
27620
|
+
paddingBottom: Spacing$n.SizesDdsSpacingLocalX075
|
|
27613
27621
|
};
|
|
27614
27622
|
var contentContainerWithClosableBase = {
|
|
27615
|
-
paddingRight: Spacing$
|
|
27623
|
+
paddingRight: Spacing$n.SizesDdsSpacingLocalX075
|
|
27616
27624
|
};
|
|
27617
27625
|
var contentContainerVericalBase = {
|
|
27618
|
-
paddingBottom: Spacing$
|
|
27626
|
+
paddingBottom: Spacing$n.SizesDdsSpacingLocalX15
|
|
27619
27627
|
};
|
|
27620
27628
|
var topContainerBase = {
|
|
27621
|
-
paddingTop: Spacing$
|
|
27629
|
+
paddingTop: Spacing$n.SizesDdsSpacingLocalX15
|
|
27622
27630
|
};
|
|
27623
27631
|
var topContainerWithClosableBase = {
|
|
27624
|
-
paddingTop: Spacing$
|
|
27632
|
+
paddingTop: Spacing$n.SizesDdsSpacingLocalX1
|
|
27625
27633
|
};
|
|
27626
27634
|
var containerInfoBase = {
|
|
27627
|
-
borderColor: Colors$
|
|
27628
|
-
backgroundColor: Colors$
|
|
27635
|
+
borderColor: Colors$f.DdsColorInfoLighter,
|
|
27636
|
+
backgroundColor: Colors$f.DdsColorInfoLightest
|
|
27629
27637
|
};
|
|
27630
27638
|
var containerDangerBase = {
|
|
27631
|
-
borderColor: Colors$
|
|
27632
|
-
backgroundColor: Colors$
|
|
27639
|
+
borderColor: Colors$f.DdsColorDangerLighter,
|
|
27640
|
+
backgroundColor: Colors$f.DdsColorDangerLightest
|
|
27633
27641
|
};
|
|
27634
27642
|
var containerWarningBase = {
|
|
27635
|
-
borderColor: Colors$
|
|
27636
|
-
backgroundColor: Colors$
|
|
27643
|
+
borderColor: Colors$f.DdsColorWarningLighter,
|
|
27644
|
+
backgroundColor: Colors$f.DdsColorWarningLightest
|
|
27637
27645
|
};
|
|
27638
27646
|
var containerSuccessBase = {
|
|
27639
|
-
borderColor: Colors$
|
|
27640
|
-
backgroundColor: Colors$
|
|
27647
|
+
borderColor: Colors$f.DdsColorSuccessLighter,
|
|
27648
|
+
backgroundColor: Colors$f.DdsColorSuccessLightest
|
|
27641
27649
|
};
|
|
27642
27650
|
var containerTipsBase = {
|
|
27643
|
-
borderColor: Colors$
|
|
27644
|
-
backgroundColor: Colors$
|
|
27651
|
+
borderColor: Colors$f.DdsColorPrimaryLighter,
|
|
27652
|
+
backgroundColor: Colors$f.DdsColorPrimaryLightest
|
|
27645
27653
|
};
|
|
27646
27654
|
var containerConfidentialBase = {
|
|
27647
|
-
borderColor: Colors$
|
|
27648
|
-
backgroundColor: Colors$
|
|
27655
|
+
borderColor: Colors$f.DdsColorDangerBase,
|
|
27656
|
+
backgroundColor: Colors$f.DdsColorDangerLightest
|
|
27649
27657
|
};
|
|
27650
27658
|
var localMessageTokens = {
|
|
27651
27659
|
container: {
|
|
@@ -27686,30 +27694,30 @@ var localMessageTokens = {
|
|
|
27686
27694
|
}
|
|
27687
27695
|
},
|
|
27688
27696
|
icon: {
|
|
27689
|
-
marginRight: "".concat(Spacing$
|
|
27697
|
+
marginRight: "".concat(Spacing$n.SizesDdsSpacingLocalX075),
|
|
27690
27698
|
info: {
|
|
27691
27699
|
icon: default_1$f,
|
|
27692
|
-
color: Colors$
|
|
27700
|
+
color: Colors$f.DdsColorInfoDarkest
|
|
27693
27701
|
},
|
|
27694
27702
|
danger: {
|
|
27695
27703
|
icon: default_1$j,
|
|
27696
|
-
color: Colors$
|
|
27704
|
+
color: Colors$f.DdsColorDangerDarkest
|
|
27697
27705
|
},
|
|
27698
27706
|
warning: {
|
|
27699
27707
|
icon: default_1$g,
|
|
27700
|
-
color: Colors$
|
|
27708
|
+
color: Colors$f.DdsColorWarningDarkest
|
|
27701
27709
|
},
|
|
27702
27710
|
success: {
|
|
27703
27711
|
icon: default_1$e,
|
|
27704
|
-
color: Colors$
|
|
27712
|
+
color: Colors$f.DdsColorSuccessDarkest
|
|
27705
27713
|
},
|
|
27706
27714
|
tips: {
|
|
27707
27715
|
icon: default_1$d,
|
|
27708
|
-
color: Colors$
|
|
27716
|
+
color: Colors$f.DdsColorPrimaryDarkest
|
|
27709
27717
|
},
|
|
27710
27718
|
confidential: {
|
|
27711
27719
|
icon: default_1$j,
|
|
27712
|
-
color: Colors$
|
|
27720
|
+
color: Colors$f.DdsColorDangerDarkest
|
|
27713
27721
|
}
|
|
27714
27722
|
},
|
|
27715
27723
|
button: {
|
|
@@ -27734,7 +27742,7 @@ var localMessageTokens = {
|
|
|
27734
27742
|
}
|
|
27735
27743
|
};
|
|
27736
27744
|
|
|
27737
|
-
var Container$
|
|
27745
|
+
var Container$c = styled$3.div.withConfig({
|
|
27738
27746
|
displayName: "LocalMessage__Container",
|
|
27739
27747
|
componentId: "sc-kmfp8w-0"
|
|
27740
27748
|
})(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n box-sizing: border-box;\n ", ";\n *::selection {\n ", "\n }\n ", "\n width: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n box-sizing: border-box;\n ", ";\n *::selection {\n ", "\n }\n ", "\n width: ", ";\n"])), function (_a) {
|
|
@@ -27742,10 +27750,10 @@ var Container$b = styled$3.div.withConfig({
|
|
|
27742
27750
|
return layout === 'vertical' ? 'column' : 'row';
|
|
27743
27751
|
}, function (_a) {
|
|
27744
27752
|
var layout = _a.layout;
|
|
27745
|
-
return layout === 'horisontal' && Ae(templateObject_1$
|
|
27753
|
+
return layout === 'horisontal' && Ae(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n align-items: center;\n justify-content: space-between;\n "], ["\n align-items: center;\n justify-content: space-between;\n "])));
|
|
27746
27754
|
}, typographyTokens.selection.base, function (_a) {
|
|
27747
27755
|
var purpose = _a.purpose;
|
|
27748
|
-
return purpose && Ae(templateObject_2$
|
|
27756
|
+
return purpose && Ae(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), localMessageTokens.container.base, localMessageTokens.container[purpose].base);
|
|
27749
27757
|
}, function (_a) {
|
|
27750
27758
|
var width = _a.width;
|
|
27751
27759
|
return width;
|
|
@@ -27813,7 +27821,7 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27813
27821
|
children: message
|
|
27814
27822
|
}));
|
|
27815
27823
|
|
|
27816
|
-
var closeButton = closable && jsxRuntime.exports.jsx(Button, {
|
|
27824
|
+
var closeButton = closable && jsxRuntime.exports.jsx(Button$1, {
|
|
27817
27825
|
Icon: default_1$h,
|
|
27818
27826
|
purpose: buttonPurpose,
|
|
27819
27827
|
appearance: "borderless",
|
|
@@ -27825,7 +27833,7 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27825
27833
|
"aria-label": "Lukk melding"
|
|
27826
27834
|
});
|
|
27827
27835
|
|
|
27828
|
-
return !isClosed ? jsxRuntime.exports.jsx(Container$
|
|
27836
|
+
return !isClosed ? jsxRuntime.exports.jsx(Container$c, __assign({}, containerProps, {
|
|
27829
27837
|
children: layout === 'horisontal' ? jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
27830
27838
|
children: [jsxRuntime.exports.jsxs(ContentContainer$3, __assign({}, contentContainerProps, {
|
|
27831
27839
|
children: [messageIconWrapper, " ", content]
|
|
@@ -27841,7 +27849,7 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27841
27849
|
})
|
|
27842
27850
|
})) : null;
|
|
27843
27851
|
});
|
|
27844
|
-
var templateObject_1$
|
|
27852
|
+
var templateObject_1$I, templateObject_2$v, templateObject_3$k, templateObject_4$f, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$2, templateObject_9$1, templateObject_10$1;
|
|
27845
27853
|
|
|
27846
27854
|
var SearchOutlined = {};
|
|
27847
27855
|
|
|
@@ -27862,26 +27870,26 @@ var _default$c = (0, _createSvgIcon$c.default)( /*#__PURE__*/(0, _jsxRuntime$c.j
|
|
|
27862
27870
|
|
|
27863
27871
|
default_1$c = SearchOutlined.default = _default$c;
|
|
27864
27872
|
|
|
27865
|
-
var Spacing$
|
|
27873
|
+
var Spacing$m = ddsBaseTokens.spacing,
|
|
27866
27874
|
FontPackages$c = ddsBaseTokens.fontPackages;
|
|
27867
27875
|
var textDefault$5 = ddsReferenceTokens.textDefault;
|
|
27868
27876
|
var inputBase = {
|
|
27869
|
-
paddingRight: Spacing$
|
|
27877
|
+
paddingRight: Spacing$m.SizesDdsSpacingLocalX05
|
|
27870
27878
|
};
|
|
27871
27879
|
|
|
27872
27880
|
var smallBase$1 = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_01.base), {
|
|
27873
|
-
paddingTop: Spacing$
|
|
27874
|
-
paddingBottom: Spacing$
|
|
27881
|
+
paddingTop: Spacing$m.SizesDdsSpacingLocalX05,
|
|
27882
|
+
paddingBottom: Spacing$m.SizesDdsSpacingLocalX05
|
|
27875
27883
|
});
|
|
27876
27884
|
|
|
27877
27885
|
var mediumBase = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_02.base), {
|
|
27878
|
-
paddingTop: Spacing$
|
|
27879
|
-
paddingBottom: Spacing$
|
|
27886
|
+
paddingTop: Spacing$m.SizesDdsSpacingLocalX075,
|
|
27887
|
+
paddingBottom: Spacing$m.SizesDdsSpacingLocalX075
|
|
27880
27888
|
});
|
|
27881
27889
|
|
|
27882
27890
|
var largeBase = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_03.base), {
|
|
27883
|
-
paddingTop: Spacing$
|
|
27884
|
-
paddingBottom: Spacing$
|
|
27891
|
+
paddingTop: Spacing$m.SizesDdsSpacingLocalX1,
|
|
27892
|
+
paddingBottom: Spacing$m.SizesDdsSpacingLocalX1
|
|
27885
27893
|
});
|
|
27886
27894
|
|
|
27887
27895
|
var iconWrapperBase = {
|
|
@@ -27890,7 +27898,7 @@ var iconWrapperBase = {
|
|
|
27890
27898
|
var searchTokens = {
|
|
27891
27899
|
input: {
|
|
27892
27900
|
base: inputBase,
|
|
27893
|
-
spaceLeft: Spacing$
|
|
27901
|
+
spaceLeft: Spacing$m.SizesDdsSpacingLocalX3,
|
|
27894
27902
|
small: {
|
|
27895
27903
|
base: smallBase$1
|
|
27896
27904
|
},
|
|
@@ -27902,29 +27910,29 @@ var searchTokens = {
|
|
|
27902
27910
|
}
|
|
27903
27911
|
},
|
|
27904
27912
|
icon: {
|
|
27905
|
-
spaceTop: "calc(50% - ".concat(Spacing$
|
|
27906
|
-
spaceLeft: Spacing$
|
|
27913
|
+
spaceTop: "calc(50% - ".concat(Spacing$m.SizesDdsSpacingLocalX15NumberPx / 2, "px)"),
|
|
27914
|
+
spaceLeft: Spacing$m.SizesDdsSpacingLocalX075
|
|
27907
27915
|
},
|
|
27908
27916
|
iconWrapper: {
|
|
27909
27917
|
base: iconWrapperBase
|
|
27910
27918
|
},
|
|
27911
27919
|
buttonWrapper: {
|
|
27912
|
-
spaceLeft: Spacing$
|
|
27920
|
+
spaceLeft: Spacing$m.SizesDdsSpacingLocalX05
|
|
27913
27921
|
}
|
|
27914
27922
|
};
|
|
27915
27923
|
|
|
27916
27924
|
var Input$1 = styled$3.input.withConfig({
|
|
27917
27925
|
displayName: "Search__Input",
|
|
27918
27926
|
componentId: "sc-1ax3s9s-0"
|
|
27919
|
-
})(templateObject_2$
|
|
27927
|
+
})(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n &[type='search']::-webkit-search-decoration,\n &[type='search']::-webkit-search-cancel-button,\n &[type='search']::-webkit-search-results-button,\n &[type='search']::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n ", "\n ", "\n\n ", "\n\n padding-left: ", ";\n"], ["\n &[type='search']::-webkit-search-decoration,\n &[type='search']::-webkit-search-cancel-button,\n &[type='search']::-webkit-search-results-button,\n &[type='search']::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n ", "\n ", "\n\n ", "\n\n padding-left: ", ";\n"])), inputFieldStylingBase, searchTokens.input.base, function (_a) {
|
|
27920
27928
|
var componentSize = _a.componentSize;
|
|
27921
|
-
return componentSize && Ae(templateObject_1$
|
|
27929
|
+
return componentSize && Ae(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), searchTokens.input[componentSize].base);
|
|
27922
27930
|
}, searchTokens.input.spaceLeft);
|
|
27923
27931
|
var IconWrapper = styled$3.span.withConfig({
|
|
27924
27932
|
displayName: "Search__IconWrapper",
|
|
27925
27933
|
componentId: "sc-1ax3s9s-1"
|
|
27926
27934
|
})(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n ", "\n position: absolute;\n top: ", ";\n left: ", ";\n"], ["\n ", "\n position: absolute;\n top: ", ";\n left: ", ";\n"])), searchTokens.iconWrapper.base, searchTokens.icon.spaceTop, searchTokens.icon.spaceLeft);
|
|
27927
|
-
var Container$
|
|
27935
|
+
var Container$b = styled$3.div.withConfig({
|
|
27928
27936
|
displayName: "Search__Container",
|
|
27929
27937
|
componentId: "sc-1ax3s9s-2"
|
|
27930
27938
|
})(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n"], ["\n display: flex;\n flex-direction: row;\n"])));
|
|
@@ -27940,7 +27948,7 @@ var ButtonWrapper = styled$3.div.withConfig({
|
|
|
27940
27948
|
displayName: "Search__ButtonWrapper",
|
|
27941
27949
|
componentId: "sc-1ax3s9s-5"
|
|
27942
27950
|
})(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n margin-left: ", ";\n"], ["\n margin-left: ", ";\n"])), searchTokens.buttonWrapper.spaceLeft);
|
|
27943
|
-
var nextUniqueId$
|
|
27951
|
+
var nextUniqueId$b = 0;
|
|
27944
27952
|
var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
27945
27953
|
var _b = _a.componentSize,
|
|
27946
27954
|
componentSize = _b === void 0 ? 'medium' : _b,
|
|
@@ -27953,7 +27961,7 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27953
27961
|
ariaDescribedby = _a["aria-describedby"],
|
|
27954
27962
|
rest = __rest(_a, ["componentSize", "buttonProps", "name", "tip", "id", "className", "style", 'aria-describedby']);
|
|
27955
27963
|
|
|
27956
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "searchInput-".concat(nextUniqueId$
|
|
27964
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "searchInput-".concat(nextUniqueId$b++))[0];
|
|
27957
27965
|
var hasTip = !!tip;
|
|
27958
27966
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
27959
27967
|
var containerProps = {
|
|
@@ -27974,7 +27982,7 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27974
27982
|
onClick = _c.onClick,
|
|
27975
27983
|
otherButtonProps = __rest(_c, ["label", "onClick"]);
|
|
27976
27984
|
|
|
27977
|
-
return jsxRuntime.exports.jsxs(Container$
|
|
27985
|
+
return jsxRuntime.exports.jsxs(Container$b, __assign({}, containerProps, {
|
|
27978
27986
|
children: [jsxRuntime.exports.jsxs(InputContainer, {
|
|
27979
27987
|
children: [jsxRuntime.exports.jsxs(InputWrapper, {
|
|
27980
27988
|
children: [jsxRuntime.exports.jsx(IconWrapper, {
|
|
@@ -27988,7 +27996,7 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27988
27996
|
message: tip
|
|
27989
27997
|
})]
|
|
27990
27998
|
}), buttonProps && onClick && jsxRuntime.exports.jsx(ButtonWrapper, {
|
|
27991
|
-
children: jsxRuntime.exports.jsx(Button, __assign({
|
|
27999
|
+
children: jsxRuntime.exports.jsx(Button$1, __assign({
|
|
27992
28000
|
size: componentSize,
|
|
27993
28001
|
label: label || 'Søk',
|
|
27994
28002
|
onClick: onClick
|
|
@@ -27996,29 +28004,29 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
27996
28004
|
})]
|
|
27997
28005
|
}));
|
|
27998
28006
|
});
|
|
27999
|
-
var templateObject_1$
|
|
28007
|
+
var templateObject_1$H, templateObject_2$u, templateObject_3$j, templateObject_4$e, templateObject_5$7, templateObject_6$6, templateObject_7$4;
|
|
28000
28008
|
|
|
28001
|
-
var Colors$
|
|
28002
|
-
Spacing$
|
|
28009
|
+
var Colors$e = ddsBaseTokens.colors,
|
|
28010
|
+
Spacing$l = ddsBaseTokens.spacing;
|
|
28003
28011
|
var cellBase = {};
|
|
28004
28012
|
var compactCellBase = {
|
|
28005
|
-
padding: "".concat(Spacing$
|
|
28013
|
+
padding: "".concat(Spacing$l.SizesDdsSpacingLocalX075)
|
|
28006
28014
|
};
|
|
28007
28015
|
var headBase = {
|
|
28008
|
-
backgroundColor: Colors$
|
|
28016
|
+
backgroundColor: Colors$e.DdsColorPrimaryLightest
|
|
28009
28017
|
};
|
|
28010
28018
|
var dataBase = {};
|
|
28011
28019
|
var normalCellBase = {
|
|
28012
|
-
padding: "".concat(Spacing$
|
|
28020
|
+
padding: "".concat(Spacing$l.SizesDdsSpacingLocalX15, " ").concat(Spacing$l.SizesDdsSpacingLocalX075)
|
|
28013
28021
|
};
|
|
28014
28022
|
var sortCellIconBase = {
|
|
28015
|
-
marginInlineStart: Spacing$
|
|
28023
|
+
marginInlineStart: Spacing$l.SizesDdsSpacingLocalX05
|
|
28016
28024
|
};
|
|
28017
28025
|
|
|
28018
28026
|
var sortCellFocusBase = __assign({}, focusVisible);
|
|
28019
28027
|
|
|
28020
28028
|
var textAndIconBase = {
|
|
28021
|
-
marginRight: Spacing$
|
|
28029
|
+
marginRight: Spacing$l.SizesDdsSpacingLocalX075
|
|
28022
28030
|
};
|
|
28023
28031
|
var cellTokens = {
|
|
28024
28032
|
base: cellBase,
|
|
@@ -28056,10 +28064,10 @@ var StyledTable = styled$3.table.withConfig({
|
|
|
28056
28064
|
componentId: "sc-bw0w0a-0"
|
|
28057
28065
|
})(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n border-spacing: 0;\n border-collapse: collapse;\n *::selection {\n ", "\n }\n ", "\n ", "\n ", "\n"], ["\n border-spacing: 0;\n border-collapse: collapse;\n *::selection {\n ", "\n }\n ", "\n ", "\n ", "\n"])), typographyTokens.selection.base, scrollbarStyling, function (_a) {
|
|
28058
28066
|
var density = _a.density;
|
|
28059
|
-
return density && Ae(templateObject_1$
|
|
28067
|
+
return density && Ae(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n td,\n th {\n ", "\n }\n "], ["\n td,\n th {\n ", "\n }\n "])), cellTokens.density[density].base);
|
|
28060
28068
|
}, function (_a) {
|
|
28061
28069
|
var stickyHeader = _a.stickyHeader;
|
|
28062
|
-
return stickyHeader && Ae(templateObject_2$
|
|
28070
|
+
return stickyHeader && Ae(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n tr[type='head'] {\n th[type='head'] {\n position: sticky;\n top: 0;\n }\n }\n "], ["\n tr[type='head'] {\n th[type='head'] {\n position: sticky;\n top: 0;\n }\n }\n "])));
|
|
28063
28071
|
});
|
|
28064
28072
|
var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28065
28073
|
var _b = _a.density,
|
|
@@ -28076,12 +28084,12 @@ var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28076
28084
|
children: children
|
|
28077
28085
|
}));
|
|
28078
28086
|
});
|
|
28079
|
-
var templateObject_1$
|
|
28087
|
+
var templateObject_1$G, templateObject_2$t, templateObject_3$i;
|
|
28080
28088
|
|
|
28081
28089
|
var StyledBody = styled$3.tbody.withConfig({
|
|
28082
28090
|
displayName: "Body__StyledBody",
|
|
28083
28091
|
componentId: "sc-67qjfs-0"
|
|
28084
|
-
})(templateObject_1$
|
|
28092
|
+
})(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([""], [""])));
|
|
28085
28093
|
var Body$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28086
28094
|
var children = _a.children,
|
|
28087
28095
|
rest = __rest(_a, ["children"]);
|
|
@@ -28094,12 +28102,12 @@ var Body$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28094
28102
|
children: children
|
|
28095
28103
|
}));
|
|
28096
28104
|
});
|
|
28097
|
-
var templateObject_1$
|
|
28105
|
+
var templateObject_1$F;
|
|
28098
28106
|
|
|
28099
28107
|
var StyledHead = styled$3.thead.withConfig({
|
|
28100
28108
|
displayName: "Head__StyledHead",
|
|
28101
28109
|
componentId: "sc-vzd2kv-0"
|
|
28102
|
-
})(templateObject_1$
|
|
28110
|
+
})(templateObject_1$E || (templateObject_1$E = __makeTemplateObject([""], [""])));
|
|
28103
28111
|
var Head = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28104
28112
|
var children = _a.children,
|
|
28105
28113
|
rest = __rest(_a, ["children"]);
|
|
@@ -28112,11 +28120,11 @@ var Head = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28112
28120
|
children: children
|
|
28113
28121
|
}));
|
|
28114
28122
|
});
|
|
28115
|
-
var templateObject_1$
|
|
28123
|
+
var templateObject_1$E;
|
|
28116
28124
|
|
|
28117
|
-
var Colors$
|
|
28125
|
+
var Colors$d = ddsBaseTokens.colors,
|
|
28118
28126
|
FontPackages$b = ddsBaseTokens.fontPackages,
|
|
28119
|
-
Border$
|
|
28127
|
+
Border$a = ddsBaseTokens.border;
|
|
28120
28128
|
var textDefault$4 = ddsReferenceTokens.textDefault;
|
|
28121
28129
|
|
|
28122
28130
|
var bodyRowBase = __assign({
|
|
@@ -28131,25 +28139,25 @@ var headRowBase = __assign(__assign({
|
|
|
28131
28139
|
});
|
|
28132
28140
|
|
|
28133
28141
|
var bodyOddBase = {
|
|
28134
|
-
backgroundColor: Colors$
|
|
28142
|
+
backgroundColor: Colors$d.DdsColorNeutralsWhite
|
|
28135
28143
|
};
|
|
28136
28144
|
var bodyEvenBase = {
|
|
28137
|
-
backgroundColor: Colors$
|
|
28145
|
+
backgroundColor: Colors$d.DdsColorNeutralsGray1
|
|
28138
28146
|
};
|
|
28139
28147
|
var bodySelectedBase = {
|
|
28140
|
-
backgroundColor: Colors$
|
|
28148
|
+
backgroundColor: Colors$d.DdsColorSecondaryLightest
|
|
28141
28149
|
};
|
|
28142
28150
|
var bodyHoverBase = {
|
|
28143
|
-
backgroundColor: Colors$
|
|
28151
|
+
backgroundColor: Colors$d.DdsColorSecondaryLightest
|
|
28144
28152
|
};
|
|
28145
28153
|
|
|
28146
28154
|
var bodyFocusBase = __assign({}, focusVisibleInset);
|
|
28147
28155
|
|
|
28148
28156
|
var bodySumBase = __assign(__assign({}, FontPackages$b.body_sans_02.base), {
|
|
28149
28157
|
fontWeight: 600,
|
|
28150
|
-
borderTop: "".concat(Border$
|
|
28151
|
-
borderBottom: "".concat(Border$
|
|
28152
|
-
backgroundColor: Colors$
|
|
28158
|
+
borderTop: "".concat(Border$a.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(Colors$d.DdsColorNeutralsGray4),
|
|
28159
|
+
borderBottom: "".concat(Border$a.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(Colors$d.DdsColorNeutralsGray4),
|
|
28160
|
+
backgroundColor: Colors$d.DdsColorNeutralsWhite
|
|
28153
28161
|
});
|
|
28154
28162
|
|
|
28155
28163
|
var rowTokens = {
|
|
@@ -28185,7 +28193,7 @@ var rowTokens = {
|
|
|
28185
28193
|
};
|
|
28186
28194
|
|
|
28187
28195
|
var bodyStyles = function bodyStyles(mode, selected) {
|
|
28188
|
-
return Ae(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), mode && Ae(templateObject_1$
|
|
28196
|
+
return Ae(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), mode && Ae(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens.body.mode[mode].base), selected && Ae(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens.body.selected.base));
|
|
28189
28197
|
};
|
|
28190
28198
|
|
|
28191
28199
|
var StyledRow = styled$3.tr.withConfig({
|
|
@@ -28220,15 +28228,15 @@ var Row = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28220
28228
|
children: children
|
|
28221
28229
|
}));
|
|
28222
28230
|
});
|
|
28223
|
-
var templateObject_1$
|
|
28231
|
+
var templateObject_1$D, templateObject_2$s, templateObject_3$h, templateObject_4$d, templateObject_5$6, templateObject_6$5, templateObject_7$3;
|
|
28224
28232
|
|
|
28225
28233
|
var layoutStyle = function layoutStyle(layout) {
|
|
28226
28234
|
switch (layout) {
|
|
28227
28235
|
case 'center':
|
|
28228
|
-
return Ae(templateObject_1$
|
|
28236
|
+
return Ae(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
|
|
28229
28237
|
|
|
28230
28238
|
case 'right':
|
|
28231
|
-
return Ae(templateObject_2$
|
|
28239
|
+
return Ae(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n justify-content: flex-end;\n "], ["\n justify-content: flex-end;\n "])));
|
|
28232
28240
|
|
|
28233
28241
|
case 'text and icon':
|
|
28234
28242
|
return Ae(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n & > *:first-of-type {\n ", "\n }\n "], ["\n & > *:first-of-type {\n ", "\n }\n "])), cellTokens.data.layout.textAndIcon.base);
|
|
@@ -28291,7 +28299,7 @@ var Cell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28291
28299
|
}))
|
|
28292
28300
|
}));
|
|
28293
28301
|
});
|
|
28294
|
-
var templateObject_1$
|
|
28302
|
+
var templateObject_1$C, templateObject_2$r, templateObject_3$g, templateObject_4$c, templateObject_5$5, templateObject_6$4;
|
|
28295
28303
|
|
|
28296
28304
|
var KeyboardArrowDown = {};
|
|
28297
28305
|
|
|
@@ -28353,11 +28361,11 @@ default_1$9 = UnfoldMore.default = _default$9;
|
|
|
28353
28361
|
var SortIconWrapper = styled$3(IconWrapper$1).withConfig({
|
|
28354
28362
|
displayName: "SortCell__SortIconWrapper",
|
|
28355
28363
|
componentId: "sc-1l3jzvh-0"
|
|
28356
|
-
})(templateObject_1$
|
|
28364
|
+
})(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), cellTokens.head.sortCell.icon.base);
|
|
28357
28365
|
var StyledButton$3 = styled$3.button.withConfig({
|
|
28358
28366
|
displayName: "SortCell__StyledButton",
|
|
28359
28367
|
componentId: "sc-1l3jzvh-1"
|
|
28360
|
-
})(templateObject_2$
|
|
28368
|
+
})(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n &:focus-visible {\n ", "\n }\n"], ["\n ", "\n display: flex;\n align-items: center;\n &:focus-visible {\n ", "\n }\n"])), removeButtonStyling, cellTokens.head.sortCell.focus.base);
|
|
28361
28369
|
|
|
28362
28370
|
var makeSortIcon = function makeSortIcon(isSorted, sortOrder) {
|
|
28363
28371
|
if (!isSorted || !sortOrder) {
|
|
@@ -28396,12 +28404,12 @@ var SortCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28396
28404
|
}))
|
|
28397
28405
|
}));
|
|
28398
28406
|
});
|
|
28399
|
-
var templateObject_1$
|
|
28407
|
+
var templateObject_1$B, templateObject_2$q;
|
|
28400
28408
|
|
|
28401
28409
|
var StyledFoot = styled$3.tfoot.withConfig({
|
|
28402
28410
|
displayName: "Foot__StyledFoot",
|
|
28403
28411
|
componentId: "sc-tfpehd-0"
|
|
28404
|
-
})(templateObject_1$
|
|
28412
|
+
})(templateObject_1$A || (templateObject_1$A = __makeTemplateObject([""], [""])));
|
|
28405
28413
|
var Foot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28406
28414
|
var children = _a.children,
|
|
28407
28415
|
rest = __rest(_a, ["children"]);
|
|
@@ -28414,14 +28422,14 @@ var Foot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28414
28422
|
children: children
|
|
28415
28423
|
}));
|
|
28416
28424
|
});
|
|
28417
|
-
var templateObject_1$
|
|
28425
|
+
var templateObject_1$A;
|
|
28418
28426
|
|
|
28419
28427
|
var Wrapper$4 = styled$3.div.withConfig({
|
|
28420
28428
|
displayName: "TableWrapper__Wrapper",
|
|
28421
28429
|
componentId: "sc-eb384b-0"
|
|
28422
|
-
})(templateObject_2$
|
|
28430
|
+
})(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (_a) {
|
|
28423
28431
|
var overflowX = _a.overflowX;
|
|
28424
|
-
return overflowX && Ae(templateObject_1$
|
|
28432
|
+
return overflowX && Ae(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n overflow-x: auto;\n "], ["\n overflow-x: auto;\n "])));
|
|
28425
28433
|
}, scrollbarStyling);
|
|
28426
28434
|
var TableWrapper = function TableWrapper(_a) {
|
|
28427
28435
|
var children = _a.children,
|
|
@@ -28468,7 +28476,7 @@ var TableWrapper = function TableWrapper(_a) {
|
|
|
28468
28476
|
children: children
|
|
28469
28477
|
}));
|
|
28470
28478
|
};
|
|
28471
|
-
var templateObject_1$
|
|
28479
|
+
var templateObject_1$z, templateObject_2$p;
|
|
28472
28480
|
|
|
28473
28481
|
var Breadcrumb = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28474
28482
|
var children = _a.children,
|
|
@@ -28527,13 +28535,13 @@ var _default$7 = (0, _createSvgIcon$7.default)( /*#__PURE__*/(0, _jsxRuntime$7.j
|
|
|
28527
28535
|
|
|
28528
28536
|
default_1$7 = ArrowBackOutlined.default = _default$7;
|
|
28529
28537
|
|
|
28530
|
-
var Colors$
|
|
28531
|
-
Spacing$
|
|
28538
|
+
var Colors$c = ddsBaseTokens.colors,
|
|
28539
|
+
Spacing$k = ddsBaseTokens.spacing,
|
|
28532
28540
|
FontPackages$a = ddsBaseTokens.fontPackages;
|
|
28533
28541
|
var iconBase$1 = {
|
|
28534
|
-
color: Colors$
|
|
28535
|
-
marginLeft: Spacing$
|
|
28536
|
-
marginRight: Spacing$
|
|
28542
|
+
color: Colors$c.DdsColorInteractiveBase,
|
|
28543
|
+
marginLeft: Spacing$k.SizesDdsSpacingLocalX05,
|
|
28544
|
+
marginRight: Spacing$k.SizesDdsSpacingLocalX05
|
|
28537
28545
|
};
|
|
28538
28546
|
|
|
28539
28547
|
var breadcrumbBase = __assign({}, FontPackages$a.body_sans_02.base);
|
|
@@ -28551,11 +28559,11 @@ var breadcrumbTokens = {
|
|
|
28551
28559
|
var List$2 = styled$3.ol.withConfig({
|
|
28552
28560
|
displayName: "Breadcrumbs__List",
|
|
28553
28561
|
componentId: "sc-xdj21o-0"
|
|
28554
|
-
})(templateObject_1$
|
|
28562
|
+
})(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n list-style: none;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"], ["\n list-style: none;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"])));
|
|
28555
28563
|
var ListItem$2 = styled$3.li.withConfig({
|
|
28556
28564
|
displayName: "Breadcrumbs__ListItem",
|
|
28557
28565
|
componentId: "sc-xdj21o-1"
|
|
28558
|
-
})(templateObject_2$
|
|
28566
|
+
})(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n align-items: center;\n display: flex;\n ", "\n"], ["\n align-items: center;\n display: flex;\n ", "\n"])), breadcrumbTokens.breadcrumb.base);
|
|
28559
28567
|
var BreadcrumbIcon = styled$3(default_1$8).withConfig({
|
|
28560
28568
|
displayName: "Breadcrumbs__BreadcrumbIcon",
|
|
28561
28569
|
componentId: "sc-xdj21o-2"
|
|
@@ -28595,7 +28603,7 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28595
28603
|
})
|
|
28596
28604
|
}));
|
|
28597
28605
|
});
|
|
28598
|
-
var templateObject_1$
|
|
28606
|
+
var templateObject_1$y, templateObject_2$o, templateObject_3$f, templateObject_4$b;
|
|
28599
28607
|
|
|
28600
28608
|
var ChevronLeftOutlined = {};
|
|
28601
28609
|
|
|
@@ -28712,39 +28720,39 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
28712
28720
|
return arrayRange(1, pagesAmount);
|
|
28713
28721
|
}
|
|
28714
28722
|
|
|
28715
|
-
var Spacing$
|
|
28716
|
-
Colors$
|
|
28723
|
+
var Spacing$j = ddsBaseTokens.spacing,
|
|
28724
|
+
Colors$b = ddsBaseTokens.colors;
|
|
28717
28725
|
var listBase = {
|
|
28718
|
-
color: Colors$
|
|
28726
|
+
color: Colors$b.DdsColorNeutralsGray7
|
|
28719
28727
|
};
|
|
28720
28728
|
var paginationTokens = {
|
|
28721
28729
|
container: {
|
|
28722
|
-
spaceBetweenItems: Spacing$
|
|
28730
|
+
spaceBetweenItems: Spacing$j.SizesDdsSpacingLocalX075
|
|
28723
28731
|
},
|
|
28724
28732
|
indicatorsContainer: {
|
|
28725
|
-
spacing: Spacing$
|
|
28733
|
+
spacing: Spacing$j.SizesDdsSpacingLocalX075
|
|
28726
28734
|
},
|
|
28727
28735
|
list: {
|
|
28728
28736
|
base: listBase
|
|
28729
28737
|
},
|
|
28730
28738
|
paginationItem: {
|
|
28731
|
-
spacing: Spacing$
|
|
28739
|
+
spacing: Spacing$j.SizesDdsSpacingLocalX075
|
|
28732
28740
|
}
|
|
28733
28741
|
};
|
|
28734
28742
|
|
|
28735
28743
|
var Nav = styled$3.nav.withConfig({
|
|
28736
28744
|
displayName: "Pagination__Nav",
|
|
28737
28745
|
componentId: "sc-5ltegq-0"
|
|
28738
|
-
})(templateObject_1$
|
|
28746
|
+
})(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
28739
28747
|
var List$1 = styled$3.ol.withConfig({
|
|
28740
28748
|
displayName: "Pagination__List",
|
|
28741
28749
|
componentId: "sc-5ltegq-1"
|
|
28742
|
-
})(templateObject_2$
|
|
28750
|
+
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: grid;\n grid-auto-flow: column;\n gap: ", ";\n ", "\n margin: 0;\n padding: 0;\n"], ["\n display: grid;\n grid-auto-flow: column;\n gap: ", ";\n ", "\n margin: 0;\n padding: 0;\n"])), paginationTokens.paginationItem.spacing, paginationTokens.list.base);
|
|
28743
28751
|
var ListItem$1 = styled$3.li.withConfig({
|
|
28744
28752
|
displayName: "Pagination__ListItem",
|
|
28745
28753
|
componentId: "sc-5ltegq-2"
|
|
28746
28754
|
})(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n list-style: none;\n display: inline-grid;\n align-content: center;\n"], ["\n list-style: none;\n display: inline-grid;\n align-content: center;\n"])));
|
|
28747
|
-
var Container$
|
|
28755
|
+
var Container$a = styled$3.div.withConfig({
|
|
28748
28756
|
displayName: "Pagination__Container",
|
|
28749
28757
|
componentId: "sc-5ltegq-3"
|
|
28750
28758
|
})(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n display: inline-flex;\n gap: ", ";\n ", "\n"], ["\n display: inline-flex;\n gap: ", ";\n ", "\n"])), paginationTokens.container.spaceBetweenItems, function (_a) {
|
|
@@ -28814,7 +28822,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28814
28822
|
var listItems = items.length > 0 ? items.map(function (item, i) {
|
|
28815
28823
|
var isActive = item === activePage;
|
|
28816
28824
|
return jsxRuntime.exports.jsx(ListItem$1, {
|
|
28817
|
-
children: item !== 'truncator' ? jsxRuntime.exports.jsx(Button, {
|
|
28825
|
+
children: item !== 'truncator' ? jsxRuntime.exports.jsx(Button$1, {
|
|
28818
28826
|
label: item.toString(),
|
|
28819
28827
|
purpose: isActive ? 'primary' : 'secondary',
|
|
28820
28828
|
appearance: isActive ? 'filled' : 'ghost',
|
|
@@ -28829,7 +28837,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28829
28837
|
}, "pagination-item-".concat(i));
|
|
28830
28838
|
}) : undefined;
|
|
28831
28839
|
|
|
28832
|
-
var previousPageButton = jsxRuntime.exports.jsx(Button, {
|
|
28840
|
+
var previousPageButton = jsxRuntime.exports.jsx(Button$1, {
|
|
28833
28841
|
purpose: "secondary",
|
|
28834
28842
|
appearance: "ghost",
|
|
28835
28843
|
size: "small",
|
|
@@ -28840,7 +28848,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28840
28848
|
"aria-label": "G\xE5 til forrige siden"
|
|
28841
28849
|
});
|
|
28842
28850
|
|
|
28843
|
-
var nextPageButton = jsxRuntime.exports.jsx(Button, {
|
|
28851
|
+
var nextPageButton = jsxRuntime.exports.jsx(Button$1, {
|
|
28844
28852
|
purpose: "secondary",
|
|
28845
28853
|
appearance: "ghost",
|
|
28846
28854
|
size: "small",
|
|
@@ -28876,7 +28884,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28876
28884
|
children: jsxRuntime.exports.jsxs(List$1, {
|
|
28877
28885
|
children: [activePage > 1 && jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
28878
28886
|
children: [jsxRuntime.exports.jsx(ListItem$1, {
|
|
28879
|
-
children: jsxRuntime.exports.jsx(Button, {
|
|
28887
|
+
children: jsxRuntime.exports.jsx(Button$1, {
|
|
28880
28888
|
purpose: "secondary",
|
|
28881
28889
|
appearance: "ghost",
|
|
28882
28890
|
size: "small",
|
|
@@ -28890,7 +28898,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28890
28898
|
children: previousPageButton
|
|
28891
28899
|
})]
|
|
28892
28900
|
}), jsxRuntime.exports.jsx(ListItem$1, {
|
|
28893
|
-
children: jsxRuntime.exports.jsx(Button, {
|
|
28901
|
+
children: jsxRuntime.exports.jsx(Button$1, {
|
|
28894
28902
|
label: activePage.toString(),
|
|
28895
28903
|
size: "small",
|
|
28896
28904
|
onClick: function onClick(event) {
|
|
@@ -28901,7 +28909,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28901
28909
|
children: [jsxRuntime.exports.jsx(ListItem$1, {
|
|
28902
28910
|
children: nextPageButton
|
|
28903
28911
|
}), jsxRuntime.exports.jsx(ListItem$1, {
|
|
28904
|
-
children: jsxRuntime.exports.jsx(Button, {
|
|
28912
|
+
children: jsxRuntime.exports.jsx(Button$1, {
|
|
28905
28913
|
purpose: "secondary",
|
|
28906
28914
|
appearance: "ghost",
|
|
28907
28915
|
size: "small",
|
|
@@ -28918,7 +28926,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28918
28926
|
var activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
|
|
28919
28927
|
var activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
|
|
28920
28928
|
var navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation;
|
|
28921
|
-
return !withCounter && !withSelect ? navigationToBeRendered : jsxRuntime.exports.jsxs(Container$
|
|
28929
|
+
return !withCounter && !withSelect ? navigationToBeRendered : jsxRuntime.exports.jsxs(Container$a, __assign({}, containerProps, {
|
|
28922
28930
|
children: [jsxRuntime.exports.jsxs(IndicatorsContainer, {
|
|
28923
28931
|
children: [withSelect && jsxRuntime.exports.jsx(Select, {
|
|
28924
28932
|
options: selectOptions,
|
|
@@ -28940,20 +28948,20 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28940
28948
|
}), navigationToBeRendered]
|
|
28941
28949
|
}));
|
|
28942
28950
|
});
|
|
28943
|
-
var templateObject_1$
|
|
28951
|
+
var templateObject_1$x, templateObject_2$n, templateObject_3$e, templateObject_4$a, templateObject_5$4, templateObject_6$3, templateObject_7$2;
|
|
28944
28952
|
|
|
28945
|
-
var Border$
|
|
28946
|
-
Spacing$
|
|
28953
|
+
var Border$9 = ddsBaseTokens.border,
|
|
28954
|
+
Spacing$i = ddsBaseTokens.spacing;
|
|
28947
28955
|
var dividerColors = {
|
|
28948
|
-
primary: Border$
|
|
28949
|
-
primaryLighter: Border$
|
|
28956
|
+
primary: Border$9.BordersDdsBorderStyleDarkStroke,
|
|
28957
|
+
primaryLighter: Border$9.BordersDdsBorderStyleLightStroke
|
|
28950
28958
|
};
|
|
28951
28959
|
var base$a = {
|
|
28952
28960
|
border: 0,
|
|
28953
28961
|
backgroundColor: 'transparent',
|
|
28954
|
-
borderTop: "".concat(Border$
|
|
28955
|
-
marginTop: Spacing$
|
|
28956
|
-
marginBottom: Spacing$
|
|
28962
|
+
borderTop: "".concat(Border$9.BordersDdsBorderStyleLightStrokeWeight, " solid"),
|
|
28963
|
+
marginTop: Spacing$i.SizesDdsSpacingLocalX1,
|
|
28964
|
+
marginBottom: Spacing$i.SizesDdsSpacingLocalX1
|
|
28957
28965
|
};
|
|
28958
28966
|
var dividerTokens = {
|
|
28959
28967
|
base: base$a
|
|
@@ -28962,9 +28970,9 @@ var dividerTokens = {
|
|
|
28962
28970
|
var DividerLine = styled$3.hr.withConfig({
|
|
28963
28971
|
displayName: "Divider__DividerLine",
|
|
28964
28972
|
componentId: "sc-ggdopz-0"
|
|
28965
|
-
})(templateObject_2$
|
|
28973
|
+
})(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), dividerTokens.base, function (_a) {
|
|
28966
28974
|
var color = _a.color;
|
|
28967
|
-
return color && Ae(templateObject_1$
|
|
28975
|
+
return color && Ae(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n border-color: ", ";\n "], ["\n border-color: ", ";\n "])), dividerColors[color]);
|
|
28968
28976
|
});
|
|
28969
28977
|
var Divider = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28970
28978
|
var _b = _a.color,
|
|
@@ -28979,7 +28987,7 @@ var Divider = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28979
28987
|
ref: ref
|
|
28980
28988
|
}, lineProps));
|
|
28981
28989
|
});
|
|
28982
|
-
var templateObject_1$
|
|
28990
|
+
var templateObject_1$w, templateObject_2$m;
|
|
28983
28991
|
|
|
28984
28992
|
var img$3 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='6.7085' cy='6.7085' r='2.625' fill='%230B0D0E'/%3e%3c/svg%3e";
|
|
28985
28993
|
|
|
@@ -28987,16 +28995,16 @@ var img$2 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14
|
|
|
28987
28995
|
|
|
28988
28996
|
var img$1 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.70817 9.33333C8.80225 9.33333 10.4998 7.50516 10.4998 5.25H2.9165C2.9165 7.50516 4.61409 9.33333 6.70817 9.33333Z' fill='%230B0D0E'/%3e%3c/svg%3e";
|
|
28989
28997
|
|
|
28990
|
-
var Spacing$
|
|
28998
|
+
var Spacing$h = ddsBaseTokens.spacing;
|
|
28991
28999
|
var base$9 = {
|
|
28992
29000
|
lineHeight: '2.5em'
|
|
28993
29001
|
};
|
|
28994
29002
|
var listItemTokens = {
|
|
28995
29003
|
base: base$9,
|
|
28996
|
-
bulletSpacing: Spacing$
|
|
29004
|
+
bulletSpacing: Spacing$h.SizesDdsSpacingLocalX025
|
|
28997
29005
|
};
|
|
28998
29006
|
|
|
28999
|
-
var Spacing$
|
|
29007
|
+
var Spacing$g = ddsBaseTokens.spacing,
|
|
29000
29008
|
FontPackages$9 = ddsBaseTokens.fontPackages;
|
|
29001
29009
|
var textDefault$3 = ddsReferenceTokens.textDefault;
|
|
29002
29010
|
var inheritBase = {
|
|
@@ -29020,12 +29028,12 @@ var bodySerif03Base = __assign({}, FontPackages$9.body_serif_03.base);
|
|
|
29020
29028
|
var bodySerif04Base = __assign({}, FontPackages$9.body_serif_04.base);
|
|
29021
29029
|
|
|
29022
29030
|
var base$8 = {
|
|
29023
|
-
margin: "".concat(Spacing$
|
|
29031
|
+
margin: "".concat(Spacing$g.SizesDdsSpacingLocalX1, " 0"),
|
|
29024
29032
|
color: textDefault$3.textColor
|
|
29025
29033
|
};
|
|
29026
29034
|
var listTokens = {
|
|
29027
29035
|
base: base$8,
|
|
29028
|
-
spaceLeft: Spacing$
|
|
29036
|
+
spaceLeft: Spacing$g.SizesDdsSpacingLocalX2,
|
|
29029
29037
|
sizes: {
|
|
29030
29038
|
bodySans01: bodySans01Base,
|
|
29031
29039
|
bodySans02: bodySans02Base,
|
|
@@ -29046,10 +29054,10 @@ var StyledList = styled$3.ul.withConfig({
|
|
|
29046
29054
|
componentId: "sc-1f1c7eb-0"
|
|
29047
29055
|
})(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n ", "\n ul, ol {\n margin: 0;\n }\n *::selection {\n ", "\n }\n ", "\n ", "\n"], ["\n ", "\n ul, ol {\n margin: 0;\n }\n *::selection {\n ", "\n }\n ", "\n ", "\n"])), listTokens.base, typographyTokens.selection.base, function (_a) {
|
|
29048
29056
|
var typographyType = _a.typographyType;
|
|
29049
|
-
return typographyType && Ae(templateObject_1$
|
|
29057
|
+
return typographyType && Ae(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n ", "\n ul,\n ol {\n ", "\n }\n "], ["\n ", "\n ul,\n ol {\n ", "\n }\n "])), listTokens.sizes[typographyType], listTokens.sizes[typographyType]);
|
|
29050
29058
|
}, function (_a) {
|
|
29051
29059
|
var listType = _a.listType;
|
|
29052
|
-
return listType === 'unordered' ? Ae(templateObject_2$
|
|
29060
|
+
return listType === 'unordered' ? Ae(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li > ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n }\n "], ["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li > ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n }\n "])), "calc(".concat(ulPaddingLeft, ")"), "calc(".concat(liTextPadding, ")"), "calc((".concat(listItemTokens.base.lineHeight, " / 2) - 0.5em )"), img$3, img$2, img$1) : Ae(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n padding-left: ", ";\n & > li > ol {\n list-style-type: lower-alpha;\n }\n & > li > ol > li > ol {\n list-style-type: lower-roman;\n }\n "], ["\n padding-left: ", ";\n & > li > ol {\n list-style-type: lower-alpha;\n }\n & > li > ol > li > ol {\n list-style-type: lower-roman;\n }\n "])), listTokens.spaceLeft);
|
|
29053
29061
|
});
|
|
29054
29062
|
var List = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29055
29063
|
var _b = _a.listType,
|
|
@@ -29072,12 +29080,12 @@ var List = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29072
29080
|
children: children
|
|
29073
29081
|
}));
|
|
29074
29082
|
});
|
|
29075
|
-
var templateObject_1$
|
|
29083
|
+
var templateObject_1$v, templateObject_2$l, templateObject_3$d, templateObject_4$9;
|
|
29076
29084
|
|
|
29077
29085
|
var StyledListItem = styled$3.li.withConfig({
|
|
29078
29086
|
displayName: "ListItem__StyledListItem",
|
|
29079
29087
|
componentId: "sc-17s9l0b-0"
|
|
29080
|
-
})(templateObject_1$
|
|
29088
|
+
})(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), listItemTokens.base);
|
|
29081
29089
|
var ListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29082
29090
|
var children = _a.children,
|
|
29083
29091
|
rest = __rest(_a, ["children"]);
|
|
@@ -29088,11 +29096,11 @@ var ListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29088
29096
|
children: children
|
|
29089
29097
|
}));
|
|
29090
29098
|
});
|
|
29091
|
-
var templateObject_1$
|
|
29099
|
+
var templateObject_1$u;
|
|
29092
29100
|
|
|
29093
|
-
var Spacing$
|
|
29101
|
+
var Spacing$f = ddsBaseTokens.spacing,
|
|
29094
29102
|
FontPackages$8 = ddsBaseTokens.fontPackages,
|
|
29095
|
-
Colors$
|
|
29103
|
+
Colors$a = ddsBaseTokens.colors;
|
|
29096
29104
|
var textDefault$2 = ddsReferenceTokens.textDefault;
|
|
29097
29105
|
|
|
29098
29106
|
var boldBase = __assign(__assign(__assign({}, FontPackages$8.body_sans_03.base), typographyTokens.style.bold.base), {
|
|
@@ -29100,7 +29108,7 @@ var boldBase = __assign(__assign(__assign({}, FontPackages$8.body_sans_03.base),
|
|
|
29100
29108
|
});
|
|
29101
29109
|
|
|
29102
29110
|
var smallBase = __assign(__assign({}, FontPackages$8.body_sans_01.base), {
|
|
29103
|
-
color: Colors$
|
|
29111
|
+
color: Colors$a.DdsColorNeutralsGray7
|
|
29104
29112
|
});
|
|
29105
29113
|
|
|
29106
29114
|
var descriptionListTermTokens = {
|
|
@@ -29112,16 +29120,16 @@ var descriptionListTermTokens = {
|
|
|
29112
29120
|
base: boldBase
|
|
29113
29121
|
}
|
|
29114
29122
|
},
|
|
29115
|
-
unwrappedTopAndBottomSpace: Spacing$
|
|
29116
|
-
unwrappedBetweenSpace: Spacing$
|
|
29123
|
+
unwrappedTopAndBottomSpace: Spacing$f.SizesDdsSpacingLocalX1,
|
|
29124
|
+
unwrappedBetweenSpace: Spacing$f.SizesDdsSpacingLocalX2
|
|
29117
29125
|
};
|
|
29118
29126
|
|
|
29119
29127
|
var DList = styled$3.dl.withConfig({
|
|
29120
29128
|
displayName: "DescriptionList__DList",
|
|
29121
29129
|
componentId: "sc-1ob73hm-0"
|
|
29122
|
-
})(templateObject_2$
|
|
29130
|
+
})(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n margin: 0;\n *::selection {\n ", "\n }\n ", "\n & > dt:first-of-type {\n margin-top: ", ";\n }\n & > dd:last-child {\n margin-bottom: ", ";\n }\n dd + dt {\n margin-top: ", ";\n }\n"], ["\n margin: 0;\n *::selection {\n ", "\n }\n ", "\n & > dt:first-of-type {\n margin-top: ", ";\n }\n & > dd:last-child {\n margin-bottom: ", ";\n }\n dd + dt {\n margin-top: ", ";\n }\n"])), typographyTokens.selection.base, function (_a) {
|
|
29123
29131
|
var appearance = _a.appearance;
|
|
29124
|
-
return appearance && Ae(templateObject_1$
|
|
29132
|
+
return appearance && Ae(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n dt {\n ", "\n }\n "], ["\n dt {\n ", "\n }\n "])), descriptionListTermTokens.appearance[appearance].base);
|
|
29125
29133
|
}, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedBetweenSpace);
|
|
29126
29134
|
var DescriptionList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29127
29135
|
var _b = _a.appearance,
|
|
@@ -29138,12 +29146,12 @@ var DescriptionList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29138
29146
|
children: children
|
|
29139
29147
|
}));
|
|
29140
29148
|
});
|
|
29141
|
-
var templateObject_1$
|
|
29149
|
+
var templateObject_1$t, templateObject_2$k;
|
|
29142
29150
|
|
|
29143
29151
|
var DListTerm = styled$3.dt.withConfig({
|
|
29144
29152
|
displayName: "DescriptionListTerm__DListTerm",
|
|
29145
29153
|
componentId: "sc-10w0rzr-0"
|
|
29146
|
-
})(templateObject_1$
|
|
29154
|
+
})(templateObject_1$s || (templateObject_1$s = __makeTemplateObject([""], [""])));
|
|
29147
29155
|
var DescriptionListTerm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29148
29156
|
var children = _a.children,
|
|
29149
29157
|
rest = __rest(_a, ["children"]);
|
|
@@ -29156,9 +29164,9 @@ var DescriptionListTerm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29156
29164
|
children: children
|
|
29157
29165
|
}));
|
|
29158
29166
|
});
|
|
29159
|
-
var templateObject_1$
|
|
29167
|
+
var templateObject_1$s;
|
|
29160
29168
|
|
|
29161
|
-
var Spacing$
|
|
29169
|
+
var Spacing$e = ddsBaseTokens.spacing,
|
|
29162
29170
|
FontPackages$7 = ddsBaseTokens.fontPackages;
|
|
29163
29171
|
var textDefault$1 = ddsReferenceTokens.textDefault;
|
|
29164
29172
|
|
|
@@ -29167,7 +29175,7 @@ var base$7 = __assign(__assign({}, FontPackages$7.body_sans_03.base), {
|
|
|
29167
29175
|
});
|
|
29168
29176
|
|
|
29169
29177
|
var iconBase = {
|
|
29170
|
-
marginRight: Spacing$
|
|
29178
|
+
marginRight: Spacing$e.SizesDdsSpacingLocalX025
|
|
29171
29179
|
};
|
|
29172
29180
|
var descriptionListDescTokens = {
|
|
29173
29181
|
base: base$7,
|
|
@@ -29179,11 +29187,11 @@ var descriptionListDescTokens = {
|
|
|
29179
29187
|
var DListDesc = styled$3.dd.withConfig({
|
|
29180
29188
|
displayName: "DescriptionListDesc__DListDesc",
|
|
29181
29189
|
componentId: "sc-1djcf0s-0"
|
|
29182
|
-
})(templateObject_1$
|
|
29190
|
+
})(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n margin-inline-start: 0;\n"], ["\n ", "\n display: flex;\n align-items: center;\n margin-inline-start: 0;\n"])), descriptionListDescTokens.base);
|
|
29183
29191
|
var StyledIconWrapper$1 = styled$3(IconWrapper$1).withConfig({
|
|
29184
29192
|
displayName: "DescriptionListDesc__StyledIconWrapper",
|
|
29185
29193
|
componentId: "sc-1djcf0s-1"
|
|
29186
|
-
})(templateObject_2$
|
|
29194
|
+
})(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), descriptionListDescTokens.icon.base);
|
|
29187
29195
|
var DescriptionListDesc = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29188
29196
|
var children = _a.children,
|
|
29189
29197
|
Icon = _a.Icon,
|
|
@@ -29200,11 +29208,11 @@ var DescriptionListDesc = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29200
29208
|
}), " ", children]
|
|
29201
29209
|
}));
|
|
29202
29210
|
});
|
|
29203
|
-
var templateObject_1$
|
|
29211
|
+
var templateObject_1$r, templateObject_2$j;
|
|
29204
29212
|
|
|
29205
|
-
var Spacing$
|
|
29213
|
+
var Spacing$d = ddsBaseTokens.spacing;
|
|
29206
29214
|
var base$6 = {
|
|
29207
|
-
margin: Spacing$
|
|
29215
|
+
margin: Spacing$d.SizesDdsSpacingLocalX2
|
|
29208
29216
|
};
|
|
29209
29217
|
var descriptionListGroupTokens = {
|
|
29210
29218
|
base: base$6
|
|
@@ -29213,9 +29221,9 @@ var descriptionListGroupTokens = {
|
|
|
29213
29221
|
var DListGroup = styled$3.div.withConfig({
|
|
29214
29222
|
displayName: "DescriptionListGroup__DListGroup",
|
|
29215
29223
|
componentId: "sc-jkdc0o-0"
|
|
29216
|
-
})(templateObject_2$
|
|
29224
|
+
})(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), descriptionListGroupTokens.base, function (_a) {
|
|
29217
29225
|
var margin = _a.margin;
|
|
29218
|
-
return margin && Ae(templateObject_1$
|
|
29226
|
+
return margin && Ae(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n margin: ", ";\n "], ["\n margin: ", ";\n "])), margin);
|
|
29219
29227
|
});
|
|
29220
29228
|
var DescriptionListGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29221
29229
|
var children = _a.children,
|
|
@@ -29230,15 +29238,15 @@ var DescriptionListGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29230
29238
|
children: children
|
|
29231
29239
|
}));
|
|
29232
29240
|
});
|
|
29233
|
-
var templateObject_1$
|
|
29241
|
+
var templateObject_1$q, templateObject_2$i;
|
|
29234
29242
|
|
|
29235
|
-
var Colors$
|
|
29236
|
-
Border$
|
|
29243
|
+
var Colors$9 = ddsBaseTokens.colors,
|
|
29244
|
+
Border$8 = ddsBaseTokens.border,
|
|
29237
29245
|
FontPackages$6 = ddsBaseTokens.fontPackages;
|
|
29238
29246
|
var textDefault = ddsReferenceTokens.textDefault;
|
|
29239
29247
|
|
|
29240
29248
|
var base$5 = __assign({
|
|
29241
|
-
border: "".concat(Border$
|
|
29249
|
+
border: "".concat(Border$8.BordersDdsBorderStyleLightStrokeWeight, " solid")
|
|
29242
29250
|
}, FontPackages$6.body_sans_02.base);
|
|
29243
29251
|
|
|
29244
29252
|
var navigationHoverBase = __assign({}, hoverWithBorder);
|
|
@@ -29246,23 +29254,23 @@ var navigationHoverBase = __assign({}, hoverWithBorder);
|
|
|
29246
29254
|
var navigationFocusBase = __assign({}, focusVisibleWithBorder);
|
|
29247
29255
|
|
|
29248
29256
|
var filledDarkBase = {
|
|
29249
|
-
backgroundColor: Colors$
|
|
29250
|
-
borderColor: Colors$
|
|
29251
|
-
color: Colors$
|
|
29257
|
+
backgroundColor: Colors$9.DdsColorPrimaryBase,
|
|
29258
|
+
borderColor: Colors$9.DdsColorPrimaryBase,
|
|
29259
|
+
color: Colors$9.DdsColorNeutralsWhite
|
|
29252
29260
|
};
|
|
29253
29261
|
var filledLightBase = {
|
|
29254
|
-
backgroundColor: Colors$
|
|
29255
|
-
borderColor: Colors$
|
|
29262
|
+
backgroundColor: Colors$9.DdsColorPrimaryLightest,
|
|
29263
|
+
borderColor: Colors$9.DdsColorPrimaryLightest,
|
|
29256
29264
|
color: textDefault.textColor
|
|
29257
29265
|
};
|
|
29258
29266
|
var strokeLightBase = {
|
|
29259
|
-
backgroundColor: Colors$
|
|
29260
|
-
borderColor: Border$
|
|
29267
|
+
backgroundColor: Colors$9.DdsColorNeutralsWhite,
|
|
29268
|
+
borderColor: Border$8.BordersDdsBorderStyleLightStroke,
|
|
29261
29269
|
color: textDefault.textColor
|
|
29262
29270
|
};
|
|
29263
29271
|
var strokeDarkBase = {
|
|
29264
|
-
backgroundColor: Colors$
|
|
29265
|
-
borderColor: Border$
|
|
29272
|
+
backgroundColor: Colors$9.DdsColorNeutralsWhite,
|
|
29273
|
+
borderColor: Border$8.BordersDdsBorderStyleDarkStroke,
|
|
29266
29274
|
color: textDefault.textColor
|
|
29267
29275
|
};
|
|
29268
29276
|
var cardTokens = {
|
|
@@ -29291,15 +29299,15 @@ var cardTokens = {
|
|
|
29291
29299
|
}
|
|
29292
29300
|
};
|
|
29293
29301
|
|
|
29294
|
-
var Container$
|
|
29302
|
+
var Container$9 = styled$3.div.withConfig({
|
|
29295
29303
|
displayName: "Card__Container",
|
|
29296
29304
|
componentId: "sc-410ao9-0"
|
|
29297
29305
|
})(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n ", "\n &::selection, *::selection {\n ", "\n }\n transition: box-shadow 0.2s, border-color 0.2s;\n ", "\n ", "\n"], ["\n ", "\n &::selection, *::selection {\n ", "\n }\n transition: box-shadow 0.2s, border-color 0.2s;\n ", "\n ", "\n"])), cardTokens.base, typographyTokens.selection.base, function (_a) {
|
|
29298
29306
|
var color = _a.color;
|
|
29299
|
-
return color && Ae(templateObject_1$
|
|
29307
|
+
return color && Ae(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), cardTokens.colors[color].base);
|
|
29300
29308
|
}, function (_a) {
|
|
29301
29309
|
var cardType = _a.cardType;
|
|
29302
|
-
return cardType === 'navigation' ? Ae(templateObject_2$
|
|
29310
|
+
return cardType === 'navigation' ? Ae(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n text-decoration: none;\n &:hover {\n ", "\n }\n &:focus {\n outline: none;\n ", "\n }\n "], ["\n text-decoration: none;\n &:hover {\n ", "\n }\n &:focus {\n outline: none;\n ", "\n }\n "])), cardTokens.navigation.hover.base, cardTokens.navigation.focus.base) : cardType === 'expandable' ? Ae(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n &:not(:first-of-type) {\n border-top: none;\n }\n "], ["\n &:not(:first-of-type) {\n border-top: none;\n }\n "]))) : '';
|
|
29303
29311
|
});
|
|
29304
29312
|
var Card = function Card(props) {
|
|
29305
29313
|
var _a;
|
|
@@ -29307,7 +29315,7 @@ var Card = function Card(props) {
|
|
|
29307
29315
|
var color = (_a = props.color) !== null && _a !== void 0 ? _a : 'filledLight';
|
|
29308
29316
|
|
|
29309
29317
|
if (props.cardType === 'navigation') {
|
|
29310
|
-
return jsxRuntime.exports.jsx(Container$
|
|
29318
|
+
return jsxRuntime.exports.jsx(Container$9, __assign({}, props, {
|
|
29311
29319
|
cardType: props.cardType,
|
|
29312
29320
|
color: color,
|
|
29313
29321
|
as: "a",
|
|
@@ -29317,7 +29325,7 @@ var Card = function Card(props) {
|
|
|
29317
29325
|
}));
|
|
29318
29326
|
}
|
|
29319
29327
|
|
|
29320
|
-
return jsxRuntime.exports.jsx(Container$
|
|
29328
|
+
return jsxRuntime.exports.jsx(Container$9, __assign({}, props, {
|
|
29321
29329
|
cardType: props.cardType,
|
|
29322
29330
|
color: color,
|
|
29323
29331
|
as: "div",
|
|
@@ -29326,13 +29334,13 @@ var Card = function Card(props) {
|
|
|
29326
29334
|
children: props.children
|
|
29327
29335
|
}));
|
|
29328
29336
|
};
|
|
29329
|
-
var templateObject_1$
|
|
29337
|
+
var templateObject_1$p, templateObject_2$h, templateObject_3$c, templateObject_4$8;
|
|
29330
29338
|
|
|
29331
29339
|
var Wrapper$3 = styled$3.div.withConfig({
|
|
29332
29340
|
displayName: "CardAccordion__Wrapper",
|
|
29333
29341
|
componentId: "sc-1ctxrby-0"
|
|
29334
|
-
})(templateObject_1$
|
|
29335
|
-
var nextUniqueId$
|
|
29342
|
+
})(templateObject_1$o || (templateObject_1$o = __makeTemplateObject([""], [""])));
|
|
29343
|
+
var nextUniqueId$a = 0;
|
|
29336
29344
|
var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29337
29345
|
var _b = _a.isExpanded,
|
|
29338
29346
|
isExpanded = _b === void 0 ? false : _b,
|
|
@@ -29344,7 +29352,7 @@ var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29344
29352
|
expanded = _c[0],
|
|
29345
29353
|
setExpanded = _c[1];
|
|
29346
29354
|
|
|
29347
|
-
var uniqueId = nextUniqueId$
|
|
29355
|
+
var uniqueId = nextUniqueId$a++;
|
|
29348
29356
|
var accordionId = useState(id !== null && id !== void 0 ? id : "cardAccordion-".concat(uniqueId))[0];
|
|
29349
29357
|
useEffect(function () {
|
|
29350
29358
|
setExpanded(isExpanded);
|
|
@@ -29377,27 +29385,27 @@ var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29377
29385
|
children: Children$1
|
|
29378
29386
|
}));
|
|
29379
29387
|
});
|
|
29380
|
-
var templateObject_1$
|
|
29388
|
+
var templateObject_1$o;
|
|
29381
29389
|
|
|
29382
|
-
var Spacing$
|
|
29390
|
+
var Spacing$c = ddsBaseTokens.spacing,
|
|
29383
29391
|
FontPackages$5 = ddsBaseTokens.fontPackages,
|
|
29384
|
-
Border$
|
|
29392
|
+
Border$7 = ddsBaseTokens.border,
|
|
29385
29393
|
IconSizes$1 = ddsBaseTokens.iconSizes;
|
|
29386
29394
|
|
|
29387
29395
|
var base$4 = __assign({
|
|
29388
|
-
padding: "".concat(Spacing$
|
|
29396
|
+
padding: "".concat(Spacing$c.SizesDdsSpacingLocalX1, " ").concat(Spacing$c.SizesDdsSpacingLocalX075, " ").concat(Spacing$c.SizesDdsSpacingLocalX1, " ").concat(Spacing$c.SizesDdsSpacingLocalX15)
|
|
29389
29397
|
}, FontPackages$5.heading_sans_03.base);
|
|
29390
29398
|
|
|
29391
29399
|
var focusBase$2 = {
|
|
29392
|
-
boxShadow: "0 0 0 ".concat(Border$
|
|
29400
|
+
boxShadow: "0 0 0 ".concat(Border$7.BordersDdsBorderFocusCardStrokeWeight, " ").concat(Border$7.BordersDdsBorderFocusCardStroke)
|
|
29393
29401
|
};
|
|
29394
29402
|
var hoverBase$1 = {
|
|
29395
|
-
boxShadow: "0 0 0 ".concat(Border$
|
|
29403
|
+
boxShadow: "0 0 0 ".concat(Border$7.BordersDdsBorderFocusInputfieldStrokeWeight, " ").concat(Border$7.BordersDdsBorderFocusInputfieldStroke)
|
|
29396
29404
|
};
|
|
29397
29405
|
var chevronWrapperBase = {
|
|
29398
29406
|
width: IconSizes$1.DdsIconsizeMedium,
|
|
29399
29407
|
height: IconSizes$1.DdsIconsizeMedium,
|
|
29400
|
-
marginLeft: Spacing$
|
|
29408
|
+
marginLeft: Spacing$c.SizesDdsSpacingLocalX05
|
|
29401
29409
|
};
|
|
29402
29410
|
var cardAccordionHeaderTokens = {
|
|
29403
29411
|
base: base$4,
|
|
@@ -29412,18 +29420,18 @@ var cardAccordionHeaderTokens = {
|
|
|
29412
29420
|
},
|
|
29413
29421
|
chevron: {
|
|
29414
29422
|
width: IconSizes$1.DdsIconsizeMedium,
|
|
29415
|
-
height: Spacing$
|
|
29423
|
+
height: Spacing$c.SizesDdsSpacingLocalX05
|
|
29416
29424
|
}
|
|
29417
29425
|
};
|
|
29418
29426
|
|
|
29419
29427
|
var SvgChevron = styled$3.svg.withConfig({
|
|
29420
29428
|
displayName: "AnimatedChevronUpDownstyles__SvgChevron",
|
|
29421
29429
|
componentId: "sc-yey4nu-0"
|
|
29422
|
-
})(templateObject_1$
|
|
29430
|
+
})(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n display: inline-block;\n flex-shrink: 0;\n position: relative;\n text-align: center;\n vertical-align: middle;\n"], ["\n display: inline-block;\n flex-shrink: 0;\n position: relative;\n text-align: center;\n vertical-align: middle;\n"])));
|
|
29423
29431
|
var SvgChevronlGroup = styled$3.g.withConfig({
|
|
29424
29432
|
displayName: "AnimatedChevronUpDownstyles__SvgChevronlGroup",
|
|
29425
29433
|
componentId: "sc-yey4nu-1"
|
|
29426
|
-
})(templateObject_2$
|
|
29434
|
+
})(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n transition: transform 0.2s linear;\n transform: ", ";\n"], ["\n transition: transform 0.2s linear;\n transform: ", ";\n"])), function (_a) {
|
|
29427
29435
|
var isUp = _a.isUp;
|
|
29428
29436
|
return isUp ? 'translateY(3px)' : 'translateY(0)';
|
|
29429
29437
|
});
|
|
@@ -29441,7 +29449,7 @@ var SvgChevronlRight = styled$3.path.withConfig({
|
|
|
29441
29449
|
var isUp = _a.isUp;
|
|
29442
29450
|
return isUp ? 'rotate(90deg) translateY(0)' : 'rotate(0) translateY(0)';
|
|
29443
29451
|
});
|
|
29444
|
-
var templateObject_1$
|
|
29452
|
+
var templateObject_1$n, templateObject_2$g, templateObject_3$b, templateObject_4$7;
|
|
29445
29453
|
|
|
29446
29454
|
var svgChevronLeftPath = 'M 1 0 L 5 4 C 5 4 5 4 5 4 L 4 5 C 4 5 4 5 4 5 C 4 5 4 5 4 5 L 0 1 C 0 1 0 1 0 1 L 1 0 C 1 0 1 0 1 0 C 1 0 1 0 1 0 L 1 0 Z';
|
|
29447
29455
|
var svgChevronRightPath = 'M 3 4 L 7 0 L 8 1 C 8 1 8 1 8 1 L 4 5 L 3 4 C 3 4 3 4 3 4 L 3 4 Z';
|
|
@@ -29475,11 +29483,11 @@ var AnimatedChevronUpDown = function AnimatedChevronUpDown(_a) {
|
|
|
29475
29483
|
var ContentWrapper = styled$3.div.withConfig({
|
|
29476
29484
|
displayName: "CardAccordionHeader__ContentWrapper",
|
|
29477
29485
|
componentId: "sc-1qs6bkj-0"
|
|
29478
|
-
})(templateObject_1$
|
|
29486
|
+
})(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n text-align: left;\n"], ["\n text-align: left;\n"])));
|
|
29479
29487
|
var HeaderContainer$2 = styled$3.div.withConfig({
|
|
29480
29488
|
displayName: "CardAccordionHeader__HeaderContainer",
|
|
29481
29489
|
componentId: "sc-1qs6bkj-1"
|
|
29482
|
-
})(templateObject_2$
|
|
29490
|
+
})(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n transition: box-shadow 0.2s;\n ", "\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n transition: box-shadow 0.2s;\n ", "\n"])), cardAccordionHeaderTokens.base);
|
|
29483
29491
|
var HeaderWrapper = styled$3.button.withConfig({
|
|
29484
29492
|
displayName: "CardAccordionHeader__HeaderWrapper",
|
|
29485
29493
|
componentId: "sc-1qs6bkj-2"
|
|
@@ -29524,26 +29532,26 @@ var CardAccordionHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29524
29532
|
})
|
|
29525
29533
|
}));
|
|
29526
29534
|
});
|
|
29527
|
-
var templateObject_1$
|
|
29535
|
+
var templateObject_1$m, templateObject_2$f, templateObject_3$a, templateObject_4$6;
|
|
29528
29536
|
|
|
29529
|
-
var Spacing$
|
|
29537
|
+
var Spacing$b = ddsBaseTokens.spacing,
|
|
29530
29538
|
FontPackages$4 = ddsBaseTokens.fontPackages;
|
|
29531
29539
|
|
|
29532
29540
|
var base$3 = __assign({
|
|
29533
|
-
padding: "".concat(Spacing$
|
|
29541
|
+
padding: "".concat(Spacing$b.SizesDdsSpacingLocalX1, " ").concat(Spacing$b.SizesDdsSpacingLocalX2NumberPx + Spacing$b.SizesDdsSpacingLocalX075NumberPx, "px ").concat(Spacing$b.SizesDdsSpacingLocalX2, " ").concat(Spacing$b.SizesDdsSpacingLocalX15)
|
|
29534
29542
|
}, FontPackages$4.body_sans_03.base);
|
|
29535
29543
|
|
|
29536
29544
|
var cardAccordionBodyTokens = {
|
|
29537
29545
|
base: base$3
|
|
29538
29546
|
};
|
|
29539
29547
|
|
|
29540
|
-
var expandingAnimation = Ae(templateObject_1$
|
|
29548
|
+
var expandingAnimation = Ae(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n transition: padding 0.2s, visibility 0.3s,\n max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"], ["\n transition: padding 0.2s, visibility 0.3s,\n max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"])));
|
|
29541
29549
|
var Body = styled$3.div.withConfig({
|
|
29542
29550
|
displayName: "CardAccordionBody__Body",
|
|
29543
29551
|
componentId: "sc-igsnpx-0"
|
|
29544
29552
|
})(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), expandingAnimation, cardAccordionBodyTokens.base, function (_a) {
|
|
29545
29553
|
var paddingTop = _a.paddingTop;
|
|
29546
|
-
return paddingTop && Ae(templateObject_2$
|
|
29554
|
+
return paddingTop && Ae(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n padding-top: ", ";\n "], ["\n padding-top: ", ";\n "])), paddingTop);
|
|
29547
29555
|
}, function (_a) {
|
|
29548
29556
|
var isExpanded = _a.isExpanded;
|
|
29549
29557
|
return !isExpanded && Ae(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n padding-top: 0;\n padding-bottom: 0;\n "], ["\n padding-top: 0;\n padding-bottom: 0;\n "])));
|
|
@@ -29598,7 +29606,7 @@ var CardAccordionBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29598
29606
|
}))
|
|
29599
29607
|
}));
|
|
29600
29608
|
});
|
|
29601
|
-
var templateObject_1$
|
|
29609
|
+
var templateObject_1$l, templateObject_2$e, templateObject_3$9, templateObject_4$5, templateObject_5$3;
|
|
29602
29610
|
|
|
29603
29611
|
var MoreVertOutlined = {};
|
|
29604
29612
|
|
|
@@ -29638,46 +29646,46 @@ var _default$1 = (0, _createSvgIcon$1.default)( /*#__PURE__*/(0, _jsxRuntime$1.j
|
|
|
29638
29646
|
|
|
29639
29647
|
default_1$1 = MenuOutlined.default = _default$1;
|
|
29640
29648
|
|
|
29641
|
-
var Border$
|
|
29642
|
-
Colors$
|
|
29643
|
-
Spacing$
|
|
29649
|
+
var Border$6 = ddsBaseTokens.border,
|
|
29650
|
+
Colors$8 = ddsBaseTokens.colors,
|
|
29651
|
+
Spacing$a = ddsBaseTokens.spacing,
|
|
29644
29652
|
FontPackages$3 = ddsBaseTokens.fontPackages;
|
|
29645
|
-
var borderColor = Border$
|
|
29653
|
+
var borderColor = Border$6.BordersDdsBorderStyleLightStroke;
|
|
29646
29654
|
|
|
29647
29655
|
var linkBase$2 = __assign({
|
|
29648
|
-
color: Colors$
|
|
29656
|
+
color: Colors$8.DdsColorNeutralsGray9,
|
|
29649
29657
|
textDecoration: 'none',
|
|
29650
|
-
backgroundColor: Colors$
|
|
29658
|
+
backgroundColor: Colors$8.DdsColorNeutralsWhite
|
|
29651
29659
|
}, FontPackages$3.body_sans_01.base);
|
|
29652
29660
|
|
|
29653
29661
|
var linkHoverBase$2 = {
|
|
29654
|
-
color: Colors$
|
|
29655
|
-
backgroundColor: Colors$
|
|
29662
|
+
color: Colors$8.DdsColorInteractiveDark,
|
|
29663
|
+
backgroundColor: Colors$8.DdsColorPrimaryLightest
|
|
29656
29664
|
};
|
|
29657
29665
|
var linkActiveBase$1 = {
|
|
29658
|
-
color: Colors$
|
|
29666
|
+
color: Colors$8.DdsColorInteractiveBase
|
|
29659
29667
|
};
|
|
29660
29668
|
var wrapperBase$4 = {
|
|
29661
|
-
backgroundColor: Colors$
|
|
29669
|
+
backgroundColor: Colors$8.DdsColorNeutralsWhite
|
|
29662
29670
|
};
|
|
29663
29671
|
var applicationNameWrapperBase = {
|
|
29664
|
-
padding: "".concat(Spacing$
|
|
29672
|
+
padding: "".concat(Spacing$a.SizesDdsSpacingLocalX1, " ").concat(Spacing$a.SizesDdsSpacingLocalX15)
|
|
29665
29673
|
};
|
|
29666
29674
|
var lovisaWrapperBase = {
|
|
29667
|
-
padding: "".concat(Spacing$
|
|
29668
|
-
borderRight: "".concat(Border$
|
|
29675
|
+
padding: "".concat(Spacing$a.SizesDdsSpacingLocalX1, " ").concat(Spacing$a.SizesDdsSpacingLocalX15),
|
|
29676
|
+
borderRight: "".concat(Border$6.BordersDdsBorderStyleLightStrokeWeight, " ").concat(borderColor, " solid ")
|
|
29669
29677
|
};
|
|
29670
29678
|
var bannerBase = {
|
|
29671
|
-
borderBottom: "".concat(Border$
|
|
29672
|
-
paddingRight: Spacing$
|
|
29679
|
+
borderBottom: "".concat(Border$6.BordersDdsBorderStyleLightStrokeWeight, " ").concat(borderColor, " solid "),
|
|
29680
|
+
paddingRight: Spacing$a.SizesDdsSpacingLocalX1
|
|
29673
29681
|
};
|
|
29674
29682
|
var bannerLeftBase = {};
|
|
29675
29683
|
var navigationBase = {
|
|
29676
|
-
borderBottom: "".concat(Border$
|
|
29684
|
+
borderBottom: "".concat(Border$6.BordersDdsBorderStyleLightStrokeWeight, " ").concat(borderColor, " solid ")
|
|
29677
29685
|
};
|
|
29678
29686
|
|
|
29679
29687
|
var navigationLinkBase = __assign({
|
|
29680
|
-
padding: "".concat(Spacing$
|
|
29688
|
+
padding: "".concat(Spacing$a.SizesDdsSpacingLocalX075, " ").concat(Spacing$a.SizesDdsSpacingLocalX15)
|
|
29681
29689
|
}, linkBase$2);
|
|
29682
29690
|
|
|
29683
29691
|
var navigationLinkHoverBase = __assign({}, linkHoverBase$2);
|
|
@@ -29687,12 +29695,12 @@ var navigationLinkActiveBase = __assign({}, linkActiveBase$1);
|
|
|
29687
29695
|
var navigationLinkFocusBase = __assign({}, focusVisibleLink);
|
|
29688
29696
|
|
|
29689
29697
|
var navigationLinkCurrentBase = {
|
|
29690
|
-
color: Colors$
|
|
29691
|
-
backgroundColor: Colors$
|
|
29698
|
+
color: Colors$8.DdsColorInteractiveDarker,
|
|
29699
|
+
backgroundColor: Colors$8.DdsColorPrimaryLightest
|
|
29692
29700
|
};
|
|
29693
29701
|
var contextGroupBase = {
|
|
29694
|
-
right: Spacing$
|
|
29695
|
-
top: Spacing$
|
|
29702
|
+
right: Spacing$a.SizesDdsSpacingLocalX075,
|
|
29703
|
+
top: Spacing$a.SizesDdsSpacingLocalX025
|
|
29696
29704
|
};
|
|
29697
29705
|
var internalHeaderTokens = {
|
|
29698
29706
|
wrapper: {
|
|
@@ -29706,7 +29714,7 @@ var internalHeaderTokens = {
|
|
|
29706
29714
|
},
|
|
29707
29715
|
banner: {
|
|
29708
29716
|
base: bannerBase,
|
|
29709
|
-
contextMenuSpacing: Spacing$
|
|
29717
|
+
contextMenuSpacing: Spacing$a.SizesDdsSpacingLayoutX4
|
|
29710
29718
|
},
|
|
29711
29719
|
bannerLeft: {
|
|
29712
29720
|
base: bannerLeftBase
|
|
@@ -31330,20 +31338,26 @@ function placementToArrowPlacement(placement) {
|
|
|
31330
31338
|
}
|
|
31331
31339
|
}
|
|
31332
31340
|
|
|
31333
|
-
function useRoveFocus(size, reset) {
|
|
31341
|
+
function useRoveFocus(size, reset, direction) {
|
|
31342
|
+
if (direction === void 0) {
|
|
31343
|
+
direction = 'column';
|
|
31344
|
+
}
|
|
31345
|
+
|
|
31334
31346
|
var _a = useState(0),
|
|
31335
31347
|
currentFocus = _a[0],
|
|
31336
31348
|
setCurrentFocus = _a[1];
|
|
31337
31349
|
|
|
31350
|
+
var nextKey = direction === 'row' ? 39 : 40;
|
|
31351
|
+
var previousKey = direction === 'row' ? 37 : 38;
|
|
31338
31352
|
var handleKeyDown = useCallback(function (e) {
|
|
31339
31353
|
if (!size) return;
|
|
31340
31354
|
if (reset) setCurrentFocus(-1);
|
|
31341
31355
|
|
|
31342
|
-
if (e.keyCode ===
|
|
31356
|
+
if (e.keyCode === nextKey) {
|
|
31343
31357
|
// Down arrow
|
|
31344
31358
|
e.preventDefault();
|
|
31345
31359
|
setCurrentFocus(currentFocus === size - 1 ? 0 : currentFocus + 1);
|
|
31346
|
-
} else if (e.keyCode ===
|
|
31360
|
+
} else if (e.keyCode === previousKey) {
|
|
31347
31361
|
// Up arrow
|
|
31348
31362
|
e.preventDefault();
|
|
31349
31363
|
|
|
@@ -31422,38 +31436,38 @@ function useId(prefix, suffix) {
|
|
|
31422
31436
|
return "".concat(prefix, "-").concat(id).concat(suffix ? '-' + suffix : '');
|
|
31423
31437
|
}
|
|
31424
31438
|
|
|
31425
|
-
var Border$
|
|
31439
|
+
var Border$5 = ddsBaseTokens.border,
|
|
31426
31440
|
BorderRadius$4 = ddsBaseTokens.borderRadius,
|
|
31427
|
-
Colors$
|
|
31428
|
-
Spacing$
|
|
31441
|
+
Colors$7 = ddsBaseTokens.colors,
|
|
31442
|
+
Spacing$9 = ddsBaseTokens.spacing,
|
|
31429
31443
|
FontPackages$2 = ddsBaseTokens.fontPackages;
|
|
31430
31444
|
|
|
31431
31445
|
var linkBase$1 = __assign({
|
|
31432
|
-
color: Colors$
|
|
31446
|
+
color: Colors$7.DdsColorNeutralsGray9,
|
|
31433
31447
|
textDecoration: 'none',
|
|
31434
|
-
backgroundColor: Colors$
|
|
31435
|
-
padding: "".concat(Spacing$
|
|
31436
|
-
gap: Spacing$
|
|
31448
|
+
backgroundColor: Colors$7.DdsColorNeutralsWhite,
|
|
31449
|
+
padding: "".concat(Spacing$9.SizesDdsSpacingLocalX075, " ").concat(Spacing$9.SizesDdsSpacingLocalX15),
|
|
31450
|
+
gap: Spacing$9.SizesDdsSpacingLocalX025
|
|
31437
31451
|
}, FontPackages$2.body_sans_01.base);
|
|
31438
31452
|
|
|
31439
31453
|
var linkHoverBase$1 = {
|
|
31440
|
-
color: Colors$
|
|
31441
|
-
backgroundColor: Colors$
|
|
31454
|
+
color: Colors$7.DdsColorInteractiveDark,
|
|
31455
|
+
backgroundColor: Colors$7.DdsColorPrimaryLightest
|
|
31442
31456
|
};
|
|
31443
31457
|
var linkActiveBase = {
|
|
31444
|
-
color: Colors$
|
|
31458
|
+
color: Colors$7.DdsColorInteractiveBase
|
|
31445
31459
|
};
|
|
31446
31460
|
var wrapperBase$3 = {
|
|
31447
|
-
border: "".concat(Border$
|
|
31448
|
-
backgroundColor: Colors$
|
|
31461
|
+
border: "".concat(Border$5.BordersDdsBorderStyleLightStrokeWeight, " ").concat(Border$5.BordersDdsBorderStyleLightStroke, " solid "),
|
|
31462
|
+
backgroundColor: Colors$7.DdsColorNeutralsWhite,
|
|
31449
31463
|
borderRadius: BorderRadius$4.RadiiDdsBorderRadius1Radius
|
|
31450
31464
|
};
|
|
31451
31465
|
|
|
31452
31466
|
var linkFocusBase$1 = __assign({}, focusVisibleLink);
|
|
31453
31467
|
|
|
31454
31468
|
var dividerBase = {
|
|
31455
|
-
marginRight: Spacing$
|
|
31456
|
-
marginLeft: Spacing$
|
|
31469
|
+
marginRight: Spacing$9.SizesDdsSpacingLocalX15,
|
|
31470
|
+
marginLeft: Spacing$9.SizesDdsSpacingLocalX15
|
|
31457
31471
|
};
|
|
31458
31472
|
var overflowMenuTokens = {
|
|
31459
31473
|
container: {
|
|
@@ -31474,17 +31488,17 @@ var overflowMenuTokens = {
|
|
|
31474
31488
|
divider: {
|
|
31475
31489
|
base: dividerBase
|
|
31476
31490
|
},
|
|
31477
|
-
offset: Spacing$
|
|
31491
|
+
offset: Spacing$9.SizesDdsSpacingLocalX0125NumberPx
|
|
31478
31492
|
};
|
|
31479
31493
|
|
|
31480
31494
|
var Span = styled$3.span.withConfig({
|
|
31481
31495
|
displayName: "OverflowMenuItem__Span",
|
|
31482
31496
|
componentId: "sc-1ka2asi-0"
|
|
31483
|
-
})(templateObject_1$
|
|
31497
|
+
})(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n box-sizing: border-box;\n"], ["\n ", "\n display: flex;\n align-items: center;\n box-sizing: border-box;\n"])), overflowMenuTokens.link.base);
|
|
31484
31498
|
var Link$2 = styled$3.a.withConfig({
|
|
31485
31499
|
displayName: "OverflowMenuItem__Link",
|
|
31486
31500
|
componentId: "sc-1ka2asi-1"
|
|
31487
|
-
})(templateObject_2$
|
|
31501
|
+
})(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n box-sizing: border-box;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible,\n &.focus-visible {\n ", "\n }\n"], ["\n box-sizing: border-box;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible,\n &.focus-visible {\n ", "\n }\n"])), overflowMenuTokens.link.base, overflowMenuTokens.link.hover.base, overflowMenuTokens.link.active.base, overflowMenuTokens.link.focus.base);
|
|
31488
31502
|
var StyledIconWrapper = styled$3(IconWrapper$1).withConfig({
|
|
31489
31503
|
displayName: "OverflowMenuItem__StyledIconWrapper",
|
|
31490
31504
|
componentId: "sc-1ka2asi-2"
|
|
@@ -31566,7 +31580,7 @@ var OverflowMenuItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31566
31580
|
children: [icon, title]
|
|
31567
31581
|
}));
|
|
31568
31582
|
});
|
|
31569
|
-
var templateObject_1$
|
|
31583
|
+
var templateObject_1$k, templateObject_2$d, templateObject_3$8;
|
|
31570
31584
|
|
|
31571
31585
|
var PersonOutlineOutlined = {};
|
|
31572
31586
|
|
|
@@ -31587,10 +31601,10 @@ var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("p
|
|
|
31587
31601
|
|
|
31588
31602
|
default_1 = PersonOutlineOutlined.default = _default;
|
|
31589
31603
|
|
|
31590
|
-
var Container$
|
|
31604
|
+
var Container$8 = styled$3.div.withConfig({
|
|
31591
31605
|
displayName: "OverflowMenu__Container",
|
|
31592
31606
|
componentId: "sc-kh744b-0"
|
|
31593
|
-
})(templateObject_1$
|
|
31607
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n box-sizing: border-box;\n z-index: 3;\n overflow-y: auto;\n min-width: 180px;\n max-width: 300px;\n transition: visibility 0.4s, opacity 0.2s;\n visibility: ", ";\n opacity: ", ";\n ", "\n ", "\n *::selection {\n ", "\n }\n"], ["\n box-sizing: border-box;\n z-index: 3;\n overflow-y: auto;\n min-width: 180px;\n max-width: 300px;\n transition: visibility 0.4s, opacity 0.2s;\n visibility: ", ";\n opacity: ", ";\n ", "\n ", "\n *::selection {\n ", "\n }\n"])), function (_a) {
|
|
31594
31608
|
var isOpen = _a.isOpen;
|
|
31595
31609
|
return !isOpen ? 'hidden' : 'visible';
|
|
31596
31610
|
}, function (_a) {
|
|
@@ -31600,7 +31614,7 @@ var Container$7 = styled$3.div.withConfig({
|
|
|
31600
31614
|
var OverflowMenuList = styled$3.ul.withConfig({
|
|
31601
31615
|
displayName: "OverflowMenu__OverflowMenuList",
|
|
31602
31616
|
componentId: "sc-kh744b-1"
|
|
31603
|
-
})(templateObject_2$
|
|
31617
|
+
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n list-style-type: none;\n padding: 0;\n margin: 0;\n"], ["\n display: flex;\n flex-direction: column;\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])));
|
|
31604
31618
|
var StyledDivider = styled$3(Divider).withConfig({
|
|
31605
31619
|
displayName: "OverflowMenu__StyledDivider",
|
|
31606
31620
|
componentId: "sc-kh744b-2"
|
|
@@ -31717,7 +31731,7 @@ var OverflowMenu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31717
31731
|
role: 'menu'
|
|
31718
31732
|
});
|
|
31719
31733
|
|
|
31720
|
-
return jsxRuntime.exports.jsxs(Container$
|
|
31734
|
+
return jsxRuntime.exports.jsxs(Container$8, __assign({}, containerProps, {
|
|
31721
31735
|
"aria-label": "bruk piltaster for \xE5 navigere"
|
|
31722
31736
|
}, {
|
|
31723
31737
|
children: [hasStaticUser && jsxRuntime.exports.jsx(OverflowMenuItem, {
|
|
@@ -31726,9 +31740,9 @@ var OverflowMenu = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31726
31740
|
}), interactiveContent()]
|
|
31727
31741
|
}));
|
|
31728
31742
|
});
|
|
31729
|
-
var templateObject_1$
|
|
31743
|
+
var templateObject_1$j, templateObject_2$c, templateObject_3$7;
|
|
31730
31744
|
|
|
31731
|
-
var nextUniqueId$
|
|
31745
|
+
var nextUniqueId$9 = 0;
|
|
31732
31746
|
var OverflowMenuGroup = function OverflowMenuGroup(_a) {
|
|
31733
31747
|
var children = _a.children,
|
|
31734
31748
|
onClose = _a.onClose,
|
|
@@ -31749,7 +31763,7 @@ var OverflowMenuGroup = function OverflowMenuGroup(_a) {
|
|
|
31749
31763
|
};
|
|
31750
31764
|
|
|
31751
31765
|
var buttonRef = useRef(null);
|
|
31752
|
-
var uniqueId = nextUniqueId$
|
|
31766
|
+
var uniqueId = nextUniqueId$9++;
|
|
31753
31767
|
var uniqueOverflowMenuId = useState(overflowMenuId !== null && overflowMenuId !== void 0 ? overflowMenuId : "overflowMenu-".concat(uniqueId))[0];
|
|
31754
31768
|
|
|
31755
31769
|
var handleClose = function handleClose() {
|
|
@@ -31786,13 +31800,13 @@ var OverflowMenuGroup = function OverflowMenuGroup(_a) {
|
|
|
31786
31800
|
var Wrapper$2 = styled$3.div.withConfig({
|
|
31787
31801
|
displayName: "InternalHeaderstyles__Wrapper",
|
|
31788
31802
|
componentId: "sc-91bnca-0"
|
|
31789
|
-
})(templateObject_1$
|
|
31803
|
+
})(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n position: relative;\n *::selection {\n ", "\n }\n ", "\n"], ["\n position: relative;\n *::selection {\n ", "\n }\n ", "\n"])), typographyTokens.selection.base, internalHeaderTokens.wrapper.base);
|
|
31790
31804
|
var BannerWrapper = styled$3.div.withConfig({
|
|
31791
31805
|
displayName: "InternalHeaderstyles__BannerWrapper",
|
|
31792
31806
|
componentId: "sc-91bnca-1"
|
|
31793
31807
|
})(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n ", "\n ", "\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n ", "\n ", "\n"])), internalHeaderTokens.banner.base, function (_a) {
|
|
31794
31808
|
var hasContextMenu = _a.hasContextMenu;
|
|
31795
|
-
return hasContextMenu && Ae(templateObject_2$
|
|
31809
|
+
return hasContextMenu && Ae(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n padding-right: ", ";\n "], ["\n padding-right: ", ";\n "])), internalHeaderTokens.banner.contextMenuSpacing);
|
|
31796
31810
|
});
|
|
31797
31811
|
var BannerLeftWrapper = styled$3.div.withConfig({
|
|
31798
31812
|
displayName: "InternalHeaderstyles__BannerLeftWrapper",
|
|
@@ -31825,14 +31839,14 @@ var StyledOverflowMenu = styled$3(OverflowMenu).withConfig({
|
|
|
31825
31839
|
displayName: "InternalHeaderstyles__StyledOverflowMenu",
|
|
31826
31840
|
componentId: "sc-91bnca-8"
|
|
31827
31841
|
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n max-height: calc(100vh - 110px);\n"], ["\n max-height: calc(100vh - 110px);\n"])));
|
|
31828
|
-
var templateObject_1$
|
|
31842
|
+
var templateObject_1$i, templateObject_2$b, templateObject_3$6, templateObject_4$4, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11;
|
|
31829
31843
|
|
|
31830
31844
|
var Link$1 = styled$3.a.withConfig({
|
|
31831
31845
|
displayName: "NavigationItem__Link",
|
|
31832
31846
|
componentId: "sc-1fua9kw-0"
|
|
31833
|
-
})(templateObject_2$
|
|
31847
|
+
})(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n box-sizing: border-box;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible,\n &.focus-visible {\n ", "\n }\n ", "\n"], ["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n box-sizing: border-box;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible,\n &.focus-visible {\n ", "\n }\n ", "\n"])), internalHeaderTokens.navigationLink.base, internalHeaderTokens.navigationLink.hover.base, internalHeaderTokens.navigationLink.active.base, internalHeaderTokens.navigationLink.focus.base, function (_a) {
|
|
31834
31848
|
var isCurrent = _a.isCurrent;
|
|
31835
|
-
return isCurrent && Ae(templateObject_1$
|
|
31849
|
+
return isCurrent && Ae(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), internalHeaderTokens.navigationLink.current.base);
|
|
31836
31850
|
});
|
|
31837
31851
|
var NavigationItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31838
31852
|
var title = _a.title,
|
|
@@ -31850,12 +31864,12 @@ var NavigationItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31850
31864
|
children: title
|
|
31851
31865
|
}));
|
|
31852
31866
|
});
|
|
31853
|
-
var templateObject_1$
|
|
31867
|
+
var templateObject_1$h, templateObject_2$a;
|
|
31854
31868
|
|
|
31855
31869
|
var Li = styled$3.li.withConfig({
|
|
31856
31870
|
displayName: "InternalHeaderListItem__Li",
|
|
31857
31871
|
componentId: "sc-g1dd6e-0"
|
|
31858
|
-
})(templateObject_1$
|
|
31872
|
+
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n box-sizing: border-box;\n"], ["\n box-sizing: border-box;\n"])));
|
|
31859
31873
|
var InternalHeaderListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31860
31874
|
var children = _a.children,
|
|
31861
31875
|
rest = __rest(_a, ["children"]);
|
|
@@ -31868,7 +31882,7 @@ var InternalHeaderListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31868
31882
|
children: children
|
|
31869
31883
|
}));
|
|
31870
31884
|
});
|
|
31871
|
-
var templateObject_1$
|
|
31885
|
+
var templateObject_1$g;
|
|
31872
31886
|
|
|
31873
31887
|
var InternalHeader = function InternalHeader(_a) {
|
|
31874
31888
|
var applicationName = _a.applicationName,
|
|
@@ -31952,7 +31966,7 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
31952
31966
|
})]
|
|
31953
31967
|
})
|
|
31954
31968
|
})), navigation, hasContextMenu && jsxRuntime.exports.jsxs(ContextMenuGroup, {
|
|
31955
|
-
children: [jsxRuntime.exports.jsx(Button, {
|
|
31969
|
+
children: [jsxRuntime.exports.jsx(Button$1, {
|
|
31956
31970
|
ref: buttonRef,
|
|
31957
31971
|
Icon: hasNavInContextMenu ? default_1$1 : default_1$2,
|
|
31958
31972
|
appearance: "borderless",
|
|
@@ -31976,17 +31990,17 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
31976
31990
|
var img = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='rgba(58%2c65%2c70%2c1)'%3e%3cpath d='M0 0h24v24H0V0z' fill='none'/%3e%3cpath d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V10h16v11zm0-13H4V5h16v3z'/%3e%3c/svg%3e";
|
|
31977
31991
|
|
|
31978
31992
|
var IconSizes = ddsBaseTokens.iconSizes,
|
|
31979
|
-
Spacing$
|
|
31980
|
-
Border$
|
|
31993
|
+
Spacing$8 = ddsBaseTokens.spacing,
|
|
31994
|
+
Border$4 = ddsBaseTokens.border;
|
|
31981
31995
|
var calendarIndicatorBase = {
|
|
31982
31996
|
height: IconSizes.DdsIconsizeMedium,
|
|
31983
31997
|
width: IconSizes.DdsIconsizeMedium,
|
|
31984
31998
|
position: 'absolute',
|
|
31985
|
-
right: Spacing$
|
|
31999
|
+
right: Spacing$8.SizesDdsSpacingLocalX075
|
|
31986
32000
|
};
|
|
31987
32001
|
var calendarIndicatorFocusBase = {
|
|
31988
|
-
outline: "".concat(Border$
|
|
31989
|
-
outlineOffset: Spacing$
|
|
32002
|
+
outline: "".concat(Border$4.BordersDdsBorderFocusInputfieldStroke, " solid ").concat(Border$4.BordersDdsBorderFocusInputfieldStrokeWeight),
|
|
32003
|
+
outlineOffset: Spacing$8.SizesDdsSpacingLocalX0125
|
|
31990
32004
|
};
|
|
31991
32005
|
var datepickerTokens = {
|
|
31992
32006
|
calendarIndicator: {
|
|
@@ -32004,8 +32018,8 @@ var getWidth = function getWidth(type) {
|
|
|
32004
32018
|
var StyledInput = styled$3(Input$4).withConfig({
|
|
32005
32019
|
displayName: "Datepicker__StyledInput",
|
|
32006
32020
|
componentId: "sc-1ijxhje-0"
|
|
32007
|
-
})(templateObject_1$
|
|
32008
|
-
var nextUniqueId$
|
|
32021
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n min-height: 76px;\n ::-webkit-calendar-picker-indicator {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n ", "\n margin-left: 0px;\n padding: 0;\n top: 50%;\n transform: translate(0, -50%);\n box-sizing: border-box;\n }\n\n ::-webkit-calendar-picker-indicator:focus-visible {\n ", "\n }\n\n ::-webkit-inner-spin-button {\n display: none;\n }\n\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-year-field {\n transition: 0.2s;\n }\n\n ::-webkit-datetime-edit-day-field:focus,\n ::-webkit-datetime-edit-month-field:focus,\n ::-webkit-datetime-edit-year-field:focus {\n ", "\n }\n"], ["\n min-height: 76px;\n ::-webkit-calendar-picker-indicator {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n ", "\n margin-left: 0px;\n padding: 0;\n top: 50%;\n transform: translate(0, -50%);\n box-sizing: border-box;\n }\n\n ::-webkit-calendar-picker-indicator:focus-visible {\n ", "\n }\n\n ::-webkit-inner-spin-button {\n display: none;\n }\n\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-year-field {\n transition: 0.2s;\n }\n\n ::-webkit-datetime-edit-day-field:focus,\n ::-webkit-datetime-edit-month-field:focus,\n ::-webkit-datetime-edit-year-field:focus {\n ", "\n }\n"])), img, datepickerTokens.calendarIndicator.base, datepickerTokens.calendarIndicator.focus.base, typographyTokens.selection.base);
|
|
32022
|
+
var nextUniqueId$8 = 0;
|
|
32009
32023
|
var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32010
32024
|
var id = _a.id,
|
|
32011
32025
|
_b = _a.type,
|
|
@@ -32022,15 +32036,16 @@ var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32022
32036
|
ariaDescribedby = _a["aria-describedby"],
|
|
32023
32037
|
rest = __rest(_a, ["id", "type", "required", "readOnly", "disabled", "label", "width", "errorMessage", "tip", "style", "className", 'aria-describedby']);
|
|
32024
32038
|
|
|
32025
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "datepickerInput-".concat(nextUniqueId$
|
|
32039
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "datepickerInput-".concat(nextUniqueId$8++))[0];
|
|
32026
32040
|
var componentWidth = width ? width : getWidth(type);
|
|
32041
|
+
var hasLabel = !!label;
|
|
32027
32042
|
var hasErrorMessage = !!errorMessage;
|
|
32028
32043
|
var errorMessageId = derivativeIdGenerator(uniqueId, 'errorMessage', errorMessage);
|
|
32029
32044
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
32030
32045
|
|
|
32031
32046
|
var inputProps = __assign({
|
|
32032
32047
|
id: uniqueId,
|
|
32033
|
-
|
|
32048
|
+
hasLabel: hasLabel,
|
|
32034
32049
|
hasErrorMessage: hasErrorMessage,
|
|
32035
32050
|
ref: ref,
|
|
32036
32051
|
readOnly: readOnly,
|
|
@@ -32053,45 +32068,45 @@ var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32053
32068
|
};
|
|
32054
32069
|
return jsxRuntime.exports.jsxs(OuterInputContainer, __assign({}, outerInputContainerProps, {
|
|
32055
32070
|
children: [jsxRuntime.exports.jsxs(InputContainer$2, {
|
|
32056
|
-
children: [jsxRuntime.exports.jsx(StyledInput, __assign({}, inputProps)),
|
|
32071
|
+
children: [jsxRuntime.exports.jsx(StyledInput, __assign({}, inputProps)), hasLabel && jsxRuntime.exports.jsxs(SingleLineLabel, __assign({}, labelProps, {
|
|
32057
32072
|
typographyType: "supportingStyleLabel01",
|
|
32058
32073
|
forwardedAs: "label"
|
|
32059
32074
|
}, {
|
|
32060
32075
|
children: [label, " ", required && jsxRuntime.exports.jsx(RequiredMarker, {})]
|
|
32061
32076
|
}))]
|
|
32062
|
-
}),
|
|
32077
|
+
}), hasErrorMessage && jsxRuntime.exports.jsx(InputMessage, {
|
|
32063
32078
|
message: errorMessage,
|
|
32064
32079
|
id: errorMessageId,
|
|
32065
32080
|
messageType: "error"
|
|
32066
|
-
}), tip && !
|
|
32081
|
+
}), tip && !hasErrorMessage && jsxRuntime.exports.jsx(InputMessage, {
|
|
32067
32082
|
message: tip,
|
|
32068
32083
|
id: tipId,
|
|
32069
32084
|
messageType: "tip"
|
|
32070
32085
|
})]
|
|
32071
32086
|
}));
|
|
32072
32087
|
});
|
|
32073
|
-
var templateObject_1$
|
|
32088
|
+
var templateObject_1$f;
|
|
32074
32089
|
|
|
32075
|
-
var Colors$
|
|
32076
|
-
Spacing$
|
|
32090
|
+
var Colors$6 = ddsBaseTokens.colors,
|
|
32091
|
+
Spacing$7 = ddsBaseTokens.spacing,
|
|
32077
32092
|
FontPackages$1 = ddsBaseTokens.fontPackages,
|
|
32078
|
-
Border$
|
|
32093
|
+
Border$3 = ddsBaseTokens.border;
|
|
32079
32094
|
|
|
32080
32095
|
var linkBase = __assign(__assign({
|
|
32081
|
-
color: Colors$
|
|
32096
|
+
color: Colors$6.DdsColorNeutralsWhite
|
|
32082
32097
|
}, FontPackages$1.body_sans_02.base), {
|
|
32083
32098
|
textDecoration: 'none'
|
|
32084
32099
|
});
|
|
32085
32100
|
|
|
32086
32101
|
var linkHoverBase = {
|
|
32087
|
-
color: Colors$
|
|
32102
|
+
color: Colors$6.DdsColorNeutralsWhite
|
|
32088
32103
|
};
|
|
32089
32104
|
|
|
32090
32105
|
var linkFocusBase = __assign({}, focusVisibleOnDark);
|
|
32091
32106
|
|
|
32092
32107
|
var wrapperBase$2 = {
|
|
32093
|
-
backgroundColor: Colors$
|
|
32094
|
-
padding: Spacing$
|
|
32108
|
+
backgroundColor: Colors$6.DdsColorPrimaryBase,
|
|
32109
|
+
padding: Spacing$7.SizesDdsSpacingLocalX025
|
|
32095
32110
|
};
|
|
32096
32111
|
var skipToContentTokens = {
|
|
32097
32112
|
link: {
|
|
@@ -32103,8 +32118,8 @@ var skipToContentTokens = {
|
|
|
32103
32118
|
base: linkFocusBase
|
|
32104
32119
|
},
|
|
32105
32120
|
focusOutline: {
|
|
32106
|
-
color: Colors$
|
|
32107
|
-
width: Border$
|
|
32121
|
+
color: Colors$6.DdsColorWarningDark,
|
|
32122
|
+
width: Border$3.BordersDdsBorderFocusBaseStrokeWeight
|
|
32108
32123
|
}
|
|
32109
32124
|
},
|
|
32110
32125
|
wrapper: {
|
|
@@ -32115,14 +32130,14 @@ var skipToContentTokens = {
|
|
|
32115
32130
|
var Wrapper$1 = styled$3.div.withConfig({
|
|
32116
32131
|
displayName: "SkipToContent__Wrapper",
|
|
32117
32132
|
componentId: "sc-57o1qv-0"
|
|
32118
|
-
})(templateObject_1$
|
|
32133
|
+
})(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n box-sizing: border-box;\n position: absolute;\n top: ", ";\n text-align: center;\n opacity: 0;\n transition: opacity 0.2s;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n width: 1px;\n white-space: nowrap;\n ", "\n\n &:focus-within {\n clip: auto;\n height: auto;\n overflow: auto;\n width: 100%;\n z-index: 200;\n opacity: 1;\n }\n"], ["\n box-sizing: border-box;\n position: absolute;\n top: ", ";\n text-align: center;\n opacity: 0;\n transition: opacity 0.2s;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n width: 1px;\n white-space: nowrap;\n ", "\n\n &:focus-within {\n clip: auto;\n height: auto;\n overflow: auto;\n width: 100%;\n z-index: 200;\n opacity: 1;\n }\n"])), function (_a) {
|
|
32119
32134
|
var top = _a.top;
|
|
32120
32135
|
return top;
|
|
32121
32136
|
}, skipToContentTokens.wrapper.base);
|
|
32122
32137
|
var Link = styled$3.a.withConfig({
|
|
32123
32138
|
displayName: "SkipToContent__Link",
|
|
32124
32139
|
componentId: "sc-57o1qv-1"
|
|
32125
|
-
})(templateObject_2$
|
|
32140
|
+
})(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n ", "\n &:focus {\n ", "\n }\n &:hover {\n ", "\n }\n"], ["\n ", "\n &:focus {\n ", "\n }\n &:hover {\n ", "\n }\n"])), skipToContentTokens.link.base, skipToContentTokens.link.focus.base, skipToContentTokens.link.hover.base);
|
|
32126
32141
|
var SkipToContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32127
32142
|
var _b = _a.text,
|
|
32128
32143
|
text = _b === void 0 ? 'Til hovedinnhold' : _b,
|
|
@@ -32145,20 +32160,20 @@ var SkipToContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32145
32160
|
}))
|
|
32146
32161
|
}));
|
|
32147
32162
|
});
|
|
32148
|
-
var templateObject_1$
|
|
32163
|
+
var templateObject_1$e, templateObject_2$9;
|
|
32149
32164
|
|
|
32150
|
-
var Border$
|
|
32151
|
-
Colors$
|
|
32165
|
+
var Border$2 = ddsBaseTokens.border,
|
|
32166
|
+
Colors$5 = ddsBaseTokens.colors,
|
|
32152
32167
|
FontPackages = ddsBaseTokens.fontPackages,
|
|
32153
|
-
Spacing$
|
|
32168
|
+
Spacing$6 = ddsBaseTokens.spacing,
|
|
32154
32169
|
OuterShadow$3 = ddsBaseTokens.outerShadow,
|
|
32155
32170
|
BorderRadius$3 = ddsBaseTokens.borderRadius;
|
|
32156
32171
|
|
|
32157
32172
|
var wrapperBase$1 = __assign(__assign({
|
|
32158
|
-
border: "".concat(Border$
|
|
32159
|
-
backgroundColor: Colors$
|
|
32173
|
+
border: "".concat(Border$2.BordersDdsBorderStyleLightStroke, " solid ").concat(Border$2.BordersDdsBorderFocusBaseStrokeWeight),
|
|
32174
|
+
backgroundColor: Colors$5.DdsColorNeutralsWhite
|
|
32160
32175
|
}, FontPackages.body_sans_02.base), {
|
|
32161
|
-
padding: "".concat(Spacing$
|
|
32176
|
+
padding: "".concat(Spacing$6.SizesDdsSpacingLocalX075),
|
|
32162
32177
|
boxShadow: OuterShadow$3.DdsShadow1Onlight,
|
|
32163
32178
|
borderRadius: BorderRadius$3.RadiiDdsBorderRadius1Radius
|
|
32164
32179
|
});
|
|
@@ -32169,10 +32184,10 @@ var tooltipTokens = {
|
|
|
32169
32184
|
},
|
|
32170
32185
|
svgArrow: {
|
|
32171
32186
|
border: {
|
|
32172
|
-
fill: Colors$
|
|
32187
|
+
fill: Colors$5.DdsColorPrimaryLighter
|
|
32173
32188
|
},
|
|
32174
32189
|
background: {
|
|
32175
|
-
fill: Colors$
|
|
32190
|
+
fill: Colors$5.DdsColorNeutralsWhite
|
|
32176
32191
|
}
|
|
32177
32192
|
}
|
|
32178
32193
|
};
|
|
@@ -32180,12 +32195,12 @@ var tooltipTokens = {
|
|
|
32180
32195
|
var SvgArrow = styled$3.svg.withConfig({
|
|
32181
32196
|
displayName: "Tooltipstyles__SvgArrow",
|
|
32182
32197
|
componentId: "sc-1cna5tc-0"
|
|
32183
|
-
})(templateObject_1$
|
|
32198
|
+
})(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n width: 36px;\n height: 9px;\n"], ["\n width: 36px;\n height: 9px;\n"])));
|
|
32184
32199
|
var ArrowWrapper = styled$3.div.withConfig({
|
|
32185
32200
|
displayName: "Tooltipstyles__ArrowWrapper",
|
|
32186
32201
|
componentId: "sc-1cna5tc-1"
|
|
32187
|
-
})(templateObject_2$
|
|
32188
|
-
var Container$
|
|
32202
|
+
})(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject([""], [""])));
|
|
32203
|
+
var Container$7 = styled$3.div.withConfig({
|
|
32189
32204
|
displayName: "Tooltipstyles__Container",
|
|
32190
32205
|
componentId: "sc-1cna5tc-2"
|
|
32191
32206
|
})(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n width: fit-content;\n"], ["\n width: fit-content;\n"])));
|
|
@@ -32199,9 +32214,9 @@ var TooltipWrapper = styled$3.div.withConfig({
|
|
|
32199
32214
|
var open = _a.open;
|
|
32200
32215
|
return open ? 1 : 0;
|
|
32201
32216
|
}, tooltipTokens.wrapper.base);
|
|
32202
|
-
var templateObject_1$
|
|
32217
|
+
var templateObject_1$d, templateObject_2$8, templateObject_3$5, templateObject_4$3;
|
|
32203
32218
|
|
|
32204
|
-
var nextUniqueId$
|
|
32219
|
+
var nextUniqueId$7 = 0;
|
|
32205
32220
|
var Tooltip = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32206
32221
|
var text = _a.text,
|
|
32207
32222
|
_b = _a.placement,
|
|
@@ -32216,7 +32231,7 @@ var Tooltip = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32216
32231
|
className = _a.className,
|
|
32217
32232
|
rest = __rest(_a, ["text", "placement", "children", "tooltipId", "delay", "style", "onMouseLeave", "onMouseOver", "className"]);
|
|
32218
32233
|
|
|
32219
|
-
var uniqueId = nextUniqueId$
|
|
32234
|
+
var uniqueId = nextUniqueId$7++;
|
|
32220
32235
|
var uniqueTooltipId = useState(tooltipId !== null && tooltipId !== void 0 ? tooltipId : "tooltip-".concat(uniqueId))[0];
|
|
32221
32236
|
|
|
32222
32237
|
var _d = useState(false),
|
|
@@ -32284,7 +32299,7 @@ var Tooltip = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32284
32299
|
ref: setArrowElement,
|
|
32285
32300
|
style: styles.arrow
|
|
32286
32301
|
};
|
|
32287
|
-
return jsxRuntime.exports.jsxs(Container$
|
|
32302
|
+
return jsxRuntime.exports.jsxs(Container$7, __assign({}, containerProps, {
|
|
32288
32303
|
children: [anchorElement, jsxRuntime.exports.jsxs(TooltipWrapper, __assign({}, wrapperProps, {
|
|
32289
32304
|
children: [text, jsxRuntime.exports.jsx(ArrowWrapper, __assign({}, arrowWrapperProps, {
|
|
32290
32305
|
children: jsxRuntime.exports.jsxs(SvgArrow, {
|
|
@@ -32302,21 +32317,21 @@ var Tooltip = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32302
32317
|
});
|
|
32303
32318
|
|
|
32304
32319
|
var BorderRadius$2 = ddsBaseTokens.borderRadius,
|
|
32305
|
-
Colors$
|
|
32320
|
+
Colors$4 = ddsBaseTokens.colors,
|
|
32306
32321
|
OuterShadow$2 = ddsBaseTokens.outerShadow,
|
|
32307
|
-
Spacing$
|
|
32322
|
+
Spacing$5 = ddsBaseTokens.spacing;
|
|
32308
32323
|
var base$2 = {
|
|
32309
|
-
backgroundColor: Colors$
|
|
32324
|
+
backgroundColor: Colors$4.DdsColorNeutralsWhite,
|
|
32310
32325
|
boxShadow: OuterShadow$2.DdsShadow4Onlight,
|
|
32311
32326
|
borderRadius: BorderRadius$2.RadiiDdsBorderRadius1Radius,
|
|
32312
|
-
padding: "".concat(Spacing$
|
|
32327
|
+
padding: "".concat(Spacing$5.SizesDdsSpacingLocalX1, " ").concat(Spacing$5.SizesDdsSpacingLocalX1, " ").concat(Spacing$5.SizesDdsSpacingLocalX15, " ").concat(Spacing$5.SizesDdsSpacingLocalX15)
|
|
32313
32328
|
};
|
|
32314
32329
|
var contentContainerBase$1 = {
|
|
32315
|
-
paddingRight: Spacing$
|
|
32316
|
-
gap: Spacing$
|
|
32330
|
+
paddingRight: Spacing$5.SizesDdsSpacingLocalX1,
|
|
32331
|
+
gap: Spacing$5.SizesDdsSpacingLocalX1
|
|
32317
32332
|
};
|
|
32318
32333
|
var actionsContainerBase = {
|
|
32319
|
-
gap: Spacing$
|
|
32334
|
+
gap: Spacing$5.SizesDdsSpacingLocalX1
|
|
32320
32335
|
};
|
|
32321
32336
|
|
|
32322
32337
|
var focusBase$1 = __assign({}, focusVisible);
|
|
@@ -32357,11 +32372,11 @@ var changeRGBAAlpha = function changeRGBAAlpha(value, alpha) {
|
|
|
32357
32372
|
var Backdrop = styled$3.div.withConfig({
|
|
32358
32373
|
displayName: "Backdrop",
|
|
32359
32374
|
componentId: "sc-vimg90-0"
|
|
32360
|
-
})(templateObject_1$
|
|
32375
|
+
})(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n overflow-y: auto;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 50;\n opacity: ", ";\n transition: opacity 0.2s;\n"], ["\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n overflow-y: auto;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 50;\n opacity: ", ";\n transition: opacity 0.2s;\n"])), changeRGBAAlpha(ddsBaseTokens.colors.DdsColorNeutralsGray9, 0.5), function (_a) {
|
|
32361
32376
|
var isOpen = _a.isOpen;
|
|
32362
32377
|
return isOpen ? 1 : 0;
|
|
32363
32378
|
});
|
|
32364
|
-
var templateObject_1$
|
|
32379
|
+
var templateObject_1$c;
|
|
32365
32380
|
|
|
32366
32381
|
var isVerticalScrollbarDisplayed = function isVerticalScrollbarDisplayed(container) {
|
|
32367
32382
|
return container.clientHeight > window.innerHeight;
|
|
@@ -32378,23 +32393,23 @@ function handleElementWithBackdropUnmount(container) {
|
|
|
32378
32393
|
container.style.removeProperty('overflow-y');
|
|
32379
32394
|
}
|
|
32380
32395
|
|
|
32381
|
-
var Container$
|
|
32396
|
+
var Container$6 = styled$3.div.withConfig({
|
|
32382
32397
|
displayName: "Modal__Container",
|
|
32383
32398
|
componentId: "sc-12c14zx-0"
|
|
32384
|
-
})(templateObject_1$
|
|
32399
|
+
})(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n display: flex;\n flex-direction: column-reverse;\n box-sizing: border-box;\n margin: 0;\n min-width: 200px;\n &::selection,\n *::selection {\n ", "\n }\n ", "\n :focus-visible, &.focus-visible {\n ", "\n }\n"], ["\n display: flex;\n flex-direction: column-reverse;\n box-sizing: border-box;\n margin: 0;\n min-width: 200px;\n &::selection,\n *::selection {\n ", "\n }\n ", "\n :focus-visible, &.focus-visible {\n ", "\n }\n"])), typographyTokens.selection.base, modalTokens.base, modalTokens.focus.base);
|
|
32385
32400
|
var ContentContainer$2 = styled$3.div.withConfig({
|
|
32386
32401
|
displayName: "Modal__ContentContainer",
|
|
32387
32402
|
componentId: "sc-12c14zx-1"
|
|
32388
|
-
})(templateObject_2$
|
|
32403
|
+
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n display: grid;\n ", "\n"], ["\n display: grid;\n ", "\n"])), modalTokens.contentContainer.base);
|
|
32389
32404
|
var HeaderContainer$1 = styled$3.div.withConfig({
|
|
32390
32405
|
displayName: "Modal__HeaderContainer",
|
|
32391
32406
|
componentId: "sc-12c14zx-2"
|
|
32392
32407
|
})(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject([""], [""])));
|
|
32393
|
-
var StyledButton$2 = styled$3(Button).withConfig({
|
|
32408
|
+
var StyledButton$2 = styled$3(Button$1).withConfig({
|
|
32394
32409
|
displayName: "Modal__StyledButton",
|
|
32395
32410
|
componentId: "sc-12c14zx-3"
|
|
32396
32411
|
})(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n align-self: flex-end;\n"], ["\n align-self: flex-end;\n"])));
|
|
32397
|
-
var nextUniqueId$
|
|
32412
|
+
var nextUniqueId$6 = 0;
|
|
32398
32413
|
var Modal = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32399
32414
|
var _b = _a.isOpen,
|
|
32400
32415
|
isOpen = _b === void 0 ? false : _b,
|
|
@@ -32407,7 +32422,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32407
32422
|
triggerRef = _a.triggerRef,
|
|
32408
32423
|
rest = __rest(_a, ["isOpen", "parentElement", "children", "header", "onClose", "id", "triggerRef"]);
|
|
32409
32424
|
|
|
32410
|
-
var uniqueId = nextUniqueId$
|
|
32425
|
+
var uniqueId = nextUniqueId$6++;
|
|
32411
32426
|
var modalId = useState(id !== null && id !== void 0 ? id : "modal-".concat(uniqueId))[0];
|
|
32412
32427
|
var headerId = "".concat(modalId, "-header");
|
|
32413
32428
|
var modalRef = useFocusTrap(isOpen);
|
|
@@ -32454,7 +32469,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32454
32469
|
id: headerId
|
|
32455
32470
|
};
|
|
32456
32471
|
return isOpen || hasTransitionedIn ? /*#__PURE__*/createPortal(jsxRuntime.exports.jsx(Backdrop, __assign({}, backdropProps, {
|
|
32457
|
-
children: jsxRuntime.exports.jsxs(Container$
|
|
32472
|
+
children: jsxRuntime.exports.jsxs(Container$6, __assign({}, containerProps, {
|
|
32458
32473
|
children: [jsxRuntime.exports.jsxs(ContentContainer$2, {
|
|
32459
32474
|
children: [header && jsxRuntime.exports.jsx(HeaderContainer$1, __assign({}, headerContainerProps, {
|
|
32460
32475
|
children: typeof header === 'string' ? jsxRuntime.exports.jsx(Typography, __assign({
|
|
@@ -32474,14 +32489,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32474
32489
|
}))
|
|
32475
32490
|
})), parentElement) : null;
|
|
32476
32491
|
});
|
|
32477
|
-
var templateObject_1$
|
|
32492
|
+
var templateObject_1$b, templateObject_2$7, templateObject_3$4, templateObject_4$2;
|
|
32478
32493
|
|
|
32479
|
-
var Container$
|
|
32494
|
+
var Container$5 = styled$3.div.withConfig({
|
|
32480
32495
|
displayName: "ModalBody__Container",
|
|
32481
32496
|
componentId: "sc-134o0zg-0"
|
|
32482
|
-
})(templateObject_2$
|
|
32497
|
+
})(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), scrollbarStyling, function (_a) {
|
|
32483
32498
|
var scrollable = _a.scrollable;
|
|
32484
|
-
return scrollable && Ae(templateObject_1$
|
|
32499
|
+
return scrollable && Ae(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n ", "\n &:focus-visible, &.focus-visible {\n ", "\n }\n "], ["\n ", "\n &:focus-visible, &.focus-visible {\n ", "\n }\n "])), modalTokens.bodyScrollable.base, modalTokens.bodyScrollable.focus.base);
|
|
32485
32500
|
});
|
|
32486
32501
|
var ModalBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32487
32502
|
var children = _a.children,
|
|
@@ -32494,16 +32509,16 @@ var ModalBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32494
32509
|
scrollable: scrollable
|
|
32495
32510
|
}, rest);
|
|
32496
32511
|
|
|
32497
|
-
return jsxRuntime.exports.jsx(Container$
|
|
32512
|
+
return jsxRuntime.exports.jsx(Container$5, __assign({}, containerProps, {
|
|
32498
32513
|
children: children
|
|
32499
32514
|
}));
|
|
32500
32515
|
});
|
|
32501
|
-
var templateObject_1$
|
|
32516
|
+
var templateObject_1$a, templateObject_2$6;
|
|
32502
32517
|
|
|
32503
|
-
var Container$
|
|
32518
|
+
var Container$4 = styled$3.div.withConfig({
|
|
32504
32519
|
displayName: "ModalActions__Container",
|
|
32505
32520
|
componentId: "sc-ehph9l-0"
|
|
32506
|
-
})(templateObject_1$
|
|
32521
|
+
})(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n ", "\n"], ["\n display: flex;\n flex-wrap: wrap;\n ", "\n"])), modalTokens.actionsContainer.base);
|
|
32507
32522
|
var ModalActions = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32508
32523
|
var children = _a.children,
|
|
32509
32524
|
rest = __rest(_a, ["children"]);
|
|
@@ -32512,19 +32527,19 @@ var ModalActions = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32512
32527
|
ref: ref
|
|
32513
32528
|
}, rest);
|
|
32514
32529
|
|
|
32515
|
-
return jsxRuntime.exports.jsx(Container$
|
|
32530
|
+
return jsxRuntime.exports.jsx(Container$4, __assign({}, containerProps, {
|
|
32516
32531
|
children: children
|
|
32517
32532
|
}));
|
|
32518
32533
|
});
|
|
32519
|
-
var templateObject_1$
|
|
32534
|
+
var templateObject_1$9;
|
|
32520
32535
|
|
|
32521
|
-
var Spacing$
|
|
32536
|
+
var Spacing$4 = ddsBaseTokens.spacing;
|
|
32522
32537
|
var containerBase$1 = {
|
|
32523
|
-
padding: "".concat(Spacing$
|
|
32538
|
+
padding: "".concat(Spacing$4.SizesDdsSpacingLocalX1NumberPx - Spacing$4.SizesDdsSpacingLocalX025NumberPx, "px ").concat(Spacing$4.SizesDdsSpacingLocalX1NumberPx - Spacing$4.SizesDdsSpacingLocalX025NumberPx, "px ").concat(Spacing$4.SizesDdsSpacingLocalX1NumberPx - Spacing$4.SizesDdsSpacingLocalX025NumberPx, "px ").concat(Spacing$4.SizesDdsSpacingLocalX15NumberPx - Spacing$4.SizesDdsSpacingLocalX025NumberPx, "px")
|
|
32524
32539
|
};
|
|
32525
32540
|
var contentContainerBase = {
|
|
32526
|
-
gap: Spacing$
|
|
32527
|
-
padding: Spacing$
|
|
32541
|
+
gap: Spacing$4.SizesDdsSpacingLocalX1,
|
|
32542
|
+
padding: Spacing$4.SizesDdsSpacingLocalX025
|
|
32528
32543
|
};
|
|
32529
32544
|
var containerLarge = {
|
|
32530
32545
|
maxWidth: '800px'
|
|
@@ -32549,12 +32564,12 @@ var drawerTokens = {
|
|
|
32549
32564
|
}
|
|
32550
32565
|
};
|
|
32551
32566
|
|
|
32552
|
-
var Colors$
|
|
32567
|
+
var Colors$3 = ddsBaseTokens.colors,
|
|
32553
32568
|
BorderRadius$1 = ddsBaseTokens.borderRadius,
|
|
32554
32569
|
OuterShadow$1 = ddsBaseTokens.outerShadow,
|
|
32555
32570
|
Font = ddsBaseTokens.font;
|
|
32556
32571
|
var base$1 = {
|
|
32557
|
-
backgroundColor: Colors$
|
|
32572
|
+
backgroundColor: Colors$3.DdsColorNeutralsWhite,
|
|
32558
32573
|
borderRadius: BorderRadius$1.RadiiDdsBorderRadius1Radius,
|
|
32559
32574
|
boxShadow: OuterShadow$1.DdsShadow4Onlight,
|
|
32560
32575
|
fontFamily: Font.DdsFontBodySans01FontFamily
|
|
@@ -32566,18 +32581,18 @@ var paperTokens = {
|
|
|
32566
32581
|
var Paper = styled$3.div.withConfig({
|
|
32567
32582
|
displayName: "Paper",
|
|
32568
32583
|
componentId: "sc-mrbi8q-0"
|
|
32569
|
-
})(templateObject_1$
|
|
32570
|
-
var templateObject_1$
|
|
32584
|
+
})(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n box-sizing: border-box;\n margin: 0;\n &::selection,\n *::selection {\n ", "\n }\n ", "\n"], ["\n box-sizing: border-box;\n margin: 0;\n &::selection,\n *::selection {\n ", "\n }\n ", "\n"])), typographyTokens.selection.base, paperTokens.base);
|
|
32585
|
+
var templateObject_1$8;
|
|
32571
32586
|
|
|
32572
|
-
var Container$
|
|
32587
|
+
var Container$3 = styled$3(Paper).withConfig({
|
|
32573
32588
|
displayName: "Drawer__Container",
|
|
32574
32589
|
componentId: "sc-i9luw3-0"
|
|
32575
32590
|
})(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n height: 100%;\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-end;\n min-width: 300px;\n ", "\n ", "\n z-index: 50;\n ", "\n transition: 0.5s;\n ", "\n &:focus-visible, &.focus-visible {\n ", "\n }\n"], ["\n position: fixed;\n top: 0;\n height: 100%;\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-end;\n min-width: 300px;\n ", "\n ", "\n z-index: 50;\n ", "\n transition: 0.5s;\n ", "\n &:focus-visible, &.focus-visible {\n ", "\n }\n"])), function (_a) {
|
|
32576
32591
|
var size = _a.size;
|
|
32577
|
-
return Ae(templateObject_1$
|
|
32592
|
+
return Ae(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), drawerTokens.container.size[size].base);
|
|
32578
32593
|
}, function (_a) {
|
|
32579
32594
|
var widthProps = _a.widthProps;
|
|
32580
|
-
return widthProps && Ae(templateObject_2$
|
|
32595
|
+
return widthProps && Ae(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), widthProps);
|
|
32581
32596
|
}, function (_a) {
|
|
32582
32597
|
var placement = _a.placement,
|
|
32583
32598
|
isOpen = _a.isOpen;
|
|
@@ -32591,11 +32606,11 @@ var HeaderContainer = styled$3.div.withConfig({
|
|
|
32591
32606
|
displayName: "Drawer__HeaderContainer",
|
|
32592
32607
|
componentId: "sc-i9luw3-2"
|
|
32593
32608
|
})(templateObject_7 || (templateObject_7 = __makeTemplateObject([""], [""])));
|
|
32594
|
-
var StyledButton$1 = styled$3(Button).withConfig({
|
|
32609
|
+
var StyledButton$1 = styled$3(Button$1).withConfig({
|
|
32595
32610
|
displayName: "Drawer__StyledButton",
|
|
32596
32611
|
componentId: "sc-i9luw3-3"
|
|
32597
32612
|
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-self: flex-end;\n"], ["\n align-self: flex-end;\n"])));
|
|
32598
|
-
var nextUniqueId$
|
|
32613
|
+
var nextUniqueId$5 = 0;
|
|
32599
32614
|
var Drawer = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32600
32615
|
var children = _a.children,
|
|
32601
32616
|
onClose = _a.onClose,
|
|
@@ -32612,7 +32627,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32612
32627
|
id = _a.id,
|
|
32613
32628
|
rest = __rest(_a, ["children", "onClose", "header", "isOpen", "placement", "parentElement", "size", "triggerRef", "id"]);
|
|
32614
32629
|
|
|
32615
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "drawer-".concat(nextUniqueId$
|
|
32630
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "drawer-".concat(nextUniqueId$5++))[0];
|
|
32616
32631
|
var hasHeader = !!header;
|
|
32617
32632
|
var headerId = hasHeader ? "".concat(uniqueId, "-header") : undefined;
|
|
32618
32633
|
var drawerRef = useFocusTrap(isOpen);
|
|
@@ -32646,7 +32661,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32646
32661
|
var headerContainerProps = {
|
|
32647
32662
|
id: headerId
|
|
32648
32663
|
};
|
|
32649
|
-
return isOpen || hasTransitionedIn ? /*#__PURE__*/createPortal(jsxRuntime.exports.jsxs(Container$
|
|
32664
|
+
return isOpen || hasTransitionedIn ? /*#__PURE__*/createPortal(jsxRuntime.exports.jsxs(Container$3, __assign({}, containerProps, {
|
|
32650
32665
|
children: [jsxRuntime.exports.jsxs(ContentContainer$1, {
|
|
32651
32666
|
children: [hasHeader && jsxRuntime.exports.jsx(HeaderContainer, __assign({}, headerContainerProps, {
|
|
32652
32667
|
children: typeof header === 'string' ? jsxRuntime.exports.jsx(Typography, __assign({
|
|
@@ -32666,15 +32681,15 @@ var Drawer = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32666
32681
|
})]
|
|
32667
32682
|
})), parentElement) : null;
|
|
32668
32683
|
});
|
|
32669
|
-
var templateObject_1$
|
|
32684
|
+
var templateObject_1$7, templateObject_2$5, templateObject_3$3, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8;
|
|
32670
32685
|
|
|
32671
|
-
var nextUniqueId$
|
|
32686
|
+
var nextUniqueId$4 = 0;
|
|
32672
32687
|
var DrawerGroup = function DrawerGroup(_a) {
|
|
32673
32688
|
var children = _a.children,
|
|
32674
32689
|
drawerId = _a.drawerId,
|
|
32675
32690
|
onOpen = _a.onOpen,
|
|
32676
32691
|
onClose = _a.onClose;
|
|
32677
|
-
var uniqueId = nextUniqueId$
|
|
32692
|
+
var uniqueId = nextUniqueId$4++;
|
|
32678
32693
|
var uniqueDrawerId = useState(drawerId !== null && drawerId !== void 0 ? drawerId : "drawer-".concat(uniqueId))[0];
|
|
32679
32694
|
var buttonRef = useRef(null);
|
|
32680
32695
|
|
|
@@ -32719,25 +32734,25 @@ var DrawerGroup = function DrawerGroup(_a) {
|
|
|
32719
32734
|
});
|
|
32720
32735
|
};
|
|
32721
32736
|
|
|
32722
|
-
var Colors$
|
|
32737
|
+
var Colors$2 = ddsBaseTokens.colors,
|
|
32723
32738
|
BorderRadius = ddsBaseTokens.borderRadius,
|
|
32724
|
-
Spacing$
|
|
32739
|
+
Spacing$3 = ddsBaseTokens.spacing,
|
|
32725
32740
|
OuterShadow = ddsBaseTokens.outerShadow,
|
|
32726
|
-
Border = ddsBaseTokens.border;
|
|
32741
|
+
Border$1 = ddsBaseTokens.border;
|
|
32727
32742
|
var wrapperBase = {
|
|
32728
|
-
backgroundColor: Colors$
|
|
32743
|
+
backgroundColor: Colors$2.DdsColorNeutralsWhite,
|
|
32729
32744
|
borderRadius: BorderRadius.RadiiDdsBorderRadius1Radius,
|
|
32730
|
-
padding: "".concat(Spacing$
|
|
32745
|
+
padding: "".concat(Spacing$3.SizesDdsSpacingLocalX075, " ").concat(Spacing$3.SizesDdsSpacingLocalX1, " ").concat(Spacing$3.SizesDdsSpacingLocalX15, " ").concat(Spacing$3.SizesDdsSpacingLocalX1),
|
|
32731
32746
|
boxShadow: OuterShadow.DdsShadow3Onlight,
|
|
32732
|
-
border: "".concat(Border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(Border.BordersDdsBorderStyleLightStroke)
|
|
32747
|
+
border: "".concat(Border$1.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(Border$1.BordersDdsBorderStyleLightStroke)
|
|
32733
32748
|
};
|
|
32734
32749
|
var buttonBase = {
|
|
32735
32750
|
position: 'absolute',
|
|
32736
|
-
top: Spacing$
|
|
32737
|
-
right: Spacing$
|
|
32751
|
+
top: Spacing$3.SizesDdsSpacingLocalX025,
|
|
32752
|
+
right: Spacing$3.SizesDdsSpacingLocalX025
|
|
32738
32753
|
};
|
|
32739
32754
|
var titleBase = {
|
|
32740
|
-
marginRight: Spacing$
|
|
32755
|
+
marginRight: Spacing$3.SizesDdsSpacingLocalX2
|
|
32741
32756
|
};
|
|
32742
32757
|
var popoverTokens = {
|
|
32743
32758
|
wrapper: {
|
|
@@ -32750,15 +32765,15 @@ var popoverTokens = {
|
|
|
32750
32765
|
base: titleBase
|
|
32751
32766
|
},
|
|
32752
32767
|
content: {
|
|
32753
|
-
spaceTopNoTitle: Spacing$
|
|
32768
|
+
spaceTopNoTitle: Spacing$3.SizesDdsSpacingLocalX2
|
|
32754
32769
|
}
|
|
32755
32770
|
};
|
|
32756
32771
|
|
|
32757
|
-
var Spacing$
|
|
32772
|
+
var Spacing$2 = ddsBaseTokens.spacing;
|
|
32758
32773
|
var Wrapper = styled$3.div.withConfig({
|
|
32759
32774
|
displayName: "Popover__Wrapper",
|
|
32760
32775
|
componentId: "sc-1fecd7e-0"
|
|
32761
|
-
})(templateObject_2$
|
|
32776
|
+
})(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n transition: visibility 0.4s, opacity 0.2s;\n visibility: ", ";\n opacity: ", ";\n box-sizing: border-box;\n position: absolute;\n width: fit-content;\n z-index: 20;\n ", "\n ", "\n"], ["\n transition: visibility 0.4s, opacity 0.2s;\n visibility: ", ";\n opacity: ", ";\n box-sizing: border-box;\n position: absolute;\n width: fit-content;\n z-index: 20;\n ", "\n ", "\n"])), function (_a) {
|
|
32762
32777
|
var isOpen = _a.isOpen;
|
|
32763
32778
|
return isOpen ? 'visible' : 'hidden';
|
|
32764
32779
|
}, function (_a) {
|
|
@@ -32766,7 +32781,7 @@ var Wrapper = styled$3.div.withConfig({
|
|
|
32766
32781
|
return isOpen ? 1 : 0;
|
|
32767
32782
|
}, popoverTokens.wrapper.base, function (_a) {
|
|
32768
32783
|
var sizeProps = _a.sizeProps;
|
|
32769
|
-
return sizeProps && Ae(templateObject_1$
|
|
32784
|
+
return sizeProps && Ae(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), sizeProps);
|
|
32770
32785
|
});
|
|
32771
32786
|
var TitleContainer = styled$3.div.withConfig({
|
|
32772
32787
|
displayName: "Popover__TitleContainer",
|
|
@@ -32780,7 +32795,7 @@ var ContentContainer = styled$3.div.withConfig({
|
|
|
32780
32795
|
hasTitle = _a.hasTitle;
|
|
32781
32796
|
return withCloseButton && !hasTitle && Ae(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-top: ", ";\n "], ["\n margin-top: ", ";\n "])), popoverTokens.content.spaceTopNoTitle);
|
|
32782
32797
|
});
|
|
32783
|
-
var StyledButton = styled$3(Button).withConfig({
|
|
32798
|
+
var StyledButton = styled$3(Button$1).withConfig({
|
|
32784
32799
|
displayName: "Popover__StyledButton",
|
|
32785
32800
|
componentId: "sc-1fecd7e-3"
|
|
32786
32801
|
})(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), popoverTokens.button.base);
|
|
@@ -32797,7 +32812,7 @@ var Popover = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32797
32812
|
_d = _a.placement,
|
|
32798
32813
|
placement = _d === void 0 ? 'bottom' : _d,
|
|
32799
32814
|
_e = _a.offset,
|
|
32800
|
-
offset = _e === void 0 ? Spacing$
|
|
32815
|
+
offset = _e === void 0 ? Spacing$2.SizesDdsSpacingLocalX05NumberPx : _e,
|
|
32801
32816
|
style = _a.style,
|
|
32802
32817
|
rest = __rest(_a, ["title", "isOpen", "withCloseButton", "onCloseButtonClick", "onCloseButtonBlur", "anchorElement", "children", "placement", "offset", "style"]);
|
|
32803
32818
|
|
|
@@ -32845,9 +32860,9 @@ var Popover = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
32845
32860
|
})]
|
|
32846
32861
|
}));
|
|
32847
32862
|
});
|
|
32848
|
-
var templateObject_1$
|
|
32863
|
+
var templateObject_1$6, templateObject_2$4, templateObject_3$2, templateObject_4, templateObject_5, templateObject_6;
|
|
32849
32864
|
|
|
32850
|
-
var nextUniqueId$
|
|
32865
|
+
var nextUniqueId$3 = 0;
|
|
32851
32866
|
var PopoverGroup = function PopoverGroup(_a) {
|
|
32852
32867
|
var _b = _a.isOpen,
|
|
32853
32868
|
isOpen = _b === void 0 ? false : _b,
|
|
@@ -32863,7 +32878,7 @@ var PopoverGroup = function PopoverGroup(_a) {
|
|
|
32863
32878
|
useEffect(function () {
|
|
32864
32879
|
setOpen(isOpen);
|
|
32865
32880
|
}, [isOpen]);
|
|
32866
|
-
var uniqueId = nextUniqueId$
|
|
32881
|
+
var uniqueId = nextUniqueId$3++;
|
|
32867
32882
|
var uniquePopoverId = useState(popoverId !== null && popoverId !== void 0 ? popoverId : "popover-".concat(uniqueId))[0];
|
|
32868
32883
|
|
|
32869
32884
|
var handleOnCloseButtonClick = function handleOnCloseButtonClick() {
|
|
@@ -32921,36 +32936,36 @@ var PopoverGroup = function PopoverGroup(_a) {
|
|
|
32921
32936
|
});
|
|
32922
32937
|
};
|
|
32923
32938
|
|
|
32924
|
-
var Colors = ddsBaseTokens.colors,
|
|
32925
|
-
Spacing = ddsBaseTokens.spacing;
|
|
32939
|
+
var Colors$1 = ddsBaseTokens.colors,
|
|
32940
|
+
Spacing$1 = ddsBaseTokens.spacing;
|
|
32926
32941
|
var base = {
|
|
32927
|
-
backgroundColor: Colors.DdsColorNeutralsWhite,
|
|
32928
|
-
color: Colors.DdsColorNeutralsGray7,
|
|
32929
|
-
gap: Spacing.SizesDdsSpacingLocalX05,
|
|
32942
|
+
backgroundColor: Colors$1.DdsColorNeutralsWhite,
|
|
32943
|
+
color: Colors$1.DdsColorNeutralsGray7,
|
|
32944
|
+
gap: Spacing$1.SizesDdsSpacingLocalX05,
|
|
32930
32945
|
boxShadow: 'none'
|
|
32931
32946
|
};
|
|
32932
32947
|
|
|
32933
32948
|
var hoverBase = __assign({}, checkboxTokens.checkbox.hover.base);
|
|
32934
32949
|
|
|
32935
32950
|
var checkedBase = __assign(__assign({}, checkboxTokens.checkbox.checked.base), {
|
|
32936
|
-
color: Colors.DdsColorNeutralsWhite
|
|
32951
|
+
color: Colors$1.DdsColorNeutralsWhite
|
|
32937
32952
|
});
|
|
32938
32953
|
|
|
32939
32954
|
var checkedHoverBase = __assign(__assign({}, checkboxTokens.checkbox.checked.hover.base), {
|
|
32940
|
-
color: Colors.DdsColorNeutralsWhite
|
|
32955
|
+
color: Colors$1.DdsColorNeutralsWhite
|
|
32941
32956
|
});
|
|
32942
32957
|
|
|
32943
32958
|
var focusBase = __assign({}, focusVisible);
|
|
32944
32959
|
|
|
32945
32960
|
var groupBase = {
|
|
32946
32961
|
display: 'flex',
|
|
32947
|
-
gap: Spacing.SizesDdsSpacingLocalX075,
|
|
32962
|
+
gap: Spacing$1.SizesDdsSpacingLocalX075,
|
|
32948
32963
|
flexWrap: 'wrap'
|
|
32949
32964
|
};
|
|
32950
32965
|
var containerBase = {
|
|
32951
32966
|
display: 'flex',
|
|
32952
32967
|
flexDirection: 'column',
|
|
32953
|
-
gap: Spacing.SizesDdsSpacingLocalX05
|
|
32968
|
+
gap: Spacing$1.SizesDdsSpacingLocalX05
|
|
32954
32969
|
};
|
|
32955
32970
|
var toggleButtonTokens = {
|
|
32956
32971
|
base: base,
|
|
@@ -32977,23 +32992,23 @@ var toggleButtonTokens = {
|
|
|
32977
32992
|
var Input = styled$3.input.withConfig({
|
|
32978
32993
|
displayName: "ToggleButton__Input",
|
|
32979
32994
|
componentId: "sc-ya01sa-0"
|
|
32980
|
-
})(templateObject_1$
|
|
32995
|
+
})(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), hideInput);
|
|
32981
32996
|
var Content = styled$3.span.withConfig({
|
|
32982
32997
|
displayName: "ToggleButton__Content",
|
|
32983
32998
|
componentId: "sc-ya01sa-1"
|
|
32984
|
-
})(templateObject_2$
|
|
32985
|
-
var Container$
|
|
32999
|
+
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;\n cursor: pointer;\n ", "\n width: fit-content;\n ", "\n ", "\n ", "\n &::selection, *::selection {\n ", "\n }\n &:hover {\n ", "\n }\n"], ["\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;\n cursor: pointer;\n ", "\n width: fit-content;\n ", "\n ", "\n ", "\n &::selection, *::selection {\n ", "\n }\n &:hover {\n ", "\n }\n"])), buttonTokens.base, buttonTokens.appearance.rounded.base, buttonTokens.sizes.small.text.base, toggleButtonTokens.base, typographyTokens.selection.base, toggleButtonTokens.hover.base);
|
|
33000
|
+
var Container$2 = styled$3.label.withConfig({
|
|
32986
33001
|
displayName: "ToggleButton__Container",
|
|
32987
33002
|
componentId: "sc-ya01sa-2"
|
|
32988
33003
|
})(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n width: fit-content;\n ", ":checked + ", " {\n ", "\n }\n ", ":checked + ", ":hover {\n ", "\n }\n ", ":focus-visible + ", " {\n ", "\n }\n"], ["\n width: fit-content;\n ", ":checked + ", " {\n ", "\n }\n ", ":checked + ", ":hover {\n ", "\n }\n ", ":focus-visible + ", " {\n ", "\n }\n"])), Input, Content, toggleButtonTokens.checked.base, Input, Content, toggleButtonTokens.checked.hover.base, Input, Content, toggleButtonTokens.focus.base);
|
|
32989
|
-
var nextUniqueId$
|
|
33004
|
+
var nextUniqueId$2 = 0;
|
|
32990
33005
|
var ToggleButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32991
33006
|
var id = _a.id,
|
|
32992
33007
|
label = _a.label,
|
|
32993
33008
|
Icon = _a.Icon,
|
|
32994
33009
|
rest = __rest(_a, ["id", "label", "Icon"]);
|
|
32995
33010
|
|
|
32996
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "toggleButton-".concat(nextUniqueId$
|
|
33011
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "toggleButton-".concat(nextUniqueId$2++))[0];
|
|
32997
33012
|
|
|
32998
33013
|
var inputProps = __assign({
|
|
32999
33014
|
ref: ref,
|
|
@@ -33004,7 +33019,7 @@ var ToggleButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
33004
33019
|
var containerProps = {
|
|
33005
33020
|
htmlFor: uniqueId
|
|
33006
33021
|
};
|
|
33007
|
-
return jsxRuntime.exports.jsxs(Container$
|
|
33022
|
+
return jsxRuntime.exports.jsxs(Container$2, __assign({}, containerProps, {
|
|
33008
33023
|
children: [jsxRuntime.exports.jsx(Input, __assign({}, inputProps)), jsxRuntime.exports.jsxs(Content, {
|
|
33009
33024
|
children: [Icon && jsxRuntime.exports.jsx(IconWrapper$1, {
|
|
33010
33025
|
Icon: Icon,
|
|
@@ -33013,20 +33028,20 @@ var ToggleButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
33013
33028
|
})]
|
|
33014
33029
|
}));
|
|
33015
33030
|
});
|
|
33016
|
-
var templateObject_1$
|
|
33031
|
+
var templateObject_1$5, templateObject_2$3, templateObject_3$1;
|
|
33017
33032
|
|
|
33018
33033
|
var Group = styled$3.div.withConfig({
|
|
33019
33034
|
displayName: "ToggleButtonGroup__Group",
|
|
33020
33035
|
componentId: "sc-14ijdag-0"
|
|
33021
|
-
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), toggleButtonTokens.group.base, function (_a) {
|
|
33036
|
+
})(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), toggleButtonTokens.group.base, function (_a) {
|
|
33022
33037
|
var direction = _a.direction;
|
|
33023
|
-
return Ae(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: ", ";\n "], ["\n flex-direction: ", ";\n "])), direction);
|
|
33038
|
+
return Ae(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n flex-direction: ", ";\n "], ["\n flex-direction: ", ";\n "])), direction);
|
|
33024
33039
|
});
|
|
33025
|
-
var Container = styled$3.div.withConfig({
|
|
33040
|
+
var Container$1 = styled$3.div.withConfig({
|
|
33026
33041
|
displayName: "ToggleButtonGroup__Container",
|
|
33027
33042
|
componentId: "sc-14ijdag-1"
|
|
33028
33043
|
})(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), toggleButtonTokens.container.base);
|
|
33029
|
-
var nextUniqueId = 0;
|
|
33044
|
+
var nextUniqueId$1 = 0;
|
|
33030
33045
|
var ToggleButtonGroup = function ToggleButtonGroup(_a) {
|
|
33031
33046
|
var children = _a.children,
|
|
33032
33047
|
_b = _a.direction,
|
|
@@ -33035,7 +33050,7 @@ var ToggleButtonGroup = function ToggleButtonGroup(_a) {
|
|
|
33035
33050
|
labelId = _a.labelId,
|
|
33036
33051
|
props = __rest(_a, ["children", "direction", "label", "labelId"]);
|
|
33037
33052
|
|
|
33038
|
-
var uniqueLabelId = useState(labelId !== null && labelId !== void 0 ? labelId : "ToggleButtonGroupLabel-".concat(nextUniqueId++))[0];
|
|
33053
|
+
var uniqueLabelId = useState(labelId !== null && labelId !== void 0 ? labelId : "ToggleButtonGroupLabel-".concat(nextUniqueId$1++))[0];
|
|
33039
33054
|
var groupProps = {
|
|
33040
33055
|
direction: direction
|
|
33041
33056
|
};
|
|
@@ -33045,7 +33060,7 @@ var ToggleButtonGroup = function ToggleButtonGroup(_a) {
|
|
|
33045
33060
|
'aria-labelledby': label ? uniqueLabelId : undefined
|
|
33046
33061
|
}, props);
|
|
33047
33062
|
|
|
33048
|
-
return jsxRuntime.exports.jsxs(Container, __assign({}, containerProps, {
|
|
33063
|
+
return jsxRuntime.exports.jsxs(Container$1, __assign({}, containerProps, {
|
|
33049
33064
|
children: [!!label && jsxRuntime.exports.jsx(Typography, __assign({
|
|
33050
33065
|
as: "span",
|
|
33051
33066
|
typographyType: "supportingStyleLabel01",
|
|
@@ -33057,6 +33072,385 @@ var ToggleButtonGroup = function ToggleButtonGroup(_a) {
|
|
|
33057
33072
|
}))]
|
|
33058
33073
|
}));
|
|
33059
33074
|
};
|
|
33060
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
33075
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3;
|
|
33076
|
+
|
|
33077
|
+
var TabsContext = /*#__PURE__*/createContext({
|
|
33078
|
+
activeTab: 0,
|
|
33079
|
+
tabsId: '',
|
|
33080
|
+
handleTabChange: function handleTabChange() {
|
|
33081
|
+
return null;
|
|
33082
|
+
},
|
|
33083
|
+
tabListRef: null,
|
|
33084
|
+
tabPanelsRef: null,
|
|
33085
|
+
hasTabFocus: false,
|
|
33086
|
+
setHasTabFocus: function setHasTabFocus() {
|
|
33087
|
+
return null;
|
|
33088
|
+
},
|
|
33089
|
+
tabContentDirection: 'row',
|
|
33090
|
+
tabWidth: '150px'
|
|
33091
|
+
});
|
|
33092
|
+
var useTabsContext = function useTabsContext() {
|
|
33093
|
+
return useContext(TabsContext);
|
|
33094
|
+
};
|
|
33095
|
+
|
|
33096
|
+
var Container = styled$3.div.withConfig({
|
|
33097
|
+
displayName: "Tabs__Container",
|
|
33098
|
+
componentId: "sc-7ta5g2-0"
|
|
33099
|
+
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
|
|
33100
|
+
var nextUniqueId = 0;
|
|
33101
|
+
var Tabs = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
33102
|
+
var id = _a.id,
|
|
33103
|
+
_b = _a.activeTab,
|
|
33104
|
+
activeTab = _b === void 0 ? 0 : _b,
|
|
33105
|
+
onChange = _a.onChange,
|
|
33106
|
+
_c = _a.tabContentDirection,
|
|
33107
|
+
tabContentDirection = _c === void 0 ? 'row' : _c,
|
|
33108
|
+
_d = _a.tabWidth,
|
|
33109
|
+
tabWidth = _d === void 0 ? '150px' : _d,
|
|
33110
|
+
rest = __rest(_a, ["id", "activeTab", "onChange", "tabContentDirection", "tabWidth"]);
|
|
33111
|
+
|
|
33112
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "tabs-".concat(nextUniqueId++))[0];
|
|
33113
|
+
|
|
33114
|
+
var _e = useState(activeTab),
|
|
33115
|
+
thisActiveTab = _e[0],
|
|
33116
|
+
setActiveTab = _e[1];
|
|
33117
|
+
|
|
33118
|
+
var _f = useState(false),
|
|
33119
|
+
hasTabFocus = _f[0],
|
|
33120
|
+
setHasTabFocus = _f[1];
|
|
33121
|
+
|
|
33122
|
+
var tabListRef = useRef(null);
|
|
33123
|
+
var tabPanelsRef = useRef(null);
|
|
33124
|
+
|
|
33125
|
+
var handleTabChange = function handleTabChange(index) {
|
|
33126
|
+
setActiveTab(index);
|
|
33127
|
+
onChange && onChange(index);
|
|
33128
|
+
};
|
|
33129
|
+
|
|
33130
|
+
var containerProps = __assign({
|
|
33131
|
+
ref: ref,
|
|
33132
|
+
id: uniqueId
|
|
33133
|
+
}, rest);
|
|
33134
|
+
|
|
33135
|
+
return jsxRuntime.exports.jsx(TabsContext.Provider, __assign({
|
|
33136
|
+
value: {
|
|
33137
|
+
tabsId: uniqueId,
|
|
33138
|
+
activeTab: thisActiveTab,
|
|
33139
|
+
handleTabChange: handleTabChange,
|
|
33140
|
+
tabListRef: tabListRef,
|
|
33141
|
+
tabPanelsRef: tabPanelsRef,
|
|
33142
|
+
hasTabFocus: hasTabFocus,
|
|
33143
|
+
setHasTabFocus: setHasTabFocus,
|
|
33144
|
+
tabContentDirection: tabContentDirection,
|
|
33145
|
+
tabWidth: tabWidth
|
|
33146
|
+
}
|
|
33147
|
+
}, {
|
|
33148
|
+
children: jsxRuntime.exports.jsx(Container, __assign({}, containerProps))
|
|
33149
|
+
}));
|
|
33150
|
+
});
|
|
33151
|
+
var templateObject_1$3;
|
|
33152
|
+
|
|
33153
|
+
var Border = ddsBaseTokens.border,
|
|
33154
|
+
Spacing = ddsBaseTokens.spacing,
|
|
33155
|
+
Colors = ddsBaseTokens.colors;
|
|
33156
|
+
var tabListBase = {
|
|
33157
|
+
transition: '0.2s',
|
|
33158
|
+
display: 'flex',
|
|
33159
|
+
borderBottom: "".concat(Border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(Border.BordersDdsBorderStyleLightStroke),
|
|
33160
|
+
overflowX: 'auto'
|
|
33161
|
+
};
|
|
33162
|
+
|
|
33163
|
+
var tabListFocusBase = __assign({}, focusVisible);
|
|
33164
|
+
|
|
33165
|
+
var tabBase = __assign(__assign({}, removeButtonStyling), {
|
|
33166
|
+
display: 'flex',
|
|
33167
|
+
alignItems: 'center',
|
|
33168
|
+
justifyContent: 'center',
|
|
33169
|
+
borderBottom: "".concat(Border.BordersDdsBorderStyleLightStrokeWeight, " solid transparent"),
|
|
33170
|
+
color: Colors.DdsColorNeutralsGray7
|
|
33171
|
+
});
|
|
33172
|
+
|
|
33173
|
+
var tabRowBase = {
|
|
33174
|
+
flexDirection: 'row',
|
|
33175
|
+
padding: "".concat(Spacing.SizesDdsSpacingLocalX05, " ").concat(Spacing.SizesDdsSpacingLocalX05, " ").concat(Spacing.SizesDdsSpacingLocalX025, " ").concat(Spacing.SizesDdsSpacingLocalX05),
|
|
33176
|
+
gap: Spacing.SizesDdsSpacingLocalX05
|
|
33177
|
+
};
|
|
33178
|
+
var tabColumnBase = {
|
|
33179
|
+
flexDirection: 'column',
|
|
33180
|
+
padding: "".concat(Spacing.SizesDdsSpacingLocalX05, " ").concat(Spacing.SizesDdsSpacingLocalX025, " ").concat(Spacing.SizesDdsSpacingLocalX025, " ").concat(Spacing.SizesDdsSpacingLocalX025),
|
|
33181
|
+
gap: Spacing.SizesDdsSpacingLocalX025
|
|
33182
|
+
};
|
|
33183
|
+
var tabActiveBase = {
|
|
33184
|
+
backgroundColor: Colors.DdsColorInteractiveLightest,
|
|
33185
|
+
color: Colors.DdsColorInteractiveDarkest,
|
|
33186
|
+
boxShadow: "inset 0 -2px 0 0 ".concat(Colors.DdsColorInteractiveDarker),
|
|
33187
|
+
borderBottom: "1px solid ".concat(Colors.DdsColorInteractiveDarker)
|
|
33188
|
+
};
|
|
33189
|
+
var tabHoverBase = {
|
|
33190
|
+
color: Colors.DdsColorInteractiveDarkest,
|
|
33191
|
+
boxShadow: "inset 0 -2px 0 0 ".concat(Colors.DdsColorInteractiveDarker),
|
|
33192
|
+
borderBottom: "1px solid ".concat(Colors.DdsColorInteractiveDarker)
|
|
33193
|
+
};
|
|
33194
|
+
var tabActiveHoverBase = {
|
|
33195
|
+
backgroundColor: Colors.DdsColorInteractiveLightest,
|
|
33196
|
+
color: Colors.DdsColorInteractiveDarkest,
|
|
33197
|
+
boxShadow: "inset 0 -2px 0 0 ".concat(Colors.DdsColorInteractiveDarker),
|
|
33198
|
+
borderBottom: "1px solid ".concat(Colors.DdsColorInteractiveDarker)
|
|
33199
|
+
};
|
|
33200
|
+
|
|
33201
|
+
var tabFocusBase = __assign(__assign({}, focusVisible), {
|
|
33202
|
+
outlineOffset: '-1px'
|
|
33203
|
+
});
|
|
33204
|
+
|
|
33205
|
+
var tabPanelBase = {
|
|
33206
|
+
padding: Spacing.SizesDdsSpacingLocalX025
|
|
33207
|
+
};
|
|
33208
|
+
var tabsTokens = {
|
|
33209
|
+
tabList: {
|
|
33210
|
+
base: tabListBase,
|
|
33211
|
+
focus: {
|
|
33212
|
+
base: tabListFocusBase
|
|
33213
|
+
}
|
|
33214
|
+
},
|
|
33215
|
+
tab: {
|
|
33216
|
+
base: tabBase,
|
|
33217
|
+
direction: {
|
|
33218
|
+
row: {
|
|
33219
|
+
base: tabRowBase
|
|
33220
|
+
},
|
|
33221
|
+
column: {
|
|
33222
|
+
base: tabColumnBase
|
|
33223
|
+
}
|
|
33224
|
+
},
|
|
33225
|
+
active: {
|
|
33226
|
+
base: tabActiveBase
|
|
33227
|
+
},
|
|
33228
|
+
hover: {
|
|
33229
|
+
base: tabHoverBase,
|
|
33230
|
+
active: {
|
|
33231
|
+
base: tabActiveHoverBase
|
|
33232
|
+
}
|
|
33233
|
+
},
|
|
33234
|
+
focus: {
|
|
33235
|
+
base: tabFocusBase
|
|
33236
|
+
}
|
|
33237
|
+
},
|
|
33238
|
+
panel: {
|
|
33239
|
+
base: tabPanelBase
|
|
33240
|
+
}
|
|
33241
|
+
};
|
|
33242
|
+
|
|
33243
|
+
var Button = styled$3.button.withConfig({
|
|
33244
|
+
displayName: "Tab__Button",
|
|
33245
|
+
componentId: "sc-1dd8soq-0"
|
|
33246
|
+
})(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n transition: 0.2s;\n ", "\n width: ", ";\n\n ", ";\n\n ", "\n\n &:focus-visible {\n ", "\n }\n\n &:hover {\n ", "\n }\n"], ["\n transition: 0.2s;\n ", "\n width: ", ";\n\n ", ";\n\n ", "\n\n &:focus-visible {\n ", "\n }\n\n &:hover {\n ", "\n }\n"])), tabsTokens.tab.base, function (_a) {
|
|
33247
|
+
var width = _a.width;
|
|
33248
|
+
return width;
|
|
33249
|
+
}, function (_a) {
|
|
33250
|
+
var direction = _a.direction;
|
|
33251
|
+
return tabsTokens.tab.direction[direction].base;
|
|
33252
|
+
}, function (_a) {
|
|
33253
|
+
var active = _a.active;
|
|
33254
|
+
return active && Ae(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), tabsTokens.tab.active.base);
|
|
33255
|
+
}, tabsTokens.tab.focus.base, tabsTokens.tab.hover.base);
|
|
33256
|
+
var Tab = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
33257
|
+
var _b = _a.active,
|
|
33258
|
+
active = _b === void 0 ? false : _b,
|
|
33259
|
+
width = _a.width,
|
|
33260
|
+
Icon = _a.Icon,
|
|
33261
|
+
children = _a.children,
|
|
33262
|
+
focus = _a.focus,
|
|
33263
|
+
setFocus = _a.setFocus,
|
|
33264
|
+
index = _a.index,
|
|
33265
|
+
onClick = _a.onClick,
|
|
33266
|
+
onKeyDown = _a.onKeyDown,
|
|
33267
|
+
rest = __rest(_a, ["active", "width", "Icon", "children", "focus", "setFocus", "index", "onClick", "onKeyDown"]);
|
|
33268
|
+
|
|
33269
|
+
var itemRef = useRef(null);
|
|
33270
|
+
var combinedRef = useCombinedRef(ref, itemRef);
|
|
33271
|
+
|
|
33272
|
+
var _c = useTabsContext(),
|
|
33273
|
+
tabPanelsRef = _c.tabPanelsRef,
|
|
33274
|
+
hasTabFocus = _c.hasTabFocus,
|
|
33275
|
+
setHasTabFocus = _c.setHasTabFocus,
|
|
33276
|
+
tabContentDirection = _c.tabContentDirection,
|
|
33277
|
+
tabWidth = _c.tabWidth;
|
|
33278
|
+
|
|
33279
|
+
useEffect(function () {
|
|
33280
|
+
var _a;
|
|
33281
|
+
|
|
33282
|
+
if (focus) {
|
|
33283
|
+
(_a = itemRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
33284
|
+
setHasTabFocus(true);
|
|
33285
|
+
console.log('setHasTabFocus if(focus)', hasTabFocus);
|
|
33286
|
+
}
|
|
33287
|
+
}, [focus]);
|
|
33288
|
+
useOnKeyDown('Tab', function () {
|
|
33289
|
+
var _a;
|
|
33290
|
+
|
|
33291
|
+
setHasTabFocus(false);
|
|
33292
|
+
(_a = tabPanelsRef === null || tabPanelsRef === void 0 ? void 0 : tabPanelsRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
33293
|
+
});
|
|
33294
|
+
var handleSelect = useCallback(function () {
|
|
33295
|
+
if (setFocus && index) {
|
|
33296
|
+
setFocus(index);
|
|
33297
|
+
}
|
|
33298
|
+
}, [index, setFocus]);
|
|
33299
|
+
|
|
33300
|
+
var handleOnClick = function handleOnClick(e) {
|
|
33301
|
+
handleSelect();
|
|
33302
|
+
onClick && onClick(e);
|
|
33303
|
+
};
|
|
33304
|
+
|
|
33305
|
+
var handleOnKeyDown = function handleOnKeyDown(e) {
|
|
33306
|
+
handleSelect();
|
|
33307
|
+
onKeyDown && onKeyDown(e);
|
|
33308
|
+
};
|
|
33309
|
+
|
|
33310
|
+
var buttonProps = __assign({
|
|
33311
|
+
ref: combinedRef,
|
|
33312
|
+
'aria-selected': active,
|
|
33313
|
+
role: 'tab',
|
|
33314
|
+
active: active,
|
|
33315
|
+
width: width !== null && width !== void 0 ? width : tabWidth,
|
|
33316
|
+
direction: tabContentDirection,
|
|
33317
|
+
onClick: handleOnClick,
|
|
33318
|
+
onKeyDown: handleOnKeyDown,
|
|
33319
|
+
tabIndex: focus ? 0 : -1
|
|
33320
|
+
}, rest);
|
|
33321
|
+
|
|
33322
|
+
return jsxRuntime.exports.jsxs(Button, __assign({}, buttonProps, {
|
|
33323
|
+
children: [Icon && jsxRuntime.exports.jsx(IconWrapper$1, {
|
|
33324
|
+
Icon: Icon,
|
|
33325
|
+
iconSize: "inline"
|
|
33326
|
+
}), jsxRuntime.exports.jsx("span", {
|
|
33327
|
+
children: children
|
|
33328
|
+
})]
|
|
33329
|
+
}));
|
|
33330
|
+
});
|
|
33331
|
+
var templateObject_1$2, templateObject_2$1;
|
|
33332
|
+
|
|
33333
|
+
var TabRow = styled$3.div.withConfig({
|
|
33334
|
+
displayName: "TabList__TabRow",
|
|
33335
|
+
componentId: "sc-1ldr0lz-0"
|
|
33336
|
+
})(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n ", "\n ", "\n scroll-snap-type: x mandatory;\n @media (prefers-reduced-motion: no-preference) {\n scroll-behavior: smooth;\n }\n &:focus-visible {\n ", "\n }\n &:focus-visible button {\n outline: none;\n }\n"], ["\n ", "\n ", "\n scroll-snap-type: x mandatory;\n @media (prefers-reduced-motion: no-preference) {\n scroll-behavior: smooth;\n }\n &:focus-visible {\n ", "\n }\n &:focus-visible button {\n outline: none;\n }\n"])), tabsTokens.tabList.base, scrollbarStyling, tabsTokens.tabList.focus.base);
|
|
33337
|
+
var TabList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
33338
|
+
var children = _a.children,
|
|
33339
|
+
id = _a.id,
|
|
33340
|
+
onFocus = _a.onFocus,
|
|
33341
|
+
rest = __rest(_a, ["children", "id", "onFocus"]);
|
|
33342
|
+
|
|
33343
|
+
var _b = useTabsContext(),
|
|
33344
|
+
activeTab = _b.activeTab,
|
|
33345
|
+
tabsId = _b.tabsId,
|
|
33346
|
+
handleTabChange = _b.handleTabChange,
|
|
33347
|
+
tabListRef = _b.tabListRef,
|
|
33348
|
+
hasTabFocus = _b.hasTabFocus,
|
|
33349
|
+
tabPanelsRef = _b.tabPanelsRef,
|
|
33350
|
+
setHasTabFocus = _b.setHasTabFocus;
|
|
33351
|
+
_b.tabWidth;
|
|
33352
|
+
|
|
33353
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "".concat(tabsId, "-tablist"))[0];
|
|
33354
|
+
var childrenArray = Children.toArray(children).length;
|
|
33355
|
+
|
|
33356
|
+
var _c = useRoveFocus(childrenArray, !hasTabFocus, 'row'),
|
|
33357
|
+
focus = _c[0],
|
|
33358
|
+
setFocus = _c[1];
|
|
33359
|
+
|
|
33360
|
+
var combinedRef = useCombinedRef(ref, tabListRef);
|
|
33361
|
+
var tabListChildren = Children.map(children, function (child, index) {
|
|
33362
|
+
return /*#__PURE__*/isValidElement(child) && /*#__PURE__*/cloneElement(child, {
|
|
33363
|
+
id: "".concat(tabsId, "-tab-").concat(index),
|
|
33364
|
+
'aria-controls': "".concat(tabsId, "-panel-").concat(index),
|
|
33365
|
+
active: activeTab === index,
|
|
33366
|
+
index: index,
|
|
33367
|
+
focus: focus === index && hasTabFocus,
|
|
33368
|
+
setFocus: setFocus,
|
|
33369
|
+
onClick: function onClick() {
|
|
33370
|
+
return handleTabChange(index);
|
|
33371
|
+
}
|
|
33372
|
+
});
|
|
33373
|
+
});
|
|
33374
|
+
useOnKeyDown('Tab', function () {
|
|
33375
|
+
var _a;
|
|
33376
|
+
|
|
33377
|
+
setHasTabFocus(false);
|
|
33378
|
+
(_a = tabPanelsRef === null || tabPanelsRef === void 0 ? void 0 : tabPanelsRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
33379
|
+
});
|
|
33380
|
+
useOnClickOutside((tabListRef === null || tabListRef === void 0 ? void 0 : tabListRef.current) || null, function () {
|
|
33381
|
+
setHasTabFocus(false);
|
|
33382
|
+
});
|
|
33383
|
+
|
|
33384
|
+
var handleOnFocus = function handleOnFocus(event) {
|
|
33385
|
+
setHasTabFocus(true);
|
|
33386
|
+
onFocus && onFocus(event);
|
|
33387
|
+
};
|
|
33388
|
+
|
|
33389
|
+
var tabListProps = __assign({
|
|
33390
|
+
ref: combinedRef,
|
|
33391
|
+
role: 'tablist',
|
|
33392
|
+
'aria-label': 'Bruk venste og høyre piltast for å bla',
|
|
33393
|
+
id: uniqueId,
|
|
33394
|
+
tabIndex: 0,
|
|
33395
|
+
onFocus: handleOnFocus
|
|
33396
|
+
}, rest);
|
|
33397
|
+
|
|
33398
|
+
return jsxRuntime.exports.jsx(TabRow, __assign({}, tabListProps, {
|
|
33399
|
+
children: tabListChildren
|
|
33400
|
+
}));
|
|
33401
|
+
});
|
|
33402
|
+
var templateObject_1$1;
|
|
33403
|
+
|
|
33404
|
+
var Panel = styled$3.div.withConfig({
|
|
33405
|
+
displayName: "TabPanel__Panel",
|
|
33406
|
+
componentId: "sc-vkzivq-0"
|
|
33407
|
+
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n transition: 0.2s;\n ", "\n ", "\n &:focus-visible {\n ", "\n }\n"], ["\n transition: 0.2s;\n ", "\n ", "\n &:focus-visible {\n ", "\n }\n"])), tabsTokens.panel.base, function (_a) {
|
|
33408
|
+
var active = _a.active;
|
|
33409
|
+
return !active && Ae(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none;\n "], ["\n display: none;\n "])));
|
|
33410
|
+
}, focusVisible);
|
|
33411
|
+
var TabPanel = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
33412
|
+
var _b = _a.active,
|
|
33413
|
+
active = _b === void 0 ? false : _b,
|
|
33414
|
+
children = _a.children,
|
|
33415
|
+
rest = __rest(_a, ["active", "children"]);
|
|
33416
|
+
|
|
33417
|
+
var panelProps = __assign({
|
|
33418
|
+
ref: ref,
|
|
33419
|
+
tabIndex: 0,
|
|
33420
|
+
role: 'tabpanel',
|
|
33421
|
+
active: active
|
|
33422
|
+
}, rest);
|
|
33423
|
+
|
|
33424
|
+
return jsxRuntime.exports.jsx(Panel, __assign({}, panelProps, {
|
|
33425
|
+
children: children
|
|
33426
|
+
}));
|
|
33427
|
+
});
|
|
33428
|
+
var templateObject_1, templateObject_2;
|
|
33429
|
+
|
|
33430
|
+
var TabPanels = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
33431
|
+
var children = _a.children,
|
|
33432
|
+
rest = __rest(_a, ["children"]);
|
|
33433
|
+
|
|
33434
|
+
var _b = useTabsContext(),
|
|
33435
|
+
activeTab = _b.activeTab,
|
|
33436
|
+
tabsId = _b.tabsId,
|
|
33437
|
+
tabPanelsRef = _b.tabPanelsRef;
|
|
33438
|
+
|
|
33439
|
+
var combinedRef = useCombinedRef(ref, tabPanelsRef);
|
|
33440
|
+
var panelChildren = Children.map(children, function (child, index) {
|
|
33441
|
+
var active = index === activeTab;
|
|
33442
|
+
return /*#__PURE__*/isValidElement(child) && /*#__PURE__*/cloneElement(child, {
|
|
33443
|
+
id: "".concat(tabsId, "-panel-").concat(index),
|
|
33444
|
+
'aria-labelledby': "".concat(tabsId, "-tab-").concat(index),
|
|
33445
|
+
active: active,
|
|
33446
|
+
'aria-expanded': active
|
|
33447
|
+
});
|
|
33448
|
+
});
|
|
33449
|
+
return jsxRuntime.exports.jsx("div", __assign({
|
|
33450
|
+
ref: combinedRef
|
|
33451
|
+
}, rest, {
|
|
33452
|
+
children: panelChildren
|
|
33453
|
+
}));
|
|
33454
|
+
});
|
|
33061
33455
|
|
|
33062
|
-
export { Body$1 as Body, Breadcrumb, Breadcrumbs, Button, Card, CardAccordion, CardAccordionBody, CardAccordionHeader, Cell, Checkbox, CheckboxGroup, Container$
|
|
33456
|
+
export { Body$1 as Body, Breadcrumb, Breadcrumbs, Button$1 as Button, Card, CardAccordion, CardAccordionBody, CardAccordionHeader, Cell, Checkbox, CheckboxGroup, Container$8 as Container, Datepicker, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, Divider, Drawer, DrawerGroup, Foot, GlobalMessage, Head, IconWrapper$1 as IconWrapper, InputMessage, InternalHeader, List, ListItem, LocalMessage, Modal, ModalActions, ModalBody, OverflowMenu, OverflowMenuGroup, OverflowMenuList, Pagination, Popover, PopoverGroup, RadioButton, RadioButtonGroup, Row, Search, Select, SkipToContent, SortCell, Spinner, Tab, TabList, TabPanel, TabPanels, Table, TableWrapper, Tabs, TextInput, ToggleButton, ToggleButtonGroup, Tooltip, Typography, getTextColor, isTextColor, searchFilter };
|