@kushagradhawan/kookie-ui 0.1.26 → 0.1.28
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/components.css +183 -44
- package/dist/cjs/components/grid.props.d.ts +36 -0
- package/dist/cjs/components/grid.props.d.ts.map +1 -1
- package/dist/cjs/components/grid.props.js +1 -1
- package/dist/cjs/components/grid.props.js.map +3 -3
- package/dist/cjs/components/scroll-area.js.map +1 -1
- package/dist/cjs/components/sidebar.d.ts +1 -1
- package/dist/cjs/components/sidebar.d.ts.map +1 -1
- package/dist/cjs/components/sidebar.js +1 -1
- package/dist/cjs/components/sidebar.js.map +2 -2
- package/dist/cjs/components/sidebar.props.d.ts +2 -2
- package/dist/cjs/components/sidebar.props.js +1 -1
- package/dist/cjs/components/sidebar.props.js.map +2 -2
- package/dist/cjs/props/layout.props.d.ts +34 -0
- package/dist/cjs/props/layout.props.d.ts.map +1 -1
- package/dist/cjs/props/layout.props.js +1 -1
- package/dist/cjs/props/layout.props.js.map +3 -3
- package/dist/esm/components/grid.props.d.ts +36 -0
- package/dist/esm/components/grid.props.d.ts.map +1 -1
- package/dist/esm/components/grid.props.js +1 -1
- package/dist/esm/components/grid.props.js.map +3 -3
- package/dist/esm/components/scroll-area.js.map +1 -1
- package/dist/esm/components/sidebar.d.ts +1 -1
- package/dist/esm/components/sidebar.d.ts.map +1 -1
- package/dist/esm/components/sidebar.js +1 -1
- package/dist/esm/components/sidebar.js.map +2 -2
- package/dist/esm/components/sidebar.props.d.ts +2 -2
- package/dist/esm/components/sidebar.props.js +1 -1
- package/dist/esm/components/sidebar.props.js.map +2 -2
- package/dist/esm/props/layout.props.d.ts +34 -0
- package/dist/esm/props/layout.props.d.ts.map +1 -1
- package/dist/esm/props/layout.props.js +1 -1
- package/dist/esm/props/layout.props.js.map +3 -3
- package/layout/utilities.css +366 -12
- package/layout.css +366 -12
- package/package.json +1 -1
- package/src/components/grid.props.tsx +58 -0
- package/src/components/scroll-area.tsx +2 -2
- package/src/components/sidebar.css +260 -66
- package/src/components/sidebar.props.tsx +2 -2
- package/src/components/sidebar.tsx +2 -2
- package/src/props/layout.props.ts +38 -0
- package/src/styles/tokens/radius.css +1 -1
- package/src/styles/utilities/align-content.css +33 -0
- package/src/styles/utilities/align-self.css +2 -2
- package/src/styles/utilities/justify-items.css +21 -0
- package/src/styles/utilities/justify-self.css +21 -0
- package/src/styles/utilities/layout.css +3 -0
- package/styles.css +550 -57
- package/tokens/base.css +1 -1
- package/tokens.css +1 -1
- package/utilities.css +366 -12
package/layout.css
CHANGED
|
@@ -248,6 +248,160 @@
|
|
|
248
248
|
max-width: var(--container-4);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
+
.rt-r-ac-start {
|
|
252
|
+
align-content: start;
|
|
253
|
+
}
|
|
254
|
+
.rt-r-ac-center {
|
|
255
|
+
align-content: center;
|
|
256
|
+
}
|
|
257
|
+
.rt-r-ac-end {
|
|
258
|
+
align-content: end;
|
|
259
|
+
}
|
|
260
|
+
.rt-r-ac-baseline {
|
|
261
|
+
align-content: baseline;
|
|
262
|
+
}
|
|
263
|
+
.rt-r-ac-stretch {
|
|
264
|
+
align-content: stretch;
|
|
265
|
+
}
|
|
266
|
+
.rt-r-ac-space-between {
|
|
267
|
+
align-content: space-between;
|
|
268
|
+
}
|
|
269
|
+
.rt-r-ac-space-around {
|
|
270
|
+
align-content: space-around;
|
|
271
|
+
}
|
|
272
|
+
.rt-r-ac-space-evenly {
|
|
273
|
+
align-content: space-evenly;
|
|
274
|
+
}
|
|
275
|
+
@media (min-width: 520px) {
|
|
276
|
+
.xs\:rt-r-ac-start {
|
|
277
|
+
align-content: start;
|
|
278
|
+
}
|
|
279
|
+
.xs\:rt-r-ac-center {
|
|
280
|
+
align-content: center;
|
|
281
|
+
}
|
|
282
|
+
.xs\:rt-r-ac-end {
|
|
283
|
+
align-content: end;
|
|
284
|
+
}
|
|
285
|
+
.xs\:rt-r-ac-baseline {
|
|
286
|
+
align-content: baseline;
|
|
287
|
+
}
|
|
288
|
+
.xs\:rt-r-ac-stretch {
|
|
289
|
+
align-content: stretch;
|
|
290
|
+
}
|
|
291
|
+
.xs\:rt-r-ac-space-between {
|
|
292
|
+
align-content: space-between;
|
|
293
|
+
}
|
|
294
|
+
.xs\:rt-r-ac-space-around {
|
|
295
|
+
align-content: space-around;
|
|
296
|
+
}
|
|
297
|
+
.xs\:rt-r-ac-space-evenly {
|
|
298
|
+
align-content: space-evenly;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
@media (min-width: 768px) {
|
|
302
|
+
.sm\:rt-r-ac-start {
|
|
303
|
+
align-content: start;
|
|
304
|
+
}
|
|
305
|
+
.sm\:rt-r-ac-center {
|
|
306
|
+
align-content: center;
|
|
307
|
+
}
|
|
308
|
+
.sm\:rt-r-ac-end {
|
|
309
|
+
align-content: end;
|
|
310
|
+
}
|
|
311
|
+
.sm\:rt-r-ac-baseline {
|
|
312
|
+
align-content: baseline;
|
|
313
|
+
}
|
|
314
|
+
.sm\:rt-r-ac-stretch {
|
|
315
|
+
align-content: stretch;
|
|
316
|
+
}
|
|
317
|
+
.sm\:rt-r-ac-space-between {
|
|
318
|
+
align-content: space-between;
|
|
319
|
+
}
|
|
320
|
+
.sm\:rt-r-ac-space-around {
|
|
321
|
+
align-content: space-around;
|
|
322
|
+
}
|
|
323
|
+
.sm\:rt-r-ac-space-evenly {
|
|
324
|
+
align-content: space-evenly;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
@media (min-width: 1024px) {
|
|
328
|
+
.md\:rt-r-ac-start {
|
|
329
|
+
align-content: start;
|
|
330
|
+
}
|
|
331
|
+
.md\:rt-r-ac-center {
|
|
332
|
+
align-content: center;
|
|
333
|
+
}
|
|
334
|
+
.md\:rt-r-ac-end {
|
|
335
|
+
align-content: end;
|
|
336
|
+
}
|
|
337
|
+
.md\:rt-r-ac-baseline {
|
|
338
|
+
align-content: baseline;
|
|
339
|
+
}
|
|
340
|
+
.md\:rt-r-ac-stretch {
|
|
341
|
+
align-content: stretch;
|
|
342
|
+
}
|
|
343
|
+
.md\:rt-r-ac-space-between {
|
|
344
|
+
align-content: space-between;
|
|
345
|
+
}
|
|
346
|
+
.md\:rt-r-ac-space-around {
|
|
347
|
+
align-content: space-around;
|
|
348
|
+
}
|
|
349
|
+
.md\:rt-r-ac-space-evenly {
|
|
350
|
+
align-content: space-evenly;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
@media (min-width: 1280px) {
|
|
354
|
+
.lg\:rt-r-ac-start {
|
|
355
|
+
align-content: start;
|
|
356
|
+
}
|
|
357
|
+
.lg\:rt-r-ac-center {
|
|
358
|
+
align-content: center;
|
|
359
|
+
}
|
|
360
|
+
.lg\:rt-r-ac-end {
|
|
361
|
+
align-content: end;
|
|
362
|
+
}
|
|
363
|
+
.lg\:rt-r-ac-baseline {
|
|
364
|
+
align-content: baseline;
|
|
365
|
+
}
|
|
366
|
+
.lg\:rt-r-ac-stretch {
|
|
367
|
+
align-content: stretch;
|
|
368
|
+
}
|
|
369
|
+
.lg\:rt-r-ac-space-between {
|
|
370
|
+
align-content: space-between;
|
|
371
|
+
}
|
|
372
|
+
.lg\:rt-r-ac-space-around {
|
|
373
|
+
align-content: space-around;
|
|
374
|
+
}
|
|
375
|
+
.lg\:rt-r-ac-space-evenly {
|
|
376
|
+
align-content: space-evenly;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
@media (min-width: 1640px) {
|
|
380
|
+
.xl\:rt-r-ac-start {
|
|
381
|
+
align-content: start;
|
|
382
|
+
}
|
|
383
|
+
.xl\:rt-r-ac-center {
|
|
384
|
+
align-content: center;
|
|
385
|
+
}
|
|
386
|
+
.xl\:rt-r-ac-end {
|
|
387
|
+
align-content: end;
|
|
388
|
+
}
|
|
389
|
+
.xl\:rt-r-ac-baseline {
|
|
390
|
+
align-content: baseline;
|
|
391
|
+
}
|
|
392
|
+
.xl\:rt-r-ac-stretch {
|
|
393
|
+
align-content: stretch;
|
|
394
|
+
}
|
|
395
|
+
.xl\:rt-r-ac-space-between {
|
|
396
|
+
align-content: space-between;
|
|
397
|
+
}
|
|
398
|
+
.xl\:rt-r-ac-space-around {
|
|
399
|
+
align-content: space-around;
|
|
400
|
+
}
|
|
401
|
+
.xl\:rt-r-ac-space-evenly {
|
|
402
|
+
align-content: space-evenly;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
251
405
|
.rt-r-ai-start {
|
|
252
406
|
align-items: flex-start;
|
|
253
407
|
}
|
|
@@ -349,13 +503,13 @@
|
|
|
349
503
|
}
|
|
350
504
|
}
|
|
351
505
|
.rt-r-as-start {
|
|
352
|
-
align-self:
|
|
506
|
+
align-self: start;
|
|
353
507
|
}
|
|
354
508
|
.rt-r-as-center {
|
|
355
509
|
align-self: center;
|
|
356
510
|
}
|
|
357
511
|
.rt-r-as-end {
|
|
358
|
-
align-self:
|
|
512
|
+
align-self: end;
|
|
359
513
|
}
|
|
360
514
|
.rt-r-as-baseline {
|
|
361
515
|
align-self: baseline;
|
|
@@ -365,13 +519,13 @@
|
|
|
365
519
|
}
|
|
366
520
|
@media (min-width: 520px) {
|
|
367
521
|
.xs\:rt-r-as-start {
|
|
368
|
-
align-self:
|
|
522
|
+
align-self: start;
|
|
369
523
|
}
|
|
370
524
|
.xs\:rt-r-as-center {
|
|
371
525
|
align-self: center;
|
|
372
526
|
}
|
|
373
527
|
.xs\:rt-r-as-end {
|
|
374
|
-
align-self:
|
|
528
|
+
align-self: end;
|
|
375
529
|
}
|
|
376
530
|
.xs\:rt-r-as-baseline {
|
|
377
531
|
align-self: baseline;
|
|
@@ -382,13 +536,13 @@
|
|
|
382
536
|
}
|
|
383
537
|
@media (min-width: 768px) {
|
|
384
538
|
.sm\:rt-r-as-start {
|
|
385
|
-
align-self:
|
|
539
|
+
align-self: start;
|
|
386
540
|
}
|
|
387
541
|
.sm\:rt-r-as-center {
|
|
388
542
|
align-self: center;
|
|
389
543
|
}
|
|
390
544
|
.sm\:rt-r-as-end {
|
|
391
|
-
align-self:
|
|
545
|
+
align-self: end;
|
|
392
546
|
}
|
|
393
547
|
.sm\:rt-r-as-baseline {
|
|
394
548
|
align-self: baseline;
|
|
@@ -399,13 +553,13 @@
|
|
|
399
553
|
}
|
|
400
554
|
@media (min-width: 1024px) {
|
|
401
555
|
.md\:rt-r-as-start {
|
|
402
|
-
align-self:
|
|
556
|
+
align-self: start;
|
|
403
557
|
}
|
|
404
558
|
.md\:rt-r-as-center {
|
|
405
559
|
align-self: center;
|
|
406
560
|
}
|
|
407
561
|
.md\:rt-r-as-end {
|
|
408
|
-
align-self:
|
|
562
|
+
align-self: end;
|
|
409
563
|
}
|
|
410
564
|
.md\:rt-r-as-baseline {
|
|
411
565
|
align-self: baseline;
|
|
@@ -416,13 +570,13 @@
|
|
|
416
570
|
}
|
|
417
571
|
@media (min-width: 1280px) {
|
|
418
572
|
.lg\:rt-r-as-start {
|
|
419
|
-
align-self:
|
|
573
|
+
align-self: start;
|
|
420
574
|
}
|
|
421
575
|
.lg\:rt-r-as-center {
|
|
422
576
|
align-self: center;
|
|
423
577
|
}
|
|
424
578
|
.lg\:rt-r-as-end {
|
|
425
|
-
align-self:
|
|
579
|
+
align-self: end;
|
|
426
580
|
}
|
|
427
581
|
.lg\:rt-r-as-baseline {
|
|
428
582
|
align-self: baseline;
|
|
@@ -433,13 +587,13 @@
|
|
|
433
587
|
}
|
|
434
588
|
@media (min-width: 1640px) {
|
|
435
589
|
.xl\:rt-r-as-start {
|
|
436
|
-
align-self:
|
|
590
|
+
align-self: start;
|
|
437
591
|
}
|
|
438
592
|
.xl\:rt-r-as-center {
|
|
439
593
|
align-self: center;
|
|
440
594
|
}
|
|
441
595
|
.xl\:rt-r-as-end {
|
|
442
|
-
align-self:
|
|
596
|
+
align-self: end;
|
|
443
597
|
}
|
|
444
598
|
.xl\:rt-r-as-baseline {
|
|
445
599
|
align-self: baseline;
|
|
@@ -4408,6 +4562,206 @@
|
|
|
4408
4562
|
justify-content: space-between;
|
|
4409
4563
|
}
|
|
4410
4564
|
}
|
|
4565
|
+
.rt-r-ji-start {
|
|
4566
|
+
justify-items: start;
|
|
4567
|
+
}
|
|
4568
|
+
.rt-r-ji-center {
|
|
4569
|
+
justify-items: center;
|
|
4570
|
+
}
|
|
4571
|
+
.rt-r-ji-end {
|
|
4572
|
+
justify-items: end;
|
|
4573
|
+
}
|
|
4574
|
+
.rt-r-ji-baseline {
|
|
4575
|
+
justify-items: baseline;
|
|
4576
|
+
}
|
|
4577
|
+
.rt-r-ji-stretch {
|
|
4578
|
+
justify-items: stretch;
|
|
4579
|
+
}
|
|
4580
|
+
@media (min-width: 520px) {
|
|
4581
|
+
.xs\:rt-r-ji-start {
|
|
4582
|
+
justify-items: start;
|
|
4583
|
+
}
|
|
4584
|
+
.xs\:rt-r-ji-center {
|
|
4585
|
+
justify-items: center;
|
|
4586
|
+
}
|
|
4587
|
+
.xs\:rt-r-ji-end {
|
|
4588
|
+
justify-items: end;
|
|
4589
|
+
}
|
|
4590
|
+
.xs\:rt-r-ji-baseline {
|
|
4591
|
+
justify-items: baseline;
|
|
4592
|
+
}
|
|
4593
|
+
.xs\:rt-r-ji-stretch {
|
|
4594
|
+
justify-items: stretch;
|
|
4595
|
+
}
|
|
4596
|
+
}
|
|
4597
|
+
@media (min-width: 768px) {
|
|
4598
|
+
.sm\:rt-r-ji-start {
|
|
4599
|
+
justify-items: start;
|
|
4600
|
+
}
|
|
4601
|
+
.sm\:rt-r-ji-center {
|
|
4602
|
+
justify-items: center;
|
|
4603
|
+
}
|
|
4604
|
+
.sm\:rt-r-ji-end {
|
|
4605
|
+
justify-items: end;
|
|
4606
|
+
}
|
|
4607
|
+
.sm\:rt-r-ji-baseline {
|
|
4608
|
+
justify-items: baseline;
|
|
4609
|
+
}
|
|
4610
|
+
.sm\:rt-r-ji-stretch {
|
|
4611
|
+
justify-items: stretch;
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
@media (min-width: 1024px) {
|
|
4615
|
+
.md\:rt-r-ji-start {
|
|
4616
|
+
justify-items: start;
|
|
4617
|
+
}
|
|
4618
|
+
.md\:rt-r-ji-center {
|
|
4619
|
+
justify-items: center;
|
|
4620
|
+
}
|
|
4621
|
+
.md\:rt-r-ji-end {
|
|
4622
|
+
justify-items: end;
|
|
4623
|
+
}
|
|
4624
|
+
.md\:rt-r-ji-baseline {
|
|
4625
|
+
justify-items: baseline;
|
|
4626
|
+
}
|
|
4627
|
+
.md\:rt-r-ji-stretch {
|
|
4628
|
+
justify-items: stretch;
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4631
|
+
@media (min-width: 1280px) {
|
|
4632
|
+
.lg\:rt-r-ji-start {
|
|
4633
|
+
justify-items: start;
|
|
4634
|
+
}
|
|
4635
|
+
.lg\:rt-r-ji-center {
|
|
4636
|
+
justify-items: center;
|
|
4637
|
+
}
|
|
4638
|
+
.lg\:rt-r-ji-end {
|
|
4639
|
+
justify-items: end;
|
|
4640
|
+
}
|
|
4641
|
+
.lg\:rt-r-ji-baseline {
|
|
4642
|
+
justify-items: baseline;
|
|
4643
|
+
}
|
|
4644
|
+
.lg\:rt-r-ji-stretch {
|
|
4645
|
+
justify-items: stretch;
|
|
4646
|
+
}
|
|
4647
|
+
}
|
|
4648
|
+
@media (min-width: 1640px) {
|
|
4649
|
+
.xl\:rt-r-ji-start {
|
|
4650
|
+
justify-items: start;
|
|
4651
|
+
}
|
|
4652
|
+
.xl\:rt-r-ji-center {
|
|
4653
|
+
justify-items: center;
|
|
4654
|
+
}
|
|
4655
|
+
.xl\:rt-r-ji-end {
|
|
4656
|
+
justify-items: end;
|
|
4657
|
+
}
|
|
4658
|
+
.xl\:rt-r-ji-baseline {
|
|
4659
|
+
justify-items: baseline;
|
|
4660
|
+
}
|
|
4661
|
+
.xl\:rt-r-ji-stretch {
|
|
4662
|
+
justify-items: stretch;
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4665
|
+
.rt-r-js-start {
|
|
4666
|
+
justify-self: start;
|
|
4667
|
+
}
|
|
4668
|
+
.rt-r-js-center {
|
|
4669
|
+
justify-self: center;
|
|
4670
|
+
}
|
|
4671
|
+
.rt-r-js-end {
|
|
4672
|
+
justify-self: end;
|
|
4673
|
+
}
|
|
4674
|
+
.rt-r-js-baseline {
|
|
4675
|
+
justify-self: baseline;
|
|
4676
|
+
}
|
|
4677
|
+
.rt-r-js-stretch {
|
|
4678
|
+
justify-self: stretch;
|
|
4679
|
+
}
|
|
4680
|
+
@media (min-width: 520px) {
|
|
4681
|
+
.xs\:rt-r-js-start {
|
|
4682
|
+
justify-self: start;
|
|
4683
|
+
}
|
|
4684
|
+
.xs\:rt-r-js-center {
|
|
4685
|
+
justify-self: center;
|
|
4686
|
+
}
|
|
4687
|
+
.xs\:rt-r-js-end {
|
|
4688
|
+
justify-self: end;
|
|
4689
|
+
}
|
|
4690
|
+
.xs\:rt-r-js-baseline {
|
|
4691
|
+
justify-self: baseline;
|
|
4692
|
+
}
|
|
4693
|
+
.xs\:rt-r-js-stretch {
|
|
4694
|
+
justify-self: stretch;
|
|
4695
|
+
}
|
|
4696
|
+
}
|
|
4697
|
+
@media (min-width: 768px) {
|
|
4698
|
+
.sm\:rt-r-js-start {
|
|
4699
|
+
justify-self: start;
|
|
4700
|
+
}
|
|
4701
|
+
.sm\:rt-r-js-center {
|
|
4702
|
+
justify-self: center;
|
|
4703
|
+
}
|
|
4704
|
+
.sm\:rt-r-js-end {
|
|
4705
|
+
justify-self: end;
|
|
4706
|
+
}
|
|
4707
|
+
.sm\:rt-r-js-baseline {
|
|
4708
|
+
justify-self: baseline;
|
|
4709
|
+
}
|
|
4710
|
+
.sm\:rt-r-js-stretch {
|
|
4711
|
+
justify-self: stretch;
|
|
4712
|
+
}
|
|
4713
|
+
}
|
|
4714
|
+
@media (min-width: 1024px) {
|
|
4715
|
+
.md\:rt-r-js-start {
|
|
4716
|
+
justify-self: start;
|
|
4717
|
+
}
|
|
4718
|
+
.md\:rt-r-js-center {
|
|
4719
|
+
justify-self: center;
|
|
4720
|
+
}
|
|
4721
|
+
.md\:rt-r-js-end {
|
|
4722
|
+
justify-self: end;
|
|
4723
|
+
}
|
|
4724
|
+
.md\:rt-r-js-baseline {
|
|
4725
|
+
justify-self: baseline;
|
|
4726
|
+
}
|
|
4727
|
+
.md\:rt-r-js-stretch {
|
|
4728
|
+
justify-self: stretch;
|
|
4729
|
+
}
|
|
4730
|
+
}
|
|
4731
|
+
@media (min-width: 1280px) {
|
|
4732
|
+
.lg\:rt-r-js-start {
|
|
4733
|
+
justify-self: start;
|
|
4734
|
+
}
|
|
4735
|
+
.lg\:rt-r-js-center {
|
|
4736
|
+
justify-self: center;
|
|
4737
|
+
}
|
|
4738
|
+
.lg\:rt-r-js-end {
|
|
4739
|
+
justify-self: end;
|
|
4740
|
+
}
|
|
4741
|
+
.lg\:rt-r-js-baseline {
|
|
4742
|
+
justify-self: baseline;
|
|
4743
|
+
}
|
|
4744
|
+
.lg\:rt-r-js-stretch {
|
|
4745
|
+
justify-self: stretch;
|
|
4746
|
+
}
|
|
4747
|
+
}
|
|
4748
|
+
@media (min-width: 1640px) {
|
|
4749
|
+
.xl\:rt-r-js-start {
|
|
4750
|
+
justify-self: start;
|
|
4751
|
+
}
|
|
4752
|
+
.xl\:rt-r-js-center {
|
|
4753
|
+
justify-self: center;
|
|
4754
|
+
}
|
|
4755
|
+
.xl\:rt-r-js-end {
|
|
4756
|
+
justify-self: end;
|
|
4757
|
+
}
|
|
4758
|
+
.xl\:rt-r-js-baseline {
|
|
4759
|
+
justify-self: baseline;
|
|
4760
|
+
}
|
|
4761
|
+
.xl\:rt-r-js-stretch {
|
|
4762
|
+
justify-self: stretch;
|
|
4763
|
+
}
|
|
4764
|
+
}
|
|
4411
4765
|
.rt-r-m,
|
|
4412
4766
|
.rt-r-m-0,
|
|
4413
4767
|
.rt-r-m-1,
|
package/package.json
CHANGED
|
@@ -10,6 +10,17 @@ const rowsValues = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;
|
|
|
10
10
|
const flowValues = ['row', 'column', 'dense', 'row-dense', 'column-dense'] as const;
|
|
11
11
|
const alignValues = ['start', 'center', 'end', 'baseline', 'stretch'] as const;
|
|
12
12
|
const justifyValues = ['start', 'center', 'end', 'between'] as const;
|
|
13
|
+
const alignContentValues = [
|
|
14
|
+
'start',
|
|
15
|
+
'center',
|
|
16
|
+
'end',
|
|
17
|
+
'baseline',
|
|
18
|
+
'between',
|
|
19
|
+
'around',
|
|
20
|
+
'evenly',
|
|
21
|
+
'stretch',
|
|
22
|
+
] as const;
|
|
23
|
+
const justifyItemsValues = ['start', 'center', 'end', 'baseline', 'stretch'] as const;
|
|
13
24
|
|
|
14
25
|
const gridPropDefs = {
|
|
15
26
|
/**
|
|
@@ -150,6 +161,41 @@ const gridPropDefs = {
|
|
|
150
161
|
parseValue: parseJustifyValue,
|
|
151
162
|
responsive: true,
|
|
152
163
|
},
|
|
164
|
+
/**
|
|
165
|
+
* Sets the CSS **align-content** property.
|
|
166
|
+
* Supports a subset of the corresponding CSS values and responsive objects.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* alignContent="between"
|
|
170
|
+
* alignContent={{ sm: 'start', lg: 'center' }}
|
|
171
|
+
*
|
|
172
|
+
* @link
|
|
173
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
|
|
174
|
+
*/
|
|
175
|
+
alignContent: {
|
|
176
|
+
type: 'enum',
|
|
177
|
+
className: 'rt-r-ac',
|
|
178
|
+
values: alignContentValues,
|
|
179
|
+
parseValue: parseAlignContentValue,
|
|
180
|
+
responsive: true,
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Sets the CSS **justify-items** property.
|
|
184
|
+
* Supports a subset of the corresponding CSS values and responsive objects.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* justifyItems="center"
|
|
188
|
+
* justifyItems={{ sm: 'start', lg: 'center' }}
|
|
189
|
+
*
|
|
190
|
+
* @link
|
|
191
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items
|
|
192
|
+
*/
|
|
193
|
+
justifyItems: {
|
|
194
|
+
type: 'enum',
|
|
195
|
+
className: 'rt-r-ji',
|
|
196
|
+
values: justifyItemsValues,
|
|
197
|
+
responsive: true,
|
|
198
|
+
},
|
|
153
199
|
...gapPropDefs,
|
|
154
200
|
} satisfies {
|
|
155
201
|
as: PropDef<(typeof as)[number]>;
|
|
@@ -160,6 +206,8 @@ const gridPropDefs = {
|
|
|
160
206
|
flow: PropDef<(typeof flowValues)[number]>;
|
|
161
207
|
align: PropDef<(typeof alignValues)[number]>;
|
|
162
208
|
justify: PropDef<(typeof justifyValues)[number]>;
|
|
209
|
+
alignContent: PropDef<(typeof alignContentValues)[number]>;
|
|
210
|
+
justifyItems: PropDef<(typeof justifyItemsValues)[number]>;
|
|
163
211
|
};
|
|
164
212
|
|
|
165
213
|
function parseGridValue(value: string): string {
|
|
@@ -174,6 +222,16 @@ function parseJustifyValue(value: string) {
|
|
|
174
222
|
return value === 'between' ? 'space-between' : value;
|
|
175
223
|
}
|
|
176
224
|
|
|
225
|
+
function parseAlignContentValue(value: string) {
|
|
226
|
+
return value === 'between'
|
|
227
|
+
? 'space-between'
|
|
228
|
+
: value === 'around'
|
|
229
|
+
? 'space-around'
|
|
230
|
+
: value === 'evenly'
|
|
231
|
+
? 'space-evenly'
|
|
232
|
+
: value;
|
|
233
|
+
}
|
|
234
|
+
|
|
177
235
|
// Use all of the imported prop defs to ensure that JSDoc works
|
|
178
236
|
type GridOwnProps = GetPropDefTypes<typeof gridPropDefs & typeof asChildPropDef>;
|
|
179
237
|
|
|
@@ -68,7 +68,7 @@ const ScrollArea = React.forwardRef<ScrollAreaElement, ScrollAreaProps>((props,
|
|
|
68
68
|
className: 'rt-r-size',
|
|
69
69
|
value: size,
|
|
70
70
|
propValues: scrollAreaPropDefs.size.values,
|
|
71
|
-
})
|
|
71
|
+
}),
|
|
72
72
|
)}
|
|
73
73
|
>
|
|
74
74
|
<ScrollAreaPrimitive.Thumb className="rt-ScrollAreaThumb" />
|
|
@@ -85,7 +85,7 @@ const ScrollArea = React.forwardRef<ScrollAreaElement, ScrollAreaProps>((props,
|
|
|
85
85
|
className: 'rt-r-size',
|
|
86
86
|
value: size,
|
|
87
87
|
propValues: scrollAreaPropDefs.size.values,
|
|
88
|
-
})
|
|
88
|
+
}),
|
|
89
89
|
)}
|
|
90
90
|
>
|
|
91
91
|
<ScrollAreaPrimitive.Thumb className="rt-ScrollAreaThumb" />
|