@kushagradhawan/kookie-ui 0.1.25 → 0.1.27
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 +18 -6
- 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/index.d.ts +1 -0
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/components/index.js.map +3 -3
- package/dist/cjs/components/user-card.d.ts +12 -0
- package/dist/cjs/components/user-card.d.ts.map +1 -0
- package/dist/cjs/components/user-card.js +2 -0
- package/dist/cjs/components/user-card.js.map +7 -0
- package/dist/cjs/components/user-card.props.d.ts +63 -0
- package/dist/cjs/components/user-card.props.d.ts.map +1 -0
- package/dist/cjs/components/user-card.props.js +2 -0
- package/dist/cjs/components/user-card.props.js.map +7 -0
- 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/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/index.js.map +3 -3
- package/dist/esm/components/user-card.d.ts +12 -0
- package/dist/esm/components/user-card.d.ts.map +1 -0
- package/dist/esm/components/user-card.js +2 -0
- package/dist/esm/components/user-card.js.map +7 -0
- package/dist/esm/components/user-card.props.d.ts +63 -0
- package/dist/esm/components/user-card.props.d.ts.map +1 -0
- package/dist/esm/components/user-card.props.js +2 -0
- package/dist/esm/components/user-card.props.js.map +7 -0
- 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/_internal/base-menu.css +5 -5
- package/src/components/grid.props.tsx +58 -0
- package/src/components/image.css +1 -1
- package/src/components/index.css +1 -0
- package/src/components/index.tsx +1 -0
- package/src/components/user-card.css +29 -0
- package/src/components/user-card.props.tsx +45 -0
- package/src/components/user-card.tsx +102 -0
- package/src/props/layout.props.ts +38 -0
- package/src/styles/tokens/transition.css +5 -5
- 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 +389 -23
- package/tokens/base.css +5 -5
- package/tokens.css +5 -5
- 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
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
/* Ensure gray text appears muted in non-highlighted state */
|
|
293
|
-
.rt-BaseMenuItem :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']) {
|
|
293
|
+
.rt-BaseMenuItem :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']:not(.rt-Badge)) {
|
|
294
294
|
color: var(--gray-a10);
|
|
295
295
|
}
|
|
296
296
|
.rt-BaseMenuItem:where([data-disabled], [data-highlighted]),
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/* Also target any element with data-accent-color="gray" */
|
|
364
|
-
& :where([data-accent-color='gray']) {
|
|
364
|
+
& :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
365
365
|
color: inherit !important;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
/* Also target any element with data-accent-color="gray" in high contrast */
|
|
383
|
-
& :where([data-accent-color='gray']) {
|
|
383
|
+
& :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
384
384
|
color: inherit !important;
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
color: inherit !important;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
& :where([data-accent-color='gray']) {
|
|
395
|
+
& :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
396
396
|
color: inherit !important;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
/* In soft variant, improve contrast for gray text while maintaining hierarchy */
|
|
470
|
-
& :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']) {
|
|
470
|
+
& :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']:not(.rt-Badge)) {
|
|
471
471
|
color: var(--gray-11) !important;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
@@ -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
|
|
package/src/components/image.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
display: block;
|
|
7
7
|
object-fit: var(--object-fit);
|
|
8
8
|
box-shadow: var(--box-shadow);
|
|
9
|
-
border-radius: max(var(--radius-4), var(--radius-full));
|
|
9
|
+
border-radius: max(var(--radius-4), min(var(--radius-full), var(--radius-6)));
|
|
10
10
|
transition: var(--transition-button);
|
|
11
11
|
}
|
|
12
12
|
|
package/src/components/index.css
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
@import './text-field.css';
|
|
54
54
|
@import './theme-panel.css';
|
|
55
55
|
@import './tooltip.css';
|
|
56
|
+
@import './user-card.css';
|
|
56
57
|
|
|
57
58
|
.radix-themes:where([data-is-root-theme='true']) {
|
|
58
59
|
/* Create a new stacking context on the root `Theme` so layered components work out of the box */
|
package/src/components/index.tsx
CHANGED
|
@@ -64,5 +64,6 @@ export { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.j
|
|
|
64
64
|
export { ToggleButton, type ToggleButtonProps } from './toggle-button.js';
|
|
65
65
|
export { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';
|
|
66
66
|
export { Tooltip, type TooltipProps } from './tooltip.js';
|
|
67
|
+
export { UserCard, type UserCardProps } from './user-card.js';
|
|
67
68
|
export { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';
|
|
68
69
|
export * as Sidebar from './sidebar.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* UserCard component styles */
|
|
2
|
+
.rt-UserCard {
|
|
3
|
+
/* Base styles inherited from Card */
|
|
4
|
+
|
|
5
|
+
/* Size-specific gap adjustments */
|
|
6
|
+
&:where(.rt-r-size-1) {
|
|
7
|
+
& :where(.rt-Flex) {
|
|
8
|
+
gap: var(--space-2);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where(.rt-r-size-2) {
|
|
13
|
+
& :where(.rt-Flex) {
|
|
14
|
+
gap: var(--space-3);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:where(.rt-r-size-3) {
|
|
19
|
+
& :where(.rt-Flex) {
|
|
20
|
+
gap: var(--space-4);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where(.rt-r-size-4) {
|
|
25
|
+
& :where(.rt-Flex) {
|
|
26
|
+
gap: var(--space-5);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { asChildPropDef } from '../props/as-child.prop.js';
|
|
2
|
+
import { accentColorPropDef } from '../props/color.prop.js';
|
|
3
|
+
import { highContrastPropDef } from '../props/high-contrast.prop.js';
|
|
4
|
+
import { radiusPropDef } from '../props/radius.prop.js';
|
|
5
|
+
|
|
6
|
+
import type { PropDef } from '../props/prop-def.js';
|
|
7
|
+
|
|
8
|
+
const sizes = ['1', '2', '3', '4'] as const;
|
|
9
|
+
const variants = ['ghost', 'surface', 'classic'] as const;
|
|
10
|
+
const avatarVariants = ['solid', 'soft', 'surface', 'outline'] as const;
|
|
11
|
+
const panelBackgrounds = ['solid', 'translucent'] as const;
|
|
12
|
+
|
|
13
|
+
const userCardPropDefs = {
|
|
14
|
+
...asChildPropDef,
|
|
15
|
+
size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },
|
|
16
|
+
variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },
|
|
17
|
+
|
|
18
|
+
// Content props
|
|
19
|
+
src: { type: 'string' },
|
|
20
|
+
fallback: { type: 'ReactNode', required: true },
|
|
21
|
+
name: { type: 'string', required: true },
|
|
22
|
+
description: { type: 'string' },
|
|
23
|
+
|
|
24
|
+
// Avatar styling
|
|
25
|
+
avatarVariant: { type: 'enum', values: avatarVariants, default: 'soft' },
|
|
26
|
+
...radiusPropDef,
|
|
27
|
+
|
|
28
|
+
// Card styling
|
|
29
|
+
...accentColorPropDef,
|
|
30
|
+
...highContrastPropDef,
|
|
31
|
+
panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },
|
|
32
|
+
flush: { type: 'boolean', default: false },
|
|
33
|
+
} satisfies {
|
|
34
|
+
size: PropDef<(typeof sizes)[number]>;
|
|
35
|
+
variant: PropDef<(typeof variants)[number]>;
|
|
36
|
+
src: PropDef<string>;
|
|
37
|
+
fallback: PropDef<React.ReactNode>;
|
|
38
|
+
name: PropDef<string>;
|
|
39
|
+
description: PropDef<string>;
|
|
40
|
+
avatarVariant: PropDef<(typeof avatarVariants)[number]>;
|
|
41
|
+
panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;
|
|
42
|
+
flush: PropDef<boolean>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { userCardPropDefs };
|