@qoretechnologies/reqore 0.78.12 → 0.78.13-pr.715.g3135f4f

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.
Files changed (181) hide show
  1. package/dist/components/Accordion/index.d.ts.map +1 -1
  2. package/dist/components/Accordion/index.js +10 -9
  3. package/dist/components/Accordion/index.js.map +1 -1
  4. package/dist/components/Bubble/index.d.ts.map +1 -1
  5. package/dist/components/Bubble/index.js +3 -2
  6. package/dist/components/Bubble/index.js.map +1 -1
  7. package/dist/components/Button/index.d.ts.map +1 -1
  8. package/dist/components/Button/index.js +18 -5
  9. package/dist/components/Button/index.js.map +1 -1
  10. package/dist/components/Callout/index.d.ts.map +1 -1
  11. package/dist/components/Callout/index.js +7 -6
  12. package/dist/components/Callout/index.js.map +1 -1
  13. package/dist/components/Checkbox/index.d.ts.map +1 -1
  14. package/dist/components/Checkbox/index.js +4 -3
  15. package/dist/components/Checkbox/index.js.map +1 -1
  16. package/dist/components/CollapsibleContent/index.d.ts +12 -0
  17. package/dist/components/CollapsibleContent/index.d.ts.map +1 -1
  18. package/dist/components/CollapsibleContent/index.js +37 -16
  19. package/dist/components/CollapsibleContent/index.js.map +1 -1
  20. package/dist/components/Collection/index.d.ts.map +1 -1
  21. package/dist/components/Collection/index.js +6 -3
  22. package/dist/components/Collection/index.js.map +1 -1
  23. package/dist/components/Collection/item.js +1 -1
  24. package/dist/components/Collection/item.js.map +1 -1
  25. package/dist/components/DataView/index.d.ts +11 -0
  26. package/dist/components/DataView/index.d.ts.map +1 -1
  27. package/dist/components/DataView/index.js +37 -22
  28. package/dist/components/DataView/index.js.map +1 -1
  29. package/dist/components/DescriptionList/index.d.ts.map +1 -1
  30. package/dist/components/DescriptionList/index.js +5 -1
  31. package/dist/components/DescriptionList/index.js.map +1 -1
  32. package/dist/components/Effect/index.d.ts +6 -0
  33. package/dist/components/Effect/index.d.ts.map +1 -1
  34. package/dist/components/Effect/index.js +26 -21
  35. package/dist/components/Effect/index.js.map +1 -1
  36. package/dist/components/EntityRow/index.d.ts.map +1 -1
  37. package/dist/components/EntityRow/index.js +2 -2
  38. package/dist/components/EntityRow/index.js.map +1 -1
  39. package/dist/components/FeatureCard/index.d.ts.map +1 -1
  40. package/dist/components/FeatureCard/index.js +5 -4
  41. package/dist/components/FeatureCard/index.js.map +1 -1
  42. package/dist/components/Icon/index.d.ts.map +1 -1
  43. package/dist/components/Icon/index.js +10 -5
  44. package/dist/components/Icon/index.js.map +1 -1
  45. package/dist/components/Input/index.d.ts.map +1 -1
  46. package/dist/components/Input/index.js +5 -4
  47. package/dist/components/Input/index.js.map +1 -1
  48. package/dist/components/KeyboardShortcut/index.d.ts.map +1 -1
  49. package/dist/components/KeyboardShortcut/index.js +3 -2
  50. package/dist/components/KeyboardShortcut/index.js.map +1 -1
  51. package/dist/components/Layout/index.d.ts.map +1 -1
  52. package/dist/components/Layout/index.js +6 -2
  53. package/dist/components/Layout/index.js.map +1 -1
  54. package/dist/components/Link/index.d.ts.map +1 -1
  55. package/dist/components/Link/index.js +7 -2
  56. package/dist/components/Link/index.js.map +1 -1
  57. package/dist/components/Menu/divider.d.ts.map +1 -1
  58. package/dist/components/Menu/divider.js +4 -1
  59. package/dist/components/Menu/divider.js.map +1 -1
  60. package/dist/components/Menu/index.js +1 -1
  61. package/dist/components/Menu/index.js.map +1 -1
  62. package/dist/components/Message/index.d.ts.map +1 -1
  63. package/dist/components/Message/index.js +9 -1
  64. package/dist/components/Message/index.js.map +1 -1
  65. package/dist/components/NavRail/index.d.ts.map +1 -1
  66. package/dist/components/NavRail/index.js +5 -3
  67. package/dist/components/NavRail/index.js.map +1 -1
  68. package/dist/components/Notifications/notification.d.ts.map +1 -1
  69. package/dist/components/Notifications/notification.js +3 -2
  70. package/dist/components/Notifications/notification.js.map +1 -1
  71. package/dist/components/Notifications/styles.d.ts +2 -0
  72. package/dist/components/Notifications/styles.d.ts.map +1 -1
  73. package/dist/components/Notifications/styles.js +65 -24
  74. package/dist/components/Notifications/styles.js.map +1 -1
  75. package/dist/components/Panel/index.d.ts.map +1 -1
  76. package/dist/components/Panel/index.js +50 -23
  77. package/dist/components/Panel/index.js.map +1 -1
  78. package/dist/components/Paragraph/index.d.ts.map +1 -1
  79. package/dist/components/Paragraph/index.js +3 -3
  80. package/dist/components/Paragraph/index.js.map +1 -1
  81. package/dist/components/Progress/index.d.ts.map +1 -1
  82. package/dist/components/Progress/index.js +11 -4
  83. package/dist/components/Progress/index.js.map +1 -1
  84. package/dist/components/SegmentedControl/index.d.ts +17 -0
  85. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  86. package/dist/components/SegmentedControl/index.js +93 -33
  87. package/dist/components/SegmentedControl/index.js.map +1 -1
  88. package/dist/components/Select/valuePreview.js +5 -2
  89. package/dist/components/Select/valuePreview.js.map +1 -1
  90. package/dist/components/SeverityRow/index.d.ts +8 -0
  91. package/dist/components/SeverityRow/index.d.ts.map +1 -1
  92. package/dist/components/SeverityRow/index.js +25 -10
  93. package/dist/components/SeverityRow/index.js.map +1 -1
  94. package/dist/components/Spacer/index.js +1 -1
  95. package/dist/components/Spacer/index.js.map +1 -1
  96. package/dist/components/Span/index.d.ts.map +1 -1
  97. package/dist/components/Span/index.js +3 -3
  98. package/dist/components/Span/index.js.map +1 -1
  99. package/dist/components/StackedBar/index.d.ts.map +1 -1
  100. package/dist/components/StackedBar/index.js +8 -2
  101. package/dist/components/StackedBar/index.js.map +1 -1
  102. package/dist/components/Statistic/index.d.ts +16 -1
  103. package/dist/components/Statistic/index.d.ts.map +1 -1
  104. package/dist/components/Statistic/index.js +6 -5
  105. package/dist/components/Statistic/index.js.map +1 -1
  106. package/dist/components/Table/body.d.ts.map +1 -1
  107. package/dist/components/Table/body.js +36 -4
  108. package/dist/components/Table/body.js.map +1 -1
  109. package/dist/components/Table/cell.d.ts.map +1 -1
  110. package/dist/components/Table/cell.js +36 -21
  111. package/dist/components/Table/cell.js.map +1 -1
  112. package/dist/components/Table/header.d.ts +8 -1
  113. package/dist/components/Table/header.d.ts.map +1 -1
  114. package/dist/components/Table/header.js +5 -5
  115. package/dist/components/Table/header.js.map +1 -1
  116. package/dist/components/Table/headerCell.d.ts +8 -1
  117. package/dist/components/Table/headerCell.d.ts.map +1 -1
  118. package/dist/components/Table/headerCell.js +30 -20
  119. package/dist/components/Table/headerCell.js.map +1 -1
  120. package/dist/components/Table/helpers.d.ts +32 -2
  121. package/dist/components/Table/helpers.d.ts.map +1 -1
  122. package/dist/components/Table/helpers.js +68 -5
  123. package/dist/components/Table/helpers.js.map +1 -1
  124. package/dist/components/Table/index.d.ts +43 -1
  125. package/dist/components/Table/index.d.ts.map +1 -1
  126. package/dist/components/Table/index.js +68 -77
  127. package/dist/components/Table/index.js.map +1 -1
  128. package/dist/components/Table/row.d.ts.map +1 -1
  129. package/dist/components/Table/row.js +4 -4
  130. package/dist/components/Table/row.js.map +1 -1
  131. package/dist/components/Tabs/item.d.ts.map +1 -1
  132. package/dist/components/Tabs/item.js +1 -1
  133. package/dist/components/Tabs/item.js.map +1 -1
  134. package/dist/components/Tabs/list.d.ts +4 -2
  135. package/dist/components/Tabs/list.d.ts.map +1 -1
  136. package/dist/components/Tabs/list.js +25 -15
  137. package/dist/components/Tabs/list.js.map +1 -1
  138. package/dist/components/Tag/index.d.ts.map +1 -1
  139. package/dist/components/Tag/index.js +5 -4
  140. package/dist/components/Tag/index.js.map +1 -1
  141. package/dist/components/Testimonial/index.d.ts.map +1 -1
  142. package/dist/components/Testimonial/index.js +5 -4
  143. package/dist/components/Testimonial/index.js.map +1 -1
  144. package/dist/components/Textarea/index.d.ts.map +1 -1
  145. package/dist/components/Textarea/index.js +5 -4
  146. package/dist/components/Textarea/index.js.map +1 -1
  147. package/dist/components/Tier/index.d.ts.map +1 -1
  148. package/dist/components/Tier/index.js +3 -3
  149. package/dist/components/Tier/index.js.map +1 -1
  150. package/dist/components/Timeline/index.d.ts.map +1 -1
  151. package/dist/components/Timeline/index.js +3 -2
  152. package/dist/components/Timeline/index.js.map +1 -1
  153. package/dist/constants/sizes.d.ts +11 -0
  154. package/dist/constants/sizes.d.ts.map +1 -1
  155. package/dist/constants/sizes.js +14 -1
  156. package/dist/constants/sizes.js.map +1 -1
  157. package/dist/constants/theme.d.ts +84 -0
  158. package/dist/constants/theme.d.ts.map +1 -1
  159. package/dist/constants/theme.js.map +1 -1
  160. package/dist/containers/UIProvider.d.ts.map +1 -1
  161. package/dist/containers/UIProvider.js +6 -2
  162. package/dist/containers/UIProvider.js.map +1 -1
  163. package/dist/helpers/colors.d.ts +11 -1
  164. package/dist/helpers/colors.d.ts.map +1 -1
  165. package/dist/helpers/colors.js +24 -3
  166. package/dist/helpers/colors.js.map +1 -1
  167. package/dist/helpers/typeScale.d.ts +25 -0
  168. package/dist/helpers/typeScale.d.ts.map +1 -0
  169. package/dist/helpers/typeScale.js +28 -0
  170. package/dist/helpers/typeScale.js.map +1 -0
  171. package/dist/hooks/useUppercaseLabels.d.ts +8 -0
  172. package/dist/hooks/useUppercaseLabels.d.ts.map +1 -0
  173. package/dist/hooks/useUppercaseLabels.js +13 -0
  174. package/dist/hooks/useUppercaseLabels.js.map +1 -0
  175. package/dist/index.d.ts +3 -0
  176. package/dist/index.d.ts.map +1 -1
  177. package/dist/index.js +11 -2
  178. package/dist/index.js.map +1 -1
  179. package/docs/docs/guides/theming.mdx +15 -0
  180. package/package.json +1 -1
  181. package/tests.json +0 -1
@@ -47,6 +47,7 @@ var styled_components_1 = require("styled-components");
47
47
  var styled_1 = __importDefault(require("../../helpers/styled"));
48
48
  var sizes_1 = require("../../constants/sizes");
49
49
  var colors_1 = require("../../helpers/colors");
50
+ var typeScale_1 = require("../../helpers/typeScale");
50
51
  var utils_1 = require("../../helpers/utils");
51
52
  var useReqoreContext_1 = require("../../hooks/useReqoreContext");
52
53
  var useTheme_1 = require("../../hooks/useTheme");
@@ -55,7 +56,7 @@ var Menu_1 = __importDefault(require("../Menu"));
55
56
  var item_1 = __importDefault(require("../Menu/item"));
56
57
  var Popover_1 = require("../Popover");
57
58
  var CONTAINER_PADDING = 3;
58
- var StyledSegmentedControl = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n position: relative;\n box-sizing: border-box;\n padding: ", "px;\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n width: ", ";\n overflow: hidden;\n gap: 0;\n\n ", "\n"], ["\n display: inline-flex;\n align-items: center;\n position: relative;\n box-sizing: border-box;\n padding: ", "px;\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n width: ", ";\n overflow: hidden;\n gap: 0;\n\n ", "\n"])), CONTAINER_PADDING, function (_a) {
59
+ var StyledSegmentedControl = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n position: relative;\n box-sizing: border-box;\n padding: ", "px;\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n width: ", ";\n max-width: ", ";\n overflow: hidden;\n gap: 0;\n\n ", "\n"], ["\n display: inline-flex;\n align-items: center;\n position: relative;\n box-sizing: border-box;\n padding: ", "px;\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n width: ", ";\n max-width: ", ";\n overflow: hidden;\n gap: 0;\n\n ", "\n"])), CONTAINER_PADDING, function (_a) {
59
60
  var theme = _a.theme;
60
61
  return (0, colors_1.changeLightness)(theme.main, 0.03);
61
62
  }, function (_a) {
@@ -67,11 +68,16 @@ var StyledSegmentedControl = styled_1.default.div(templateObject_2 || (templateO
67
68
  }, function (_a) {
68
69
  var fluid = _a.fluid;
69
70
  return (fluid ? '100%' : undefined);
71
+ }, function (_a) {
72
+ var foldToFit = _a.foldToFit;
73
+ return (foldToFit ? '100%' : undefined);
70
74
  }, function (_a) {
71
75
  var disabled = _a.disabled;
72
76
  return disabled && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n opacity: 0.5;\n pointer-events: none;\n "], ["\n opacity: 0.5;\n pointer-events: none;\n "])));
73
77
  });
74
- var StyledSegmentedControlIndicator = styled_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: absolute;\n top: ", "px;\n bottom: ", "px;\n left: 0;\n background-color: ", ";\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);\n border-radius: ", ";\n z-index: 0;\n pointer-events: none;\n\n ", "\n"], ["\n position: absolute;\n top: ", "px;\n bottom: ", "px;\n left: 0;\n background-color: ", ";\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);\n border-radius: ", ";\n z-index: 0;\n pointer-events: none;\n\n ", "\n"])), CONTAINER_PADDING, CONTAINER_PADDING, function (_a) {
78
+ /** The room a `foldToFit` control is given: as wide as its parent allows, never wider. */
79
+ var StyledFoldSlot = styled_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n min-width: 0;\n"], ["\n display: flex;\n width: 100%;\n min-width: 0;\n"])));
80
+ var StyledSegmentedControlIndicator = styled_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: absolute;\n top: ", "px;\n bottom: ", "px;\n left: 0;\n background-color: ", ";\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);\n border-radius: ", ";\n z-index: 0;\n pointer-events: none;\n\n ", "\n"], ["\n position: absolute;\n top: ", "px;\n bottom: ", "px;\n left: 0;\n background-color: ", ";\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);\n border-radius: ", ";\n z-index: 0;\n pointer-events: none;\n\n ", "\n"])), CONTAINER_PADDING, CONTAINER_PADDING, function (_a) {
75
81
  var theme = _a.theme;
76
82
  return theme.main;
77
83
  }, function (_a) {
@@ -80,9 +86,9 @@ var StyledSegmentedControlIndicator = styled_1.default.div(templateObject_4 || (
80
86
  }, function (_a) {
81
87
  var animate = _a.animate;
82
88
  return animate
83
- ? (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n transition: transform 0.2s ease-out, width 0.2s ease-out;\n "], ["\n transition: transform 0.2s ease-out, width 0.2s ease-out;\n "]))) : undefined;
89
+ ? (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n transition: transform 0.2s ease-out, width 0.2s ease-out;\n "], ["\n transition: transform 0.2s ease-out, width 0.2s ease-out;\n "]))) : undefined;
84
90
  });
85
- var StyledItemWrapper = styled_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n z-index: 1;\n display: flex;\n flex: ", ";\n\n &::after {\n content: '';\n position: absolute;\n right: 0;\n top: 20%;\n height: 60%;\n width: 1px;\n background-color: ", ";\n transition: opacity 0.15s ease-out;\n opacity: ", ";\n }\n"], ["\n position: relative;\n z-index: 1;\n display: flex;\n flex: ", ";\n\n &::after {\n content: '';\n position: absolute;\n right: 0;\n top: 20%;\n height: 60%;\n width: 1px;\n background-color: ", ";\n transition: opacity 0.15s ease-out;\n opacity: ", ";\n }\n"])), function (_a) {
91
+ var StyledItemWrapper = styled_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: relative;\n z-index: 1;\n display: flex;\n flex: ", ";\n\n &::after {\n content: '';\n position: absolute;\n right: 0;\n top: 20%;\n height: 60%;\n width: 1px;\n background-color: ", ";\n transition: opacity 0.15s ease-out;\n opacity: ", ";\n }\n"], ["\n position: relative;\n z-index: 1;\n display: flex;\n flex: ", ";\n\n &::after {\n content: '';\n position: absolute;\n right: 0;\n top: 20%;\n height: 60%;\n width: 1px;\n background-color: ", ";\n transition: opacity 0.15s ease-out;\n opacity: ", ";\n }\n"])), function (_a) {
86
92
  var fluid = _a.fluid;
87
93
  return (fluid ? '1 1 0' : '0 0 auto');
88
94
  }, function (_a) {
@@ -96,13 +102,13 @@ var StyledItemWrapper = styled_1.default.div(templateObject_5 || (templateObject
96
102
  * Estimate the pixel width of a segment item based on its content.
97
103
  * Same approach as Tabs: calculates width from label text size, icons, badges, and padding.
98
104
  */
99
- var estimateItemWidth = function (item, itemSize) {
105
+ var estimateItemWidth = function (item, itemSize, theme) {
100
106
  var _a, _b, _c, _d;
101
107
  if (itemSize === void 0) { itemSize = 'normal'; }
102
108
  var hPad = sizes_1.CONTROL_HORIZONTAL_PADDING_FROM_SIZE[itemSize];
103
109
  var width = hPad * 2;
104
110
  if (item.label) {
105
- width += (0, utils_1.calculateStringSizeInPixels)(item.label.toString(), sizes_1.CONTROL_TEXT_FROM_SIZE[itemSize]);
111
+ width += (0, utils_1.calculateStringSizeInPixels)(item.label.toString(), (0, typeScale_1.getControlTextSize)(theme, itemSize));
106
112
  }
107
113
  if ((_a = item.icon) !== null && _a !== void 0 ? _a : (_b = item.props) === null || _b === void 0 ? void 0 : _b.icon) {
108
114
  width += sizes_1.ICON_FROM_SIZE[itemSize] + sizes_1.PADDING_FROM_SIZE[itemSize] / 2;
@@ -112,16 +118,16 @@ var estimateItemWidth = function (item, itemSize) {
112
118
  }
113
119
  return width;
114
120
  };
115
- /**
116
- * Calculate the total estimated width of all items including gaps.
117
- * Mirrors the Tabs `getTabsLength` approach.
118
- */
119
- var getItemsLength = function (items, itemSize, selectedValue, overflowLabel) {
121
+ var MORE_KEY = '__more__';
122
+ var getItemsLength = function (items, itemSize, selectedValue, overflowLabel, theme, measured) {
120
123
  if (itemSize === void 0) { itemSize = 'normal'; }
121
124
  if (overflowLabel === void 0) { overflowLabel = 'More'; }
122
125
  return items.reduce(function (len, item) {
123
- var _a, _b;
126
+ var _a, _b, _c;
124
127
  if (Array.isArray(item)) {
128
+ if ((measured === null || measured === void 0 ? void 0 : measured[MORE_KEY]) && !item.some(function (i) { return i.value === selectedValue; })) {
129
+ return len + measured[MORE_KEY];
130
+ }
125
131
  // "More" group — estimate the More button width
126
132
  var isSelectedHidden = item.some(function (i) { return i.value === selectedValue; });
127
133
  var moreLabel = isSelectedHidden
@@ -129,10 +135,10 @@ var getItemsLength = function (items, itemSize, selectedValue, overflowLabel) {
129
135
  : overflowLabel;
130
136
  var hPad = sizes_1.CONTROL_HORIZONTAL_PADDING_FROM_SIZE[itemSize];
131
137
  var iconWidth = sizes_1.ICON_FROM_SIZE[itemSize] + sizes_1.PADDING_FROM_SIZE[itemSize] / 2;
132
- var labelWidth = (0, utils_1.calculateStringSizeInPixels)(moreLabel.toString(), sizes_1.CONTROL_TEXT_FROM_SIZE[itemSize]);
138
+ var labelWidth = (0, utils_1.calculateStringSizeInPixels)(moreLabel.toString(), (0, typeScale_1.getControlTextSize)(theme, itemSize));
133
139
  return len + hPad * 2 + iconWidth + labelWidth;
134
140
  }
135
- return len + estimateItemWidth(item, itemSize);
141
+ return len + ((_c = measured === null || measured === void 0 ? void 0 : measured[item.value]) !== null && _c !== void 0 ? _c : estimateItemWidth(item, itemSize, theme));
136
142
  }, 0);
137
143
  };
138
144
  /**
@@ -140,14 +146,15 @@ var getItemsLength = function (items, itemSize, selectedValue, overflowLabel) {
140
146
  * the total estimated width fits within the available space.
141
147
  * Same algorithm as Tabs `getTransformedItems`.
142
148
  */
143
- var getTransformedItems = function (items, availableWidth, itemSize, selectedValue, overflowLabel) {
149
+ var getTransformedItems = function (items, availableWidth, itemSize, selectedValue, overflowLabel, theme, measured) {
144
150
  if (itemSize === void 0) { itemSize = 'normal'; }
145
151
  if (overflowLabel === void 0) { overflowLabel = 'More'; }
146
152
  if (!availableWidth) {
147
153
  return items;
148
154
  }
149
155
  var newItems = __spreadArray([], items, true);
150
- while (getItemsLength(newItems, itemSize, selectedValue, overflowLabel) > availableWidth &&
156
+ while (getItemsLength(newItems, itemSize, selectedValue, overflowLabel, theme, measured) >
157
+ availableWidth &&
151
158
  newItems.length > 1) {
152
159
  var last = newItems[newItems.length - 1];
153
160
  if (Array.isArray(last)) {
@@ -165,8 +172,18 @@ var getTransformedItems = function (items, availableWidth, itemSize, selectedVal
165
172
  };
166
173
  var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function (_a, ref) {
167
174
  var _b, _c;
168
- var items = _a.items, value = _a.value, defaultValue = _a.defaultValue, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? 'normal' : _d, flat = _a.flat, pill = _a.pill, allowDeselect = _a.allowDeselect, activeIntent = _a.activeIntent, disabled = _a.disabled, readOnly = _a.readOnly, intent = _a.intent, customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, fluid = _a.fluid, className = _a.className, _e = _a.overflowLabel, overflowLabel = _e === void 0 ? 'More' : _e, _testWidth = _a._testWidth, rest = __rest(_a, ["items", "value", "defaultValue", "onChange", "size", "flat", "pill", "allowDeselect", "activeIntent", "disabled", "readOnly", "intent", "customTheme", "inheritCustomTheme", "fluid", "className", "overflowLabel", "_testWidth"]);
175
+ var items = _a.items, value = _a.value, defaultValue = _a.defaultValue, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? 'normal' : _d, flat = _a.flat, pill = _a.pill, allowDeselect = _a.allowDeselect, fitSize = _a.fitSize, activeIntent = _a.activeIntent, disabled = _a.disabled, readOnly = _a.readOnly, intent = _a.intent, customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, fluid = _a.fluid, className = _a.className, _e = _a.overflowLabel, overflowLabel = _e === void 0 ? 'More' : _e, foldToFit = _a.foldToFit, _testWidth = _a._testWidth, rest = __rest(_a, ["items", "value", "defaultValue", "onChange", "size", "flat", "pill", "allowDeselect", "fitSize", "activeIntent", "disabled", "readOnly", "intent", "customTheme", "inheritCustomTheme", "fluid", "className", "overflowLabel", "foldToFit", "_testWidth"]);
169
176
  var animations = (0, useReqoreContext_1.useReqoreProperty)('animations');
177
+ // Folding to fit keeps every segment at its own width, so `fluid` does not stretch them.
178
+ var stretch = fluid && !foldToFit;
179
+ // fitSize: the frame (its padding and its 1px border, top and bottom) comes out of
180
+ // the items, so the control as a whole is the size's height.
181
+ var fittedItemHeight = sizes_1.SIZE_TO_PX[size] - 2 * (CONTAINER_PADDING + (flat ? 0 : 1));
182
+ var fittedItemStyle = {
183
+ height: fittedItemHeight,
184
+ minHeight: fittedItemHeight,
185
+ maxHeight: fittedItemHeight,
186
+ };
170
187
  var theme = (0, useTheme_1.useReqoreTheme)('main', customTheme, intent, undefined, inheritCustomTheme);
171
188
  var _f = (0, react_2.useState)((_b = value !== null && value !== void 0 ? value : defaultValue) !== null && _b !== void 0 ? _b : (_c = items[0]) === null || _c === void 0 ? void 0 : _c.value), _value = _f[0], _setValue = _f[1];
172
189
  var itemRefs = (0, react_2.useRef)({});
@@ -174,10 +191,17 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
174
191
  var containerRef = (0, react_2.useRef)(null);
175
192
  var _g = (0, react_use_1.useMeasure)(), measureRef = _g[0], measuredWidth = _g[1].width;
176
193
  var _h = (0, react_2.useState)({ left: 0, width: 0 }), indicatorStyle = _h[0], setIndicatorStyle = _h[1];
177
- // Only constrain width when fluid (container has fixed width from parent)
178
- // or when _testWidth is explicitly provided for testing.
179
- // Non-fluid containers grow to fit their content, so overflow never applies.
180
- var availableWidth = _testWidth || (fluid ? measuredWidth : 0);
194
+ // foldToFit: the room the slot is given, and each segment's width as drawn.
195
+ var _j = (0, react_use_1.useMeasure)(), slotRef = _j[0], slotWidth = _j[1].width;
196
+ var measuredWidths = (0, react_2.useRef)({});
197
+ var _k = (0, react_2.useState)(0), measuredVersion = _k[0], setMeasuredVersion = _k[1];
198
+ // The frame's padding and border come out of the room the segments have.
199
+ var frameWidth = 2 * (CONTAINER_PADDING + (flat ? 0 : 1));
200
+ // Only constrain width when fluid (container has fixed width from parent),
201
+ // folding to fit (the slot's width) or when _testWidth is explicitly provided
202
+ // for testing. Other containers grow to fit their content, so overflow never applies.
203
+ var availableWidth = _testWidth ||
204
+ (foldToFit ? Math.max(0, slotWidth - frameWidth) : fluid ? measuredWidth : 0);
181
205
  // Sync controlled value
182
206
  (0, react_use_1.useUpdateEffect)(function () {
183
207
  if (value !== undefined) {
@@ -185,7 +209,11 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
185
209
  }
186
210
  }, [value]);
187
211
  // Transform items using the Tabs-style width estimation approach
188
- var transformedItems = (0, react_2.useMemo)(function () { return getTransformedItems(items, availableWidth, size, _value, overflowLabel); }, [items, availableWidth, size, _value, overflowLabel]);
212
+ var transformedItems = (0, react_2.useMemo)(function () {
213
+ return getTransformedItems(items, availableWidth, size, _value, overflowLabel, theme, foldToFit ? measuredWidths.current : undefined);
214
+ },
215
+ // `measuredVersion` stands for `measuredWidths`, a ref: a segment drawn at a new width.
216
+ [items, availableWidth, size, _value, overflowLabel, theme, foldToFit, measuredVersion]);
189
217
  // Split into visible items and hidden items (the More group)
190
218
  var visibleItems = (0, react_2.useMemo)(function () {
191
219
  return transformedItems.filter(function (item) { return !Array.isArray(item); });
@@ -231,6 +259,29 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
231
259
  });
232
260
  }
233
261
  }, [_value, items, isSelectedHidden, visibleItems, measuredWidth]);
262
+ // foldToFit: remember each drawn segment's width (and "More"'s), and fold again when
263
+ // one changed — a count that loaded, a label in another language. Segments keep
264
+ // their own width in this mode, so what is drawn is what they need.
265
+ (0, react_2.useLayoutEffect)(function () {
266
+ if (!foldToFit)
267
+ return;
268
+ var changed = false;
269
+ var record = function (key, el) {
270
+ var _a;
271
+ if (!el)
272
+ return;
273
+ var width = el.getBoundingClientRect().width;
274
+ if (width && Math.abs(((_a = measuredWidths.current[key]) !== null && _a !== void 0 ? _a : 0) - width) > 0.5) {
275
+ measuredWidths.current[key] = width;
276
+ changed = true;
277
+ }
278
+ };
279
+ visibleItems.forEach(function (item) { return record(item.value, wrapperRefs.current[item.value]); });
280
+ if (hasOverflow && !isSelectedHidden)
281
+ record(MORE_KEY, wrapperRefs.current[MORE_KEY]);
282
+ if (changed)
283
+ setMeasuredVersion(function (version) { return version + 1; });
284
+ });
234
285
  var handleSelect = (0, react_2.useCallback)(function (itemValue) {
235
286
  if (disabled || readOnly) {
236
287
  return;
@@ -279,7 +330,7 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
279
330
  if (!items || items.length === 0) {
280
331
  return null;
281
332
  }
282
- return ((0, jsx_runtime_1.jsxs)(StyledSegmentedControl, __assign({}, rest, { ref: function (node) {
333
+ var control = ((0, jsx_runtime_1.jsxs)(StyledSegmentedControl, __assign({}, rest, { ref: function (node) {
283
334
  containerRef.current =
284
335
  node;
285
336
  measureRef(node);
@@ -290,11 +341,11 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
290
341
  ref.current =
291
342
  node;
292
343
  }
293
- }, theme: theme, size: size, flat: flat, pill: pill, fluid: fluid, disabled: disabled, role: 'radiogroup', onKeyDown: handleKeyDown, className: "".concat(className || '', " reqore-segmented-control"), children: [_value && selectedVisibleIndex >= 0 && !isSelectedHidden && ((0, jsx_runtime_1.jsx)(StyledSegmentedControlIndicator, { className: 'reqore-segmented-control-indicator', theme: theme, size: size, pill: pill, animate: animations.buttons !== false, style: {
344
+ }, theme: theme, size: size, flat: flat, pill: pill, fluid: stretch, foldToFit: foldToFit, disabled: disabled, role: 'radiogroup', onKeyDown: handleKeyDown, className: "".concat(className || '', " reqore-segmented-control"), children: [_value && selectedVisibleIndex >= 0 && !isSelectedHidden && ((0, jsx_runtime_1.jsx)(StyledSegmentedControlIndicator, { className: 'reqore-segmented-control-indicator', theme: theme, size: size, pill: pill, animate: animations.buttons !== false, style: {
294
345
  transform: "translateX(".concat(indicatorStyle.left, "px)"),
295
346
  width: "".concat(indicatorStyle.width, "px"),
296
347
  } })), visibleItems.map(function (item, index) {
297
- var _a;
348
+ var _a, _b, _c;
298
349
  var isSelected = item.value === _value;
299
350
  var isBeforeSelected = index === selectedVisibleIndex - 1;
300
351
  var isLastVisible = index === visibleItems.length - 1 && !hasOverflow;
@@ -302,7 +353,7 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
302
353
  var selectedItemIntent = item.activeIntent || activeIntent;
303
354
  return ((0, jsx_runtime_1.jsx)(StyledItemWrapper, { ref: function (el) {
304
355
  wrapperRefs.current[item.value] = el;
305
- }, isSelected: isSelected, isBeforeSelected: isBeforeSelected, isLast: isLastVisible, theme: theme, fluid: fluid, children: (0, jsx_runtime_1.jsx)(Button_1.default, __assign({}, item.props, { ref: function (el) {
356
+ }, isSelected: isSelected, isBeforeSelected: isBeforeSelected, isLast: isLastVisible, theme: theme, fluid: stretch, children: (0, jsx_runtime_1.jsx)(Button_1.default, __assign({}, item.props, { ref: function (el) {
306
357
  itemRefs.current[item.value] = el;
307
358
  }, flat: true, transparent: true }, (0, lodash_1.omitBy)({
308
359
  icon: item.icon,
@@ -310,7 +361,7 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
310
361
  badge: item.badge,
311
362
  tooltip: item.tooltip,
312
363
  effect: item.effect,
313
- }, lodash_1.isUndefined), { disabled: itemDisabled, size: size, fluid: fluid, intent: isSelected && selectedItemIntent
364
+ }, lodash_1.isUndefined), { disabled: itemDisabled, size: size, fluid: stretch, intent: isSelected && selectedItemIntent
314
365
  ? selectedItemIntent
315
366
  : undefined, customTheme: isSelected && !selectedItemIntent
316
367
  ? {
@@ -320,14 +371,16 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
320
371
  ? 0
321
372
  : selectedVisibleIndex < 0 && index === 0
322
373
  ? 0
323
- : -1, className: "".concat(((_a = item.props) === null || _a === void 0 ? void 0 : _a.className) || '', " reqore-segmented-control-item"), pill: pill, children: item.label })) }, item.value));
324
- }), hasOverflow && ((0, jsx_runtime_1.jsx)(StyledItemWrapper, { isSelected: false, isBeforeSelected: false, isLast: true, theme: theme, fluid: fluid, children: (0, jsx_runtime_1.jsx)(Popover_1.ReqorePopover, { component: Button_1.default, componentProps: {
374
+ : -1, className: "".concat(((_a = item.props) === null || _a === void 0 ? void 0 : _a.className) || '', " reqore-segmented-control-item"), pill: pill, style: fitSize ? __assign(__assign({}, (_b = item.props) === null || _b === void 0 ? void 0 : _b.style), fittedItemStyle) : (_c = item.props) === null || _c === void 0 ? void 0 : _c.style, children: item.label })) }, item.value));
375
+ }), hasOverflow && ((0, jsx_runtime_1.jsx)(StyledItemWrapper, { ref: function (el) {
376
+ wrapperRefs.current[MORE_KEY] = el;
377
+ }, isSelected: false, isBeforeSelected: false, isLast: true, theme: theme, fluid: stretch, children: (0, jsx_runtime_1.jsx)(Popover_1.ReqorePopover, { component: Button_1.default, componentProps: {
325
378
  icon: 'ArrowDownSLine',
326
379
  flat: true,
327
380
  transparent: true,
328
381
  size: size,
329
382
  pill: pill,
330
- fluid: fluid,
383
+ fluid: stretch,
331
384
  active: isSelectedHidden,
332
385
  intent: isSelectedHidden ? activeIntent : undefined,
333
386
  customTheme: isSelectedHidden
@@ -335,15 +388,22 @@ var ReqoreSegmentedControl = (0, react_2.memo)((0, react_2.forwardRef)(function
335
388
  : customTheme,
336
389
  className: 'reqore-segmented-control-item reqore-segmented-control-more',
337
390
  label: moreLabel,
391
+ style: fitSize ? fittedItemStyle : undefined,
338
392
  }, closeOnOutsideClick: true, isReqoreComponent: true, noWrapper: true, handler: 'hoverStay',
339
393
  // the hidden segments' only way in: a tap opens it too
340
- opensOnTap: true, content: (0, jsx_runtime_1.jsx)(Menu_1.default, { customTheme: customTheme, children: hiddenItems.map(function (overflowItem) { return ((0, react_1.createElement)(item_1.default, __assign({}, overflowItem.props, { key: overflowItem.value }, (0, lodash_1.omitBy)({ icon: overflowItem.icon, rightIcon: overflowItem.rightIcon }, lodash_1.isUndefined), { disabled: overflowItem.disabled, selected: overflowItem.value === _value, intent: overflowItem.value === _value
394
+ opensOnTap: true, content: (0, jsx_runtime_1.jsx)(Menu_1.default, { customTheme: customTheme, children: hiddenItems.map(function (overflowItem) { return ((0, react_1.createElement)(item_1.default, __assign({}, overflowItem.props, { key: overflowItem.value }, (0, lodash_1.omitBy)({
395
+ icon: overflowItem.icon,
396
+ rightIcon: overflowItem.rightIcon,
397
+ // a folded "Healthy 3" keeps its count
398
+ badge: overflowItem.badge,
399
+ }, lodash_1.isUndefined), { disabled: overflowItem.disabled, selected: overflowItem.value === _value, intent: overflowItem.value === _value
341
400
  ? overflowItem.activeIntent || activeIntent
342
401
  : undefined, onClick: function (_event, _itemId, closePopover) {
343
402
  handleSelect(overflowItem.value);
344
403
  closePopover === null || closePopover === void 0 ? void 0 : closePopover();
345
- } }), overflowItem.label)); }) }) }) }, '__more__'))] })));
404
+ } }), overflowItem.label)); }) }) }) }, MORE_KEY))] })));
405
+ return foldToFit ? ((0, jsx_runtime_1.jsx)(StyledFoldSlot, { ref: slotRef, className: 'reqore-segmented-control-slot', children: control })) : (control);
346
406
  }));
347
407
  exports.default = ReqoreSegmentedControl;
348
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
408
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
349
409
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6C;AAC7C,+BAQe;AACf,uCAAwD;AACxD,uDAAwC;AACxC,gEAA0C;AAC1C,+CAQ+B;AAE/B,+CAA6E;AAC7E,6CAAkE;AAClE,iEAAiE;AACjE,iDAAsD;AActD,qDAAqC;AAErC,iDAAiC;AACjC,sDAA0C;AAC1C,sCAA2C;AA6F3C,IAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,IAAM,sBAAsB,GAAG,gBAAM,CAAC,GAAG,4TAA8B,kHAK1D,EAAiB,2BACR,EAAgD,eAC1D,EACyD,sBAClD,EACsD,cAC9D,EAA2C,yCAIlD,EAKC,IACJ,KAhBY,iBAAiB,EACR,UAAC,EAAS;QAA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CAAC,KAEA,YAAY,CAAC,KAAK,CACJ,CAClB,EA3BkC,CA2BlC,CAAC,GACS,GAEf,IAnEG,QAAQ,CAoEK,CACrB,KACsB,CAC1B,CAAC;IAEF,OAAO,SAAS,CAAC,CAAC,CAAC,CACjB,uBAAC,cAAc,IAAC,GAAG,EAAE,OAAO,EAAE,SAAS,EAAC,+BAA+B,YACpE,OAAO,GACO,CAClB,CAAC,CAAC,CAAC,CACF,OAAO,CACR,CAAC;AACJ,CAAC,CACF,CACF,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
@@ -21,7 +21,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
21
21
  */
22
22
  var styled_1 = __importDefault(require("../../helpers/styled"));
23
23
  var fonts_1 = require("../../constants/fonts");
24
- var sizes_1 = require("../../constants/sizes");
24
+ var typeScale_1 = require("../../helpers/typeScale");
25
25
  var selectItem_1 = require("../../helpers/selectItem");
26
26
  /**
27
27
  * The preview block itself.
@@ -40,7 +40,10 @@ var selectItem_1 = require("../../helpers/selectItem");
40
40
  * problem for a height one, since a wrapped line spends several visual lines
41
41
  * against a cap that counts logical ones.
42
42
  */
43
- var StyledValuePreview = styled_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: block;\n font-family: ", ";\n /* The scale, not the number it currently resolves to. 12px IS\n TEXT_FROM_SIZE.small, so writing the literal changes nothing today and\n silently stops tracking the day the scale moves. */\n font-size: ", "px;\n white-space: pre;\n"], ["\n display: block;\n font-family: ", ";\n /* The scale, not the number it currently resolves to. 12px IS\n TEXT_FROM_SIZE.small, so writing the literal changes nothing today and\n silently stops tracking the day the scale moves. */\n font-size: ", "px;\n white-space: pre;\n"])), fonts_1.MONO_FONT, sizes_1.TEXT_FROM_SIZE.small);
43
+ var StyledValuePreview = styled_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: block;\n font-family: ", ";\n /* The scale, not the number it currently resolves to: the theme's `small`\n running-text size (12px on Reqore's own scale), so the preview tracks the\n scale when it moves, a theme's `typeScale` included. */\n font-size: ", "px;\n white-space: pre;\n"], ["\n display: block;\n font-family: ", ";\n /* The scale, not the number it currently resolves to: the theme's \\`small\\`\n running-text size (12px on Reqore's own scale), so the preview tracks the\n scale when it moves, a theme's \\`typeScale\\` included. */\n font-size: ", "px;\n white-space: pre;\n"])), fonts_1.MONO_FONT, function (_a) {
44
+ var theme = _a.theme;
45
+ return (0, typeScale_1.getTextSize)(theme, 'small');
46
+ });
44
47
  /**
45
48
  * What the chip offers on hover.
46
49
  *
@@ -1 +1 @@
1
- {"version":3,"file":"valuePreview.js","sourceRoot":"","sources":["../../../src/components/Select/valuePreview.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;GASG;AACH,gEAA0C;AAC1C,+CAAkD;AAClD,+CAAuD;AACvD,uDAAkE;AAIlE;;;;;;;;;;;;;;;;GAgBG;AACH,IAAM,kBAAkB,GAAG,gBAAM,CAAC,IAAI,oWAAA,sCAErB,EAAS,2NAIX,EAAoB,4BAElC,KANgB,iBAAS,EAIX,sBAAc,CAAC,KAAK,CAElC,CAAC;AAEF;;;;;;GAMG;AACI,IAAM,iBAAiB,GAAG,UAC/B,IAA2C;IAE3C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,IAAM,OAAO,GAAG,IAAA,mCAAsB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAEnD,OAAO,OAAO,CAAC,CAAC;QACZ;YACE,OAAO,EAAE,CACP,uBAAC,kBAAkB,IAAC,SAAS,EAAC,kCAAkC,YAC7D,OAAO,GACW,CACtB;SACF;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC;AAlBW,QAAA,iBAAiB,qBAkB5B"}
1
+ {"version":3,"file":"valuePreview.js","sourceRoot":"","sources":["../../../src/components/Select/valuePreview.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;GASG;AACH,gEAA0C;AAC1C,+CAAkD;AAClD,qDAAsD;AACtD,uDAAkE;AAIlE;;;;;;;;;;;;;;;;GAgBG;AACH,IAAM,kBAAkB,GAAG,gBAAM,CAAC,IAAI,uXAAA,sCAErB,EAAS,sPAIX,EAA0C,4BAExD,KANgB,iBAAS,EAIX,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,IAAA,uBAAW,EAAC,KAAK,EAAE,OAAO,CAAC;AAA3B,CAA2B,CAExD,CAAC;AAEF;;;;;;GAMG;AACI,IAAM,iBAAiB,GAAG,UAC/B,IAA2C;IAE3C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,IAAM,OAAO,GAAG,IAAA,mCAAsB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAEnD,OAAO,OAAO,CAAC,CAAC;QACZ;YACE,OAAO,EAAE,CACP,uBAAC,kBAAkB,IAAC,SAAS,EAAC,kCAAkC,YAC7D,OAAO,GACW,CACtB;SACF;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC;AAlBW,QAAA,iBAAiB,qBAkB5B"}
@@ -45,6 +45,14 @@ export interface IReqoreSeverityRowProps extends Omit<React.HTMLAttributes<HTMLD
45
45
  transparent?: boolean;
46
46
  /** Show the colored severity strip on the left edge. Default `true`. */
47
47
  showStrip?: boolean;
48
+ /**
49
+ * Keep the strip's column when the row has neither a strip (`showStrip={false}`) nor a
50
+ * `leading` mark. Default `true`: the label starts where a striped row's does, so rows with and
51
+ * without a strip line up in one list. `false` drops the empty column, so the label starts at
52
+ * the row's padding — for a list whose rows never carry a strip, where the column is 20px of
53
+ * nothing before every label.
54
+ */
55
+ stripGutter?: boolean;
48
56
  /** Rounded corners on the row. Default `true`. */
49
57
  rounded?: boolean;
50
58
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SeverityRow/index.tsx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"));
86
86
  var ControlGroup_1 = __importDefault(require("../ControlGroup"));
87
87
  var Effect_1 = require("../Effect");
88
+ var typeScale_1 = require("../../helpers/typeScale");
88
89
  var Paragraph_1 = require("../Paragraph");
89
90
  var Span_1 = require("../Span");
90
91
  var RowActionsMenu_1 = __importStar(require("../RowActionsMenu"));
@@ -130,7 +131,7 @@ var StyledRow = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
130
131
  shouldForwardProp: styled_1.omitStyleProps.apply(void 0, __spreadArray(['disabled',
131
132
  'inheritCustomTheme',
132
133
  'radiusSize'], styled_1.REQORE_CONTROL_GROUP_CHILD_PROPS, false)),
133
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: ", "px 1fr auto;\n gap: ", "px;\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n border: ", ";\n align-items: center;\n width: ", ";\n color: ", ";\n transition: background-color 0.15s ease-out;\n\n /* Narrow-container layout \u2014 driven by a data-narrow attribute\n stamped on the row by a ResizeObserver on the wrapper. See the\n StyledContainer docstring for why we don't use CSS container\n queries here.\n\n row-gap is deliberately tighter than the (horizontal) column gap:\n when the actions wrap under the label the row already has extra\n visual breathing room from the description above it, so a full\n column-gap between description and buttons reads as a dead band.\n Uses PADDING_FROM_SIZE[size] directly (half the column gap) so it\n scales with the row's size scale. */\n &[data-narrow='true'] {\n grid-template-columns: ", "px 1fr;\n grid-auto-rows: max-content;\n row-gap: ", "px;\n }\n &[data-narrow='true'] > .reqore-severity-row-actions {\n grid-column: 2 / -1;\n grid-row: 2;\n max-width: 100%;\n justify-content: flex-start;\n }\n\n /* Narrow, the actions stack under the label, one to a line (each the row's width in a phone-width container), with its label\n whole (qorus#646): kept on one line that does not wrap, two labelled actions reached past the row on\n a phone. An icon's tooltip is its label there, and a finger gets a target it can hit. */\n @media (pointer: coarse) {\n &[data-narrow='true'] > .reqore-severity-row-actions > .reqore-button {\n min-height: ", "px;\n }\n }\n\n /* Narrow, two or more actions are one menu button at the end of the label's line (qorus#646), not\n a line each under it: the label keeps its width, and a list of rows does not grow by a line per\n action. A row of that mode with one action keeps it there too, as a button of its own ('end'): under the\n label it was a line of its own for one button, where a row with more had none (David, qorus#646). */\n &[data-narrow='true'][data-actions='menu'],\n &[data-narrow='true'][data-actions='end'] {\n grid-template-columns: ", "px 1fr auto;\n }\n /* The last column, named: an item placed in a row with its column left to the grid is placed before\n the items around it, in the first column. */\n &[data-narrow='true'][data-actions='menu'] > .reqore-severity-row-actions,\n &[data-narrow='true'][data-actions='end'] > .reqore-severity-row-actions {\n grid-column: -2 / -1;\n grid-row: 1;\n align-self: start;\n }\n\n ", "\n\n ", "\n\n ", "\n"], ["\n display: grid;\n grid-template-columns: ", "px 1fr auto;\n gap: ", "px;\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n border: ", ";\n align-items: center;\n width: ", ";\n color: ", ";\n transition: background-color 0.15s ease-out;\n\n /* Narrow-container layout \u2014 driven by a data-narrow attribute\n stamped on the row by a ResizeObserver on the wrapper. See the\n StyledContainer docstring for why we don't use CSS container\n queries here.\n\n row-gap is deliberately tighter than the (horizontal) column gap:\n when the actions wrap under the label the row already has extra\n visual breathing room from the description above it, so a full\n column-gap between description and buttons reads as a dead band.\n Uses PADDING_FROM_SIZE[size] directly (half the column gap) so it\n scales with the row's size scale. */\n &[data-narrow='true'] {\n grid-template-columns: ", "px 1fr;\n grid-auto-rows: max-content;\n row-gap: ", "px;\n }\n &[data-narrow='true'] > .reqore-severity-row-actions {\n grid-column: 2 / -1;\n grid-row: 2;\n max-width: 100%;\n justify-content: flex-start;\n }\n\n /* Narrow, the actions stack under the label, one to a line (each the row's width in a phone-width container), with its label\n whole (qorus#646): kept on one line that does not wrap, two labelled actions reached past the row on\n a phone. An icon's tooltip is its label there, and a finger gets a target it can hit. */\n @media (pointer: coarse) {\n &[data-narrow='true'] > .reqore-severity-row-actions > .reqore-button {\n min-height: ", "px;\n }\n }\n\n /* Narrow, two or more actions are one menu button at the end of the label's line (qorus#646), not\n a line each under it: the label keeps its width, and a list of rows does not grow by a line per\n action. A row of that mode with one action keeps it there too, as a button of its own ('end'): under the\n label it was a line of its own for one button, where a row with more had none (David, qorus#646). */\n &[data-narrow='true'][data-actions='menu'],\n &[data-narrow='true'][data-actions='end'] {\n grid-template-columns: ", "px 1fr auto;\n }\n /* The last column, named: an item placed in a row with its column left to the grid is placed before\n the items around it, in the first column. */\n &[data-narrow='true'][data-actions='menu'] > .reqore-severity-row-actions,\n &[data-narrow='true'][data-actions='end'] > .reqore-severity-row-actions {\n grid-column: -2 / -1;\n grid-row: 1;\n align-self: start;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), STRIP_WIDTH_PX, function (_a) {
134
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: ", "px 1fr auto;\n gap: ", "px;\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n border: ", ";\n align-items: center;\n width: ", ";\n color: ", ";\n transition: background-color 0.15s ease-out;\n\n /* Narrow-container layout \u2014 driven by a data-narrow attribute\n stamped on the row by a ResizeObserver on the wrapper. See the\n StyledContainer docstring for why we don't use CSS container\n queries here.\n\n row-gap is deliberately tighter than the (horizontal) column gap:\n when the actions wrap under the label the row already has extra\n visual breathing room from the description above it, so a full\n column-gap between description and buttons reads as a dead band.\n Uses PADDING_FROM_SIZE[size] directly (half the column gap) so it\n scales with the row's size scale. */\n &[data-narrow='true'] {\n grid-template-columns: ", "px 1fr;\n grid-auto-rows: max-content;\n row-gap: ", "px;\n }\n &[data-narrow='true'] > .reqore-severity-row-actions {\n grid-column: 2 / -1;\n grid-row: 2;\n max-width: 100%;\n justify-content: flex-start;\n }\n\n /* Narrow, the actions stack under the label, one to a line (each the row's width in a phone-width container), with its label\n whole (qorus#646): kept on one line that does not wrap, two labelled actions reached past the row on\n a phone. An icon's tooltip is its label there, and a finger gets a target it can hit. */\n @media (pointer: coarse) {\n &[data-narrow='true'] > .reqore-severity-row-actions > .reqore-button {\n min-height: ", "px;\n }\n }\n\n /* Narrow, two or more actions are one menu button at the end of the label's line (qorus#646), not\n a line each under it: the label keeps its width, and a list of rows does not grow by a line per\n action. A row of that mode with one action keeps it there too, as a button of its own ('end'): under the\n label it was a line of its own for one button, where a row with more had none (David, qorus#646). */\n &[data-narrow='true'][data-actions='menu'],\n &[data-narrow='true'][data-actions='end'] {\n grid-template-columns: ", "px 1fr auto;\n }\n /* A row without a strip whose `leading` mark (a status dot) takes the strip's column: the mark\n sits in the gutter, level with the label's first line, and the label and description wrap\n beside it. It used to be the first item of the label's WRAPPING line, so a label too long for\n the rest of that line moved down whole and left the mark alone on a line of its own. */\n &[data-leading-column='true'] {\n grid-template-columns: auto 1fr auto;\n }\n &[data-leading-column='true'][data-narrow='true'] {\n grid-template-columns: auto 1fr;\n }\n &[data-leading-column='true'][data-narrow='true'][data-actions='menu'] {\n grid-template-columns: auto 1fr auto;\n }\n\n /* stripGutter={false} on a row with no strip and no mark: no first column, so the label starts\n at the row's padding. */\n &[data-gutter='none'] {\n grid-template-columns: 1fr auto;\n }\n &[data-gutter='none'][data-narrow='true'] {\n grid-template-columns: 1fr;\n }\n &[data-gutter='none'][data-narrow='true']:not([data-actions='menu']) > .reqore-severity-row-actions {\n grid-column: 1 / -1;\n }\n &[data-gutter='none'][data-narrow='true'][data-actions='menu'] {\n grid-template-columns: 1fr auto;\n }\n\n /* The last column, named: an item placed in a row with its column left to the grid is placed before\n the items around it, in the first column. */\n &[data-narrow='true'][data-actions='menu'] > .reqore-severity-row-actions,\n &[data-narrow='true'][data-actions='end'] > .reqore-severity-row-actions {\n grid-column: -2 / -1;\n grid-row: 1;\n align-self: start;\n }\n\n ", "\n\n ", "\n\n ", "\n"], ["\n display: grid;\n grid-template-columns: ", "px 1fr auto;\n gap: ", "px;\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n border: ", ";\n align-items: center;\n width: ", ";\n color: ", ";\n transition: background-color 0.15s ease-out;\n\n /* Narrow-container layout \u2014 driven by a data-narrow attribute\n stamped on the row by a ResizeObserver on the wrapper. See the\n StyledContainer docstring for why we don't use CSS container\n queries here.\n\n row-gap is deliberately tighter than the (horizontal) column gap:\n when the actions wrap under the label the row already has extra\n visual breathing room from the description above it, so a full\n column-gap between description and buttons reads as a dead band.\n Uses PADDING_FROM_SIZE[size] directly (half the column gap) so it\n scales with the row's size scale. */\n &[data-narrow='true'] {\n grid-template-columns: ", "px 1fr;\n grid-auto-rows: max-content;\n row-gap: ", "px;\n }\n &[data-narrow='true'] > .reqore-severity-row-actions {\n grid-column: 2 / -1;\n grid-row: 2;\n max-width: 100%;\n justify-content: flex-start;\n }\n\n /* Narrow, the actions stack under the label, one to a line (each the row's width in a phone-width container), with its label\n whole (qorus#646): kept on one line that does not wrap, two labelled actions reached past the row on\n a phone. An icon's tooltip is its label there, and a finger gets a target it can hit. */\n @media (pointer: coarse) {\n &[data-narrow='true'] > .reqore-severity-row-actions > .reqore-button {\n min-height: ", "px;\n }\n }\n\n /* Narrow, two or more actions are one menu button at the end of the label's line (qorus#646), not\n a line each under it: the label keeps its width, and a list of rows does not grow by a line per\n action. A row of that mode with one action keeps it there too, as a button of its own ('end'): under the\n label it was a line of its own for one button, where a row with more had none (David, qorus#646). */\n &[data-narrow='true'][data-actions='menu'],\n &[data-narrow='true'][data-actions='end'] {\n grid-template-columns: ", "px 1fr auto;\n }\n /* A row without a strip whose \\`leading\\` mark (a status dot) takes the strip's column: the mark\n sits in the gutter, level with the label's first line, and the label and description wrap\n beside it. It used to be the first item of the label's WRAPPING line, so a label too long for\n the rest of that line moved down whole and left the mark alone on a line of its own. */\n &[data-leading-column='true'] {\n grid-template-columns: auto 1fr auto;\n }\n &[data-leading-column='true'][data-narrow='true'] {\n grid-template-columns: auto 1fr;\n }\n &[data-leading-column='true'][data-narrow='true'][data-actions='menu'] {\n grid-template-columns: auto 1fr auto;\n }\n\n /* stripGutter={false} on a row with no strip and no mark: no first column, so the label starts\n at the row's padding. */\n &[data-gutter='none'] {\n grid-template-columns: 1fr auto;\n }\n &[data-gutter='none'][data-narrow='true'] {\n grid-template-columns: 1fr;\n }\n &[data-gutter='none'][data-narrow='true']:not([data-actions='menu']) > .reqore-severity-row-actions {\n grid-column: 1 / -1;\n }\n &[data-gutter='none'][data-narrow='true'][data-actions='menu'] {\n grid-template-columns: 1fr auto;\n }\n\n /* The last column, named: an item placed in a row with its column left to the grid is placed before\n the items around it, in the first column. */\n &[data-narrow='true'][data-actions='menu'] > .reqore-severity-row-actions,\n &[data-narrow='true'][data-actions='end'] > .reqore-severity-row-actions {\n grid-column: -2 / -1;\n grid-row: 1;\n align-self: start;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), STRIP_WIDTH_PX, function (_a) {
134
135
  var size = _a.size;
135
136
  return sizes_1.PADDING_FROM_SIZE[size] * 2;
136
137
  }, function (_a) {
@@ -166,8 +167,8 @@ var StyledRow = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
166
167
  return $clickable && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n "], ["\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n "])), $intent
167
168
  ? (0, polished_1.rgba)(theme.intents[$intent], $transparent ? 0.04 : 0.1)
168
169
  : $transparent
169
- ? (0, polished_1.rgba)((0, colors_1.changeLightness)((0, colors_1.getMainBackgroundColor)(theme), 0.08), 0.08)
170
- : (0, polished_1.rgba)((0, colors_1.changeLightness)((0, colors_1.getMainBackgroundColor)(theme), 0.08), 1));
170
+ ? (0, polished_1.rgba)((0, colors_1.getPanelHairlineColor)(theme), 0.08)
171
+ : (0, polished_1.rgba)((0, colors_1.getPanelHairlineColor)(theme), 1));
171
172
  }, function (_a) {
172
173
  var $raised = _a.$raised, flat = _a.flat;
173
174
  return $raised && flat !== false && styles_1.RaisedElement;
@@ -183,7 +184,16 @@ var StyledStrip = styled_1.default.div(templateObject_4 || (templateObject_4 = _
183
184
  return (0, polished_1.rgba)(stripColorFor(theme, $intent), 0.3);
184
185
  });
185
186
  var StyledBody = styled_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n gap: 4px;\n min-width: 0;\n"], ["\n display: flex;\n flex-flow: column;\n gap: 4px;\n min-width: 0;\n"])));
186
- var StyledLabelLine = styled_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: ", ";\n min-width: 0;\n font-weight: 500;\n"], ["\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: ", ";\n min-width: 0;\n font-weight: 500;\n"])), function (_a) {
187
+ /** The strip's column, holding the `leading` mark instead: one line tall at the label's own size,
188
+ * so the mark is centred on the label's first line however many lines the text runs to. */
189
+ var StyledLeadingCell = styled_1.default.span(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-self: start;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: ", "px;\n font-weight: 500;\n height: 1.2em;\n height: 1lh;\n"], ["\n align-self: start;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: ", "px;\n font-weight: 500;\n height: 1.2em;\n height: 1lh;\n"])), function (_a) {
190
+ var theme = _a.theme, $size = _a.$size;
191
+ return (0, typeScale_1.getTextSize)(theme, $size);
192
+ });
193
+ /** A mark kept on the label's line (a row WITH a strip): the mark and the label never part. The
194
+ * label shrinks and wraps its own words beside the mark rather than moving below it. */
195
+ var StyledLeadingGroup = styled_1.default.span(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n flex: 0 1 auto;\n"], ["\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n flex: 0 1 auto;\n"])));
196
+ var StyledLabelLine = styled_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: ", ";\n min-width: 0;\n font-weight: 500;\n"], ["\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: ", ";\n min-width: 0;\n font-weight: 500;\n"])), function (_a) {
187
197
  var $wrap = _a.$wrap;
188
198
  return ($wrap ? 'wrap' : 'nowrap');
189
199
  });
@@ -191,13 +201,13 @@ var StyledLabelLine = styled_1.default.div(templateObject_6 || (templateObject_6
191
201
  // not its wrapper. Cascade the ellipsis CSS into the child <ReqoreP>/<ReqoreSpan>
192
202
  // so the `…` glyph actually appears, while keeping the wrapper itself a flex
193
203
  // item that can shrink (`min-width: 0; flex: 1 1 auto`) inside its parent.
194
- var StyledTextSlot = styled_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n min-width: 0;\n ", "\n"], ["\n min-width: 0;\n ", "\n"])), function (_a) {
204
+ var StyledTextSlot = styled_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n min-width: 0;\n ", "\n"], ["\n min-width: 0;\n ", "\n"])), function (_a) {
195
205
  var $wrap = _a.$wrap;
196
- return !$wrap && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n flex: 1 1 auto;\n overflow: hidden;\n\n & > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n max-width: 100%;\n }\n "], ["\n flex: 1 1 auto;\n overflow: hidden;\n\n & > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n max-width: 100%;\n }\n "])));
206
+ return !$wrap && (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n flex: 1 1 auto;\n overflow: hidden;\n\n & > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n max-width: 100%;\n }\n "], ["\n flex: 1 1 auto;\n overflow: hidden;\n\n & > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n max-width: 100%;\n }\n "])));
197
207
  });
198
208
  var ReqoreSeverityRow = (0, react_1.memo)((0, react_1.forwardRef)(function (_a, ref) {
199
209
  var _b;
200
- var label = _a.label, description = _a.description, leading = _a.leading, badge = _a.badge, actions = _a.actions, _c = _a.narrowActions, narrowActions = _c === void 0 ? 'stack' : _c, actionsMenuLabel = _a.actionsMenuLabel, intent = _a.intent, _d = _a.transparent, transparent = _d === void 0 ? false : _d, _e = _a.showStrip, showStrip = _e === void 0 ? true : _e, _f = _a.size, size = _f === void 0 ? 'normal' : _f, _g = _a.flat, flat = _g === void 0 ? true : _g, _h = _a.fluid, fluid = _h === void 0 ? true : _h, _j = _a.rounded, rounded = _j === void 0 ? true : _j, raised = _a.raised, customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, disabled = _a.disabled, tooltip = _a.tooltip, effect = _a.effect, labelEffect = _a.labelEffect, descriptionEffect = _a.descriptionEffect, _k = _a.wrap, wrap = _k === void 0 ? true : _k, _l = _a.padded, padded = _l === void 0 ? true : _l, paddingSize = _a.paddingSize, className = _a.className, rest = __rest(_a, ["label", "description", "leading", "badge", "actions", "narrowActions", "actionsMenuLabel", "intent", "transparent", "showStrip", "size", "flat", "fluid", "rounded", "raised", "customTheme", "inheritCustomTheme", "disabled", "tooltip", "effect", "labelEffect", "descriptionEffect", "wrap", "padded", "paddingSize", "className"]);
210
+ var label = _a.label, description = _a.description, leading = _a.leading, badge = _a.badge, actions = _a.actions, _c = _a.narrowActions, narrowActions = _c === void 0 ? 'stack' : _c, actionsMenuLabel = _a.actionsMenuLabel, intent = _a.intent, _d = _a.transparent, transparent = _d === void 0 ? false : _d, _e = _a.showStrip, showStrip = _e === void 0 ? true : _e, _f = _a.stripGutter, stripGutter = _f === void 0 ? true : _f, _g = _a.size, size = _g === void 0 ? 'normal' : _g, _h = _a.flat, flat = _h === void 0 ? true : _h, _j = _a.fluid, fluid = _j === void 0 ? true : _j, _k = _a.rounded, rounded = _k === void 0 ? true : _k, raised = _a.raised, customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, disabled = _a.disabled, tooltip = _a.tooltip, effect = _a.effect, labelEffect = _a.labelEffect, descriptionEffect = _a.descriptionEffect, _l = _a.wrap, wrap = _l === void 0 ? true : _l, _m = _a.padded, padded = _m === void 0 ? true : _m, paddingSize = _a.paddingSize, className = _a.className, rest = __rest(_a, ["label", "description", "leading", "badge", "actions", "narrowActions", "actionsMenuLabel", "intent", "transparent", "showStrip", "stripGutter", "size", "flat", "fluid", "rounded", "raised", "customTheme", "inheritCustomTheme", "disabled", "tooltip", "effect", "labelEffect", "descriptionEffect", "wrap", "padded", "paddingSize", "className"]);
201
211
  var theme = (0, useTheme_1.useReqoreTheme)('main', customTheme, undefined, undefined, inheritCustomTheme);
202
212
  var secondarySize = (0, react_1.useMemo)(function () { return (0, utils_1.getOneLessSize)(size); }, [size]);
203
213
  var interactive = !!(rest.onClick || rest.onDoubleClick);
@@ -207,10 +217,15 @@ var ReqoreSeverityRow = (0, react_1.memo)((0, react_1.forwardRef)(function (_a,
207
217
  case, where a narrow container sits on a wide screen. The result is
208
218
  stamped on StyledRow as `data-narrow` and an attribute selector rewrites
209
219
  the grid. Shared with ReqoreEntityRow so both rows break at one width. */
210
- var _m = (0, useNarrowContainer_1.useNarrowContainer)(useNarrowContainer_1.SEVERITY_ROW_NARROW_BREAKPOINT_PX), containerRef = _m[0], isNarrow = _m[1], isPhoneWidth = _m[2];
220
+ var _o = (0, useNarrowContainer_1.useNarrowContainer)(useNarrowContainer_1.SEVERITY_ROW_NARROW_BREAKPOINT_PX), containerRef = _o[0], isNarrow = _o[1], isPhoneWidth = _o[2];
211
221
  var loneAction = (actions === null || actions === void 0 ? void 0 : actions.length) === 1;
212
222
  // Narrow, two or more actions are one menu button only where the caller asks for it.
213
223
  var actionsAsMenu = isNarrow && narrowActions === 'menu' && ((_b = actions === null || actions === void 0 ? void 0 : actions.length) !== null && _b !== void 0 ? _b : 0) > 1;
224
+ var hasLeading = leading !== undefined && leading !== null && leading !== false;
225
+ // Without a strip, the mark takes the strip's column (see StyledRow).
226
+ var leadingColumn = hasLeading && !showStrip;
227
+ // Nothing to put in the strip's column, and the caller does not want it kept empty.
228
+ var noGutter = !showStrip && !hasLeading && !stripGutter;
214
229
  /* Narrow, a row that folds two or more into a menu keeps its one action where the menu would be - only
215
230
  while its container is wider than a phone. As narrow as a phone, the action goes under the label and
216
231
  spans the row like any lone action there (David and Foxhoundn, qorus#646). */
@@ -240,7 +255,7 @@ var ReqoreSeverityRow = (0, react_1.memo)((0, react_1.forwardRef)(function (_a,
240
255
  ? 'end'
241
256
  : actionsStacked
242
257
  ? 'stack'
243
- : 'row' }, rest, { Component: StyledRow, tooltip: tooltip, ref: ref, theme: theme, "$intent": intent, "$transparent": transparent, size: size, "$fluid": fluid, flat: flat, rounded: rounded, "$raised": raised, "$clickable": interactive, "$padded": padded, "$paddingSize": paddingSize !== null && paddingSize !== void 0 ? paddingSize : size, disabled: disabled, effect: effect, className: "".concat(className || '', " reqore-severity-row"), children: [showStrip ? ((0, jsx_runtime_1.jsx)(StyledStrip, { theme: theme, "$intent": intent, className: 'reqore-severity-row-strip', "aria-hidden": true })) : ((0, jsx_runtime_1.jsx)("span", { "aria-hidden": true, style: { width: STRIP_WIDTH_PX } })), (0, jsx_runtime_1.jsxs)(StyledBody, { className: 'reqore-severity-row-body', children: [(0, jsx_runtime_1.jsxs)(StyledLabelLine, { "$wrap": wrap, className: 'reqore-severity-row-label', children: [leading, (0, jsx_runtime_1.jsx)(StyledTextSlot, { "$wrap": wrap, children: (0, jsx_runtime_1.jsx)(Span_1.ReqoreSpan, { size: size, effect: labelEffect, children: label }) }), hasBadge && ((0, jsx_runtime_1.jsx)(Button_1.ButtonBadge, { size: size, content: badge, margin: 'none' }))] }), description && ((0, jsx_runtime_1.jsx)(StyledTextSlot, { "$wrap": wrap, children: (0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { as: (0, Paragraph_1.getReqoreTextElement)(description), size: secondarySize, effect: __assign({ opacity: 0.6 }, descriptionEffect), className: 'reqore-severity-row-description', children: description }) }))] }), actionsAsMenu && ((0, jsx_runtime_1.jsx)(RowActionsMenu_1.default, { className: 'reqore-severity-row-actions', actions: actions, size: size, intent: intent, label: actionsMenuLabel, rowLabel: (0, RowActionsMenu_1.rowLabelText)(label) })), !actionsAsMenu && actions && actions.length > 0 && ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { gapSize: 'small', className: 'reqore-severity-row-actions',
258
+ : 'row', "data-leading-column": leadingColumn || undefined, "data-gutter": noGutter ? 'none' : undefined }, rest, { Component: StyledRow, tooltip: tooltip, ref: ref, theme: theme, "$intent": intent, "$transparent": transparent, size: size, "$fluid": fluid, flat: flat, rounded: rounded, "$raised": raised, "$clickable": interactive, "$padded": padded, "$paddingSize": paddingSize !== null && paddingSize !== void 0 ? paddingSize : size, disabled: disabled, effect: effect, className: "".concat(className || '', " reqore-severity-row"), children: [showStrip ? ((0, jsx_runtime_1.jsx)(StyledStrip, { theme: theme, "$intent": intent, className: 'reqore-severity-row-strip', "aria-hidden": true })) : leadingColumn ? ((0, jsx_runtime_1.jsx)(StyledLeadingCell, { theme: theme, "$size": size, className: 'reqore-severity-row-leading', children: leading })) : noGutter ? null : ((0, jsx_runtime_1.jsx)("span", { "aria-hidden": true, style: { width: STRIP_WIDTH_PX } })), (0, jsx_runtime_1.jsxs)(StyledBody, { className: 'reqore-severity-row-body', children: [(0, jsx_runtime_1.jsxs)(StyledLabelLine, { "$wrap": wrap, className: 'reqore-severity-row-label', children: [hasLeading && !leadingColumn ? ((0, jsx_runtime_1.jsxs)(StyledLeadingGroup, { className: 'reqore-severity-row-leading', children: [leading, (0, jsx_runtime_1.jsx)(StyledTextSlot, { "$wrap": wrap, children: (0, jsx_runtime_1.jsx)(Span_1.ReqoreSpan, { size: size, effect: labelEffect, children: label }) })] })) : ((0, jsx_runtime_1.jsx)(StyledTextSlot, { "$wrap": wrap, children: (0, jsx_runtime_1.jsx)(Span_1.ReqoreSpan, { size: size, effect: labelEffect, children: label }) })), hasBadge && ((0, jsx_runtime_1.jsx)(Button_1.ButtonBadge, { size: size, content: badge, margin: 'none' }))] }), description && ((0, jsx_runtime_1.jsx)(StyledTextSlot, { "$wrap": wrap, children: (0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { as: (0, Paragraph_1.getReqoreTextElement)(description), size: secondarySize, effect: __assign({ opacity: 0.6 }, descriptionEffect), className: 'reqore-severity-row-description', children: description }) }))] }), actionsAsMenu && ((0, jsx_runtime_1.jsx)(RowActionsMenu_1.default, { className: 'reqore-severity-row-actions', actions: actions, size: size, intent: intent, label: actionsMenuLabel, rowLabel: (0, RowActionsMenu_1.rowLabelText)(label) })), !actionsAsMenu && actions && actions.length > 0 && ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { gapSize: 'small', className: 'reqore-severity-row-actions',
244
259
  /* narrow and stacked: one to a line, each the row's width in a container a phone's width or
245
260
  narrower and as wide as its label in a wider one; narrow in a row: as wide as they are, onto
246
261
  another line where they do not fit - a lone one the row's width as narrow as a phone */
@@ -271,5 +286,5 @@ var ReqoreSeverityRow = (0, react_1.memo)((0, react_1.forwardRef)(function (_a,
271
286
  }) }))] })) }));
272
287
  }));
273
288
  exports.default = ReqoreSeverityRow;
274
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
289
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
275
290
  //# sourceMappingURL=index.js.map