@ship-ui/core 0.19.5 → 0.22.2

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,237 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipMenu: true !default;
4
-
5
- @if $shipMenu == true {
6
- sh-menu {
7
- --menu-mh: #{p2r(320)};
8
-
9
- display: inline-flex;
10
- position: relative;
11
-
12
- &.disabled {
13
- opacity: 0.5;
14
- pointer-events: none;
15
- }
16
-
17
- &.stretch {
18
- width: 100%;
19
-
20
- [trigger] > * {
21
- width: 100%;
22
- }
23
- }
24
-
25
- &.has-search {
26
- sh-popover .options {
27
- [title] {
28
- position: sticky;
29
- border-bottom: var(--border-10);
30
- }
31
- }
32
-
33
- .form-field-wrap {
34
- margin: p2r(8 8 0);
35
- }
36
-
37
- .options {
38
- margin: p2r(4 0 0);
39
- }
40
- }
41
-
42
- &.multi-layer {
43
- [trigger] {
44
- &:has(sh-icon.open-indicator) {
45
- &.is-open .open-indicator {
46
- transform: translateY(-50%) rotate(-90deg);
47
- }
48
- }
49
-
50
- &:has(sh-icon.open-indicator) {
51
- display: flex;
52
-
53
- .open-indicator {
54
- right: p2r(16);
55
- }
56
- }
57
- button:first-child {
58
- margin-top: 0;
59
- }
60
- }
61
- }
62
-
63
- [trigger]:has(sh-icon.open-indicator) {
64
- position: relative;
65
-
66
- > :first-child {
67
- padding-right: p2r(32);
68
- }
69
-
70
- .open-indicator {
71
- position: absolute;
72
- right: p2r(8);
73
- top: 50%;
74
- transform: translateY(-50%);
75
- color: var(--base-8);
76
- font-size: p2r(16);
77
- font-weight: inherit;
78
- pointer-events: none;
79
- transition: transform 75ms ease-in-out;
80
- }
81
-
82
- &.is-open .open-indicator {
83
- transform: translateY(-50%) rotate(-180deg);
84
- }
85
- }
86
-
87
- sh-popover {
88
- flex: 1 0;
89
-
90
- .popover {
91
- padding: 0;
92
- }
93
-
94
- .popover-content {
95
- overflow: hidden;
96
- }
97
-
98
- .form-field-wrap {
99
- sh-form-field {
100
- z-index: 10;
101
- background-color: var(--base-1);
102
-
103
- &.hidden {
104
- opacity: 0;
105
- height: 0;
106
- width: 0;
107
- min-width: 0;
108
- min-height: 0;
109
- margin: 0;
110
- }
111
- }
112
- }
113
- }
114
-
115
- sh-popover .options {
116
- z-index: 2;
117
- position: relative;
118
- display: flex;
119
- flex-direction: column;
120
- gap: p2r(4);
121
- padding: 0;
122
- margin: 0;
123
- max-height: var(--menu-mh);
124
- overflow: auto;
125
-
126
- sh-menu:first-child,
127
- button:first-child {
128
- margin-top: p2r(8);
129
- }
130
-
131
- &.searching {
132
- button[disabled] {
133
- display: none;
134
- }
135
-
136
- button[value='0'] {
137
- display: none;
138
- }
139
-
140
- > *:not(button) {
141
- display: none;
142
- }
143
- }
144
-
145
- &:after {
146
- content: '';
147
- display: block;
148
- width: 100%;
149
- min-height: p2r(4);
150
- order: 9999999;
151
- }
152
-
153
- [title] {
154
- font: var(--paragraph-30);
155
- color: var(--base-8);
156
- padding: p2r(8 12);
157
- margin: 0;
158
- user-select: none;
159
- position: relative;
160
- top: 0;
161
- z-index: 10;
162
- background-color: var(--base-1);
163
- }
164
-
165
- button {
166
- display: flex;
167
- justify-content: flex-start;
168
- align-items: center;
169
- text-align: left;
170
- height: auto;
171
- margin: p2r(0 8);
172
- padding: p2r(4 8);
173
- gap: p2r(0 8);
174
- width: calc(100% - #{p2r(16)});
175
- border-radius: var(--shape-2);
176
- appearance: none;
177
- background-color: transparent;
178
- border: 0;
179
- cursor: pointer;
180
- color: var(--base-12);
181
- transition: transform 125ms linear;
182
- transform: scale(1);
183
-
184
- &:before {
185
- content: '';
186
-
187
- min-height: p2r(24);
188
- display: inline-block;
189
- width: 0;
190
- margin-right: p2r(-8);
191
- }
192
-
193
- &:active {
194
- transform: scale(0.98);
195
- }
196
-
197
- &[disabled] {
198
- opacity: 0.3;
199
- cursor: initial;
200
-
201
- &:hover {
202
- background-color: transparent;
203
- }
204
- }
205
-
206
- [suffix] {
207
- order: 999;
208
- color: var(--base-8);
209
- font: var(--paragraph-30);
210
- justify-self: flex-end;
211
- display: inline-flex;
212
- flex: 1 0;
213
- justify-content: flex-end;
214
- }
215
-
216
- sh-icon {
217
- font-size: p2r(16);
218
- }
219
-
220
- &.active,
221
- &:hover {
222
- background-color: var(--base-2);
223
- color: var(--base-12);
224
- }
225
-
226
- &.focused {
227
- background-color: var(--primary-2);
228
- color: var(--base-12);
229
-
230
- &:hover {
231
- background-color: var(--primary-3);
232
- }
233
- }
234
- }
235
- }
236
- }
237
- }
@@ -1,205 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipPopover: true !default;
4
-
5
- @if $shipPopover == true {
6
- sh-popover {
7
- --po-d: block;
8
-
9
- display: var(--po-d);
10
-
11
- &.multi-layer {
12
- .popover-content {
13
- position-area: right span-y-end;
14
- }
15
-
16
- .trigger .trigger-anchor {
17
- right: p2r(-4);
18
- left: p2r(-4);
19
- top: 0;
20
- bottom: 0;
21
- }
22
- }
23
-
24
- .trigger {
25
- cursor: pointer;
26
- display: var(--po-d);
27
- position: relative;
28
-
29
- .trigger-wrapper {
30
- display: var(--po-d);
31
-
32
- &:empty + * {
33
- display: inherit;
34
- }
35
- }
36
-
37
- .trigger-anchor {
38
- position: absolute;
39
- inset: 0;
40
- z-index: -1;
41
- }
42
- }
43
-
44
- .popover {
45
- position: fixed;
46
- inset: 0;
47
- width: 100%;
48
- height: 100%;
49
- border: 0;
50
- opacity: 1;
51
- background-color: transparent;
52
- z-index: -1;
53
-
54
- .overlay {
55
- width: 100%;
56
- height: 100%;
57
- position: absolute;
58
- top: 0;
59
- left: 0;
60
- background-color: transparent;
61
- }
62
- }
63
-
64
- [popover]::backdrop {
65
- display: none;
66
- }
67
-
68
- .popover-content {
69
- position: fixed;
70
- margin: 0;
71
- min-width: p2r(180);
72
- max-width: calc(100vw - #{p2r(8)});
73
- max-height: calc(100vh - #{p2r(8)});
74
- overflow: auto;
75
- z-index: 0;
76
- background-color: var(--base-1);
77
- border: var(--border-10);
78
- border-radius: var(--shape-2);
79
- font: var(--paragraph-30);
80
- color: var(--base-8);
81
- padding: 0;
82
-
83
- @supports (anchor-name: --anchor) {
84
- inset: auto;
85
- top: p2r(4);
86
- position: fixed;
87
- position-area: bottom span-right;
88
- max-width: unset;
89
- max-height: unset;
90
- overflow: visible;
91
- position-try-fallbacks:
92
- --top-span-right, --bottom-span-left, --top-span-left, --right-span-bottom, --left-span-bottom,
93
- --right-center, --left-center, --right-span-top, --left-span-top;
94
- }
95
- }
96
-
97
- @include breakpoint(-milli) {
98
- &.as-sheet {
99
- .popover {
100
- z-index: 9999;
101
-
102
- .overlay {
103
- background-color: var(--overlay, rgba(0, 0, 0, 0.5));
104
- }
105
- }
106
-
107
- .popover-content {
108
- @supports (anchor-name: --anchor) {
109
- position-area: none;
110
- position-try-fallbacks: none;
111
- inset: auto;
112
- }
113
-
114
- position: fixed;
115
- top: auto;
116
- bottom: 0;
117
- left: p2r(8);
118
- right: p2r(8);
119
- width: calc(100% - #{p2r(16)});
120
- max-width: unset;
121
- height: auto;
122
- max-height: calc(100vh - #{p2r(80)});
123
- border-bottom-left-radius: 0;
124
- border-bottom-right-radius: 0;
125
- margin: 0;
126
- transform: translateY(0);
127
- display: flex;
128
- align-items: center;
129
- padding: p2r(16);
130
- justify-content: center;
131
- }
132
- }
133
- }
134
- }
135
-
136
- .full-popover sh-popover .popover-content,
137
- sh-popover.full .popover-content {
138
- width: auto;
139
-
140
- @supports (anchor-name: --anchor) {
141
- left: anchor(left);
142
- right: anchor(right);
143
- }
144
- }
145
- }
146
-
147
- @position-try --bottom-span-right {
148
- position-area: bottom span-right;
149
- inset: auto;
150
- top: p2r(4);
151
- }
152
-
153
- @position-try --bottom-span-left {
154
- position-area: bottom span-left;
155
- inset: auto;
156
- top: p2r(4);
157
- }
158
-
159
- @position-try --top-span-right {
160
- position-area: top span-right;
161
- inset: auto;
162
- bottom: p2r(4);
163
- }
164
-
165
- @position-try --top-span-left {
166
- position-area: top span-left;
167
- inset: auto;
168
- bottom: p2r(4);
169
- }
170
-
171
- @position-try --right-span-top {
172
- position-area: right span-top;
173
- inset: auto;
174
- left: p2r(4);
175
- }
176
-
177
- @position-try --left-span-top {
178
- position-area: left span-top;
179
- inset: auto;
180
- right: p2r(4);
181
- }
182
-
183
- @position-try --right-center {
184
- position-area: right center;
185
- inset: auto;
186
- left: p2r(4);
187
- }
188
-
189
- @position-try --left-center {
190
- position-area: left center;
191
- inset: auto;
192
- right: p2r(4);
193
- }
194
-
195
- @position-try --right-span-bottom {
196
- position-area: right span-bottom;
197
- inset: auto;
198
- left: p2r(4);
199
- }
200
-
201
- @position-try --left-span-bottom {
202
- position-area: left span-bottom;
203
- inset: auto;
204
- right: p2r(4);
205
- }
@@ -1,173 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipProgressBar: true !default;
4
-
5
- @if $shipProgressBar == true {
6
- sh-progress-bar {
7
- --pb-h: #{p2r(8)};
8
- --pb-b: var(--base-4);
9
- --pb-bg: var(--base-3);
10
- --pb-br: var(--shape-2);
11
- --pbt-bg: var(--base-6);
12
- --pbt-br: inherit;
13
-
14
- display: block;
15
- width: 100%;
16
- height: var(--pb-h);
17
- position: relative;
18
- overflow: hidden;
19
-
20
- border-radius: var(--pb-br);
21
- background: var(--pb-bg);
22
-
23
- .progress-bar {
24
- position: absolute;
25
- top: 0;
26
- left: 0;
27
- bottom: 0;
28
- height: 100%;
29
- transform-origin: top left;
30
-
31
- border-radius: var(--pbt-br);
32
- background: var(--pbt-bg);
33
- }
34
-
35
- &.indeterminate {
36
- .progress-bar {
37
- right: 0;
38
- animation: indeterminate-progress-bar-stripes 2s linear infinite;
39
- }
40
-
41
- &:after {
42
- content: '';
43
- position: absolute;
44
- top: 0;
45
- left: 0;
46
- right: 0;
47
- bottom: 0;
48
- background-color: var(--base-2);
49
- animation: indeterminate-progress-bar-stripes-background 2s linear infinite;
50
- transform-origin: top left;
51
- }
52
- }
53
-
54
- &.primary {
55
- --pbt-bg: var(--primary-8);
56
- }
57
-
58
- &.accent {
59
- --pbt-bg: var(--accent-8);
60
- }
61
-
62
- &.warn {
63
- --pbt-bg: var(--warn-8);
64
- }
65
-
66
- &.error {
67
- --pbt-bg: var(--error-8);
68
- }
69
-
70
- &.success {
71
- --pbt-bg: var(--success-8);
72
- }
73
-
74
- &.outlined {
75
- --pb-b: var(--border-10);
76
- --pb-bg: var(--base-1);
77
-
78
- &:after {
79
- background-color: inherit;
80
- }
81
- }
82
-
83
- &.flat {
84
- --pbt-bg: var(--base-8);
85
-
86
- &:after {
87
- background-color: inherit;
88
- }
89
-
90
- &.primary {
91
- --pbt-bg: var(--primary-8);
92
- }
93
-
94
- &.accent {
95
- --pbt-bg: var(--accent-8);
96
- }
97
-
98
- &.warn {
99
- --pbt-bg: var(--warn-8);
100
- }
101
-
102
- &.error {
103
- --pbt-bg: var(--error-8);
104
- }
105
-
106
- &.success {
107
- --pbt-bg: var(--success-8);
108
- }
109
- }
110
-
111
- &.raised {
112
- --pbt-bg: var(--base-g3);
113
-
114
- &.primary {
115
- --pbt-bg: var(--primary-g3);
116
- }
117
-
118
- &.accent {
119
- --pbt-bg: var(--accent-g3);
120
- }
121
-
122
- &.warn {
123
- --pbt-bg: var(--warn-g3);
124
- }
125
-
126
- &.error {
127
- --pbt-bg: var(--error-g3);
128
- }
129
-
130
- &.success {
131
- --pbt-bg: var(--success-g3);
132
- }
133
- }
134
- }
135
-
136
- @keyframes indeterminate-progress-bar-stripes-background {
137
- 0% {
138
- animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);
139
- transform: translateX(0);
140
- }
141
-
142
- 25% {
143
- animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);
144
- transform: translateX(37.651913%);
145
- }
146
-
147
- 48.35% {
148
- animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);
149
- transform: translateX(84.386165%);
150
- }
151
-
152
- 100% {
153
- transform: translateX(160.277782%);
154
- }
155
- }
156
-
157
- @keyframes indeterminate-progress-bar-stripes {
158
- 0% {
159
- transform: translateX(0);
160
- }
161
- 20% {
162
- animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
163
- transform: translateX(0);
164
- }
165
- 59.15% {
166
- animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
167
- transform: translateX(83.67142%);
168
- }
169
- 100% {
170
- transform: translateX(200.611057%);
171
- }
172
- }
173
- }
@@ -1,113 +0,0 @@
1
- @use '../helpers.scss' as *;
2
-
3
- $shipRadio: true !default;
4
-
5
- @if $shipRadio == true {
6
- .sh-radio,
7
- sh-radio {
8
- --radiod-c: var(--base-8);
9
- --radiod-o: 0;
10
- --radio-bc: var(--base-4);
11
-
12
- display: flex;
13
- align-items: center;
14
- gap: p2r(8);
15
- cursor: pointer;
16
- user-select: none;
17
- position: relative;
18
-
19
- &:focus-visible > .radio,
20
- &:has(input:focus-visible) > .radio {
21
- outline: 2px solid var(--primary-8);
22
- outline-offset: 2px;
23
- }
24
-
25
- > input {
26
- appearance: none;
27
- position: absolute;
28
- inset: 0;
29
- cursor: pointer;
30
-
31
- &:focus,
32
- &:focus-visible {
33
- outline: none;
34
- }
35
- }
36
-
37
- &:has(> input:not(.internal-input)) > input.internal-input {
38
- display: none;
39
- }
40
-
41
- &:has(input[disabled]),
42
- &[disabled]:not([disabled='false']) {
43
- opacity: 0.5;
44
- pointer-events: none;
45
- user-select: none;
46
- cursor: initial;
47
- }
48
-
49
- &:has(input:checked),
50
- &.active {
51
- --radiod-o: 1;
52
- }
53
-
54
- .radio {
55
- display: flex;
56
- align-items: center;
57
- justify-content: center;
58
- width: p2r(20);
59
- height: p2r(20);
60
- cursor: pointer;
61
- position: relative;
62
- border-radius: 50%;
63
-
64
- &:after {
65
- content: '';
66
- position: absolute;
67
- top: 50%;
68
- left: 50%;
69
- transform: translate(-50%, -50%);
70
- border-radius: 50%;
71
- width: p2r(6);
72
- height: p2r(6);
73
- background-color: var(--radiod-c);
74
- opacity: var(--radiod-o);
75
- transition: opacity 125ms linear;
76
- }
77
- }
78
-
79
- &.primary {
80
- --radiod-c: var(--primary-8);
81
- }
82
-
83
- &.accent {
84
- --radiod-c: var(--accent-8);
85
- }
86
-
87
- &.warn {
88
- --radiod-c: var(--warn-8);
89
- }
90
-
91
- &.error {
92
- --radiod-c: var(--error-8);
93
- }
94
-
95
- &.success {
96
- --radiod-c: var(--success-8);
97
- }
98
-
99
- &.flat,
100
- &.raised {
101
- --radiod-c: #fff;
102
- }
103
-
104
- &.raised,
105
- &.flat {
106
- &:not(:has(input:checked)):not(.active) .radio {
107
- background: transparent;
108
- border: var(--border-10);
109
- border-color: var(--radio-bc);
110
- }
111
- }
112
- }
113
- }