@gravionlabs/helix-ui 22.2.17 → 22.3.1

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/README.md CHANGED
@@ -77,6 +77,7 @@ import { HxChart } from '@gravionlabs/helix-ui/chart';
77
77
  | `HxChip` | `hx-chip` | entity pill with picture or icon, removable by button, Backspace or Delete |
78
78
  | `HxTag` | `hx-tag` | label for a category or status: severities, rounded, decorative icon |
79
79
  | `HxTabs`, `HxTabList`, `HxTab`, `HxTabPanels`, `HxTabPanel` | `hx-tabs` … | WAI-ARIA tabs: roving tabindex, automatic activation, lazy panels, scrollable list |
80
+ | `HxTabBar` | `hx-tab-bar` | editor-style tab strip without panels: close, reorder, drag between bars, overflow buttons and all-tabs menu, context menu |
80
81
  | `HxToast`, `HxMessageService` | `hx-toast` | short messages from a service, live regions, pause on hover and focus, keys and positions |
81
82
  | `HxMenubar` | `hx-menubar` | horizontal menu with dropdown submenus on the CDK menubar, collapses into a button below a breakpoint |
82
83
  | `HxMenu` | `hx-menu` | menu of `HxMenuItem`s, inline or popup, group headings and nested submenus on the CDK menu |
package/core.css CHANGED
@@ -836,6 +836,7 @@
836
836
  flex-direction: column;
837
837
  box-sizing: border-box;
838
838
  overflow: hidden;
839
+ border: 1px solid var(--h-card-border-color);
839
840
  border-radius: var(--h-card-border-radius);
840
841
  background: var(--h-card-background);
841
842
  color: var(--h-card-color);
@@ -3505,10 +3506,206 @@
3505
3506
  }
3506
3507
  }
3507
3508
 
3509
+ /* tab-bar */
3510
+ /*
3511
+ * Tab bar: `<hx-tab-bar>`. An editor-style tab strip from the `--h-tabbar-*` tokens; its scroll buttons are those of
3512
+ * the tabs (`--h-tabs-nav-button-*`, styled in tabs.scss).
3513
+ */
3514
+ .hx-tab-bar {
3515
+ display: flex;
3516
+ align-items: stretch;
3517
+ min-height: var(--h-tabbar-min-height);
3518
+ background: var(--h-tabbar-background);
3519
+ border: solid var(--h-tabbar-border-color);
3520
+ border-width: var(--h-tabbar-border-width);
3521
+ }
3522
+
3523
+ /* the shared scroller (tabs.scss) as a row that fills the bar */
3524
+ .hx-tab-bar .hx-tab-scroll {
3525
+ display: flex;
3526
+ }
3527
+
3528
+ .hx-tab-bar .hx-tab-scroller {
3529
+ flex: 1 1 auto;
3530
+ min-width: 0;
3531
+ display: flex;
3532
+ }
3533
+
3534
+ .hx-tab-bar-tabs {
3535
+ display: flex;
3536
+ box-sizing: border-box;
3537
+ width: max-content;
3538
+ min-width: 100%;
3539
+ }
3540
+
3541
+ .hx-tab-bar-tab {
3542
+ position: relative;
3543
+ display: flex;
3544
+ flex: none;
3545
+ align-items: center;
3546
+ gap: var(--h-tabbar-tab-gap);
3547
+ max-width: var(--h-tabbar-tab-max-width);
3548
+ padding: var(--h-tabbar-tab-padding);
3549
+ border-right: 1px solid var(--h-tabbar-tab-border-color);
3550
+ color: var(--h-tabbar-tab-color);
3551
+ cursor: pointer;
3552
+ outline: 0 none;
3553
+ user-select: none;
3554
+ transition: background var(--h-tabbar-transition-duration), color var(--h-tabbar-transition-duration);
3555
+ }
3556
+
3557
+ .hx-tab-bar-tab:hover {
3558
+ background: var(--h-tabbar-tab-hover-background);
3559
+ color: var(--h-tabbar-tab-hover-color);
3560
+ }
3561
+
3562
+ .hx-tab-bar-tab-active,
3563
+ .hx-tab-bar-tab-active:hover {
3564
+ background: var(--h-tabbar-tab-active-background);
3565
+ color: var(--h-tabbar-tab-active-color);
3566
+ box-shadow: inset 0 calc(-1 * var(--h-tabbar-active-bar-height)) 0 var(--h-tabbar-active-bar-background);
3567
+ }
3568
+
3569
+ .hx-tab-bar-tab:focus-visible {
3570
+ outline: var(--h-tabbar-tab-focus-ring-width) var(--h-tabbar-tab-focus-ring-style) var(--h-tabbar-tab-focus-ring-color);
3571
+ outline-offset: var(--h-tabbar-tab-focus-ring-offset);
3572
+ }
3573
+
3574
+ .hx-tab-bar-label {
3575
+ overflow: hidden;
3576
+ text-overflow: ellipsis;
3577
+ white-space: nowrap;
3578
+ }
3579
+
3580
+ .hx-tab-bar-tab-preview .hx-tab-bar-label {
3581
+ font-style: italic;
3582
+ }
3583
+
3584
+ .hx-tab-bar-tab.hx-tab-bar-drop-before {
3585
+ box-shadow: inset 2px 0 0 var(--h-tabbar-drop-indicator-color);
3586
+ }
3587
+
3588
+ .hx-tab-bar-tab.hx-tab-bar-drop-after {
3589
+ box-shadow: inset -2px 0 0 var(--h-tabbar-drop-indicator-color);
3590
+ }
3591
+
3592
+ .hx-tab-bar-tabs.hx-tab-bar-drop-end {
3593
+ box-shadow: inset -2px 0 0 var(--h-tabbar-drop-indicator-color);
3594
+ }
3595
+
3596
+ /* Needs the user: a ring around the tab. */
3597
+ .hx-tab-bar-tab-attention {
3598
+ box-shadow: inset 0 0 0 2px var(--h-tabbar-attention-color), 0 0 6px var(--h-tabbar-attention-color);
3599
+ }
3600
+
3601
+ .hx-tab-bar-tab-attention.hx-tab-bar-tab-active {
3602
+ box-shadow: inset 0 0 0 2px var(--h-tabbar-attention-color), inset 0 calc(-1 * var(--h-tabbar-active-bar-height)) 0 var(--h-tabbar-active-bar-background), 0 0 6px var(--h-tabbar-attention-color);
3603
+ }
3604
+
3605
+ .hx-tab-bar-group {
3606
+ flex: none;
3607
+ max-width: 40%;
3608
+ overflow: hidden;
3609
+ color: var(--h-tabbar-group-color);
3610
+ font-size: var(--h-tabbar-group-font-size);
3611
+ letter-spacing: 0.04em;
3612
+ text-overflow: ellipsis;
3613
+ text-transform: uppercase;
3614
+ white-space: nowrap;
3615
+ }
3616
+
3617
+ .hx-tab-bar-unread {
3618
+ flex: none;
3619
+ width: 0.5rem;
3620
+ height: 0.5rem;
3621
+ border-radius: 50%;
3622
+ background: var(--h-tabbar-unread-color);
3623
+ }
3624
+
3625
+ .hx-tab-bar-close,
3626
+ .hx-tab-bar-all {
3627
+ display: inline-grid;
3628
+ flex: none;
3629
+ place-items: center;
3630
+ padding: 0;
3631
+ border: 0;
3632
+ background: transparent;
3633
+ color: inherit;
3634
+ cursor: pointer;
3635
+ outline: 0 none;
3636
+ }
3637
+
3638
+ .hx-tab-bar-close {
3639
+ width: var(--h-tabbar-close-size);
3640
+ height: var(--h-tabbar-close-size);
3641
+ border-radius: var(--h-tabbar-close-border-radius);
3642
+ visibility: hidden;
3643
+ }
3644
+
3645
+ .hx-tab-bar-tab-active .hx-tab-bar-close,
3646
+ .hx-tab-bar-tab:hover .hx-tab-bar-close,
3647
+ .hx-tab-bar-tab:focus-visible .hx-tab-bar-close {
3648
+ visibility: visible;
3649
+ }
3650
+
3651
+ .hx-tab-bar-close:hover,
3652
+ .hx-tab-bar-all:hover {
3653
+ background: var(--h-tabbar-close-hover-background);
3654
+ }
3655
+
3656
+ .hx-tab-bar-close-icon {
3657
+ display: inline-block;
3658
+ flex: none;
3659
+ width: 0.75rem;
3660
+ height: 0.75rem;
3661
+ background: currentcolor;
3662
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;
3663
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;
3664
+ }
3665
+
3666
+ .hx-tab-bar-all {
3667
+ width: 2rem;
3668
+ align-self: stretch;
3669
+ color: var(--h-tabbar-tab-color);
3670
+ }
3671
+
3672
+ .hx-tab-bar-all:hover {
3673
+ color: var(--h-tabbar-tab-hover-color);
3674
+ }
3675
+
3676
+ .hx-tab-bar-all:focus-visible {
3677
+ outline: var(--h-tabbar-tab-focus-ring-width) var(--h-tabbar-tab-focus-ring-style) var(--h-tabbar-tab-focus-ring-color);
3678
+ outline-offset: var(--h-tabbar-tab-focus-ring-offset);
3679
+ }
3680
+
3681
+ .hx-tab-bar-all-icon {
3682
+ display: inline-block;
3683
+ flex: none;
3684
+ width: 1rem;
3685
+ height: 1rem;
3686
+ background: currentcolor;
3687
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
3688
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
3689
+ }
3690
+
3691
+ .hx-tab-bar-actions {
3692
+ display: flex;
3693
+ flex: none;
3694
+ align-items: center;
3695
+ gap: var(--h-tabbar-actions-gap);
3696
+ padding: var(--h-tabbar-actions-padding);
3697
+ }
3698
+
3699
+ @media (prefers-reduced-motion: reduce) {
3700
+ .hx-tab-bar-tab {
3701
+ transition: none;
3702
+ }
3703
+ }
3704
+
3508
3705
  /* tabs */
3509
3706
  /*
3510
3707
  * Tabs: `<hx-tabs>`. A tab list with an active bar and panels from the `--h-tabs-*` tokens; with `scrollable`
3511
- * the list scrolls and shows buttons at its ends.
3708
+ * the list scrolls and shows buttons at its ends (`hx-tab-scroller`, shared with `hx-tab-bar`).
3512
3709
  */
3513
3710
  .hx-tabs {
3514
3711
  display: block;
@@ -3522,8 +3719,14 @@
3522
3719
  border-width: var(--h-tabs-tablist-border-width);
3523
3720
  }
3524
3721
 
3525
- .hx-tab-scroller {
3722
+ .hx-tab-scroll {
3723
+ position: relative;
3724
+ display: block;
3526
3725
  flex: 1 1 auto;
3726
+ min-width: 0;
3727
+ }
3728
+
3729
+ .hx-tab-scroller {
3527
3730
  overflow-x: auto;
3528
3731
  scrollbar-width: none;
3529
3732
  }
@@ -214,7 +214,7 @@ var HxChart = class HxChart {
214
214
  }
215
215
  static ɵfac = i0.ɵɵngDeclareFactory({
216
216
  minVersion: "12.0.0",
217
- version: "22.2.3",
217
+ version: "22.2.4",
218
218
  ngImport: i0,
219
219
  type: HxChart,
220
220
  deps: [],
@@ -222,7 +222,7 @@ var HxChart = class HxChart {
222
222
  });
223
223
  static ɵcmp = i0.ɵɵngDeclareComponent({
224
224
  minVersion: "17.2.0",
225
- version: "22.2.3",
225
+ version: "22.2.4",
226
226
  type: HxChart,
227
227
  isStandalone: true,
228
228
  selector: "hx-chart",
@@ -326,7 +326,7 @@ var HxChart = class HxChart {
326
326
  };
327
327
  i0.ɵɵngDeclareClassMetadata({
328
328
  minVersion: "12.0.0",
329
- version: "22.2.3",
329
+ version: "22.2.4",
330
330
  ngImport: i0,
331
331
  type: HxChart,
332
332
  decorators: [{