@tryghost/shade 0.1.0-alpha.41 → 0.1.0-alpha.43

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.
Files changed (54) hide show
  1. package/es/assets/images/index.js +1 -1
  2. package/es/components/ui/icon.js +1 -1
  3. package/es/components/ui/list.js +94 -0
  4. package/es/components/ui/list.js.map +1 -0
  5. package/es/components/ui/row-primary-action.js +48 -0
  6. package/es/components/ui/row-primary-action.js.map +1 -0
  7. package/es/components/ui/row-surface.js +18 -0
  8. package/es/components/ui/row-surface.js.map +1 -0
  9. package/es/components/ui/sortable-list.js +6 -2
  10. package/es/components/ui/sortable-list.js.map +1 -1
  11. package/es/components/ui/table.js +18 -7
  12. package/es/components/ui/table.js.map +1 -1
  13. package/es/components.js +6 -4
  14. package/es/hooks/use-row-behavior.js +94 -0
  15. package/es/hooks/use-row-behavior.js.map +1 -0
  16. package/es/hooks/use-row-press.js +63 -0
  17. package/es/hooks/use-row-press.js.map +1 -0
  18. package/es/{icon-BJcGsQ4b.js → icon--CakqPdG.js} +15 -19
  19. package/es/icon--CakqPdG.js.map +1 -0
  20. package/es/{images-DtbFINdz.js → images-F6slcZrB.js} +14 -20
  21. package/es/images-F6slcZrB.js.map +1 -0
  22. package/es/index.js +6 -4
  23. package/es/lib/svg-graphic.js +32 -0
  24. package/es/lib/svg-graphic.js.map +1 -0
  25. package/es/providers/shade-provider.js +1 -1
  26. package/package.json +1 -1
  27. package/styles.css +334 -0
  28. package/types/assets/images/index.d.ts +3 -2
  29. package/types/assets/images/index.d.ts.map +1 -1
  30. package/types/components/ui/icon.d.ts +2 -1
  31. package/types/components/ui/icon.d.ts.map +1 -1
  32. package/types/components/ui/list.d.ts +28 -0
  33. package/types/components/ui/list.d.ts.map +1 -0
  34. package/types/components/ui/row-primary-action.d.ts +8 -0
  35. package/types/components/ui/row-primary-action.d.ts.map +1 -0
  36. package/types/components/ui/row-surface.d.ts +11 -0
  37. package/types/components/ui/row-surface.d.ts.map +1 -0
  38. package/types/components/ui/sortable-list.d.ts.map +1 -1
  39. package/types/components/ui/table.d.ts +4 -1
  40. package/types/components/ui/table.d.ts.map +1 -1
  41. package/types/components.d.ts +3 -1
  42. package/types/components.d.ts.map +1 -1
  43. package/types/hooks/use-row-behavior.d.ts +24 -0
  44. package/types/hooks/use-row-behavior.d.ts.map +1 -0
  45. package/types/hooks/use-row-press.d.ts +11 -0
  46. package/types/hooks/use-row-press.d.ts.map +1 -0
  47. package/types/lib/svg-graphic.d.ts +22 -0
  48. package/types/lib/svg-graphic.d.ts.map +1 -0
  49. package/es/components/ui/action-list.js +0 -56
  50. package/es/components/ui/action-list.js.map +0 -1
  51. package/es/icon-BJcGsQ4b.js.map +0 -1
  52. package/es/images-DtbFINdz.js.map +0 -1
  53. package/types/components/ui/action-list.d.ts +0 -21
  54. package/types/components/ui/action-list.d.ts.map +0 -1
package/styles.css CHANGED
@@ -409,3 +409,337 @@ html.theme-switching *::after {
409
409
  > :first-child:is(.border-t) {
410
410
  border-top-width: 0;
411
411
  }
412
+
413
+ /* Shared content-row chrome. The recipe opts rows in explicitly; DataList,
414
+ menus and navigation do not use these classes. Keep this in the published
415
+ stylesheet so apps receive the same behavior without scanning Shade source. */
416
+ /* A responsive table can hide its trailing cells. Mark the visible end with
417
+ this utility (e.g. max-sm:shade-row-end) at the same breakpoint. */
418
+ @utility shade-row-end {
419
+ tr.shade-row > & {
420
+ padding-inline-end: 0;
421
+ }
422
+
423
+ tr.shade-row > &::before {
424
+ inset-inline-end: calc(-4 * var(--spacing));
425
+ border-start-end-radius: var(--radius-md);
426
+ border-end-end-radius: var(--radius-md);
427
+ }
428
+
429
+ tr.shade-row-inset > &::before {
430
+ inset-inline-end: 0;
431
+ }
432
+ }
433
+
434
+ .shade-row {
435
+ position: relative;
436
+ isolation: isolate;
437
+ background-color: transparent;
438
+ }
439
+
440
+ .shade-row::before,
441
+ tr.shade-row > :is(td, th)::before {
442
+ content: '';
443
+ display: block;
444
+ position: absolute;
445
+ inset: 0 calc(-4 * var(--spacing));
446
+ z-index: -1;
447
+ border-radius: var(--radius-md);
448
+ background-color: var(--table-row-hover);
449
+ opacity: 0;
450
+ pointer-events: none;
451
+ }
452
+
453
+ :is(
454
+ .shade-row-interactive,
455
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
456
+ )::before,
457
+ tr:is(
458
+ .shade-row-interactive,
459
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
460
+ )
461
+ > :is(td, th)::before {
462
+ /* Keep row targets subject to a modal's inherited pointer blocking. */
463
+ pointer-events: inherit;
464
+ }
465
+
466
+ /* A native primary link/button stretches over blank row space and the side
467
+ gutters. Its ancestors up to the row must be static; secondary controls sit
468
+ above the transparent overlay with relative positioning and z-10. */
469
+ .shade-row .shade-row-primary:not(.absolute, .fixed, .sticky) {
470
+ position: static;
471
+ }
472
+
473
+ .shade-row:is(.shade-row-interactive, .shade-row-auto)
474
+ .shade-row-primary:not(:disabled, [aria-disabled='true'])::after {
475
+ content: '';
476
+ display: block;
477
+ position: absolute;
478
+ inset: 0 calc(-4 * var(--spacing));
479
+ z-index: 1;
480
+ }
481
+
482
+ .shade-row.shade-row-inset::before,
483
+ .shade-row-inset .shade-row-primary::after {
484
+ inset-inline: 0;
485
+ }
486
+
487
+ .shade-row > [data-row-pinned] {
488
+ background-color: var(--background);
489
+ }
490
+
491
+ /* The cell spacing between columns stays intact; only the outside inset is
492
+ removed, including row headings used in the first column. */
493
+ .shade-row > :is(td, th):first-child {
494
+ padding-inline-start: 0;
495
+ }
496
+
497
+ .shade-row > :is(td, th):last-child {
498
+ padding-inline-end: 0;
499
+ }
500
+
501
+ /* Native table-row generated content becomes an anonymous column with a fixed
502
+ colgroup, even when absolutely positioned. Paint inside the real cells. */
503
+ tr.shade-row::before {
504
+ content: none;
505
+ }
506
+
507
+ tr.shade-row > :is(td, th)::before {
508
+ inset-inline: 0;
509
+ border-radius: 0;
510
+ }
511
+
512
+ tr.shade-row > :is(td, th):first-child::before {
513
+ inset-inline-start: calc(-4 * var(--spacing));
514
+ border-start-start-radius: var(--radius-md);
515
+ border-end-start-radius: var(--radius-md);
516
+ }
517
+
518
+ tr.shade-row > :is(td, th):last-child::before {
519
+ inset-inline-end: calc(-4 * var(--spacing));
520
+ border-start-end-radius: var(--radius-md);
521
+ border-end-end-radius: var(--radius-md);
522
+ }
523
+
524
+ tr.shade-row.shade-row-inset > :is(td, th)::before {
525
+ inset-inline: 0;
526
+ }
527
+
528
+ .shade-row:where(
529
+ :is([data-state='selected'], [data-selected='true']),
530
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
531
+ .shade-row-interactive,
532
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
533
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
534
+ )::before,
535
+ tr.shade-row:where(
536
+ :is([data-state='selected'], [data-selected='true']),
537
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
538
+ .shade-row-interactive,
539
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
540
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
541
+ )
542
+ > :is(td, th)::before {
543
+ opacity: 1;
544
+ }
545
+
546
+ .shade-row:where(
547
+ :is([data-state='selected'], [data-selected='true']),
548
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
549
+ .shade-row-interactive,
550
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
551
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
552
+ )
553
+ > [data-row-pinned] {
554
+ background-color: var(--table-row-hover);
555
+ }
556
+
557
+ .shade-row:where(
558
+ :is([data-state='selected'], [data-selected='true']),
559
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
560
+ .shade-row-interactive,
561
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
562
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
563
+ )
564
+ [data-row-pinned-fade='normal'] {
565
+ opacity: 0;
566
+ }
567
+
568
+ .shade-row:where(
569
+ :is([data-state='selected'], [data-selected='true']),
570
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
571
+ .shade-row-interactive,
572
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
573
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
574
+ )
575
+ [data-row-pinned-fade='highlight'] {
576
+ opacity: 1;
577
+ }
578
+
579
+ /* Keep previous-sibling eligibility flat: CSS forbids nesting :has().
580
+ Only body separators disappear; outer rules are preserved. */
581
+ .shade-row
582
+ + .shade-row:where(
583
+ :is([data-state='selected'], [data-selected='true']),
584
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
585
+ .shade-row-interactive,
586
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
587
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
588
+ ),
589
+ .shade-row:where(
590
+ :is([data-state='selected'], [data-selected='true']),
591
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
592
+ .shade-row-interactive,
593
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
594
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
595
+ )
596
+ + .shade-row {
597
+ border-top-color: transparent;
598
+ }
599
+
600
+ .shade-row:where(
601
+ :is([data-state='selected'], [data-selected='true']),
602
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
603
+ .shade-row-interactive,
604
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
605
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
606
+ ):has(+ .shade-row),
607
+ .shade-row:has(+ .shade-row:is([data-state='selected'], [data-selected='true'])),
608
+ .shade-row:has(
609
+ + .shade-row-interactive:not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
610
+ [data-row-pressed='true'],
611
+ :active,
612
+ :focus-visible
613
+ )
614
+ ),
615
+ .shade-row:has(
616
+ + .shade-row-interactive:not([data-row-dragging='true'], [data-row-dragging='true'] *)
617
+ :focus-visible
618
+ ),
619
+ .shade-row:has(
620
+ + .shade-row-auto:not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
621
+ [data-row-pressed='true'],
622
+ :active,
623
+ :focus-visible
624
+ )
625
+ ):has(+ .shade-row-auto .shade-row-primary:not(:disabled, [aria-disabled='true'])),
626
+ .shade-row:has(
627
+ + .shade-row-auto:not([data-row-dragging='true'], [data-row-dragging='true'] *) :focus-visible
628
+ ):has(+ .shade-row-auto .shade-row-primary:not(:disabled, [aria-disabled='true'])) {
629
+ border-bottom-color: transparent;
630
+ }
631
+
632
+ /* Avoid emulated, sticky :hover after a touch tap. The press hook covers touch. */
633
+ @media (hover: hover) {
634
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
635
+ :is(
636
+ .shade-row-interactive,
637
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
638
+ ):hover
639
+ )::before,
640
+ tr.shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
641
+ :is(
642
+ .shade-row-interactive,
643
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
644
+ ):hover
645
+ )
646
+ > :is(td, th)::before {
647
+ opacity: 1;
648
+ }
649
+
650
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
651
+ :is(
652
+ .shade-row-interactive,
653
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
654
+ ):hover
655
+ )
656
+ > [data-row-pinned] {
657
+ background-color: var(--table-row-hover);
658
+ }
659
+
660
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
661
+ :is(
662
+ .shade-row-interactive,
663
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
664
+ ):hover
665
+ )
666
+ [data-row-pinned-fade='normal'] {
667
+ opacity: 0;
668
+ }
669
+
670
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
671
+ :is(
672
+ .shade-row-interactive,
673
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
674
+ ):hover
675
+ )
676
+ [data-row-pinned-fade='highlight'] {
677
+ opacity: 1;
678
+ }
679
+
680
+ /* Only separators shared by body rows disappear; outer rules are preserved. */
681
+ .shade-row
682
+ + .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
683
+ :is(
684
+ .shade-row-interactive,
685
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
686
+ ):hover
687
+ ),
688
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
689
+ :is(
690
+ .shade-row-interactive,
691
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
692
+ ):hover
693
+ )
694
+ + .shade-row {
695
+ border-top-color: transparent;
696
+ }
697
+
698
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
699
+ :is(
700
+ .shade-row-interactive,
701
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
702
+ ):hover
703
+ ):has(+ .shade-row),
704
+ .shade-row:has(
705
+ + .shade-row-interactive:not([data-row-dragging='true'], [data-row-dragging='true'] *):hover
706
+ ),
707
+ .shade-row:has(
708
+ + .shade-row-auto:not([data-row-dragging='true'], [data-row-dragging='true'] *):hover
709
+ ):has(+ .shade-row-auto .shade-row-primary:not(:disabled, [aria-disabled='true'])) {
710
+ border-bottom-color: transparent;
711
+ }
712
+ }
713
+
714
+ /* Selection wins over hover and keyboard/press fills without merging adjacent
715
+ rows or changing the focused control's own ring. */
716
+ .shade-row:is([data-state='selected'], [data-selected='true'])::before,
717
+ tr.shade-row:is([data-state='selected'], [data-selected='true']) > :is(td, th)::before,
718
+ .shade-row:is([data-state='selected'], [data-selected='true']) > [data-row-pinned] {
719
+ background-color: var(--table-row-selected);
720
+ }
721
+
722
+ :is(
723
+ .shade-row-interactive,
724
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
725
+ ) {
726
+ cursor: pointer;
727
+ }
728
+
729
+ .shade-row [data-row-secondary] {
730
+ position: relative;
731
+ z-index: 10;
732
+ }
733
+
734
+ /* Explicit positioning utilities take precedence over these control defaults. */
735
+ @layer base {
736
+ .shade-row:is(.shade-row-interactive, .shade-row-auto):has(
737
+ .shade-row-primary:not(:disabled, [aria-disabled='true'])
738
+ )
739
+ :is(a, button, input, select, textarea, label, [role='checkbox'], [role='button']):not(
740
+ .shade-row-primary
741
+ ) {
742
+ position: relative;
743
+ z-index: 10;
744
+ }
745
+ }
@@ -1,5 +1,6 @@
1
- import type { FunctionComponent, SVGProps } from 'react';
2
- type Logo = FunctionComponent<SVGProps<SVGSVGElement>>;
1
+ import type { FunctionComponent } from 'react';
2
+ import { type SvgGraphicProps } from '../../lib/svg-graphic.js';
3
+ type Logo = FunctionComponent<SvgGraphicProps>;
3
4
  export declare const FacebookLogo: Logo;
4
5
  export declare const GhostLogo: Logo;
5
6
  export declare const GhostOrb: Logo;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/images/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AASzD,KAAK,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAEvD,eAAO,MAAM,YAAY,EAAE,IAAsB,CAAC;AAClD,eAAO,MAAM,SAAS,EAAE,IAAmB,CAAC;AAC5C,eAAO,MAAM,QAAQ,EAAE,IAAkB,CAAC;AAC1C,eAAO,MAAM,UAAU,EAAE,IAAoB,CAAC;AAC9C,eAAO,MAAM,KAAK,EAAE,IAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/images/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AASrE,KAAK,IAAI,GAAG,iBAAiB,CAAC,eAAe,CAAC,CAAC;AAI/C,eAAO,MAAM,YAAY,EAAE,IAAkD,CAAC;AAC9E,eAAO,MAAM,SAAS,EAAE,IAA4C,CAAC;AACrE,eAAO,MAAM,QAAQ,EAAE,IAA0C,CAAC;AAClE,eAAO,MAAM,UAAU,EAAE,IAA8C,CAAC;AACxE,eAAO,MAAM,KAAK,EAAE,IAAoC,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
+ import { type SvgGraphicProps } from '../../lib/svg-graphic.js';
3
4
  declare const iconVariants: (props?: ({
4
5
  size?: "lg" | "md" | "sm" | "xl" | null | undefined;
5
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- interface IconProps extends React.SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
7
+ interface IconProps extends SvgGraphicProps, VariantProps<typeof iconVariants> {
7
8
  className?: string;
8
9
  }
9
10
  declare const Icon: Record<string, React.FC<IconProps>>;
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/ui/icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,YAAY;;8EAYhB,CAAC;AAEH,UAAU,SAAU,SAAQ,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,QAAA,MAAM,IAAI,qCAoBT,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,IAAI,CAAC;AAEzC,eAAO,MAAM,cAAc,qCAAO,CAAC;eACpB,IAAI"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/ui/icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG1E,QAAA,MAAM,YAAY;;8EAYhB,CAAC;AAIH,UAAU,SAAU,SAAQ,eAAe,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD,QAAA,MAAM,IAAI,qCAoBT,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,IAAI,CAAC;AAEzC,eAAO,MAAM,cAAc,qCAAO,CAAC;eACpB,IAAI"}
@@ -0,0 +1,28 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const List: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ interface ListItemProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ asChild?: boolean;
6
+ hover?: boolean | null;
7
+ }
8
+ declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLDivElement>>;
9
+ interface ListItemContentProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ asChild?: boolean;
11
+ }
12
+ declare const ListItemContent: React.ForwardRefExoticComponent<ListItemContentProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const listItemActionsVariants: (props?: ({
14
+ visibility?: "always" | "hover" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ interface ListItemActionsProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof listItemActionsVariants> {
17
+ }
18
+ declare const ListItemActions: React.ForwardRefExoticComponent<ListItemActionsProps & React.RefAttributes<HTMLDivElement>>;
19
+ /** @deprecated Use List instead. */
20
+ declare const ActionList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
21
+ /** @deprecated Use ListItem instead. */
22
+ declare const ActionListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLDivElement>>;
23
+ /** @deprecated Use ListItemActions instead. */
24
+ declare const ActionListItemActions: React.ForwardRefExoticComponent<ListItemActionsProps & React.RefAttributes<HTMLDivElement>>;
25
+ /** @deprecated Use ListItemContent instead. */
26
+ declare const ActionListItemContent: React.ForwardRefExoticComponent<ListItemContentProps & React.RefAttributes<HTMLDivElement>>;
27
+ export { List, ListItem, ListItemActions, ListItemContent, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, };
28
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,IAAI,6GAIT,CAAC;AAGF,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;AAaD,QAAA,MAAM,QAAQ,sFAgDb,CAAC;AAGF,UAAU,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,eAAe,6FA6CpB,CAAC;AAGF,QAAA,MAAM,uBAAuB;;8EAc5B,CAAC;AAEF,UAAU,oBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,uBAAuB,CAAC;CAAG;AAE/F,QAAA,MAAM,eAAe,6FAUpB,CAAC;AAGF,oCAAoC;AACpC,QAAA,MAAM,UAAU,6GAAO,CAAC;AACxB,wCAAwC;AACxC,QAAA,MAAM,cAAc,sFAAW,CAAC;AAChC,+CAA+C;AAC/C,QAAA,MAAM,qBAAqB,6FAAkB,CAAC;AAC9C,+CAA+C;AAC/C,QAAA,MAAM,qBAAqB,6FAAkB,CAAC;AAE9C,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,eAAe,EACf,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ interface RowPrimaryActionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ asChild?: boolean;
4
+ }
5
+ /** Makes the whole row activate its main link or button. */
6
+ declare const RowPrimaryAction: React.ForwardRefExoticComponent<RowPrimaryActionProps & React.RefAttributes<HTMLButtonElement>>;
7
+ export { RowPrimaryAction, RowPrimaryAction as TableRowAction };
8
+ //# sourceMappingURL=row-primary-action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-primary-action.d.ts","sourceRoot":"","sources":["../../../src/components/ui/row-primary-action.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,qBAAsB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACnF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,4DAA4D;AAC5D,QAAA,MAAM,gBAAgB,iGA0DrB,CAAC;AAGF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /** Background and spacing classes for custom list and table rows. */
2
+ export declare const rowSurfaceClasses: {
3
+ readonly base: 'shade-row';
4
+ readonly interactive: 'shade-row-interactive';
5
+ readonly auto: 'shade-row-auto';
6
+ readonly inset: 'shade-row-inset';
7
+ readonly end: 'shade-row-end';
8
+ readonly primaryAction: 'shade-row-primary';
9
+ };
10
+ export declare function rowSurface(mode?: 'interactive' | 'static' | 'auto'): string;
11
+ //# sourceMappingURL=row-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-surface.d.ts","sourceRoot":"","sources":["../../../src/components/ui/row-surface.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,eAAO,MAAM,iBAAiB;aAC5B,IAAI,EAAE,WAAW;aACjB,WAAW,EAAE,uBAAuB;aACpC,IAAI,EAAE,gBAAgB;aACtB,KAAK,EAAE,iBAAiB;aACxB,GAAG,EAAE,eAAe;aACpB,aAAa,EAAE,mBAAmB;CAC1B,CAAC;AAEX,wBAAgB,UAAU,CAAC,IAAI,GAAE,aAAa,GAAG,QAAQ,GAAG,MAAsB,UAMjF"}
@@ -1 +1 @@
1
- {"version":3,"file":"sortable-list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sortable-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAEjC,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,cAAc,EACnB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,CAAC,EAAE,mBAAmB,CAAC;IAC3C,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;IAClD,eAAe,CAAC,EAAE,MAA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B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC;IAC7D,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;CAClD;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,IAAI,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,wLAerD,iBAAiB,CAAC,IAAI,CAAC,uCAqEzB,CAAC"}
@@ -5,7 +5,10 @@ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTa
5
5
  declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
6
  declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
7
7
  declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
8
- declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
8
+ interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
9
+ interactive?: boolean;
10
+ }
11
+ declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
9
12
  declare const headVariants: (props?: ({
10
13
  variant?: "cardhead" | "default" | null | undefined;
11
14
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,QAAA,MAAM,KAAK,iHAMV,CAAC;AAGF,QAAA,MAAM,WAAW,+HAKf,CAAC;AAGH,QAAA,MAAM,SAAS,+HAGkF,CAAC;AAGlG,QAAA,MAAM,WAAW,+HASf,CAAC;AAGH,QAAA,MAAM,QAAQ,uHAQb,CAAC;AAGF,QAAA,MAAM,YAAY;;8EAWhB,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IACvF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,SAAS,6FAId,CAAC;AAGF,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAUnD,CAAC;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAC;AAGH,QAAA,MAAM,YAAY,+HAKhB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,eAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,QAAA,MAAM,KAAK,iHAMV,CAAC;AAGF,QAAA,MAAM,WAAW,+HAGwE,CAAC;AAG1F,QAAA,MAAM,SAAS,+HAGkF,CAAC;AAGlG,QAAA,MAAM,WAAW,+HASf,CAAC;AAGH,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,QAAQ,2FAkBb,CAAC;AAGF,QAAA,MAAM,YAAY;;8EAWhB,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IACvF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,SAAS,6FAId,CAAC;AAGF,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAUnD,CAAC;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAC;AAGH,QAAA,MAAM,YAAY,+HAKhB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,eAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
@@ -1,6 +1,5 @@
1
1
  export * from './components/ui/accordion';
2
2
  export * from './components/ui/alert-dialog';
3
- export * from './components/ui/action-list';
4
3
  export * from './components/ui/animated-number';
5
4
  export * from './components/ui/avatar';
6
5
  export * from './components/ui/badge';
@@ -42,6 +41,7 @@ export * from './components/ui/input-group';
42
41
  export * from './components/ui/input-group-variants';
43
42
  export * from './components/ui/kbd';
44
43
  export * from './components/ui/label';
44
+ export * from './components/ui/list';
45
45
  export * from './components/ui/link';
46
46
  export * from './components/ui/loading-indicator';
47
47
  export * from './components/ui/multi-select-combobox';
@@ -67,6 +67,7 @@ export * from './components/ui/input-surface';
67
67
  export * from './components/ui/sticky-footer';
68
68
  export * from './components/ui/switch';
69
69
  export * from './components/ui/table';
70
+ export { rowSurface, rowSurfaceClasses } from './components/ui/row-surface';
70
71
  export * from './components/ui/tabs';
71
72
  export * from './components/ui/tabs-variants';
72
73
  export * from './components/ui/textarea';
@@ -79,4 +80,5 @@ export { IconComponents as Icon } from './components/ui/icon';
79
80
  export { FacebookLogo, GhostLogo, GhostOrb, GoogleLogo, XLogo } from './assets/images';
80
81
  export { TimePicker, type TimePickerProps } from './components/ui/time-picker';
81
82
  export { tokenFieldClasses } from './components/ui/token-field';
83
+ export { RowPrimaryAction, TableRowAction } from './components/ui/row-primary-action';
82
84
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AAExC,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,MAAM,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAA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,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AAExC,YAAY,EAAE,6BAA6B,IAAI,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACpH,YAAY,EAAE,4BAA4B,IAAI,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAEjH,OAAO,EAAE,cAAc,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEvF,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type HTMLAttributes, type MouseEvent } from 'react';
2
+ /** Sends clicks on empty row space to its main link or button. */
3
+ export declare function useRowBehavior<Element extends HTMLElement>(props: HTMLAttributes<Element>, interactive?: boolean): {
4
+ 'data-row-pressed'?: undefined;
5
+ onPointerDown?: undefined;
6
+ onPointerMove?: undefined;
7
+ onPointerUp?: undefined;
8
+ onPointerCancel?: undefined;
9
+ onPointerLeave?: undefined;
10
+ onClickCapture?: undefined;
11
+ onClick?: undefined;
12
+ onAuxClick?: undefined;
13
+ } | {
14
+ 'data-row-pressed': string | undefined;
15
+ onPointerDown(event: React.PointerEvent<Element>): void;
16
+ onPointerMove(event: React.PointerEvent<Element>): void;
17
+ onPointerUp(event: React.PointerEvent<Element>): void;
18
+ onPointerCancel(event: React.PointerEvent<Element>): void;
19
+ onPointerLeave(event: React.PointerEvent<Element>): void;
20
+ onClickCapture(event: MouseEvent<Element>): void;
21
+ onClick(event: MouseEvent<Element>): void;
22
+ onAuxClick(event: MouseEvent<Element>): void;
23
+ };
24
+ //# sourceMappingURL=use-row-behavior.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-row-behavior.d.ts","sourceRoot":"","sources":["../../src/hooks/use-row-behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAYrE,kEAAkE;AAClE,wBAAgB,cAAc,CAAC,OAAO,SAAS,WAAW,EACxD,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,EAC9B,WAAW,CAAC,EAAE,OAAO;;;;;;;;;;;;yBAwBE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;yBAU3B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;uBAI7B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;2BAIvB,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;0BAI5B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;0BAI3B,UAAU,CAAC,OAAO,CAAC;mBAK1B,UAAU,CAAC,OAAO,CAAC;sBAsChB,UAAU,CAAC,OAAO,CAAC;EA6BxC"}
@@ -0,0 +1,11 @@
1
+ import { type HTMLAttributes, type PointerEvent } from 'react';
2
+ /** Touch feedback for a row, without capturing pointers or blocking scrolling. */
3
+ export declare function useRowPress<Element extends HTMLElement>(props?: HTMLAttributes<Element>, enabled?: boolean): {
4
+ 'data-row-pressed': string | undefined;
5
+ onPointerDown(event: PointerEvent<Element>): void;
6
+ onPointerMove(event: PointerEvent<Element>): void;
7
+ onPointerUp(event: PointerEvent<Element>): void;
8
+ onPointerCancel(event: PointerEvent<Element>): void;
9
+ onPointerLeave(event: PointerEvent<Element>): void;
10
+ };
11
+ //# sourceMappingURL=use-row-press.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-row-press.d.ts","sourceRoot":"","sources":["../../src/hooks/use-row-press.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5F,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,OAAO,SAAS,WAAW,EACrD,KAAK,GAAE,cAAc,CAAC,OAAO,CAAM,EACnC,OAAO,UAAO;;yBA4BS,YAAY,CAAC,OAAO,CAAC;yBAarB,YAAY,CAAC,OAAO,CAAC;uBAUvB,YAAY,CAAC,OAAO,CAAC;2BAIjB,YAAY,CAAC,OAAO,CAAC;0BAItB,YAAY,CAAC,OAAO,CAAC;EAK9C"}
@@ -0,0 +1,22 @@
1
+ import { type FunctionComponent, type SVGProps } from 'react';
2
+ export interface SvgGraphicProps extends SVGProps<SVGSVGElement> {
3
+ /**
4
+ * Names the graphic for screen readers. It sets `aria-label`, and doesn't
5
+ * render a tooltip or an SVG `<title>`. Without a `title`, `aria-label` or
6
+ * `aria-labelledby`, the graphic is decorative and hidden from them. A
7
+ * non-blank `aria-label` takes precedence over `title`, and an explicit
8
+ * `aria-hidden` from the caller always wins.
9
+ */
10
+ title?: string | undefined;
11
+ }
12
+ /**
13
+ * Applies Shade's rule for SVG logos and icons: decorative by default, and an
14
+ * image with a name when the caller gives one. Callers can still override
15
+ * `aria-hidden` and `role`; a prop passed as `undefined` keeps the default.
16
+ *
17
+ * This lives in code rather than SVGR options because Admin and other apps
18
+ * compile Shade's source with their own SVGR config.
19
+ */
20
+ export declare function svgGraphicProps({ title, ...props }: SvgGraphicProps): SVGProps<SVGSVGElement>;
21
+ export declare function svgGraphic(Svg: FunctionComponent<SVGProps<SVGSVGElement>>, displayName: string): FunctionComponent<SvgGraphicProps>;
22
+ //# sourceMappingURL=svg-graphic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg-graphic.d.ts","sourceRoot":"","sources":["../../src/lib/svg-graphic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7E,MAAM,WAAW,eAAgB,SAAQ,QAAQ,CAAC,aAAa,CAAC;IAC9D;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAID;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,CAQ7F;AAED,wBAAgB,UAAU,CACxB,GAAG,EAAE,iBAAiB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,EAC/C,WAAW,EAAE,MAAM,GAClB,iBAAiB,CAAC,eAAe,CAAC,CAIpC"}
@@ -1,56 +0,0 @@
1
- import { cn } from "../../lib/ds-utils.js";
2
- import * as React$1 from "react";
3
- import { jsx } from "react/jsx-runtime";
4
- import { cva } from "class-variance-authority";
5
- import { Slot } from "@radix-ui/react-slot";
6
- //#region src/components/ui/action-list.tsx
7
- var actionListItemVariants = cva("group/action-list-item relative flex min-w-0 items-stretch border-b border-border last:border-b-transparent", {
8
- variants: { hover: {
9
- true: "before:pointer-events-none before:absolute before:-inset-x-4 before:inset-y-0 before:z-0 before:rounded-md before:bg-table-row-hover before:opacity-0 before:transition-opacity hover:border-b-transparent hover:before:opacity-100",
10
- false: ""
11
- } },
12
- defaultVariants: { hover: true }
13
- });
14
- var ActionList = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
15
- ref,
16
- className: cn("flex flex-col", className),
17
- ...props
18
- }));
19
- ActionList.displayName = "ActionList";
20
- var ActionListItem = React$1.forwardRef(({ className, hover, ...props }, ref) => /* @__PURE__ */ jsx("div", {
21
- ref,
22
- className: cn(actionListItemVariants({
23
- hover,
24
- className
25
- })),
26
- ...props
27
- }));
28
- ActionListItem.displayName = "ActionListItem";
29
- var ActionListItemContent = React$1.forwardRef(({ asChild = false, className, ...props }, ref) => {
30
- return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
31
- ref,
32
- className: cn("relative z-10 min-w-0 grow", className),
33
- ...props
34
- });
35
- });
36
- ActionListItemContent.displayName = "ActionListItemContent";
37
- var actionListItemActionsVariants = cva("relative z-10 flex shrink-0 items-center py-3 pl-2", {
38
- variants: { visibility: {
39
- always: "",
40
- hover: "md:opacity-0 md:transition-opacity md:group-focus-within/action-list-item:opacity-100 md:group-hover/action-list-item:opacity-100"
41
- } },
42
- defaultVariants: { visibility: "always" }
43
- });
44
- var ActionListItemActions = React$1.forwardRef(({ className, visibility, ...props }, ref) => /* @__PURE__ */ jsx("div", {
45
- ref,
46
- className: cn(actionListItemActionsVariants({
47
- visibility,
48
- className
49
- })),
50
- ...props
51
- }));
52
- ActionListItemActions.displayName = "ActionListItemActions";
53
- //#endregion
54
- export { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent };
55
-
56
- //# sourceMappingURL=action-list.js.map