@ambita/design-system 6.1.5-732.0 → 6.1.5-751.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/mixins.scss +2 -0
- package/dist/css/neo-mixins.scss +17 -2
- package/dist/css/neo-tokens.scss +33 -0
- package/dist/ds.cjs +3 -3
- package/dist/ds.cjs.map +1 -1
- package/dist/ds.js +2639 -2188
- package/dist/ds.js.map +1 -1
- package/dist/ds.umd.cjs +3 -3
- 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/Checkbox/NeoCheckbox.vue.d.ts +51 -0
- package/dist/types/components/CheckboxCollapsible/NeoCheckboxCollapsible.vue.d.ts +49 -0
- package/dist/types/components/CheckboxGroup/NeoCheckboxGroup.vue.d.ts +46 -0
- package/dist/types/components/ComboBox/NeoComboBox.vue.d.ts +2 -2
- package/dist/types/components/DatePicker/NeoDatePicker.vue.d.ts +2 -2
- package/dist/types/components/Input/NeoInput.vue.d.ts +2 -2
- package/dist/types/components/Select/NeoSelect.vue.d.ts +2 -2
- package/dist/types/components/TagsInput/TagsInput.vue.d.ts +2 -2
- package/dist/types/components/Typography/NeoFormField.vue.d.ts +2 -2
- package/dist/types/components/Typography/types.d.ts +1 -1
- package/dist/types/index.d.ts +9 -3
- package/package.json +16 -17
- package/dist/types/components/CheckboxDropdown/CheckboxDropdown.vue.d.ts +0 -49
- /package/dist/types/components/Typography/{ErrorText.vue.d.ts → NeoErrorText.vue.d.ts} +0 -0
- /package/dist/types/components/Typography/{HelperText.vue.d.ts → NeoHelperText.vue.d.ts} +0 -0
- /package/dist/types/components/Typography/{LabelText.vue.d.ts → NeoLabelText.vue.d.ts} +0 -0
package/dist/css/mixins.scss
CHANGED
package/dist/css/neo-mixins.scss
CHANGED
|
@@ -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
|
============================================================================ */
|
|
@@ -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
|
-
|
|
344
|
+
&#{$focus-selector} {
|
|
330
345
|
box-shadow: $shadow-focus;
|
|
331
346
|
}
|
|
332
347
|
}
|
package/dist/css/neo-tokens.scss
CHANGED
|
@@ -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
|
============================================================================ */
|