@avenirs-esr/avenirs-dsav 0.1.76 → 0.1.77

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 (79) hide show
  1. package/dist/avenirs-dsav.css +1 -3
  2. package/dist/components/badges/AvBadge/AvBadge.stories.d.ts +1 -1
  3. package/dist/components/badges/AvBadge/AvBadge.vue.d.ts +0 -10
  4. package/dist/components/badges/AvTag/AvTag.stories.d.ts +0 -1
  5. package/dist/components/badges/AvTag/AvTag.vue.d.ts +0 -20
  6. package/dist/components/base/AvFieldset/AvFieldset.vue.d.ts +24 -4
  7. package/dist/components/base/AvFieldsetElement/AvFieldsetElement.vue.d.ts +29 -0
  8. package/dist/components/base/AvIconText/AvIconText.stub.d.ts +7 -0
  9. package/dist/components/base/AvMessage/AvMessage.stories.d.ts +27 -0
  10. package/dist/components/base/AvMessage/AvMessage.test.d.ts +1 -0
  11. package/dist/components/base/AvMessage/AvMessage.vue.d.ts +21 -0
  12. package/dist/components/base/AvNotice/AvNotice.stories.d.ts +1 -0
  13. package/dist/components/base/index.d.ts +1 -0
  14. package/dist/components/feedback/AvAlert/AvAlert.stories.d.ts +69 -0
  15. package/dist/components/feedback/AvAlert/AvAlert.vue.d.ts +0 -5
  16. package/dist/components/interaction/buttons/AvButton/AvButton.stories.d.ts +1 -1
  17. package/dist/components/interaction/buttons/AvButton/AvButton.vue.d.ts +9 -9
  18. package/dist/components/interaction/checkboxes/AvCheckbox/AvChecbox.stories.d.ts +4 -0
  19. package/dist/components/interaction/checkboxes/AvCheckbox/AvCheckbox.vue.d.ts +1 -1
  20. package/dist/components/interaction/checkboxes/AvCheckboxesGroup/AvCheckboxesGroup.stories.d.ts +38 -0
  21. package/dist/components/interaction/checkboxes/AvCheckboxesGroup/AvCheckboxesGroup.vue.d.ts +46 -0
  22. package/dist/components/interaction/checkboxes/index.d.ts +1 -0
  23. package/dist/components/interaction/inputs/AvSearchBar/AvSearchBar.vue.d.ts +3 -0
  24. package/dist/components/interaction/lists/AvList/AvList.stories.d.ts +2 -2
  25. package/dist/components/interaction/lists/AvListItem/AvListItem.stories.d.ts +4 -4
  26. package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.stories.d.ts +1 -0
  27. package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +9 -0
  28. package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.stories.d.ts +3 -0
  29. package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.vue.d.ts +0 -5
  30. package/dist/components/interaction/selects/AvMultiselect/components/MultiselectCollapse.vue.d.ts +2 -13
  31. package/dist/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +1 -1
  32. package/dist/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +3 -0
  33. package/dist/components/navigation/AvPagination/AvPagination.stories.d.ts +28 -0
  34. package/dist/components/navigation/AvSideMenu/AvSideMenu.stories.d.ts +3 -3
  35. package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stories.d.ts +4 -4
  36. package/dist/components/navigation/AvStepper/AvStepper.vue.d.ts +1 -3
  37. package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +3 -3
  38. package/dist/components/overlay/dropdowns/AvDropdown/AvDropdown.stub.d.ts +2 -2
  39. package/dist/components/overlay/dropdowns/AvDropdown/AvDropdown.vue.d.ts +6 -6
  40. package/dist/components/overlay/modals/AvModal/AvModal.stories.d.ts +36 -0
  41. package/dist/components/overlay/modals/AvModal/AvModal.vue.d.ts +0 -5
  42. package/dist/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +1 -5
  43. package/dist/composables/use-av-breakpoints/use-av-breakpoints.d.ts +3 -0
  44. package/dist/composables/use-collapsable/use-collapsable.d.ts +1 -1
  45. package/dist/index.cjs.js +5 -5
  46. package/dist/index.es.js +6244 -6127
  47. package/dist/main.d.ts +0 -5
  48. package/dist/stories/foundations/icons.stories.d.ts +1 -0
  49. package/dist/test-utils.cjs.js +15 -15
  50. package/dist/test-utils.es.js +37 -32
  51. package/dist/tests/index.d.ts +2 -1
  52. package/dist/tokens/icons.d.ts +12 -0
  53. package/package.json +1 -2
  54. package/src/styles/components/_buttons.scss +9 -0
  55. package/src/styles/components/_collapse.scss +37 -0
  56. package/src/styles/components/_footer.scss +15 -0
  57. package/src/styles/components/_form.scss +50 -0
  58. package/src/styles/components/_grid.scss +182 -0
  59. package/src/styles/components/_links.scss +6 -0
  60. package/src/styles/components/_menu.scss +59 -0
  61. package/src/styles/components/_navigation.scss +122 -0
  62. package/src/styles/components/_selects.scss +13 -0
  63. package/src/styles/{texts.scss → components/_texts.scss} +11 -0
  64. package/src/styles/core/_accessibility.scss +14 -0
  65. package/src/styles/core/_cursors.scss +47 -0
  66. package/src/styles/{dimensions.scss → core/_dimensions.scss} +1 -0
  67. package/src/styles/core/_focus.scss +66 -0
  68. package/src/styles/core/_hover.scss +22 -0
  69. package/src/styles/core/_namespace.scss +9 -0
  70. package/src/styles/{palette.scss → core/_palette.scss} +2 -0
  71. package/src/styles/core/_spacing.scss +33 -0
  72. package/src/styles/{typography.scss → core/_typography.scss} +40 -1
  73. package/src/styles/main.scss +41 -25
  74. package/src/styles/settings/_breakpoints.scss +33 -0
  75. package/src/styles/utilities/_helpers.scss +136 -0
  76. package/src/styles/utilities/_spacing.scss +48 -0
  77. package/src/styles/buttons.scss +0 -24
  78. package/src/styles/spacing.scss +0 -21
  79. /package/src/styles/{radius.scss → core/_radius.scss} +0 -0
@@ -0,0 +1,182 @@
1
+ @use '../core/namespace' as *;
2
+ @use '../settings/breakpoints' as bp;
3
+ @use '../core/spacing' as sp;
4
+
5
+ $columns: 12;
6
+
7
+ // === Containers ===
8
+ // Default container
9
+ // Ex: .av-container, .av-container--fluid
10
+ @include ns("container") {
11
+ max-width: 90rem;
12
+ margin-left: auto;
13
+ margin-right: auto;
14
+ padding-left: sp.get(sm);
15
+ padding-right: sp.get(sm);
16
+
17
+ &--fluid {
18
+ max-width: none;
19
+ padding-left: var(--spacing-none);
20
+ padding-right: var(--spacing-none);
21
+ overflow: hidden;
22
+ }
23
+ }
24
+
25
+ // Breakpoint-specific containers
26
+ // Ex: .av-container-md / .av-container-lg
27
+ @each $bp-name, $bp-value in bp.$breakpoints {
28
+ @media (min-width: #{$bp-value}) {
29
+ @include ns("container-#{$bp-name}") {
30
+ width: 100%;
31
+ max-width: #{$bp-value};
32
+ margin-left: auto;
33
+ margin-right: auto;
34
+ @if $bp-name == lg or $bp-name == xl {
35
+ padding-left: sp.get(md);
36
+ padding-right: sp.get(md);
37
+ } @else {
38
+ padding-left: sp.get(sm);
39
+ padding-right: sp.get(sm);
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ // === Rows ===
46
+ $row-justifications: (
47
+ left: flex-start,
48
+ right: flex-end,
49
+ center: center,
50
+ between: space-between
51
+ );
52
+
53
+ $row-alignments: (
54
+ top: flex-start,
55
+ middle: center,
56
+ bottom: flex-end
57
+ );
58
+
59
+ @include ns("row") {
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+
63
+ // Horizontal alignments
64
+ // Ex: .av-row--left / .av-row--center
65
+ @each $mod-name, $justify in $row-justifications {
66
+ &--#{$mod-name} {
67
+ justify-content: $justify;
68
+ }
69
+ }
70
+
71
+ // Vertical alignments
72
+ // Ex: .av-row--top / .av-row--bottom
73
+ @each $mod-name, $align in $row-alignments {
74
+ &--#{$mod-name} {
75
+ align-items: $align;
76
+ }
77
+ }
78
+ }
79
+
80
+ @each $bp-name, $bp-value in bp.$breakpoints {
81
+ @media (min-width: #{$bp-value}) {
82
+ // Base row
83
+ // Ex: .av-row-md
84
+ @include ns("row-#{$bp-name}") {
85
+ display: flex;
86
+ flex-wrap: wrap;
87
+ margin-left: -#{sp.get(sm)};
88
+ margin-right: -#{sp.get(sm)};
89
+
90
+ > * {
91
+ padding-left: sp.get(sm);
92
+ padding-right: sp.get(sm);
93
+ }
94
+
95
+ &.av-no-gutters {
96
+ margin-left: 0;
97
+ margin-right: 0;
98
+
99
+ > * {
100
+ padding-left: 0;
101
+ padding-right: 0;
102
+ }
103
+ }
104
+
105
+ // Horizontal alignments
106
+ // Ex: .av-row-md--left / .av-row-lg--center
107
+ @each $mod-name, $justify in $row-justifications {
108
+ &--#{$mod-name} {
109
+ justify-content: $justify;
110
+ }
111
+ }
112
+
113
+ // Vertical alignments
114
+ // Ex: .av-row-md--top / .av-row-lg--bottom
115
+ @each $mod-name, $align in $row-alignments {
116
+ &--#{$mod-name} {
117
+ align-items: $align;
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+
124
+ // === Columns ===
125
+ $col-alignments: (
126
+ top: flex-start,
127
+ middle: center,
128
+ bottom: flex-end
129
+ );
130
+
131
+ @each $bp-name, $bp-value in bp.$breakpoints {
132
+ @media (min-width: #{$bp-value}) {
133
+ // Base column
134
+ // Ex: .av-col-md
135
+ @include ns("col-#{$bp-name}") {
136
+ flex: 1;
137
+ }
138
+
139
+ // Align-self modifiers
140
+ // Ex: .av-col-md--top / .av-col-lg--bottom
141
+ @each $mod-name, $align in $col-alignments {
142
+ @include ns("col-#{$bp-name}--#{$mod-name}") {
143
+ align-self: $align;
144
+ }
145
+ }
146
+
147
+ // Width and offsets
148
+ // Ex: .av-col-md-4 / .av-col-offset-md-2 / .av-col-offset-md-2--right
149
+ @for $i from 1 through $columns {
150
+ @include ns("col-#{$bp-name}-#{$i}") {
151
+ flex: 0 0 calc(100% * #{$i} / #{$columns});
152
+ max-width: calc(100% * #{$i} / #{$columns});
153
+ }
154
+
155
+ @include ns("col-offset-#{$bp-name}-#{$i}") {
156
+ margin-left: calc(100% * #{$i} / #{$columns});
157
+ }
158
+
159
+ @include ns("col-offset-#{$bp-name}-#{$i}--right") {
160
+ margin-left: 0;
161
+ margin-right: calc(100% * #{$i} / #{$columns});
162
+ }
163
+ }
164
+ }
165
+ }
166
+
167
+ // === Gapped flex directions ===
168
+ // Ex: .av-flex-row-md / .av-flex-col-sm
169
+ $flex-directions: (
170
+ row: row,
171
+ col: column,
172
+ );
173
+
174
+ @each $dir-name, $dir-value in $flex-directions {
175
+ @each $size, $value in sp.$spacing {
176
+ @include ns("flex-#{$dir-name}-#{$size}") {
177
+ display: flex;
178
+ flex-direction: $dir-value;
179
+ gap: var(--spacing-#{$size});
180
+ }
181
+ }
182
+ }
@@ -0,0 +1,6 @@
1
+ a {
2
+ --hover-tint:var(--idle);
3
+ --active-tint:var(--active);
4
+ color:inherit;
5
+ text-decoration:var(--text-decoration);
6
+ }
@@ -0,0 +1,59 @@
1
+ @use '../core/namespace' as *;
2
+ @use '../settings/breakpoints' as *;
3
+
4
+ @include ns("menu") {
5
+ background-color: var(--other-background-base);
6
+
7
+ &.#{$prefix}collapsing {
8
+ margin-top: var(--spacing-none);
9
+ padding-top: var(--spacing-none);
10
+ }
11
+
12
+ &__list {
13
+ margin: var(--spacing-none);
14
+ padding: var(--spacing-none) var(--spacing-sm) var(--spacing-sm);
15
+
16
+ & > * {
17
+ &:not(:last-child) {
18
+ border-bottom: 1px solid var(--stroke);
19
+ }
20
+ }
21
+
22
+
23
+ }
24
+
25
+ .#{$prefix}nav__link {
26
+ height: auto;
27
+ min-height: auto;
28
+ padding: var(--spacing-sm);
29
+
30
+ &[aria-current]:not([aria-current=false]) {
31
+ position: relative;
32
+
33
+ &::before {
34
+ content: "";
35
+ display: block;
36
+ height: var(--dimension-md);
37
+ left: 0;
38
+ margin-top: calc(-1 * var(--dimension-md) / 2);
39
+ position: absolute;
40
+ top: 50%;
41
+ width: var(--dimension-xxxs);
42
+ }
43
+ }
44
+ }
45
+
46
+ @include min-width(lg) {
47
+ pointer-events: none;
48
+ position: absolute;
49
+ top: 100%;
50
+ z-index: 1000;
51
+
52
+ &__list {
53
+ padding: var(--spacing-none);
54
+ pointer-events: auto;
55
+ border: 2px solid var(--stroke);
56
+ border-top-width: 1px;
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,122 @@
1
+ @use '../core/namespace' as *;
2
+ @use '../settings/breakpoints' as *;
3
+
4
+ @include ns("nav") {
5
+ &__list,
6
+ &__item {
7
+ display: flex;
8
+ flex-direction: column;
9
+ }
10
+
11
+ &__list {
12
+ position: relative;
13
+ margin: var(--spacing-none);
14
+ padding: var(--spacing-none);
15
+ }
16
+
17
+ &__item {
18
+ align-items: stretch;
19
+ flex: 0 1 auto;
20
+ position: relative;
21
+
22
+ &::before {
23
+ box-shadow: 0 -1px 0 0 var(--light-background-neutral), inset 0 -1px 0 0 var(--light-background-neutral);
24
+ content: "";
25
+ display: block;
26
+ height: 100%;
27
+ inset: var(--spacing-none);
28
+ pointer-events: none;
29
+ position: absolute;
30
+ width: 100%;
31
+ }
32
+
33
+ &:first-child:last-child::before {
34
+ box-shadow: none;
35
+ }
36
+
37
+ &:first-child::before {
38
+ box-shadow: inset 0 -1px 0 0 var(--light-background-neutral);
39
+ }
40
+
41
+ &:last-child::before {
42
+ box-shadow: 0 -1px 0 0 var(--light-background-neutral);
43
+ }
44
+ }
45
+
46
+ &__btn,
47
+ &__link {
48
+ display: flex;
49
+ flex-direction: row;
50
+ align-items: center;
51
+ justify-content: space-between;
52
+ height: 100%;
53
+ width: auto;
54
+ margin: var(--spacing-none);
55
+ padding: .75rem var(--spacing-sm);
56
+ text-align: left;
57
+ color: var(--text1);
58
+ min-height: var(--dimension-2xl);
59
+
60
+ &:hover {
61
+ background-color: var(--dark-background-primary1) !important;
62
+ color: var(--other-background-base) !important;
63
+ }
64
+ }
65
+
66
+ &__link {
67
+ &:not([href])[aria-current]:not([aria-current=false]) {
68
+ cursor: default;
69
+ pointer-events: none;
70
+ }
71
+ }
72
+
73
+ & li::marker {
74
+ content: none;
75
+ }
76
+
77
+ @include min-width(lg) {
78
+ &__list {
79
+ flex-direction: row;
80
+ flex-wrap: nowrap;
81
+
82
+ &>:first-child:nth-last-child(2)~*,
83
+ &>:first-child:nth-last-child(3)~*,
84
+ &>:first-child:nth-last-child(4)~* {
85
+ margin-left: 1.25rem;
86
+ }
87
+ }
88
+
89
+ &__item {
90
+ align-items: flex-start;
91
+ position: static;
92
+
93
+ &::before {
94
+ content: none;
95
+ }
96
+ }
97
+
98
+ &__btn,
99
+ &__link {
100
+ padding: var(--spacing-sm);
101
+
102
+ &[aria-current]:not([aria-current=false]) {
103
+ position: relative;
104
+
105
+ &::before {
106
+ position: absolute;
107
+ top: auto;
108
+ bottom: 0;
109
+ left: 0;
110
+ margin-top: 0;
111
+ height: var(--dimension-xxxs);
112
+ width: 100%;
113
+ content: "";
114
+ }
115
+ }
116
+ }
117
+
118
+ &__btn {
119
+ justify-content: flex-start;
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,13 @@
1
+ @use '../core/namespace' as *;
2
+
3
+ @include ns("select-group") {
4
+ position: relative;
5
+
6
+ &--error .av-label * {
7
+ color: var(--dark-background-error) !important;
8
+ }
9
+
10
+ &--success .av-label * {
11
+ color: var(--dark-background-success) !important;
12
+ }
13
+ }
@@ -1,3 +1,13 @@
1
+ @use '../core/namespace' as *;
2
+
3
+ // === Ellipsis ===
4
+ @include ns("ellipsis") {
5
+ display: inline !important;
6
+ overflow: hidden !important;
7
+ text-overflow: ellipsis !important;
8
+ white-space: nowrap !important;
9
+ }
10
+
1
11
  .ellipsis {
2
12
  overflow: hidden;
3
13
  text-overflow: ellipsis;
@@ -16,6 +26,7 @@
16
26
  }
17
27
  }
18
28
 
29
+ // === Text decoration ===
19
30
  .text-underline {
20
31
  text-decoration: underline;
21
32
  }
@@ -0,0 +1,14 @@
1
+ @use './namespace' as *;
2
+
3
+ @include ns("sr-only") {
4
+ position: absolute !important;
5
+ width: 1px !important;
6
+ height: 1px !important;
7
+ padding: 0 !important;
8
+ margin: -1px !important;
9
+ overflow: hidden !important;
10
+ clip: rect(0, 0, 0, 0) !important;
11
+ white-space: nowrap !important;
12
+ border: 0 !important;
13
+ display: block !important;
14
+ }
@@ -0,0 +1,47 @@
1
+ // === Global cursor management ===
2
+ $interactive: (
3
+ a,
4
+ 'audio[controls]',
5
+ button,
6
+ details,
7
+ 'details>summary:first-of-type',
8
+ 'input[type=button]',
9
+ 'input[type=checkbox]',
10
+ 'input[type=checkbox]+label',
11
+ 'input[type=file]',
12
+ 'input[type=image]',
13
+ 'input[type=radio]',
14
+ 'input[type=radio]+label',
15
+ 'input[type=range]',
16
+ 'input[type=reset]',
17
+ 'input[type=submit]',
18
+ select,
19
+ textarea,
20
+ 'video[controls]'
21
+ );
22
+
23
+ #{$interactive} {
24
+ cursor: pointer;
25
+ }
26
+
27
+ #{$interactive}:disabled,
28
+ a:not([href]),
29
+ audio:not([href])[controls],
30
+ input[type=range]:disabled,
31
+ input[type=range]:disabled::-webkit-slider-thumb,
32
+ input[type=range]:disabled::-moz-range-thumb,
33
+ input[type=range]:disabled::-ms-thumb,
34
+ button:disabled,
35
+ input:disabled,
36
+ input[type=button]:disabled,
37
+ input[type=checkbox]:disabled+label,
38
+ input[type=file]:disabled,
39
+ input[type=image]:disabled,
40
+ input[type=radio]:disabled+label,
41
+ input[type=reset]:disabled,
42
+ input[type=submit]:disabled,
43
+ select:disabled,
44
+ textarea:disabled,
45
+ video:not([href])[controls] {
46
+ cursor: not-allowed;
47
+ }
@@ -9,5 +9,6 @@
9
9
  --dimension-lg: 2rem; /* 32px */
10
10
  --dimension-md: 1.5rem; /* 24px */
11
11
  --dimension-sm: 1rem; /* 16px */
12
+ --dimension-xs: 0.5rem; /* 8px */
12
13
  --dimension-xxxs: 0.125rem; /* 2px */
13
14
  }
@@ -0,0 +1,66 @@
1
+ // === Focus styles ===
2
+ @mixin focus-style {
3
+ outline-color: #0a76f6;
4
+ outline-offset: 2px;
5
+ outline-style: solid;
6
+ outline-width: 2px;
7
+ }
8
+
9
+ // === Focusable elements ===
10
+ $focus-elements: (
11
+ '[contenteditable]:not([contenteditable=false])',
12
+ '[tabindex]',
13
+ 'a',
14
+ 'audio[controls]',
15
+ 'button',
16
+ 'details',
17
+ 'details>summary:first-of-type',
18
+ 'input',
19
+ 'input[type=button]',
20
+ 'input[type=image]',
21
+ 'input[type=radio]+label:before',
22
+ 'input[type=reset]',
23
+ 'input[type=submit]',
24
+ 'select',
25
+ 'textarea',
26
+ 'video[controls]'
27
+ );
28
+
29
+ // === Elements visually linked to a focused input ===
30
+ $focus-linked-elements: (
31
+ 'input[type=checkbox]:focus-visible + label',
32
+ );
33
+
34
+ // === Apply focus styles ===
35
+ @each $el in $focus-elements {
36
+ #{$el}:focus {
37
+ @include focus-style;
38
+ }
39
+ #{$el}:focus-visible {
40
+ @include focus-style;
41
+ }
42
+ #{$el}:focus:not(:focus-visible) {
43
+ outline-style: none;
44
+ }
45
+ }
46
+
47
+ // === Apply focus styles to visual “linked” elements (labels) ===
48
+ @each $el in $focus-linked-elements {
49
+ #{$el} {
50
+ @include focus-style;
51
+ }
52
+ }
53
+
54
+ // === Apply focus styles to range input sliders ===
55
+ $sliders: ('-webkit-slider-thumb', '-moz-range-thumb', '-ms-thumb');
56
+ @each $slider in $sliders {
57
+ input[type=range]:focus::#{$slider} {
58
+ @include focus-style;
59
+ }
60
+ input[type=range]:focus-visible::#{$slider} {
61
+ outline-style: solid;
62
+ }
63
+ input[type=range]:focus:not(:focus-visible)::#{$slider} {
64
+ outline-style: none;
65
+ }
66
+ }
@@ -0,0 +1,22 @@
1
+ @use "sass:string";
2
+
3
+ // === Hover styles ===
4
+ // Generated global hover rules for interactive elements (no mixin)
5
+ $hover-media: string.unquote("(hover: hover) and (pointer: fine)");
6
+
7
+ $hoverable-selectors: (
8
+ 'button:not(:disabled)',
9
+ 'input[type=button]:not(:disabled)',
10
+ 'input[type=image]:not(:disabled)',
11
+ 'input[type=reset]:not(:disabled)',
12
+ 'input[type=submit]:not(:disabled)'
13
+ );
14
+
15
+ // Apply hover background within the hover-capable media query
16
+ @media #{$hover-media} {
17
+ @each $sel in $hoverable-selectors {
18
+ #{string.unquote($sel)}:hover {
19
+ background-color: var(--light-background-neutral);
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,9 @@
1
+ // Global prefix for all DSAV classes
2
+ $prefix: "av-";
3
+
4
+ // Mixin to create namespaced classes
5
+ @mixin ns($name) {
6
+ .#{$prefix}#{$name} {
7
+ @content;
8
+ }
9
+ }
@@ -36,6 +36,7 @@
36
36
  --text1: #14171ACC;
37
37
  --text2: #14171AA3;
38
38
  --icon: #14171A7A;
39
+ --icon-filter: invert(65%) sepia(6%) saturate(100%) hue-rotate(180deg) brightness(75%) contrast(85%);
39
40
  --divider: #14171A5C;
40
41
  --stroke: #14171A29;
41
42
  --selected-disabled-foreground: #14171ACC;
@@ -106,6 +107,7 @@
106
107
  --text1: #FAFAFACC;
107
108
  --text2: #FAFAFAA3;
108
109
  --icon: #FAFAFA7A;
110
+ --icon-filter: invert(98%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(25%);
109
111
  --divider: #FAFAFA5C;
110
112
  --stroke: #FAFAFA29;
111
113
  --selected-disabled-foreground: #FAFAFACC;
@@ -0,0 +1,33 @@
1
+ @use "sass:map";
2
+
3
+ $spacing: (
4
+ none: 0,
5
+ xxxs: 0.125rem, /* 2px */
6
+ xxs: 0.25rem, /* 4px */
7
+ xs: 0.5rem, /* 8px */
8
+ sm: 1rem, /* 16px */
9
+ md: 1.5rem, /* 24px */
10
+ lg: 2rem, /* 32px */
11
+ xl: 2.5rem, /* 40px */
12
+ 2xl: 3rem, /* 48px */
13
+ 4xl: 4rem, /* 64px */
14
+ 5xl: 5rem, /* 80px */
15
+ ) !default;
16
+
17
+ :root {
18
+ @each $key, $value in $spacing {
19
+ --spacing-#{$key}: #{$value};
20
+ }
21
+ }
22
+
23
+ @function get($key) {
24
+ @return map.get($spacing, $key);
25
+ }
26
+
27
+ .line-break {
28
+ height: var(--spacing-xs);
29
+ }
30
+
31
+ .indented-list {
32
+ padding-left: var(--spacing-md);
33
+ }