@norges-domstoler/dds-components 9.2.0-beta.0 → 9.2.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/README.md +2 -1
- package/dist/assets/svg/bullets/jordskifterett_bullet1.svg.js +2 -2
- package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +2 -8
- package/dist/cjs/components/Button/Button.stories.d.ts +4 -4
- package/dist/cjs/components/Button/Button.styles.d.ts +1 -0
- package/dist/cjs/components/Button/Button.tokens.d.ts +294 -165
- package/dist/cjs/components/Card/Card.tokens.d.ts +17 -16
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.tokens.d.ts +28 -0
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/cjs/components/Chip/Chip.tokens.d.ts +8 -6
- package/dist/cjs/components/DescriptionList/DescriptionList.tokens.d.ts +6 -36
- package/dist/cjs/components/Divider/Divider.tokens.d.ts +11 -6
- package/dist/cjs/components/Drawer/Drawer.tokens.d.ts +3 -11
- package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +24 -22
- package/dist/cjs/components/Grid/Grid.d.ts +8 -7
- package/dist/cjs/components/Grid/Grid.tokens.d.ts +5 -5
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +3 -2
- package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +4 -9
- package/dist/cjs/components/List/List.d.ts +1 -1
- package/dist/cjs/components/List/List.tokens.d.ts +21 -9
- package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +49 -53
- package/dist/cjs/components/Modal/Modal.tokens.d.ts +5 -6
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +4 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +4 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +2 -8
- package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +8 -6
- package/dist/cjs/components/Pagination/Pagination.tokens.d.ts +7 -8
- package/dist/cjs/components/Popover/Popover.tokens.d.ts +0 -1
- package/dist/cjs/components/ProgressTracker/ProgressTracker.tokens.d.ts +9 -6
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +4 -4
- package/dist/cjs/components/RadioButton/RadioButtonGroup.d.ts +2 -4
- package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/cjs/components/Search/Search.tokens.d.ts +5 -24
- package/dist/cjs/components/Select/Select.tokens.d.ts +14 -127
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +2 -2
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/cjs/components/SkipToContent/SkipToContent.tokens.d.ts +5 -10
- package/dist/cjs/components/SplitButton/SplitButton.d.ts +11 -0
- package/dist/cjs/components/SplitButton/SplitButton.stories.d.ts +9 -0
- package/dist/cjs/components/SplitButton/index.d.ts +1 -0
- package/dist/cjs/components/Table/Table.tokens.d.ts +0 -19
- package/dist/cjs/components/Tabs/Tabs.tokens.d.ts +21 -22
- package/dist/cjs/components/Tag/Tag.d.ts +1 -1
- package/dist/cjs/components/Tag/Tag.tokens.d.ts +19 -14
- package/dist/cjs/components/TextInput/TextInput.tokens.d.ts +0 -3
- package/dist/cjs/components/ToggleBar/ToggleBar.tokens.d.ts +5 -32
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +23 -13
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/cjs/components/Tooltip/Tooltip.styles.d.ts +4 -1
- package/dist/cjs/components/Tooltip/Tooltip.tokens.d.ts +1 -2
- package/dist/cjs/components/Typography/Typography.utils.d.ts +195 -1
- package/dist/cjs/helpers/Input/Input.tokens.d.ts +2 -68
- package/dist/cjs/helpers/Input/Input.types.d.ts +4 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.styles.d.ts +5 -0
- package/dist/cjs/helpers/SelectionControl/SelectionControl.tokens.d.ts +11 -0
- package/dist/cjs/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +2 -0
- package/dist/cjs/helpers/TextOverflowEllipsis/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1475 -1823
- package/dist/cjs/utils/color.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.d.ts +2 -8
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +3 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -2
- package/dist/components/Button/Button.js +7 -4
- package/dist/components/Button/Button.stories.d.ts +4 -4
- package/dist/components/Button/Button.styles.d.ts +1 -0
- package/dist/components/Button/Button.styles.js +49 -24
- package/dist/components/Button/Button.tokens.d.ts +294 -165
- package/dist/components/Button/Button.tokens.js +232 -349
- package/dist/components/Card/Card.js +6 -5
- package/dist/components/Card/Card.tokens.d.ts +17 -16
- package/dist/components/Card/Card.tokens.js +26 -54
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.d.ts +28 -0
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.js +37 -0
- package/dist/components/Card/CardAccordion/CardAccordionBody.js +4 -3
- package/dist/components/Card/CardAccordion/CardAccordionHeader.js +9 -6
- package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/components/Checkbox/CheckboxGroup.js +3 -16
- package/dist/components/Chip/Chip.js +9 -9
- package/dist/components/Chip/Chip.tokens.d.ts +8 -6
- package/dist/components/Chip/Chip.tokens.js +8 -25
- package/dist/components/Chip/ChipGroup.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +3 -2
- package/dist/components/DescriptionList/DescriptionList.tokens.d.ts +6 -36
- package/dist/components/DescriptionList/DescriptionList.tokens.js +7 -18
- package/dist/components/DescriptionList/DescriptionListDesc.js +3 -2
- package/dist/components/Divider/Divider.js +6 -6
- package/dist/components/Divider/Divider.tokens.d.ts +11 -6
- package/dist/components/Divider/Divider.tokens.js +16 -16
- package/dist/components/Drawer/Drawer.js +11 -4
- package/dist/components/Drawer/Drawer.tokens.d.ts +3 -11
- package/dist/components/Drawer/Drawer.tokens.js +10 -26
- package/dist/components/GlobalMessage/GlobalMessage.js +13 -10
- package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +24 -22
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +45 -64
- package/dist/components/Grid/Grid.d.ts +8 -7
- package/dist/components/Grid/Grid.js +7 -5
- package/dist/components/Grid/Grid.tokens.d.ts +5 -5
- package/dist/components/Grid/Grid.tokens.js +5 -5
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +3 -2
- package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +4 -9
- package/dist/components/InternalHeader/InternalHeader.tokens.js +6 -6
- package/dist/components/InternalHeader/NavigationItem.js +3 -2
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +8 -7
- package/dist/components/List/List.tokens.d.ts +21 -9
- package/dist/components/List/List.tokens.js +26 -20
- package/dist/components/List/ListItem.js +2 -2
- package/dist/components/LocalMessage/LocalMessage.js +19 -15
- package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +49 -53
- package/dist/components/LocalMessage/LocalMessage.tokens.js +94 -127
- package/dist/components/Modal/Modal.js +9 -5
- package/dist/components/Modal/Modal.tokens.d.ts +5 -6
- package/dist/components/Modal/Modal.tokens.js +11 -31
- package/dist/components/Modal/ModalActions.js +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +4 -3
- package/dist/components/OverflowMenu/OverflowMenu.js +12 -3
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +4 -3
- package/dist/components/OverflowMenu/OverflowMenu.tokens.d.ts +2 -8
- package/dist/components/OverflowMenu/OverflowMenu.tokens.js +5 -5
- package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +8 -6
- package/dist/components/OverflowMenu/OverflowMenuGroup.js +1 -0
- package/dist/components/OverflowMenu/OverflowMenuItem.js +3 -2
- package/dist/components/Pagination/Pagination.js +13 -8
- package/dist/components/Pagination/Pagination.tokens.d.ts +7 -8
- package/dist/components/Pagination/Pagination.tokens.js +17 -16
- package/dist/components/Popover/Popover.tokens.d.ts +0 -1
- package/dist/components/Popover/Popover.tokens.js +0 -1
- package/dist/components/ProgressTracker/ProgressTracker.tokens.d.ts +9 -6
- package/dist/components/ProgressTracker/ProgressTracker.tokens.js +11 -9
- package/dist/components/ProgressTracker/ProgressTrackerItem.js +7 -6
- package/dist/components/RadioButton/RadioButton.stories.d.ts +4 -4
- package/dist/components/RadioButton/RadioButtonGroup.d.ts +2 -4
- package/dist/components/RadioButton/RadioButtonGroup.js +3 -15
- package/dist/components/RadioButton/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/components/Search/Search.js +3 -2
- package/dist/components/Search/Search.tokens.d.ts +5 -24
- package/dist/components/Search/Search.tokens.js +6 -5
- package/dist/components/Select/Select.js +5 -4
- package/dist/components/Select/Select.styles.js +13 -14
- package/dist/components/Select/Select.tokens.d.ts +14 -127
- package/dist/components/Select/Select.tokens.js +28 -36
- package/dist/components/SkipToContent/SkipToContent.d.ts +2 -2
- package/dist/components/SkipToContent/SkipToContent.js +7 -4
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/components/SkipToContent/SkipToContent.tokens.d.ts +5 -10
- package/dist/components/SkipToContent/SkipToContent.tokens.js +14 -37
- package/dist/components/Spinner/Spinner.js +1 -2
- package/dist/components/SplitButton/SplitButton.d.ts +11 -0
- package/dist/components/SplitButton/SplitButton.js +62 -0
- package/dist/components/SplitButton/SplitButton.stories.d.ts +9 -0
- package/dist/components/SplitButton/index.d.ts +1 -0
- package/dist/components/Table/Row.js +2 -1
- package/dist/components/Table/Table.tokens.d.ts +0 -19
- package/dist/components/Table/Table.tokens.js +1 -8
- package/dist/components/Tabs/Tab.js +8 -5
- package/dist/components/Tabs/TabPanel.js +4 -3
- package/dist/components/Tabs/Tabs.tokens.d.ts +21 -22
- package/dist/components/Tabs/Tabs.tokens.js +31 -79
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +8 -21
- package/dist/components/Tag/Tag.tokens.d.ts +19 -14
- package/dist/components/Tag/Tag.tokens.js +14 -41
- package/dist/components/TextArea/TextArea.js +3 -2
- package/dist/components/TextInput/TextInput.tokens.d.ts +0 -3
- package/dist/components/TextInput/TextInput.tokens.js +0 -3
- package/dist/components/ToggleBar/ToggleBar.tokens.d.ts +5 -32
- package/dist/components/ToggleBar/ToggleBar.tokens.js +7 -5
- package/dist/components/ToggleBar/ToggleRadio.styles.js +3 -2
- package/dist/components/ToggleButton/ToggleButton.js +14 -8
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.tokens.d.ts +23 -13
- package/dist/components/ToggleButton/ToggleButton.tokens.js +26 -49
- package/dist/components/ToggleButton/ToggleButtonGroup.js +2 -2
- package/dist/components/Tooltip/Tooltip.js +6 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.styles.d.ts +4 -1
- package/dist/components/Tooltip/Tooltip.styles.js +15 -4
- package/dist/components/Tooltip/Tooltip.tokens.d.ts +1 -2
- package/dist/components/Tooltip/Tooltip.tokens.js +14 -24
- package/dist/components/Typography/Typography.utils.d.ts +195 -1
- package/dist/components/Typography/Typography.utils.js +7 -1
- package/dist/helpers/Input/Input.styles.js +3 -2
- package/dist/helpers/Input/Input.tokens.d.ts +2 -68
- package/dist/helpers/Input/Input.tokens.js +10 -46
- package/dist/helpers/Input/Input.types.d.ts +4 -0
- package/dist/helpers/SelectionControl/SelectionControl.styles.d.ts +5 -0
- package/dist/helpers/SelectionControl/SelectionControl.styles.js +15 -2
- package/dist/helpers/SelectionControl/SelectionControl.tokens.d.ts +11 -0
- package/dist/helpers/SelectionControl/SelectionControl.tokens.js +14 -1
- package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +2 -0
- package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.js +12 -0
- package/dist/helpers/TextOverflowEllipsis/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/utils/color.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -4
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -17
- package/dist/cjs/components/List/ListItem.tokens.d.ts +0 -5
- package/dist/cjs/components/RadioButton/RadioButtonGroup.tokens.d.ts +0 -19
- package/dist/cjs/components/Spinner/Spinner.tokens.d.ts +0 -6
- package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +0 -4
- package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.js +0 -12
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +0 -17
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.js +0 -38
- package/dist/components/Checkbox/CheckboxGroup.tokens.js +0 -20
- package/dist/components/List/ListItem.tokens.d.ts +0 -5
- package/dist/components/List/ListItem.tokens.js +0 -12
- package/dist/components/RadioButton/RadioButtonGroup.tokens.d.ts +0 -19
- package/dist/components/RadioButton/RadioButtonGroup.tokens.js +0 -32
- package/dist/components/Spinner/Spinner.tokens.d.ts +0 -6
- package/dist/components/Spinner/Spinner.tokens.js +0 -13
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
3
|
+
var spacing = ddsBaseTokens.spacing,
|
|
4
|
+
colors = ddsBaseTokens.colors;
|
|
5
|
+
var list = {
|
|
6
|
+
gap: spacing.SizesDdsSpacingLocalX075
|
|
7
|
+
};
|
|
8
|
+
var truncationIcon = {
|
|
9
|
+
color: colors.DdsColorNeutralsGray7
|
|
10
|
+
};
|
|
11
|
+
var outerContainer = {
|
|
12
|
+
gap: spacing.SizesDdsSpacingLocalX075
|
|
13
|
+
};
|
|
14
|
+
var indicatorsContainer = {
|
|
15
|
+
gap: spacing.SizesDdsSpacingLocalX075
|
|
7
16
|
};
|
|
8
17
|
var paginationTokens = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
spacing: Spacing.SizesDdsSpacingLocalX075
|
|
14
|
-
},
|
|
15
|
-
list: {
|
|
16
|
-
base: listBase
|
|
17
|
-
},
|
|
18
|
-
paginationItem: {
|
|
19
|
-
spacing: Spacing.SizesDdsSpacingLocalX075
|
|
20
|
-
}
|
|
18
|
+
outerContainer: outerContainer,
|
|
19
|
+
indicatorsContainer: indicatorsContainer,
|
|
20
|
+
truncationIcon: truncationIcon,
|
|
21
|
+
list: list
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
export { paginationTokens };
|
|
@@ -5,7 +5,6 @@ var wrapper = {
|
|
|
5
5
|
padding: "".concat(spacing.SizesDdsSpacingLocalX075, " ").concat(spacing.SizesDdsSpacingLocalX1, " ").concat(spacing.SizesDdsSpacingLocalX15, " ").concat(spacing.SizesDdsSpacingLocalX1)
|
|
6
6
|
};
|
|
7
7
|
var closeButton = {
|
|
8
|
-
position: 'absolute',
|
|
9
8
|
top: spacing.SizesDdsSpacingLocalX025,
|
|
10
9
|
right: spacing.SizesDdsSpacingLocalX025
|
|
11
10
|
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { IconSize } from '../Icon';
|
|
2
|
+
import { StaticTypographyType } from '../Typography';
|
|
3
|
+
export declare const typographyTypes: {
|
|
4
|
+
number: StaticTypographyType;
|
|
5
|
+
label: StaticTypographyType;
|
|
6
|
+
};
|
|
2
7
|
export declare const progressTrackerTokens: {
|
|
3
8
|
itemsWrapper: {
|
|
4
9
|
gap: string;
|
|
@@ -15,7 +20,6 @@ export declare const progressTrackerTokens: {
|
|
|
15
20
|
size: string;
|
|
16
21
|
borderWidth: string;
|
|
17
22
|
iconSize: IconSize;
|
|
18
|
-
fontSize: string;
|
|
19
23
|
active: {
|
|
20
24
|
borderColor: string;
|
|
21
25
|
color: string;
|
|
@@ -48,17 +52,16 @@ export declare const progressTrackerTokens: {
|
|
|
48
52
|
};
|
|
49
53
|
};
|
|
50
54
|
itemText: {
|
|
51
|
-
|
|
52
|
-
fontSize: string;
|
|
55
|
+
textDecoration: string;
|
|
53
56
|
active: {
|
|
54
57
|
color: string;
|
|
55
|
-
|
|
58
|
+
textDecorationColor: string;
|
|
56
59
|
};
|
|
57
60
|
inactive: {
|
|
58
61
|
color: string;
|
|
59
|
-
|
|
62
|
+
textDecorationColor: string;
|
|
60
63
|
hover: {
|
|
61
|
-
|
|
64
|
+
textDecorationColor: string;
|
|
62
65
|
};
|
|
63
66
|
};
|
|
64
67
|
disabled: {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
2
|
|
|
3
3
|
var colors = ddsBaseTokens.colors,
|
|
4
|
-
spacing = ddsBaseTokens.spacing
|
|
5
|
-
|
|
4
|
+
spacing = ddsBaseTokens.spacing;
|
|
5
|
+
ddsBaseTokens.font;
|
|
6
|
+
var typographyTypes = {
|
|
7
|
+
number: 'bodySans01',
|
|
8
|
+
label: 'bodySans03'
|
|
9
|
+
};
|
|
6
10
|
var itemsWrapper = {
|
|
7
11
|
gap: spacing.SizesDdsSpacingLocalX0125
|
|
8
12
|
};
|
|
@@ -18,7 +22,6 @@ var itemNumber = {
|
|
|
18
22
|
size: '28px',
|
|
19
23
|
borderWidth: '2px',
|
|
20
24
|
iconSize: 'small',
|
|
21
|
-
fontSize: font.DdsFontBodySans01FontSize,
|
|
22
25
|
active: {
|
|
23
26
|
borderColor: colors.DdsColorInteractiveBase,
|
|
24
27
|
color: colors.DdsColorNeutralsWhite,
|
|
@@ -51,17 +54,16 @@ var itemNumber = {
|
|
|
51
54
|
}
|
|
52
55
|
};
|
|
53
56
|
var itemText = {
|
|
54
|
-
|
|
55
|
-
fontSize: font.DdsFontSupportingStyleLabel01FontSize,
|
|
57
|
+
textDecoration: 'underline',
|
|
56
58
|
active: {
|
|
57
59
|
color: colors.DdsColorNeutralsGray9,
|
|
58
|
-
|
|
60
|
+
textDecorationColor: colors.DdsColorNeutralsGray9
|
|
59
61
|
},
|
|
60
62
|
inactive: {
|
|
61
63
|
color: colors.DdsColorNeutralsGray7,
|
|
62
|
-
|
|
64
|
+
textDecorationColor: 'transparent',
|
|
63
65
|
hover: {
|
|
64
|
-
|
|
66
|
+
textDecorationColor: colors.DdsColorNeutralsGray7
|
|
65
67
|
}
|
|
66
68
|
},
|
|
67
69
|
disabled: {
|
|
@@ -77,4 +79,4 @@ var progressTrackerTokens = {
|
|
|
77
79
|
itemText: itemText
|
|
78
80
|
};
|
|
79
81
|
|
|
80
|
-
export { progressTrackerTokens };
|
|
82
|
+
export { progressTrackerTokens, typographyTypes };
|
|
@@ -10,9 +10,10 @@ import 'tslib';
|
|
|
10
10
|
import '../../icons/utils/StyledSvg.js';
|
|
11
11
|
import { CheckIcon } from '../../icons/tsx/check.js';
|
|
12
12
|
import { Icon } from '../Icon/Icon.js';
|
|
13
|
+
import { getFontStyling } from '../Typography/Typography.utils.js';
|
|
13
14
|
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
14
15
|
import { useProgressTrackerContext } from './ProgressTracker.context.js';
|
|
15
|
-
import { progressTrackerTokens } from './ProgressTracker.tokens.js';
|
|
16
|
+
import { progressTrackerTokens, typographyTypes } from './ProgressTracker.tokens.js';
|
|
16
17
|
|
|
17
18
|
var toItemState = function toItemState(active, completed, disabled) {
|
|
18
19
|
if (disabled) {
|
|
@@ -36,7 +37,7 @@ var ItemWrapper = styled.li.withConfig({
|
|
|
36
37
|
var ItemNumber = styled.div.withConfig({
|
|
37
38
|
displayName: "ProgressTrackerItem__ItemNumber",
|
|
38
39
|
componentId: "sc-1j9qaj9-1"
|
|
39
|
-
})(["border-radius:50%;border:", " solid;width:", ";height:", ";display:flex;align-items:center;justify-content:center;z-index:2;
|
|
40
|
+
})(["transition:background-color 0.2s,border-color 0.2s,color 0.2s;border-radius:50%;border:", " solid;width:", ";height:", ";display:flex;align-items:center;justify-content:center;z-index:2;", " font-weight:600;", ""], itemNumber.borderWidth, itemNumber.size, itemNumber.size, getFontStyling(typographyTypes.number), function (_ref) {
|
|
40
41
|
var state = _ref.state;
|
|
41
42
|
|
|
42
43
|
switch (state) {
|
|
@@ -59,17 +60,17 @@ var ItemNumber = styled.div.withConfig({
|
|
|
59
60
|
var ItemText = styled.div.withConfig({
|
|
60
61
|
displayName: "ProgressTrackerItem__ItemText",
|
|
61
62
|
componentId: "sc-1j9qaj9-2"
|
|
62
|
-
})(["
|
|
63
|
+
})(["", " text-align:start;text-decoration:", ";transition:text-decoration-color 0.2s;", ";"], getFontStyling(typographyTypes.label), itemText.textDecoration, function (_ref2) {
|
|
63
64
|
var state = _ref2.state;
|
|
64
65
|
|
|
65
66
|
switch (state) {
|
|
66
67
|
case 'activeCompleted':
|
|
67
68
|
case 'activeIncomplete':
|
|
68
|
-
return css(["color:", ";text-decoration
|
|
69
|
+
return css(["color:", ";text-decoration-color:", ";"], itemText.active.color, itemText.active.textDecorationColor);
|
|
69
70
|
|
|
70
71
|
case 'inactiveCompleted':
|
|
71
72
|
case 'inactiveIncomplete':
|
|
72
|
-
return css(["color:", ";text-decoration
|
|
73
|
+
return css(["color:", ";text-decoration-color:", ";"], itemText.inactive.color, itemText.inactive.textDecorationColor);
|
|
73
74
|
|
|
74
75
|
case 'disabled':
|
|
75
76
|
return css(["color:", ";text-decoration:", ";"], itemText.disabled.color, itemText.disabled.textDecoration);
|
|
@@ -91,7 +92,7 @@ var ItemContentWrapper = styled.div.withConfig({
|
|
|
91
92
|
}
|
|
92
93
|
}, ItemText, function () {
|
|
93
94
|
if (state !== 'disabled') {
|
|
94
|
-
return css(["text-decoration
|
|
95
|
+
return css(["text-decoration-color:", ";"], itemText.inactive.hover.textDecorationColor);
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
98
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RadioButtonProps } from '.';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "value" | "aria-describedby" | "onChange" | "checked" | "readOnly" | "required">, "id" | "className"> & {
|
|
5
5
|
label?: string | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
error?: boolean | undefined;
|
|
8
8
|
} & {
|
|
9
|
-
'aria-describedby'?: string | undefined;
|
|
10
|
-
onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
|
|
11
9
|
name?: string | undefined;
|
|
12
10
|
value?: string | number | readonly string[] | undefined;
|
|
11
|
+
'aria-describedby'?: string | undefined;
|
|
12
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
|
|
13
13
|
checked?: boolean | undefined;
|
|
14
14
|
readOnly?: boolean | undefined;
|
|
15
15
|
required?: boolean | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
children?: import("react").ReactNode;
|
|
18
18
|
} & {
|
|
19
|
-
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
|
19
|
+
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "value" | "aria-describedby" | "onChange" | "checked" | "readOnly" | "required"> | undefined;
|
|
20
20
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
21
|
argTypes: {
|
|
22
22
|
label: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, HTMLAttributes, ReactElement, Ref } from 'react';
|
|
2
|
-
import { BaseComponentPropsWithChildren } from '../../types';
|
|
3
|
-
declare type Direction = 'column' | 'row';
|
|
2
|
+
import { BaseComponentPropsWithChildren, Direction } from '../../types';
|
|
4
3
|
export declare type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
5
4
|
/** Gir alle barna `name` prop.*/
|
|
6
5
|
name?: string;
|
|
@@ -51,8 +50,7 @@ export declare const RadioButtonGroup: <T extends string | number = string>(prop
|
|
|
51
50
|
} & {
|
|
52
51
|
children?: import("react").ReactNode;
|
|
53
52
|
} & {
|
|
54
|
-
htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, "onChange"> | undefined;
|
|
53
|
+
htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, "onChange"> | undefined;
|
|
55
54
|
} & {
|
|
56
55
|
ref?: Ref<HTMLDivElement> | undefined;
|
|
57
56
|
}) => ReactElement;
|
|
58
|
-
export {};
|
|
@@ -2,7 +2,6 @@ import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBab
|
|
|
2
2
|
import { __rest } from 'tslib';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, useState, useId } from 'react';
|
|
5
|
-
import styled, { css } from 'styled-components';
|
|
6
5
|
import '../../helpers/Backdrop/Backdrop.js';
|
|
7
6
|
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
8
7
|
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
@@ -11,25 +10,14 @@ import '../../helpers/Input/Input.tokens.js';
|
|
|
11
10
|
import { renderInputMessage } from '../../helpers/Input/Input.utils.js';
|
|
12
11
|
import '../../helpers/Paper/Paper.js';
|
|
13
12
|
import { RequiredMarker } from '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
14
|
-
import { radioButtonGroupTokens } from './RadioButtonGroup.tokens.js';
|
|
15
13
|
import { RadioButtonGroupContext } from './RadioButtonGroupContext.js';
|
|
16
14
|
import { Typography } from '../Typography/Typography/Typography.js';
|
|
17
15
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
18
16
|
import '../Typography/Link/Link.js';
|
|
19
17
|
import { combineHandlers } from '../../utils/combineHandlers.js';
|
|
20
18
|
import '../../utils/color.js';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
displayName: "RadioButtonGroup__Container",
|
|
24
|
-
componentId: "sc-1xsll60-0"
|
|
25
|
-
})(["display:flex;flex-direction:column;", ""], radioButtonGroupTokens.container.base);
|
|
26
|
-
var GroupContainer = styled.div.withConfig({
|
|
27
|
-
displayName: "RadioButtonGroup__GroupContainer",
|
|
28
|
-
componentId: "sc-1xsll60-1"
|
|
29
|
-
})(["display:flex;", ""], function (_ref) {
|
|
30
|
-
var direction = _ref.direction;
|
|
31
|
-
return css(["flex-direction:", ";", ""], direction, radioButtonGroupTokens.groupContainer.direction[direction].base);
|
|
32
|
-
});
|
|
19
|
+
import { OuterGroupContainer, GroupContainer } from '../../helpers/SelectionControl/SelectionControl.styles.js';
|
|
20
|
+
import '../../helpers/SelectionControl/SelectionControl.tokens.js';
|
|
33
21
|
|
|
34
22
|
var RadioButtonGroupInner = function RadioButtonGroupInner(props, ref) {
|
|
35
23
|
var name = props.name,
|
|
@@ -79,7 +67,7 @@ var RadioButtonGroupInner = function RadioButtonGroupInner(props, ref) {
|
|
|
79
67
|
value: groupValue,
|
|
80
68
|
onChange: handleChange
|
|
81
69
|
};
|
|
82
|
-
return jsxs(
|
|
70
|
+
return jsxs(OuterGroupContainer, Object.assign({}, getBaseHTMLProps(id, className, Object.assign(Object.assign({}, htmlProps), {
|
|
83
71
|
'aria-required': ariaRequired
|
|
84
72
|
}), rest), {
|
|
85
73
|
ref: ref
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
tip?: string | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
readOnly?: boolean | undefined;
|
|
13
|
-
direction?: ("
|
|
13
|
+
direction?: import("../../types").Direction | undefined;
|
|
14
14
|
value?: T | undefined;
|
|
15
15
|
groupId?: string | undefined;
|
|
16
16
|
} & {
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef, useId } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { Button } from '../Button/Button.js';
|
|
6
|
-
import { searchTokens } from './Search.tokens.js';
|
|
6
|
+
import { searchTokens, typographyTypes } from './Search.tokens.js';
|
|
7
7
|
import '../../helpers/Backdrop/Backdrop.js';
|
|
8
8
|
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
9
9
|
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
@@ -20,6 +20,7 @@ import { SearchIcon } from '../../icons/tsx/search.js';
|
|
|
20
20
|
import '../Typography/Typography/Typography.js';
|
|
21
21
|
import { Label } from '../Typography/Label/Label.js';
|
|
22
22
|
import '../Typography/Link/Link.js';
|
|
23
|
+
import { getFontStyling } from '../Typography/Typography.utils.js';
|
|
23
24
|
|
|
24
25
|
var input = searchTokens.input,
|
|
25
26
|
outerContainer = searchTokens.outerContainer,
|
|
@@ -44,7 +45,7 @@ var Input = styled(Input$1).withConfig({
|
|
|
44
45
|
componentId: "sc-1ax3s9s-0"
|
|
45
46
|
})(["&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}padding-right:", ";", ""], input.base.paddingRight, function (_ref) {
|
|
46
47
|
var componentSize = _ref.componentSize;
|
|
47
|
-
return css(["padding-top:", ";padding-bottom:", ";padding-left:", ";", ""], input.sizes[componentSize].paddingTop, input.sizes[componentSize].paddingBottom, input.sizes[componentSize].paddingLeft,
|
|
48
|
+
return css(["padding-top:", ";padding-bottom:", ";padding-left:", ";", ""], input.sizes[componentSize].paddingTop, input.sizes[componentSize].paddingBottom, input.sizes[componentSize].paddingLeft, getFontStyling(typographyTypes[componentSize]));
|
|
48
49
|
});
|
|
49
50
|
var StyledIcon = styled(Icon).withConfig({
|
|
50
51
|
displayName: "Search__StyledIcon",
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { StaticTypographyType } from '../Typography';
|
|
2
|
+
import { SearchSize } from './Search';
|
|
3
|
+
export declare const typographyTypes: {
|
|
4
|
+
[k in SearchSize]: StaticTypographyType;
|
|
5
|
+
};
|
|
1
6
|
export declare const searchTokens: {
|
|
2
7
|
input: {
|
|
3
8
|
base: {
|
|
@@ -6,40 +11,16 @@ export declare const searchTokens: {
|
|
|
6
11
|
};
|
|
7
12
|
sizes: {
|
|
8
13
|
small: {
|
|
9
|
-
font: {
|
|
10
|
-
lineHeight: any;
|
|
11
|
-
fontSize: string;
|
|
12
|
-
letterSpacing: any;
|
|
13
|
-
fontFamily: any;
|
|
14
|
-
fontWeight: any;
|
|
15
|
-
fontStyle: any;
|
|
16
|
-
};
|
|
17
14
|
paddingTop: string;
|
|
18
15
|
paddingBottom: string;
|
|
19
16
|
paddingLeft: string;
|
|
20
17
|
};
|
|
21
18
|
medium: {
|
|
22
|
-
font: {
|
|
23
|
-
lineHeight: any;
|
|
24
|
-
fontSize: string;
|
|
25
|
-
letterSpacing: any;
|
|
26
|
-
fontFamily: any;
|
|
27
|
-
fontWeight: any;
|
|
28
|
-
fontStyle: any;
|
|
29
|
-
};
|
|
30
19
|
paddingTop: string;
|
|
31
20
|
paddingBottom: string;
|
|
32
21
|
paddingLeft: string;
|
|
33
22
|
};
|
|
34
23
|
large: {
|
|
35
|
-
font: {
|
|
36
|
-
lineHeight: any;
|
|
37
|
-
fontSize: string;
|
|
38
|
-
letterSpacing: any;
|
|
39
|
-
fontFamily: any;
|
|
40
|
-
fontWeight: any;
|
|
41
|
-
fontStyle: any;
|
|
42
|
-
};
|
|
43
24
|
paddingTop: string;
|
|
44
25
|
paddingBottom: string;
|
|
45
26
|
paddingLeft: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { ddsBaseTokens, ddsReferenceTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
2
|
|
|
3
3
|
var spacing = ddsBaseTokens.spacing,
|
|
4
|
-
fontPackages = ddsBaseTokens.fontPackages,
|
|
5
4
|
iconSizes = ddsBaseTokens.iconSizes;
|
|
6
5
|
var textDefault = ddsReferenceTokens.textDefault;
|
|
6
|
+
var typographyTypes = {
|
|
7
|
+
small: 'bodySans01',
|
|
8
|
+
medium: 'bodySans02',
|
|
9
|
+
large: 'bodySans04'
|
|
10
|
+
};
|
|
7
11
|
var paddingLeftSmall = "".concat(spacing.SizesDdsSpacingLocalX075NumberPx + iconSizes.DdsIconsizeSmallNumberPx + spacing.SizesDdsSpacingLocalX05NumberPx, "px");
|
|
8
12
|
var paddingLeftMedium = "".concat(spacing.SizesDdsSpacingLocalX075NumberPx + iconSizes.DdsIconsizeMediumNumberPx + spacing.SizesDdsSpacingLocalX05NumberPx, "px");
|
|
9
13
|
var paddingLeftLarge = "".concat(spacing.SizesDdsSpacingLocalX075NumberPx + iconSizes.DdsIconsizeMediumNumberPx + spacing.SizesDdsSpacingLocalX05NumberPx, "px");
|
|
@@ -14,19 +18,16 @@ var input = {
|
|
|
14
18
|
},
|
|
15
19
|
sizes: {
|
|
16
20
|
small: {
|
|
17
|
-
font: fontPackages.body_sans_01.base,
|
|
18
21
|
paddingTop: spacing.SizesDdsSpacingLocalX05,
|
|
19
22
|
paddingBottom: spacing.SizesDdsSpacingLocalX05,
|
|
20
23
|
paddingLeft: paddingLeftSmall
|
|
21
24
|
},
|
|
22
25
|
medium: {
|
|
23
|
-
font: fontPackages.body_sans_02.base,
|
|
24
26
|
paddingTop: spacing.SizesDdsSpacingLocalX075,
|
|
25
27
|
paddingBottom: spacing.SizesDdsSpacingLocalX075,
|
|
26
28
|
paddingLeft: paddingLeftMedium
|
|
27
29
|
},
|
|
28
30
|
large: {
|
|
29
|
-
font: fontPackages.body_sans_04.base,
|
|
30
31
|
paddingTop: spacing.SizesDdsSpacingLocalX1,
|
|
31
32
|
paddingBottom: spacing.SizesDdsSpacingLocalX1,
|
|
32
33
|
paddingLeft: paddingLeftLarge
|
|
@@ -61,4 +62,4 @@ var searchTokens = {
|
|
|
61
62
|
outerContainer: outerContainer
|
|
62
63
|
};
|
|
63
64
|
|
|
64
|
-
export { searchTokens };
|
|
65
|
+
export { searchTokens, typographyTypes };
|
|
@@ -36,11 +36,11 @@ var createSelectOptions = function createSelectOptions() {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
var DDSOption = function DDSOption(props) {
|
|
39
|
+
var DDSOption = function DDSOption(props, componentSize) {
|
|
40
40
|
return jsxs(Option, Object.assign({}, props, {
|
|
41
41
|
children: [props.isSelected && jsx(Icon, {
|
|
42
42
|
icon: CheckIcon,
|
|
43
|
-
iconSize:
|
|
43
|
+
iconSize: getFormInputIconSize(componentSize)
|
|
44
44
|
}), props.children]
|
|
45
45
|
}));
|
|
46
46
|
};
|
|
@@ -191,11 +191,12 @@ var SelectInner = function SelectInner(props, ref) {
|
|
|
191
191
|
components: {
|
|
192
192
|
Option: customOptionElement ? function (props) {
|
|
193
193
|
return CustomOption(props, customOptionElement);
|
|
194
|
-
} :
|
|
194
|
+
} : function (props) {
|
|
195
|
+
return DDSOption(props, componentSize);
|
|
196
|
+
},
|
|
195
197
|
NoOptionsMessage: DDSNoOptionsMessage,
|
|
196
198
|
Input: function Input(props) {
|
|
197
199
|
return DDSInput(Object.assign(Object.assign({}, props), {
|
|
198
|
-
required: required,
|
|
199
200
|
'aria-required': ariaRequired
|
|
200
201
|
}), hasErrorMessage, spaceSeparatedIdListGenerator([singleValueId, tip ? tipId : undefined, errorMessage ? errorMessageId : undefined]));
|
|
201
202
|
},
|
|
@@ -7,8 +7,9 @@ import { selection } from '../../helpers/styling/selection.js';
|
|
|
7
7
|
import '../ScrollableContainer/Scrollbar.js';
|
|
8
8
|
import '../ScrollableContainer/ScrollableContainer.js';
|
|
9
9
|
import { scrollbarStyling } from '../ScrollableContainer/scrollbarStyling.js';
|
|
10
|
-
import { selectTokens } from './Select.tokens.js';
|
|
10
|
+
import { selectTokens, typographyTypes } from './Select.tokens.js';
|
|
11
11
|
import { Icon } from '../Icon/Icon.js';
|
|
12
|
+
import { getFontStyling } from '../Typography/Typography.utils.js';
|
|
12
13
|
|
|
13
14
|
var _control = selectTokens.control,
|
|
14
15
|
_menu = selectTokens.menu,
|
|
@@ -35,7 +36,7 @@ var Container = styled.div.withConfig({
|
|
|
35
36
|
}, selection, function (_ref2) {
|
|
36
37
|
var componentSize = _ref2.componentSize,
|
|
37
38
|
isMulti = _ref2.isMulti;
|
|
38
|
-
return css([".", "__control{padding:", ";", "
|
|
39
|
+
return css([".", "__control{padding:", ";", "}.", "__option{", "}.", "__placeholder{", "}.", "__menu-notice--no-options{", "}"], prefix, isMulti && componentSize === 'tiny' ? _control.sizes.small.padding : isMulti && componentSize !== 'tiny' ? _control.isMulti.sizes[componentSize].padding : _control.sizes[componentSize].padding, getFontStyling(typographyTypes.control[componentSize], true), prefix, getFontStyling(typographyTypes.option[componentSize], true), prefix, getFontStyling(typographyTypes.placeholder[componentSize]), prefix, getFontStyling(typographyTypes.noOptionsMessage[componentSize]));
|
|
39
40
|
}, function (_ref3) {
|
|
40
41
|
var errorMessage = _ref3.errorMessage;
|
|
41
42
|
return errorMessage && css([".", "__control{", "}.", "__control:hover{", "}.", "__control:focus-within{", "}"], prefix, dangerInputfield, prefix, hoverDangerInputfield, prefix, focusInputfield);
|
|
@@ -121,10 +122,11 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
121
122
|
};
|
|
122
123
|
},
|
|
123
124
|
multiValueLabel: function multiValueLabel(provided) {
|
|
124
|
-
return Object.assign(Object.assign(Object.assign({}, provided), {
|
|
125
|
-
padding: _multiValueLabel.padding
|
|
125
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, provided), {
|
|
126
|
+
padding: _multiValueLabel.padding
|
|
127
|
+
}), getFontStyling(typographyTypes.multiValueLabel)), {
|
|
126
128
|
color: _multiValueLabel.color
|
|
127
|
-
})
|
|
129
|
+
});
|
|
128
130
|
},
|
|
129
131
|
multiValueRemove: function multiValueRemove(provided, state) {
|
|
130
132
|
return state.selectProps.isDisabled ? {
|
|
@@ -166,9 +168,8 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
166
168
|
};
|
|
167
169
|
},
|
|
168
170
|
groupHeading: function groupHeading() {
|
|
169
|
-
return Object.assign(Object.assign({
|
|
170
|
-
color: _groupHeading.color
|
|
171
|
-
}, _groupHeading.font), {
|
|
171
|
+
return Object.assign(Object.assign({}, getFontStyling(typographyTypes.groupHeading)), {
|
|
172
|
+
color: _groupHeading.color,
|
|
172
173
|
padding: _groupHeading.padding
|
|
173
174
|
});
|
|
174
175
|
},
|
|
@@ -181,15 +182,13 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
181
182
|
}, scrollbarStyling.webkit), scrollbarStyling.firefox);
|
|
182
183
|
},
|
|
183
184
|
option: function option(provided, state) {
|
|
184
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(
|
|
185
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, provided), {
|
|
185
186
|
cursor: 'pointer',
|
|
186
187
|
display: 'flex',
|
|
187
188
|
alignItems: 'center',
|
|
188
189
|
gap: _option.base.gap,
|
|
189
190
|
padding: _option.base.padding,
|
|
190
|
-
|
|
191
|
-
backgroundColor: _option.base.backgroundColor
|
|
192
|
-
}), _option.base.font), {
|
|
191
|
+
backgroundColor: _option.base.backgroundColor,
|
|
193
192
|
'@media (prefers-reduced-motion: no-preference)': {
|
|
194
193
|
transition: 'color 0.2s, background-color 0.2s'
|
|
195
194
|
},
|
|
@@ -205,10 +204,10 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
205
204
|
});
|
|
206
205
|
},
|
|
207
206
|
noOptionsMessage: function noOptionsMessage() {
|
|
208
|
-
return
|
|
207
|
+
return {
|
|
209
208
|
padding: _noOptionsMessage.padding,
|
|
210
209
|
color: _noOptionsMessage.color
|
|
211
|
-
}
|
|
210
|
+
};
|
|
212
211
|
},
|
|
213
212
|
clearIndicator: function clearIndicator() {
|
|
214
213
|
return {
|