@bethinkpl/design-system 21.0.2 → 22.0.1
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 -4
- package/dist/design-system.umd.js +1533 -1485
- package/dist/design-system.umd.js.map +1 -1
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +1 -1
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +3 -284
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +3 -230
- package/dist/lib/js/components/PopOver/PopOver.consts.d.ts +1 -0
- package/dist/lib/js/components/SelectList/SelectList.vue.d.ts +3 -4
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +3 -260
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -1
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -1
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +2 -1
- package/docs/iframe.html +1 -1
- package/docs/main.3376b2f2.iframe.bundle.js +1 -0
- package/docs/project.json +1 -1
- package/lib/js/components/BadgeScore/BadgeScore.spec.ts +40 -40
- package/lib/js/components/BadgeScore/BadgeScore.vue +20 -20
- package/lib/js/components/Banner/Banner.vue +28 -29
- package/lib/js/components/Buttons/Button/Button.spec.ts +22 -22
- package/lib/js/components/Buttons/Button/Button.vue +17 -17
- package/lib/js/components/Buttons/IconButton/IconButton.vue +47 -47
- package/lib/js/components/Cards/Card/Card.spec.ts +9 -7
- package/lib/js/components/Cards/Card/Card.vue +10 -9
- package/lib/js/components/Cards/CardExpandable/CardExpandable.spec.ts +6 -6
- package/lib/js/components/Cards/CardExpandable/CardExpandable.vue +7 -7
- package/lib/js/components/Chip/Chip.spec.ts +24 -25
- package/lib/js/components/Chip/Chip.vue +19 -19
- package/lib/js/components/Divider/Divider.vue +16 -16
- package/lib/js/components/Drawer/Drawer.vue +16 -16
- package/lib/js/components/Drawer/DrawerContent/DrawerContent.vue +2 -2
- package/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue +2 -2
- package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue +19 -19
- package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue +5 -5
- package/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue +2 -2
- package/lib/js/components/Drawer/DrawerSection/DrawerSection.vue +1 -1
- package/lib/js/components/Drawer/DrawerTile/DrawerTile.vue +2 -2
- package/lib/js/components/Dropdown/Dropdown.vue +10 -10
- package/lib/js/components/Form/SelectionControl/SelectionControl.vue +27 -27
- package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +18 -18
- package/lib/js/components/Headers/PageHeader/PageHeader.vue +11 -11
- package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +40 -38
- package/lib/js/components/IconText/IconText.vue +22 -22
- package/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue +22 -22
- package/lib/js/components/Icons/Icon/Icon.vue +7 -7
- package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue +24 -24
- package/lib/js/components/Modal/Modal.vue +2 -0
- package/lib/js/components/Modals/Modal/Modal.vue +8 -8
- package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +1 -1
- package/lib/js/components/NumberInCircle/NumberInCircle.vue +27 -27
- package/lib/js/components/Outline/OutlineDivider/OutlineDivider.vue +2 -2
- package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +38 -34
- package/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.vue +2 -2
- package/lib/js/components/Pagination/Pagination.vue +17 -17
- package/lib/js/components/PopOver/PopOver.consts.ts +1 -0
- package/lib/js/components/PopOver/PopOver.vue +64 -50
- package/lib/js/components/ProgressBar/ProgressBar.vue +32 -32
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.spec.ts +6 -6
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue +14 -18
- package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue +9 -9
- package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue +11 -11
- package/lib/js/components/RichList/RichListItem/RichListItem.vue +52 -52
- package/lib/js/components/SectionTitle/SectionTitle.vue +4 -4
- package/lib/js/components/SelectList/SelectList.vue +2 -2
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +23 -23
- package/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue +2 -2
- package/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue +2 -2
- package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue +3 -3
- package/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.vue +5 -3
- package/lib/js/components/SelectionTile/SelectionTile.vue +21 -21
- package/lib/js/components/Statuses/AccessStatus/AccessStatus.vue +9 -10
- package/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue +7 -8
- package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +8 -8
- package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.spec.ts +8 -6
- package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +24 -24
- package/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue +2 -2
- package/lib/js/components/SurveyToggle/SurveyToggle.spec.ts +4 -4
- package/lib/js/components/SurveyToggle/SurveyToggle.vue +23 -19
- package/lib/js/components/Switch/Switch.vue +53 -44
- package/lib/js/components/TabItem/TabItem.spec.ts +2 -2
- package/lib/js/components/TabItem/TabItem.vue +11 -11
- package/lib/js/components/Tile/Tile.spec.ts +39 -39
- package/lib/js/components/Tile/Tile.vue +32 -29
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.spec.ts +8 -8
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.vue +16 -16
- package/lib/js/components/Toggles/ToggleButton/ToggleButton.vue +39 -39
- package/lib/js/components/Well/Well.vue +6 -6
- package/lib/js/styles/ColorsThemes/ColorsThemes.stories.ts +2 -2
- package/lib/js/styles/ColorsTokensPrimaryBodywork/ColorsTokensPrimaryBodywork.stories.ts +1 -1
- package/lib/js/styles/ColorsTokensPrimaryWnl/ColorsTokensPrimaryWnl.stories.ts +1 -1
- package/lib/js/styles/ItemsList.vue +3 -1
- package/lib/js/styles/TypographyTokensLms/TypographyTokensLms.stories.ts +1 -1
- package/lib/js/styles/TypographyVariables/TypographyVariables.stories.ts +1 -1
- package/lib/styles/components/_buttons.scss +38 -38
- package/lib/styles/components/_icons.scss +43 -25
- package/lib/styles/components/_items-list-item.scss +3 -0
- package/lib/styles/design-system.scss +1 -5
- package/lib/styles/modifiers/_typography.scss +14 -28
- package/lib/styles/settings/_icons.scss +1 -1
- package/lib/styles/settings/colors/_raw-bodywork.scss +1 -1
- package/lib/styles/settings/colors/_raw-wnl.scss +1 -1
- package/lib/styles/settings/colors/_tokens-bodywork-variables.scss +1 -1
- package/lib/styles/settings/colors/_tokens-wnl-variables.scss +1 -1
- package/lib/styles/storybook.scss +2 -1
- package/package.json +1 -1
- package/stylelint.config.js +1 -0
- package/tools/importers/SynchronizeColorsTokens.ts +4 -4
- package/tools/importers/helpers/modifiers.ts +1 -1
- package/docs/main.147130f0.iframe.bundle.js +0 -1
- package/lib/styles/components/_links.scss +0 -21
- package/lib/styles/modifiers/_layout.scss +0 -12
- package/lib/styles/modifiers/_media-queries.scss +0 -17
- package/lib/styles/modifiers/_shadows.scss +0 -7
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@import '../../styles/settings/spacings';
|
|
2
2
|
|
|
3
|
+
// This component isn't exported. It's only used in Storybook => no need to prefix class names.
|
|
4
|
+
/* stylelint-disable selector-class-pattern */
|
|
3
5
|
.itemsListItem {
|
|
4
6
|
width: 100%;
|
|
5
7
|
|
|
@@ -54,3 +56,4 @@
|
|
|
54
56
|
width: 50%;
|
|
55
57
|
}
|
|
56
58
|
}
|
|
59
|
+
/* stylelint-enable */
|
|
@@ -20,12 +20,8 @@
|
|
|
20
20
|
// Components
|
|
21
21
|
@import 'components/buttons';
|
|
22
22
|
@import 'components/icons';
|
|
23
|
-
@import 'components/links';
|
|
24
23
|
|
|
25
24
|
// Modifiers
|
|
26
|
-
@import 'modifiers/layout';
|
|
27
|
-
@import 'modifiers/media-queries';
|
|
28
|
-
@import 'modifiers/shadows';
|
|
29
25
|
@import 'modifiers/typography';
|
|
30
26
|
@import 'settings/colors/tokens';
|
|
31
27
|
@import 'settings/colors/tokens-wnl';
|
|
@@ -49,7 +45,7 @@ textarea {
|
|
|
49
45
|
font-family: $font-family;
|
|
50
46
|
}
|
|
51
47
|
|
|
52
|
-
html
|
|
48
|
+
html.-ds-thick-scrollbar {
|
|
53
49
|
@media #{breakpoint-m()} {
|
|
54
50
|
@include scrollbar(15px, var(--raw-gray-100));
|
|
55
51
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* stylelint-disable selector-class-pattern */
|
|
1
2
|
.-textLight-DEPRECATED {
|
|
2
3
|
font-weight: 300;
|
|
3
4
|
}
|
|
@@ -46,66 +47,51 @@
|
|
|
46
47
|
@include textS-DEPRECATED;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
.-textM {
|
|
50
|
+
.-textM-DEPRECATED {
|
|
50
51
|
@include textM-DEPRECATED;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
.-textL {
|
|
54
|
+
.-textL-DEPRECATED {
|
|
54
55
|
@include textL-DEPRECATED;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
.-textXL {
|
|
58
|
+
.-textXL-DEPRECATED {
|
|
58
59
|
@include textXL-DEPRECATED;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
.-headlineXXS {
|
|
62
|
+
.-headlineXXS-DEPRECATED {
|
|
62
63
|
@include headlineXXS-DEPRECATED;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
.-headlineXS {
|
|
66
|
+
.-headlineXS-DEPRECATED {
|
|
66
67
|
@include headlineXS-DEPRECATED;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
.-headlineS {
|
|
70
|
+
.-headlineS-DEPRECATED {
|
|
70
71
|
@include headlineS-DEPRECATED;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
.-headlineM {
|
|
74
|
+
.-headlineM-DEPRECATED {
|
|
74
75
|
@include headlineM-DEPRECATED;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
.-headlineL {
|
|
78
|
+
.-headlineL-DEPRECATED {
|
|
78
79
|
@include headlineL-DEPRECATED;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
|
-
.-headlineXL {
|
|
82
|
+
.-headlineXL-DEPRECATED {
|
|
82
83
|
@include headlineXL-DEPRECATED;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
.-titleS {
|
|
86
|
+
.-titleS-DEPRECATED {
|
|
86
87
|
@include titleS-DEPRECATED;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
.-titleM {
|
|
90
|
+
.-titleM-DEPRECATED {
|
|
90
91
|
@include titleM-DEPRECATED;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
.-titleL {
|
|
94
|
+
.-titleL-DEPRECATED {
|
|
94
95
|
@include titleL-DEPRECATED;
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
-
.-buttonXS {
|
|
98
|
-
@include buttonXS-DEPRECATED;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.-buttonS {
|
|
102
|
-
@include buttonS-DEPRECATED;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.-buttonM {
|
|
106
|
-
@include buttonM-DEPRECATED;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.-buttonL {
|
|
110
|
-
@include buttonL-DEPRECATED;
|
|
111
|
-
}
|
|
97
|
+
/* stylelint-enable */
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
$fontFamily: 'BlinkMacSystemFont', -apple-system, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
|
|
13
13
|
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
|
|
14
|
-
|
|
14
|
+
/* stylelint-disable selector-class-pattern */
|
|
15
15
|
html,
|
|
16
16
|
body {
|
|
17
17
|
font-family: 'Lato', sans-serif;
|
|
@@ -69,3 +69,4 @@ html {
|
|
|
69
69
|
.modalHeader {
|
|
70
70
|
@include displayHeading-xs-default-regular;
|
|
71
71
|
}
|
|
72
|
+
/* stylelint-enable */
|
package/package.json
CHANGED
package/stylelint.config.js
CHANGED
|
@@ -4,11 +4,11 @@ import { cssFileFirstLine } from './helpers/modifiers';
|
|
|
4
4
|
import { makeHexShortcut } from './helpers/colorsModifiers';
|
|
5
5
|
import { arrayToFile, jsonToFile } from './helpers/fileWriter';
|
|
6
6
|
import {
|
|
7
|
-
Dict,
|
|
8
|
-
ITokenJsonObject,
|
|
9
|
-
IResultJsonObject,
|
|
10
7
|
ColorsBinFiles,
|
|
11
8
|
ColorsConfigFileBin,
|
|
9
|
+
Dict,
|
|
10
|
+
IResultJsonObject,
|
|
11
|
+
ITokenJsonObject,
|
|
12
12
|
} from './helpers/structures';
|
|
13
13
|
|
|
14
14
|
const ImportColorsRaw = (
|
|
@@ -121,7 +121,7 @@ const ImportSingleTokenFile = (
|
|
|
121
121
|
let resultVariables: Array<string> = [];
|
|
122
122
|
|
|
123
123
|
if (isTheme) {
|
|
124
|
-
resultVariables.push('
|
|
124
|
+
resultVariables.push('.-ds-theme-' + themeName + ' {');
|
|
125
125
|
} else {
|
|
126
126
|
resultVariables.push(':root {');
|
|
127
127
|
}
|
|
@@ -34,7 +34,7 @@ export const kebabize = (str) => {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export const cssFileFirstLine = (isTheme: boolean, themeName: string | undefined) => {
|
|
37
|
-
return isTheme ? '
|
|
37
|
+
return isTheme ? '.-ds-theme-' + themeName + ' {' : cssFileRootFirstLine();
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export const cssFileRootFirstLine = () => {
|