@ambita/design-system 6.1.5-771.0 → 6.1.5-791.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/css/neo-tokens.scss +67 -30
- package/dist/ds.cjs +3 -3
- package/dist/ds.cjs.map +1 -1
- package/dist/ds.js +927 -410
- package/dist/ds.js.map +1 -1
- package/dist/ds.umd.cjs +4 -4
- package/dist/ds.umd.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/themes/ambita-dark.css +1 -1
- package/dist/themes/ambita-light.css +1 -1
- package/dist/themes/ambita-old.css +1 -1
- package/dist/themes/byggesoknaden.css +1 -1
- package/dist/types/components/Radio/NeoRadio.vue.d.ts +20 -0
- package/dist/types/components/RadioCollapsible/NeoRadioCollapsible.vue.d.ts +35 -0
- package/dist/types/components/RadioGroup/NeoRadioGroup.vue.d.ts +36 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/css/neo-tokens.scss
CHANGED
|
@@ -8,6 +8,14 @@
|
|
|
8
8
|
These variables reference CSS custom properties defined in semantic-tokens.css
|
|
9
9
|
which is imported separately in the main entry point.
|
|
10
10
|
|
|
11
|
+
Naming convention: ${component}-{property}-{variant}-{state}
|
|
12
|
+
- component: component name in full, lowercase (e.g. "button", "input", "dropdown")
|
|
13
|
+
- property: what is being styled (e.g. "bg", "text", "border-color", "padding-x")
|
|
14
|
+
- variant: optional modifier (e.g. "primary", "secondary", "card")
|
|
15
|
+
- state: optional interaction state — always last (e.g. "hover", "disabled", "error")
|
|
16
|
+
Examples: $button-primary-bg-hover, $input-error-border-color, $dropdown-item-bg-selected
|
|
17
|
+
Full reference: docs/DESIGN_TOKENS_GUIDE.md#token-naming-conventions
|
|
18
|
+
|
|
11
19
|
Usage:
|
|
12
20
|
```scss
|
|
13
21
|
@use '@/css/neo-tokens' as *;
|
|
@@ -55,6 +63,12 @@ $border-color-focus: var(--border-color-focus);
|
|
|
55
63
|
$border-color-selected: var(--border-color-selected);
|
|
56
64
|
$border-color-error: var(--border-color-error);
|
|
57
65
|
|
|
66
|
+
/* ============================================================================
|
|
67
|
+
GENERAL SIZES
|
|
68
|
+
============================================================================ */
|
|
69
|
+
|
|
70
|
+
$icon-size-l: 20px;
|
|
71
|
+
|
|
58
72
|
/* ============================================================================
|
|
59
73
|
BUTTON COMPONENT TOKENS
|
|
60
74
|
============================================================================ */
|
|
@@ -94,7 +108,7 @@ $button-tertiary-text: var(--text-link-default);
|
|
|
94
108
|
|
|
95
109
|
// Button Sizing & Spacing
|
|
96
110
|
$button-padding-x: 24px;
|
|
97
|
-
$button-padding-y:
|
|
111
|
+
$button-padding-y: var(--number-spacing-spacing-s);
|
|
98
112
|
$button-padding-x-icon: 12px;
|
|
99
113
|
$button-icon-only-padding: var(--number-spacing-spacing-s);
|
|
100
114
|
$button-icon-size: 18px;
|
|
@@ -139,8 +153,8 @@ $input-text-color: var(--text-input);
|
|
|
139
153
|
$input-placeholder-color: var(--text-input);
|
|
140
154
|
$input-placeholder-opacity: 0.7;
|
|
141
155
|
|
|
142
|
-
$input-padding-x:
|
|
143
|
-
$input-padding-y:
|
|
156
|
+
$input-padding-x: var(--number-spacing-spacing-s);
|
|
157
|
+
$input-padding-y: var(--number-spacing-spacing-s);
|
|
144
158
|
|
|
145
159
|
$input-font-size: var(--font-size-xs);
|
|
146
160
|
$input-font-weight: var(--font-weight-regular);
|
|
@@ -159,37 +173,60 @@ $input-disabled-text: var(--text-action-disabled);
|
|
|
159
173
|
$input-error-border-color: var(--border-color-error);
|
|
160
174
|
$input-error-shadow: var(--shadow-error);
|
|
161
175
|
|
|
162
|
-
$input-icon-size:
|
|
176
|
+
$input-icon-size: $icon-size-l;
|
|
163
177
|
|
|
164
178
|
/* ============================================================================
|
|
165
179
|
CHECKBOX COMPONENT TOKENS
|
|
166
180
|
============================================================================ */
|
|
167
181
|
|
|
168
|
-
$checkbox-
|
|
182
|
+
$checkbox-size: $icon-size-l;
|
|
183
|
+
$checkbox-bg-disabled: var(--fill-disabled-stronger);
|
|
169
184
|
$checkbox-card-border-radius: var(--corner-radius-s);
|
|
170
|
-
$checkbox-card-focus
|
|
171
|
-
$checkbox-card-
|
|
172
|
-
$checkbox-error-checked
|
|
185
|
+
$checkbox-card-outline-focus: 1px solid $border-color-focus;
|
|
186
|
+
$checkbox-card-outline-offset-focus: 3px;
|
|
187
|
+
$checkbox-border-width-error-checked: var(--border-weight-input, 1px);
|
|
188
|
+
$checkbox-indicator-size: 15px;
|
|
189
|
+
$checkbox-indicator-color: var(--icon-fill-selected);
|
|
190
|
+
$checkbox-indicator-color-disabled: var(--icon-fill-white);
|
|
173
191
|
|
|
174
192
|
/* ============================================================================
|
|
175
|
-
CHECKBOX
|
|
193
|
+
CHECKBOX GROUP COMPONENT TOKENS
|
|
176
194
|
============================================================================ */
|
|
177
195
|
|
|
178
|
-
$checkbox-
|
|
179
|
-
$checkbox-
|
|
180
|
-
$checkbox-collapsible-animation-duration: 200ms;
|
|
181
|
-
$checkbox-collapsible-stripe-width: 3px;
|
|
182
|
-
$checkbox-collapsible-stripe-radius: var(--corner-radius-pill);
|
|
183
|
-
$checkbox-collapsible-stripe-color: $border-color-selected;
|
|
184
|
-
$checkbox-collapsible-stripe-margin-left: var(--number-spacing-spacing-s);
|
|
185
|
-
$checkbox-collapsible-stripe-margin-right: var(--number-spacing-spacing-l);
|
|
196
|
+
$checkbox-group-label-font-size: var(--font-size-s);
|
|
197
|
+
$checkbox-group-label-font-weight: var(--font-weight-medium);
|
|
186
198
|
|
|
187
199
|
/* ============================================================================
|
|
188
|
-
|
|
200
|
+
RADIO COMPONENT TOKENS
|
|
189
201
|
============================================================================ */
|
|
190
202
|
|
|
191
|
-
$
|
|
192
|
-
$
|
|
203
|
+
$radio-button-size: $icon-size-l;
|
|
204
|
+
$radio-border-width: $input-border-width;
|
|
205
|
+
$radio-border-color: $border-color-input;
|
|
206
|
+
$radio-border-color-checked: $button-primary-bg;
|
|
207
|
+
$radio-border-color-disabled: var(--border-color-disabled);
|
|
208
|
+
$radio-bg-disabled: var(--fill-disabled-stronger);
|
|
209
|
+
$radio-indicator-size: 6px;
|
|
210
|
+
$radio-indicator-color: var(--icon-fill-selected);
|
|
211
|
+
$radio-indicator-color-disabled: var(--icon-fill-white);
|
|
212
|
+
$radio-border-width-error: 3px;
|
|
213
|
+
$radio-border-width-error-checked: 2px;
|
|
214
|
+
$radio-card-border-radius: $checkbox-card-border-radius;
|
|
215
|
+
$radio-label-font-size: $input-font-size;
|
|
216
|
+
|
|
217
|
+
/* ============================================================================
|
|
218
|
+
COLLAPSIBLE SHARED TOKENS
|
|
219
|
+
(used by both NeoCheckboxCollapsible and NeoRadioCollapsible)
|
|
220
|
+
============================================================================ */
|
|
221
|
+
|
|
222
|
+
$collapsible-content-gap: var(--number-spacing-spacing-l);
|
|
223
|
+
$collapsible-body-gap: var(--number-spacing-spacing-s);
|
|
224
|
+
$collapsible-animation-duration: 200ms;
|
|
225
|
+
$collapsible-stripe-width: 3px;
|
|
226
|
+
$collapsible-stripe-radius: var(--corner-radius-xxs);
|
|
227
|
+
$collapsible-stripe-color: var(--icon-fill-selected);
|
|
228
|
+
$collapsible-stripe-margin-left: 8px;
|
|
229
|
+
$collapsible-stripe-margin-right: 18px;
|
|
193
230
|
|
|
194
231
|
/* ============================================================================
|
|
195
232
|
DROPDOWN/SELECT COMPONENT TOKENS
|
|
@@ -208,9 +245,9 @@ $dropdown-item-bg-selected: var(--fill-select-hover);
|
|
|
208
245
|
$dropdown-item-text-selected: var(--text-default);
|
|
209
246
|
$dropdown-item-font-weight: var(--font-weight-regular);
|
|
210
247
|
|
|
211
|
-
$dropdown-item-padding-x:
|
|
248
|
+
$dropdown-item-padding-x: var(--number-spacing-spacing-s);
|
|
212
249
|
$dropdown-item-padding-y: 7px;
|
|
213
|
-
$dropdown-item-gap:
|
|
250
|
+
$dropdown-item-gap: var(--number-spacing-spacing-s);
|
|
214
251
|
|
|
215
252
|
$dropdown-label-bg: var(--fill-card-default);
|
|
216
253
|
|
|
@@ -288,7 +325,7 @@ $accordion-content-bg-secondary: var(--fill-card-raised);
|
|
|
288
325
|
|
|
289
326
|
// Accordion Icon
|
|
290
327
|
$accordion-icon-size: var(--font-size-s);
|
|
291
|
-
$accordion-icon-margin-left:
|
|
328
|
+
$accordion-icon-margin-left: var(--number-spacing-spacing-xs);
|
|
292
329
|
$accordion-icon-transition-duration: $default-transition-duration;
|
|
293
330
|
|
|
294
331
|
// Accordion Toggle Button
|
|
@@ -363,7 +400,7 @@ $pagination-icon-size: 18px;
|
|
|
363
400
|
|
|
364
401
|
// Pagination Small Screen
|
|
365
402
|
$pagination-small-screen-font-weight: 500;
|
|
366
|
-
$pagination-small-screen-margin:
|
|
403
|
+
$pagination-small-screen-margin: var(--number-spacing-spacing-l);
|
|
367
404
|
$pagination-small-screen-padding-top: 12px;
|
|
368
405
|
|
|
369
406
|
$pagination-button-shadow: none;
|
|
@@ -373,8 +410,8 @@ $pagination-button-shadow: none;
|
|
|
373
410
|
============================================================================ */
|
|
374
411
|
|
|
375
412
|
// Banner Layout & Spacing
|
|
376
|
-
$banner-padding-x:
|
|
377
|
-
$banner-padding-y:
|
|
413
|
+
$banner-padding-x: var(--number-spacing-spacing-m);
|
|
414
|
+
$banner-padding-y: var(--number-spacing-spacing-s);
|
|
378
415
|
$banner-icon-margin-right: 12px;
|
|
379
416
|
$banner-max-width: 700px;
|
|
380
417
|
$banner-gap: 12px;
|
|
@@ -394,7 +431,7 @@ $banner-text-color: var(--text-feedback);
|
|
|
394
431
|
|
|
395
432
|
// Banner Icon Sizing
|
|
396
433
|
$banner-icon-size-small: 16px;
|
|
397
|
-
$banner-icon-size-default:
|
|
434
|
+
$banner-icon-size-default: $icon-size-l;
|
|
398
435
|
|
|
399
436
|
// Banner Close Button
|
|
400
437
|
$banner-close-btn-size: 24px;
|
|
@@ -407,7 +444,7 @@ $banner-footer-gap: 8px;
|
|
|
407
444
|
|
|
408
445
|
// Banner List Styling
|
|
409
446
|
$banner-list-margin-y: 8px;
|
|
410
|
-
$banner-list-padding-left:
|
|
447
|
+
$banner-list-padding-left: var(--number-spacing-spacing-l);
|
|
411
448
|
$banner-list-item-margin-bottom: 4px;
|
|
412
449
|
|
|
413
450
|
// Banner Type-Specific Backgrounds & Borders
|
|
@@ -504,7 +541,7 @@ $tabs-vertical-trigger-border-left-color-active: var(
|
|
|
504
541
|
|
|
505
542
|
// Datepicker Wrapper
|
|
506
543
|
$datepicker-max-width: 280px;
|
|
507
|
-
$datepicker-gap:
|
|
544
|
+
$datepicker-gap: var(--number-spacing-spacing-xs);
|
|
508
545
|
|
|
509
546
|
// Datepicker Field (segmented input)
|
|
510
547
|
$datepicker-segment-padding: 2px;
|
|
@@ -604,4 +641,4 @@ $spinner-label-font-size-medium: 12px;
|
|
|
604
641
|
$spinner-label-font-size-large: 24px;
|
|
605
642
|
|
|
606
643
|
// Spinner label margin (space between indicator and label)
|
|
607
|
-
$spinner-label-margin-top:
|
|
644
|
+
$spinner-label-margin-top: var(--number-spacing-spacing-s);
|