@luscii-healthtech/web-ui 60.0.0 → 60.2.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.
- package/dist/esm/components/Checkbox/LabeledCheckboxCardGroup.js +2 -2
- package/dist/esm/components/Checkbox/LabeledCheckboxCardGroup.js.map +1 -1
- package/dist/esm/components/Checkbox/LabeledCheckboxGroup.js +2 -2
- package/dist/esm/components/Checkbox/LabeledCheckboxGroup.js.map +1 -1
- package/dist/esm/components/{Table/Table.js → DataGrid/DataGrid.js} +5 -4
- package/dist/esm/components/DataGrid/DataGrid.js.map +1 -0
- package/dist/esm/components/{Table/Table.utils.js → DataGrid/DataGrid.utils.js} +1 -1
- package/dist/esm/components/DataGrid/DataGrid.utils.js.map +1 -0
- package/dist/esm/components/DataGrid/TableBody.js.map +1 -0
- package/dist/esm/components/{Table → DataGrid}/TableBodyRowDataCell.js +1 -1
- package/dist/esm/components/DataGrid/TableBodyRowDataCell.js.map +1 -0
- package/dist/esm/components/DataGrid/TableFooter.js.map +1 -0
- package/dist/esm/components/DataGrid/TableHeader.js.map +1 -0
- package/dist/esm/components/DatePicker/LabeledDatePicker.js +1 -1
- package/dist/esm/components/DatePicker/LabeledDatePicker.js.map +1 -1
- package/dist/esm/components/Input/LabeledInput.js +4 -2
- package/dist/esm/components/Input/LabeledInput.js.map +1 -1
- package/dist/esm/components/Input/StyledInput.js +18 -4
- package/dist/esm/components/Input/StyledInput.js.map +1 -1
- package/dist/esm/components/Radio/LabeledRadioCardGroup.js +2 -2
- package/dist/esm/components/Radio/LabeledRadioCardGroup.js.map +1 -1
- package/dist/esm/components/Radio/LabeledRadioGroup.js +2 -2
- package/dist/esm/components/Radio/LabeledRadioGroup.js.map +1 -1
- package/dist/esm/components/Select/LabeledSelect.js +1 -1
- package/dist/esm/components/Select/LabeledSelect.js.map +1 -1
- package/dist/esm/components/Select/LabeledSelectSearchable.js +2 -1
- package/dist/esm/components/Select/LabeledSelectSearchable.js.map +1 -1
- package/dist/esm/components/forms/shared/FieldsetLegend.js +17 -0
- package/dist/esm/components/forms/shared/FieldsetLegend.js.map +1 -0
- package/dist/esm/components/forms/shared/HelperAndErrorText.js +1 -1
- package/dist/esm/components/forms/shared/HelperAndErrorText.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/index.development.js +44 -15
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/Checkbox/LabeledCheckboxCardGroup.d.ts +10 -2
- package/dist/src/components/Checkbox/LabeledCheckboxGroup.d.ts +9 -1
- package/dist/src/{generated/components/Table/Table.d.ts → components/DataGrid/DataGrid.d.ts} +14 -5
- package/dist/src/components/{Table/Table.types.d.ts → DataGrid/DataGrid.types.d.ts} +13 -5
- package/dist/src/{generated/components/Table/Table.utils.d.ts → components/DataGrid/DataGrid.utils.d.ts} +3 -3
- package/dist/src/{generated/components/Table → components/DataGrid}/TableBody.d.ts +2 -2
- package/dist/src/components/{Table → DataGrid}/TableBodyRowDataCell.d.ts +2 -2
- package/dist/src/{generated/components/Table → components/DataGrid}/TableHeader.d.ts +2 -2
- package/dist/src/components/DatePicker/LabeledDatePicker.d.ts +9 -1
- package/dist/src/components/Input/LabeledInput.d.ts +10 -1
- package/dist/src/components/Radio/LabeledRadioCardGroup.d.ts +10 -2
- package/dist/src/components/Radio/LabeledRadioGroup.d.ts +9 -1
- package/dist/src/components/Select/LabeledSelect.d.ts +9 -1
- package/dist/src/components/Select/LabeledSelectSearchable.d.ts +8 -1
- package/dist/src/components/forms/shared/FieldsetLegend.d.ts +22 -0
- package/dist/src/generated/components/Checkbox/LabeledCheckboxCardGroup.d.ts +10 -2
- package/dist/src/generated/components/Checkbox/LabeledCheckboxGroup.d.ts +9 -1
- package/dist/src/{components/Table/Table.d.ts → generated/components/DataGrid/DataGrid.d.ts} +14 -5
- package/dist/src/generated/components/{Table/Table.types.d.ts → DataGrid/DataGrid.types.d.ts} +13 -5
- package/dist/src/{components/Table/Table.utils.d.ts → generated/components/DataGrid/DataGrid.utils.d.ts} +3 -3
- package/dist/src/{components/Table → generated/components/DataGrid}/TableBody.d.ts +2 -2
- package/dist/src/generated/components/{Table → DataGrid}/TableBodyRowDataCell.d.ts +2 -2
- package/dist/src/{components/Table → generated/components/DataGrid}/TableHeader.d.ts +2 -2
- package/dist/src/generated/components/DatePicker/LabeledDatePicker.d.ts +9 -1
- package/dist/src/generated/components/Input/LabeledInput.d.ts +10 -1
- package/dist/src/generated/components/Radio/LabeledRadioCardGroup.d.ts +10 -2
- package/dist/src/generated/components/Radio/LabeledRadioGroup.d.ts +9 -1
- package/dist/src/generated/components/Select/LabeledSelect.d.ts +9 -1
- package/dist/src/generated/components/Select/LabeledSelectSearchable.d.ts +8 -1
- package/dist/src/generated/components/forms/shared/FieldsetLegend.d.ts +22 -0
- package/dist/src/generated/index.d.ts +3 -3
- package/dist/src/index.d.ts +3 -3
- package/dist/stories/{Table.stories.d.ts → DataGrid.stories.d.ts} +16 -17
- package/dist/stories/LabeledCheckbox.stories.d.ts +5 -0
- package/dist/stories/LabeledDatePicker.stories.d.ts +6 -1
- package/dist/stories/LabeledInput.stories.d.ts +13 -1
- package/dist/stories/LabeledRadio.stories.d.ts +10 -0
- package/dist/stories/LabeledSelectSearchable.stories.d.ts +6 -1
- package/dist/stories/Select.stories.d.ts +5 -0
- package/dist/web-ui-tailwind.css +3 -0
- package/package.json +1 -1
- package/dist/esm/components/Table/Table.js.map +0 -1
- package/dist/esm/components/Table/Table.utils.js.map +0 -1
- package/dist/esm/components/Table/TableBody.js.map +0 -1
- package/dist/esm/components/Table/TableBodyRowDataCell.js.map +0 -1
- package/dist/esm/components/Table/TableFooter.js.map +0 -1
- package/dist/esm/components/Table/TableHeader.js.map +0 -1
- /package/dist/esm/components/{Table → DataGrid}/TableBody.js +0 -0
- /package/dist/esm/components/{Table → DataGrid}/TableFooter.js +0 -0
- /package/dist/esm/components/{Table → DataGrid}/TableHeader.js +0 -0
- /package/dist/src/components/{Table → DataGrid}/TableFooter.d.ts +0 -0
- /package/dist/src/generated/components/{Table → DataGrid}/TableFooter.d.ts +0 -0
|
@@ -2030,7 +2030,7 @@ const HelperAndErrorText = (props) => {
|
|
|
2030
2030
|
if (showHelperText) {
|
|
2031
2031
|
return jsxRuntime.jsx(Box, { id: props.describingId, children: jsxRuntime.jsx(Text, { variant: "sm", color: "slate-500", containsDangerousHtml: typeof props.helperText === "string", className: linkClasses, children: props.helperText }) });
|
|
2032
2032
|
}
|
|
2033
|
-
return jsxRuntime.jsx(Box, { id: props.describingId, children: props.errorText && jsxRuntime.jsx(Text, { variant: "sm", color: "red", children: props.errorText }) });
|
|
2033
|
+
return jsxRuntime.jsx(Box, { id: props.describingId, className: "ui:empty:hidden", children: props.errorText && jsxRuntime.jsx(Text, { variant: "sm", color: "red", children: props.errorText }) });
|
|
2034
2034
|
};
|
|
2035
2035
|
|
|
2036
2036
|
const LabelText = (props) => {
|
|
@@ -2131,16 +2131,27 @@ const LabeledCheckboxCard = React__namespace.default.forwardRef((props, ref) =>
|
|
|
2131
2131
|
return jsxRuntime.jsx(LabeledCheckboxBase, Object.assign({}, props, { ref, variant: "card" }));
|
|
2132
2132
|
});
|
|
2133
2133
|
|
|
2134
|
+
const FieldsetLegend = ({ children }) => jsxRuntime.jsx("legend", { className: "ui:contents", children: renderLegendContent(children) });
|
|
2135
|
+
const renderLegendContent = (children) => {
|
|
2136
|
+
if (typeof children === "string") {
|
|
2137
|
+
return jsxRuntime.jsx(Text, { as: "span", className: "ui:block", children });
|
|
2138
|
+
}
|
|
2139
|
+
if (React__namespace.default.isValidElement(children) && children.type !== React__namespace.default.Fragment) {
|
|
2140
|
+
return children;
|
|
2141
|
+
}
|
|
2142
|
+
return jsxRuntime.jsx("span", { className: "ui:block", children });
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2134
2145
|
const LabeledCheckboxGroup = (props) => {
|
|
2135
2146
|
const { children, title, className } = props;
|
|
2136
2147
|
const semanticId = React__namespace.default.useId();
|
|
2137
|
-
return jsxRuntime.jsxs(Stack, { as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default(className), _gap: "base", children: [title && jsxRuntime.jsx(
|
|
2148
|
+
return jsxRuntime.jsxs(Stack, { as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default(className), _gap: "base", children: [title && jsxRuntime.jsx(FieldsetLegend, { children: title }), jsxRuntime.jsx(Stack, { _gap: "l", children }), jsxRuntime.jsx(HelperAndErrorText, { helperText: props.helperText, errorText: props.errorText, describingId: semanticId })] });
|
|
2138
2149
|
};
|
|
2139
2150
|
|
|
2140
2151
|
const LabeledCheckboxCardGroup = (props) => {
|
|
2141
2152
|
const { children, title, className, columns = 2, stretch = false, helperText, errorText } = props, attributes = __rest(props, ["children", "title", "className", "columns", "stretch", "helperText", "errorText"]);
|
|
2142
2153
|
const semanticId = React__namespace.default.useId();
|
|
2143
|
-
return jsxRuntime.jsxs(Stack, Object.assign({ as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default({ "ui:w-full": stretch }, className), _gap: "base", align: stretch ? "stretch" : "start" }, attributes, { children: [title && jsxRuntime.jsx(
|
|
2154
|
+
return jsxRuntime.jsxs(Stack, Object.assign({ as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default({ "ui:w-full": stretch }, className), _gap: "base", align: stretch ? "stretch" : "start" }, attributes, { children: [title && jsxRuntime.jsx(FieldsetLegend, { children: title }), jsxRuntime.jsx("div", { className: classNames__default.default("ui:grid ui:gap-x-m ui:gap-y-xs ui:items-start", {
|
|
2144
2155
|
"ui:grid-cols-1": columns === 1,
|
|
2145
2156
|
"ui:grid-cols-2": columns === 2,
|
|
2146
2157
|
"ui:grid-cols-3": columns === 3,
|
|
@@ -2206,7 +2217,7 @@ LabeledRadioCard.displayName = "LabeledRadioCard";
|
|
|
2206
2217
|
const LabeledRadioCardGroup = (props) => {
|
|
2207
2218
|
const { children, title, className, columns = 2, helperText, errorText } = props, attributes = __rest(props, ["children", "title", "className", "columns", "helperText", "errorText"]);
|
|
2208
2219
|
const semanticId = React__namespace.default.useId();
|
|
2209
|
-
return jsxRuntime.jsxs(Stack, Object.assign({ as: "fieldset", "aria-describedby": semanticId, className, _gap: "
|
|
2220
|
+
return jsxRuntime.jsxs(Stack, Object.assign({ as: "fieldset", "aria-describedby": semanticId, className, _gap: "base", width: "full" }, attributes, { children: [title && jsxRuntime.jsx(FieldsetLegend, { children: title }), jsxRuntime.jsx("div", { className: classNames__default.default("ui:grid ui:gap-x-m ui:gap-y-xs ui:items-start ui:w-full", {
|
|
2210
2221
|
"ui:grid-cols-1": columns === 1,
|
|
2211
2222
|
"ui:grid-cols-2": columns === 2,
|
|
2212
2223
|
"ui:grid-cols-3": columns === 3,
|
|
@@ -2319,7 +2330,7 @@ const LabeledRadioGroup = (props) => {
|
|
|
2319
2330
|
axis: "y",
|
|
2320
2331
|
_gap: "base"
|
|
2321
2332
|
};
|
|
2322
|
-
return jsxRuntime.jsxs(Stack, { as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default(className), _gap: "
|
|
2333
|
+
return jsxRuntime.jsxs(Stack, { as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default(className), _gap: "base", children: [title && jsxRuntime.jsx(FieldsetLegend, { children: title }), jsxRuntime.jsx(Stack, Object.assign({}, orientationProps, { children })), jsxRuntime.jsx(HelperAndErrorText, { helperText: props.helperText, errorText: props.errorText, describingId: semanticId })] });
|
|
2323
2334
|
};
|
|
2324
2335
|
|
|
2325
2336
|
const ConfirmationDialogChoices = (props) => {
|
|
@@ -2501,9 +2512,19 @@ const calculateResponsiveGrowClasses = (size) => {
|
|
|
2501
2512
|
|
|
2502
2513
|
const StyledInput = React__namespace.default.forwardRef((_a, ref) => {
|
|
2503
2514
|
var { suffix, prefix, className, width = "full", height = "lg", icon, isError, isClearIconVisible, onClickClearField } = _a, attributes = __rest(_a, ["suffix", "prefix", "className", "width", "height", "icon", "isError", "isClearIconVisible", "onClickClearField"]);
|
|
2515
|
+
const inputRef = React__namespace.default.useRef(null);
|
|
2516
|
+
React__namespace.default.useImperativeHandle(ref, () => inputRef.current);
|
|
2504
2517
|
const hasPrefix = !!prefix;
|
|
2505
2518
|
const hasSuffix = !!suffix;
|
|
2506
2519
|
const hasNoExtraContent = !hasPrefix && !hasSuffix;
|
|
2520
|
+
const focusInput = (event) => {
|
|
2521
|
+
var _a2;
|
|
2522
|
+
if (attributes.disabled) {
|
|
2523
|
+
return;
|
|
2524
|
+
}
|
|
2525
|
+
event.preventDefault();
|
|
2526
|
+
(_a2 = inputRef.current) === null || _a2 === void 0 ? void 0 : _a2.focus();
|
|
2527
|
+
};
|
|
2507
2528
|
const heightClasses = {
|
|
2508
2529
|
md: "ui:h-form-md",
|
|
2509
2530
|
lg: "ui:h-form-lg"
|
|
@@ -2517,12 +2538,16 @@ const StyledInput = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
2517
2538
|
"ui:order-1": hasSuffix,
|
|
2518
2539
|
"ui:rounded-l ui:border-l": hasPrefix,
|
|
2519
2540
|
"ui:rounded-r ui:border-r": hasSuffix
|
|
2520
|
-
}, "ui:flex ui:flex-col ui:items-center", "ui:text-sm", "ui:text-slate-500", "ui:bg-main-background"), children: suffix || prefix }), jsxRuntime.jsxs("div", { className: classNames__default.default("ui:relative", calculateResponsiveGrowClasses(width)), children: [icon && jsxRuntime.jsx("div", { className: classNames__default.default(
|
|
2521
|
-
|
|
2522
|
-
|
|
2541
|
+
}, "ui:flex ui:flex-col ui:items-center", "ui:text-sm", "ui:text-slate-500", "ui:bg-main-background"), onMouseDown: focusInput, children: suffix || prefix }), jsxRuntime.jsxs("div", { className: classNames__default.default("ui:relative", calculateResponsiveGrowClasses(width)), children: [icon && jsxRuntime.jsx("div", { className: classNames__default.default(
|
|
2542
|
+
// Let clicks on the icon fall through to the input underneath
|
|
2543
|
+
"ui:pointer-events-none ui:absolute ui:left-4 ui:top-1/2",
|
|
2544
|
+
{
|
|
2545
|
+
"ui:grow": width === "full"
|
|
2546
|
+
}
|
|
2547
|
+
), style: {
|
|
2523
2548
|
transform: "translateY(-50%)",
|
|
2524
2549
|
zIndex: 20
|
|
2525
|
-
}, children: jsxRuntime.jsx(IconComponentOrKey, { name: icon, className: "ui:h-6 ui:w-6 ui:text-slate-300" }) }), jsxRuntime.jsx("input", Object.assign({ ref, className: classNames__default.default("ui:block", calculateResponsiveWidthClasses(width), { "ui:pl-12": icon }, {
|
|
2550
|
+
}, children: jsxRuntime.jsx(IconComponentOrKey, { name: icon, className: "ui:h-6 ui:w-6 ui:text-slate-300" }) }), jsxRuntime.jsx("input", Object.assign({ ref: inputRef, className: classNames__default.default("ui:block", calculateResponsiveWidthClasses(width), { "ui:pl-12": icon }, {
|
|
2526
2551
|
"ui:bg-slate-50 ui:text-slate-400": attributes.disabled,
|
|
2527
2552
|
"ui:text-slate-800": !attributes.disabled,
|
|
2528
2553
|
"ui:border-input-border": !attributes.disabled && !isError,
|
|
@@ -2669,14 +2694,16 @@ const LabeledDatePicker = (_a) => {
|
|
|
2669
2694
|
"ui:!border-negative-border": isError,
|
|
2670
2695
|
"ui:!focus:outline-negative": isError
|
|
2671
2696
|
}, classNameFromProps);
|
|
2672
|
-
return jsxRuntime.jsxs(Stack, { as: "label", _gap: "
|
|
2697
|
+
return jsxRuntime.jsxs(Stack, { as: "label", _gap: "base", align: fullWidth ? "stretch" : void 0, children: [label && jsxRuntime.jsx(LabelText, { as: "span", className: "ui:block", children: label }), jsxRuntime.jsx(DatePicker, Object.assign({}, props, { className: datePickerClassNames, "aria-describedby": helperErrorTextId })), jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: helperErrorTextId })] });
|
|
2673
2698
|
};
|
|
2674
2699
|
|
|
2675
2700
|
const LabeledInput = React__namespace.default.forwardRef((props, ref) => {
|
|
2676
|
-
const { className, helperText, errorText, label, width, fullWidth, "aria-describedby": ariaDescribedBy } = props, rest = __rest(props, ["className", "helperText", "errorText", "label", "width", "fullWidth", "aria-describedby"]);
|
|
2701
|
+
const { className, helperText, errorText, label, width, fullWidth, id, "aria-describedby": ariaDescribedBy } = props, rest = __rest(props, ["className", "helperText", "errorText", "label", "width", "fullWidth", "id", "aria-describedby"]);
|
|
2702
|
+
const generatedInputId = React__namespace.default.useId();
|
|
2703
|
+
const inputId = id || generatedInputId;
|
|
2677
2704
|
const helperErrorTextId = React__namespace.default.useId();
|
|
2678
2705
|
const fieldWidth = width !== null && width !== void 0 ? width : fullWidth ? "full" : void 0;
|
|
2679
|
-
return jsxRuntime.jsxs(Stack, {
|
|
2706
|
+
return jsxRuntime.jsxs(Stack, { _gap: "base", align: fieldWidth ? "stretch" : void 0, className: classNames__default.default(fieldWidth && calculateResponsiveWidthClasses(fieldWidth), className), children: [label && jsxRuntime.jsx(LabelText, { as: "label", htmlFor: inputId, children: label }), jsxRuntime.jsx(StyledInput, Object.assign({}, rest, { id: inputId, ref, isError: Boolean(errorText), "aria-describedby": [ariaDescribedBy, helperErrorTextId].filter(Boolean).join(" ") })), jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: helperErrorTextId })] });
|
|
2680
2707
|
});
|
|
2681
2708
|
|
|
2682
2709
|
const Actions$1 = (props) => {
|
|
@@ -3515,7 +3542,7 @@ const TableFooter = (props) => {
|
|
|
3515
3542
|
return jsxRuntime.jsx("tfoot", { children: jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { className: "ui:rounded-b-2xl ui:border-x ui:border-b ui:border-neutral-border-high-contrast", colSpan: props.colSpan, children: jsxRuntime.jsx(PaginationMenu, Object.assign({ className: "ui:p-6" }, props.paginationMenuProps)) }) }) });
|
|
3516
3543
|
};
|
|
3517
3544
|
|
|
3518
|
-
function
|
|
3545
|
+
function DataGrid(_a) {
|
|
3519
3546
|
var { items, fieldConfigurations, emptyRowsText, emptyFieldContentText, isLoading = false, showHeader = true, paginationMenuProps, onRowClick, className, dataTestId, isSelectable, selectedItems, onSelectedRowsChange, rowSelectionHeaderAccessories } = _a, otherAttributes = __rest(_a, ["items", "fieldConfigurations", "emptyRowsText", "emptyFieldContentText", "isLoading", "showHeader", "paginationMenuProps", "onRowClick", "className", "dataTestId", "isSelectable", "selectedItems", "onSelectedRowsChange", "rowSelectionHeaderAccessories"]);
|
|
3520
3547
|
const [isPristine, setIsPristine] = React.useState(true);
|
|
3521
3548
|
const selectAllCheckboxId = React.useId();
|
|
@@ -3586,6 +3613,7 @@ function Table(_a) {
|
|
|
3586
3613
|
}
|
|
3587
3614
|
), showFooter ? jsxRuntime.jsx(TableFooter, { colSpan, paginationMenuProps }) : null] }));
|
|
3588
3615
|
}
|
|
3616
|
+
const Table = DataGrid;
|
|
3589
3617
|
|
|
3590
3618
|
const isPlainText = (node) => {
|
|
3591
3619
|
return typeof node === "string" || typeof node === "number";
|
|
@@ -4517,7 +4545,7 @@ const Select = React__namespace.default.forwardRef((_a, innerRef) => {
|
|
|
4517
4545
|
const LabeledSelect = React__namespace.default.forwardRef((props, ref) => {
|
|
4518
4546
|
const { className, helperText, errorText, label, fullWidth, "aria-describedby": ariaDescribedBy } = props, rest = __rest(props, ["className", "helperText", "errorText", "label", "fullWidth", "aria-describedby"]);
|
|
4519
4547
|
const helperErrorTextId = React__namespace.default.useId();
|
|
4520
|
-
return jsxRuntime.jsxs(Stack, { as: "label", _gap: "
|
|
4548
|
+
return jsxRuntime.jsxs(Stack, { as: "label", _gap: "base", align: fullWidth ? "stretch" : void 0, className, children: [label && jsxRuntime.jsx(LabelText, { as: "span", className: "ui:block", children: props.label }), jsxRuntime.jsx(StyledSelect, Object.assign({}, rest, { ref, isError: Boolean(errorText), "aria-describedby": [ariaDescribedBy, helperErrorTextId].join(" ") })), jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: helperErrorTextId })] });
|
|
4521
4549
|
});
|
|
4522
4550
|
|
|
4523
4551
|
const LabeledSelectSearchable = React__namespace.default.forwardRef((props, ref) => {
|
|
@@ -4527,7 +4555,7 @@ const LabeledSelectSearchable = React__namespace.default.forwardRef((props, ref)
|
|
|
4527
4555
|
const errorMessageId = React__namespace.default.useId();
|
|
4528
4556
|
const hasError = Boolean(errorText);
|
|
4529
4557
|
const labelledBy = [ariaLabelledBy, label ? labelId : void 0].filter(Boolean).join(" ") || void 0;
|
|
4530
|
-
return jsxRuntime.jsxs(Stack, { _gap: "
|
|
4558
|
+
return jsxRuntime.jsxs(Stack, { _gap: "base", align: fullWidth ? "stretch" : void 0, className, children: [label && jsxRuntime.jsx(Box, { id: labelId, children: jsxRuntime.jsx(LabelText, { as: "span", className: "ui:block", children: label }) }), jsxRuntime.jsx(Select, Object.assign({}, rest, { ref, isError: hasError, "aria-labelledby": labelledBy, "aria-invalid": hasError || void 0, "aria-errormessage": hasError ? errorMessageId : void 0 })), jsxRuntime.jsx("div", { id: errorMessageId, "aria-live": "polite", className: classNames__default.default({ "ui:sr-only": !helperText && !errorText }), children: jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: helperErrorTextId }) })] });
|
|
4531
4559
|
});
|
|
4532
4560
|
|
|
4533
4561
|
const useOutsideClick = (ref, callback) => {
|
|
@@ -7389,6 +7417,7 @@ exports.CrossIcon = CrossIcon;
|
|
|
7389
7417
|
exports.CrossInCircleIcon = CrossInCircleIcon;
|
|
7390
7418
|
exports.CrossInFilledCircleIcon = CrossInFilledCircleIcon;
|
|
7391
7419
|
exports.DashboardIcon = DashboardIcon;
|
|
7420
|
+
exports.DataGrid = DataGrid;
|
|
7392
7421
|
exports.DatabaseIcon = DatabaseIcon;
|
|
7393
7422
|
exports.DatePicker = DatePicker;
|
|
7394
7423
|
exports.DatePickerV2 = DatePicker;
|