@keenmate/web-multiselect 1.0.0-rc03 → 1.0.0-rc05

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.
@@ -0,0 +1,142 @@
1
+ // ==============================================================================
2
+ // RTL (Right-to-Left) SUPPORT
3
+ // ==============================================================================
4
+ // Styles for RTL languages (Arabic, Hebrew, etc.)
5
+ // Applied when .ml--rtl class is present
6
+
7
+ @use 'variables' as *;
8
+
9
+ // ==============================================================================
10
+ // INPUT & TOGGLE ICON
11
+ // ==============================================================================
12
+
13
+ .ml--rtl {
14
+ .ml__input-wrapper {
15
+ direction: rtl;
16
+ }
17
+
18
+ .ml__input {
19
+ text-align: right;
20
+ padding-left: var(--ml-input-padding-right, $ml-input-padding-right);
21
+ padding-right: var(--ml-input-padding-h, $ml-input-padding-h);
22
+ }
23
+
24
+ // Move toggle icon to left side
25
+ .ml__toggle {
26
+ left: var(--ml-toggle-right, $ml-toggle-right) !important;
27
+ right: auto !important;
28
+ }
29
+
30
+ // Move count badge to left side
31
+ .ml__count-badge {
32
+ left: var(--ml-count-badge-offset, $ml-count-badge-offset) !important;
33
+ right: auto !important;
34
+ }
35
+
36
+ // ==============================================================================
37
+ // DROPDOWN OPTIONS
38
+ // ==============================================================================
39
+
40
+ .ml__dropdown {
41
+ direction: rtl;
42
+ text-align: right;
43
+ }
44
+
45
+ // Checkbox on right side
46
+ .ml__option {
47
+ flex-direction: row-reverse;
48
+ }
49
+
50
+ .ml__checkbox {
51
+ margin-left: var(--ml-spacing-sm, $ml-spacing-sm);
52
+ margin-right: 0;
53
+ }
54
+
55
+ .ml__option-content {
56
+ text-align: right;
57
+ }
58
+
59
+ .ml__option-icon {
60
+ margin-left: var(--ml-spacing-xs, $ml-spacing-xs);
61
+ margin-right: 0;
62
+ }
63
+
64
+ // ==============================================================================
65
+ // PILLS LAYOUT
66
+ // ==============================================================================
67
+
68
+ .ml__pills {
69
+ direction: rtl;
70
+ }
71
+
72
+ // Pills flow right-to-left
73
+ .ml__pill {
74
+ flex-direction: row-reverse;
75
+ }
76
+
77
+ // Remove button on left side of pill
78
+ .ml__pill-remove {
79
+ border-radius: var(--ml-pill-remove-border-radius-rtl, $ml-pill-border-radius) 0 0 var(--ml-pill-remove-border-radius-rtl, $ml-pill-border-radius);
80
+ border-left: var(--ml-pill-remove-border, $ml-pill-remove-border);
81
+ border-right: none;
82
+ }
83
+
84
+ // Pill text rounded on right
85
+ .ml__pill-text {
86
+ border-radius: 0 var(--ml-pill-text-border-radius-rtl, $ml-pill-border-radius) var(--ml-pill-text-border-radius-rtl, $ml-pill-border-radius) 0;
87
+ }
88
+
89
+ // ==============================================================================
90
+ // COUNT DISPLAY
91
+ // ==============================================================================
92
+
93
+ .ml__count-display {
94
+ direction: rtl;
95
+ }
96
+
97
+ .ml__count-badge-wrapper {
98
+ flex-direction: row-reverse;
99
+ }
100
+
101
+ // ==============================================================================
102
+ // SELECTED POPOVER
103
+ // ==============================================================================
104
+
105
+ .ml__selected-popover {
106
+ direction: rtl;
107
+ text-align: right;
108
+ }
109
+
110
+ // ==============================================================================
111
+ // ACTIONS
112
+ // ==============================================================================
113
+
114
+ .ml__actions {
115
+ direction: rtl;
116
+ }
117
+
118
+ // ==============================================================================
119
+ // GROUPS
120
+ // ==============================================================================
121
+
122
+ .ml__group-label {
123
+ text-align: right;
124
+ }
125
+
126
+ // ==============================================================================
127
+ // EMPTY STATE
128
+ // ==============================================================================
129
+
130
+ .ml__empty {
131
+ text-align: right;
132
+ }
133
+
134
+ // ==============================================================================
135
+ // HINT
136
+ // ==============================================================================
137
+
138
+ .ml__hint {
139
+ direction: rtl;
140
+ text-align: right;
141
+ }
142
+ }
@@ -330,8 +330,8 @@ $ml-pill-gap: $ml-spacing-sm !default;
330
330
  $ml-pills-gap: $ml-pill-gap !default;
331
331
  $ml-pills-margin-bottom: $ml-spacing-sm !default;
332
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;
333
+ $ml-pills-margin-left: $ml-spacing-xs !default;
334
+ $ml-pills-margin-right: $ml-spacing-xs !default;
335
335
 
336
336
  // Count Display
337
337
  // ==============================================================================
@@ -10,6 +10,7 @@
10
10
  // - _options.scss : Options list, groups, checkbox, content, states
11
11
  // - _pills-display.scss : Pills, count display, individual pills
12
12
  // - _tooltips-popover.scss: Pill tooltips + selected items popover
13
+ // - _rtl.scss : RTL (Right-to-Left) language support
13
14
  // - _modifiers.scss : Size variants + state modifiers
14
15
  // - _debug.scss : Debug information panel
15
16
 
@@ -20,5 +21,6 @@
20
21
  @use 'options';
21
22
  @use 'pills-display';
22
23
  @use 'tooltips-popover';
24
+ @use 'rtl';
23
25
  @use 'modifiers';
24
26
  @use 'debug';