@ship-ui/core 0.13.32 → 0.14.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.
- package/fesm2022/ship-ui-core.mjs +60 -37
- package/fesm2022/ship-ui-core.mjs.map +1 -1
- package/index.d.ts +3 -2
- package/package.json +1 -1
- package/styles/components/ship-alert-container.component.scss +2 -2
- package/styles/components/ship-alert.component.scss +17 -146
- package/styles/components/ship-button.component.scss +12 -260
- package/styles/components/ship-checkbox.component.scss +8 -160
- package/styles/components/ship-chip.component.scss +5 -207
- package/styles/components/ship-event-card.component.scss +2 -159
- package/styles/components/ship-sheet.utility.scss +298 -0
- package/styles/core/core/loader.scss +1 -1
- package/styles/index.scss +4 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
@use '../helpers.scss' as *;
|
|
2
|
+
|
|
3
|
+
$shipSheet: true !default;
|
|
4
|
+
|
|
5
|
+
@if $shipSheet == true {
|
|
6
|
+
.sh-sheet-h,
|
|
7
|
+
.sh-sheet {
|
|
8
|
+
--sheet-c: var(--base-12);
|
|
9
|
+
--sheet-bg: var(--base-1);
|
|
10
|
+
--sheet-bc: var(--base-4);
|
|
11
|
+
--sheet-s: var(--shape-2);
|
|
12
|
+
--sheet-ic: var(--base-12);
|
|
13
|
+
--loader-c: var(--sheet-ic);
|
|
14
|
+
|
|
15
|
+
border-radius: var(--sheet-s);
|
|
16
|
+
background: var(--sheet-bg);
|
|
17
|
+
border: 1px solid var(--sheet-bc);
|
|
18
|
+
color: var(--sheet-c);
|
|
19
|
+
|
|
20
|
+
&.sharp {
|
|
21
|
+
--sheet-s: var(--shape-1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.dynamic {
|
|
25
|
+
--sheet-bg: rgb(from var(--sheet-c) r g b / 0.14);
|
|
26
|
+
--sheet-p-c: rgb(from var(--sheet-c) r g b / 0.65);
|
|
27
|
+
--sheet-ic: var(--sheet-c);
|
|
28
|
+
|
|
29
|
+
color: var(--sheet-c);
|
|
30
|
+
border: 0;
|
|
31
|
+
|
|
32
|
+
p {
|
|
33
|
+
color: var(--sheet-p-c);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
sh-icon {
|
|
37
|
+
color: inherit;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.loading.outlined,
|
|
42
|
+
&.loading.simple,
|
|
43
|
+
&.loading.flat,
|
|
44
|
+
&.loading.raised,
|
|
45
|
+
&.loading {
|
|
46
|
+
color: transparent;
|
|
47
|
+
|
|
48
|
+
&:hover,
|
|
49
|
+
&.primary,
|
|
50
|
+
&.accent,
|
|
51
|
+
&.warn,
|
|
52
|
+
&.error,
|
|
53
|
+
&.success {
|
|
54
|
+
color: transparent;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
> * {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:before {
|
|
62
|
+
opacity: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.primary {
|
|
67
|
+
--sheet-ic: var(--primary-8);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.accent {
|
|
71
|
+
--sheet-ic: var(--accent-8);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.warn {
|
|
75
|
+
--sheet-ic: var(--warn-8);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.error {
|
|
79
|
+
--sheet-ic: var(--error-8);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.success {
|
|
83
|
+
--sheet-ic: var(--success-8);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
sh-icon {
|
|
87
|
+
color: var(--sheet-ic);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.simple,
|
|
91
|
+
&.outlined {
|
|
92
|
+
--sheet-c: var(--base-12);
|
|
93
|
+
--sheet-bg: var(--base-2);
|
|
94
|
+
|
|
95
|
+
transition:
|
|
96
|
+
color 80ms linear,
|
|
97
|
+
background 80ms linear;
|
|
98
|
+
|
|
99
|
+
&.primary {
|
|
100
|
+
--sheet-c: var(--primary-8);
|
|
101
|
+
--sheet-bg: var(--primary-1);
|
|
102
|
+
--sheet-bc: var(--primary-4);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.accent {
|
|
106
|
+
--sheet-c: var(--accent-8);
|
|
107
|
+
--sheet-bg: var(--accent-1);
|
|
108
|
+
--sheet-bc: var(--accent-4);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.warn {
|
|
112
|
+
--sheet-c: var(--warn-8);
|
|
113
|
+
--sheet-bg: var(--warn-1);
|
|
114
|
+
--sheet-bc: var(--warn-4);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.error {
|
|
118
|
+
--sheet-c: var(--error-8);
|
|
119
|
+
--sheet-bg: var(--error-1);
|
|
120
|
+
--sheet-bc: var(--error-4);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.success {
|
|
124
|
+
--sheet-c: var(--success-8);
|
|
125
|
+
--sheet-bg: var(--success-1);
|
|
126
|
+
--sheet-bc: var(--success-4);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.simple,
|
|
131
|
+
&.simple.primary,
|
|
132
|
+
&.simple.accent,
|
|
133
|
+
&.simple.warn,
|
|
134
|
+
&.simple.error,
|
|
135
|
+
&.simple.success {
|
|
136
|
+
--sheet-bc: var(--sheet-bg);
|
|
137
|
+
}
|
|
138
|
+
&.outlined,
|
|
139
|
+
&.outlined.primary,
|
|
140
|
+
&.outlined.accent,
|
|
141
|
+
&.outlined.warn,
|
|
142
|
+
&.outlined.error,
|
|
143
|
+
&.outlined.success {
|
|
144
|
+
--sheet-c: var(--base-12);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.flat {
|
|
148
|
+
--sheet-c: var(--base-1);
|
|
149
|
+
--sheet-ic: var(--base-1);
|
|
150
|
+
--sheet-bg: var(--base-8);
|
|
151
|
+
|
|
152
|
+
border: 0;
|
|
153
|
+
|
|
154
|
+
&.primary {
|
|
155
|
+
--sheet-c: var(--primary-c8);
|
|
156
|
+
--sheet-bg: var(--primary-8);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.accent {
|
|
160
|
+
--sheet-c: var(--accent-c8);
|
|
161
|
+
--sheet-bg: var(--accent-8);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&.warn {
|
|
165
|
+
--sheet-c: var(--warn-c8);
|
|
166
|
+
--sheet-bg: var(--warn-8);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.error {
|
|
170
|
+
--sheet-c: var(--error-c8);
|
|
171
|
+
--sheet-bg: var(--error-8);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.success {
|
|
175
|
+
--sheet-c: var(--success-c8);
|
|
176
|
+
--sheet-bg: var(--success-8);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.raised {
|
|
181
|
+
--sheet-c: var(--base-1);
|
|
182
|
+
--sheet-ic: var(--base-1);
|
|
183
|
+
--sheet-bg: var(--base-g6);
|
|
184
|
+
|
|
185
|
+
border: 0;
|
|
186
|
+
|
|
187
|
+
&.primary {
|
|
188
|
+
--sheet-c: var(--primary-c8);
|
|
189
|
+
--sheet-bg: var(--primary-g2);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.accent {
|
|
193
|
+
--sheet-c: var(--accent-c8);
|
|
194
|
+
--sheet-bg: var(--accent-g2);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.warn {
|
|
198
|
+
--sheet-c: var(--warn-c8);
|
|
199
|
+
--sheet-bg: var(--warn-g2);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.error {
|
|
203
|
+
--sheet-c: var(--error-c8);
|
|
204
|
+
--sheet-bg: var(--error-g2);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&.success {
|
|
208
|
+
--sheet-c: var(--success-c8);
|
|
209
|
+
--sheet-bg: var(--success-g2);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.sh-sheet-h {
|
|
215
|
+
--sheet-bg-h: var(--base-2);
|
|
216
|
+
|
|
217
|
+
transition:
|
|
218
|
+
background 75ms linear,
|
|
219
|
+
transform 125ms linear;
|
|
220
|
+
|
|
221
|
+
&:hover {
|
|
222
|
+
--sheet-bg: var(--base-2);
|
|
223
|
+
|
|
224
|
+
&.simple,
|
|
225
|
+
&.outlined {
|
|
226
|
+
--sheet-bg: var(--base-3);
|
|
227
|
+
|
|
228
|
+
&.primary {
|
|
229
|
+
--sheet-bg: var(--primary-2);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&.accent {
|
|
233
|
+
--sheet-bg: var(--accent-2);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&.warn {
|
|
237
|
+
--sheet-bg: var(--warn-2);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&.error {
|
|
241
|
+
--sheet-bg: var(--error-2);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&.success {
|
|
245
|
+
--sheet-bg: var(--success-2);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&.flat {
|
|
250
|
+
--sheet-bg: var(--base-7);
|
|
251
|
+
|
|
252
|
+
&.primary {
|
|
253
|
+
--sheet-bg: var(--primary-7);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&.accent {
|
|
257
|
+
--sheet-bg: var(--accent-7);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&.warn {
|
|
261
|
+
--sheet-bg: var(--warn-7);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&.error {
|
|
265
|
+
--sheet-bg: var(--error-7);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&.success {
|
|
269
|
+
--sheet-bg: var(--success-7);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&.raised {
|
|
274
|
+
--sheet-bg: var(--base-g7);
|
|
275
|
+
|
|
276
|
+
&.primary {
|
|
277
|
+
--sheet-bg: var(--primary-g3);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&.accent {
|
|
281
|
+
--sheet-bg: var(--accent-g3);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
&.warn {
|
|
285
|
+
--sheet-bg: var(--warn-g3);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&.error {
|
|
289
|
+
--sheet-bg: var(--error-g3);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&.success {
|
|
293
|
+
--sheet-bg: var(--success-g3);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
package/styles/index.scss
CHANGED
|
@@ -40,6 +40,7 @@ $shipTooltip: true !default;
|
|
|
40
40
|
$shipVirtualScroll: false !default;
|
|
41
41
|
$shipSelect: true !default;
|
|
42
42
|
$shipCard: true !default;
|
|
43
|
+
$shipSheet: true !default;
|
|
43
44
|
$shipStepper: true !default;
|
|
44
45
|
$shipSortable: true !default;
|
|
45
46
|
$shipSpinner: true !default;
|
|
@@ -127,6 +128,9 @@ $shipFileUpload: true !default;
|
|
|
127
128
|
@use './components/ship-card.component.scss' with (
|
|
128
129
|
$shipCard: $shipCard
|
|
129
130
|
);
|
|
131
|
+
@use './components/ship-sheet.utility.scss' with (
|
|
132
|
+
$shipSheet: $shipSheet
|
|
133
|
+
);
|
|
130
134
|
@use './components/ship-stepper.component.scss' with (
|
|
131
135
|
$shipStepper: $shipStepper
|
|
132
136
|
);
|