@ambita/design-system 6.1.5-761.0 → 6.1.5-781.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 +59 -27
- package/dist/ds.cjs +3 -3
- package/dist/ds.cjs.map +1 -1
- package/dist/ds.js +6618 -5870
- 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 +18 -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/components/Tabs/NeoTabs.vue.d.ts +1 -1
- package/dist/types/components/Toggle/NeoToggle.vue.d.ts +28 -0
- package/dist/types/index.d.ts +8 -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 *;
|
|
@@ -26,6 +34,8 @@
|
|
|
26
34
|
TYPOGRAPHY TOKENS
|
|
27
35
|
============================================================================ */
|
|
28
36
|
|
|
37
|
+
$font-size-xs: var(--font-size-xs);
|
|
38
|
+
$font-size-xxs: var(--font-size-xxs);
|
|
29
39
|
$font-family-sans-serif: var(--font-family-sans-serif) "sans-serif";
|
|
30
40
|
$font-family-display-serif: var(--font-family-display-serif);
|
|
31
41
|
|
|
@@ -53,6 +63,12 @@ $border-color-focus: var(--border-color-focus);
|
|
|
53
63
|
$border-color-selected: var(--border-color-selected);
|
|
54
64
|
$border-color-error: var(--border-color-error);
|
|
55
65
|
|
|
66
|
+
/* ============================================================================
|
|
67
|
+
GENERAL SIZES
|
|
68
|
+
============================================================================ */
|
|
69
|
+
|
|
70
|
+
$icon-size-l: 20px;
|
|
71
|
+
|
|
56
72
|
/* ============================================================================
|
|
57
73
|
BUTTON COMPONENT TOKENS
|
|
58
74
|
============================================================================ */
|
|
@@ -92,7 +108,7 @@ $button-tertiary-text: var(--text-link-default);
|
|
|
92
108
|
|
|
93
109
|
// Button Sizing & Spacing
|
|
94
110
|
$button-padding-x: 24px;
|
|
95
|
-
$button-padding-y:
|
|
111
|
+
$button-padding-y: var(--number-spacing-spacing-s);
|
|
96
112
|
$button-padding-x-icon: 12px;
|
|
97
113
|
$button-icon-only-padding: var(--number-spacing-spacing-s);
|
|
98
114
|
$button-icon-size: 18px;
|
|
@@ -137,8 +153,8 @@ $input-text-color: var(--text-input);
|
|
|
137
153
|
$input-placeholder-color: var(--text-input);
|
|
138
154
|
$input-placeholder-opacity: 0.7;
|
|
139
155
|
|
|
140
|
-
$input-padding-x:
|
|
141
|
-
$input-padding-y:
|
|
156
|
+
$input-padding-x: var(--number-spacing-spacing-s);
|
|
157
|
+
$input-padding-y: var(--number-spacing-spacing-s);
|
|
142
158
|
|
|
143
159
|
$input-font-size: var(--font-size-xs);
|
|
144
160
|
$input-font-weight: var(--font-weight-regular);
|
|
@@ -157,30 +173,46 @@ $input-disabled-text: var(--text-action-disabled);
|
|
|
157
173
|
$input-error-border-color: var(--border-color-error);
|
|
158
174
|
$input-error-shadow: var(--shadow-error);
|
|
159
175
|
|
|
160
|
-
$input-icon-size:
|
|
176
|
+
$input-icon-size: $icon-size-l;
|
|
161
177
|
|
|
162
178
|
/* ============================================================================
|
|
163
179
|
CHECKBOX COMPONENT TOKENS
|
|
164
180
|
============================================================================ */
|
|
165
181
|
|
|
166
|
-
$checkbox-
|
|
182
|
+
$checkbox-size: $icon-size-l;
|
|
183
|
+
$checkbox-bg-disabled: var(--fill-disabled-stronger);
|
|
167
184
|
$checkbox-card-border-radius: var(--corner-radius-s);
|
|
168
|
-
$checkbox-card-focus
|
|
169
|
-
$checkbox-card-
|
|
170
|
-
$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-disabled);
|
|
191
|
+
|
|
192
|
+
/* ============================================================================
|
|
193
|
+
RADIO COMPONENT TOKENS
|
|
194
|
+
============================================================================ */
|
|
195
|
+
|
|
196
|
+
$radio-button-size: $icon-size-l;
|
|
197
|
+
$radio-indicator-size: 6px;
|
|
198
|
+
$radio-indicator-color: var(--icon-fill-selected);
|
|
199
|
+
$radio-indicator-color-disabled: var(--icon-fill-disabled);
|
|
200
|
+
$radio-border-width-error: 3px;
|
|
201
|
+
$radio-border-width-error-checked: 2px;
|
|
171
202
|
|
|
172
203
|
/* ============================================================================
|
|
173
|
-
|
|
204
|
+
COLLAPSIBLE SHARED TOKENS
|
|
205
|
+
(used by both NeoCheckboxCollapsible and NeoRadioCollapsible)
|
|
174
206
|
============================================================================ */
|
|
175
207
|
|
|
176
|
-
$
|
|
177
|
-
$
|
|
178
|
-
$
|
|
179
|
-
$
|
|
180
|
-
$
|
|
181
|
-
$
|
|
182
|
-
$
|
|
183
|
-
$
|
|
208
|
+
$collapsible-content-gap: var(--number-spacing-spacing-l);
|
|
209
|
+
$collapsible-body-gap: var(--number-spacing-spacing-s);
|
|
210
|
+
$collapsible-animation-duration: 200ms;
|
|
211
|
+
$collapsible-stripe-width: 3px;
|
|
212
|
+
$collapsible-stripe-radius: var(--corner-radius-xxs);
|
|
213
|
+
$collapsible-stripe-color: $border-color-selected;
|
|
214
|
+
$collapsible-stripe-margin-left: 8px;
|
|
215
|
+
$collapsible-stripe-margin-right: 18px;
|
|
184
216
|
|
|
185
217
|
/* ============================================================================
|
|
186
218
|
CHECKBOX GROUP COMPONENT TOKENS
|
|
@@ -206,9 +238,9 @@ $dropdown-item-bg-selected: var(--fill-select-hover);
|
|
|
206
238
|
$dropdown-item-text-selected: var(--text-default);
|
|
207
239
|
$dropdown-item-font-weight: var(--font-weight-regular);
|
|
208
240
|
|
|
209
|
-
$dropdown-item-padding-x:
|
|
241
|
+
$dropdown-item-padding-x: var(--number-spacing-spacing-s);
|
|
210
242
|
$dropdown-item-padding-y: 7px;
|
|
211
|
-
$dropdown-item-gap:
|
|
243
|
+
$dropdown-item-gap: var(--number-spacing-spacing-s);
|
|
212
244
|
|
|
213
245
|
$dropdown-label-bg: var(--fill-card-default);
|
|
214
246
|
|
|
@@ -286,7 +318,7 @@ $accordion-content-bg-secondary: var(--fill-card-raised);
|
|
|
286
318
|
|
|
287
319
|
// Accordion Icon
|
|
288
320
|
$accordion-icon-size: var(--font-size-s);
|
|
289
|
-
$accordion-icon-margin-left:
|
|
321
|
+
$accordion-icon-margin-left: var(--number-spacing-spacing-xs);
|
|
290
322
|
$accordion-icon-transition-duration: $default-transition-duration;
|
|
291
323
|
|
|
292
324
|
// Accordion Toggle Button
|
|
@@ -361,7 +393,7 @@ $pagination-icon-size: 18px;
|
|
|
361
393
|
|
|
362
394
|
// Pagination Small Screen
|
|
363
395
|
$pagination-small-screen-font-weight: 500;
|
|
364
|
-
$pagination-small-screen-margin:
|
|
396
|
+
$pagination-small-screen-margin: var(--number-spacing-spacing-l);
|
|
365
397
|
$pagination-small-screen-padding-top: 12px;
|
|
366
398
|
|
|
367
399
|
$pagination-button-shadow: none;
|
|
@@ -371,8 +403,8 @@ $pagination-button-shadow: none;
|
|
|
371
403
|
============================================================================ */
|
|
372
404
|
|
|
373
405
|
// Banner Layout & Spacing
|
|
374
|
-
$banner-padding-x:
|
|
375
|
-
$banner-padding-y:
|
|
406
|
+
$banner-padding-x: var(--number-spacing-spacing-m);
|
|
407
|
+
$banner-padding-y: var(--number-spacing-spacing-s);
|
|
376
408
|
$banner-icon-margin-right: 12px;
|
|
377
409
|
$banner-max-width: 700px;
|
|
378
410
|
$banner-gap: 12px;
|
|
@@ -392,7 +424,7 @@ $banner-text-color: var(--text-feedback);
|
|
|
392
424
|
|
|
393
425
|
// Banner Icon Sizing
|
|
394
426
|
$banner-icon-size-small: 16px;
|
|
395
|
-
$banner-icon-size-default:
|
|
427
|
+
$banner-icon-size-default: $icon-size-l;
|
|
396
428
|
|
|
397
429
|
// Banner Close Button
|
|
398
430
|
$banner-close-btn-size: 24px;
|
|
@@ -405,7 +437,7 @@ $banner-footer-gap: 8px;
|
|
|
405
437
|
|
|
406
438
|
// Banner List Styling
|
|
407
439
|
$banner-list-margin-y: 8px;
|
|
408
|
-
$banner-list-padding-left:
|
|
440
|
+
$banner-list-padding-left: var(--number-spacing-spacing-l);
|
|
409
441
|
$banner-list-item-margin-bottom: 4px;
|
|
410
442
|
|
|
411
443
|
// Banner Type-Specific Backgrounds & Borders
|
|
@@ -502,7 +534,7 @@ $tabs-vertical-trigger-border-left-color-active: var(
|
|
|
502
534
|
|
|
503
535
|
// Datepicker Wrapper
|
|
504
536
|
$datepicker-max-width: 280px;
|
|
505
|
-
$datepicker-gap:
|
|
537
|
+
$datepicker-gap: var(--number-spacing-spacing-xs);
|
|
506
538
|
|
|
507
539
|
// Datepicker Field (segmented input)
|
|
508
540
|
$datepicker-segment-padding: 2px;
|
|
@@ -602,4 +634,4 @@ $spinner-label-font-size-medium: 12px;
|
|
|
602
634
|
$spinner-label-font-size-large: 24px;
|
|
603
635
|
|
|
604
636
|
// Spinner label margin (space between indicator and label)
|
|
605
|
-
$spinner-label-margin-top:
|
|
637
|
+
$spinner-label-margin-top: var(--number-spacing-spacing-s);
|