@cratis/components 4.10.4 → 4.11.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.
- package/README.md +11 -0
- package/dist/esm/Dropdown/DropdownImplementation.js +30 -11
- package/dist/esm/Dropdown/DropdownImplementation.js.map +1 -1
- package/dist/esm/styles.Canvas.css +3122 -0
- package/dist/esm/styles.Chat.css +1287 -0
- package/dist/esm/styles.CommandDialog.css +1933 -0
- package/dist/esm/styles.CommandForm.css +1710 -0
- package/dist/esm/styles.CommandStepper.css +1682 -0
- package/dist/esm/styles.Common.css +1225 -0
- package/dist/esm/styles.DataPage.css +1827 -0
- package/dist/esm/styles.DataTables.css +1626 -0
- package/dist/esm/styles.Dialogs.css +1741 -0
- package/dist/esm/styles.Display.css +1353 -0
- package/dist/esm/styles.Dropdown.css +1388 -0
- package/dist/esm/styles.Filter.css +559 -0
- package/dist/esm/styles.Notifications.css +1225 -0
- package/dist/esm/styles.ObjectContentEditor.css +1233 -0
- package/dist/esm/styles.ObjectNavigationalBar.css +1096 -0
- package/dist/esm/styles.PivotViewer.css +1624 -0
- package/dist/esm/styles.SchemaEditor.css +1913 -0
- package/dist/esm/styles.TimeMachine.css +908 -0
- package/dist/esm/styles.Toolbar.css +1612 -0
- package/dist/esm/styles.base.css +378 -0
- package/dist/esm/styles.css +3 -1
- package/dist/esm/styles.renderer.builtin.css +2142 -0
- package/package.json +23 -1
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer cratis-theme, cratis-components, cratis-utilities;
|
|
4
|
+
@layer cratis-theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--cratis-color-red-100: oklch(93.6% 0.032 17.717);
|
|
7
|
+
--cratis-color-green-100: oklch(96.2% 0.044 156.743);
|
|
8
|
+
--cratis-color-blue-600: oklch(54.6% 0.245 262.881);
|
|
9
|
+
--cratis-color-gray-200: oklch(92.8% 0.006 264.531);
|
|
10
|
+
--cratis-color-gray-500: oklch(55.1% 0.027 264.364);
|
|
11
|
+
--cratis-color-gray-600: oklch(44.6% 0.03 256.802);
|
|
12
|
+
--cratis-color-white: #fff;
|
|
13
|
+
--cratis-spacing: 0.25rem;
|
|
14
|
+
--cratis-text-xs: 0.75rem;
|
|
15
|
+
--cratis-text-xs--line-height: calc(1 / 0.75);
|
|
16
|
+
--cratis-text-sm: 0.875rem;
|
|
17
|
+
--cratis-text-sm--line-height: calc(1.25 / 0.875);
|
|
18
|
+
--cratis-text-base: 1rem;
|
|
19
|
+
--cratis-text-base--line-height: calc(1.5 / 1);
|
|
20
|
+
--cratis-text-lg: 1.125rem;
|
|
21
|
+
--cratis-text-lg--line-height: calc(1.75 / 1.125);
|
|
22
|
+
--cratis-text-2xl: 1.5rem;
|
|
23
|
+
--cratis-text-2xl--line-height: calc(2 / 1.5);
|
|
24
|
+
--cratis-text-3xl: 1.875rem;
|
|
25
|
+
--cratis-text-3xl--line-height: calc(2.25 / 1.875);
|
|
26
|
+
--cratis-font-weight-semibold: 600;
|
|
27
|
+
--cratis-font-weight-bold: 700;
|
|
28
|
+
--cratis-radius-lg: 0.5rem;
|
|
29
|
+
--cratis-radius-xl: 0.75rem;
|
|
30
|
+
--cratis-radius-2xl: 1rem;
|
|
31
|
+
--cratis-default-transition-duration: 150ms;
|
|
32
|
+
--cratis-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@layer cratis-utilities {
|
|
36
|
+
.cratis\:visible {
|
|
37
|
+
visibility: visible;
|
|
38
|
+
}
|
|
39
|
+
.cratis\:absolute {
|
|
40
|
+
position: absolute;
|
|
41
|
+
}
|
|
42
|
+
.cratis\:relative {
|
|
43
|
+
position: relative;
|
|
44
|
+
}
|
|
45
|
+
.cratis\:bottom-4 {
|
|
46
|
+
bottom: calc(var(--cratis-spacing) * 4);
|
|
47
|
+
}
|
|
48
|
+
.cratis\:z-10 {
|
|
49
|
+
z-index: 10;
|
|
50
|
+
}
|
|
51
|
+
.cratis\:m-0 {
|
|
52
|
+
margin: 0px;
|
|
53
|
+
}
|
|
54
|
+
.cratis\:mx-2 {
|
|
55
|
+
margin-inline: calc(var(--cratis-spacing) * 2);
|
|
56
|
+
}
|
|
57
|
+
.cratis\:mt-2 {
|
|
58
|
+
margin-top: calc(var(--cratis-spacing) * 2);
|
|
59
|
+
}
|
|
60
|
+
.cratis\:mt-3 {
|
|
61
|
+
margin-top: calc(var(--cratis-spacing) * 3);
|
|
62
|
+
}
|
|
63
|
+
.cratis\:mt-4 {
|
|
64
|
+
margin-top: calc(var(--cratis-spacing) * 4);
|
|
65
|
+
}
|
|
66
|
+
.cratis\:mr-2 {
|
|
67
|
+
margin-right: calc(var(--cratis-spacing) * 2);
|
|
68
|
+
}
|
|
69
|
+
.cratis\:mb-0 {
|
|
70
|
+
margin-bottom: 0px;
|
|
71
|
+
}
|
|
72
|
+
.cratis\:mb-2 {
|
|
73
|
+
margin-bottom: calc(var(--cratis-spacing) * 2);
|
|
74
|
+
}
|
|
75
|
+
.cratis\:mb-3 {
|
|
76
|
+
margin-bottom: calc(var(--cratis-spacing) * 3);
|
|
77
|
+
}
|
|
78
|
+
.cratis\:mb-4 {
|
|
79
|
+
margin-bottom: calc(var(--cratis-spacing) * 4);
|
|
80
|
+
}
|
|
81
|
+
.cratis\:ml-2 {
|
|
82
|
+
margin-left: calc(var(--cratis-spacing) * 2);
|
|
83
|
+
}
|
|
84
|
+
.cratis\:ml-3 {
|
|
85
|
+
margin-left: calc(var(--cratis-spacing) * 3);
|
|
86
|
+
}
|
|
87
|
+
.cratis\:flex {
|
|
88
|
+
display: flex;
|
|
89
|
+
}
|
|
90
|
+
.cratis\:hidden {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
.cratis\:inline-flex {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
}
|
|
96
|
+
.cratis\:size-5 {
|
|
97
|
+
width: calc(var(--cratis-spacing) * 5);
|
|
98
|
+
height: calc(var(--cratis-spacing) * 5);
|
|
99
|
+
}
|
|
100
|
+
.cratis\:h-9 {
|
|
101
|
+
height: calc(var(--cratis-spacing) * 9);
|
|
102
|
+
}
|
|
103
|
+
.cratis\:h-10 {
|
|
104
|
+
height: calc(var(--cratis-spacing) * 10);
|
|
105
|
+
}
|
|
106
|
+
.cratis\:h-full {
|
|
107
|
+
height: 100%;
|
|
108
|
+
}
|
|
109
|
+
.cratis\:w-9 {
|
|
110
|
+
width: calc(var(--cratis-spacing) * 9);
|
|
111
|
+
}
|
|
112
|
+
.cratis\:w-10 {
|
|
113
|
+
width: calc(var(--cratis-spacing) * 10);
|
|
114
|
+
}
|
|
115
|
+
.cratis\:w-80 {
|
|
116
|
+
width: calc(var(--cratis-spacing) * 80);
|
|
117
|
+
}
|
|
118
|
+
.cratis\:w-full {
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
.cratis\:min-w-\[3\.25rem\] {
|
|
122
|
+
min-width: 3.25rem;
|
|
123
|
+
}
|
|
124
|
+
.cratis\:min-w-\[4rem\] {
|
|
125
|
+
min-width: 4rem;
|
|
126
|
+
}
|
|
127
|
+
.cratis\:flex-1 {
|
|
128
|
+
flex: 1;
|
|
129
|
+
}
|
|
130
|
+
.cratis\:flex-shrink-0 {
|
|
131
|
+
flex-shrink: 0;
|
|
132
|
+
}
|
|
133
|
+
.cratis\:cursor-pointer {
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
}
|
|
136
|
+
.cratis\:flex-col {
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
}
|
|
139
|
+
.cratis\:flex-row {
|
|
140
|
+
flex-direction: row;
|
|
141
|
+
}
|
|
142
|
+
.cratis\:items-center {
|
|
143
|
+
align-items: center;
|
|
144
|
+
}
|
|
145
|
+
.cratis\:items-end {
|
|
146
|
+
align-items: flex-end;
|
|
147
|
+
}
|
|
148
|
+
.cratis\:items-start {
|
|
149
|
+
align-items: flex-start;
|
|
150
|
+
}
|
|
151
|
+
.cratis\:justify-center {
|
|
152
|
+
justify-content: center;
|
|
153
|
+
}
|
|
154
|
+
.cratis\:justify-start {
|
|
155
|
+
justify-content: flex-start;
|
|
156
|
+
}
|
|
157
|
+
.cratis\:gap-1 {
|
|
158
|
+
gap: var(--cratis-spacing);
|
|
159
|
+
}
|
|
160
|
+
.cratis\:gap-2 {
|
|
161
|
+
gap: calc(var(--cratis-spacing) * 2);
|
|
162
|
+
}
|
|
163
|
+
.cratis\:gap-3 {
|
|
164
|
+
gap: calc(var(--cratis-spacing) * 3);
|
|
165
|
+
}
|
|
166
|
+
.cratis\:gap-4 {
|
|
167
|
+
gap: calc(var(--cratis-spacing) * 4);
|
|
168
|
+
}
|
|
169
|
+
.cratis\:gap-6 {
|
|
170
|
+
gap: calc(var(--cratis-spacing) * 6);
|
|
171
|
+
}
|
|
172
|
+
.cratis\:gap-8 {
|
|
173
|
+
gap: calc(var(--cratis-spacing) * 8);
|
|
174
|
+
}
|
|
175
|
+
:where(.cratis\:space-y-2 > :not(:last-child)) {
|
|
176
|
+
--tw-space-y-reverse: 0;
|
|
177
|
+
margin-block-start: calc(calc(var(--cratis-spacing) * 2) * var(--tw-space-y-reverse));
|
|
178
|
+
margin-block-end: calc(calc(var(--cratis-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
|
|
179
|
+
}
|
|
180
|
+
.cratis\:overflow-hidden {
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
}
|
|
183
|
+
.cratis\:rounded {
|
|
184
|
+
border-radius: 0.25rem;
|
|
185
|
+
}
|
|
186
|
+
.cratis\:rounded-2xl {
|
|
187
|
+
border-radius: var(--cratis-radius-2xl);
|
|
188
|
+
}
|
|
189
|
+
.cratis\:rounded-lg {
|
|
190
|
+
border-radius: var(--cratis-radius-lg);
|
|
191
|
+
}
|
|
192
|
+
.cratis\:rounded-xl {
|
|
193
|
+
border-radius: var(--cratis-radius-xl);
|
|
194
|
+
}
|
|
195
|
+
.cratis\:border {
|
|
196
|
+
border-style: var(--tw-border-style);
|
|
197
|
+
border-width: 1px;
|
|
198
|
+
}
|
|
199
|
+
.cratis\:border-2 {
|
|
200
|
+
border-style: var(--tw-border-style);
|
|
201
|
+
border-width: 2px;
|
|
202
|
+
}
|
|
203
|
+
.cratis\:border-dashed {
|
|
204
|
+
--tw-border-style: dashed;
|
|
205
|
+
border-style: dashed;
|
|
206
|
+
}
|
|
207
|
+
.cratis\:bg-blue-600 {
|
|
208
|
+
background-color: var(--cratis-color-blue-600);
|
|
209
|
+
}
|
|
210
|
+
.cratis\:bg-gray-600 {
|
|
211
|
+
background-color: var(--cratis-color-gray-600);
|
|
212
|
+
}
|
|
213
|
+
.cratis\:bg-green-100 {
|
|
214
|
+
background-color: var(--cratis-color-green-100);
|
|
215
|
+
}
|
|
216
|
+
.cratis\:bg-red-100 {
|
|
217
|
+
background-color: var(--cratis-color-red-100);
|
|
218
|
+
}
|
|
219
|
+
.cratis\:p-2 {
|
|
220
|
+
padding: calc(var(--cratis-spacing) * 2);
|
|
221
|
+
}
|
|
222
|
+
.cratis\:p-3 {
|
|
223
|
+
padding: calc(var(--cratis-spacing) * 3);
|
|
224
|
+
}
|
|
225
|
+
.cratis\:p-4 {
|
|
226
|
+
padding: calc(var(--cratis-spacing) * 4);
|
|
227
|
+
}
|
|
228
|
+
.cratis\:p-8 {
|
|
229
|
+
padding: calc(var(--cratis-spacing) * 8);
|
|
230
|
+
}
|
|
231
|
+
.cratis\:px-1\.5 {
|
|
232
|
+
padding-inline: calc(var(--cratis-spacing) * 1.5);
|
|
233
|
+
}
|
|
234
|
+
.cratis\:px-2 {
|
|
235
|
+
padding-inline: calc(var(--cratis-spacing) * 2);
|
|
236
|
+
}
|
|
237
|
+
.cratis\:px-3 {
|
|
238
|
+
padding-inline: calc(var(--cratis-spacing) * 3);
|
|
239
|
+
}
|
|
240
|
+
.cratis\:px-4 {
|
|
241
|
+
padding-inline: calc(var(--cratis-spacing) * 4);
|
|
242
|
+
}
|
|
243
|
+
.cratis\:py-1 {
|
|
244
|
+
padding-block: var(--cratis-spacing);
|
|
245
|
+
}
|
|
246
|
+
.cratis\:py-1\.5 {
|
|
247
|
+
padding-block: calc(var(--cratis-spacing) * 1.5);
|
|
248
|
+
}
|
|
249
|
+
.cratis\:py-2 {
|
|
250
|
+
padding-block: calc(var(--cratis-spacing) * 2);
|
|
251
|
+
}
|
|
252
|
+
.cratis\:py-4 {
|
|
253
|
+
padding-block: calc(var(--cratis-spacing) * 4);
|
|
254
|
+
}
|
|
255
|
+
.cratis\:text-center {
|
|
256
|
+
text-align: center;
|
|
257
|
+
}
|
|
258
|
+
.cratis\:text-2xl {
|
|
259
|
+
font-size: var(--cratis-text-2xl);
|
|
260
|
+
line-height: var(--tw-leading, var(--cratis-text-2xl--line-height));
|
|
261
|
+
}
|
|
262
|
+
.cratis\:text-3xl {
|
|
263
|
+
font-size: var(--cratis-text-3xl);
|
|
264
|
+
line-height: var(--tw-leading, var(--cratis-text-3xl--line-height));
|
|
265
|
+
}
|
|
266
|
+
.cratis\:text-base {
|
|
267
|
+
font-size: var(--cratis-text-base);
|
|
268
|
+
line-height: var(--tw-leading, var(--cratis-text-base--line-height));
|
|
269
|
+
}
|
|
270
|
+
.cratis\:text-lg {
|
|
271
|
+
font-size: var(--cratis-text-lg);
|
|
272
|
+
line-height: var(--tw-leading, var(--cratis-text-lg--line-height));
|
|
273
|
+
}
|
|
274
|
+
.cratis\:text-sm {
|
|
275
|
+
font-size: var(--cratis-text-sm);
|
|
276
|
+
line-height: var(--tw-leading, var(--cratis-text-sm--line-height));
|
|
277
|
+
}
|
|
278
|
+
.cratis\:text-xs {
|
|
279
|
+
font-size: var(--cratis-text-xs);
|
|
280
|
+
line-height: var(--tw-leading, var(--cratis-text-xs--line-height));
|
|
281
|
+
}
|
|
282
|
+
.cratis\:font-bold {
|
|
283
|
+
--tw-font-weight: var(--cratis-font-weight-bold);
|
|
284
|
+
font-weight: var(--cratis-font-weight-bold);
|
|
285
|
+
}
|
|
286
|
+
.cratis\:font-semibold {
|
|
287
|
+
--tw-font-weight: var(--cratis-font-weight-semibold);
|
|
288
|
+
font-weight: var(--cratis-font-weight-semibold);
|
|
289
|
+
}
|
|
290
|
+
.cratis\:text-\[var\(--cratis-red-500\)\] {
|
|
291
|
+
color: var(--cratis-red-500);
|
|
292
|
+
}
|
|
293
|
+
.cratis\:text-gray-200 {
|
|
294
|
+
color: var(--cratis-color-gray-200);
|
|
295
|
+
}
|
|
296
|
+
.cratis\:text-white {
|
|
297
|
+
color: var(--cratis-color-white);
|
|
298
|
+
}
|
|
299
|
+
.cratis\:capitalize {
|
|
300
|
+
text-transform: capitalize;
|
|
301
|
+
}
|
|
302
|
+
.cratis\:tabular-nums {
|
|
303
|
+
--tw-numeric-spacing: tabular-nums;
|
|
304
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
305
|
+
}
|
|
306
|
+
.cratis\:accent-\[var\(--cratis-primary-color\)\] {
|
|
307
|
+
accent-color: var(--cratis-primary-color);
|
|
308
|
+
}
|
|
309
|
+
.cratis\:transition-colors {
|
|
310
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
311
|
+
transition-timing-function: var(--tw-ease, var(--cratis-default-transition-timing-function));
|
|
312
|
+
transition-duration: var(--tw-duration, var(--cratis-default-transition-duration));
|
|
313
|
+
}
|
|
314
|
+
.cratis\:select-none {
|
|
315
|
+
-webkit-user-select: none;
|
|
316
|
+
-moz-user-select: none;
|
|
317
|
+
user-select: none;
|
|
318
|
+
}
|
|
319
|
+
@media (hover: hover) {
|
|
320
|
+
.cratis\:hover\:bg-gray-500:hover {
|
|
321
|
+
background-color: var(--cratis-color-gray-500);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
@media (width >= 48rem) {
|
|
325
|
+
.cratis\:md\:flex-row {
|
|
326
|
+
flex-direction: row;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
@property --tw-space-y-reverse {
|
|
331
|
+
syntax: "*";
|
|
332
|
+
inherits: false;
|
|
333
|
+
initial-value: 0;
|
|
334
|
+
}
|
|
335
|
+
@property --tw-border-style {
|
|
336
|
+
syntax: "*";
|
|
337
|
+
inherits: false;
|
|
338
|
+
initial-value: solid;
|
|
339
|
+
}
|
|
340
|
+
@property --tw-font-weight {
|
|
341
|
+
syntax: "*";
|
|
342
|
+
inherits: false;
|
|
343
|
+
}
|
|
344
|
+
@property --tw-ordinal {
|
|
345
|
+
syntax: "*";
|
|
346
|
+
inherits: false;
|
|
347
|
+
}
|
|
348
|
+
@property --tw-slashed-zero {
|
|
349
|
+
syntax: "*";
|
|
350
|
+
inherits: false;
|
|
351
|
+
}
|
|
352
|
+
@property --tw-numeric-figure {
|
|
353
|
+
syntax: "*";
|
|
354
|
+
inherits: false;
|
|
355
|
+
}
|
|
356
|
+
@property --tw-numeric-spacing {
|
|
357
|
+
syntax: "*";
|
|
358
|
+
inherits: false;
|
|
359
|
+
}
|
|
360
|
+
@property --tw-numeric-fraction {
|
|
361
|
+
syntax: "*";
|
|
362
|
+
inherits: false;
|
|
363
|
+
}
|
|
364
|
+
@layer properties {
|
|
365
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
366
|
+
*, ::before, ::after, ::backdrop {
|
|
367
|
+
--tw-space-y-reverse: 0;
|
|
368
|
+
--tw-border-style: solid;
|
|
369
|
+
--tw-font-weight: initial;
|
|
370
|
+
--tw-ordinal: initial;
|
|
371
|
+
--tw-slashed-zero: initial;
|
|
372
|
+
--tw-numeric-figure: initial;
|
|
373
|
+
--tw-numeric-spacing: initial;
|
|
374
|
+
--tw-numeric-fraction: initial;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
package/dist/esm/styles.css
CHANGED
|
@@ -395,6 +395,8 @@
|
|
|
395
395
|
* Adding a component stylesheet? Add its `@import` here. The build fails if a `.css` file under
|
|
396
396
|
* `Source/` is not reachable from this manifest, so the two cannot drift apart silently.
|
|
397
397
|
*
|
|
398
|
+
* The per-area entry points are derived from this same list (scripts/lib/area-stylesheets.mjs).
|
|
399
|
+
*
|
|
398
400
|
* Consumers import this alongside the token layer:
|
|
399
401
|
*
|
|
400
402
|
* import '@cratis/components/tokens'; // the --cratis-* seam (always)
|
|
@@ -405,7 +407,7 @@
|
|
|
405
407
|
/* Third-party: Allotment lays its split view out entirely from this stylesheet, so a `DataPage`
|
|
406
408
|
with a details pane only sides its panes — and only keeps its paginator in frame — once these
|
|
407
409
|
rules are present. Vendored in here rather than imported from `DataPage.tsx` for the same
|
|
408
|
-
reason as everything else in this file. */
|
|
410
|
+
reason as everything else in this file. @cratis-area DataPage */
|
|
409
411
|
/* ── allotment/dist/style.css ─────────────────────────────────────── */
|
|
410
412
|
:root {
|
|
411
413
|
--separator-border: rgba(128, 128, 128, 0.35);
|