@haiilo/catalyst 0.15.2 → 1.0.1

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 (131) hide show
  1. package/dist/catalyst/catalyst.css +2 -2
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.cdn.js +7 -17
  5. package/dist/catalyst/index.esm.js +1 -1
  6. package/dist/catalyst/p-081aece8.entry.js +10 -0
  7. package/dist/catalyst/p-081aece8.entry.js.map +1 -0
  8. package/dist/catalyst/p-10b0d7a2.js +10 -0
  9. package/dist/catalyst/p-10b0d7a2.js.map +1 -0
  10. package/dist/catalyst/{p-a255bd64.js → p-f80e3399.js} +1 -1
  11. package/dist/catalyst/p-f80e3399.js.map +1 -0
  12. package/dist/catalyst/scss/_variables.scss +4 -13
  13. package/dist/catalyst/scss/core/_nav.scss +1 -1
  14. package/dist/catalyst/scss/core/_typography.scss +20 -11
  15. package/dist/catalyst/scss/index.scss +0 -52
  16. package/dist/cjs/cat-alert_23.cjs.entry.js +7534 -0
  17. package/dist/cjs/cat-alert_23.cjs.entry.js.map +1 -0
  18. package/dist/cjs/{cat-notification-6a438ad1.js → cat-notification-bcb9fb86.js} +14 -12
  19. package/dist/cjs/cat-notification-bcb9fb86.js.map +1 -0
  20. package/dist/cjs/catalyst.cjs.js +2 -2
  21. package/dist/cjs/catalyst.cjs.js.map +1 -1
  22. package/dist/cjs/{index-c7955116.js → index-8ab22379.js} +1 -1
  23. package/dist/cjs/index-8ab22379.js.map +1 -0
  24. package/dist/cjs/index.cjs.js +1 -1
  25. package/dist/cjs/loader.cjs.js +2 -2
  26. package/dist/cjs/loader.cjs.js.map +1 -1
  27. package/dist/collection/collection-manifest.json +1 -2
  28. package/dist/collection/components/cat-alert/cat-alert.css +12 -13
  29. package/dist/collection/components/cat-badge/cat-badge.css +7 -9
  30. package/dist/collection/components/cat-card/cat-card.css +1 -1
  31. package/dist/collection/components/cat-checkbox/cat-checkbox.css +15 -1
  32. package/dist/collection/components/cat-input/cat-input.css +12 -1
  33. package/dist/collection/components/cat-radio/cat-radio.css +12 -1
  34. package/dist/collection/components/cat-select/cat-select.css +121 -552
  35. package/dist/collection/components/cat-select/cat-select.js +534 -343
  36. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  37. package/dist/collection/components/{cat-select-remote-test/cat-select-remote-test.js → cat-select-demo/cat-select-demo.js} +71 -7
  38. package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -0
  39. package/dist/collection/components/cat-tabs/cat-tabs.css +1 -1
  40. package/dist/collection/components/cat-textarea/cat-textarea.css +5 -1
  41. package/dist/collection/components/cat-toggle/cat-toggle.css +16 -1
  42. package/dist/collection/index.cdn.js +7 -17
  43. package/dist/collection/index.js.map +1 -1
  44. package/dist/collection/scss/_variables.scss +4 -13
  45. package/dist/collection/scss/core/_nav.scss +1 -1
  46. package/dist/collection/scss/core/_typography.scss +20 -11
  47. package/dist/collection/scss/index.scss +0 -52
  48. package/dist/components/cat-alert.js +1 -1
  49. package/dist/components/cat-alert.js.map +1 -1
  50. package/dist/components/cat-avatar.js +1 -118
  51. package/dist/components/cat-avatar.js.map +1 -1
  52. package/dist/components/cat-avatar2.js +122 -0
  53. package/dist/components/cat-avatar2.js.map +1 -0
  54. package/dist/components/cat-badge.js +1 -1
  55. package/dist/components/cat-badge.js.map +1 -1
  56. package/dist/components/cat-button2.js.map +1 -1
  57. package/dist/components/cat-card.js +1 -1
  58. package/dist/components/cat-card.js.map +1 -1
  59. package/dist/components/cat-checkbox2.js +1 -1
  60. package/dist/components/cat-checkbox2.js.map +1 -1
  61. package/dist/components/cat-input.js +1 -1
  62. package/dist/components/cat-input.js.map +1 -1
  63. package/dist/components/cat-modal.js.map +1 -1
  64. package/dist/components/cat-radio.js +1 -1
  65. package/dist/components/cat-radio.js.map +1 -1
  66. package/dist/components/cat-scrollable2.js.map +1 -1
  67. package/dist/components/{cat-select-remote.d.ts → cat-select-demo.d.ts} +4 -4
  68. package/dist/components/{cat-select-remote-test.js → cat-select-demo.js} +81 -13
  69. package/dist/components/cat-select-demo.js.map +1 -0
  70. package/dist/components/cat-select.js +1 -7864
  71. package/dist/components/cat-select.js.map +1 -1
  72. package/dist/components/{cat-select-remote2.js → cat-select2.js} +26 -19
  73. package/dist/components/cat-select2.js.map +1 -0
  74. package/dist/components/cat-tabs.js +1 -1
  75. package/dist/components/cat-tabs.js.map +1 -1
  76. package/dist/components/cat-textarea.js +1 -1
  77. package/dist/components/cat-textarea.js.map +1 -1
  78. package/dist/components/cat-toast-demo.js +13 -5
  79. package/dist/components/cat-toast-demo.js.map +1 -1
  80. package/dist/components/cat-toggle.js +1 -1
  81. package/dist/components/cat-toggle.js.map +1 -1
  82. package/dist/components/first-tabbable.js +110 -12
  83. package/dist/components/first-tabbable.js.map +1 -1
  84. package/dist/components/focus-trap.esm.js +27 -10
  85. package/dist/components/focus-trap.esm.js.map +1 -1
  86. package/dist/components/index.d.ts +1 -2
  87. package/dist/components/index.js +1 -2
  88. package/dist/components/index.js.map +1 -1
  89. package/dist/components/loglevel.js +1 -5
  90. package/dist/components/loglevel.js.map +1 -1
  91. package/dist/esm/cat-alert_23.entry.js +7508 -0
  92. package/dist/esm/cat-alert_23.entry.js.map +1 -0
  93. package/dist/esm/{cat-notification-5b6a2cd9.js → cat-notification-8bcf6fa2.js} +15 -11
  94. package/dist/esm/cat-notification-8bcf6fa2.js.map +1 -0
  95. package/dist/esm/catalyst.js +2 -2
  96. package/dist/esm/catalyst.js.map +1 -1
  97. package/dist/esm/{index-17d2bcf3.js → index-df195301.js} +1 -1
  98. package/dist/esm/index-df195301.js.map +1 -0
  99. package/dist/esm/index.js +1 -1
  100. package/dist/esm/loader.js +2 -2
  101. package/dist/esm/loader.js.map +1 -1
  102. package/dist/types/components/{cat-select-remote → cat-select}/autosize.d.ts +0 -0
  103. package/dist/types/components/cat-select/cat-select.d.ts +116 -58
  104. package/dist/types/components/cat-select-demo/cat-select-demo.d.ts +8 -0
  105. package/dist/types/components.d.ts +16 -138
  106. package/dist/types/index.d.ts +1 -4
  107. package/package.json +9 -11
  108. package/dist/catalyst/p-7fff102c.entry.js +0 -12
  109. package/dist/catalyst/p-7fff102c.entry.js.map +0 -1
  110. package/dist/catalyst/p-933b6a7a.js +0 -10
  111. package/dist/catalyst/p-933b6a7a.js.map +0 -1
  112. package/dist/catalyst/p-a255bd64.js.map +0 -1
  113. package/dist/cjs/cat-alert_24.cjs.entry.js +0 -15171
  114. package/dist/cjs/cat-alert_24.cjs.entry.js.map +0 -1
  115. package/dist/cjs/cat-notification-6a438ad1.js.map +0 -1
  116. package/dist/cjs/index-c7955116.js.map +0 -1
  117. package/dist/collection/components/cat-select-remote/cat-select-remote.css +0 -210
  118. package/dist/collection/components/cat-select-remote/cat-select-remote.js +0 -818
  119. package/dist/collection/components/cat-select-remote/cat-select-remote.js.map +0 -1
  120. package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js.map +0 -1
  121. package/dist/components/cat-select-remote-test.d.ts +0 -11
  122. package/dist/components/cat-select-remote-test.js.map +0 -1
  123. package/dist/components/cat-select-remote.js +0 -8
  124. package/dist/components/cat-select-remote.js.map +0 -1
  125. package/dist/components/cat-select-remote2.js.map +0 -1
  126. package/dist/esm/cat-alert_24.entry.js +0 -15144
  127. package/dist/esm/cat-alert_24.entry.js.map +0 -1
  128. package/dist/esm/cat-notification-5b6a2cd9.js.map +0 -1
  129. package/dist/esm/index-17d2bcf3.js.map +0 -1
  130. package/dist/types/components/cat-select-remote/cat-select-remote.d.ts +0 -164
  131. package/dist/types/components/cat-select-remote-test/cat-select-remote-test.d.ts +0 -6
@@ -3,186 +3,6 @@
3
3
  */
4
4
  /* stylelint-disable value-keyword-case */
5
5
  /* stylelint-enable value-keyword-case */
6
- /* =============================================
7
- = Generic styling =
8
- ============================================= */
9
- * {
10
- -webkit-font-smoothing: antialiased;
11
- -moz-osx-font-smoothing: grayscale;
12
- }
13
-
14
- *,
15
- *::before,
16
- *::after {
17
- box-sizing: border-box;
18
- }
19
-
20
- html,
21
- body {
22
- position: relative;
23
- margin: 0;
24
- width: 100%;
25
- height: 100%;
26
- }
27
-
28
- body {
29
- font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
30
- font-size: 16px;
31
- line-height: 1.4;
32
- color: #fff;
33
- background-color: #333;
34
- overflow-x: hidden;
35
- }
36
-
37
- label {
38
- display: block;
39
- margin-bottom: 8px;
40
- font-size: 14px;
41
- font-weight: 500;
42
- cursor: pointer;
43
- }
44
-
45
- p {
46
- margin-top: 0;
47
- margin-bottom: 8px;
48
- }
49
-
50
- hr {
51
- display: block;
52
- margin: 30px 0;
53
- border: 0;
54
- border-bottom: 1px solid #eaeaea;
55
- height: 1px;
56
- }
57
-
58
- h1,
59
- h2,
60
- h3,
61
- h4,
62
- h5,
63
- h6 {
64
- margin-top: 0;
65
- margin-bottom: 12px;
66
- font-weight: 400;
67
- line-height: 1.2;
68
- }
69
-
70
- a,
71
- a:visited,
72
- a:focus {
73
- color: #fff;
74
- text-decoration: none;
75
- font-weight: 600;
76
- }
77
-
78
- .form-control {
79
- display: block;
80
- width: 100%;
81
- background-color: #f9f9f9;
82
- padding: 12px;
83
- border: 1px solid #ddd;
84
- border-radius: 2.5px;
85
- font-size: 14px;
86
- appearance: none;
87
- margin-bottom: 24px;
88
- }
89
-
90
- h1,
91
- .h1 {
92
- font-size: 32px;
93
- }
94
-
95
- h2,
96
- .h2 {
97
- font-size: 24px;
98
- }
99
-
100
- h3,
101
- .h3 {
102
- font-size: 20px;
103
- }
104
-
105
- h4,
106
- .h4 {
107
- font-size: 18px;
108
- }
109
-
110
- h5,
111
- .h5 {
112
- font-size: 16px;
113
- }
114
-
115
- h6,
116
- .h6 {
117
- font-size: 14px;
118
- }
119
-
120
- label + p {
121
- margin-top: -4px;
122
- }
123
-
124
- .container {
125
- display: block;
126
- margin: auto;
127
- max-width: 40em;
128
- padding: 48px;
129
- }
130
- @media (max-width: 620px) {
131
- .container {
132
- padding: 0;
133
- }
134
- }
135
-
136
- .section {
137
- background-color: #fff;
138
- padding: 24px;
139
- color: #333;
140
- }
141
- .section a,
142
- .section a:visited,
143
- .section a:focus {
144
- color: #00bcd4;
145
- }
146
-
147
- .logo {
148
- display: block;
149
- margin-bottom: 12px;
150
- }
151
-
152
- .logo-img {
153
- width: 100%;
154
- height: auto;
155
- display: inline-block;
156
- max-width: 100%;
157
- vertical-align: top;
158
- padding: 6px 0;
159
- }
160
-
161
- .visible-ie {
162
- display: none;
163
- }
164
-
165
- .push-bottom {
166
- margin-bottom: 24px;
167
- }
168
-
169
- .zero-bottom {
170
- margin-bottom: 0;
171
- }
172
-
173
- .zero-top {
174
- margin-top: 0;
175
- }
176
-
177
- .text-center {
178
- text-align: center;
179
- }
180
-
181
- [data-test-hook] {
182
- margin-bottom: 24px;
183
- }
184
-
185
- /* ===== End of Section comment block ====== */
186
6
  .hint-section {
187
7
  display: flex;
188
8
  gap: 0.5rem;
@@ -193,16 +13,18 @@ label + p {
193
13
  font-size: 0.875rem;
194
14
  line-height: 1rem;
195
15
  font-weight: var(--cat-font-weight-body, 400);
196
- margin: 0;
16
+ margin: 0 !important;
17
+ }
18
+
19
+ :host-context(.cat-error) .hint-section {
20
+ color: #d9340d;
197
21
  }
198
22
 
199
23
  :host {
200
24
  display: flex;
201
25
  flex-direction: column;
202
26
  gap: 0.5rem;
203
- font-size: 0.9375rem;
204
- line-height: 1.25rem;
205
- font-weight: var(--cat-font-weight-body, 400);
27
+ position: relative;
206
28
  margin-bottom: 1rem;
207
29
  }
208
30
 
@@ -212,9 +34,6 @@ label + p {
212
34
 
213
35
  label {
214
36
  align-self: flex-start;
215
- font-size: inherit;
216
- font-weight: inherit;
217
- margin: 0;
218
37
  }
219
38
  label.hidden {
220
39
  position: absolute !important;
@@ -236,430 +55,180 @@ label.hidden {
236
55
  color: rgb(var(--cat-font-color-muted, 105, 118, 135));
237
56
  }
238
57
 
239
- .choices {
240
- position: relative;
241
- overflow: hidden;
242
- font-size: 16px;
58
+ .select-wrapper {
59
+ display: flex;
60
+ align-items: flex-start;
61
+ background: white;
62
+ border-radius: 0.25rem;
63
+ box-shadow: 0 0 0 1px #d7dbe0;
64
+ transition: box-shadow 0.13s linear;
65
+ padding: 0.25rem;
243
66
  }
244
- .choices.is-focused, .choices:focus {
245
- outline: none;
246
- box-shadow: 0 1px 4px 0 #101d3033;
67
+ .select-wrapper:not(.select-disabled):hover {
68
+ box-shadow: 0 0 0 2px #d7dbe0;
247
69
  }
248
- .choices:last-child {
249
- margin-bottom: 0;
70
+ .select-wrapper:not(.select-disabled):focus-within {
71
+ outline: 2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));
250
72
  }
251
- .choices.is-open {
252
- overflow: visible;
73
+
74
+ :host(.cat-error) .select-wrapper {
75
+ box-shadow: 0 0 0 1px #d9340d;
253
76
  }
254
- .choices.is-disabled .choices__inner,
255
- .choices.is-disabled .choices__input {
256
- background-color: #eaeaea;
257
- cursor: not-allowed;
258
- user-select: none;
77
+ :host(.cat-error) .select-wrapper:not(.input-disabled):hover {
78
+ box-shadow: 0 0 0 2px #d9340d;
259
79
  }
260
- .choices.is-disabled .choices__item {
80
+
81
+ .select-disabled {
82
+ background: #f8f8fb;
261
83
  cursor: not-allowed;
262
- }
263
- .choices [hidden] {
264
- display: none !important;
84
+ color: rgb(var(--cat-font-color-muted, 105, 118, 135));
265
85
  }
266
86
 
267
- .choices[data-type*=select-one] {
268
- cursor: pointer;
269
- }
270
- .choices[data-type*=select-one] .choices__list--dropdown .choices__list {
271
- padding-top: 0.5rem;
272
- }
273
- .choices[data-type*=select-one] .choices__input {
274
- display: block;
275
- width: 100%;
276
- padding: 12px 16px 12px 40px;
277
- border-bottom: 1px solid #d7dbe0;
278
- margin: 0;
279
- color: #000;
280
- background: #fff url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjUgMC4yNUMzLjk0MzY1IDAuMjUgMC4yNSAzLjk0MzY1IDAuMjUgOC41QzAuMjUgMTMuMDU2MyAzLjk0MzY1IDE2Ljc1IDguNSAxNi43NUMxMC41MjU1IDE2Ljc1IDEyLjM4MDUgMTYuMDIwMSAxMy44MTYzIDE0LjgwODlDMTMuODUyNiAxNC44ODkyIDEzLjkwMzcgMTQuOTY0NCAxMy45Njk3IDE1LjAzMDNMMTYuNDY5NyAxNy41MzAzQzE2Ljc2MjYgMTcuODIzMiAxNy4yMzc0IDE3LjgyMzIgMTcuNTMwMyAxNy41MzAzQzE3LjgyMzIgMTcuMjM3NCAxNy44MjMyIDE2Ljc2MjYgMTcuNTMwMyAxNi40Njk3TDE1LjAzMDMgMTMuOTY5N0MxNC45NjQ0IDEzLjkwMzcgMTQuODg5MiAxMy44NTI2IDE0LjgwODkgMTMuODE2M0MxNi4wMjAxIDEyLjM4MDUgMTYuNzUgMTAuNTI1NSAxNi43NSA4LjVDMTYuNzUgMy45NDM2NSAxMy4wNTYzIDAuMjUgOC41IDAuMjVaTTEuNzUgOC41QzEuNzUgNC43NzIwOCA0Ljc3MjA4IDEuNzUgOC41IDEuNzVDMTIuMjI3OSAxLjc1IDE1LjI1IDQuNzcyMDggMTUuMjUgOC41QzE1LjI1IDEyLjIyNzkgMTIuMjI3OSAxNS4yNSA4LjUgMTUuMjVDNC43NzIwOCAxNS4yNSAxLjc1IDEyLjIyNzkgMS43NSA4LjVaIiBmaWxsPSIjNjk3Njg3Ii8+Cjwvc3ZnPgo=") no-repeat left 12px center;
281
- }
282
- .choices[data-type*=select-one] .choices__input::before {
283
- content: "abc";
284
- }
285
- .choices[data-type*=select-one] .choices__button {
286
- background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDY5NjcgNi40Njk2N0M2Ljc2MjU2IDYuMTc2NzggNy4yMzc0NCA2LjE3Njc4IDcuNTMwMzMgNi40Njk2N0wxMCA4LjkzOTM0TDEyLjQ2OTcgNi40Njk2N0MxMi43NjI2IDYuMTc2NzggMTMuMjM3NCA2LjE3Njc4IDEzLjUzMDMgNi40Njk2N0MxMy44MjMyIDYuNzYyNTYgMTMuODIzMiA3LjIzNzQ0IDEzLjUzMDMgNy41MzAzM0wxMS4wNjA3IDEwTDEzLjUzMDMgMTIuNDY5N0MxMy44MjMyIDEyLjc2MjYgMTMuODIzMiAxMy4yMzc0IDEzLjUzMDMgMTMuNTMwM0MxMy4yMzc0IDEzLjgyMzIgMTIuNzYyNiAxMy44MjMyIDEyLjQ2OTcgMTMuNTMwM0wxMCAxMS4wNjA3TDcuNTMwMzMgMTMuNTMwM0M3LjIzNzQ0IDEzLjgyMzIgNi43NjI1NiAxMy44MjMyIDYuNDY5NjcgMTMuNTMwM0M2LjE3Njc4IDEzLjIzNzQgNi4xNzY3OCAxMi43NjI2IDYuNDY5NjcgMTIuNDY5N0w4LjkzOTM0IDEwTDYuNDY5NjcgNy41MzAzM0M2LjE3Njc4IDcuMjM3NDQgNi4xNzY3OCA2Ljc2MjU2IDYuNDY5NjcgNi40Njk2N1oiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAgMC4yNUM0LjYxNTIyIDAuMjUgMC4yNSA0LjYxNTIyIDAuMjUgMTBDMC4yNSAxNS4zODQ4IDQuNjE1MjIgMTkuNzUgMTAgMTkuNzVDMTUuMzg0OCAxOS43NSAxOS43NSAxNS4zODQ4IDE5Ljc1IDEwQzE5Ljc1IDQuNjE1MjIgMTUuMzg0OCAwLjI1IDEwIDAuMjVaTTEuNzUgMTBDMS43NSA1LjQ0MzY1IDUuNDQzNjUgMS43NSAxMCAxLjc1QzE0LjU1NjMgMS43NSAxOC4yNSA1LjQ0MzY1IDE4LjI1IDEwQzE4LjI1IDE0LjU1NjMgMTQuNTU2MyAxOC4yNSAxMCAxOC4yNUM1LjQ0MzY1IDE4LjI1IDEuNzUgMTQuNTU2MyAxLjc1IDEwWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==");
287
- padding: 0;
288
- background-size: 20px;
289
- position: absolute;
290
- top: 50%;
291
- right: 0;
292
- margin-top: -10px;
293
- margin-right: 35px;
294
- height: 20px;
295
- width: 20px;
87
+ .select-wrapper-inner {
88
+ display: flex;
89
+ flex: 1 1 auto;
90
+ flex-wrap: wrap;
91
+ align-items: center;
92
+ gap: 0.25rem;
93
+ min-width: 0;
296
94
  }
297
- .choices[data-type*=select-one] .choices__button:focus {
298
- box-shadow: 0 0 0 2px rgba(105, 118, 135, 0.1);
95
+ .select-wrapper-inner > cat-avatar {
96
+ padding-left: 0.25rem;
299
97
  }
300
- .choices[data-type*=select-one] .choices__item[data-value=""] .choices__button {
301
- display: none;
98
+ .select-wrapper-inner cat-avatar {
99
+ --cat-avatar-size: 1.25rem;
302
100
  }
303
- .choices[data-type*=select-one] .choices__item {
101
+
102
+ .select-input {
103
+ font: inherit;
104
+ background: none;
105
+ border: none;
106
+ outline: none;
107
+ padding: 0.375rem 0.5rem;
108
+ flex: 1 1 auto;
304
109
  /* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
305
110
  overflow: hidden;
306
111
  text-overflow: ellipsis;
307
112
  white-space: nowrap;
308
113
  /* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
309
114
  }
310
- .choices[data-type*=select-one][dir=rtl]::after {
311
- left: 11.5px;
312
- right: auto;
115
+ .select-disabled .select-input {
116
+ cursor: inherit;
313
117
  }
314
- .choices[data-type*=select-one][dir=rtl] .choices__button {
315
- right: auto;
316
- left: 0;
317
- margin-left: 35px;
318
- margin-right: 0;
118
+
119
+ .select-pills {
120
+ display: contents;
319
121
  }
320
122
 
321
- .choices[data-type*=select-multiple] .choices__inner,
322
- .choices[data-type*=text] .choices__inner {
323
- cursor: text;
324
- display: flex;
325
- flex-flow: row wrap;
123
+ .pill {
124
+ display: inline-flex;
326
125
  align-items: center;
327
- padding: 4px 60px 4px 4px;
328
- gap: 4px;
329
- }
330
- .choices[data-type*=select-multiple] .choices__item cat-checkbox,
331
- .choices[data-type*=text] .choices__item cat-checkbox {
332
- /* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
333
- overflow: hidden;
334
- text-overflow: ellipsis;
126
+ gap: 0.5rem;
127
+ padding: 0.25rem 0.5rem;
128
+ background: #ebecf0;
129
+ border-radius: 0.125rem;
335
130
  white-space: nowrap;
336
- /* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
337
- margin: 0;
131
+ min-width: 0;
338
132
  }
339
- .choices[data-type*=select-multiple] .choices__item cat-checkbox::part(label),
340
- .choices[data-type*=text] .choices__item cat-checkbox::part(label) {
341
- /* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
133
+ .pill > span {
342
134
  overflow: hidden;
343
135
  text-overflow: ellipsis;
344
- white-space: nowrap;
345
- /* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
346
- }
347
- .choices[data-type*=select-multiple] .choices__input,
348
- .choices[data-type*=text] .choices__input {
349
- min-width: 1ch;
350
- width: 1ch;
351
136
  }
352
- .choices[data-type*=select-multiple] .choices__button,
353
- .choices[data-type*=text] .choices__button {
354
- position: relative;
355
- display: inline-block;
356
- padding-left: 24px;
357
- background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMjc1MzIgMC4zOTEzNzFDMS4wMzEyNCAwLjE0NzI5NCAwLjYzNTUxIDAuMTQ3Mjk0IDAuMzkxNDMyIDAuMzkxMzcxQzAuMTQ3MzU1IDAuNjM1NDQ5IDAuMTQ3MzU1IDEuMDMxMTggMC4zOTE0MzIgMS4yNzUyNUw0LjExNjE2IDQuOTk5OThMMC4zOTE0MzIgOC43MjQ3QzAuMTQ3MzU1IDguOTY4NzggMC4xNDczNTUgOS4zNjQ1MSAwLjM5MTQzMiA5LjYwODU5QzAuNjM1NTEgOS44NTI2NyAxLjAzMTI0IDkuODUyNjcgMS4yNzUzMiA5LjYwODU5TDUuMDAwMDQgNS44ODM4Nkw4LjcyNDc3IDkuNjA4NTlDOC45Njg4NCA5Ljg1MjY3IDkuMzY0NTcgOS44NTI2NyA5LjYwODY1IDkuNjA4NTlDOS44NTI3MyA5LjM2NDUxIDkuODUyNzMgOC45Njg3OCA5LjYwODY1IDguNzI0N0w1Ljg4MzkyIDQuOTk5OThMOS42MDg2NSAxLjI3NTI1QzkuODUyNzMgMS4wMzExOCA5Ljg1MjczIDAuNjM1NDQ5IDkuNjA4NjUgMC4zOTEzNzFDOS4zNjQ1NyAwLjE0NzI5NCA4Ljk2ODg0IDAuMTQ3Mjk0IDguNzI0NzcgMC4zOTEzNzFMNS4wMDAwNCA0LjExNjFMMS4yNzUzMiAwLjM5MTM3MVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=");
358
- background-size: 10px;
359
- width: 10px;
360
- line-height: 1;
361
- opacity: 0.75;
362
- border-radius: 0;
363
- }
364
- .choices[data-type*=select-multiple] .choices__button:hover, .choices[data-type*=select-multiple] .choices__button:focus,
365
- .choices[data-type*=text] .choices__button:hover,
366
- .choices[data-type*=text] .choices__button:focus {
367
- opacity: 1;
368
- }
369
- .choices[data-type*=select-multiple] cat-button,
370
- .choices[data-type*=text] cat-button {
371
- position: absolute;
372
- top: 50%;
373
- right: 0;
374
- margin-top: -20px;
375
- margin-right: 25px;
376
- }
377
- .choices[data-type*=select-multiple] cat-button::part(button),
378
- .choices[data-type*=text] cat-button::part(button) {
379
- box-shadow: unset;
380
- background-color: transparent;
381
- }
382
- .choices[data-type*=select-multiple][dir=rtl] .choices__inner,
383
- .choices[data-type*=text][dir=rtl] .choices__inner {
384
- padding-right: 4px;
385
- padding-left: 60px;
386
- }
387
- .choices[data-type*=select-multiple][dir=rtl] cat-button,
388
- .choices[data-type*=text][dir=rtl] cat-button {
389
- right: auto;
390
- left: 0;
391
- margin-left: 25px;
392
- margin-right: 0;
137
+ .pill > cat-button {
138
+ margin-right: -0.25rem;
139
+ margin-left: -0.25rem;
393
140
  }
394
141
 
395
- .choices[data-type*=select-one]::after,
396
- .choices[data-type*=select-multiple]::after {
397
- content: "";
398
- width: 12px;
399
- height: 6.5px;
400
- background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEyIDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMC40Njk2NyAwLjQ2OTY3QzAuNzYyNTYzIDAuMTc2Nzc3IDEuMjM3NDQgMC4xNzY3NzcgMS41MzAzMyAwLjQ2OTY3TDYgNC45MzkzNEwxMC40Njk3IDAuNDY5NjcxQzEwLjc2MjYgMC4xNzY3NzggMTEuMjM3NCAwLjE3Njc3OCAxMS41MzAzIDAuNDY5NjcxQzExLjgyMzIgMC43NjI1NjQgMTEuODIzMiAxLjIzNzQ0IDExLjUzMDMgMS41MzAzM0w2LjUzMDMzIDYuNTMwMzNDNi4yMzc0NCA2LjgyMzIyIDUuNzYyNTYgNi44MjMyMiA1LjQ2OTY3IDYuNTMwMzNMMC40Njk2NyAxLjUzMDMzQzAuMTc2Nzc3IDEuMjM3NDQgMC4xNzY3NzcgMC43NjI1NjMgMC40Njk2NyAwLjQ2OTY3WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==");
401
- position: absolute;
402
- right: 11.5px;
403
- top: 50%;
404
- margin-top: -2.5px;
405
- pointer-events: none;
406
- transition: transform 0.25s linear;
407
- }
408
- .choices[data-type*=select-one][dir=rtl]::after,
409
- .choices[data-type*=select-multiple][dir=rtl]::after {
410
- left: 11.5px;
411
- right: auto;
412
- }
413
- .choices[data-type*=select-one].is-open::after,
414
- .choices[data-type*=select-multiple].is-open::after {
415
- transform: rotate(180deg);
416
- transition: transform 0.25s linear;
417
- }
418
-
419
- .choices__inner {
420
- display: inline-block;
421
- vertical-align: top;
422
- width: 100%;
423
- background-color: #fff;
424
- border: 1px solid #d7dbe0;
425
- border-radius: 4px;
426
- font-size: 15px;
427
- min-height: 40px;
428
- overflow: hidden;
142
+ .select-btn {
143
+ transition: transform 0.13s linear;
429
144
  }
430
- .is-open .choices__inner {
431
- border-radius: 4px 4px 0 0;
432
- }
433
- .is-flipped.is-open .choices__inner {
434
- border-radius: 0 0 4px 4px;
145
+ .select-btn::part(button) {
146
+ outline: none;
435
147
  }
436
148
 
437
- .choices__list {
438
- margin: 0;
439
- padding-left: 0;
440
- list-style: none;
441
- }
442
- .choices__list--single {
443
- display: flex;
444
- padding: 9px 50px 9px 12px;
445
- width: 100%;
446
- }
447
- [dir=rtl] .choices__list--single {
448
- padding-right: 12px;
449
- padding-left: 50px;
450
- }
451
- .choices__list--single .choices__item {
452
- width: 100%;
149
+ cat-spinner {
150
+ padding: 0.375rem;
453
151
  }
454
152
 
455
- .choices__list--multiple {
456
- display: contents;
457
- }
458
- .choices__list--multiple .choices__item {
459
- font-size: 0.9375rem;
460
- line-height: 1.25rem;
461
- font-weight: 600;
462
- display: inline-flex;
463
- align-items: center;
464
- justify-content: space-between;
465
- border-radius: 2px;
466
- padding: 5px 8px 5px 4px;
467
- background-color: rgba(105, 118, 135, 0.1);
468
- color: #000;
469
- word-break: break-all;
470
- box-sizing: border-box;
471
- }
472
- .choices__list--multiple .choices__item[data-deletable] {
473
- padding-right: 5px;
474
- }
475
- [dir=rtl] .choices__list--multiple .choices__item {
476
- margin-right: 0;
477
- margin-left: 3.75px;
478
- }
479
- .choices__list--multiple .choices__item.is-highlighted {
480
- background-color: rgba(94, 105, 121, 0.1);
481
- }
482
- .is-disabled .choices__list--multiple .choices__item {
483
- background-color: #aaaaaa;
153
+ .select-btn-open {
154
+ transform: rotate(180deg);
484
155
  }
485
156
 
486
- .choices__list--dropdown, .choices__list[aria-expanded] {
487
- visibility: hidden;
488
- z-index: 1;
157
+ .select-dropdown {
489
158
  position: absolute;
490
- width: 100%;
491
- background-color: #fff;
492
- border: 1px solid #d7dbe0;
493
- top: 100%;
494
- margin-top: -1px;
495
- overflow: hidden;
496
- word-break: break-all;
497
- will-change: visibility;
498
- box-shadow: 0 2px 4px 0 #101d3033;
499
- border-bottom-left-radius: 4px;
500
- border-bottom-right-radius: 4px;
501
- }
502
- .is-active.choices__list--dropdown, .is-active.choices__list[aria-expanded] {
503
- visibility: visible;
504
- }
505
- .is-flipped .choices__list--dropdown, .is-flipped .choices__list[aria-expanded] {
506
- top: auto;
507
- bottom: 100%;
508
- margin-top: 0;
509
- margin-bottom: -1px;
510
- border-radius: 0.25rem 0.25rem 0 0;
511
- }
512
- .choices__list--dropdown .choices__list, .choices__list[aria-expanded] .choices__list {
513
- position: relative;
514
- max-height: 300px;
515
- padding: 8px 0;
159
+ right: 0;
160
+ background: white;
161
+ display: none;
516
162
  overflow: auto;
517
- -webkit-overflow-scrolling: touch;
518
- will-change: scroll-position;
519
- }
520
- .choices__list--dropdown .choices__item, .choices__list[aria-expanded] .choices__item {
521
- font-size: 0.9375rem;
522
- line-height: 1.25rem;
523
- font-weight: 500;
524
- position: relative;
525
- padding: 10px;
526
- min-height: 40px;
527
- }
528
- [dir=rtl] .choices__list--dropdown .choices__item, [dir=rtl] .choices__list[aria-expanded] .choices__item {
529
- text-align: right;
530
- }
531
- @media (min-width: 640px) {
532
- .choices__list--dropdown .choices__item--selectable[data-select-text]:not([data-select-text=""]), .choices__list[aria-expanded] .choices__item--selectable[data-select-text]:not([data-select-text=""]) {
533
- padding-right: 100px;
534
- }
535
- [dir=rtl] .choices__list--dropdown .choices__item--selectable[data-select-text]:not([data-select-text=""]), [dir=rtl] .choices__list[aria-expanded] .choices__item--selectable[data-select-text]:not([data-select-text=""]) {
536
- padding-right: 10px;
537
- }
538
- .choices__list--dropdown .choices__item--selectable::after, .choices__list[aria-expanded] .choices__item--selectable::after {
539
- content: attr(data-select-text);
540
- font-size: 12px;
541
- opacity: 0;
542
- position: absolute;
543
- right: 10px;
544
- top: 50%;
545
- transform: translateY(-50%);
546
- }
547
- [dir=rtl] .choices__list--dropdown .choices__item--selectable, [dir=rtl] .choices__list[aria-expanded] .choices__item--selectable {
548
- text-align: right;
549
- padding-left: 100px;
550
- }
551
- [dir=rtl] .choices__list--dropdown .choices__item--selectable::after, [dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after {
552
- right: auto;
553
- left: 10px;
554
- }
555
- }
556
- .choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
557
- background-color: rgba(105, 118, 135, 0.05);
558
- }
559
- .choices__list--dropdown .choices__item--selectable.is-highlighted::after, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after {
560
- opacity: 0.5;
163
+ box-shadow: 0 1px 4px 0 rgba(16, 29, 48, 0.2);
164
+ border-radius: 0.25rem;
165
+ z-index: 100;
561
166
  }
562
167
 
563
- .choices__item {
564
- cursor: default;
565
- border-left: 3px solid transparent;
566
- transition: 0.25s linear;
168
+ .select-options-wrapper {
169
+ max-height: 16rem;
170
+ width: 100%;
567
171
  }
568
172
 
569
- .choices__item--selectable {
570
- cursor: pointer;
173
+ .select-empty {
174
+ margin: 1rem 0;
175
+ padding: 0 1.25rem;
571
176
  }
572
177
 
573
- .choices__item--selected {
574
- border-color: rgb(var(--cat-primary-bg, 32, 127, 138));
178
+ .select-options {
179
+ list-style-type: none;
180
+ margin: 0;
181
+ padding: 0.5rem 0;
575
182
  }
576
-
577
- .choices__item--disabled {
578
- cursor: not-allowed;
579
- user-select: none;
580
- opacity: 0.5;
183
+ .select-options cat-checkbox,
184
+ .select-options .select-option-single {
185
+ margin: 0;
186
+ padding: 0.5rem 1rem;
581
187
  }
582
188
 
583
- .choices__heading {
584
- font-weight: 600;
585
- font-size: 12px;
586
- padding: 10px;
587
- border-bottom: 1px solid #f4f5f6;
588
- color: gray;
189
+ .select-option-inner {
190
+ display: flex;
191
+ gap: 0.5rem;
192
+ --cat-avatar-size: 1.25rem;
589
193
  }
590
194
 
591
- .choices__button {
592
- text-indent: -9999px;
593
- appearance: none;
594
- border: 0;
595
- background-color: transparent;
596
- background-repeat: no-repeat;
597
- background-position: center;
195
+ .select-option-single {
598
196
  cursor: pointer;
599
197
  }
600
- .choices__button:focus {
601
- outline: none;
602
- }
603
198
 
604
- .choices__input {
605
- display: inline-block;
606
- vertical-align: baseline;
607
- background-color: white;
608
- font-size: 15px;
609
- font-family: var(--cat-font-family-body, "Lato"), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
610
- border: 0;
611
- border-radius: 0;
612
- max-width: 100%;
613
- padding: 7px 0 4px 2px;
614
- }
615
- .choices__input:focus {
616
- outline: 0;
617
- }
618
- .choices__input::-webkit-search-decoration, .choices__input::-webkit-search-cancel-button, .choices__input::-webkit-search-results-button, .choices__input::-webkit-search-results-decoration {
619
- display: none;
620
- }
621
- .choices__input::-ms-clear, .choices__input::-ms-reveal {
622
- display: none;
623
- width: 0;
624
- height: 0;
625
- }
626
- [dir=rtl] .choices__input {
627
- padding-right: 2px;
628
- padding-left: 0;
199
+ .select-input-transparent-caret {
200
+ caret-color: transparent;
629
201
  }
630
202
 
631
- .choices__placeholder {
632
- opacity: 0.5;
203
+ .select-option-empty,
204
+ .select-option-loading {
205
+ padding: 0.5rem 1rem;
633
206
  }
634
207
 
635
- .choices__group {
636
- padding: 8px 16px;
637
- height: 34px;
638
- }
639
- .choices__group .choices__heading {
640
- font-style: normal;
641
- font-weight: 700;
642
- font-size: 14px;
643
- line-height: 18px;
644
- padding: unset;
645
- border-bottom: 0;
646
- color: #697687;
647
- }
648
- .choices__group:not(:first-child) {
649
- border-top: 1px solid #f4f5f6;
650
- margin-top: 8px;
208
+ .select-option:hover {
209
+ background-color: rgba(105, 118, 135, 0.05);
651
210
  }
652
211
 
653
- .d-flex {
654
- display: flex;
212
+ .select-option-active {
213
+ outline: 2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));
214
+ outline-offset: -2px;
655
215
  }
656
216
 
657
- .align-items-center {
658
- align-items: center;
217
+ .select-option-label {
218
+ /* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
219
+ display: -webkit-box;
220
+ -webkit-line-clamp: 2;
221
+ -webkit-box-orient: vertical;
222
+ overflow: hidden;
223
+ /* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
659
224
  }
660
225
 
661
- .choices-option-icon {
662
- width: 20px;
663
- aspect-ratio: 1;
664
- border-radius: 0.125rem;
226
+ .select-option-description {
227
+ /* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
228
+ display: -webkit-box;
229
+ -webkit-line-clamp: 2;
230
+ -webkit-box-orient: vertical;
231
+ overflow: hidden;
232
+ /* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
233
+ color: rgb(var(--cat-font-color-muted, 105, 118, 135));
665
234
  }