@ambita/design-system 6.1.5-741.0 → 6.1.5-761.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.
Files changed (34) hide show
  1. package/dist/css/mixins.scss +2 -0
  2. package/dist/css/neo-mixins.scss +21 -6
  3. package/dist/css/neo-tokens.scss +33 -0
  4. package/dist/ds.cjs +3 -3
  5. package/dist/ds.cjs.map +1 -1
  6. package/dist/ds.js +2644 -2188
  7. package/dist/ds.js.map +1 -1
  8. package/dist/ds.umd.cjs +3 -3
  9. package/dist/ds.umd.cjs.map +1 -1
  10. package/dist/index.css +1 -1
  11. package/dist/themes/ambita-dark.css +1 -1
  12. package/dist/themes/ambita-light.css +1 -1
  13. package/dist/themes/ambita-old.css +1 -1
  14. package/dist/themes/byggesoknaden.css +1 -1
  15. package/dist/types/components/Checkbox/NeoCheckbox.vue.d.ts +51 -0
  16. package/dist/types/components/CheckboxCollapsible/NeoCheckboxCollapsible.vue.d.ts +49 -0
  17. package/dist/types/components/CheckboxGroup/NeoCheckboxGroup.vue.d.ts +46 -0
  18. package/dist/types/components/ComboBox/NeoComboBox.vue.d.ts +2 -2
  19. package/dist/types/components/DatePicker/NeoDatePicker.vue.d.ts +2 -2
  20. package/dist/types/components/Input/NeoInput.vue.d.ts +2 -2
  21. package/dist/types/components/Modal/AuxActions.vue.d.ts +1 -1
  22. package/dist/types/components/Modal/AuxModal.vue.d.ts +1 -1
  23. package/dist/types/components/Select/NeoSelect.vue.d.ts +2 -2
  24. package/dist/types/components/TagsInput/TagsInput.vue.d.ts +2 -2
  25. package/dist/types/components/Time/AuxTime.vue.d.ts +1 -1
  26. package/dist/types/components/Typography/NeoFormField.vue.d.ts +2 -2
  27. package/dist/types/components/Typography/types.d.ts +1 -1
  28. package/dist/types/composables/useTheme.d.ts +1 -1
  29. package/dist/types/index.d.ts +47 -41
  30. package/package.json +12 -11
  31. package/dist/types/components/CheckboxDropdown/CheckboxDropdown.vue.d.ts +0 -49
  32. /package/dist/types/components/Typography/{ErrorText.vue.d.ts → NeoErrorText.vue.d.ts} +0 -0
  33. /package/dist/types/components/Typography/{HelperText.vue.d.ts → NeoHelperText.vue.d.ts} +0 -0
  34. /package/dist/types/components/Typography/{LabelText.vue.d.ts → NeoLabelText.vue.d.ts} +0 -0
@@ -1,3 +1,5 @@
1
+ /* DEPRECATED */
2
+
1
3
  @use "./colors-scss-variables" as *;
2
4
 
3
5
  $aux-focus-indicator-style:
@@ -19,6 +19,21 @@
19
19
  @use "./neo-tokens" as *;
20
20
  @forward "./functions";
21
21
 
22
+ /**
23
+ * Visually hides an element while keeping it accessible to screen readers.
24
+ */
25
+ @mixin visually-hidden {
26
+ position: absolute;
27
+ width: 1px;
28
+ height: 1px;
29
+ padding: 0;
30
+ margin: -1px;
31
+ overflow: hidden;
32
+ clip: rect(0, 0, 0, 0);
33
+ white-space: nowrap;
34
+ border-width: 0;
35
+ }
36
+
22
37
  /* ============================================================================
23
38
  DROPDOWN/PORTAL CONTENT MIXINS
24
39
  ============================================================================ */
@@ -200,7 +215,7 @@
200
215
  @mixin dropdown-empty($padding-y: 8px, $padding-x: 8px) {
201
216
  padding: $padding-y $padding-x;
202
217
  text-align: center;
203
- font-size: 16px;
218
+ font-size: var(--font-size-xs);
204
219
  color: $text-body;
205
220
  }
206
221
 
@@ -221,7 +236,7 @@
221
236
  */
222
237
  @mixin dropdown-label($padding-y: 8px, $padding-x: 12px) {
223
238
  padding: $padding-y $padding-x;
224
- font-size: 14px;
239
+ font-size: var(--font-size-xxs);
225
240
  font-weight: 600;
226
241
  color: $text-body;
227
242
  background: $dropdown-label-bg;
@@ -322,11 +337,11 @@
322
337
  * Interactive element focus ring
323
338
  * For buttons, triggers, and other interactive elements
324
339
  */
325
- @mixin focus-interactive {
340
+ @mixin focus-interactive($focus-selector: ":focus-visible") {
326
341
  outline: none;
327
342
  transition: box-shadow 0.15s ease-in-out;
328
343
 
329
- &:focus-visible {
344
+ &#{$focus-selector} {
330
345
  box-shadow: $shadow-focus;
331
346
  }
332
347
  }
@@ -441,7 +456,7 @@
441
456
 
442
457
  /* Heading XXL Display - PT Serif, 50px, weight 400, line-height 54px */
443
458
  @mixin heading-xxl-display {
444
- font-family: var(--font-family-display);
459
+ font-family: $font-family-display-serif;
445
460
  font-size: var(--font-size-xxl);
446
461
  font-weight: var(--font-weight-regular);
447
462
  line-height: var(--font-line-height-xxxl);
@@ -457,7 +472,7 @@
457
472
 
458
473
  /* Heading XL Display - PT Serif, 30px, weight 400, line-height 34px */
459
474
  @mixin heading-xl-display {
460
- font-family: var(--font-family-display);
475
+ font-family: $font-family-display-serif;
461
476
  font-size: var(--font-size-xl);
462
477
  font-weight: var(--font-weight-regular);
463
478
  line-height: var(--font-line-height-xxl);
@@ -36,6 +36,8 @@ $font-family-display-serif: var(--font-family-display-serif);
36
36
  $text-heading: var(--text-heading-strong);
37
37
  $text-body: var(--text-default);
38
38
  $text-label: var(--text-label);
39
+ $text-label-hover: var(--text-label-hover);
40
+ $text-label-on-success: var(--text-label-on-success);
39
41
  $text-error: var(--text-error);
40
42
 
41
43
  $bg-page-white: var(--bg-page-default);
@@ -48,6 +50,7 @@ $border-color-input: var(--border-color-input);
48
50
  $border-color-divider: var(--border-color-separator);
49
51
  $border-color-separator: var(--border-color-separator);
50
52
  $border-color-focus: var(--border-color-focus);
53
+ $border-color-selected: var(--border-color-selected);
51
54
  $border-color-error: var(--border-color-error);
52
55
 
53
56
  /* ============================================================================
@@ -156,6 +159,36 @@ $input-error-shadow: var(--shadow-error);
156
159
 
157
160
  $input-icon-size: 20px;
158
161
 
162
+ /* ============================================================================
163
+ CHECKBOX COMPONENT TOKENS
164
+ ============================================================================ */
165
+
166
+ $checkbox-disabled-bg: var(--fill-disabled-stronger);
167
+ $checkbox-card-border-radius: var(--corner-radius-s);
168
+ $checkbox-card-focus-outline: 1px solid $border-color-focus;
169
+ $checkbox-card-focus-outline-offset: 3px;
170
+ $checkbox-error-checked-border-width: var(--border-weight-input, 1px);
171
+
172
+ /* ============================================================================
173
+ CHECKBOX COLLAPSIBLE COMPONENT TOKENS
174
+ ============================================================================ */
175
+
176
+ $checkbox-collapsible-content-gap: var(--number-spacing-spacing-l);
177
+ $checkbox-collapsible-body-gap: var(--number-spacing-spacing-s);
178
+ $checkbox-collapsible-animation-duration: 200ms;
179
+ $checkbox-collapsible-stripe-width: 3px;
180
+ $checkbox-collapsible-stripe-radius: var(--corner-radius-pill);
181
+ $checkbox-collapsible-stripe-color: $border-color-selected;
182
+ $checkbox-collapsible-stripe-margin-left: var(--number-spacing-spacing-s);
183
+ $checkbox-collapsible-stripe-margin-right: var(--number-spacing-spacing-l);
184
+
185
+ /* ============================================================================
186
+ CHECKBOX GROUP COMPONENT TOKENS
187
+ ============================================================================ */
188
+
189
+ $checkbox-group-label-font-size: var(--font-size-s);
190
+ $checkbox-group-label-font-weight: var(--font-weight-medium);
191
+
159
192
  /* ============================================================================
160
193
  DROPDOWN/SELECT COMPONENT TOKENS
161
194
  ============================================================================ */