@luscii-healthtech/web-ui 62.0.2 → 63.0.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/ButtonGroup/ButtonGroup.js +4 -5
- package/dist/esm/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/esm/components/ButtonV2/ButtonV2.js +4 -4
- package/dist/esm/components/ButtonV2/ButtonV2.js.map +1 -1
- package/dist/esm/components/ButtonV2/PrimaryButton.js +5 -4
- package/dist/esm/components/ButtonV2/PrimaryButton.js.map +1 -1
- package/dist/esm/components/ButtonV2/PrimaryIconButton.js +4 -5
- package/dist/esm/components/ButtonV2/PrimaryIconButton.js.map +1 -1
- package/dist/esm/components/ButtonV2/SecondaryButton.js +4 -5
- package/dist/esm/components/ButtonV2/SecondaryButton.js.map +1 -1
- package/dist/esm/components/ButtonV2/SecondaryIconButton.js +4 -5
- package/dist/esm/components/ButtonV2/SecondaryIconButton.js.map +1 -1
- package/dist/esm/components/ButtonV2/TertiaryButton.js +5 -4
- package/dist/esm/components/ButtonV2/TertiaryButton.js.map +1 -1
- package/dist/esm/components/ButtonV2/TertiaryIconButton.js +4 -5
- package/dist/esm/components/ButtonV2/TertiaryIconButton.js.map +1 -1
- package/dist/esm/components/DataGrid/DataGrid.js +1 -2
- package/dist/esm/components/DataGrid/DataGrid.js.map +1 -1
- package/dist/esm/components/DragHandle/DragHandle.js +3 -4
- package/dist/esm/components/DragHandle/DragHandle.js.map +1 -1
- package/dist/esm/components/DropdownTrigger/DropdownTrigger.js +3 -5
- package/dist/esm/components/DropdownTrigger/DropdownTrigger.js.map +1 -1
- package/dist/esm/components/{TableNew/TableNew.js → Table/Table.js} +11 -10
- package/dist/esm/components/Table/Table.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/index.development.js +47 -46
- 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/ButtonGroup/ButtonGroup.d.ts +4 -3
- package/dist/src/components/ButtonV2/ButtonV2.d.ts +2 -2
- package/dist/src/components/ButtonV2/PrimaryButton.d.ts +2 -2
- package/dist/src/components/ButtonV2/PrimaryIconButton.d.ts +1 -2
- package/dist/src/components/ButtonV2/SecondaryButton.d.ts +1 -2
- package/dist/src/components/ButtonV2/SecondaryIconButton.d.ts +1 -2
- package/dist/src/components/ButtonV2/TertiaryButton.d.ts +2 -2
- package/dist/src/components/ButtonV2/TertiaryIconButton.d.ts +1 -2
- package/dist/src/components/DataGrid/DataGrid.d.ts +1 -8
- package/dist/src/components/DataGrid/DataGrid.types.d.ts +0 -8
- package/dist/src/components/DragHandle/DragHandle.d.ts +2 -6
- package/dist/src/components/DragHandle/DragHandle.types.d.ts +1 -0
- package/dist/src/components/DropdownTrigger/DropdownTrigger.d.ts +2 -2
- package/dist/src/{generated/components/TableNew/TableNew.d.ts → components/Table/Table.d.ts} +4 -2
- package/dist/src/components/Table/index.d.ts +1 -0
- package/dist/src/generated/components/ButtonGroup/ButtonGroup.d.ts +4 -3
- package/dist/src/generated/components/ButtonV2/ButtonV2.d.ts +2 -2
- package/dist/src/generated/components/ButtonV2/PrimaryButton.d.ts +2 -2
- package/dist/src/generated/components/ButtonV2/PrimaryIconButton.d.ts +1 -2
- package/dist/src/generated/components/ButtonV2/SecondaryButton.d.ts +1 -2
- package/dist/src/generated/components/ButtonV2/SecondaryIconButton.d.ts +1 -2
- package/dist/src/generated/components/ButtonV2/TertiaryButton.d.ts +2 -2
- package/dist/src/generated/components/ButtonV2/TertiaryIconButton.d.ts +1 -2
- package/dist/src/generated/components/DataGrid/DataGrid.d.ts +1 -8
- package/dist/src/generated/components/DataGrid/DataGrid.types.d.ts +0 -8
- package/dist/src/generated/components/DragHandle/DragHandle.d.ts +2 -6
- package/dist/src/generated/components/DragHandle/DragHandle.types.d.ts +1 -0
- package/dist/src/generated/components/DropdownTrigger/DropdownTrigger.d.ts +2 -2
- package/dist/src/{components/TableNew/TableNew.d.ts → generated/components/Table/Table.d.ts} +4 -2
- package/dist/src/generated/components/Table/index.d.ts +1 -0
- package/dist/src/generated/index.d.ts +3 -3
- package/dist/src/index.d.ts +3 -3
- package/dist/stories/Button.stories.d.ts +1 -1
- package/dist/stories/ButtonGroup.stories.d.ts +1 -1
- package/dist/stories/CardTableRecipe.stories.d.ts +2 -2
- package/dist/stories/DragHandle.stories.d.ts +1 -6
- package/dist/stories/DropdownTrigger.stories.d.ts +1 -1
- package/dist/stories/PrimaryButton.stories.d.ts +1 -1
- package/dist/stories/PrimaryIconButton.stories.d.ts +1 -1
- package/dist/stories/SecondaryButton.stories.d.ts +1 -1
- package/dist/stories/SecondaryIconButton.stories.d.ts +1 -1
- package/dist/stories/{TableNew.stories.d.ts → Table.stories.d.ts} +7 -7
- package/dist/stories/TableCardRecipe.stories.d.ts +1 -1
- package/dist/stories/TertiaryButton.stories.d.ts +1 -1
- package/dist/stories/TertiaryIconButton.stories.d.ts +2 -2
- package/package.json +1 -1
- package/dist/esm/components/TableNew/TableNew.js.map +0 -1
- package/dist/src/components/TableNew/index.d.ts +0 -1
- package/dist/src/generated/components/TableNew/index.d.ts +0 -1
|
@@ -1449,9 +1449,9 @@ const Spinner = (props) => {
|
|
|
1449
1449
|
return jsxRuntime.jsxs("svg", { className: `ui:h-5 ui:w-5 ui:animate-spin ${props.className}`, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsxRuntime.jsx("circle", { className: "ui:opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), jsxRuntime.jsx("path", { className: "ui:opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] });
|
|
1450
1450
|
};
|
|
1451
1451
|
|
|
1452
|
-
const ButtonV2 =
|
|
1452
|
+
const ButtonV2 = (_a) => {
|
|
1453
1453
|
var _b, _c, _d, _e;
|
|
1454
|
-
var { children, size = "medium", onClick, textColor, textHoverColor, leadingIcon, trailingIcon, isPending, className, title, dataTestId, type = "button", titleTooltipContainer } = _a, otherAttributes = __rest(_a, ["children", "size", "onClick", "textColor", "textHoverColor", "leadingIcon", "trailingIcon", "isPending", "className", "title", "dataTestId", "type", "titleTooltipContainer"]);
|
|
1454
|
+
var { ref, children, size = "medium", onClick, textColor, textHoverColor, leadingIcon, trailingIcon, isPending, className, title, dataTestId, type = "button", titleTooltipContainer } = _a, otherAttributes = __rest(_a, ["ref", "children", "size", "onClick", "textColor", "textHoverColor", "leadingIcon", "trailingIcon", "isPending", "className", "title", "dataTestId", "type", "titleTooltipContainer"]);
|
|
1455
1455
|
const disabled = (_b = otherAttributes.disabled) !== null && _b !== void 0 ? _b : false;
|
|
1456
1456
|
const generatedId = React__namespace.default.useId();
|
|
1457
1457
|
const buttonId = (_c = otherAttributes.id) !== null && _c !== void 0 ? _c : generatedId;
|
|
@@ -1496,7 +1496,7 @@ const ButtonV2 = React__namespace.default.forwardRef((_a, innerRef) => {
|
|
|
1496
1496
|
"data-tip": true,
|
|
1497
1497
|
"data-for": buttonTooltipId
|
|
1498
1498
|
} : {};
|
|
1499
|
-
const buttonComponent = jsxRuntime.jsxs("button", Object.assign({ ref
|
|
1499
|
+
const buttonComponent = jsxRuntime.jsxs("button", Object.assign({ ref }, otherAttributes, { "aria-label": (_d = otherAttributes["aria-label"]) !== null && _d !== void 0 ? _d : !content && typeof title === "string" ? title : void 0, className: buttonClassName, type, onClick: handleClick, disabled: disabled || isPending, "aria-disabled": disabled, "aria-busy": isPending, "data-test-id": (_e = dataTestId !== null && dataTestId !== void 0 ? dataTestId : otherAttributes["data-test-id"]) !== null && _e !== void 0 ? _e : otherAttributes.id }, tooltipAttrs, { children: [leadingIcon && jsxRuntime.jsx(IconLayoutWrapper, { isInvisible: isPending, children: leadingIcon }), isPending && jsxRuntime.jsx("span", { className: "ui:absolute ui:left-1/2 ui:top-1/2 ui:-translate-x-1/2 ui:-translate-y-1/2 ui:transform ui:opacity-100", children: jsxRuntime.jsx(Spinner, { className: textColorClass }) }), content && jsxRuntime.jsx(Text, { variant: "strong", className: classNames__default.default({
|
|
1500
1500
|
"ui:opacity-[0.01]": isPending,
|
|
1501
1501
|
"ui:group-hover:text-primary-dark": textHoverColor === "blue-900",
|
|
1502
1502
|
"ui:group-hover:text-white": textHoverColor === "white"
|
|
@@ -1505,7 +1505,7 @@ const ButtonV2 = React__namespace.default.forwardRef((_a, innerRef) => {
|
|
|
1505
1505
|
return jsxRuntime.jsxs(Tooltip.Root, { children: [jsxRuntime.jsx(Tooltip.Trigger, { asChild: true, id: buttonTooltipId, children: buttonComponent }), jsxRuntime.jsx(Tooltip.Content, { container: titleTooltipContainer, children: jsxRuntime.jsx(Tooltip.Text, { children: title }) })] });
|
|
1506
1506
|
}
|
|
1507
1507
|
return buttonComponent;
|
|
1508
|
-
}
|
|
1508
|
+
};
|
|
1509
1509
|
function IconLayoutWrapper({ children, className, isInvisible }) {
|
|
1510
1510
|
return jsxRuntime.jsx("span", { className: classNames__default.default(
|
|
1511
1511
|
"ui:shrink-0",
|
|
@@ -1523,15 +1523,16 @@ function IconLayoutWrapper({ children, className, isInvisible }) {
|
|
|
1523
1523
|
), children });
|
|
1524
1524
|
}
|
|
1525
1525
|
|
|
1526
|
-
const TertiaryButton =
|
|
1527
|
-
|
|
1526
|
+
const TertiaryButton = (_a) => {
|
|
1527
|
+
var { ref } = _a, props = __rest(_a, ["ref"]);
|
|
1528
|
+
return jsxRuntime.jsx(ButtonV2, Object.assign({ ref }, props, { className: classNames__default.default([
|
|
1528
1529
|
"ui:text-primary",
|
|
1529
1530
|
"ui:border-transparent ui:bg-transparent ui:!shadow-none",
|
|
1530
1531
|
{
|
|
1531
1532
|
"ui:hover:bg-primary-background ui:hover:text-primary-dark": !props.disabled
|
|
1532
1533
|
}
|
|
1533
1534
|
], props.className), textColor: "blue-800", textHoverColor: "blue-900" }));
|
|
1534
|
-
}
|
|
1535
|
+
};
|
|
1535
1536
|
|
|
1536
1537
|
const ModalHeader = (props) => {
|
|
1537
1538
|
var _a;
|
|
@@ -1865,8 +1866,9 @@ const Badge = (props) => {
|
|
|
1865
1866
|
return jsxRuntime.jsx("div", { className: containerClasses, children: jsxRuntime.jsx("span", { className: textClasses, children: props.children }) });
|
|
1866
1867
|
};
|
|
1867
1868
|
|
|
1868
|
-
const PrimaryButton =
|
|
1869
|
-
|
|
1869
|
+
const PrimaryButton = (_a) => {
|
|
1870
|
+
var { ref } = _a, props = __rest(_a, ["ref"]);
|
|
1871
|
+
return jsxRuntime.jsx(ButtonV2, Object.assign({ ref }, props, { className: classNames__default.default([
|
|
1870
1872
|
"ui:text-white",
|
|
1871
1873
|
"ui:bg-linear-to-r",
|
|
1872
1874
|
"ui:gradient-blue",
|
|
@@ -1874,11 +1876,11 @@ const PrimaryButton = React__namespace.default.forwardRef((props, innerRef) => {
|
|
|
1874
1876
|
"ui:hover:gradient-blue--hover": !props.disabled && !props.isPending
|
|
1875
1877
|
}
|
|
1876
1878
|
], props.className), textColor: "white" }));
|
|
1877
|
-
}
|
|
1879
|
+
};
|
|
1878
1880
|
|
|
1879
|
-
const SecondaryButton =
|
|
1880
|
-
const { textColor = "primary", textHoverColor = "blue-900" } = props, rest = __rest(props, ["textColor", "textHoverColor"]);
|
|
1881
|
-
return jsxRuntime.jsx(ButtonV2, Object.assign({ ref
|
|
1881
|
+
const SecondaryButton = (props) => {
|
|
1882
|
+
const { ref, textColor = "primary", textHoverColor = "blue-900" } = props, rest = __rest(props, ["ref", "textColor", "textHoverColor"]);
|
|
1883
|
+
return jsxRuntime.jsx(ButtonV2, Object.assign({ ref }, rest, { className: classNames__default.default([
|
|
1882
1884
|
`ui:text-${textColor}`,
|
|
1883
1885
|
// Colors of any icons on the button
|
|
1884
1886
|
"ui:bg-white",
|
|
@@ -1887,29 +1889,29 @@ const SecondaryButton = React__namespace.default.forwardRef((props, innerRef) =>
|
|
|
1887
1889
|
"ui:hover:border-neutral-interactive ui:hover:bg-primary-background": !props.disabled
|
|
1888
1890
|
}
|
|
1889
1891
|
], props.className), textColor, textHoverColor }));
|
|
1890
|
-
}
|
|
1892
|
+
};
|
|
1891
1893
|
|
|
1892
|
-
const PrimaryIconButton =
|
|
1893
|
-
const { children: icon, size = "medium", label } = props, rest = __rest(props, ["children", "size", "label"]);
|
|
1894
|
-
return jsxRuntime.jsx(PrimaryButton, Object.assign({ ref
|
|
1894
|
+
const PrimaryIconButton = (props) => {
|
|
1895
|
+
const { ref, children: icon, size = "medium", label } = props, rest = __rest(props, ["ref", "children", "size", "label"]);
|
|
1896
|
+
return jsxRuntime.jsx(PrimaryButton, Object.assign({ ref }, rest, { "aria-label": label, size, leadingIcon: icon, className: classNames__default.default({
|
|
1895
1897
|
"ui:px-[calc(var(--ui-spacing-xxs)-1px)]": size === "medium",
|
|
1896
1898
|
"ui:px-[calc(var(--ui-spacing-s)-1px)]": size === "large"
|
|
1897
1899
|
}, props.className) }));
|
|
1898
|
-
}
|
|
1900
|
+
};
|
|
1899
1901
|
|
|
1900
|
-
const SecondaryIconButton =
|
|
1901
|
-
const { children: icon, size = "medium", label } = props, rest = __rest(props, ["children", "size", "label"]);
|
|
1902
|
-
return jsxRuntime.jsx(SecondaryButton, Object.assign({ ref
|
|
1902
|
+
const SecondaryIconButton = (props) => {
|
|
1903
|
+
const { ref, children: icon, size = "medium", label } = props, rest = __rest(props, ["ref", "children", "size", "label"]);
|
|
1904
|
+
return jsxRuntime.jsx(SecondaryButton, Object.assign({ ref }, rest, { "aria-label": label, size, leadingIcon: icon, className: classNames__default.default({
|
|
1903
1905
|
"ui:px-[calc(var(--ui-spacing-xxs)-1px)]": size === "medium",
|
|
1904
1906
|
"ui:px-[calc(var(--ui-spacing-s)-1px)]": size === "large"
|
|
1905
1907
|
}, props.className) }));
|
|
1906
|
-
}
|
|
1908
|
+
};
|
|
1907
1909
|
|
|
1908
|
-
const TertiaryIconButton =
|
|
1909
|
-
const { children: icon, size = "medium", label, expand = false } = props, rest = __rest(props, ["children", "size", "label", "expand"]);
|
|
1910
|
+
const TertiaryIconButton = (props) => {
|
|
1911
|
+
const { ref, children: icon, size = "medium", label, expand = false } = props, rest = __rest(props, ["ref", "children", "size", "label", "expand"]);
|
|
1910
1912
|
const expandX = expand === true || expand === "x";
|
|
1911
1913
|
const expandY = expand === true || expand === "y";
|
|
1912
|
-
return jsxRuntime.jsx(TertiaryButton, Object.assign({ ref
|
|
1914
|
+
return jsxRuntime.jsx(TertiaryButton, Object.assign({ ref }, rest, { "aria-label": label, size, leadingIcon: icon, className: classNames__default.default({
|
|
1913
1915
|
/**
|
|
1914
1916
|
* Add horizontal padding and possibly undo it with negative margin.
|
|
1915
1917
|
*/
|
|
@@ -1920,15 +1922,15 @@ const TertiaryIconButton = React__namespace.default.forwardRef((props, innerRef)
|
|
|
1920
1922
|
"ui:-my-[calc(theme('spacing.xxs')-1px)]": expandY && size === "medium",
|
|
1921
1923
|
"ui:-my-[calc(theme('spacing.s')-1px)]": expandY && size === "large"
|
|
1922
1924
|
}, props.className) }));
|
|
1923
|
-
}
|
|
1925
|
+
};
|
|
1924
1926
|
|
|
1925
|
-
const ButtonGroup =
|
|
1926
|
-
var { children, direction = "RTL", className } = _a, otherAttributes = __rest(_a, ["children", "direction", "className"]);
|
|
1927
|
-
return jsxRuntime.jsx("div", Object.assign({ ref
|
|
1927
|
+
const ButtonGroup = (_a) => {
|
|
1928
|
+
var { ref, children, direction = "RTL", className } = _a, otherAttributes = __rest(_a, ["ref", "children", "direction", "className"]);
|
|
1929
|
+
return jsxRuntime.jsx("div", Object.assign({ ref }, otherAttributes, { className: tailwindMerge.twMerge(classNames__default.default("ui:flex ui:flex-row ui:items-center ui:gap-f_base", {
|
|
1928
1930
|
"ui:justify-end": direction === "RTL",
|
|
1929
1931
|
"ui:justify-start": direction === "LTR"
|
|
1930
1932
|
}), className), children }));
|
|
1931
|
-
}
|
|
1933
|
+
};
|
|
1932
1934
|
|
|
1933
1935
|
function useIsScrollable() {
|
|
1934
1936
|
const [element, setElement] = React.useState(null);
|
|
@@ -3015,8 +3017,8 @@ const disabledClasses = {
|
|
|
3015
3017
|
"ui:disabled:text-text-neutral-secondary-disabled"
|
|
3016
3018
|
]
|
|
3017
3019
|
};
|
|
3018
|
-
const DropdownTrigger =
|
|
3019
|
-
var { variant = "primary", children, placeholder, leadingIcon, trailingIcon, width, className, type = "button" } = _a, otherAttributes = __rest(_a, ["variant", "children", "placeholder", "leadingIcon", "trailingIcon", "width", "className", "type"]);
|
|
3020
|
+
const DropdownTrigger = (_a) => {
|
|
3021
|
+
var { ref, variant = "primary", children, placeholder, leadingIcon, trailingIcon, width, className, type = "button" } = _a, otherAttributes = __rest(_a, ["ref", "variant", "children", "placeholder", "leadingIcon", "trailingIcon", "width", "className", "type"]);
|
|
3020
3022
|
const isFilled = hasValue(children);
|
|
3021
3023
|
return jsxRuntime.jsxs(Box, Object.assign({ as: "button", ref, type, width, className: classNames__default.default(baseClasses, isFilled ? filledClasses : defaultClasses[variant], hoveredClasses[variant], pressedClasses, focusClasses, disabledClasses[variant], className) }, otherAttributes, { children: [jsxRuntime.jsxs("span", { className: "ui:flex ui:min-w-0 ui:flex-1 ui:items-center ui:gap-f_base", children: [leadingIcon && jsxRuntime.jsx(IconWrapper, { children: leadingIcon }), jsxRuntime.jsx(Text, {
|
|
3022
3024
|
variant: "body-base-regular",
|
|
@@ -3029,8 +3031,7 @@ const DropdownTrigger = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3029
3031
|
className: "ui:min-w-0 ui:truncate ui:leading-(--ui-semantic-size-lg)",
|
|
3030
3032
|
children: isFilled ? children : placeholder
|
|
3031
3033
|
}), trailingIcon && jsxRuntime.jsx(IconWrapper, { children: trailingIcon })] }), jsxRuntime.jsx(IconWrapper, { isChevron: true, children: jsxRuntime.jsx(ChevronDoubleIcon, { "aria-hidden": true }) })] }));
|
|
3032
|
-
}
|
|
3033
|
-
DropdownTrigger.displayName = "DropdownTrigger";
|
|
3034
|
+
};
|
|
3034
3035
|
const IconWrapper = ({ children, isChevron = false }) => jsxRuntime.jsx("span", { className: classNames__default.default("ui:inline-flex ui:shrink-0 ui:text-icon-neutral-primary-default", { "ui:group-disabled:text-icon-neutral-primary-disabled": isChevron }), children });
|
|
3035
3036
|
|
|
3036
3037
|
function cn(...inputs) {
|
|
@@ -3727,7 +3728,6 @@ function DataGrid(_a) {
|
|
|
3727
3728
|
}
|
|
3728
3729
|
), showFooter ? jsxRuntime.jsx(TableFooter, { colSpan, paginationMenuProps }) : null] }));
|
|
3729
3730
|
}
|
|
3730
|
-
const Table = DataGrid;
|
|
3731
3731
|
|
|
3732
3732
|
const isPlainText = (node) => {
|
|
3733
3733
|
return typeof node === "string" || typeof node === "number";
|
|
@@ -3784,7 +3784,7 @@ const TableRoot = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3784
3784
|
return child;
|
|
3785
3785
|
})] }));
|
|
3786
3786
|
});
|
|
3787
|
-
TableRoot.displayName = "
|
|
3787
|
+
TableRoot.displayName = "Table";
|
|
3788
3788
|
const Thead = React__namespace.default.forwardRef((_a, ref) => {
|
|
3789
3789
|
var { className, children, stickyHeader } = _a, attrs = __rest(_a, ["className", "children", "stickyHeader"]);
|
|
3790
3790
|
return jsxRuntime.jsx("thead", Object.assign({ ref, className: classNames__default.default(
|
|
@@ -3803,7 +3803,7 @@ const Thead = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3803
3803
|
className
|
|
3804
3804
|
) }, attrs, { children }));
|
|
3805
3805
|
});
|
|
3806
|
-
Thead.displayName = "
|
|
3806
|
+
Thead.displayName = "Table.Thead";
|
|
3807
3807
|
const Tbody = React__namespace.default.forwardRef((_a, ref) => {
|
|
3808
3808
|
var { className, children, hasTFoot } = _a, attrs = __rest(_a, ["className", "children", "hasTFoot"]);
|
|
3809
3809
|
return jsxRuntime.jsx("tbody", Object.assign({ ref, className: classNames__default.default(
|
|
@@ -3819,17 +3819,17 @@ const Tbody = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3819
3819
|
className
|
|
3820
3820
|
) }, attrs, { children }));
|
|
3821
3821
|
});
|
|
3822
|
-
Tbody.displayName = "
|
|
3822
|
+
Tbody.displayName = "Table.Tbody";
|
|
3823
3823
|
const TFoot = React__namespace.default.forwardRef((_a, ref) => {
|
|
3824
3824
|
var { className, children } = _a, attrs = __rest(_a, ["className", "children"]);
|
|
3825
3825
|
return jsxRuntime.jsx("tfoot", Object.assign({ ref, className: classNames__default.default(className) }, attrs, { children }));
|
|
3826
3826
|
});
|
|
3827
|
-
TFoot.displayName = "
|
|
3827
|
+
TFoot.displayName = "Table.TFoot";
|
|
3828
3828
|
const Tr = React__namespace.default.forwardRef((_a, ref) => {
|
|
3829
3829
|
var { className, children } = _a, attrs = __rest(_a, ["className", "children"]);
|
|
3830
3830
|
return jsxRuntime.jsx(Box, Object.assign({ as: "tr", ref, className: classNames__default.default(className) }, attrs, { children }));
|
|
3831
3831
|
});
|
|
3832
|
-
Tr.displayName = "
|
|
3832
|
+
Tr.displayName = "Table.Tr";
|
|
3833
3833
|
const getCellClasses = (options) => {
|
|
3834
3834
|
return classNames__default.default("ui:first:pl-l ui:last:pr-l ui:text-left", {
|
|
3835
3835
|
"ui:px-xxs ui:py-m": !options.omitPadding
|
|
@@ -3840,14 +3840,14 @@ const Th = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3840
3840
|
const content = isPlainText(children) ? jsxRuntime.jsx(Text, { as: "span", variant: "strong", children }) : children;
|
|
3841
3841
|
return jsxRuntime.jsx("th", Object.assign({ ref, className: getCellClasses({ omitPadding, className }) }, attrs, { children: content }));
|
|
3842
3842
|
});
|
|
3843
|
-
Th.displayName = "
|
|
3843
|
+
Th.displayName = "Table.Th";
|
|
3844
3844
|
const Td = React__namespace.default.forwardRef((_a, ref) => {
|
|
3845
3845
|
var { className, children, omitPadding = false } = _a, attrs = __rest(_a, ["className", "children", "omitPadding"]);
|
|
3846
3846
|
const content = isPlainText(children) ? jsxRuntime.jsx(Text, { as: "span", children }) : children;
|
|
3847
3847
|
return jsxRuntime.jsx("td", Object.assign({ ref, className: getCellClasses({ omitPadding, className }) }, attrs, { children: content }));
|
|
3848
3848
|
});
|
|
3849
|
-
Td.displayName = "
|
|
3850
|
-
const
|
|
3849
|
+
Td.displayName = "Table.Td";
|
|
3850
|
+
const Table = Object.assign(TableRoot, {
|
|
3851
3851
|
Thead,
|
|
3852
3852
|
Tbody,
|
|
3853
3853
|
TFoot,
|
|
@@ -3855,6 +3855,7 @@ const TableNew = Object.assign(TableRoot, {
|
|
|
3855
3855
|
Th,
|
|
3856
3856
|
Td
|
|
3857
3857
|
});
|
|
3858
|
+
const TableNew = Table;
|
|
3858
3859
|
|
|
3859
3860
|
var CheckboxState;
|
|
3860
3861
|
(function(CheckboxState2) {
|
|
@@ -5133,8 +5134,8 @@ const InstrumentCard = ({ type, title, category, meta, id, copyIdLabel = "Copy I
|
|
|
5133
5134
|
}, className: "ui:relative ui:z-10 ui:flex ui:cursor-pointer ui:focus-visible:outline-primary", children: jsxRuntime.jsx(Tag, { _size: "small", _variant: "bordered", _leadingIcon: jsxRuntime.jsx(CopyToClipboardIcon, { "aria-hidden": true }), children: id }) })] })] }), count !== void 0 && jsxRuntime.jsx(Tag, { _size: "small", _variant: "flat", _leadingIcon: jsxRuntime.jsx(CopyToClipboardIcon, { "aria-hidden": true }), className: "ui:shrink-0", children: jsxRuntime.jsx(Text, { variant: "body-small-bold", as: "span", children: count }) })] });
|
|
5134
5135
|
};
|
|
5135
5136
|
|
|
5136
|
-
const DragHandle =
|
|
5137
|
-
var { dataTestId, className: classes, grabbing, disabled = false, label = "Drag to reorder" } = _a, props = __rest(_a, ["dataTestId", "className", "grabbing", "disabled", "label"]);
|
|
5137
|
+
const DragHandle = (_a) => {
|
|
5138
|
+
var { ref, dataTestId, className: classes, grabbing, disabled = false, label = "Drag to reorder" } = _a, props = __rest(_a, ["ref", "dataTestId", "className", "grabbing", "disabled", "label"]);
|
|
5138
5139
|
const className = classNames__default.default(classes, "ui:py-2 ui:focus:outline-primary", {
|
|
5139
5140
|
"ui:cursor-grab": !grabbing && !disabled,
|
|
5140
5141
|
"ui:cursor-grabbing ui:shadow-sm ui:bg-slate-200": grabbing && !disabled,
|
|
@@ -5142,7 +5143,7 @@ const DragHandle = React.forwardRef((_a, ref) => {
|
|
|
5142
5143
|
"ui:cursor-not-allowed": disabled
|
|
5143
5144
|
});
|
|
5144
5145
|
return jsxRuntime.jsx("button", Object.assign({ ref, "aria-label": label }, props, { tabIndex: 0, className, "data-test-id": dataTestId !== null && dataTestId !== void 0 ? dataTestId : "dragHandle", children: jsxRuntime.jsx(Icon, { name: "DragIndicatorIcon", className: disabled ? "ui:text-slate-300" : "ui:text-slate-400" }) }));
|
|
5145
|
-
}
|
|
5146
|
+
};
|
|
5146
5147
|
|
|
5147
5148
|
const typeIcons = {
|
|
5148
5149
|
information: ActionInformationColoredIcon,
|