@galaxy-io/dls 2.12.3 → 2.13.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/dist/inputs/ToggleInput.js +11 -3
- package/dist/styles.css +1 -1
- package/dist/table/InfiniteTable.d.ts +3 -1
- package/dist/table/InfiniteTable.js +6 -3
- package/dist/table/TableCore.d.ts +2 -0
- package/dist/table/TableCore.js +29 -4
- package/dist/table/VirtualizedInfiniteTable.js +1 -0
- package/dist/table/useTableRowSelection.d.ts +8 -4
- package/dist/table/useTableRowSelection.js +25 -16
- package/package.json +1 -1
|
@@ -57,7 +57,9 @@ var ToggleInputVariant = /* @__PURE__ */ function(ToggleInputVariant) {
|
|
|
57
57
|
/**
|
|
58
58
|
* The radiogroup: the one frame around the segments (an attached `ButtonGroup`'s silhouette). The
|
|
59
59
|
* seam color is a custom property so `isGhost` can clear the seams with the frame. `isolation:
|
|
60
|
-
* isolate` keeps the focused segment's `z-index: 1` inside the control.
|
|
60
|
+
* isolate` keeps the focused segment's `z-index: 1` inside the control. At content width it never
|
|
61
|
+
* shrinks: a flex row that runs out of room squeezes its siblings, not the segments (which cannot
|
|
62
|
+
* shrink, and would spill past the frame). `fillWidth` makes it shrinkable and truncates labels.
|
|
61
63
|
*/
|
|
62
64
|
var Track = /*#__PURE__*/ styled("div")({
|
|
63
65
|
name: "Track",
|
|
@@ -69,7 +71,9 @@ var Track = /*#__PURE__*/ styled("div")({
|
|
|
69
71
|
* frame's full inner height. Every segment after the first draws the seam before it as its own
|
|
70
72
|
* leading border, so each seam is one hairline. Only the first and last segments round their outer
|
|
71
73
|
* corners, by the frame's radius less its border, so no fill pokes past the rounded frame. The
|
|
72
|
-
* focused segment is lifted so its focus ring is never painted over by the next segment.
|
|
74
|
+
* focused segment is lifted so its focus ring is never painted over by the next segment. Its
|
|
75
|
+
* content is clipped sideways to its own box (the label truncates first, the icon never shrinks),
|
|
76
|
+
* so a squeezed segment never paints into its neighbor.
|
|
73
77
|
*/
|
|
74
78
|
var Segment = /*#__PURE__*/ styled("button")({
|
|
75
79
|
name: "Segment",
|
|
@@ -101,7 +105,10 @@ var TOGGLE_INPUT_SIZE_TO_CSS_MAP = {
|
|
|
101
105
|
var ERROR_CSS = "gx-ToggleInput-ERROR_CSS-e6je9tz";
|
|
102
106
|
/** Group disabled: the selected segment steps down to the pressed fill; the frame keeps its resting hairline (field-frame note). */
|
|
103
107
|
var DISABLED_CSS = "gx-ToggleInput-DISABLED_CSS-d8pd3s2";
|
|
104
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Equal shares: the track fills its parent, may shrink with it, and every segment (icon-only too)
|
|
110
|
+
* takes `1 1 0`; a label that no longer fits truncates.
|
|
111
|
+
*/
|
|
105
112
|
var FILL_WIDTH_CSS = "gx-ToggleInput-FILL_WIDTH_CSS-fc2kmgg";
|
|
106
113
|
/** The selected segment: the selection fill (the chosen-item role) and primary text; it fades in with the segment's color transition. */
|
|
107
114
|
var SEGMENT_SELECTED_CSS = "gx-ToggleInput-SEGMENT_SELECTED_CSS-s1d7otlt";
|
|
@@ -247,6 +254,7 @@ function TrackBody({ trackProps, forwardedRef, isRoot }) {
|
|
|
247
254
|
weight: TextWeight.MEDIUM,
|
|
248
255
|
variant: TextVariant.INHERIT,
|
|
249
256
|
lineClamp: 1,
|
|
257
|
+
shouldTooltipOnOverflow: option.tooltip === void 0,
|
|
250
258
|
children: option.label
|
|
251
259
|
})]
|
|
252
260
|
}, option.id);
|