@cronocode/react-box 3.0.13 → 3.0.14
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/array.d.ts +13 -0
- package/components/checkbox.mjs +4 -4
- package/components/dataGrid/contracts/dataGridContract.d.ts +36 -0
- package/components/dataGrid/dataGridCell.d.ts +8 -0
- package/components/dataGrid/dataGridGroupRow.d.ts +6 -0
- package/components/dataGrid/dataGridHeaderCell.d.ts +6 -0
- package/components/dataGrid/dataGridPagination.d.ts +6 -0
- package/components/dataGrid/dataGridRow.d.ts +6 -0
- package/components/dataGrid/models/cellModel.d.ts +10 -0
- package/components/dataGrid/models/columnModel.d.ts +36 -0
- package/components/dataGrid/models/gridModel.d.ts +44 -0
- package/components/dataGrid/models/groupRowCellModel.d.ts +10 -0
- package/components/dataGrid/models/groupRowModel.d.ts +23 -0
- package/components/dataGrid/models/rowModel.d.ts +16 -0
- package/components/dataGrid/useGrid.d.ts +3 -0
- package/components/dataGrid.cjs +1 -1
- package/components/dataGrid.d.ts +2 -7
- package/components/dataGrid.mjs +656 -18
- package/components/dropdown.cjs +1 -1
- package/components/dropdown.d.ts +2 -2
- package/components/dropdown.mjs +62 -61
- package/components/form.mjs +5 -5
- package/components/semantics.d.ts +25 -25
- package/components/tooltip.cjs +1 -1
- package/components/tooltip.mjs +20 -22
- package/core/boxConstants.d.ts +1 -0
- package/core/boxStyles.d.ts +108 -35
- package/core/boxStylesFormatters.d.ts +1 -1
- package/core/classNames.d.ts +1 -1
- package/core/extends/boxComponents.d.ts +86 -1
- package/core/useStyles.d.ts +2 -2
- package/core/variables.d.ts +1 -0
- package/core.cjs +4 -4
- package/core.mjs +623 -507
- package/hooks/useVisibility.d.ts +9 -1
- package/icons/arrowIcon.d.ts +2 -0
- package/icons/dotsIcon.d.ts +2 -0
- package/icons/groupingIcon.d.ts +2 -0
- package/icons/pinIcon.d.ts +2 -0
- package/package.json +1 -1
- package/types.d.ts +12 -23
- package/utils/fn/fnUtils.d.ts +4 -0
- package/utils/memo.d.ts +5 -0
- package/utils/object/objectUtils.d.ts +1 -1
- package/components/dataGrid/dataGridContract.d.ts +0 -24
- package/components/dataGrid/useGridData.d.ts +0 -7
package/core/boxStyles.d.ts
CHANGED
|
@@ -111,25 +111,37 @@ export declare const cssStyles: {
|
|
|
111
111
|
values: readonly ["static", "relative", "absolute", "fixed", "sticky"];
|
|
112
112
|
}[];
|
|
113
113
|
/** The top CSS property sets the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
114
|
-
top: {
|
|
114
|
+
top: ({
|
|
115
115
|
values: number;
|
|
116
116
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
117
|
-
}
|
|
117
|
+
} | {
|
|
118
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
119
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
120
|
+
})[];
|
|
118
121
|
/** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
119
|
-
right: {
|
|
122
|
+
right: ({
|
|
120
123
|
values: number;
|
|
121
124
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
122
|
-
}
|
|
125
|
+
} | {
|
|
126
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
127
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
128
|
+
})[];
|
|
123
129
|
/** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
124
|
-
bottom: {
|
|
130
|
+
bottom: ({
|
|
125
131
|
values: number;
|
|
126
132
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
127
|
-
}
|
|
133
|
+
} | {
|
|
134
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
135
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
136
|
+
})[];
|
|
128
137
|
/** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
129
|
-
left: {
|
|
138
|
+
left: ({
|
|
130
139
|
values: number;
|
|
131
140
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
132
|
-
}
|
|
141
|
+
} | {
|
|
142
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
143
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
144
|
+
})[];
|
|
133
145
|
/** The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the same multi-value syntax of the margin shorthand. */
|
|
134
146
|
inset: {
|
|
135
147
|
values: number;
|
|
@@ -255,7 +267,7 @@ export declare const cssStyles: {
|
|
|
255
267
|
/** The height CSS property specifies the height of an element. By default, the property defines the height of the content area. If box-sizing is set to border-box, however, it instead determines the height of the border area. */
|
|
256
268
|
height: ({
|
|
257
269
|
values: number;
|
|
258
|
-
valueFormat:
|
|
270
|
+
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
259
271
|
} | {
|
|
260
272
|
values: readonly ["fit"];
|
|
261
273
|
valueFormat: () => string;
|
|
@@ -264,7 +276,7 @@ export declare const cssStyles: {
|
|
|
264
276
|
valueFormat: () => string;
|
|
265
277
|
} | {
|
|
266
278
|
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
267
|
-
valueFormat:
|
|
279
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
268
280
|
} | {
|
|
269
281
|
values: readonly ["auto", "fit-content", "max-content", "min-content"];
|
|
270
282
|
valueFormat?: undefined;
|
|
@@ -273,7 +285,7 @@ export declare const cssStyles: {
|
|
|
273
285
|
minHeight: ({
|
|
274
286
|
styleName: string;
|
|
275
287
|
values: number;
|
|
276
|
-
valueFormat:
|
|
288
|
+
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
277
289
|
} | {
|
|
278
290
|
styleName: string;
|
|
279
291
|
values: readonly ["fit"];
|
|
@@ -285,7 +297,7 @@ export declare const cssStyles: {
|
|
|
285
297
|
} | {
|
|
286
298
|
styleName: string;
|
|
287
299
|
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
288
|
-
valueFormat:
|
|
300
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
289
301
|
} | {
|
|
290
302
|
styleName: string;
|
|
291
303
|
values: readonly ["auto", "fit-content", "max-content", "min-content"];
|
|
@@ -295,7 +307,7 @@ export declare const cssStyles: {
|
|
|
295
307
|
maxHeight: ({
|
|
296
308
|
styleName: string;
|
|
297
309
|
values: number;
|
|
298
|
-
valueFormat:
|
|
310
|
+
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
299
311
|
} | {
|
|
300
312
|
styleName: string;
|
|
301
313
|
values: readonly ["fit"];
|
|
@@ -307,7 +319,7 @@ export declare const cssStyles: {
|
|
|
307
319
|
} | {
|
|
308
320
|
styleName: string;
|
|
309
321
|
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
310
|
-
valueFormat:
|
|
322
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
311
323
|
} | {
|
|
312
324
|
styleName: string;
|
|
313
325
|
values: readonly ["auto", "fit-content", "max-content", "min-content"];
|
|
@@ -316,7 +328,7 @@ export declare const cssStyles: {
|
|
|
316
328
|
/** The width CSS property sets an element's width. By default, it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area. */
|
|
317
329
|
width: ({
|
|
318
330
|
values: number;
|
|
319
|
-
valueFormat:
|
|
331
|
+
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
320
332
|
} | {
|
|
321
333
|
values: readonly ["fit"];
|
|
322
334
|
valueFormat: () => string;
|
|
@@ -325,7 +337,7 @@ export declare const cssStyles: {
|
|
|
325
337
|
valueFormat: () => string;
|
|
326
338
|
} | {
|
|
327
339
|
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
328
|
-
valueFormat:
|
|
340
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
329
341
|
} | {
|
|
330
342
|
values: readonly ["auto", "fit-content", "max-content", "min-content"];
|
|
331
343
|
valueFormat?: undefined;
|
|
@@ -334,7 +346,7 @@ export declare const cssStyles: {
|
|
|
334
346
|
minWidth: ({
|
|
335
347
|
styleName: string;
|
|
336
348
|
values: number;
|
|
337
|
-
valueFormat:
|
|
349
|
+
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
338
350
|
} | {
|
|
339
351
|
styleName: string;
|
|
340
352
|
values: readonly ["fit"];
|
|
@@ -346,7 +358,7 @@ export declare const cssStyles: {
|
|
|
346
358
|
} | {
|
|
347
359
|
styleName: string;
|
|
348
360
|
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
349
|
-
valueFormat:
|
|
361
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
350
362
|
} | {
|
|
351
363
|
styleName: string;
|
|
352
364
|
values: readonly ["auto", "fit-content", "max-content", "min-content"];
|
|
@@ -356,7 +368,7 @@ export declare const cssStyles: {
|
|
|
356
368
|
maxWidth: ({
|
|
357
369
|
styleName: string;
|
|
358
370
|
values: number;
|
|
359
|
-
valueFormat:
|
|
371
|
+
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
360
372
|
} | {
|
|
361
373
|
styleName: string;
|
|
362
374
|
values: readonly ["fit"];
|
|
@@ -368,7 +380,7 @@ export declare const cssStyles: {
|
|
|
368
380
|
} | {
|
|
369
381
|
styleName: string;
|
|
370
382
|
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
371
|
-
valueFormat:
|
|
383
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
372
384
|
} | {
|
|
373
385
|
styleName: string;
|
|
374
386
|
values: readonly ["auto", "fit-content", "max-content", "min-content"];
|
|
@@ -404,6 +416,10 @@ export declare const cssStyles: {
|
|
|
404
416
|
values: readonly ["auto"];
|
|
405
417
|
styleName: string;
|
|
406
418
|
valueFormat?: undefined;
|
|
419
|
+
} | {
|
|
420
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
421
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
422
|
+
styleName?: undefined;
|
|
407
423
|
})[];
|
|
408
424
|
/** The margin-inline CSS shorthand property is a shorthand property that defines both the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation. */
|
|
409
425
|
mx: ({
|
|
@@ -414,6 +430,10 @@ export declare const cssStyles: {
|
|
|
414
430
|
values: readonly ["auto"];
|
|
415
431
|
styleName: string;
|
|
416
432
|
valueFormat?: undefined;
|
|
433
|
+
} | {
|
|
434
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
435
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
436
|
+
styleName?: undefined;
|
|
417
437
|
})[];
|
|
418
438
|
/** The margin-block CSS shorthand property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation. */
|
|
419
439
|
my: ({
|
|
@@ -424,6 +444,10 @@ export declare const cssStyles: {
|
|
|
424
444
|
values: readonly ["auto"];
|
|
425
445
|
styleName: string;
|
|
426
446
|
valueFormat?: undefined;
|
|
447
|
+
} | {
|
|
448
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
449
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
450
|
+
styleName?: undefined;
|
|
427
451
|
})[];
|
|
428
452
|
/** The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
|
|
429
453
|
mt: ({
|
|
@@ -434,6 +458,10 @@ export declare const cssStyles: {
|
|
|
434
458
|
values: readonly ["auto"];
|
|
435
459
|
styleName: string;
|
|
436
460
|
valueFormat?: undefined;
|
|
461
|
+
} | {
|
|
462
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
463
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
464
|
+
styleName?: undefined;
|
|
437
465
|
})[];
|
|
438
466
|
/** The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
|
|
439
467
|
mr: ({
|
|
@@ -444,6 +472,10 @@ export declare const cssStyles: {
|
|
|
444
472
|
values: readonly ["auto"];
|
|
445
473
|
styleName: string;
|
|
446
474
|
valueFormat?: undefined;
|
|
475
|
+
} | {
|
|
476
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
477
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
478
|
+
styleName?: undefined;
|
|
447
479
|
})[];
|
|
448
480
|
/** The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
|
|
449
481
|
mb: ({
|
|
@@ -454,6 +486,10 @@ export declare const cssStyles: {
|
|
|
454
486
|
values: readonly ["auto"];
|
|
455
487
|
styleName: string;
|
|
456
488
|
valueFormat?: undefined;
|
|
489
|
+
} | {
|
|
490
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
491
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
492
|
+
styleName?: undefined;
|
|
457
493
|
})[];
|
|
458
494
|
/** The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
|
|
459
495
|
ml: ({
|
|
@@ -464,49 +500,81 @@ export declare const cssStyles: {
|
|
|
464
500
|
values: readonly ["auto"];
|
|
465
501
|
styleName: string;
|
|
466
502
|
valueFormat?: undefined;
|
|
503
|
+
} | {
|
|
504
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
505
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
506
|
+
styleName?: undefined;
|
|
467
507
|
})[];
|
|
468
508
|
/** The padding CSS shorthand property sets the padding area on all four sides of an element at once. */
|
|
469
|
-
p: {
|
|
509
|
+
p: ({
|
|
470
510
|
values: number;
|
|
471
511
|
styleName: string;
|
|
472
512
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
473
|
-
}
|
|
513
|
+
} | {
|
|
514
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
515
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
516
|
+
styleName?: undefined;
|
|
517
|
+
})[];
|
|
474
518
|
/** The padding-inline CSS shorthand property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
|
|
475
|
-
px: {
|
|
519
|
+
px: ({
|
|
476
520
|
values: number;
|
|
477
521
|
styleName: string;
|
|
478
522
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
479
|
-
}
|
|
523
|
+
} | {
|
|
524
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
525
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
526
|
+
styleName?: undefined;
|
|
527
|
+
})[];
|
|
480
528
|
/** The padding-block CSS shorthand property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
|
|
481
|
-
py: {
|
|
529
|
+
py: ({
|
|
482
530
|
values: number;
|
|
483
531
|
styleName: string;
|
|
484
532
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
485
|
-
}
|
|
533
|
+
} | {
|
|
534
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
535
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
536
|
+
styleName?: undefined;
|
|
537
|
+
})[];
|
|
486
538
|
/** The padding-top CSS property sets the height of the padding area on the top of an element. */
|
|
487
|
-
pt: {
|
|
539
|
+
pt: ({
|
|
488
540
|
values: number;
|
|
489
541
|
styleName: string;
|
|
490
542
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
491
|
-
}
|
|
543
|
+
} | {
|
|
544
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
545
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
546
|
+
styleName?: undefined;
|
|
547
|
+
})[];
|
|
492
548
|
/** The padding-right CSS property sets the width of the padding area on the right of an element. */
|
|
493
|
-
pr: {
|
|
549
|
+
pr: ({
|
|
494
550
|
values: number;
|
|
495
551
|
styleName: string;
|
|
496
552
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
497
|
-
}
|
|
553
|
+
} | {
|
|
554
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
555
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
556
|
+
styleName?: undefined;
|
|
557
|
+
})[];
|
|
498
558
|
/** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
|
|
499
|
-
pb: {
|
|
559
|
+
pb: ({
|
|
500
560
|
values: number;
|
|
501
561
|
styleName: string;
|
|
502
562
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
503
|
-
}
|
|
563
|
+
} | {
|
|
564
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
565
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
566
|
+
styleName?: undefined;
|
|
567
|
+
})[];
|
|
504
568
|
/** The padding-left CSS property sets the width of the padding area to the left of an element. */
|
|
505
|
-
pl: {
|
|
569
|
+
pl: ({
|
|
506
570
|
values: number;
|
|
507
571
|
styleName: string;
|
|
508
572
|
valueFormat: typeof BoxStylesFormatters.Value.rem;
|
|
509
|
-
}
|
|
573
|
+
} | {
|
|
574
|
+
values: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
575
|
+
valueFormat: typeof BoxStylesFormatters.Value.fraction;
|
|
576
|
+
styleName?: undefined;
|
|
577
|
+
})[];
|
|
510
578
|
/** The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container. */
|
|
511
579
|
objectFit: {
|
|
512
580
|
styleName: string;
|
|
@@ -643,7 +711,7 @@ export declare const cssStyles: {
|
|
|
643
711
|
valueFormat?: undefined;
|
|
644
712
|
})[];
|
|
645
713
|
/** The grid-column CSS shorthand property specifies a grid item's size and location within a grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area. */
|
|
646
|
-
|
|
714
|
+
gridColumn: ({
|
|
647
715
|
styleName: string;
|
|
648
716
|
values: number;
|
|
649
717
|
valueFormat: (value: number) => string;
|
|
@@ -724,6 +792,11 @@ export declare const cssStyles: {
|
|
|
724
792
|
valueFormat: (value: number) => string;
|
|
725
793
|
styleName: string;
|
|
726
794
|
}[];
|
|
795
|
+
translateY: {
|
|
796
|
+
values: number;
|
|
797
|
+
valueFormat: (value: number) => string;
|
|
798
|
+
styleName: string;
|
|
799
|
+
}[];
|
|
727
800
|
};
|
|
728
801
|
export declare const pseudo1: {
|
|
729
802
|
hover: string;
|
|
@@ -6,7 +6,7 @@ export declare namespace BoxStylesFormatters {
|
|
|
6
6
|
namespace Value {
|
|
7
7
|
function rem(value: number, _fn?: Function, divider?: number): string;
|
|
8
8
|
function px(value: number): string;
|
|
9
|
-
function fraction(
|
|
9
|
+
function fraction(value: string): string;
|
|
10
10
|
function widthHeight(key: string, value: string): string;
|
|
11
11
|
function variables(prefix: string): (key: string, value: string) => string;
|
|
12
12
|
function svgVariables(prefix: string): (key: string, value: string) => string;
|
package/core/classNames.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type ClassNameType = undefined |
|
|
1
|
+
export type ClassNameType<T extends string = string> = T extends never ? undefined : undefined | T | T[] | Record<T, boolean> | ClassNameType<T>[];
|
|
2
2
|
export declare function classNames(...classNameRules: ClassNameType[]): string[];
|
|
@@ -300,7 +300,92 @@ declare const boxComponents: {
|
|
|
300
300
|
styles: {};
|
|
301
301
|
};
|
|
302
302
|
datagrid: {
|
|
303
|
-
styles: {
|
|
303
|
+
styles: {
|
|
304
|
+
b: number;
|
|
305
|
+
borderColor: "gray-400";
|
|
306
|
+
overflow: "hidden";
|
|
307
|
+
borderRadius: number;
|
|
308
|
+
};
|
|
309
|
+
children: {
|
|
310
|
+
header: {
|
|
311
|
+
styles: {
|
|
312
|
+
position: "sticky";
|
|
313
|
+
top: number;
|
|
314
|
+
width: "max-content";
|
|
315
|
+
minWidth: "fit";
|
|
316
|
+
zIndex: 1;
|
|
317
|
+
};
|
|
318
|
+
variants: {
|
|
319
|
+
isResizeMode: {
|
|
320
|
+
userSelect: "none";
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
children: {
|
|
324
|
+
cell: {
|
|
325
|
+
styles: {
|
|
326
|
+
bgColor: "gray-200";
|
|
327
|
+
borderColor: "gray-400";
|
|
328
|
+
bb: number;
|
|
329
|
+
minHeight: number;
|
|
330
|
+
position: "relative";
|
|
331
|
+
transition: "none";
|
|
332
|
+
};
|
|
333
|
+
variants: {
|
|
334
|
+
isRowNumber: {};
|
|
335
|
+
isRowSelection: {};
|
|
336
|
+
isPinned: {
|
|
337
|
+
position: "sticky";
|
|
338
|
+
zIndex: 2;
|
|
339
|
+
};
|
|
340
|
+
isFirstLeftPinned: {};
|
|
341
|
+
isLastLeftPinned: {
|
|
342
|
+
br: number;
|
|
343
|
+
};
|
|
344
|
+
isFirstRightPinned: {
|
|
345
|
+
bl: number;
|
|
346
|
+
};
|
|
347
|
+
isLastRightPinned: {};
|
|
348
|
+
isSortable: {
|
|
349
|
+
cursor: "pointer";
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
cell: {
|
|
356
|
+
styles: {
|
|
357
|
+
bgColor: "gray-100";
|
|
358
|
+
bb: number;
|
|
359
|
+
borderColor: "gray-400";
|
|
360
|
+
transition: "none";
|
|
361
|
+
ai: "center";
|
|
362
|
+
overflow: "hidden";
|
|
363
|
+
minHeight: number;
|
|
364
|
+
hoverGroup: {
|
|
365
|
+
'grid-row': {
|
|
366
|
+
bgColor: "gray-200";
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
variants: {
|
|
371
|
+
isRowNumber: {
|
|
372
|
+
bgColor: "gray-200";
|
|
373
|
+
};
|
|
374
|
+
isRowSelection: {};
|
|
375
|
+
isPinned: {
|
|
376
|
+
position: "sticky";
|
|
377
|
+
};
|
|
378
|
+
isFirstLeftPinned: {};
|
|
379
|
+
isLastLeftPinned: {
|
|
380
|
+
br: number;
|
|
381
|
+
};
|
|
382
|
+
isFirstRightPinned: {
|
|
383
|
+
bl: number;
|
|
384
|
+
};
|
|
385
|
+
isLastRightPinned: {};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
304
389
|
};
|
|
305
390
|
};
|
|
306
391
|
export default boxComponents;
|
package/core/useStyles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BoxStyleProps,
|
|
2
|
-
export default function useStyles
|
|
1
|
+
import { BoxStyleProps, PseudoClassesType } from '../types';
|
|
2
|
+
export default function useStyles(props: BoxStyleProps<any>, isSvg: boolean): string[];
|
|
3
3
|
declare namespace StylesContextImpl {
|
|
4
4
|
function addClassNames(props: BoxStyleProps<any>, classNames: string[], currentPseudoClasses: PseudoClassesType[], breakpoint?: string, pseudoClassParentName?: string): void;
|
|
5
5
|
function flush(): void;
|
package/core/variables.d.ts
CHANGED
|
@@ -253,6 +253,7 @@ declare namespace Variables {
|
|
|
253
253
|
'rose-950': string;
|
|
254
254
|
};
|
|
255
255
|
type ColorType = keyof typeof colors | 'none';
|
|
256
|
+
const percentages: readonly ["1/2", "1/3", "2/3", "1/4", "2/4", "3/4", "1/5", "2/5", "3/5", "4/5", "1/6", "2/6", "3/6", "4/6", "5/6", "1/12", "2/12", "3/12", "4/12", "5/12", "6/12", "7/12", "8/12", "9/12", "10/12", "11/12"];
|
|
256
257
|
function getVariableValue(name: string): string;
|
|
257
258
|
function generateVariables(): string;
|
|
258
259
|
function setUserVariables(variables: Record<string, string>): void;
|