tandd-ui 0.2.4 → 0.2.7

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/dist/tandd-ui.css CHANGED
@@ -4900,6 +4900,11 @@ select):focus {
4900
4900
  border-color: var(--dt-color-danger);
4901
4901
  }
4902
4902
 
4903
+ .dt-select.is-invalid:is(.dt-select--soft, .dt-select--filled) .dt-select__trigger:focus-visible,
4904
+ .dt-select.is-invalid:is(.dt-select--soft, .dt-select--filled).is-open .dt-select__trigger {
4905
+ box-shadow: inset 0 0 0 1px var(--dt-color-danger);
4906
+ }
4907
+
4903
4908
  .dt-select__helper {
4904
4909
  color: var(--dt-color-text-subtle);
4905
4910
  font-size: 12px;
@@ -5572,6 +5577,34 @@ select):focus {
5572
5577
  --dt-toast-on: var(--dt-color-danger-on);
5573
5578
  }
5574
5579
 
5580
+ .dt-toast--sm:not(.dt-toast--raised) {
5581
+ gap: var(--dt-space-2);
5582
+ padding: var(--dt-space-2) var(--dt-space-3);
5583
+ }
5584
+ .dt-toast--sm:not(.dt-toast--raised) .dt-toast__icon {
5585
+ font-size: 16px;
5586
+ }
5587
+ .dt-toast--sm:not(.dt-toast--raised) .dt-toast__title {
5588
+ font-size: var(--dt-font-size-xs);
5589
+ }
5590
+ .dt-toast--sm:not(.dt-toast--raised) .dt-toast__text {
5591
+ font-size: var(--dt-font-size-2xs);
5592
+ }
5593
+
5594
+ .dt-toast--lg:not(.dt-toast--raised) {
5595
+ gap: var(--dt-space-4);
5596
+ padding: var(--dt-space-4) var(--dt-space-5);
5597
+ }
5598
+ .dt-toast--lg:not(.dt-toast--raised) .dt-toast__icon {
5599
+ font-size: 22px;
5600
+ }
5601
+ .dt-toast--lg:not(.dt-toast--raised) .dt-toast__title {
5602
+ font-size: var(--dt-font-size-md);
5603
+ }
5604
+ .dt-toast--lg:not(.dt-toast--raised) .dt-toast__text {
5605
+ font-size: var(--dt-font-size-sm);
5606
+ }
5607
+
5575
5608
  .dt-toast--outlined {
5576
5609
  border-color: var(--dt-toast-tone);
5577
5610
  border-left-width: 1px;
@@ -5606,6 +5639,168 @@ select):focus {
5606
5639
  background: var(--dt-toast-on);
5607
5640
  }
5608
5641
 
5642
+ .dt-toast--raised {
5643
+ --dt-toast-from: #47965c;
5644
+ --dt-toast-to: #5aaf74;
5645
+ --dt-toast-orb: rgba(255, 255, 255, 0.13);
5646
+ --dt-focus-ring-color: #ffffff;
5647
+ --dt-toast-raised-pad: 12px 14px 12px 12px;
5648
+ --dt-toast-raised-gap: 14px;
5649
+ --dt-toast-raised-radius: 12px;
5650
+ --dt-toast-raised-tile: 36px;
5651
+ --dt-toast-raised-tile-radius: 10px;
5652
+ --dt-toast-raised-mark: 18px;
5653
+ --dt-toast-raised-title: 14px;
5654
+ --dt-toast-raised-text: 13px;
5655
+ --dt-toast-raised-close: 28px;
5656
+ --dt-toast-raised-orb-small: 21px;
5657
+ --dt-toast-raised-orb-large: 72px;
5658
+ isolation: isolate;
5659
+ align-items: center;
5660
+ gap: var(--dt-toast-raised-gap);
5661
+ padding: var(--dt-toast-raised-pad);
5662
+ border: 0;
5663
+ border-radius: var(--dt-toast-raised-radius);
5664
+ color: #ffffff;
5665
+ background: linear-gradient(90deg, var(--dt-toast-from), var(--dt-toast-to));
5666
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 6px 14px -4px rgba(0, 0, 0, 0.28), 0 2px 4px rgba(0, 0, 0, 0.12);
5667
+ }
5668
+ .dt-toast--raised .dt-toast__content {
5669
+ position: relative;
5670
+ }
5671
+ .dt-toast--raised .dt-toast__title {
5672
+ font-size: var(--dt-toast-raised-title);
5673
+ font-weight: 700;
5674
+ line-height: 1.3;
5675
+ }
5676
+ .dt-toast--raised .dt-toast__text {
5677
+ margin-top: 2px;
5678
+ color: #ffffff;
5679
+ font-size: var(--dt-toast-raised-text);
5680
+ line-height: 1.35;
5681
+ }
5682
+ .dt-toast--raised .dt-toast__icon {
5683
+ margin: 0;
5684
+ color: #ffffff;
5685
+ font-size: var(--dt-toast-raised-mark);
5686
+ }
5687
+ .dt-toast--raised .dt-toast__spinner {
5688
+ width: var(--dt-toast-raised-mark);
5689
+ height: var(--dt-toast-raised-mark);
5690
+ margin: calc((var(--dt-toast-raised-tile) - var(--dt-toast-raised-mark)) / 2);
5691
+ }
5692
+ .dt-toast--raised .dt-toast__action {
5693
+ position: relative;
5694
+ color: #ffffff;
5695
+ text-decoration: underline;
5696
+ }
5697
+ .dt-toast--raised .dt-toast__action:hover {
5698
+ background: rgba(255, 255, 255, 0.16);
5699
+ }
5700
+ .dt-toast--raised .dt-toast__close {
5701
+ position: relative;
5702
+ width: var(--dt-toast-raised-close);
5703
+ height: var(--dt-toast-raised-close);
5704
+ margin: 0;
5705
+ border-radius: 50%;
5706
+ color: #ffffff;
5707
+ background: rgba(255, 255, 255, 0.18);
5708
+ --dt-icon-stroke: 2.75;
5709
+ }
5710
+ .dt-toast--raised .dt-toast__close:hover {
5711
+ color: #ffffff;
5712
+ background: rgba(255, 255, 255, 0.3);
5713
+ }
5714
+ .dt-toast--raised .dt-toast__action:focus-visible,
5715
+ .dt-toast--raised .dt-toast__close:focus-visible {
5716
+ box-shadow: 0 0 0 2px #ffffff;
5717
+ }
5718
+ .dt-toast--raised .dt-toast__progress {
5719
+ background: #ffffff;
5720
+ opacity: 0.55;
5721
+ }
5722
+
5723
+ .dt-toast--raised.dt-toast--info {
5724
+ --dt-toast-from: #3457cd;
5725
+ --dt-toast-to: #4976e8;
5726
+ }
5727
+
5728
+ .dt-toast--raised.dt-toast--warning {
5729
+ --dt-toast-from: #b27027;
5730
+ --dt-toast-to: #d69838;
5731
+ }
5732
+
5733
+ .dt-toast--raised.dt-toast--sm {
5734
+ --dt-toast-raised-pad: 8px 10px 8px 8px;
5735
+ --dt-toast-raised-gap: 10px;
5736
+ --dt-toast-raised-radius: 10px;
5737
+ --dt-toast-raised-tile: 28px;
5738
+ --dt-toast-raised-tile-radius: 8px;
5739
+ --dt-toast-raised-mark: 14px;
5740
+ --dt-toast-raised-title: 13px;
5741
+ --dt-toast-raised-text: 12px;
5742
+ --dt-toast-raised-close: 24px;
5743
+ --dt-toast-raised-orb-small: 16px;
5744
+ --dt-toast-raised-orb-large: 54px;
5745
+ }
5746
+
5747
+ .dt-toast--raised.dt-toast--lg {
5748
+ --dt-toast-raised-pad: 16px 18px 16px 16px;
5749
+ --dt-toast-raised-gap: 18px;
5750
+ --dt-toast-raised-radius: 14px;
5751
+ --dt-toast-raised-tile: 46px;
5752
+ --dt-toast-raised-tile-radius: 12px;
5753
+ --dt-toast-raised-mark: 22px;
5754
+ --dt-toast-raised-title: 16px;
5755
+ --dt-toast-raised-text: 15px;
5756
+ --dt-toast-raised-close: 32px;
5757
+ --dt-toast-raised-orb-small: 27px;
5758
+ --dt-toast-raised-orb-large: 92px;
5759
+ }
5760
+
5761
+ .dt-toast--raised.dt-toast--danger {
5762
+ --dt-toast-from: #c93a4d;
5763
+ --dt-toast-to: #e5586b;
5764
+ }
5765
+
5766
+ .dt-toast__tile {
5767
+ position: relative;
5768
+ display: grid;
5769
+ flex: none;
5770
+ place-items: center;
5771
+ width: var(--dt-toast-raised-tile, 46px);
5772
+ height: var(--dt-toast-raised-tile, 46px);
5773
+ border-radius: var(--dt-toast-raised-tile-radius, 12px);
5774
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18));
5775
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 8px rgba(0, 0, 0, 0.18);
5776
+ }
5777
+
5778
+ .dt-toast__glyph {
5779
+ width: var(--dt-toast-raised-mark, 22px);
5780
+ height: var(--dt-toast-raised-mark, 22px);
5781
+ fill: none;
5782
+ stroke: currentColor;
5783
+ stroke-width: 3;
5784
+ stroke-linecap: round;
5785
+ stroke-linejoin: round;
5786
+ }
5787
+
5788
+ .dt-toast__orbs {
5789
+ position: absolute;
5790
+ z-index: -1;
5791
+ inset: 0;
5792
+ pointer-events: none;
5793
+ background: radial-gradient(circle at calc(100% - 4 * var(--dt-toast-raised-orb-small)) 2px, var(--dt-toast-orb) 0 var(--dt-toast-raised-orb-small), transparent calc(var(--dt-toast-raised-orb-small) + 0.5px)), radial-gradient(circle at calc(100% + 10px) calc(100% + 16px), var(--dt-toast-orb) 0 var(--dt-toast-raised-orb-large), transparent calc(var(--dt-toast-raised-orb-large) + 0.5px));
5794
+ }
5795
+
5796
+ @media (forced-colors: active) {
5797
+ .dt-toast--raised {
5798
+ border: 1px solid CanvasText;
5799
+ }
5800
+ .dt-toast__tile {
5801
+ border: 1px solid CanvasText;
5802
+ }
5803
+ }
5609
5804
  @keyframes dt-toast-in {
5610
5805
  from {
5611
5806
  opacity: 0;
@@ -6186,6 +6381,70 @@ select):focus {
6186
6381
  font-weight: var(--dt-font-weight-semibold);
6187
6382
  }
6188
6383
 
6384
+ .dt-list-group {
6385
+ --dt-list-group-indent: calc(var(--dt-list-pad-x) + 16px + var(--dt-list-gap) - var(--dt-list-pad-x));
6386
+ }
6387
+
6388
+ .dt-list-group__header {
6389
+ width: 100%;
6390
+ cursor: pointer;
6391
+ }
6392
+
6393
+ .dt-list-group__chevron .dt-icon {
6394
+ transition: transform var(--dt-duration-slow) var(--dt-ease-standard);
6395
+ transform: perspective(100px) rotateX(0deg);
6396
+ }
6397
+
6398
+ .dt-list-group__header[aria-expanded=true] .dt-list-group__chevron .dt-icon {
6399
+ transform: perspective(100px) rotateX(180deg);
6400
+ }
6401
+
6402
+ .dt-list-group__header.is-active-parent {
6403
+ color: var(--dt-color-primary);
6404
+ }
6405
+
6406
+ .dt-list-group__header.is-active-parent .dt-list-item__prepend {
6407
+ color: inherit;
6408
+ }
6409
+
6410
+ .dt-list-group__panel {
6411
+ display: grid;
6412
+ grid-template-rows: 0fr;
6413
+ visibility: hidden;
6414
+ transition: grid-template-rows var(--dt-duration-base) var(--dt-ease-emphasized), visibility 0s linear var(--dt-duration-base);
6415
+ }
6416
+
6417
+ .dt-list-group.is-open > .dt-list-group__panel {
6418
+ grid-template-rows: 1fr;
6419
+ visibility: visible;
6420
+ transition: grid-template-rows var(--dt-duration-base) var(--dt-ease-emphasized), visibility 0s;
6421
+ }
6422
+
6423
+ .dt-list-group__items {
6424
+ display: flex;
6425
+ flex-direction: column;
6426
+ min-height: 0;
6427
+ margin: 0;
6428
+ padding: 0;
6429
+ padding-inline-start: var(--dt-list-group-indent);
6430
+ overflow: hidden;
6431
+ list-style: none;
6432
+ }
6433
+
6434
+ .dt-list--nav .dt-list-group__items {
6435
+ gap: 2px;
6436
+ }
6437
+
6438
+ .dt-list--nav .dt-list-group.is-open > .dt-list-group__panel > .dt-list-group__items {
6439
+ padding-block-start: 2px;
6440
+ }
6441
+
6442
+ @media (prefers-reduced-motion: reduce) {
6443
+ .dt-list-group__panel,
6444
+ .dt-list-group__chevron .dt-icon {
6445
+ transition: none;
6446
+ }
6447
+ }
6189
6448
  .dt-list--selectable {
6190
6449
  outline: none;
6191
6450
  }
@@ -8492,6 +8751,10 @@ button.dt-stepper__header[aria-disabled=true] {
8492
8751
  padding-inline-start: 12px;
8493
8752
  }
8494
8753
 
8754
+ .dt-navigation-drawer__inner .dt-list--nav .dt-list-group__header {
8755
+ width: calc(100% - 2 * var(--dt-drawer-row-inset));
8756
+ }
8757
+
8495
8758
  .dt-navigation-drawer__prepend > :not(.dt-list-nav),
8496
8759
  .dt-navigation-drawer__append > :not(.dt-list-nav) {
8497
8760
  align-self: flex-start;
@@ -8551,6 +8814,15 @@ button.dt-stepper__header[aria-disabled=true] {
8551
8814
  white-space: nowrap;
8552
8815
  }
8553
8816
 
8817
+ .dt-navigation-drawer.is-rail:not(.is-expanded) .dt-list-group__panel,
8818
+ .dt-navigation-drawer.is-rail:not(.is-expanded) .dt-list-group__chevron {
8819
+ display: none;
8820
+ }
8821
+
8822
+ .dt-navigation-drawer.is-rail:not(.is-expanded) .dt-list-group__header.is-active-parent {
8823
+ background: var(--dt-color-primary-subtle);
8824
+ }
8825
+
8554
8826
  .dt-navigation-drawer.is-rail:not(.is-expanded) .dt-list-subheader {
8555
8827
  visibility: hidden;
8556
8828
  height: 0;
@@ -8576,6 +8848,65 @@ button.dt-stepper__header[aria-disabled=true] {
8576
8848
  inset-inline: auto 0;
8577
8849
  }
8578
8850
 
8851
+ .dt-navigation-drawer.is-rail:not(.expand-on-hover) .dt-list--nav .dt-list-item__prepend :is(.dt-icon, .dt-avatar):not(.dt-badge-marker *) {
8852
+ transform: scale(var(--dt-rail-zoom, 1));
8853
+ transform-origin: center;
8854
+ }
8855
+
8856
+ .dt-navigation-drawer__inner {
8857
+ position: relative;
8858
+ }
8859
+
8860
+ .dt-navigation-drawer__glide {
8861
+ position: absolute;
8862
+ top: 0;
8863
+ left: 0;
8864
+ pointer-events: none;
8865
+ background: var(--dt-color-surface-hover);
8866
+ opacity: 0;
8867
+ transition: transform var(--dt-duration-base) var(--dt-ease-emphasized), width var(--dt-duration-base) var(--dt-ease-emphasized), height var(--dt-duration-base) var(--dt-ease-emphasized), opacity var(--dt-duration-fast) var(--dt-ease-standard);
8868
+ }
8869
+
8870
+ .dt-navigation-drawer__glide.is-visible {
8871
+ opacity: 1;
8872
+ }
8873
+
8874
+ .dt-navigation-drawer__glide.is-instant {
8875
+ transition: opacity var(--dt-duration-fast) var(--dt-ease-standard);
8876
+ }
8877
+
8878
+ .dt-navigation-drawer__inner.has-glide .dt-list--nav .dt-list-item.is-interactive:not(.is-active, .is-disabled):hover {
8879
+ background: transparent;
8880
+ }
8881
+
8882
+ .dt-navigation-drawer__marker {
8883
+ position: absolute;
8884
+ top: 0;
8885
+ left: 0;
8886
+ pointer-events: none;
8887
+ background: var(--dt-color-primary-subtle);
8888
+ opacity: 0;
8889
+ transition: transform var(--dt-duration-base) var(--dt-ease-emphasized), width var(--dt-duration-base) var(--dt-ease-emphasized), height var(--dt-duration-base) var(--dt-ease-emphasized), background-color var(--dt-duration-fast) var(--dt-ease-standard), opacity var(--dt-duration-fast) var(--dt-ease-standard);
8890
+ }
8891
+
8892
+ .dt-navigation-drawer__marker.is-visible {
8893
+ opacity: 1;
8894
+ }
8895
+
8896
+ .dt-navigation-drawer__marker.is-hovered {
8897
+ background: color-mix(in srgb, var(--dt-color-primary) 18%, var(--dt-color-surface));
8898
+ }
8899
+
8900
+ .dt-navigation-drawer__marker.is-instant {
8901
+ transition: none;
8902
+ }
8903
+
8904
+ @media not (forced-colors: active) {
8905
+ .dt-navigation-drawer__inner.has-marker .dt-list--nav .dt-list-item.is-interactive.is-active,
8906
+ .dt-navigation-drawer__inner.has-marker .dt-list--nav .dt-list-item.is-interactive.is-active:hover:not(.is-disabled) {
8907
+ background: transparent;
8908
+ }
8909
+ }
8579
8910
  .dt-navigation-drawer-sheet .dt-sheet {
8580
8911
  --dt-sheet-size: var(--dt-drawer-width, 256px);
8581
8912
  }
@@ -8591,11 +8922,17 @@ button.dt-stepper__header[aria-disabled=true] {
8591
8922
  @media (prefers-reduced-motion: reduce) {
8592
8923
  .dt-navigation-drawer,
8593
8924
  .dt-navigation-drawer__inner,
8594
- .dt-navigation-drawer :is(.dt-list-item__content, .dt-list-item__append, .dt-list-subheader) {
8925
+ .dt-navigation-drawer :is(.dt-list-item__content, .dt-list-item__append, .dt-list-subheader),
8926
+ .dt-navigation-drawer__glide,
8927
+ .dt-navigation-drawer__marker {
8595
8928
  transition: none !important;
8596
8929
  }
8597
8930
  }
8598
8931
  @media (forced-colors: active) {
8932
+ .dt-navigation-drawer__glide,
8933
+ .dt-navigation-drawer__marker {
8934
+ display: none;
8935
+ }
8599
8936
  .dt-navigation-drawer.is-rail.is-expanded .dt-navigation-drawer__inner {
8600
8937
  border-inline-end: 1px solid CanvasText;
8601
8938
  }
@@ -9734,6 +10071,25 @@ button.dt-stepper__header[aria-disabled=true] {
9734
10071
  outline-offset: -2px;
9735
10072
  }
9736
10073
  }
10074
+ .dt-tree-select__tree .dt-treeview__item:focus-visible {
10075
+ outline: none;
10076
+ background: var(--dt-color-surface-hover);
10077
+ }
10078
+
10079
+ .dt-tree-select__tree .dt-treeview__item:focus-visible:is(.is-active, .is-selected) {
10080
+ background: color-mix(in srgb, var(--dt-color-primary-subtle) 80%, var(--dt-color-primary));
10081
+ }
10082
+
10083
+ .dt-tree-select__tree.is-multiple .dt-treeview__item:focus-visible.is-selected:not(.is-active) {
10084
+ background: var(--dt-color-surface-hover);
10085
+ }
10086
+
10087
+ @media (forced-colors: active) {
10088
+ .dt-tree-select__tree .dt-treeview__item:focus-visible {
10089
+ outline: 2px solid Highlight;
10090
+ outline-offset: -2px;
10091
+ }
10092
+ }
9737
10093
  .dt-accordion {
9738
10094
  display: grid;
9739
10095
  overflow: hidden;