@ardium-ui/ui 5.0.0-alpha.75 → 5.0.0-alpha.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 (132) hide show
  1. package/fesm2022/ardium-ui-ui.mjs +106 -106
  2. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  3. package/package.json +1 -1
  4. package/prebuilt-themes/default/badge.css +234 -234
  5. package/prebuilt-themes/default/badge.css.map +1 -1
  6. package/prebuilt-themes/default/buttons/button.css +324 -324
  7. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  8. package/prebuilt-themes/default/buttons/fab.css +317 -319
  9. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  10. package/prebuilt-themes/default/buttons/icon-button.css +299 -300
  11. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  12. package/prebuilt-themes/default/calendar.css +390 -391
  13. package/prebuilt-themes/default/calendar.css.map +1 -1
  14. package/prebuilt-themes/default/card.css +151 -159
  15. package/prebuilt-themes/default/card.css.map +1 -1
  16. package/prebuilt-themes/default/checkbox-list.css +89 -88
  17. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  18. package/prebuilt-themes/default/checkbox.css +349 -349
  19. package/prebuilt-themes/default/checkbox.css.map +1 -1
  20. package/prebuilt-themes/default/chips.css +412 -412
  21. package/prebuilt-themes/default/chips.css.map +1 -1
  22. package/prebuilt-themes/default/color-display.css +34 -33
  23. package/prebuilt-themes/default/color-display.css.map +1 -1
  24. package/prebuilt-themes/default/color-picker.css +105 -103
  25. package/prebuilt-themes/default/color-picker.css.map +1 -1
  26. package/prebuilt-themes/default/core.css +108 -106
  27. package/prebuilt-themes/default/core.css.map +1 -1
  28. package/prebuilt-themes/default/dialog.css +19 -20
  29. package/prebuilt-themes/default/dialog.css.map +1 -1
  30. package/prebuilt-themes/default/divider.css +84 -83
  31. package/prebuilt-themes/default/divider.css.map +1 -1
  32. package/prebuilt-themes/default/dropdown-panel.css +42 -42
  33. package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
  34. package/prebuilt-themes/default/file-drop-area.css +329 -329
  35. package/prebuilt-themes/default/file-drop-area.css.map +1 -1
  36. package/prebuilt-themes/default/form-field-frame.css +102 -102
  37. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  38. package/prebuilt-themes/default/form-field.css +148 -151
  39. package/prebuilt-themes/default/form-field.css.map +1 -1
  40. package/prebuilt-themes/default/inputs/autocomplete-input.css +183 -183
  41. package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
  42. package/prebuilt-themes/default/inputs/color-input.css +99 -98
  43. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  44. package/prebuilt-themes/default/inputs/date-input.css +134 -135
  45. package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
  46. package/prebuilt-themes/default/inputs/digit-input.css +120 -122
  47. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  48. package/prebuilt-themes/default/inputs/file-input.css +385 -387
  49. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  50. package/prebuilt-themes/default/inputs/hex-input.css +150 -149
  51. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  52. package/prebuilt-themes/default/inputs/input.css +137 -136
  53. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  54. package/prebuilt-themes/default/inputs/number-input.css +213 -214
  55. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  56. package/prebuilt-themes/default/inputs/password-input.css +120 -120
  57. package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
  58. package/prebuilt-themes/default/kbd-shortcut.css +14 -13
  59. package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
  60. package/prebuilt-themes/default/kbd.css +26 -25
  61. package/prebuilt-themes/default/kbd.css.map +1 -1
  62. package/prebuilt-themes/default/modal.css +96 -95
  63. package/prebuilt-themes/default/modal.css.map +1 -1
  64. package/prebuilt-themes/default/progress-bar.css +250 -235
  65. package/prebuilt-themes/default/progress-bar.css.map +1 -1
  66. package/prebuilt-themes/default/progress-circle.css +178 -177
  67. package/prebuilt-themes/default/progress-circle.css.map +1 -1
  68. package/prebuilt-themes/default/radio.css +246 -248
  69. package/prebuilt-themes/default/radio.css.map +1 -1
  70. package/prebuilt-themes/default/segment.css +432 -431
  71. package/prebuilt-themes/default/segment.css.map +1 -1
  72. package/prebuilt-themes/default/select.css +302 -304
  73. package/prebuilt-themes/default/select.css.map +1 -1
  74. package/prebuilt-themes/default/slide-toggle.css +319 -319
  75. package/prebuilt-themes/default/slide-toggle.css.map +1 -1
  76. package/prebuilt-themes/default/slider.css +399 -399
  77. package/prebuilt-themes/default/slider.css.map +1 -1
  78. package/prebuilt-themes/default/snackbar.css +185 -185
  79. package/prebuilt-themes/default/snackbar.css.map +1 -1
  80. package/prebuilt-themes/default/spinner.css +161 -161
  81. package/prebuilt-themes/default/spinner.css.map +1 -1
  82. package/prebuilt-themes/default/stars.css +271 -275
  83. package/prebuilt-themes/default/stars.css.map +1 -1
  84. package/prebuilt-themes/default/tabber.css +250 -250
  85. package/prebuilt-themes/default/tabber.css.map +1 -1
  86. package/prebuilt-themes/default/table-pagination.css +57 -57
  87. package/prebuilt-themes/default/table-pagination.css.map +1 -1
  88. package/prebuilt-themes/default/table.css +464 -463
  89. package/prebuilt-themes/default/table.css.map +1 -1
  90. package/themes/default/badge.scss +112 -110
  91. package/themes/default/buttons/button.scss +91 -89
  92. package/themes/default/buttons/fab.scss +80 -76
  93. package/themes/default/buttons/icon-button.scss +73 -71
  94. package/themes/default/calendar.scss +246 -242
  95. package/themes/default/card.scss +161 -159
  96. package/themes/default/checkbox-list.scss +85 -83
  97. package/themes/default/checkbox.scss +68 -66
  98. package/themes/default/chips.scss +202 -195
  99. package/themes/default/color-display.scss +40 -38
  100. package/themes/default/color-picker.scss +95 -93
  101. package/themes/default/core.scss +124 -121
  102. package/themes/default/dialog.scss +21 -19
  103. package/themes/default/divider.scss +92 -90
  104. package/themes/default/dropdown-panel.scss +49 -47
  105. package/themes/default/file-drop-area.scss +197 -195
  106. package/themes/default/form-field-frame.scss +69 -67
  107. package/themes/default/form-field.scss +135 -133
  108. package/themes/default/inputs/autocomplete-input.scss +99 -97
  109. package/themes/default/inputs/color-input.scss +34 -32
  110. package/themes/default/inputs/date-input.scss +88 -86
  111. package/themes/default/inputs/digit-input.scss +103 -101
  112. package/themes/default/inputs/file-input.scss +158 -156
  113. package/themes/default/inputs/hex-input.scss +66 -64
  114. package/themes/default/inputs/input.scss +52 -50
  115. package/themes/default/inputs/number-input.scss +162 -160
  116. package/themes/default/inputs/password-input.scss +99 -97
  117. package/themes/default/kbd-shortcut.scss +15 -13
  118. package/themes/default/kbd.scss +34 -32
  119. package/themes/default/modal.scss +106 -104
  120. package/themes/default/progress-bar.scss +126 -102
  121. package/themes/default/progress-circle.scss +50 -48
  122. package/themes/default/radio.scss +110 -108
  123. package/themes/default/segment.scss +282 -277
  124. package/themes/default/select.scss +255 -253
  125. package/themes/default/slide-toggle.scss +173 -171
  126. package/themes/default/slider.scss +223 -217
  127. package/themes/default/snackbar.scss +49 -47
  128. package/themes/default/spinner.scss +23 -21
  129. package/themes/default/stars.scss +95 -93
  130. package/themes/default/tabber.scss +105 -103
  131. package/themes/default/table-pagination.scss +60 -59
  132. package/themes/default/table.scss +375 -373
@@ -2,305 +2,307 @@
2
2
  @use './mixins' as defaultMixins;
3
3
  @use '../variables' as ARD;
4
4
 
5
- // the variables are commented out intentionally
6
- // read more in docs/dev/css-variables.md
7
- :root {
8
- // --ard-select-height: ;
9
- // --ard-select-height-compact: ;
10
- --ard-select-gap: 0.625rem;
11
- --ard-select-gap-compact: 0.5rem;
12
- --ard-select-controls-gap: 0.625rem;
13
- --ard-select-controls-gap-compact: 0.5rem;
14
- --ard-select-padding: 0 1em 0 0.375em;
15
- --ard-select-padding-compact: 0 0.625em 0 0.375em;
16
-
17
- // --ard-select-font-size: ;
18
- // --ard-select-font-size-compact: ;
19
- // --ard-select-text-color: ;
20
- // --ard-select-placeholder-color: ;
21
- --ard-select-search-min-width: 10ch;
22
- // --ard-select-dropdown-arrow-color: ;
23
- --ard-select-dropdown-arrow-active-transform: rotate(180deg);
24
- --ard-select-dropdown-arrow-transition: 0.2s ease-in-out;
25
-
26
- --ard-select-multiselect-padding: 0.25em 0;
27
- --ard-select-multiselect-chip-gap: 0.375rem;
28
-
29
- --ard-select-dropdown-width: max-content;
30
- --ard-select-dropdown-max-width: max(25em, 100%);
31
- --ard-select-dropdown-min-width: 100%;
32
- --ard-select-dropdown-max-height: 15em;
33
- // --ard-select-dropdown-font-size: ;
34
- // --ard-select-dropdown-font-size-compact: ;
35
- --ard-select-dropdown-padding: 0.375em 0.625em;
36
- --ard-select-dropdown-gap: 0;
37
-
38
- --ard-select-dropdown-optgroup-label-font-size: 0.875em;
39
- --ard-select-dropdown-optgroup-label-font-weight: 600;
40
- --ard-select-dropdown-optgroup-label-letter-spacing: 0.25px;
41
- --ard-select-dropdown-optgroup-label-padding: 0.375em 0.625em 0.0625em 0.625em;
42
-
43
- --ard-select-dropdown-option-padding: 0.375em 0.625em;
44
- // --ard-select-dropdown-option-text-color: ;
45
- // --ard-select-dropdown-option-highlighted-bg: ;
46
- --ard-select-dropdown-option-selected-font-weight: 500;
47
- // --ard-select-dropdown-option-selected-bg: ;
48
- // --ard-select-dropdown-option-selected-highlighted-bg: ;
49
- --ard-select-dropdown-option-disabled-opacity: 50%;
50
-
51
- --ard-select-dropdown-add-custom-gap: 0.375rem;
52
- --ard-select-dropdown-add-custom-label-font-size: 85%;
53
- }
5
+ @layer ard-theme {
6
+ // the variables are commented out intentionally
7
+ // read more in docs/dev/css-variables.md
8
+ :root {
9
+ // --ard-select-height: ;
10
+ // --ard-select-height-compact: ;
11
+ --ard-select-gap: 0.625rem;
12
+ --ard-select-gap-compact: 0.5rem;
13
+ --ard-select-controls-gap: 0.625rem;
14
+ --ard-select-controls-gap-compact: 0.5rem;
15
+ --ard-select-padding: 0 1em 0 0.375em;
16
+ --ard-select-padding-compact: 0 0.625em 0 0.375em;
17
+
18
+ // --ard-select-font-size: ;
19
+ // --ard-select-font-size-compact: ;
20
+ // --ard-select-text-color: ;
21
+ // --ard-select-placeholder-color: ;
22
+ --ard-select-search-min-width: 10ch;
23
+ // --ard-select-dropdown-arrow-color: ;
24
+ --ard-select-dropdown-arrow-active-transform: rotate(180deg);
25
+ --ard-select-dropdown-arrow-transition: 0.2s ease-in-out;
26
+
27
+ --ard-select-multiselect-padding: 0.25em 0;
28
+ --ard-select-multiselect-chip-gap: 0.375rem;
29
+
30
+ --ard-select-dropdown-width: max-content;
31
+ --ard-select-dropdown-max-width: max(25em, 100%);
32
+ --ard-select-dropdown-min-width: 100%;
33
+ --ard-select-dropdown-max-height: 15em;
34
+ // --ard-select-dropdown-font-size: ;
35
+ // --ard-select-dropdown-font-size-compact: ;
36
+ --ard-select-dropdown-padding: 0.375em 0.625em;
37
+ --ard-select-dropdown-gap: 0;
38
+
39
+ --ard-select-dropdown-optgroup-label-font-size: 0.875em;
40
+ --ard-select-dropdown-optgroup-label-font-weight: 600;
41
+ --ard-select-dropdown-optgroup-label-letter-spacing: 0.25px;
42
+ --ard-select-dropdown-optgroup-label-padding: 0.375em 0.625em 0.0625em 0.625em;
43
+
44
+ --ard-select-dropdown-option-padding: 0.375em 0.625em;
45
+ // --ard-select-dropdown-option-text-color: ;
46
+ // --ard-select-dropdown-option-highlighted-bg: ;
47
+ --ard-select-dropdown-option-selected-font-weight: 500;
48
+ // --ard-select-dropdown-option-selected-bg: ;
49
+ // --ard-select-dropdown-option-selected-highlighted-bg: ;
50
+ --ard-select-dropdown-option-disabled-opacity: 50%;
51
+
52
+ --ard-select-dropdown-add-custom-gap: 0.375rem;
53
+ --ard-select-dropdown-add-custom-label-font-size: 85%;
54
+ }
54
55
 
55
- .ard-select {
56
- box-sizing: border-box;
57
- width: 100%;
58
- min-height: var(--ard-select-height, var(--ard-form-field-height, 2.3125rem));
59
- display: grid;
60
- align-items: center;
61
- grid-template-columns: 1fr max-content;
62
- gap: var(--ard-select-gap, 0.625rem);
63
- padding: var(--ard-select-padding, 0 1em 0 0.375em);
64
- font-family: var(--ard-font-family);
65
- font-size: var(--ard-select-font-size, var(--ard-form-field-font-size, 1rem));
66
- color: var(--ard-select-text-color, var(--ard-text, rgba(0, 0, 0, 100%)));
67
-
68
- @include CB.clearButton();
69
-
70
- //! value container
71
- .ard-select-value-container {
72
- position: relative;
73
- height: 2em;
74
- display: flex;
56
+ .ard-select {
57
+ box-sizing: border-box;
58
+ width: 100%;
59
+ min-height: var(--ard-select-height, var(--ard-form-field-height, 2.3125rem));
60
+ display: grid;
75
61
  align-items: center;
62
+ grid-template-columns: 1fr max-content;
63
+ gap: var(--ard-select-gap, 0.625rem);
64
+ padding: var(--ard-select-padding, 0 1em 0 0.375em);
65
+ font-family: var(--ard-font-family);
76
66
  font-size: var(--ard-select-font-size, var(--ard-form-field-font-size, 1rem));
77
- text-size-adjust: 100%;
78
- flex-grow: 1;
79
- overflow: hidden;
67
+ color: var(--ard-select-text-color, var(--ard-text, rgba(0, 0, 0, 100%)));
80
68
 
81
- .ard-placeholder {
82
- font: inherit;
83
- position: absolute;
84
- color: var(--ard-select-placeholder-color, var(--ard-text3, rgba(0, 0, 0, 75%)));
85
- white-space: nowrap;
86
- overflow: hidden;
87
- text-overflow: ellipsis;
88
- width: max-content;
89
- max-width: 100%;
90
- pointer-events: none;
91
- }
69
+ @include CB.clearButton();
92
70
 
93
- .ard-search-input {
94
- width: 100%;
95
- max-width: 100%;
71
+ //! value container
72
+ .ard-select-value-container {
73
+ position: relative;
74
+ height: 2em;
75
+ display: flex;
76
+ align-items: center;
77
+ font-size: var(--ard-select-font-size, var(--ard-form-field-font-size, 1rem));
78
+ text-size-adjust: 100%;
79
+ flex-grow: 1;
80
+ overflow: hidden;
96
81
 
97
- input {
98
- border: none;
99
- background: transparent;
100
- outline: none;
82
+ .ard-placeholder {
101
83
  font: inherit;
102
- padding-left: 1px;
103
- display: block;
84
+ position: absolute;
85
+ color: var(--ard-select-placeholder-color, var(--ard-text3, rgba(0, 0, 0, 75%)));
86
+ white-space: nowrap;
87
+ overflow: hidden;
88
+ text-overflow: ellipsis;
89
+ width: max-content;
90
+ max-width: 100%;
91
+ pointer-events: none;
92
+ }
93
+
94
+ .ard-search-input {
104
95
  width: 100%;
105
96
  max-width: 100%;
97
+
98
+ input {
99
+ border: none;
100
+ background: transparent;
101
+ outline: none;
102
+ font: inherit;
103
+ padding-left: 1px;
104
+ display: block;
105
+ width: 100%;
106
+ max-width: 100%;
107
+ }
106
108
  }
107
109
  }
108
- }
109
- .ard-select-controls {
110
- display: flex;
111
- align-items: center;
112
- gap: var(--ard-select-controls-gap, 0.625rem);
113
- width: max-content;
114
- }
115
- //! single/multiselect
116
- &.ard-singleselect {
117
- .ard-value {
110
+ .ard-select-controls {
111
+ display: flex;
112
+ align-items: center;
113
+ gap: var(--ard-select-controls-gap, 0.625rem);
118
114
  width: max-content;
119
- white-space: nowrap;
120
115
  }
121
- }
122
- &:not(.ard-searchable),
123
- &.ard-singleselect {
124
- .ard-search-input {
125
- position: absolute;
126
- top: 50%;
127
- left: 0;
128
- transform: translateY(-50%) translateX(-1px);
129
- width: max-content;
130
-
131
- input {
116
+ //! single/multiselect
117
+ &.ard-singleselect {
118
+ .ard-value {
132
119
  width: max-content;
120
+ white-space: nowrap;
133
121
  }
134
122
  }
135
- }
136
- &:not(.ard-searchable) .ard-search-input {
137
- pointer-events: none;
138
- }
139
- &.ard-multiselect {
140
- height: max-content;
123
+ &:not(.ard-searchable),
124
+ &.ard-singleselect {
125
+ .ard-search-input {
126
+ position: absolute;
127
+ top: 50%;
128
+ left: 0;
129
+ transform: translateY(-50%) translateX(-1px);
130
+ width: max-content;
141
131
 
142
- .ard-select-value-container {
132
+ input {
133
+ width: max-content;
134
+ }
135
+ }
136
+ }
137
+ &:not(.ard-searchable) .ard-search-input {
138
+ pointer-events: none;
139
+ }
140
+ &.ard-multiselect {
143
141
  height: max-content;
144
- min-height: 1.5625em;
145
- padding: var(--ard-select-multiselect-padding, 0.25em 0);
146
- box-sizing: border-box;
147
- flex-wrap: wrap;
148
- gap: var(--ard-select-multiselect-chip-gap, 0.375rem);
149
- justify-content: stretch;
150
142
 
143
+ .ard-select-value-container {
144
+ height: max-content;
145
+ min-height: 1.5625em;
146
+ padding: var(--ard-select-multiselect-padding, 0.25em 0);
147
+ box-sizing: border-box;
148
+ flex-wrap: wrap;
149
+ gap: var(--ard-select-multiselect-chip-gap, 0.375rem);
150
+ justify-content: stretch;
151
+
152
+ .ard-chip-wrapper {
153
+ margin: 0;
154
+ }
155
+ }
156
+ .ard-search-input {
157
+ flex-grow: 1;
158
+ width: unset !important;
159
+ min-width: var(--ard-select-search-min-width, 10ch);
160
+
161
+ input {
162
+ width: var(--ard-select-search-min-width, 10ch) !important;
163
+ }
164
+ }
151
165
  .ard-chip-wrapper {
152
166
  margin: 0;
153
167
  }
154
168
  }
155
- .ard-search-input {
156
- flex-grow: 1;
157
- width: unset !important;
158
- min-width: var(--ard-select-search-min-width, 10ch);
159
-
160
- input {
161
- width: var(--ard-select-search-min-width, 10ch) !important;
169
+ //! dropdown arrow
170
+ .ard-dropdown-arrow-wrapper {
171
+ display: flex;
172
+ align-items: center;
173
+ height: max-content;
174
+ width: max-content;
175
+ background-color: transparent;
176
+ border: none;
177
+ cursor: pointer;
178
+ transition: transform var(--ard-select-dropdown-arrow-transition, 0.2s ease-in-out);
179
+
180
+ .ard-dropdown-arrow {
181
+ border: calc(ARD.$dropdown-button-size / 2) solid transparent;
182
+ position: relative;
183
+ border-bottom-color: var(--ard-select-dropdown-arrow-color, ARD.$detail);
184
+ border-right-color: var(--ard-select-dropdown-arrow-color, ARD.$detail);
185
+ transform: rotate(45deg) translate(-17.67771%, -17.67771%);
162
186
  }
163
187
  }
164
- .ard-chip-wrapper {
165
- margin: 0;
166
- }
167
- }
168
- //! dropdown arrow
169
- .ard-dropdown-arrow-wrapper {
170
- display: flex;
171
- align-items: center;
172
- height: max-content;
173
- width: max-content;
174
- background-color: transparent;
175
- border: none;
176
- cursor: pointer;
177
- transition: transform var(--ard-select-dropdown-arrow-transition, 0.2s ease-in-out);
178
-
179
- .ard-dropdown-arrow {
180
- border: calc(ARD.$dropdown-button-size / 2) solid transparent;
181
- position: relative;
182
- border-bottom-color: var(--ard-select-dropdown-arrow-color, ARD.$detail);
183
- border-right-color: var(--ard-select-dropdown-arrow-color, ARD.$detail);
184
- transform: rotate(45deg) translate(-17.67771%, -17.67771%);
188
+ &.ard-dropdown-open {
189
+ .ard-dropdown-arrow-wrapper {
190
+ transform: var(--ard-select-dropdown-arrow-active-transform, rotate(180deg));
191
+ }
185
192
  }
186
- }
187
- &.ard-dropdown-open {
188
- .ard-dropdown-arrow-wrapper {
189
- transform: var(--ard-select-dropdown-arrow-active-transform, rotate(180deg));
193
+
194
+ //! compact
195
+ &.ard-compact {
196
+ font-size: var(--ard-select-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem));
197
+ min-height: var(--ard-select-height-compact, var(--ard-form-field-height-compact, 1.6875rem));
198
+ padding: var(--ard-select-padding-compact, 0 0.625em 0 0.375em);
199
+
200
+ .ard-select-controls {
201
+ gap: var(--ard-select-controls-gap-compact, 0.5rem);
202
+ }
203
+ .ard-dropdown-arrow-wrapper .ard-dropdown-arrow {
204
+ border-width: calc(ARD.$dropdown-button-size / 2.4);
205
+ }
190
206
  }
191
207
  }
192
208
 
193
- //! compact
194
- &.ard-compact {
195
- font-size: var(--ard-select-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem));
196
- min-height: var(--ard-select-height-compact, var(--ard-form-field-height-compact, 1.6875rem));
197
- padding: var(--ard-select-padding-compact, 0 0.625em 0 0.375em);
198
-
199
- .ard-select-controls {
200
- gap: var(--ard-select-controls-gap-compact, 0.5rem);
209
+ //! optgroups & options, divider
210
+ .ard-select-dropdown-panel {
211
+ right: 0;
212
+ width: var(--ard-select-dropdown-width, max-content);
213
+ max-width: var(--ard-select-dropdown-max-width, max(25em, 100%));
214
+ min-width: var(--ard-select-dropdown-min-width, 100%);
215
+ font-size: var(--ard-select-dropdown-font-size, var(--ard-form-field-font-size, 1rem));
216
+
217
+ .ard-dropdown-panel-content {
218
+ padding: var(--ard-select-dropdown-padding, 0.375em 0.625em);
219
+ max-height: var(--ard-select-dropdown-max-height, 15em);
220
+ overflow: hidden auto;
201
221
  }
202
- .ard-dropdown-arrow-wrapper .ard-dropdown-arrow {
203
- border-width: calc(ARD.$dropdown-button-size / 2.4);
222
+ .ard-optgroup {
223
+ display: flex;
224
+ flex-direction: column;
225
+ cursor: pointer;
226
+ }
227
+ .ard-optgroup-children {
228
+ cursor: default;
204
229
  }
205
- }
206
- }
207
230
 
208
- //! optgroups & options, divider
209
- .ard-select-dropdown-panel {
210
- right: 0;
211
- width: var(--ard-select-dropdown-width, max-content);
212
- max-width: var(--ard-select-dropdown-max-width, max(25em, 100%));
213
- min-width: var(--ard-select-dropdown-min-width, 100%);
214
- font-size: var(--ard-select-dropdown-font-size, var(--ard-form-field-font-size, 1rem));
215
-
216
- .ard-dropdown-panel-content {
217
- padding: var(--ard-select-dropdown-padding, 0.375em 0.625em);
218
- max-height: var(--ard-select-dropdown-max-height, 15em);
219
- overflow: hidden auto;
220
- }
221
- .ard-optgroup {
222
- display: flex;
223
- flex-direction: column;
224
- cursor: pointer;
225
- }
226
- .ard-optgroup-children {
227
- cursor: default;
228
- }
231
+ .ard-optgroup-label {
232
+ font-size: var(--ard-select-dropdown-optgroup-label-font-size, 0.875em);
233
+ font-weight: var(--ard-select-dropdown-optgroup-label-font-weight, 600);
234
+ letter-spacing: 0.25px;
235
+ padding: var(--ard-select-dropdown-optgroup-label-padding, 0.375em 0.625em 0.0625em 0.625em);
236
+ }
229
237
 
230
- .ard-optgroup-label {
231
- font-size: var(--ard-select-dropdown-optgroup-label-font-size, 0.875em);
232
- font-weight: var(--ard-select-dropdown-optgroup-label-font-weight, 600);
233
- letter-spacing: 0.25px;
234
- padding: var(--ard-select-dropdown-optgroup-label-padding, 0.375em 0.625em 0.0625em 0.625em);
235
- }
238
+ .ard-option {
239
+ padding: var(--ard-select-dropdown-option-padding, 0.375em 0.625em);
240
+ color: var(--ard-select-dropdown-option-text-color, var(--ard-text2, rgba(0, 0, 0, 87%)));
241
+ cursor: pointer;
236
242
 
237
- .ard-option {
238
- padding: var(--ard-select-dropdown-option-padding, 0.375em 0.625em);
239
- color: var(--ard-select-dropdown-option-text-color, var(--ard-text2, rgba(0, 0, 0, 87%)));
240
- cursor: pointer;
243
+ &.ard-option-highlighted {
244
+ background: var(--ard-select-dropdown-option-highlighted-bg, ARD.$darken-overlay-light);
245
+ }
241
246
 
242
- &.ard-option-highlighted {
243
- background: var(--ard-select-dropdown-option-highlighted-bg, ARD.$darken-overlay-light);
244
- }
247
+ &.ard-option-selected {
248
+ font-weight: var(--ard-select-dropdown-option-selected-font-weight, 500);
249
+ background: var(--ard-select-dropdown-option-selected-bg, ARD.$darken-overlay-medium);
245
250
 
246
- &.ard-option-selected {
247
- font-weight: var(--ard-select-dropdown-option-selected-font-weight, 500);
248
- background: var(--ard-select-dropdown-option-selected-bg, ARD.$darken-overlay-medium);
251
+ &.ard-option-highlighted {
252
+ background: var(--ard-select-dropdown-option-selected-highlighted-bg, ARD.$darken-overlay-medium-strong);
253
+ }
254
+ }
249
255
 
250
- &.ard-option-highlighted {
251
- background: var(--ard-select-dropdown-option-selected-highlighted-bg, ARD.$darken-overlay-medium-strong);
256
+ &.ard-option-disabled {
257
+ pointer-events: none;
258
+ opacity: var(--ard-select-dropdown-option-disabled-opacity, 50%);
252
259
  }
253
260
  }
254
-
255
- &.ard-option-disabled {
256
- pointer-events: none;
257
- opacity: var(--ard-select-dropdown-option-disabled-opacity, 50%);
261
+ //divider
262
+ hr.ard-divider {
263
+ width: calc(100% - 1.25em);
264
+ margin: 0.375em 0.625em;
265
+ border: none;
266
+ border-bottom: 1px solid ARD.$darken-overlay-strong;
258
267
  }
259
- }
260
- //divider
261
- hr.ard-divider {
262
- width: calc(100% - 1.25em);
263
- margin: 0.375em 0.625em;
264
- border: none;
265
- border-bottom: 1px solid ARD.$darken-overlay-strong;
266
- }
267
268
 
268
- .ard-optgroup:first-child > hr.ard-divider {
269
- display: none;
270
- }
271
- //! custom option
272
- .ard-add-custom {
273
- display: flex;
274
- align-items: flex-end;
275
- gap: var(--ard-select-dropdown-add-custom-gap, 0.375rem);
276
-
277
- .ard-add-custom-label {
278
- font-size: var(--ard-select-dropdown-add-custom-label-font-size, 85%);
269
+ .ard-optgroup:first-child > hr.ard-divider {
270
+ display: none;
271
+ }
272
+ //! custom option
273
+ .ard-add-custom {
274
+ display: flex;
275
+ align-items: flex-end;
276
+ gap: var(--ard-select-dropdown-add-custom-gap, 0.375rem);
277
+
278
+ .ard-add-custom-label {
279
+ font-size: var(--ard-select-dropdown-add-custom-label-font-size, 85%);
280
+ }
279
281
  }
280
- }
281
282
 
282
- //! compact
283
- > .ard-compact {
284
- font-size: var(--ard-select-dropdown-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem));
283
+ //! compact
284
+ > .ard-compact {
285
+ font-size: var(--ard-select-dropdown-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem));
286
+ }
285
287
  }
286
- }
287
288
 
288
- //! spinner
289
- .ard-simple-spinner {
290
- border-radius: 999px;
291
- border: 0.5em solid var(--ard-spinner-color);
292
- border-top-color: transparent;
293
- animation: spinner-anim 1s linear infinite;
294
- position: relative;
295
-
296
- &::after {
297
- content: '';
298
- position: absolute;
299
- top: 50%;
300
- left: 50%;
301
- transform: translate(-50%, -50%);
289
+ //! spinner
290
+ .ard-simple-spinner {
302
291
  border-radius: 999px;
303
- border: 0.35em solid var(--ard-bg);
292
+ border: 0.5em solid var(--ard-spinner-color);
293
+ border-top-color: transparent;
294
+ animation: spinner-anim 1s linear infinite;
295
+ position: relative;
296
+
297
+ &::after {
298
+ content: '';
299
+ position: absolute;
300
+ top: 50%;
301
+ left: 50%;
302
+ transform: translate(-50%, -50%);
303
+ border-radius: 999px;
304
+ border: 0.35em solid var(--ard-bg);
305
+ }
304
306
  }
305
307
  }
306
308