@bethinkpl/design-system 36.1.2 → 37.0.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/design-system.css +1 -1
- package/dist/design-system.js +70 -70
- package/dist/design-system.js.map +1 -1
- package/lib/js/components/Badge/Badge.vue +3 -3
- package/lib/js/components/BadgeScore/BadgeScore.vue +4 -4
- package/lib/js/components/Banner/Banner.vue +19 -19
- package/lib/js/components/Buttons/IconButton/IconButton.vue +3 -3
- package/lib/js/components/Cards/Card/Card.vue +9 -9
- package/lib/js/components/Cards/CardExpandable/CardExpandable.vue +2 -2
- package/lib/js/components/Chip/Chip.vue +5 -5
- package/lib/js/components/DatePickers/DateBox/DateBox.vue +3 -3
- package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +4 -4
- package/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue +1 -1
- package/lib/js/components/Drawer/DrawerContent/DrawerContent.vue +2 -2
- package/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue +1 -1
- package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue +5 -5
- package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue +2 -2
- package/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue +1 -1
- package/lib/js/components/Drawer/DrawerTile/DrawerTile.vue +1 -1
- package/lib/js/components/Dropdown/Dropdown.vue +2 -2
- package/lib/js/components/Form/Checkbox/Checkbox.vue +6 -6
- package/lib/js/components/Form/CheckboxGroupField/CheckboxGroupField.vue +1 -1
- package/lib/js/components/Form/FormControlLabel/FormControlLabel.vue +3 -3
- package/lib/js/components/Form/FormField/FormField.vue +12 -12
- package/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.vue +1 -1
- package/lib/js/components/Form/InputField/InputField.vue +2 -2
- package/lib/js/components/Form/SelectionControl/SelectionControl.vue +12 -12
- package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +15 -15
- package/lib/js/components/Headers/PageHeader/PageHeader.vue +5 -5
- package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +20 -20
- package/lib/js/components/IconText/IconText.vue +3 -3
- package/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue +9 -9
- package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue +1 -1
- package/lib/js/components/Menu/Menu/Menu.vue +2 -2
- package/lib/js/components/Menu/MenuDivider/MenuDivider.vue +1 -1
- package/lib/js/components/Menu/MenuItem/MenuItem.vue +14 -14
- package/lib/js/components/Modal/Modal.vue +10 -10
- package/lib/js/components/Modals/Modal/Modal.vue +20 -20
- package/lib/js/components/NumberInCircle/NumberInCircle.vue +1 -1
- package/lib/js/components/Pagination/Pagination.vue +4 -4
- package/lib/js/components/PopOver/PopOver.vue +24 -24
- package/lib/js/components/ProgressBar/ProgressBar.vue +5 -5
- package/lib/js/components/ProgressBar/ProgressBarLabelDataWrapper.vue +4 -4
- package/lib/js/components/ProgressBar/ProgressBarLegend.vue +4 -4
- package/lib/js/components/ProgressBar/ProgressBarLegendItem.vue +8 -8
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue +2 -2
- package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue +3 -3
- package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue +1 -1
- package/lib/js/components/RichList/RichListItem/RichListItem.vue +36 -36
- package/lib/js/components/SectionTitle/SectionTitle.vue +2 -2
- package/lib/js/components/SelectList/SelectList.vue +1 -1
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +5 -5
- package/lib/js/components/SelectList/SelectListItemContainer/SelectListItemContainer.vue +1 -1
- package/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue +1 -1
- package/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.vue +2 -2
- package/lib/js/components/SelectionTile/SelectionTile.vue +4 -4
- package/lib/js/components/SpinnerLoading/SpinnerLoading.vue +1 -1
- package/lib/js/components/StatsLayout/StatsLayout.vue +6 -6
- package/lib/js/components/Statuses/AccessStatus/AccessStatus.vue +1 -1
- package/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue +1 -1
- package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +3 -3
- package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +9 -9
- package/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue +1 -1
- package/lib/js/components/SurveyToggle/SurveyToggle.vue +3 -3
- package/lib/js/components/Switch/Switch.vue +4 -4
- package/lib/js/components/TabItem/TabItem.vue +4 -4
- package/lib/js/components/TextGroup/TextGroup.vue +1 -1
- package/lib/js/components/Tile/Tile.vue +4 -4
- package/lib/js/components/Toast/Toast.vue +8 -8
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.vue +2 -2
- package/lib/js/components/Toggles/ToggleButton/ToggleButton.vue +7 -7
- package/lib/js/components/Well/Well.vue +5 -5
- package/lib/js/styles/ItemsList.vue +2 -2
- package/lib/js/styles/Spacings/Spacings.stories.ts +6 -14
- package/lib/styles/components/_buttons.scss +9 -9
- package/lib/styles/components/_items-list-item.scss +2 -2
- package/lib/styles/settings/_spacings.scss +13 -10
- package/lib/styles/settings/colors/_tokens-variables.scss +1 -0
- package/lib/styles/settings/colors/_tokens.json +1 -1
- package/lib/styles/settings/colors/_tokens.scss +1 -0
- package/package.json +1 -1
|
@@ -61,13 +61,13 @@ $selection-tile-min-height: 48px;
|
|
|
61
61
|
align-items: center;
|
|
62
62
|
background-color: $color-neutral-background-weak;
|
|
63
63
|
border-radius: $radius-s;
|
|
64
|
-
column-gap: $space-
|
|
64
|
+
column-gap: $space-4;
|
|
65
65
|
cursor: pointer;
|
|
66
66
|
display: flex;
|
|
67
67
|
justify-content: space-between;
|
|
68
68
|
min-height: $selection-tile-min-height;
|
|
69
69
|
outline: 1px solid $color-neutral-border;
|
|
70
|
-
padding: $space-
|
|
70
|
+
padding: $space-6;
|
|
71
71
|
transition:
|
|
72
72
|
color ease-in-out $default-transition-time,
|
|
73
73
|
outline-color ease-in-out $default-transition-time,
|
|
@@ -80,14 +80,14 @@ $selection-tile-min-height: 48px;
|
|
|
80
80
|
|
|
81
81
|
&__wrapper {
|
|
82
82
|
align-items: center;
|
|
83
|
-
column-gap: $space-
|
|
83
|
+
column-gap: $space-4;
|
|
84
84
|
display: flex;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&__textWrapper {
|
|
88
88
|
display: flex;
|
|
89
89
|
flex-direction: column;
|
|
90
|
-
row-gap: $space-
|
|
90
|
+
row-gap: $space-2;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&__title {
|
|
@@ -65,20 +65,20 @@ $right-column-width: 96px;
|
|
|
65
65
|
.ds-statsLayout {
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
68
|
-
gap: $space-
|
|
68
|
+
gap: $space-6;
|
|
69
69
|
|
|
70
70
|
&__content,
|
|
71
71
|
&__summary,
|
|
72
72
|
&__stats {
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: column;
|
|
75
|
-
gap: $space-
|
|
75
|
+
gap: $space-8;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&__wrapper {
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
|
-
gap: $space-
|
|
81
|
+
gap: $space-16;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&__gridHeader {
|
|
@@ -97,12 +97,12 @@ $right-column-width: 96px;
|
|
|
97
97
|
|
|
98
98
|
&__gridHeaderLeftColumn {
|
|
99
99
|
flex: 1 0 0;
|
|
100
|
-
padding: $space-
|
|
100
|
+
padding: $space-4;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
&__gridHeaderRightColumn {
|
|
104
104
|
justify-content: flex-end;
|
|
105
|
-
padding: $space-
|
|
105
|
+
padding: $space-4;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
&__overallStats,
|
|
@@ -112,7 +112,7 @@ $right-column-width: 96px;
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
&__statsList {
|
|
115
|
-
row-gap: $space-
|
|
115
|
+
row-gap: $space-8;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
&__statsDivider {
|
package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
&__header {
|
|
55
55
|
display: flex;
|
|
56
56
|
justify-content: space-between;
|
|
57
|
-
margin-bottom: $space-
|
|
57
|
+
margin-bottom: $space-8;
|
|
58
58
|
// header without explanation iconButton has to be the same size as with iconButton
|
|
59
59
|
min-height: $icon-button-medium-size;
|
|
60
60
|
}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
|
|
68
68
|
&__explanation {
|
|
69
69
|
align-self: flex-start;
|
|
70
|
-
margin-left: $space-
|
|
70
|
+
margin-left: $space-2;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&__content {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&__input {
|
|
79
|
-
margin-top: $space-
|
|
79
|
+
margin-top: $space-4;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
</style>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
|
|
132
132
|
display: flex;
|
|
133
133
|
justify-content: space-between;
|
|
134
|
-
margin-bottom: $space-
|
|
134
|
+
margin-bottom: $space-12;
|
|
135
135
|
// title without explanation iconButton has to be the same size as with iconButton
|
|
136
136
|
min-height: $icon-button-medium-size;
|
|
137
137
|
}
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
|
|
143
143
|
&__explanation {
|
|
144
144
|
align-self: flex-start;
|
|
145
|
-
margin-left: $space-
|
|
145
|
+
margin-left: $space-2;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
&__content {
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
container-type: inline-size;
|
|
152
152
|
display: flex;
|
|
153
153
|
overflow-x: auto;
|
|
154
|
-
padding: $space-
|
|
154
|
+
padding: $space-8 $space-4;
|
|
155
155
|
|
|
156
156
|
@media #{breakpoint-s()} {
|
|
157
|
-
gap: $space-
|
|
158
|
-
padding: $space-
|
|
157
|
+
gap: $space-16;
|
|
158
|
+
padding: $space-8 $space-16;
|
|
159
159
|
|
|
160
160
|
&:not(.-ds-oneContainer) {
|
|
161
161
|
justify-content: center;
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
&__separator {
|
|
185
185
|
border-bottom: none;
|
|
186
186
|
border-top: 1px solid $color-neutral-border-weak;
|
|
187
|
-
margin: $space-
|
|
187
|
+
margin: $space-12 0 $space-8 0;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
&__elaboration {
|
|
@@ -197,18 +197,18 @@
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
&__elaborationInput {
|
|
200
|
-
margin-top: $space-
|
|
200
|
+
margin-top: $space-4;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
&__container {
|
|
204
204
|
display: flex;
|
|
205
205
|
flex: 1;
|
|
206
206
|
flex-direction: row;
|
|
207
|
-
gap: $space-
|
|
207
|
+
gap: $space-2;
|
|
208
208
|
justify-content: space-between;
|
|
209
209
|
|
|
210
210
|
@container (width > 400px) {
|
|
211
|
-
gap: $space-
|
|
211
|
+
gap: $space-16;
|
|
212
212
|
justify-content: initial;
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -147,7 +147,7 @@ $survey-toggle-colors: (
|
|
|
147
147
|
width: $survey-toggle-size;
|
|
148
148
|
|
|
149
149
|
@media #{breakpoint-s()} {
|
|
150
|
-
width: $survey-toggle-size + 2 * $space-
|
|
150
|
+
width: $survey-toggle-size + 2 * $space-3;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
&__toggle {
|
|
@@ -160,7 +160,7 @@ $survey-toggle-colors: (
|
|
|
160
160
|
border-radius: 100%;
|
|
161
161
|
display: flex;
|
|
162
162
|
height: $survey-toggle-size;
|
|
163
|
-
padding: $space-
|
|
163
|
+
padding: $space-4;
|
|
164
164
|
transition:
|
|
165
165
|
background-color ease-in-out $default-transition-time,
|
|
166
166
|
box-shadow ease-in-out $default-transition-time;
|
|
@@ -205,7 +205,7 @@ $survey-toggle-colors: (
|
|
|
205
205
|
@include label-xs-default-bold;
|
|
206
206
|
|
|
207
207
|
color: $color-neutral-text;
|
|
208
|
-
margin-top: $space-
|
|
208
|
+
margin-top: $space-4;
|
|
209
209
|
max-width: 100%;
|
|
210
210
|
min-height: 2em;
|
|
211
211
|
text-align: center;
|
|
@@ -119,14 +119,14 @@ $switch-transition: all $default-transition-time ease-out;
|
|
|
119
119
|
cursor: pointer;
|
|
120
120
|
display: flex;
|
|
121
121
|
flex-grow: 1;
|
|
122
|
-
gap: $space-
|
|
122
|
+
gap: $space-3;
|
|
123
123
|
justify-content: center;
|
|
124
124
|
margin: -1px;
|
|
125
125
|
max-width: calc(100% - 64px);
|
|
126
126
|
min-height: 32px;
|
|
127
127
|
min-width: 64px;
|
|
128
128
|
overflow: hidden;
|
|
129
|
-
padding: 0 $space-
|
|
129
|
+
padding: 0 $space-8;
|
|
130
130
|
position: relative;
|
|
131
131
|
transition: $switch-transition;
|
|
132
132
|
z-index: 2;
|
|
@@ -188,11 +188,11 @@ $switch-transition: all $default-transition-time ease-out;
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
&.-ds-small &__item {
|
|
191
|
-
gap: $space-
|
|
191
|
+
gap: $space-2;
|
|
192
192
|
max-width: calc(100% - 48px);
|
|
193
193
|
min-height: 24px;
|
|
194
194
|
min-width: 48px;
|
|
195
|
-
padding: 0 $space-
|
|
195
|
+
padding: 0 $space-6;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
&.-ds-disabled &__item {
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
&.-ds-sizeSmall {
|
|
81
81
|
@include label-m-default-bold;
|
|
82
82
|
|
|
83
|
-
column-gap: $space-
|
|
84
|
-
padding: $space-
|
|
83
|
+
column-gap: $space-2;
|
|
84
|
+
padding: $space-6;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&.-ds-sizeMedium {
|
|
88
88
|
@include label-l-default-bold;
|
|
89
89
|
|
|
90
|
-
column-gap: $space-
|
|
91
|
-
padding: $space-
|
|
90
|
+
column-gap: $space-4;
|
|
91
|
+
padding: $space-6 $space-8;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
</style>
|
|
@@ -300,10 +300,10 @@ $tile-colors: (
|
|
|
300
300
|
border-radius: $radius-s;
|
|
301
301
|
display: flex;
|
|
302
302
|
flex-direction: row;
|
|
303
|
-
gap: $space-
|
|
303
|
+
gap: $space-6;
|
|
304
304
|
justify-content: center;
|
|
305
305
|
min-height: 48px;
|
|
306
|
-
padding: $space-
|
|
306
|
+
padding: $space-4 $space-6;
|
|
307
307
|
transition: background-color ease-in-out $default-transition-time;
|
|
308
308
|
|
|
309
309
|
&.-ds-disabled {
|
|
@@ -359,7 +359,7 @@ $tile-colors: (
|
|
|
359
359
|
|
|
360
360
|
color: $color-neutral-text;
|
|
361
361
|
flex-grow: 1;
|
|
362
|
-
margin-left: $space-
|
|
362
|
+
margin-left: $space-6;
|
|
363
363
|
text-align: right;
|
|
364
364
|
|
|
365
365
|
&.-ds-max-width-small {
|
|
@@ -381,7 +381,7 @@ $tile-colors: (
|
|
|
381
381
|
&__eyebrowText {
|
|
382
382
|
@include info-m-default-bold;
|
|
383
383
|
|
|
384
|
-
margin-bottom: $space-
|
|
384
|
+
margin-bottom: $space-2;
|
|
385
385
|
|
|
386
386
|
&.-ds-uppercase {
|
|
387
387
|
@include info-m-extensive-bold-uppercase();
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
width: 100%;
|
|
45
45
|
|
|
46
46
|
&.-ds-size-small {
|
|
47
|
-
max-width: 320px + $space-
|
|
48
|
-
padding: $space-
|
|
47
|
+
max-width: 320px + $space-8 * 2;
|
|
48
|
+
padding: $space-8;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&.-ds-size-medium {
|
|
52
|
-
max-width: 500px + $space-
|
|
53
|
-
padding: $space-
|
|
52
|
+
max-width: 500px + $space-8 * 2;
|
|
53
|
+
padding: $space-8;
|
|
54
54
|
|
|
55
55
|
@media (#{breakpoint-s()}) {
|
|
56
|
-
max-width: 500px + $space-
|
|
57
|
-
padding: $space-
|
|
56
|
+
max-width: 500px + $space-12 * 2;
|
|
57
|
+
padding: $space-12;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
&__footerButtons {
|
|
82
|
-
column-gap: $space-
|
|
82
|
+
column-gap: $space-6;
|
|
83
83
|
display: flex;
|
|
84
84
|
justify-content: flex-end;
|
|
85
|
-
padding: 0 $space-
|
|
85
|
+
padding: 0 $space-8 $space-8;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
</style>
|
|
@@ -206,7 +206,7 @@ $counter-toggle-colors: (
|
|
|
206
206
|
cursor: pointer;
|
|
207
207
|
display: inline-flex;
|
|
208
208
|
justify-content: center;
|
|
209
|
-
padding: $space-
|
|
209
|
+
padding: $space-4;
|
|
210
210
|
position: relative;
|
|
211
211
|
transition:
|
|
212
212
|
color ease-in-out $default-transition-time,
|
|
@@ -246,7 +246,7 @@ $counter-toggle-colors: (
|
|
|
246
246
|
&__counter {
|
|
247
247
|
@include label-s-extensive-bold-uppercase();
|
|
248
248
|
|
|
249
|
-
margin-left: $space-
|
|
249
|
+
margin-left: $space-1;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
</style>
|
|
@@ -326,7 +326,7 @@ $toggle-button-colors: (
|
|
|
326
326
|
&__contentWrapper {
|
|
327
327
|
align-items: center;
|
|
328
328
|
display: flex;
|
|
329
|
-
gap: $space-
|
|
329
|
+
gap: $space-2;
|
|
330
330
|
justify-content: center;
|
|
331
331
|
}
|
|
332
332
|
|
|
@@ -360,10 +360,10 @@ $toggle-button-colors: (
|
|
|
360
360
|
&.-ds-small {
|
|
361
361
|
min-height: $toggle-button-size-small;
|
|
362
362
|
min-width: $toggle-button-size-small;
|
|
363
|
-
padding: substract-border($space-
|
|
363
|
+
padding: substract-border($space-3, 'small') substract-border($space-6, 'small');
|
|
364
364
|
|
|
365
365
|
&.-ds-hasSmallHorizontalPadding {
|
|
366
|
-
padding: substract-border($space-
|
|
366
|
+
padding: substract-border($space-3, 'small') substract-border($space-1, 'small');
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
#{$root}__content.-ds-small {
|
|
@@ -378,10 +378,10 @@ $toggle-button-colors: (
|
|
|
378
378
|
&.-ds-medium {
|
|
379
379
|
min-height: $toggle-button-size-medium;
|
|
380
380
|
min-width: $toggle-button-size-medium;
|
|
381
|
-
padding: substract-border($space-
|
|
381
|
+
padding: substract-border($space-4, 'medium') substract-border($space-6, 'medium');
|
|
382
382
|
|
|
383
383
|
&.-ds-hasSmallHorizontalPadding {
|
|
384
|
-
padding: substract-border($space-
|
|
384
|
+
padding: substract-border($space-4, 'medium') substract-border($space-1, 'medium');
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
#{$root}__content.-ds-small {
|
|
@@ -397,10 +397,10 @@ $toggle-button-colors: (
|
|
|
397
397
|
border-width: $toggle-button-border-size-large;
|
|
398
398
|
min-height: $toggle-button-size-large;
|
|
399
399
|
min-width: $toggle-button-size-large;
|
|
400
|
-
padding: substract-border($space-
|
|
400
|
+
padding: substract-border($space-6, 'large') substract-border($space-8, 'large');
|
|
401
401
|
|
|
402
402
|
&.-ds-hasSmallHorizontalPadding {
|
|
403
|
-
padding: substract-border($space-
|
|
403
|
+
padding: substract-border($space-4, 'large') substract-border($space-1, 'large');
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
|
|
@@ -55,25 +55,25 @@
|
|
|
55
55
|
|
|
56
56
|
&__accessorySlot {
|
|
57
57
|
display: flex;
|
|
58
|
-
gap: $space-
|
|
58
|
+
gap: $space-2;
|
|
59
59
|
position: absolute;
|
|
60
60
|
right: 0;
|
|
61
61
|
top: -10px;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&.-ds-medium {
|
|
65
|
-
padding: $space-
|
|
65
|
+
padding: $space-8;
|
|
66
66
|
|
|
67
67
|
#{$root}__accessorySlot {
|
|
68
|
-
right: $space-
|
|
68
|
+
right: $space-8;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&.-ds-small {
|
|
73
|
-
padding: $space-
|
|
73
|
+
padding: $space-6;
|
|
74
74
|
|
|
75
75
|
#{$root}__accessorySlot {
|
|
76
|
-
right: $space-
|
|
76
|
+
right: $space-6;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -4,20 +4,12 @@ export default {
|
|
|
4
4
|
title: 'foundations/Spacings',
|
|
5
5
|
} as Meta;
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{ name: 'space-m', value: 24 },
|
|
14
|
-
{ name: 'space-s', value: 16 },
|
|
15
|
-
{ name: 'space-xs', value: 12 },
|
|
16
|
-
{ name: 'space-2xs', value: 8 },
|
|
17
|
-
{ name: 'space-3xs', value: 6 },
|
|
18
|
-
{ name: 'space-4xs', value: 4 },
|
|
19
|
-
{ name: 'space-5xs', value: 2 },
|
|
20
|
-
];
|
|
7
|
+
const spaceBase = 2;
|
|
8
|
+
|
|
9
|
+
const spacings = [28, 20, 16, 12, 10, 8, 6, 5, 4, 3, 2, 1].map((multiplier) => ({
|
|
10
|
+
name: `space-${multiplier}`,
|
|
11
|
+
value: spaceBase * multiplier,
|
|
12
|
+
}));
|
|
21
13
|
|
|
22
14
|
const StoryTemplate: StoryFn = () => ({
|
|
23
15
|
data() {
|
|
@@ -162,7 +162,7 @@ $button-disabled-alpha: 0.6;
|
|
|
162
162
|
justify-content: center;
|
|
163
163
|
min-height: $button-medium-min-height;
|
|
164
164
|
outline: none;
|
|
165
|
-
padding: $space-
|
|
165
|
+
padding: $space-2 $space-8;
|
|
166
166
|
position: relative;
|
|
167
167
|
transform-style: preserve-3d;
|
|
168
168
|
transition:
|
|
@@ -205,8 +205,8 @@ $button-disabled-alpha: 0.6;
|
|
|
205
205
|
@include button-l-default-bold-uppercase;
|
|
206
206
|
|
|
207
207
|
min-height: $button-large-min-height;
|
|
208
|
-
padding-left: $space-
|
|
209
|
-
padding-right: $space-
|
|
208
|
+
padding-left: $space-12;
|
|
209
|
+
padding-right: $space-12;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
&.-ds-text {
|
|
@@ -244,12 +244,12 @@ $button-disabled-alpha: 0.6;
|
|
|
244
244
|
|
|
245
245
|
&.-ds-rounded {
|
|
246
246
|
border-radius: $radius-s;
|
|
247
|
-
padding-left: $space-
|
|
248
|
-
padding-right: $space-
|
|
247
|
+
padding-left: $space-6;
|
|
248
|
+
padding-right: $space-6;
|
|
249
249
|
|
|
250
250
|
&.-ds-large {
|
|
251
|
-
padding-left: $space-
|
|
252
|
-
padding-right: $space-
|
|
251
|
+
padding-left: $space-8;
|
|
252
|
+
padding-right: $space-8;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
}
|
|
@@ -306,11 +306,11 @@ $button-disabled-alpha: 0.6;
|
|
|
306
306
|
|
|
307
307
|
&__icon {
|
|
308
308
|
&.-ds-left {
|
|
309
|
-
margin-right: $space-
|
|
309
|
+
margin-right: $space-2;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
&.-ds-right {
|
|
313
|
-
margin-left: $space-
|
|
313
|
+
margin-left: $space-2;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
|
|
8
8
|
td {
|
|
9
|
-
padding: $space-
|
|
9
|
+
padding: $space-12 $space-12;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&__row {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
&__tile {
|
|
17
17
|
box-shadow: rgb(0 0 0 / 10%) 0 1px 3px 0;
|
|
18
18
|
display: block;
|
|
19
|
-
height: $space-
|
|
19
|
+
height: $space-20;
|
|
20
20
|
width: 100%;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
$space-
|
|
2
|
-
$space-
|
|
3
|
-
$space-
|
|
4
|
-
$space-
|
|
5
|
-
$space-
|
|
6
|
-
$space-
|
|
7
|
-
$space-
|
|
8
|
-
$space-
|
|
9
|
-
$space-
|
|
10
|
-
$space-
|
|
1
|
+
$space-base: 2px;
|
|
2
|
+
$space-1: $space-base * 1;
|
|
3
|
+
$space-2: $space-base * 2;
|
|
4
|
+
$space-3: $space-base * 3;
|
|
5
|
+
$space-4: $space-base * 4;
|
|
6
|
+
$space-5: $space-base * 5;
|
|
7
|
+
$space-6: $space-base * 6;
|
|
8
|
+
$space-8: $space-base * 8;
|
|
9
|
+
$space-10: $space-base * 10;
|
|
10
|
+
$space-12: $space-base * 12;
|
|
11
|
+
$space-16: $space-base * 16;
|
|
12
|
+
$space-20: $space-base * 20;
|
|
13
|
+
$space-28: $space-base * 28;
|
|
11
14
|
|
|
12
15
|
// deprecated
|
|
13
16
|
$DEPRECATED-space-3xl: 64px;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
--color-default-text: var(--raw-black);
|
|
3
3
|
--color-default-icon: var(--raw-black);
|
|
4
4
|
--color-default-background: var(--raw-white);
|
|
5
|
+
--color-default-background-rgb: var(--raw-white-rgb);
|
|
5
6
|
--color-default-background-ghost: rgba(var(--raw-white-rgb), 0);
|
|
6
7
|
--color-default-background-ghost-hovered: rgba(var(--raw-white-rgb), 0.12);
|
|
7
8
|
--color-default-background-ghost-focused: rgba(var(--raw-white-rgb), 0.12);
|