@ship-ui/core 0.19.5 → 0.22.0

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 (153) hide show
  1. package/README.md +3 -0
  2. package/assets/mcp/components.json +66 -4243
  3. package/bin/mcp/index.js +6027 -273
  4. package/bin/ship-fg-scanner +0 -0
  5. package/bin/ship-fg.mjs +14 -12
  6. package/bin/src/subset.ts +3 -1
  7. package/fesm2022/ship-ui-core-sh-form-field-experimental.mjs +42 -0
  8. package/fesm2022/ship-ui-core-sh-form-field-experimental.mjs.map +1 -0
  9. package/fesm2022/ship-ui-core-ship-accordion.mjs +127 -0
  10. package/fesm2022/ship-ui-core-ship-accordion.mjs.map +1 -0
  11. package/fesm2022/ship-ui-core-ship-alert.mjs +305 -0
  12. package/fesm2022/ship-ui-core-ship-alert.mjs.map +1 -0
  13. package/fesm2022/ship-ui-core-ship-blueprint.mjs +1156 -0
  14. package/fesm2022/ship-ui-core-ship-blueprint.mjs.map +1 -0
  15. package/fesm2022/ship-ui-core-ship-button-group.mjs +41 -0
  16. package/fesm2022/ship-ui-core-ship-button-group.mjs.map +1 -0
  17. package/fesm2022/ship-ui-core-ship-button.mjs +38 -0
  18. package/fesm2022/ship-ui-core-ship-button.mjs.map +1 -0
  19. package/fesm2022/ship-ui-core-ship-card.mjs +35 -0
  20. package/fesm2022/ship-ui-core-ship-card.mjs.map +1 -0
  21. package/fesm2022/ship-ui-core-ship-checkbox.mjs +113 -0
  22. package/fesm2022/ship-ui-core-ship-checkbox.mjs.map +1 -0
  23. package/fesm2022/ship-ui-core-ship-chip.mjs +44 -0
  24. package/fesm2022/ship-ui-core-ship-chip.mjs.map +1 -0
  25. package/fesm2022/ship-ui-core-ship-color-picker.mjs +947 -0
  26. package/fesm2022/ship-ui-core-ship-color-picker.mjs.map +1 -0
  27. package/fesm2022/ship-ui-core-ship-datepicker.mjs +951 -0
  28. package/fesm2022/ship-ui-core-ship-datepicker.mjs.map +1 -0
  29. package/fesm2022/ship-ui-core-ship-dialog.mjs +263 -0
  30. package/fesm2022/ship-ui-core-ship-dialog.mjs.map +1 -0
  31. package/fesm2022/ship-ui-core-ship-divider.mjs +22 -0
  32. package/fesm2022/ship-ui-core-ship-divider.mjs.map +1 -0
  33. package/fesm2022/ship-ui-core-ship-event-card.mjs +50 -0
  34. package/fesm2022/ship-ui-core-ship-event-card.mjs.map +1 -0
  35. package/fesm2022/ship-ui-core-ship-file-upload.mjs +112 -0
  36. package/fesm2022/ship-ui-core-ship-file-upload.mjs.map +1 -0
  37. package/fesm2022/ship-ui-core-ship-form-field.mjs +310 -0
  38. package/fesm2022/ship-ui-core-ship-form-field.mjs.map +1 -0
  39. package/fesm2022/ship-ui-core-ship-icon.mjs +81 -0
  40. package/fesm2022/ship-ui-core-ship-icon.mjs.map +1 -0
  41. package/fesm2022/ship-ui-core-ship-list.mjs +22 -0
  42. package/fesm2022/ship-ui-core-ship-list.mjs.map +1 -0
  43. package/fesm2022/ship-ui-core-ship-menu.mjs +545 -0
  44. package/fesm2022/ship-ui-core-ship-menu.mjs.map +1 -0
  45. package/fesm2022/ship-ui-core-ship-popover.mjs +286 -0
  46. package/fesm2022/ship-ui-core-ship-popover.mjs.map +1 -0
  47. package/fesm2022/ship-ui-core-ship-progress-bar.mjs +37 -0
  48. package/fesm2022/ship-ui-core-ship-progress-bar.mjs.map +1 -0
  49. package/fesm2022/ship-ui-core-ship-radio.mjs +102 -0
  50. package/fesm2022/ship-ui-core-ship-radio.mjs.map +1 -0
  51. package/fesm2022/ship-ui-core-ship-range-slider.mjs +277 -0
  52. package/fesm2022/ship-ui-core-ship-range-slider.mjs.map +1 -0
  53. package/fesm2022/ship-ui-core-ship-select.mjs +971 -0
  54. package/fesm2022/ship-ui-core-ship-select.mjs.map +1 -0
  55. package/fesm2022/ship-ui-core-ship-sidenav.mjs +248 -0
  56. package/fesm2022/ship-ui-core-ship-sidenav.mjs.map +1 -0
  57. package/fesm2022/ship-ui-core-ship-sortable.mjs +485 -0
  58. package/fesm2022/ship-ui-core-ship-sortable.mjs.map +1 -0
  59. package/fesm2022/ship-ui-core-ship-spinner.mjs +28 -0
  60. package/fesm2022/ship-ui-core-ship-spinner.mjs.map +1 -0
  61. package/fesm2022/ship-ui-core-ship-stepper.mjs +76 -0
  62. package/fesm2022/ship-ui-core-ship-stepper.mjs.map +1 -0
  63. package/fesm2022/ship-ui-core-ship-table-filter-bar.mjs +28 -0
  64. package/fesm2022/ship-ui-core-ship-table-filter-bar.mjs.map +1 -0
  65. package/fesm2022/ship-ui-core-ship-table.mjs +442 -0
  66. package/fesm2022/ship-ui-core-ship-table.mjs.map +1 -0
  67. package/fesm2022/ship-ui-core-ship-tabs.mjs +38 -0
  68. package/fesm2022/ship-ui-core-ship-tabs.mjs.map +1 -0
  69. package/fesm2022/ship-ui-core-ship-theme-toggle.mjs +119 -0
  70. package/fesm2022/ship-ui-core-ship-theme-toggle.mjs.map +1 -0
  71. package/fesm2022/ship-ui-core-ship-toggle-card.mjs +75 -0
  72. package/fesm2022/ship-ui-core-ship-toggle-card.mjs.map +1 -0
  73. package/fesm2022/ship-ui-core-ship-toggle.mjs +105 -0
  74. package/fesm2022/ship-ui-core-ship-toggle.mjs.map +1 -0
  75. package/fesm2022/ship-ui-core-ship-virtual-scroll.mjs +186 -0
  76. package/fesm2022/ship-ui-core-ship-virtual-scroll.mjs.map +1 -0
  77. package/fesm2022/ship-ui-core.mjs +880 -8782
  78. package/fesm2022/ship-ui-core.mjs.map +1 -1
  79. package/package.json +147 -3
  80. package/styles/core.scss +43 -0
  81. package/styles/helpers.scss +2 -0
  82. package/styles/index.scss +12 -123
  83. package/types/ship-ui-core-sh-form-field-experimental.d.ts +11 -0
  84. package/types/ship-ui-core-ship-accordion.d.ts +19 -0
  85. package/types/ship-ui-core-ship-alert.d.ts +68 -0
  86. package/types/ship-ui-core-ship-blueprint.d.ts +112 -0
  87. package/types/ship-ui-core-ship-button-group.d.ts +15 -0
  88. package/types/ship-ui-core-ship-button.d.ts +13 -0
  89. package/types/ship-ui-core-ship-card.d.ts +11 -0
  90. package/types/ship-ui-core-ship-checkbox.d.ts +22 -0
  91. package/types/ship-ui-core-ship-chip.d.ts +15 -0
  92. package/types/ship-ui-core-ship-color-picker.d.ts +105 -0
  93. package/types/ship-ui-core-ship-datepicker.d.ts +96 -0
  94. package/types/ship-ui-core-ship-dialog.d.ts +76 -0
  95. package/types/ship-ui-core-ship-divider.d.ts +8 -0
  96. package/types/ship-ui-core-ship-event-card.d.ts +11 -0
  97. package/types/ship-ui-core-ship-file-upload.d.ts +20 -0
  98. package/types/ship-ui-core-ship-form-field.d.ts +32 -0
  99. package/types/ship-ui-core-ship-icon.d.ts +18 -0
  100. package/types/ship-ui-core-ship-list.d.ts +8 -0
  101. package/types/ship-ui-core-ship-menu.d.ts +49 -0
  102. package/types/ship-ui-core-ship-popover.d.ts +40 -0
  103. package/types/ship-ui-core-ship-progress-bar.d.ts +14 -0
  104. package/types/ship-ui-core-ship-radio.d.ts +22 -0
  105. package/types/ship-ui-core-ship-range-slider.d.ts +31 -0
  106. package/types/ship-ui-core-ship-select.d.ts +81 -0
  107. package/types/ship-ui-core-ship-sidenav.d.ts +36 -0
  108. package/types/ship-ui-core-ship-sortable.d.ts +72 -0
  109. package/types/ship-ui-core-ship-spinner.d.ts +10 -0
  110. package/types/ship-ui-core-ship-stepper.d.ts +13 -0
  111. package/types/ship-ui-core-ship-table-filter-bar.d.ts +8 -0
  112. package/types/ship-ui-core-ship-table.d.ts +69 -0
  113. package/types/ship-ui-core-ship-tabs.d.ts +14 -0
  114. package/types/ship-ui-core-ship-theme-toggle.d.ts +28 -0
  115. package/types/ship-ui-core-ship-toggle-card.d.ts +15 -0
  116. package/types/ship-ui-core-ship-toggle.d.ts +21 -0
  117. package/types/ship-ui-core-ship-virtual-scroll.d.ts +22 -0
  118. package/types/ship-ui-core.d.ts +88 -1070
  119. package/styles/components/ship-accordion.scss +0 -113
  120. package/styles/components/ship-alert-container.scss +0 -49
  121. package/styles/components/ship-alert.scss +0 -177
  122. package/styles/components/ship-blueprint.scss +0 -242
  123. package/styles/components/ship-button-group.scss +0 -165
  124. package/styles/components/ship-button.scss +0 -141
  125. package/styles/components/ship-card.scss +0 -57
  126. package/styles/components/ship-checkbox.scss +0 -116
  127. package/styles/components/ship-chip.scss +0 -104
  128. package/styles/components/ship-color-picker.scss +0 -150
  129. package/styles/components/ship-datepicker.scss +0 -317
  130. package/styles/components/ship-dialog.scss +0 -152
  131. package/styles/components/ship-divider.scss +0 -27
  132. package/styles/components/ship-event-card.scss +0 -51
  133. package/styles/components/ship-file-upload.scss +0 -47
  134. package/styles/components/ship-form-field.scss +0 -408
  135. package/styles/components/ship-icon.scss +0 -54
  136. package/styles/components/ship-list.scss +0 -165
  137. package/styles/components/ship-menu.scss +0 -237
  138. package/styles/components/ship-popover.scss +0 -205
  139. package/styles/components/ship-progress-bar.scss +0 -173
  140. package/styles/components/ship-radio.scss +0 -113
  141. package/styles/components/ship-range-slider.scss +0 -421
  142. package/styles/components/ship-select.scss +0 -153
  143. package/styles/components/ship-sidenav.scss +0 -195
  144. package/styles/components/ship-sortable.scss +0 -45
  145. package/styles/components/ship-spinner.scss +0 -53
  146. package/styles/components/ship-stepper.scss +0 -158
  147. package/styles/components/ship-table.scss +0 -443
  148. package/styles/components/ship-tabs.scss +0 -125
  149. package/styles/components/ship-theme-toggle.scss +0 -41
  150. package/styles/components/ship-toggle-card.scss +0 -69
  151. package/styles/components/ship-toggle.scss +0 -255
  152. package/styles/components/ship-tooltip.scss +0 -151
  153. package/styles/components/ship-virtual-scroll.scss +0 -12
@@ -1,421 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipRangeSlider: true !default;
4
-
5
- @if $shipRangeSlider == true {
6
- sh-range-slider {
7
- --rs-h: #{p2r(40)};
8
- --rs-f: var(--paragraph-30);
9
- --rs-unit-g: #{p2r(12)};
10
- --rs-unit-c: var(--base-8);
11
- --rst: var(--base-3);
12
- --rst-bc: var(--base-1);
13
- --rst-bg: var(--base-4);
14
- --rst-h: #{p2r(8)};
15
- --rst-s: calc(var(--shape-2) / 2);
16
- --rs-thumb-c: var(--base-8);
17
- --rs-thumb-bc: var(--base-1);
18
- --rs-thumb-value-bg: var(--base-4);
19
- --rs-thumb-arrow: var(--rs-thumb-value-bg);
20
- --rs-thumb-value-c: var(--base-8);
21
- --rs-thumb-si: #{p2r(16)};
22
- --rs-thumb-w: var(--rs-thumb-si);
23
- --rs-thumb-s: calc(var(--rs-thumb-w) / 2);
24
-
25
- display: flex;
26
- flex-direction: column;
27
- width: 100%;
28
- font: var(--rs-f);
29
-
30
- &.sharp {
31
- --rst-s: #{p2r(2)};
32
- --rs-thumb-s: #{p2r(2)};
33
- --rs-thumb-bc: transparent !important;
34
- }
35
-
36
- .label {
37
- display: flex;
38
- align-items: center;
39
- gap: p2r(8);
40
- padding-bottom: p2r(4);
41
-
42
- > label {
43
- display: flex;
44
- align-items: center;
45
- gap: p2r(4);
46
- }
47
-
48
- sh-icon {
49
- color: var(--grey-500);
50
- font-size: p2r(16);
51
- }
52
-
53
- &:empty {
54
- display: none;
55
- }
56
- }
57
-
58
- &[readonly]:not([readonly='false']),
59
- &:has(input[type='range'][readonly]:not([readonly='false'])),
60
- &[disabled]:not([disabled='false']),
61
- &:has(input[type='range'][disabled]:not([disabled='false'])) {
62
- opacity: 0.4;
63
- pointer-events: none;
64
- user-select: none;
65
- cursor: initial;
66
- }
67
-
68
- &:has(input[type='range'][readonly]),
69
- &.always-show {
70
- .thumb .value-indicator {
71
- opacity: 1;
72
- }
73
- }
74
-
75
- input[type='range'] {
76
- appearance: none;
77
- width: 100%;
78
- height: 100%;
79
- position: absolute;
80
- inset: 0;
81
- opacity: 0;
82
- margin: 0;
83
- z-index: 1000;
84
- }
85
-
86
- .input-wrap {
87
- display: flex;
88
- align-items: center;
89
- justify-content: center;
90
- width: 100%;
91
- min-height: var(--rs-h);
92
- position: relative;
93
- gap: var(--rs-unit-g);
94
- }
95
-
96
- .thumb-wrap {
97
- position: absolute;
98
- top: 0;
99
- }
100
-
101
- .thumb {
102
- position: relative;
103
- margin-top: calc(-1 * var(--rs-thumb-si) / 4);
104
- width: var(--rs-thumb-w);
105
- height: var(--rs-thumb-si);
106
- border-radius: var(--rs-thumb-s);
107
- background-color: var(--rs-thumb-c);
108
- border: 1px solid var(--rs-thumb-bc);
109
- box-shadow: var(--box-shadow-20);
110
- transform: translateX(-50%);
111
- }
112
-
113
- .track-wrap {
114
- position: relative;
115
- width: 100%;
116
- height: var(--rst-h);
117
- }
118
-
119
- .track {
120
- position: relative;
121
- width: 100%;
122
- height: var(--rst-h);
123
- border-radius: var(--rst-s);
124
- background-color: var(--rst);
125
- border: 1px solid var(--rst-bc);
126
- overflow: hidden;
127
- }
128
-
129
- .track-filled {
130
- position: absolute;
131
- top: 0;
132
- left: 0;
133
- bottom: 0;
134
- background: var(--rst-bg);
135
- width: 0;
136
- }
137
-
138
- .min-indicator,
139
- .max-indicator {
140
- white-space: nowrap;
141
- color: var(--rs-unit-c);
142
- }
143
-
144
- input[type='range']:hover ~ .thumb-wrap .value-indicator,
145
- input[type='range']:focus ~ .thumb-wrap .value-indicator {
146
- opacity: 1;
147
- }
148
-
149
- .value-indicator {
150
- position: absolute;
151
- top: p2r(-30);
152
- height: p2r(24);
153
- min-width: p2r(24);
154
- border-radius: var(--shape-2);
155
- left: 50%;
156
- margin: auto;
157
- transform: translateX(-50%);
158
- padding: p2r(4 8);
159
- background: var(--rs-thumb-value-bg);
160
- color: var(--rs-thumb-value-c);
161
- white-space: nowrap;
162
- opacity: 0;
163
- transition: opacity 125ms linear;
164
- user-select: none;
165
- pointer-events: none;
166
-
167
- &:after {
168
- content: '';
169
- border-top: p2r(5) solid var(--rs-thumb-arrow);
170
- border-left: p2r(5) solid transparent;
171
- border-right: p2r(5) solid transparent;
172
- position: absolute;
173
- top: calc(100% - 1px);
174
- left: 50%;
175
- margin-left: p2r(-5);
176
- }
177
- }
178
-
179
- &.primary {
180
- --rst-bg: var(--primary-8);
181
- --rs-thumb-arrow: var(--primary-8);
182
- --rs-thumb-value-bg: var(--primary-8);
183
- --rs-thumb-value-c: #fff;
184
- }
185
-
186
- &.accent {
187
- --rst-bg: var(--accent-8);
188
- --rs-thumb-arrow: var(--accent-8);
189
- --rs-thumb-value-bg: var(--accent-8);
190
- --rs-thumb-value-c: #fff;
191
- }
192
-
193
- &.warn {
194
- --rst-bg: var(--warn-8);
195
- --rs-thumb-arrow: var(--warn-8);
196
- --rs-thumb-value-bg: var(--warn-8);
197
- --rs-thumb-value-c: #fff;
198
- }
199
-
200
- &.error {
201
- --rst-bg: var(--error-8);
202
- --rs-thumb-arrow: var(--error-8);
203
- --rs-thumb-value-bg: var(--error-8);
204
- --rs-thumb-value-c: #fff;
205
- }
206
-
207
- &.success {
208
- --rst-bg: var(--success-8);
209
- --rs-thumb-arrow: var(--success-8);
210
- --rs-thumb-value-bg: var(--success-8);
211
- --rs-thumb-value-c: #fff;
212
- }
213
-
214
- &.simple {
215
- --rst-h: #{p2r(16)};
216
- --rst-s: var(--shape-2);
217
-
218
- .thumb {
219
- width: 1px;
220
- height: var(--rst-h);
221
- margin-top: 0;
222
- border-radius: 0;
223
- border: none;
224
- box-shadow: none;
225
- }
226
-
227
- &.primary {
228
- --rst-bg: var(--primary-8);
229
- --rst: var(--primary-2);
230
- --rs-thumb-c: var(--primary-8);
231
- --rs-thumb-bc: var(--base-1);
232
- --rs-thumb-value-bg: var(--primary-8);
233
- --rs-thumb-value-c: var(--primary-2);
234
- }
235
-
236
- &.accent {
237
- --rst-bg: var(--accent-8);
238
- --rst: var(--accent-2);
239
- --rs-thumb-c: var(--accent-8);
240
- --rs-thumb-bc: var(--base-1);
241
- --rs-thumb-value-bg: var(--accent-8);
242
- --rs-thumb-value-c: var(--accent-2);
243
- }
244
-
245
- &.warn {
246
- --rst-bg: var(--warn-8);
247
- --rst: var(--warn-2);
248
- --rs-thumb-c: var(--warn-8);
249
- --rs-thumb-bc: var(--base-1);
250
- --rs-thumb-value-bg: var(--warn-8);
251
- --rs-thumb-value-c: var(--warn-2);
252
- }
253
-
254
- &.error {
255
- --rst-bg: var(--error-8);
256
- --rst: var(--error-2);
257
- --rs-thumb-c: var(--error-8);
258
- --rs-thumb-bc: var(--base-1);
259
- --rs-thumb-value-bg: var(--error-8);
260
- --rs-thumb-value-c: var(--error-2);
261
- }
262
-
263
- &.success {
264
- --rst-bg: var(--success-8);
265
- --rst: var(--success-2);
266
- --rs-thumb-c: var(--success-8);
267
- --rs-thumb-bc: var(--base-1);
268
- --rs-thumb-value-bg: var(--success-8);
269
- --rs-thumb-value-c: var(--success-2);
270
- }
271
- }
272
-
273
- &.outlined {
274
- --rst: var(--base-1);
275
- --rst-bc: var(--base-4);
276
- --rs-thumb-c: var(--base-6);
277
- --rs-thumb-bc: var(--base-1);
278
- --rs-thumb-arrow: var(--base-4);
279
-
280
- &.primary,
281
- &.accent,
282
- &.warn,
283
- &.error,
284
- &.success {
285
- --rst: var(--base-2);
286
- }
287
-
288
- &.primary {
289
- --rst-bg: var(--primary-4);
290
- --rst-bc: var(--primary-8);
291
- --rs-thumb-c: var(--primary-8);
292
- --rs-thumb-bc: var(--base-1);
293
- --rs-thumb-value-bg: var(--primary-4);
294
- --rs-thumb-value-c: var(--primary-8);
295
- --rs-thumb-arrow: var(--primary-4);
296
- }
297
-
298
- &.accent {
299
- --rs-thumb-c: var(--accent-4);
300
- --rs-thumb-bc: var(--base-1);
301
- --rs-thumb-value-bg: var(--accent-4);
302
- --rs-thumb-value-c: var(--accent-8);
303
- --rs-thumb-arrow: var(--accent-4);
304
- }
305
-
306
- &.warn {
307
- --rs-thumb-c: var(--warn-4);
308
- --rs-thumb-bc: var(--base-1);
309
- --rs-thumb-value-bg: var(--warn-4);
310
- --rs-thumb-value-c: var(--warn-8);
311
- --rs-thumb-arrow: var(--warn-4);
312
- }
313
-
314
- &.error {
315
- --rs-thumb-c: var(--error-4);
316
- --rs-thumb-bc: var(--base-1);
317
- --rs-thumb-value-bg: var(--error-4);
318
- --rs-thumb-value-c: var(--error-8);
319
- --rs-thumb-arrow: var(--error-4);
320
- }
321
-
322
- &.success {
323
- --rs-thumb-c: var(--success-4);
324
- --rs-thumb-bc: var(--base-1);
325
- --rs-thumb-value-bg: var(--success-4);
326
- --rs-thumb-value-c: var(--success-8);
327
- --rs-thumb-arrow: var(--success-4);
328
- }
329
- }
330
-
331
- &.flat {
332
- --rs-thumb-c: #fff;
333
- --rs-thumb-bc: var(--base-4);
334
-
335
- &.primary,
336
- &.accent,
337
- &.warn,
338
- &.error,
339
- &.success {
340
- --rst: var(--base-3);
341
- --rs-thumb-c: #fff;
342
- --rs-thumb-bc: var(--base-4);
343
- --rs-thumb-value-bg: var(--base-8);
344
- --rs-thumb-value-c: #fff;
345
- }
346
-
347
- &.primary {
348
- --rst-bg: var(--primary-8);
349
- --rs-thumb-value-bg: var(--primary-8);
350
- }
351
-
352
- &.accent {
353
- --rst-bg: var(--accent-8);
354
- --rs-thumb-value-bg: var(--accent-8);
355
- }
356
-
357
- &.warn {
358
- --rst-bg: var(--warn-8);
359
- --rs-thumb-value-bg: var(--warn-8);
360
- }
361
-
362
- &.error {
363
- --rst-bg: var(--error-8);
364
- --rs-thumb-value-bg: var(--error-8);
365
- }
366
-
367
- &.success {
368
- --rst-bg: var(--success-8);
369
- --rs-thumb-value-bg: var(--success-8);
370
- }
371
- }
372
-
373
- &.raised {
374
- --rst-bg: var(--base-g2);
375
- --rs-thumb-c: #fff;
376
- --rs-thumb-bc: var(--base-4);
377
-
378
- &.primary,
379
- &.accent,
380
- &.warn,
381
- &.error,
382
- &.success {
383
- --rst: var(--base-3);
384
- --rs-thumb-c: #fff;
385
- --rs-thumb-bc: var(--base-4);
386
- --rs-thumb-value-bg: var(--base-g6);
387
- --rs-thumb-value-c: #fff;
388
- }
389
-
390
- &.primary {
391
- --rst-bg: var(--primary-g2);
392
- --rs-thumb-arrow: var(--primary-8);
393
- --rs-thumb-value-bg: var(--primary-g3);
394
- }
395
-
396
- &.accent {
397
- --rst-bg: var(--accent-g2);
398
- --rs-thumb-arrow: var(--accent-8);
399
- --rs-thumb-value-bg: var(--accent-8);
400
- }
401
-
402
- &.warn {
403
- --rst-bg: var(--warn-g2);
404
- --rs-thumb-arrow: var(--warn-8);
405
- --rs-thumb-value-bg: var(--warn-8);
406
- }
407
-
408
- &.error {
409
- --rst-bg: var(--error-g2);
410
- --rs-thumb-arrow: var(--error-8);
411
- --rs-thumb-value-bg: var(--error-8);
412
- }
413
-
414
- &.success {
415
- --rst-bg: var(--success-g2);
416
- --rs-thumb-arrow: var(--success-8);
417
- --rs-thumb-value-bg: var(--success-8);
418
- }
419
- }
420
- }
421
- }
@@ -1,153 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipSelect: false !default;
4
-
5
- @if $shipSelect == true {
6
- sh-select {
7
- --miw: #{p2r(210)};
8
- --select-option-mih: min-content;
9
- --select-options-mh: #{p2r(180)};
10
-
11
- display: flex;
12
-
13
- sh-form-field {
14
- display: flex;
15
- --ff-mw: var(--miw);
16
- }
17
-
18
- sh-popover {
19
- flex: 1 0;
20
-
21
- &:has(.ship-options:empty) .popover {
22
- opacity: 0;
23
- }
24
- }
25
-
26
- .selected-value {
27
- width: 100%;
28
- display: flex;
29
- flex-wrap: wrap;
30
- align-items: center;
31
- gap: p2r(4);
32
- color: var(--base-8);
33
-
34
- input {
35
- margin: 0;
36
- }
37
-
38
- &.is-selected {
39
- color: var(--base-12);
40
- }
41
- }
42
-
43
- sh-form-field .input-wrap .input {
44
- position: relative;
45
- display: flex;
46
- flex-wrap: wrap;
47
-
48
- --ff-space: #{p2r(7 10)};
49
-
50
- textarea,
51
- input {
52
- opacity: 0;
53
- width: 0;
54
- height: 0;
55
- position: absolute;
56
- }
57
-
58
- &.show-search-text {
59
- input {
60
- opacity: 1;
61
- height: initial;
62
- min-width: min-content;
63
- field-sizing: content;
64
- font: var(--paragraph-30);
65
- position: relative;
66
- }
67
-
68
- textarea {
69
- opacity: 1;
70
- height: initial;
71
- margin: p2r(4 0 0);
72
- }
73
- }
74
- }
75
-
76
- sh-form-field.small .input-wrap .input {
77
- --ff-space: #{p2r(5 8)};
78
-
79
- sh-chip {
80
- --chip-h: #{p2r(20)};
81
- font-size: 80%;
82
- }
83
- }
84
- }
85
-
86
- .ship-options {
87
- padding: p2r(8 0);
88
- display: flex;
89
- flex-direction: column;
90
- max-height: var(--select-options-mh);
91
- overflow-y: auto;
92
- overflow-x: hidden;
93
-
94
- p[title] {
95
- padding: p2r(4 16);
96
- }
97
-
98
- sh-divider {
99
- margin: p2r(8 0);
100
- }
101
-
102
- .option {
103
- display: flex;
104
- justify-content: flex-start;
105
- align-items: center;
106
- min-height: var(--select-option-mih);
107
- margin: p2r(0 8);
108
- padding: p2r(8);
109
- gap: p2r(8);
110
- width: calc(100% - #{p2r(16)});
111
- border-radius: var(--shape-2);
112
- appearance: none;
113
- background-color: transparent;
114
- border: 0;
115
- cursor: pointer;
116
- color: var(--base-12);
117
- user-select: none;
118
-
119
- &[disabled] {
120
- opacity: 0.3;
121
- cursor: initial;
122
-
123
- &:hover {
124
- background-color: transparent;
125
- }
126
- }
127
-
128
- sh-icon {
129
- font-size: p2r(16);
130
- }
131
-
132
- span.placeholder {
133
- color: var(--base-7);
134
- }
135
-
136
- &.active,
137
- &:checked,
138
- &:hover {
139
- background-color: var(--base-2);
140
- color: var(--base-12);
141
- }
142
-
143
- &.focused {
144
- background-color: var(--primary-1);
145
- color: var(--base-12);
146
-
147
- &:hover {
148
- background-color: var(--primary-2);
149
- }
150
- }
151
- }
152
- }
153
- }