@galaxy-io/dls 2.4.0 → 2.4.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.
@@ -76,7 +76,8 @@ export interface TabsProps<TId extends string = string> extends AriaAttributes {
76
76
  */
77
77
  orientation?: Orientation;
78
78
  /**
79
- * Horizontal only: the row spans its parent and every tab takes an equal share; labels truncate instead of overflowing into a menu.
79
+ * Horizontal: the row spans its parent and every tab takes an equal share; labels truncate instead of overflowing into a menu.
80
+ * Vertical: the column (and its `UNDERLINE` hairline) spans its parent instead of hugging the widest label; for a column with no panel beside it.
80
81
  * @default false
81
82
  */
82
83
  fillWidth?: boolean;
@@ -112,9 +112,11 @@ var TABS_ORIENTATION_TO_CSS_MAP = {
112
112
  };
113
113
  /** Horizontal `fillWidth`: the row spans its parent and every tab takes an equal share. */
114
114
  var FILL_WIDTH_CSS = "gx-Tabs-FILL_WIDTH_CSS-fs6iug3";
115
+ /** Vertical `fillWidth`: a column with no panel beside it spans its parent, so the hairline sits on the parent's edge. */
116
+ var VERTICAL_FILL_WIDTH_CSS = "gx-Tabs-VERTICAL_FILL_WIDTH_CSS-vvxftzj";
115
117
  var TABS_ORIENTATION_TO_BAR_CSS_MAP = {
116
- [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-ovxftzj",
117
- [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-oduyhd6"
118
+ [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-oduyhd6",
119
+ [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-oux4b2d"
118
120
  };
119
121
  /**
120
122
  * The hairline on the edge facing the panel (`UNDERLINE` only). A horizontal row draws it as an
@@ -125,52 +127,52 @@ var TABS_ORIENTATION_TO_BAR_CSS_MAP = {
125
127
  */
126
128
  var TABS_VARIANT_TO_BAR_CSS_MAP = {
127
129
  ["UNDERLINE"]: {
128
- [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-oux4b2d",
129
- [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-o6lhzlg"
130
+ [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-o6lhzlg",
131
+ [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-otj50wv"
130
132
  },
131
133
  ["PILL"]: {
132
- [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-otj50wv",
133
- [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-o1wa4rz3"
134
+ [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-o1wa4rz3",
135
+ [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-o19ax5w1"
134
136
  }
135
137
  };
136
138
  var TABS_ORIENTATION_TO_LIST_CSS_MAP = {
137
- [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-o19ax5w1",
138
- [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-o6on29c"
139
+ [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-o6on29c",
140
+ [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-o1cleozi"
139
141
  };
140
142
  /** While unmeasured (server, first paint, after items change): every tab renders, clipped. */
141
- var MEASURING_CSS = "gx-Tabs-MEASURING_CSS-m1cleozi";
143
+ var MEASURING_CSS = "gx-Tabs-MEASURING_CSS-mfzxznm";
142
144
  /** The overflow trigger copy that is only measured. */
143
- var MEASURING_TRIGGER_CSS = "gx-Tabs-MEASURING_TRIGGER_CSS-mfzxznm";
145
+ var MEASURING_TRIGGER_CSS = "gx-Tabs-MEASURING_TRIGGER_CSS-m10e4gpz";
144
146
  /**
145
147
  * Height, padding and icon-label gap per rung (custom properties on `Bar`). `--gx-tabs-row-height`
146
148
  * is the horizontal `UNDERLINE` row's minimum: the label centered with 8 / 12 / 12px above and
147
149
  * below it, the 2px indicator drawn over the bottom of that space.
148
150
  */
149
151
  var TABS_SIZE_TO_CSS_MAP = {
150
- ["SMALL"]: "gx-Tabs-SMALL-s10e4gpz",
151
- ["MEDIUM"]: "gx-Tabs-MEDIUM-m1k4ei2n",
152
- ["LARGE"]: "gx-Tabs-LARGE-l1fu2ke2"
152
+ ["SMALL"]: "gx-Tabs-SMALL-s1k4ei2n",
153
+ ["MEDIUM"]: "gx-Tabs-MEDIUM-m1fu2ke2",
154
+ ["LARGE"]: "gx-Tabs-LARGE-l1q90ijz"
153
155
  };
154
156
  /** Shape per mode (every tab and the overflow trigger). */
155
157
  var TABS_VARIANT_TO_TAB_CSS_MAP = {
156
- ["UNDERLINE"]: "gx-Tabs-UNDERLINE-u1q90ijz",
157
- ["PILL"]: "gx-Tabs-PILL-p1xzvabb"
158
+ ["UNDERLINE"]: "gx-Tabs-UNDERLINE-u1xzvabb",
159
+ ["PILL"]: "gx-Tabs-PILL-pxgth9d"
158
160
  };
159
161
  /** Hover and press on an enabled, unselected tab (and the overflow trigger). */
160
162
  var TABS_VARIANT_TO_INTERACTIVE_CSS_MAP = {
161
- ["UNDERLINE"]: "gx-Tabs-UNDERLINE-uxgth9d",
162
- ["PILL"]: "gx-Tabs-PILL-p15kodi3"
163
+ ["UNDERLINE"]: "gx-Tabs-UNDERLINE-u15kodi3",
164
+ ["PILL"]: "gx-Tabs-PILL-phu3rsh"
163
165
  };
164
166
  var TABS_VARIANT_TO_SELECTED_CSS_MAP = {
165
- ["UNDERLINE"]: "gx-Tabs-UNDERLINE-uhu3rsh",
166
- ["PILL"]: "gx-Tabs-PILL-p1nmauec"
167
+ ["UNDERLINE"]: "gx-Tabs-UNDERLINE-u1nmauec",
168
+ ["PILL"]: "gx-Tabs-PILL-p14ug43i"
167
169
  };
168
170
  /** The `UNDERLINE` indicator's edge: always the one facing the panel, over the bar hairline. */
169
171
  var TABS_ORIENTATION_TO_INDICATOR_CSS_MAP = {
170
- [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-o14ug43i",
171
- [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-o1qvds3x"
172
+ [Orientation.HORIZONTAL]: "gx-Tabs-Orientation_HORIZONTAL-o1qvds3x",
173
+ [Orientation.VERTICAL]: "gx-Tabs-Orientation_VERTICAL-oa8x8b6"
172
174
  };
173
- var TAB_DISABLED_CSS = "gx-Tabs-TAB_DISABLED_CSS-ta8x8b6";
175
+ var TAB_DISABLED_CSS = "gx-Tabs-TAB_DISABLED_CSS-t2u7szj";
174
176
  /** Tab icon px per rung: one step below the rung's III-A.4 icon (Mitch, 2026-10-04). */
175
177
  var TABS_SIZE_TO_ICON_PX_MAP = {
176
178
  ["SMALL"]: 12,
@@ -469,7 +471,7 @@ function TabsImpl(props, ref) {
469
471
  const selectedPanel = selectedItem !== void 0 && selectedItem.href === void 0 ? selectedItem.panel : void 0;
470
472
  return /* @__PURE__ */ jsxs(Root, {
471
473
  ref,
472
- className: cx(TABS_ORIENTATION_TO_CSS_MAP[orientation], fillWidth && isHorizontal && FILL_WIDTH_CSS, className),
474
+ className: cx(TABS_ORIENTATION_TO_CSS_MAP[orientation], fillWidth && (isHorizontal ? FILL_WIDTH_CSS : VERTICAL_FILL_WIDTH_CSS), className),
473
475
  style,
474
476
  children: [/* @__PURE__ */ jsxs(Bar, {
475
477
  ref: barRef,