jsl-ui 10.0.6 → 10.1.0

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.
@@ -0,0 +1,21 @@
1
+ @import "../../ui/theme.css";
2
+
3
+ .jsl-slider {
4
+ width: 100%;
5
+ margin: .625rem 0 1.25rem;
6
+ }
7
+
8
+ .jsl-slider.noUi-target {
9
+ border: 0;
10
+ }
11
+
12
+ .jsl-slider[disabled] {
13
+ pointer-events: none;
14
+ opacity: .6;
15
+ }
16
+
17
+ .jsl-slider-vertical {
18
+ width: 6px;
19
+ height: 12rem;
20
+ margin: .625rem auto 1.25rem;
21
+ }
package/lib/grid.css CHANGED
@@ -1539,7 +1539,7 @@ input.editor-text, textarea.editor-text {
1539
1539
  width: 14rem;
1540
1540
  min-width: 0;
1541
1541
  max-width: 100%;
1542
- min-height: 2.5rem;
1542
+ min-height: 2.2rem;
1543
1543
  color: var(--jsl-color-text);
1544
1544
  font: inherit;
1545
1545
  display: inline-flex;
@@ -2458,7 +2458,7 @@ textarea.jsl-input {
2458
2458
  .stabcomponent .tab-trigger {
2459
2459
  box-sizing: border-box;
2460
2460
  min-width: 0;
2461
- min-height: 2.5rem;
2461
+ min-height: 2.4rem;
2462
2462
  color: inherit;
2463
2463
  font: inherit;
2464
2464
  text-align: start;
@@ -3548,32 +3548,6 @@ textarea.jsl-input {
3548
3548
  font-size: .6875rem;
3549
3549
  }
3550
3550
 
3551
- :where(:root) {
3552
- --jsl-color-canvas: #f7f7f8;
3553
- --jsl-color-surface: #fff;
3554
- --jsl-color-surface-subtle: #fafafa;
3555
- --jsl-color-surface-hover: #f0f0f2;
3556
- --jsl-color-surface-selected: #e8e8eb;
3557
- --jsl-color-border: #d4d4d8;
3558
- --jsl-color-border-subtle: #e4e4e7;
3559
- --jsl-color-text: #27272a;
3560
- --jsl-color-text-secondary: #52525b;
3561
- --jsl-color-text-muted: #71717a;
3562
- --jsl-color-accent: #3f3f46;
3563
- --jsl-color-accent-hover: #27272a;
3564
- --jsl-color-accent-active: #18181b;
3565
- --jsl-color-on-accent: #fff;
3566
- --jsl-color-focus: #52525b;
3567
- --jsl-color-danger: #b42318;
3568
- --jsl-color-success: #15803d;
3569
- --jsl-color-warning: #b45309;
3570
- --jsl-color-info: #2563eb;
3571
- --jsl-color-disabled-surface: #f4f4f5;
3572
- --jsl-color-disabled-text: #71717a;
3573
- --jsl-color-overlay: #18181b73;
3574
- --jsl-shadow-dialog: 0 24px 64px #0000002e, 0 4px 16px #00000014;
3575
- }
3576
-
3577
3551
  .jsl-overlay-overlay {
3578
3552
  color: var(--jsl-color-text);
3579
3553
  width: fit-content;
@@ -3686,4 +3660,123 @@ textarea.jsl-input {
3686
3660
  animation: none !important;
3687
3661
  }
3688
3662
  }
3663
+
3664
+ .jsl-slider {
3665
+ width: 100%;
3666
+ margin: .625rem 0 1.25rem;
3667
+ }
3668
+
3669
+ .jsl-slider.noUi-target {
3670
+ border: 0;
3671
+ }
3672
+
3673
+ .jsl-slider[disabled] {
3674
+ pointer-events: none;
3675
+ opacity: .6;
3676
+ }
3677
+
3678
+ .jsl-slider-vertical {
3679
+ width: 6px;
3680
+ height: 12rem;
3681
+ margin: .625rem auto 1.25rem;
3682
+ }
3683
+
3684
+ :where(:root) {
3685
+ --jsl-color-canvas: #f7f7f8;
3686
+ --jsl-color-surface: #fff;
3687
+ --jsl-color-surface-subtle: #fafafa;
3688
+ --jsl-color-surface-hover: #f0f0f2;
3689
+ --jsl-color-surface-selected: #e8e8eb;
3690
+ --jsl-color-border: #d4d4d8;
3691
+ --jsl-color-border-subtle: #e4e4e7;
3692
+ --jsl-color-text: #27272a;
3693
+ --jsl-color-text-secondary: #52525b;
3694
+ --jsl-color-text-muted: #71717a;
3695
+ --jsl-color-accent: #3f3f46;
3696
+ --jsl-color-accent-hover: #27272a;
3697
+ --jsl-color-accent-active: #18181b;
3698
+ --jsl-color-on-accent: #fff;
3699
+ --jsl-color-focus: #52525b;
3700
+ --jsl-color-danger: #b42318;
3701
+ --jsl-color-success: #15803d;
3702
+ --jsl-color-warning: #b45309;
3703
+ --jsl-color-info: #2563eb;
3704
+ --jsl-color-disabled-surface: #f4f4f5;
3705
+ --jsl-color-disabled-text: #71717a;
3706
+ --jsl-color-overlay: #18181b73;
3707
+ --jsl-shadow-dialog: 0 24px 64px #0000002e, 0 4px 16px #00000014;
3708
+ }
3709
+
3710
+ .jsl-dropdown-trigger:not(.jsl-dropdown-trigger--no-indicator):after {
3711
+ content: "";
3712
+ border-bottom: 1.5px solid;
3713
+ border-right: 1.5px solid;
3714
+ flex: none;
3715
+ width: .42em;
3716
+ height: .42em;
3717
+ margin-inline-start: .55em;
3718
+ transition: transform .15s;
3719
+ display: inline-block;
3720
+ transform: translateY(-.12em) rotate(45deg);
3721
+ }
3722
+
3723
+ .jsl-dropdown-trigger[aria-expanded="true"]:after {
3724
+ transform: translateY(.08em) rotate(225deg);
3725
+ }
3726
+
3727
+ .jsl-dropdown-portal {
3728
+ z-index: 3000;
3729
+ pointer-events: none;
3730
+ position: fixed;
3731
+ inset: 0;
3732
+ }
3733
+
3734
+ .jsl-dropdown-menu {
3735
+ box-sizing: border-box;
3736
+ border: 1px solid var(--jsl-color-border);
3737
+ background: var(--jsl-color-surface);
3738
+ color: var(--jsl-color-text);
3739
+ pointer-events: auto;
3740
+ border-radius: .5rem;
3741
+ outline: none;
3742
+ padding: .2rem;
3743
+ overflow: auto;
3744
+ box-shadow: 0 8px 24px #00000029, 0 2px 6px #00000014;
3745
+ }
3746
+
3747
+ .dd-menu-comp > * {
3748
+ width: calc(100% - .2rem);
3749
+ margin: .1rem;
3750
+ display: block;
3751
+ }
3752
+
3753
+ .dd-menu-comp {
3754
+ --jsl-button-primary: var(--jsl-color-surface);
3755
+ --jsl-button-on-primary: var(--jsl-color-text);
3756
+ --jsl-button-primary-hover: var(--jsl-color-surface-hover);
3757
+ --jsl-button-primary-active: var(--jsl-color-surface-selected);
3758
+ --jsl-button-radius: .25rem;
3759
+ flex-direction: column;
3760
+ display: flex;
3761
+ }
3762
+
3763
+ .dd-menu-comp > .jsl-button {
3764
+ --jsl-button-height: 2.2rem;
3765
+ text-align: left;
3766
+ flex: none;
3767
+ justify-content: flex-start;
3768
+ align-items: center;
3769
+ display: flex;
3770
+ }
3771
+
3772
+ .jsl-dropdown-menu [role^="menuitem"]:focus-visible {
3773
+ outline: 2px solid var(--jsl-color-focus);
3774
+ outline-offset: -2px;
3775
+ }
3776
+
3777
+ @media (prefers-reduced-motion: reduce) {
3778
+ .jsl-dropdown-trigger:after {
3779
+ transition: none;
3780
+ }
3781
+ }
3689
3782
  /*# sourceMappingURL=index.css.map */
package/lib/index.css CHANGED
@@ -3548,32 +3548,6 @@ textarea.jsl-input {
3548
3548
  font-size: .6875rem;
3549
3549
  }
3550
3550
 
3551
- :where(:root) {
3552
- --jsl-color-canvas: #f7f7f8;
3553
- --jsl-color-surface: #fff;
3554
- --jsl-color-surface-subtle: #fafafa;
3555
- --jsl-color-surface-hover: #f0f0f2;
3556
- --jsl-color-surface-selected: #e8e8eb;
3557
- --jsl-color-border: #d4d4d8;
3558
- --jsl-color-border-subtle: #e4e4e7;
3559
- --jsl-color-text: #27272a;
3560
- --jsl-color-text-secondary: #52525b;
3561
- --jsl-color-text-muted: #71717a;
3562
- --jsl-color-accent: #3f3f46;
3563
- --jsl-color-accent-hover: #27272a;
3564
- --jsl-color-accent-active: #18181b;
3565
- --jsl-color-on-accent: #fff;
3566
- --jsl-color-focus: #52525b;
3567
- --jsl-color-danger: #b42318;
3568
- --jsl-color-success: #15803d;
3569
- --jsl-color-warning: #b45309;
3570
- --jsl-color-info: #2563eb;
3571
- --jsl-color-disabled-surface: #f4f4f5;
3572
- --jsl-color-disabled-text: #71717a;
3573
- --jsl-color-overlay: #18181b73;
3574
- --jsl-shadow-dialog: 0 24px 64px #0000002e, 0 4px 16px #00000014;
3575
- }
3576
-
3577
3551
  .jsl-overlay-overlay {
3578
3552
  color: var(--jsl-color-text);
3579
3553
  width: fit-content;
@@ -3686,4 +3660,123 @@ textarea.jsl-input {
3686
3660
  animation: none !important;
3687
3661
  }
3688
3662
  }
3663
+
3664
+ .jsl-slider {
3665
+ width: 100%;
3666
+ margin: .625rem 0 1.25rem;
3667
+ }
3668
+
3669
+ .jsl-slider.noUi-target {
3670
+ border: 0;
3671
+ }
3672
+
3673
+ .jsl-slider[disabled] {
3674
+ pointer-events: none;
3675
+ opacity: .6;
3676
+ }
3677
+
3678
+ .jsl-slider-vertical {
3679
+ width: 6px;
3680
+ height: 12rem;
3681
+ margin: .625rem auto 1.25rem;
3682
+ }
3683
+
3684
+ :where(:root) {
3685
+ --jsl-color-canvas: #f7f7f8;
3686
+ --jsl-color-surface: #fff;
3687
+ --jsl-color-surface-subtle: #fafafa;
3688
+ --jsl-color-surface-hover: #f0f0f2;
3689
+ --jsl-color-surface-selected: #e8e8eb;
3690
+ --jsl-color-border: #d4d4d8;
3691
+ --jsl-color-border-subtle: #e4e4e7;
3692
+ --jsl-color-text: #27272a;
3693
+ --jsl-color-text-secondary: #52525b;
3694
+ --jsl-color-text-muted: #71717a;
3695
+ --jsl-color-accent: #3f3f46;
3696
+ --jsl-color-accent-hover: #27272a;
3697
+ --jsl-color-accent-active: #18181b;
3698
+ --jsl-color-on-accent: #fff;
3699
+ --jsl-color-focus: #52525b;
3700
+ --jsl-color-danger: #b42318;
3701
+ --jsl-color-success: #15803d;
3702
+ --jsl-color-warning: #b45309;
3703
+ --jsl-color-info: #2563eb;
3704
+ --jsl-color-disabled-surface: #f4f4f5;
3705
+ --jsl-color-disabled-text: #71717a;
3706
+ --jsl-color-overlay: #18181b73;
3707
+ --jsl-shadow-dialog: 0 24px 64px #0000002e, 0 4px 16px #00000014;
3708
+ }
3709
+
3710
+ .jsl-dropdown-trigger:not(.jsl-dropdown-trigger--no-indicator):after {
3711
+ content: "";
3712
+ border-bottom: 1.5px solid;
3713
+ border-right: 1.5px solid;
3714
+ flex: none;
3715
+ width: .42em;
3716
+ height: .42em;
3717
+ margin-inline-start: .55em;
3718
+ transition: transform .15s;
3719
+ display: inline-block;
3720
+ transform: translateY(-.12em) rotate(45deg);
3721
+ }
3722
+
3723
+ .jsl-dropdown-trigger[aria-expanded="true"]:after {
3724
+ transform: translateY(.08em) rotate(225deg);
3725
+ }
3726
+
3727
+ .jsl-dropdown-portal {
3728
+ z-index: 3000;
3729
+ pointer-events: none;
3730
+ position: fixed;
3731
+ inset: 0;
3732
+ }
3733
+
3734
+ .jsl-dropdown-menu {
3735
+ box-sizing: border-box;
3736
+ border: 1px solid var(--jsl-color-border);
3737
+ background: var(--jsl-color-surface);
3738
+ color: var(--jsl-color-text);
3739
+ pointer-events: auto;
3740
+ border-radius: .5rem;
3741
+ outline: none;
3742
+ padding: .2rem;
3743
+ overflow: auto;
3744
+ box-shadow: 0 8px 24px #00000029, 0 2px 6px #00000014;
3745
+ }
3746
+
3747
+ .dd-menu-comp > * {
3748
+ width: calc(100% - .2rem);
3749
+ margin: .1rem;
3750
+ display: block;
3751
+ }
3752
+
3753
+ .dd-menu-comp {
3754
+ --jsl-button-primary: var(--jsl-color-surface);
3755
+ --jsl-button-on-primary: var(--jsl-color-text);
3756
+ --jsl-button-primary-hover: var(--jsl-color-surface-hover);
3757
+ --jsl-button-primary-active: var(--jsl-color-surface-selected);
3758
+ --jsl-button-radius: .25rem;
3759
+ flex-direction: column;
3760
+ display: flex;
3761
+ }
3762
+
3763
+ .dd-menu-comp > .jsl-button {
3764
+ --jsl-button-height: 2.2rem;
3765
+ text-align: left;
3766
+ flex: none;
3767
+ justify-content: flex-start;
3768
+ align-items: center;
3769
+ display: flex;
3770
+ }
3771
+
3772
+ .jsl-dropdown-menu [role^="menuitem"]:focus-visible {
3773
+ outline: 2px solid var(--jsl-color-focus);
3774
+ outline-offset: -2px;
3775
+ }
3776
+
3777
+ @media (prefers-reduced-motion: reduce) {
3778
+ .jsl-dropdown-trigger:after {
3779
+ transition: none;
3780
+ }
3781
+ }
3689
3782
  /*# sourceMappingURL=index.css.map */