@keenmate/web-multiselect 1.0.0-rc02
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/LICENSE +21 -0
- package/README.md +562 -0
- package/dist/index.d.ts +26 -0
- package/dist/multiselect.d.ts +117 -0
- package/dist/multiselect.js +2231 -0
- package/dist/multiselect.umd.js +46 -0
- package/dist/style.css +1 -0
- package/dist/types.d.ts +187 -0
- package/dist/web-component.d.ts +103 -0
- package/package.json +75 -0
- package/src/scss/_base.scss +41 -0
- package/src/scss/_debug.scss +60 -0
- package/src/scss/_input-dropdown.scss +177 -0
- package/src/scss/_modifiers.scss +95 -0
- package/src/scss/_options.scss +175 -0
- package/src/scss/_pills-display.scss +218 -0
- package/src/scss/_tooltips-popover.scss +114 -0
- package/src/scss/_variables.scss +453 -0
- package/src/scss/main.scss +24 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
// ==============================================================================
|
|
2
|
+
// MULTISELECT COMPONENT VARIABLES
|
|
3
|
+
// ==============================================================================
|
|
4
|
+
// Organized by concern for easy discovery and customization
|
|
5
|
+
// Three-tier system:
|
|
6
|
+
// 1. Base primitives - Raw foundational values
|
|
7
|
+
// 2. Semantic scales - Named scales (spacing, colors, typography)
|
|
8
|
+
// 3. Component variables - Component-specific variables
|
|
9
|
+
|
|
10
|
+
// ==============================================================================
|
|
11
|
+
// 1. BASE PRIMITIVES
|
|
12
|
+
// ==============================================================================
|
|
13
|
+
// Raw values that other variables reference
|
|
14
|
+
|
|
15
|
+
// Padding & Spacing
|
|
16
|
+
$padding-xs: 0.25rem !default;
|
|
17
|
+
$padding-sm: 0.5rem !default;
|
|
18
|
+
$padding-base: 0.75rem !default;
|
|
19
|
+
$padding-lg: 1rem !default;
|
|
20
|
+
|
|
21
|
+
// Border Radius
|
|
22
|
+
$border-radius-base: 0.375rem !default;
|
|
23
|
+
$border-radius-sm: 0.25rem !default;
|
|
24
|
+
$border-radius-full: 50% !default;
|
|
25
|
+
|
|
26
|
+
// Font Sizes
|
|
27
|
+
$font-size-base: 0.875rem !default;
|
|
28
|
+
$font-size-sm: 0.75rem !default;
|
|
29
|
+
$font-size-lg: 1rem !default;
|
|
30
|
+
|
|
31
|
+
// Border Width
|
|
32
|
+
$border-width-base: 1px !default;
|
|
33
|
+
|
|
34
|
+
// ==============================================================================
|
|
35
|
+
// 2. SPACING SCALE
|
|
36
|
+
// ==============================================================================
|
|
37
|
+
$ml-spacing-xs: $padding-xs !default; // 0.25rem
|
|
38
|
+
$ml-spacing-sm: $padding-sm !default; // 0.5rem
|
|
39
|
+
$ml-spacing-md: $padding-base !default; // 0.75rem
|
|
40
|
+
$ml-spacing-lg: $padding-lg !default; // 1rem
|
|
41
|
+
|
|
42
|
+
// ==============================================================================
|
|
43
|
+
// 3. COLOR PALETTE
|
|
44
|
+
// ==============================================================================
|
|
45
|
+
// Neutral Colors
|
|
46
|
+
$ml-color-white: #ffffff !default;
|
|
47
|
+
$ml-color-neutral-lightest: #f9fafb !default;
|
|
48
|
+
$ml-color-neutral-lighter: #f3f4f6 !default;
|
|
49
|
+
$ml-color-neutral-light: #e5e7eb !default;
|
|
50
|
+
$ml-color-neutral-base: #d1d5db !default;
|
|
51
|
+
$ml-color-neutral-dark: #6b7280 !default;
|
|
52
|
+
$ml-color-neutral-darkest: #111827 !default;
|
|
53
|
+
|
|
54
|
+
// Accent Colors
|
|
55
|
+
$ml-color-accent-lightest: #eff6ff !default;
|
|
56
|
+
$ml-color-accent-lighter: #e0f2fe !default;
|
|
57
|
+
$ml-color-accent-base: #3b82f6 !default;
|
|
58
|
+
$ml-color-accent-dark: #2563eb !default;
|
|
59
|
+
$ml-color-accent-darker: #1d4ed8 !default;
|
|
60
|
+
|
|
61
|
+
// Tooltip Colors
|
|
62
|
+
$ml-color-tooltip-bg: #333 !default;
|
|
63
|
+
$ml-color-tooltip-text: #fff !default;
|
|
64
|
+
|
|
65
|
+
// ==============================================================================
|
|
66
|
+
// 4. TYPOGRAPHY SCALE
|
|
67
|
+
// ==============================================================================
|
|
68
|
+
$ml-font-size-2xs: 0.625rem !default;
|
|
69
|
+
$ml-font-size-xs: $font-size-sm !default; // 0.75rem
|
|
70
|
+
$ml-font-size-sm: $font-size-base !default; // 0.875rem
|
|
71
|
+
$ml-font-size-base: $font-size-lg !default; // 1rem
|
|
72
|
+
$ml-font-size-lg: 1.125rem !default;
|
|
73
|
+
$ml-font-size-xl: 1.25rem !default;
|
|
74
|
+
|
|
75
|
+
$ml-font-weight-medium: 500 !default;
|
|
76
|
+
$ml-font-weight-semibold: 600 !default;
|
|
77
|
+
|
|
78
|
+
$ml-line-height-none: 1 !default;
|
|
79
|
+
$ml-line-height-relaxed: 1.4 !default;
|
|
80
|
+
|
|
81
|
+
$ml-letter-spacing-wide: 0.05em !default;
|
|
82
|
+
|
|
83
|
+
// ==============================================================================
|
|
84
|
+
// 5. BORDERS & SHADOWS
|
|
85
|
+
// ==============================================================================
|
|
86
|
+
$ml-border-width-base: $border-width-base !default;
|
|
87
|
+
$ml-border-radius: $border-radius-base !default;
|
|
88
|
+
$ml-border-radius-sm: $border-radius-sm !default;
|
|
89
|
+
$ml-border-radius-full: $border-radius-full !default;
|
|
90
|
+
|
|
91
|
+
$ml-border-color: $ml-color-neutral-light !default;
|
|
92
|
+
|
|
93
|
+
$ml-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !default;
|
|
94
|
+
$ml-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !default;
|
|
95
|
+
|
|
96
|
+
// ==============================================================================
|
|
97
|
+
// 6. TRANSITIONS & ANIMATIONS
|
|
98
|
+
// ==============================================================================
|
|
99
|
+
$ml-transition-fast: 150ms !default;
|
|
100
|
+
$ml-transition-normal: 200ms !default;
|
|
101
|
+
$ml-easing-snappy: cubic-bezier(0.4, 0, 0.2, 1) !default;
|
|
102
|
+
|
|
103
|
+
// ==============================================================================
|
|
104
|
+
// 7. Z-INDEX LAYERS
|
|
105
|
+
// ==============================================================================
|
|
106
|
+
$ml-z-index-sticky: 1 !default;
|
|
107
|
+
$ml-z-index-dropdown: 9999 !default;
|
|
108
|
+
$ml-z-index-popover: 10000 !default;
|
|
109
|
+
|
|
110
|
+
// ==============================================================================
|
|
111
|
+
// 8. LAYOUT & DIMENSIONS
|
|
112
|
+
// ==============================================================================
|
|
113
|
+
$ml-input-icon-spacing: 2.5rem !default;
|
|
114
|
+
$ml-count-badge-offset: 2rem !default;
|
|
115
|
+
$ml-option-icon-size: 1.25rem !default;
|
|
116
|
+
$ml-count-clear-size: 1rem !default;
|
|
117
|
+
$ml-pill-height: 1.5rem !default;
|
|
118
|
+
$ml-pill-remove-width: 1.5rem !default;
|
|
119
|
+
$ml-popover-close-size: 1.5rem !default;
|
|
120
|
+
|
|
121
|
+
$ml-dropdown-max-height: 20rem !default;
|
|
122
|
+
$ml-selected-popover-width: 20rem !default;
|
|
123
|
+
$ml-selected-popover-max-height: 20rem !default;
|
|
124
|
+
$ml-selected-popover-body-max-height: 18rem !default;
|
|
125
|
+
$ml-tooltip-max-width: 20rem !default;
|
|
126
|
+
|
|
127
|
+
// ==============================================================================
|
|
128
|
+
// 9. OPACITY VALUES
|
|
129
|
+
// ==============================================================================
|
|
130
|
+
$ml-opacity-placeholder: 0.6 !default;
|
|
131
|
+
$ml-opacity-disabled: 0.5 !default;
|
|
132
|
+
$ml-opacity-disabled-input: 0.6 !default;
|
|
133
|
+
$ml-opacity-option-selected-bg: 0.1 !default;
|
|
134
|
+
$ml-opacity-highlight-bg: 0.2 !default;
|
|
135
|
+
$ml-opacity-focus-shadow: 0.5 !default;
|
|
136
|
+
$ml-opacity-disabled-bg: 0.05 !default;
|
|
137
|
+
|
|
138
|
+
// ==============================================================================
|
|
139
|
+
// 10. TRANSFORMS
|
|
140
|
+
// ==============================================================================
|
|
141
|
+
$ml-transform-center-y: translateY(-50%) !default;
|
|
142
|
+
$ml-transform-rotate-180: 180deg !default;
|
|
143
|
+
$ml-transform-scale-hover: 1.1 !default;
|
|
144
|
+
$ml-transform-scale-active: 0.98 !default;
|
|
145
|
+
|
|
146
|
+
// ==============================================================================
|
|
147
|
+
// 11. ICONS & CONTENT
|
|
148
|
+
// ==============================================================================
|
|
149
|
+
$ml-icon-clear: "×" !default;
|
|
150
|
+
$ml-icon-remove: "×" !default;
|
|
151
|
+
|
|
152
|
+
// ==============================================================================
|
|
153
|
+
// 12. LAYOUT HELPERS
|
|
154
|
+
// ==============================================================================
|
|
155
|
+
$ml-order-first: -1 !default;
|
|
156
|
+
$ml-focus-outline-width: 2px !default;
|
|
157
|
+
$ml-option-focus-outline-offset: -2px !default;
|
|
158
|
+
|
|
159
|
+
// ==============================================================================
|
|
160
|
+
// COMPONENT SEMANTIC VARIABLES
|
|
161
|
+
// ==============================================================================
|
|
162
|
+
// These provide a semantic layer over primitive variables for easier customization.
|
|
163
|
+
// Override these to customize individual components without knowing internal structure.
|
|
164
|
+
|
|
165
|
+
// Input Component
|
|
166
|
+
// ==============================================================================
|
|
167
|
+
$ml-input-padding-v: $ml-spacing-sm !default;
|
|
168
|
+
$ml-input-padding-h: $ml-spacing-md !default;
|
|
169
|
+
$ml-input-bg: $ml-color-white !default;
|
|
170
|
+
$ml-input-text: $ml-color-neutral-darkest !default;
|
|
171
|
+
$ml-input-border: $ml-color-neutral-base !default;
|
|
172
|
+
$ml-input-focus-border-color: $ml-color-accent-base !default;
|
|
173
|
+
|
|
174
|
+
$ml-input-border-style: $ml-border-width-base solid $ml-input-border !default;
|
|
175
|
+
$ml-input-border-radius: $ml-border-radius !default;
|
|
176
|
+
$ml-input-font-size: $ml-font-size-sm !default;
|
|
177
|
+
$ml-input-padding: $ml-input-padding-v $ml-input-padding-h !default;
|
|
178
|
+
$ml-input-padding-right: $ml-input-icon-spacing !default;
|
|
179
|
+
$ml-input-placeholder-color: $ml-color-neutral-dark !default;
|
|
180
|
+
$ml-input-bg-disabled: rgba($ml-color-neutral-dark, $ml-opacity-disabled-bg) !default;
|
|
181
|
+
|
|
182
|
+
// Text Colors
|
|
183
|
+
// ==============================================================================
|
|
184
|
+
$ml-text-primary: $ml-color-neutral-darkest !default;
|
|
185
|
+
$ml-text-secondary: $ml-color-neutral-dark !default;
|
|
186
|
+
$ml-text-white: $ml-color-white !default;
|
|
187
|
+
|
|
188
|
+
// Accent Colors
|
|
189
|
+
// ==============================================================================
|
|
190
|
+
$ml-accent-color: $ml-color-accent-base !default;
|
|
191
|
+
$ml-accent-color-hover: $ml-color-accent-dark !default;
|
|
192
|
+
$ml-accent-color-active: $ml-color-accent-darker !default;
|
|
193
|
+
|
|
194
|
+
// Background Colors
|
|
195
|
+
// ==============================================================================
|
|
196
|
+
$ml-primary-bg: $ml-color-neutral-lighter !default;
|
|
197
|
+
$ml-primary-bg-hover: $ml-color-neutral-light !default;
|
|
198
|
+
|
|
199
|
+
// Toggle Icon
|
|
200
|
+
// ==============================================================================
|
|
201
|
+
$ml-toggle-color: $ml-text-secondary !default;
|
|
202
|
+
$ml-toggle-right: $ml-input-padding-h !default;
|
|
203
|
+
|
|
204
|
+
// Count Badge (in input)
|
|
205
|
+
// ==============================================================================
|
|
206
|
+
$ml-count-badge-padding: 0.125rem 0.25rem !default;
|
|
207
|
+
$ml-count-badge-bg: $ml-accent-color !default;
|
|
208
|
+
$ml-count-badge-color: $ml-text-white !default;
|
|
209
|
+
$ml-count-badge-font-size: $ml-font-size-xs !default;
|
|
210
|
+
$ml-count-badge-font-weight: $ml-font-weight-semibold !default;
|
|
211
|
+
$ml-count-badge-border-radius: $ml-border-radius-sm !default;
|
|
212
|
+
$ml-count-badge-bg-hover: $ml-accent-color-hover !default;
|
|
213
|
+
|
|
214
|
+
// Floating Hint
|
|
215
|
+
// ==============================================================================
|
|
216
|
+
$ml-hint-padding: $ml-spacing-sm $ml-spacing-md !default;
|
|
217
|
+
$ml-hint-bg: $ml-color-white !default;
|
|
218
|
+
$ml-hint-border-color: $ml-color-neutral-light !default;
|
|
219
|
+
$ml-hint-border: $ml-border-width-base solid $ml-hint-border-color !default;
|
|
220
|
+
$ml-hint-border-radius: $ml-border-radius !default;
|
|
221
|
+
$ml-hint-box-shadow: $ml-shadow-md !default;
|
|
222
|
+
$ml-hint-font-size: $ml-font-size-xs !default;
|
|
223
|
+
$ml-hint-color: $ml-text-secondary !default;
|
|
224
|
+
|
|
225
|
+
// Dropdown
|
|
226
|
+
// ==============================================================================
|
|
227
|
+
$ml-dropdown-bg: $ml-color-white !default;
|
|
228
|
+
$ml-dropdown-border-color: $ml-color-neutral-light !default;
|
|
229
|
+
$ml-dropdown-shadow: $ml-shadow-xl !default;
|
|
230
|
+
$ml-dropdown-text: $ml-color-neutral-darkest !default;
|
|
231
|
+
|
|
232
|
+
$ml-dropdown-border: $ml-border-width-base solid $ml-dropdown-border-color !default;
|
|
233
|
+
$ml-dropdown-border-radius: $ml-border-radius !default;
|
|
234
|
+
$ml-dropdown-box-shadow: $ml-dropdown-shadow !default;
|
|
235
|
+
$ml-dropdown-color: $ml-dropdown-text !default;
|
|
236
|
+
|
|
237
|
+
// Dropdown Actions
|
|
238
|
+
// ==============================================================================
|
|
239
|
+
$ml-actions-gap: $ml-spacing-xs !default;
|
|
240
|
+
$ml-actions-padding: $ml-spacing-sm !default;
|
|
241
|
+
$ml-actions-border-bottom: $ml-border-width-base solid $ml-border-color !default;
|
|
242
|
+
$ml-actions-bg: $ml-dropdown-bg !default;
|
|
243
|
+
|
|
244
|
+
// Action Button
|
|
245
|
+
// ==============================================================================
|
|
246
|
+
$ml-action-btn-padding: $ml-spacing-xs $ml-spacing-sm !default;
|
|
247
|
+
$ml-action-btn-font-size: $ml-font-size-xs !default;
|
|
248
|
+
$ml-action-btn-border: $ml-border-width-base solid $ml-border-color !default;
|
|
249
|
+
$ml-action-btn-border-radius: $ml-border-radius-sm !default;
|
|
250
|
+
$ml-action-btn-bg: transparent !default;
|
|
251
|
+
$ml-action-btn-color: inherit !default;
|
|
252
|
+
$ml-action-btn-bg-hover: $ml-primary-bg !default;
|
|
253
|
+
$ml-action-btn-border-color-hover: $ml-accent-color !default;
|
|
254
|
+
|
|
255
|
+
// Options Container
|
|
256
|
+
// ==============================================================================
|
|
257
|
+
$ml-options-padding: $ml-spacing-xs 0 !default;
|
|
258
|
+
|
|
259
|
+
// Group
|
|
260
|
+
// ==============================================================================
|
|
261
|
+
$ml-group-border-top: $ml-border-width-base solid $ml-border-color !default;
|
|
262
|
+
$ml-group-margin-top: $ml-spacing-xs !default;
|
|
263
|
+
$ml-group-padding-top: $ml-spacing-xs !default;
|
|
264
|
+
|
|
265
|
+
// Group Label
|
|
266
|
+
// ==============================================================================
|
|
267
|
+
$ml-option-padding-h: $ml-spacing-md !default;
|
|
268
|
+
$ml-group-label-padding: $ml-spacing-xs $ml-option-padding-h !default;
|
|
269
|
+
$ml-group-label-font-size: $ml-font-size-xs !default;
|
|
270
|
+
$ml-group-label-font-weight: $ml-font-weight-semibold !default;
|
|
271
|
+
$ml-group-label-color: $ml-text-secondary !default;
|
|
272
|
+
$ml-group-label-transform: uppercase !default;
|
|
273
|
+
$ml-group-label-letter-spacing: $ml-letter-spacing-wide !default;
|
|
274
|
+
|
|
275
|
+
// Option
|
|
276
|
+
// ==============================================================================
|
|
277
|
+
$ml-option-padding-v: $ml-spacing-sm !default;
|
|
278
|
+
$ml-option-gap: $ml-spacing-sm !default;
|
|
279
|
+
$ml-option-hover-bg: $ml-color-neutral-lightest !default;
|
|
280
|
+
|
|
281
|
+
$ml-option-padding: $ml-option-padding-v $ml-option-padding-h !default;
|
|
282
|
+
$ml-option-bg: transparent !default;
|
|
283
|
+
$ml-option-bg-hover: $ml-option-hover-bg !default;
|
|
284
|
+
$ml-option-bg-focused: $ml-option-hover-bg !default;
|
|
285
|
+
$ml-option-outline-focused: $ml-focus-outline-width solid $ml-accent-color !default;
|
|
286
|
+
$ml-option-bg-selected: rgba($ml-accent-color, $ml-opacity-option-selected-bg) !default;
|
|
287
|
+
|
|
288
|
+
// Option Content
|
|
289
|
+
// ==============================================================================
|
|
290
|
+
$ml-option-content-gap: $ml-spacing-sm !default;
|
|
291
|
+
|
|
292
|
+
// Option Icon
|
|
293
|
+
// ==============================================================================
|
|
294
|
+
$ml-option-icon-font-size: $ml-font-size-base !default;
|
|
295
|
+
|
|
296
|
+
// Option Title
|
|
297
|
+
// ==============================================================================
|
|
298
|
+
$ml-option-title-font-size: $ml-font-size-sm !default;
|
|
299
|
+
$ml-option-title-color: inherit !default;
|
|
300
|
+
$ml-option-mark-bg: rgba($ml-accent-color, $ml-opacity-highlight-bg) !default;
|
|
301
|
+
$ml-option-mark-color: inherit !default;
|
|
302
|
+
$ml-option-mark-font-weight: $ml-font-weight-semibold !default;
|
|
303
|
+
|
|
304
|
+
// Option Subtitle
|
|
305
|
+
// ==============================================================================
|
|
306
|
+
$ml-option-subtitle-margin-top: $ml-spacing-xs !default;
|
|
307
|
+
$ml-option-subtitle-font-size: $ml-font-size-xs !default;
|
|
308
|
+
$ml-option-subtitle-color: $ml-text-secondary !default;
|
|
309
|
+
$ml-option-subtitle-line-height: 1.3 !default;
|
|
310
|
+
|
|
311
|
+
// Empty State
|
|
312
|
+
// ==============================================================================
|
|
313
|
+
$ml-empty-padding: $ml-spacing-lg $ml-option-padding-h !default;
|
|
314
|
+
$ml-empty-font-size: $ml-font-size-sm !default;
|
|
315
|
+
$ml-empty-color: $ml-text-secondary !default;
|
|
316
|
+
|
|
317
|
+
// Loader
|
|
318
|
+
// ==============================================================================
|
|
319
|
+
$ml-loader-padding: $ml-spacing-lg !default;
|
|
320
|
+
$ml-loader-gap: $ml-spacing-sm !default;
|
|
321
|
+
|
|
322
|
+
// Loading Text
|
|
323
|
+
// ==============================================================================
|
|
324
|
+
$ml-loading-text-font-size: $ml-font-size-sm !default;
|
|
325
|
+
$ml-loading-text-color: $ml-text-secondary !default;
|
|
326
|
+
|
|
327
|
+
// Pills Container
|
|
328
|
+
// ==============================================================================
|
|
329
|
+
$ml-pill-gap: $ml-spacing-sm !default;
|
|
330
|
+
$ml-pills-gap: $ml-pill-gap !default;
|
|
331
|
+
$ml-pills-margin-bottom: $ml-spacing-sm !default;
|
|
332
|
+
$ml-pills-margin-top: $ml-spacing-sm !default;
|
|
333
|
+
$ml-pills-margin-left: $ml-spacing-sm !default;
|
|
334
|
+
$ml-pills-margin-right: $ml-spacing-sm !default;
|
|
335
|
+
|
|
336
|
+
// Count Display
|
|
337
|
+
// ==============================================================================
|
|
338
|
+
$ml-count-display-margin-bottom: $ml-spacing-sm !default;
|
|
339
|
+
$ml-count-display-margin-top: $ml-spacing-sm !default;
|
|
340
|
+
$ml-count-display-margin-left: $ml-spacing-sm !default;
|
|
341
|
+
$ml-count-display-margin-right: $ml-spacing-sm !default;
|
|
342
|
+
|
|
343
|
+
// Count Badge Wrapper
|
|
344
|
+
// ==============================================================================
|
|
345
|
+
$ml-count-badge-wrapper-bg: transparent !default;
|
|
346
|
+
$ml-count-badge-wrapper-border: $ml-border-width-base solid $ml-border-color !default;
|
|
347
|
+
$ml-count-badge-wrapper-border-radius: $ml-border-radius-sm !default;
|
|
348
|
+
$ml-count-badge-wrapper-padding: $ml-spacing-xs $ml-spacing-sm !default;
|
|
349
|
+
$ml-count-badge-wrapper-gap: $ml-spacing-xs !default;
|
|
350
|
+
$ml-count-badge-wrapper-bg-hover: $ml-option-hover-bg !default;
|
|
351
|
+
$ml-count-badge-wrapper-border-color-hover: $ml-accent-color !default;
|
|
352
|
+
|
|
353
|
+
// Count Text
|
|
354
|
+
// ==============================================================================
|
|
355
|
+
$ml-count-text-bg: transparent !default;
|
|
356
|
+
$ml-count-text-border: none !default;
|
|
357
|
+
$ml-count-text-font-size: $ml-font-size-sm !default;
|
|
358
|
+
$ml-count-text-color: $ml-text-primary !default;
|
|
359
|
+
|
|
360
|
+
// Count Clear Button
|
|
361
|
+
// ==============================================================================
|
|
362
|
+
$ml-count-clear-bg: transparent !default;
|
|
363
|
+
$ml-count-clear-color: $ml-text-secondary !default;
|
|
364
|
+
$ml-count-clear-font-size: $ml-font-size-lg !default;
|
|
365
|
+
$ml-count-clear-border-radius: $ml-border-radius-full !default;
|
|
366
|
+
$ml-count-clear-bg-hover: rgba($ml-accent-color, $ml-opacity-highlight-bg) !default;
|
|
367
|
+
$ml-count-clear-color-hover: $ml-accent-color !default;
|
|
368
|
+
|
|
369
|
+
// Pill
|
|
370
|
+
// ==============================================================================
|
|
371
|
+
$ml-pill-bg: $ml-color-accent-lightest !default;
|
|
372
|
+
$ml-pill-bg-hover: $ml-color-white !default;
|
|
373
|
+
$ml-pill-bg-active: $ml-color-accent-lighter !default;
|
|
374
|
+
|
|
375
|
+
$ml-pill-font-size: $ml-font-size-xs !default;
|
|
376
|
+
$ml-pill-font-weight: $ml-font-weight-semibold !default;
|
|
377
|
+
$ml-pill-border-radius: $ml-border-radius !default;
|
|
378
|
+
|
|
379
|
+
// Pill Text
|
|
380
|
+
// ==============================================================================
|
|
381
|
+
$ml-pill-text-padding: 0 $ml-spacing-sm !default;
|
|
382
|
+
$ml-pill-text-bg: $ml-pill-bg !default;
|
|
383
|
+
$ml-pill-text-color: $ml-accent-color !default;
|
|
384
|
+
|
|
385
|
+
// Pill Remove Button
|
|
386
|
+
// ==============================================================================
|
|
387
|
+
$ml-pill-remove-bg: $ml-accent-color !default;
|
|
388
|
+
$ml-pill-remove-color: $ml-text-white !default;
|
|
389
|
+
$ml-pill-remove-border: none !default;
|
|
390
|
+
$ml-pill-remove-font-size: $ml-font-size-xs !default;
|
|
391
|
+
$ml-pill-remove-bg-hover: $ml-accent-color-hover !default;
|
|
392
|
+
$ml-pill-remove-box-shadow-focus: 0 0 0 $ml-focus-outline-width
|
|
393
|
+
rgba($ml-accent-color, $ml-opacity-focus-shadow) !default;
|
|
394
|
+
|
|
395
|
+
// "+X more" badge (partial mode)
|
|
396
|
+
// ==============================================================================
|
|
397
|
+
$ml-more-badge-bg: $ml-pill-text-bg !default;
|
|
398
|
+
$ml-more-badge-hover-bg: $ml-pill-bg-hover !default;
|
|
399
|
+
$ml-more-badge-active-bg: $ml-pill-bg-active !default;
|
|
400
|
+
|
|
401
|
+
// Tooltip
|
|
402
|
+
// ==============================================================================
|
|
403
|
+
$ml-tooltip-bg: $ml-color-tooltip-bg !default;
|
|
404
|
+
$ml-tooltip-color: $ml-color-tooltip-text !default;
|
|
405
|
+
$ml-tooltip-padding: $ml-spacing-sm $ml-spacing-md !default;
|
|
406
|
+
$ml-tooltip-border-radius: $ml-border-radius !default;
|
|
407
|
+
$ml-tooltip-font-size: $ml-font-size-sm !default;
|
|
408
|
+
$ml-tooltip-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !default;
|
|
409
|
+
$ml-tooltip-z-index: $ml-z-index-popover !default;
|
|
410
|
+
|
|
411
|
+
// Selected Popover
|
|
412
|
+
// ==============================================================================
|
|
413
|
+
$ml-selected-popover-bg: $ml-dropdown-bg !default;
|
|
414
|
+
$ml-selected-popover-border: $ml-border-width-base solid $ml-dropdown-border-color !default;
|
|
415
|
+
$ml-selected-popover-border-radius: $ml-border-radius !default;
|
|
416
|
+
$ml-selected-popover-box-shadow: $ml-dropdown-shadow !default;
|
|
417
|
+
|
|
418
|
+
// Selected Popover Header
|
|
419
|
+
// ==============================================================================
|
|
420
|
+
$ml-selected-popover-header-padding: $ml-spacing-sm $ml-spacing-md !default;
|
|
421
|
+
$ml-selected-popover-header-bg: rgba($ml-accent-color, $ml-opacity-option-selected-bg) !default;
|
|
422
|
+
$ml-selected-popover-header-border-bottom: $ml-border-width-base solid $ml-border-color !default;
|
|
423
|
+
$ml-selected-popover-header-font-size: $ml-font-size-sm !default;
|
|
424
|
+
$ml-selected-popover-header-font-weight: $ml-font-weight-semibold !default;
|
|
425
|
+
$ml-selected-popover-header-color: $ml-text-primary !default;
|
|
426
|
+
|
|
427
|
+
// Selected Popover Close
|
|
428
|
+
// ==============================================================================
|
|
429
|
+
$ml-selected-popover-close-bg: transparent !default;
|
|
430
|
+
$ml-selected-popover-close-color: $ml-text-secondary !default;
|
|
431
|
+
$ml-selected-popover-close-font-size: $ml-font-size-xl !default;
|
|
432
|
+
$ml-selected-popover-close-border-radius: $ml-border-radius-full !default;
|
|
433
|
+
$ml-selected-popover-close-bg-hover: rgba($ml-accent-color, $ml-opacity-highlight-bg) !default;
|
|
434
|
+
$ml-selected-popover-close-color-hover: $ml-accent-color !default;
|
|
435
|
+
|
|
436
|
+
// Selected Popover Body
|
|
437
|
+
// ==============================================================================
|
|
438
|
+
$ml-selected-popover-body-gap: $ml-spacing-xs !default;
|
|
439
|
+
$ml-selected-popover-body-padding: $ml-spacing-sm !default;
|
|
440
|
+
|
|
441
|
+
// Checkbox
|
|
442
|
+
// ==============================================================================
|
|
443
|
+
$ml-checkbox-offset: 0.125rem !default;
|
|
444
|
+
$ml-checkbox-margin-top: $ml-checkbox-offset !default;
|
|
445
|
+
|
|
446
|
+
// Placeholder
|
|
447
|
+
// ==============================================================================
|
|
448
|
+
$ml-placeholder-opacity: $ml-opacity-placeholder !default;
|
|
449
|
+
|
|
450
|
+
// Disabled States
|
|
451
|
+
// ==============================================================================
|
|
452
|
+
$ml-disabled-opacity: $ml-opacity-disabled !default;
|
|
453
|
+
$ml-disabled-input-opacity: $ml-opacity-disabled-input !default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// ==============================================================================
|
|
2
|
+
// MULTISELECT COMPONENT - MAIN ENTRY POINT
|
|
3
|
+
// ==============================================================================
|
|
4
|
+
// Typeahead multiselect with rich content support and floating hints
|
|
5
|
+
//
|
|
6
|
+
// File structure:
|
|
7
|
+
// - _variables.scss : All variables (base primitives + semantic)
|
|
8
|
+
// - _base.scss : FOUC prevention + layout containers
|
|
9
|
+
// - _input-dropdown.scss : Input, toggle, badge, hint, dropdown, actions
|
|
10
|
+
// - _options.scss : Options list, groups, checkbox, content, states
|
|
11
|
+
// - _pills-display.scss : Pills, count display, individual pills
|
|
12
|
+
// - _tooltips-popover.scss: Pill tooltips + selected items popover
|
|
13
|
+
// - _modifiers.scss : Size variants + state modifiers
|
|
14
|
+
// - _debug.scss : Debug information panel
|
|
15
|
+
|
|
16
|
+
// Import all partials in dependency order
|
|
17
|
+
@use 'variables';
|
|
18
|
+
@use 'base';
|
|
19
|
+
@use 'input-dropdown';
|
|
20
|
+
@use 'options';
|
|
21
|
+
@use 'pills-display';
|
|
22
|
+
@use 'tooltips-popover';
|
|
23
|
+
@use 'modifiers';
|
|
24
|
+
@use 'debug';
|