@ambita/design-system 6.1.5-771.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 +57 -27
- package/dist/ds.cjs +3 -3
- package/dist/ds.cjs.map +1 -1
- package/dist/ds.js +923 -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 +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/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,30 +173,46 @@ $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-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;
|
|
173
202
|
|
|
174
203
|
/* ============================================================================
|
|
175
|
-
|
|
204
|
+
COLLAPSIBLE SHARED TOKENS
|
|
205
|
+
(used by both NeoCheckboxCollapsible and NeoRadioCollapsible)
|
|
176
206
|
============================================================================ */
|
|
177
207
|
|
|
178
|
-
$
|
|
179
|
-
$
|
|
180
|
-
$
|
|
181
|
-
$
|
|
182
|
-
$
|
|
183
|
-
$
|
|
184
|
-
$
|
|
185
|
-
$
|
|
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;
|
|
186
216
|
|
|
187
217
|
/* ============================================================================
|
|
188
218
|
CHECKBOX GROUP COMPONENT TOKENS
|
|
@@ -208,9 +238,9 @@ $dropdown-item-bg-selected: var(--fill-select-hover);
|
|
|
208
238
|
$dropdown-item-text-selected: var(--text-default);
|
|
209
239
|
$dropdown-item-font-weight: var(--font-weight-regular);
|
|
210
240
|
|
|
211
|
-
$dropdown-item-padding-x:
|
|
241
|
+
$dropdown-item-padding-x: var(--number-spacing-spacing-s);
|
|
212
242
|
$dropdown-item-padding-y: 7px;
|
|
213
|
-
$dropdown-item-gap:
|
|
243
|
+
$dropdown-item-gap: var(--number-spacing-spacing-s);
|
|
214
244
|
|
|
215
245
|
$dropdown-label-bg: var(--fill-card-default);
|
|
216
246
|
|
|
@@ -288,7 +318,7 @@ $accordion-content-bg-secondary: var(--fill-card-raised);
|
|
|
288
318
|
|
|
289
319
|
// Accordion Icon
|
|
290
320
|
$accordion-icon-size: var(--font-size-s);
|
|
291
|
-
$accordion-icon-margin-left:
|
|
321
|
+
$accordion-icon-margin-left: var(--number-spacing-spacing-xs);
|
|
292
322
|
$accordion-icon-transition-duration: $default-transition-duration;
|
|
293
323
|
|
|
294
324
|
// Accordion Toggle Button
|
|
@@ -363,7 +393,7 @@ $pagination-icon-size: 18px;
|
|
|
363
393
|
|
|
364
394
|
// Pagination Small Screen
|
|
365
395
|
$pagination-small-screen-font-weight: 500;
|
|
366
|
-
$pagination-small-screen-margin:
|
|
396
|
+
$pagination-small-screen-margin: var(--number-spacing-spacing-l);
|
|
367
397
|
$pagination-small-screen-padding-top: 12px;
|
|
368
398
|
|
|
369
399
|
$pagination-button-shadow: none;
|
|
@@ -373,8 +403,8 @@ $pagination-button-shadow: none;
|
|
|
373
403
|
============================================================================ */
|
|
374
404
|
|
|
375
405
|
// Banner Layout & Spacing
|
|
376
|
-
$banner-padding-x:
|
|
377
|
-
$banner-padding-y:
|
|
406
|
+
$banner-padding-x: var(--number-spacing-spacing-m);
|
|
407
|
+
$banner-padding-y: var(--number-spacing-spacing-s);
|
|
378
408
|
$banner-icon-margin-right: 12px;
|
|
379
409
|
$banner-max-width: 700px;
|
|
380
410
|
$banner-gap: 12px;
|
|
@@ -394,7 +424,7 @@ $banner-text-color: var(--text-feedback);
|
|
|
394
424
|
|
|
395
425
|
// Banner Icon Sizing
|
|
396
426
|
$banner-icon-size-small: 16px;
|
|
397
|
-
$banner-icon-size-default:
|
|
427
|
+
$banner-icon-size-default: $icon-size-l;
|
|
398
428
|
|
|
399
429
|
// Banner Close Button
|
|
400
430
|
$banner-close-btn-size: 24px;
|
|
@@ -407,7 +437,7 @@ $banner-footer-gap: 8px;
|
|
|
407
437
|
|
|
408
438
|
// Banner List Styling
|
|
409
439
|
$banner-list-margin-y: 8px;
|
|
410
|
-
$banner-list-padding-left:
|
|
440
|
+
$banner-list-padding-left: var(--number-spacing-spacing-l);
|
|
411
441
|
$banner-list-item-margin-bottom: 4px;
|
|
412
442
|
|
|
413
443
|
// Banner Type-Specific Backgrounds & Borders
|
|
@@ -504,7 +534,7 @@ $tabs-vertical-trigger-border-left-color-active: var(
|
|
|
504
534
|
|
|
505
535
|
// Datepicker Wrapper
|
|
506
536
|
$datepicker-max-width: 280px;
|
|
507
|
-
$datepicker-gap:
|
|
537
|
+
$datepicker-gap: var(--number-spacing-spacing-xs);
|
|
508
538
|
|
|
509
539
|
// Datepicker Field (segmented input)
|
|
510
540
|
$datepicker-segment-padding: 2px;
|
|
@@ -604,4 +634,4 @@ $spinner-label-font-size-medium: 12px;
|
|
|
604
634
|
$spinner-label-font-size-large: 24px;
|
|
605
635
|
|
|
606
636
|
// Spinner label margin (space between indicator and label)
|
|
607
|
-
$spinner-label-margin-top:
|
|
637
|
+
$spinner-label-margin-top: var(--number-spacing-spacing-s);
|