@luscii-healthtech/web-ui 62.0.3 → 63.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/DataGrid/DataGrid.js +1 -2
- package/dist/esm/components/DataGrid/DataGrid.js.map +1 -1
- package/dist/esm/components/FlyOutMenu/FlyOutMenu.js +22 -18
- package/dist/esm/components/FlyOutMenu/FlyOutMenu.js.map +1 -1
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarContent.js +3 -4
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarContent.js.map +1 -1
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarExtras.js +3 -4
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarExtras.js.map +1 -1
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarList.js +4 -4
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarList.js.map +1 -1
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.js +3 -4
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.js.map +1 -1
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarRoot.js +3 -4
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarRoot.js.map +1 -1
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarTrigger.js +4 -4
- package/dist/esm/components/PrimaryTabBar/PrimaryTabBarTrigger.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/components/Tabs/Tabs.js +10 -11
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/index.development.js +58 -54
- 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/DataGrid/DataGrid.d.ts +1 -8
- package/dist/src/components/DataGrid/DataGrid.types.d.ts +0 -8
- package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +30 -18
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -1
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -1
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -1
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +6 -3
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -1
- package/dist/src/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +5 -1
- 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/components/Tabs/Tabs.d.ts +17 -5
- 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/FlyOutMenu/FlyOutMenu.d.ts +30 -18
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -1
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -1
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -1
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +6 -3
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -1
- package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +5 -1
- 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/components/Tabs/Tabs.d.ts +17 -5
- package/dist/src/generated/index.d.ts +3 -3
- package/dist/src/index.d.ts +3 -3
- package/dist/stories/CardTableRecipe.stories.d.ts +2 -2
- package/dist/stories/PrimaryTabBar.stories.d.ts +30 -12
- 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/Tabs.stories.d.ts +16 -4
- 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
|
@@ -2658,11 +2658,15 @@ function cn$1(...inputs) {
|
|
|
2658
2658
|
return tailwindMerge.twMerge(classNames__default.default(inputs));
|
|
2659
2659
|
}
|
|
2660
2660
|
const FlyOutMenuRoot = (props) => jsxRuntime.jsx(FlyOutMenuPrimitive__namespace.Root, Object.assign({}, props));
|
|
2661
|
-
const FlyOutMenuTrigger =
|
|
2661
|
+
const FlyOutMenuTrigger = (_a) => {
|
|
2662
|
+
var { ref } = _a, props = __rest(_a, ["ref"]);
|
|
2663
|
+
return jsxRuntime.jsx(FlyOutMenuPrimitive__namespace.Trigger, Object.assign({ ref, asChild: true }, props));
|
|
2664
|
+
};
|
|
2662
2665
|
const FlyOutMenuGroup = FlyOutMenuPrimitive__namespace.Group;
|
|
2663
2666
|
const FlyOutMenuPortal = FlyOutMenuPrimitive__namespace.Portal;
|
|
2664
|
-
const FlyOutMenuContent =
|
|
2667
|
+
const FlyOutMenuContent = (_a) => {
|
|
2665
2668
|
var {
|
|
2669
|
+
ref,
|
|
2666
2670
|
className,
|
|
2667
2671
|
/**
|
|
2668
2672
|
* "8px" is size "xxs" from the design system
|
|
@@ -2670,29 +2674,29 @@ const FlyOutMenuContent = React__namespace.forwardRef((_a, ref) => {
|
|
|
2670
2674
|
sideOffset = 8,
|
|
2671
2675
|
align = "end",
|
|
2672
2676
|
container
|
|
2673
|
-
} = _a, props = __rest(_a, ["className", "sideOffset", "align", "container"]);
|
|
2677
|
+
} = _a, props = __rest(_a, ["ref", "className", "sideOffset", "align", "container"]);
|
|
2674
2678
|
return jsxRuntime.jsx(FlyOutMenuPrimitive__namespace.Portal, { container, children: jsxRuntime.jsx(FlyOutMenuPrimitive__namespace.Content, Object.assign({ onClick: (event) => {
|
|
2675
2679
|
event.stopPropagation();
|
|
2676
2680
|
}, ref, align, sideOffset, className: cn$1("ui:z-50 ui:min-w-[8rem] ui:max-w-[55ch] ui:overflow-hidden ui:border ui:border-color-border ui:bg-white ui:shadow-large ui:radius-m", "ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2", "ui:max-h-[min(var(--radix-popper-available-height),var(--ui-flyout-menu-content-max-height))] ui:overflow-y-auto", className) }, props)) });
|
|
2677
|
-
}
|
|
2681
|
+
};
|
|
2678
2682
|
FlyOutMenuContent.displayName = FlyOutMenuPrimitive__namespace.Content.displayName;
|
|
2679
|
-
const FlyOutMenuItem =
|
|
2680
|
-
var { className, icon, children } = _a, props = __rest(_a, ["className", "icon", "children"]);
|
|
2683
|
+
const FlyOutMenuItem = (_a) => {
|
|
2684
|
+
var { ref, className, icon, children } = _a, props = __rest(_a, ["ref", "className", "icon", "children"]);
|
|
2681
2685
|
return jsxRuntime.jsxs(FlyOutMenuPrimitive__namespace.Item, Object.assign({ ref, className: cn$1("ui:gap-m", "ui:relative ui:flex ui:select-none ui:items-center ui:rounded-sm ui:text-sm ui:outline-none ui:transition-colors", "focus:text-accent-foreground ui:focus:bg-primary-background", className) }, props, { children: [icon, children] }));
|
|
2682
|
-
}
|
|
2686
|
+
};
|
|
2683
2687
|
FlyOutMenuItem.displayName = FlyOutMenuPrimitive__namespace.Item.displayName;
|
|
2684
|
-
const FlyOutMenuLabel =
|
|
2685
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
2688
|
+
const FlyOutMenuLabel = (_a) => {
|
|
2689
|
+
var { ref, className } = _a, props = __rest(_a, ["ref", "className"]);
|
|
2686
2690
|
return jsxRuntime.jsx(FlyOutMenuPrimitive__namespace.Label, Object.assign({ ref, className: cn$1("ui:px-s ui:pb-xxs ui:pt-l", className) }, props, { children: jsxRuntime.jsx(Text, { variant: "strong", children: props.children }) }));
|
|
2687
|
-
}
|
|
2691
|
+
};
|
|
2688
2692
|
FlyOutMenuLabel.displayName = FlyOutMenuPrimitive__namespace.Label.displayName;
|
|
2689
|
-
const FlyOutMenuSeparator =
|
|
2690
|
-
var { className, color = "divider" } = _a, props = __rest(_a, ["className", "color"]);
|
|
2693
|
+
const FlyOutMenuSeparator = (_a) => {
|
|
2694
|
+
var { ref, className, color = "divider" } = _a, props = __rest(_a, ["ref", "className", "color"]);
|
|
2691
2695
|
return jsxRuntime.jsx(FlyOutMenuPrimitive__namespace.Separator, Object.assign({ ref, className: cn$1("ui:h-px", {
|
|
2692
2696
|
"ui:bg-color-divider": color === "divider",
|
|
2693
2697
|
"ui:bg-neutral-border-high-contrast": color === "interactive"
|
|
2694
2698
|
}, className) }, props));
|
|
2695
|
-
}
|
|
2699
|
+
};
|
|
2696
2700
|
FlyOutMenuSeparator.displayName = FlyOutMenuPrimitive__namespace.Separator.displayName;
|
|
2697
2701
|
const ItemButton = (props) => {
|
|
2698
2702
|
const { children, leadingIcon, trailingIcon } = props, rest = __rest(props, ["children", "leadingIcon", "trailingIcon"]);
|
|
@@ -2708,16 +2712,16 @@ const FlyOutMenuChildrenItem = (props) => {
|
|
|
2708
2712
|
const { children, icon } = props, rest = __rest(props, ["children", "icon"]);
|
|
2709
2713
|
return jsxRuntime.jsxs("div", Object.assign({}, rest, { className: "ui:flex ui:w-full ui:gap-s ui:p-s", children: [React__namespace.isValidElement(icon) ? React__namespace.cloneElement(icon, { className: "ui:shrink-0" }) : null, jsxRuntime.jsx("div", { className: "ui:mt-[2px] ui:w-full", children })] }));
|
|
2710
2714
|
};
|
|
2711
|
-
const FlyOutMenuSwitchItem =
|
|
2712
|
-
const { children, icon, onSelect, checkedIndicator } = props, rest = __rest(props, ["children", "icon", "onSelect", "checkedIndicator"]);
|
|
2713
|
-
return jsxRuntime.jsx(FlyOutMenuPrimitive__namespace.CheckboxItem, Object.assign({ ref
|
|
2715
|
+
const FlyOutMenuSwitchItem = (props) => {
|
|
2716
|
+
const { ref, children, icon, onSelect, checkedIndicator } = props, rest = __rest(props, ["ref", "children", "icon", "onSelect", "checkedIndicator"]);
|
|
2717
|
+
return jsxRuntime.jsx(FlyOutMenuPrimitive__namespace.CheckboxItem, Object.assign({ ref, className: "ui:outline-none ui:focus:bg-primary-background", onSelect: (event) => {
|
|
2714
2718
|
event.preventDefault();
|
|
2715
2719
|
onSelect === null || onSelect === void 0 ? void 0 : onSelect(event);
|
|
2716
2720
|
} }, rest, { children: jsxRuntime.jsx("div", { className: "ui:flex ui:w-full", children: jsxRuntime.jsxs("label", { className: "ui:inline-flex ui:w-full ui:cursor-pointer ui:p-s", children: [React__namespace.isValidElement(icon) ? React__namespace.cloneElement(icon, { className: "ui:shrink-0" }) : null, jsxRuntime.jsxs("div", { className: "ui:inline-flex ui:w-full ui:flex-row-reverse ui:gap-m", children: [jsxRuntime.jsx("div", { className: "ui:peer ui:ml-auto", children: checkedIndicator !== null && checkedIndicator !== void 0 ? checkedIndicator : jsxRuntime.jsx("div", { className: classNames__default.default("ui:relative ui:h-6 ui:w-11 ui:rounded-full ui:transition-colors", "ui:after:absolute ui:after:start-[2px] ui:after:top-[2px] ui:after:h-5 ui:after:w-5 ui:after:rounded-full ui:after:border ui:after:border-slate-300 ui:after:bg-white ui:after:transition-all ui:after:content-['']", {
|
|
2717
2721
|
"ui:bg-primary-light ui:after:translate-x-full ui:after:border-white": props.checked === true,
|
|
2718
2722
|
"ui:bg-slate-300": !props.checked
|
|
2719
2723
|
}) }) }), jsxRuntime.jsx(Text, { className: "ui:ml-3 ui:mt-[2px] ui:text-start", children })] })] }) }) }));
|
|
2720
|
-
}
|
|
2724
|
+
};
|
|
2721
2725
|
const FlyOutMenu = {
|
|
2722
2726
|
Root: FlyOutMenuRoot,
|
|
2723
2727
|
Trigger: FlyOutMenuTrigger,
|
|
@@ -3037,10 +3041,10 @@ const IconWrapper = ({ children, isChevron = false }) => jsxRuntime.jsx("span",
|
|
|
3037
3041
|
function cn(...inputs) {
|
|
3038
3042
|
return tailwindMerge.twMerge(classNames__default.default(inputs));
|
|
3039
3043
|
}
|
|
3040
|
-
const TabsRoot =
|
|
3044
|
+
const TabsRoot = (props) => jsxRuntime.jsx(TabsPrimitive__namespace.Root, Object.assign({}, props));
|
|
3041
3045
|
TabsRoot.displayName = "Tabs.Root";
|
|
3042
|
-
const TabsList =
|
|
3043
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3046
|
+
const TabsList = (_a) => {
|
|
3047
|
+
var { ref, className } = _a, props = __rest(_a, ["ref", "className"]);
|
|
3044
3048
|
return jsxRuntime.jsx(TabsPrimitive__namespace.List, Object.assign({ ref, className: cn(
|
|
3045
3049
|
// `items-stretch` lets the tallest trigger drive the row height
|
|
3046
3050
|
// so every trigger — with or without an adornment (Badge,
|
|
@@ -3050,10 +3054,10 @@ const TabsList = React__namespace.forwardRef((_a, ref) => {
|
|
|
3050
3054
|
"ui:inline-flex ui:items-stretch ui:justify-center ui:gap-(--ui-spacing-xl)",
|
|
3051
3055
|
className
|
|
3052
3056
|
) }, props));
|
|
3053
|
-
}
|
|
3057
|
+
};
|
|
3054
3058
|
TabsList.displayName = "Tabs.List";
|
|
3055
|
-
const TabsTrigger =
|
|
3056
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3059
|
+
const TabsTrigger = (_a) => {
|
|
3060
|
+
var { ref, className } = _a, props = __rest(_a, ["ref", "className"]);
|
|
3057
3061
|
return jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, Object.assign({ ref, className: cn(
|
|
3058
3062
|
// Use an inline-flex context so the label and any adornments
|
|
3059
3063
|
// (Badge, LoadingIndicator, etc.) align by flex cross-axis
|
|
@@ -3072,12 +3076,12 @@ const TabsTrigger = React__namespace.forwardRef((_a, ref) => {
|
|
|
3072
3076
|
"ui:py-(--ui-spacing-m)",
|
|
3073
3077
|
className
|
|
3074
3078
|
) }, props));
|
|
3075
|
-
}
|
|
3079
|
+
};
|
|
3076
3080
|
TabsTrigger.displayName = "Tabs.Trigger";
|
|
3077
|
-
const TabsContent =
|
|
3078
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3081
|
+
const TabsContent = (_a) => {
|
|
3082
|
+
var { ref, className } = _a, props = __rest(_a, ["ref", "className"]);
|
|
3079
3083
|
return jsxRuntime.jsx(TabsPrimitive__namespace.Content, Object.assign({ ref, className: cn(className) }, props));
|
|
3080
|
-
}
|
|
3084
|
+
};
|
|
3081
3085
|
TabsContent.displayName = "Tabs.Content";
|
|
3082
3086
|
const TabsPadding = (props) => {
|
|
3083
3087
|
return jsxRuntime.jsx(Box, Object.assign({ _py: "xl" }, props));
|
|
@@ -3094,24 +3098,24 @@ const Tabs = {
|
|
|
3094
3098
|
LabelText: TabLabelText
|
|
3095
3099
|
};
|
|
3096
3100
|
|
|
3097
|
-
const PrimaryTabBarRoot =
|
|
3098
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3101
|
+
const PrimaryTabBarRoot = (_a) => {
|
|
3102
|
+
var { ref, className } = _a, props = __rest(_a, ["ref", "className"]);
|
|
3099
3103
|
return jsxRuntime.jsx(TabsPrimitive__namespace.Root, Object.assign({ ref, className: classNames__default.default("ui:pt-f_l", className) }, props));
|
|
3100
|
-
}
|
|
3104
|
+
};
|
|
3101
3105
|
PrimaryTabBarRoot.displayName = "PrimaryTabBar.Root";
|
|
3102
3106
|
|
|
3103
|
-
const PrimaryTabBarExtras =
|
|
3104
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
3107
|
+
const PrimaryTabBarExtras = (_a) => {
|
|
3108
|
+
var { ref, className, children } = _a, props = __rest(_a, ["ref", "className", "children"]);
|
|
3105
3109
|
return jsxRuntime.jsx("div", Object.assign({ ref, className: classNames__default.default("ui:flex ui:items-center ui:self-center ui:gap-f_base ui:mx-f_l", className) }, props, { children }));
|
|
3106
|
-
}
|
|
3110
|
+
};
|
|
3107
3111
|
PrimaryTabBarExtras.displayName = "PrimaryTabBar.Extras";
|
|
3108
3112
|
|
|
3109
|
-
const PrimaryTabBarList =
|
|
3110
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
3113
|
+
const PrimaryTabBarList = (_a) => {
|
|
3114
|
+
var { ref, className, children } = _a, props = __rest(_a, ["ref", "className", "children"]);
|
|
3111
3115
|
const items = React.Children.toArray(children);
|
|
3112
3116
|
const isExtras = (child) => React.isValidElement(child) && child.type === PrimaryTabBarExtras;
|
|
3113
3117
|
return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:flex ui:items-end ui:px-f_l", "ui:border-b ui:border-border-neutral-secondary-default", className), children: [jsxRuntime.jsx(TabsPrimitive__namespace.List, Object.assign({ ref, className: "ui:flex ui:items-end", loop: true }, props, { children: items.filter((child) => !isExtras(child)) })), items.filter(isExtras)] });
|
|
3114
|
-
}
|
|
3118
|
+
};
|
|
3115
3119
|
PrimaryTabBarList.displayName = "PrimaryTabBar.List";
|
|
3116
3120
|
|
|
3117
3121
|
function splitChildren(children) {
|
|
@@ -3126,8 +3130,8 @@ function splitChildren(children) {
|
|
|
3126
3130
|
});
|
|
3127
3131
|
return { text, elements };
|
|
3128
3132
|
}
|
|
3129
|
-
const PrimaryTabBarTrigger =
|
|
3130
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
3133
|
+
const PrimaryTabBarTrigger = (_a) => {
|
|
3134
|
+
var { ref, className, children } = _a, props = __rest(_a, ["ref", "className", "children"]);
|
|
3131
3135
|
const { text, elements } = splitChildren(children);
|
|
3132
3136
|
return jsxRuntime.jsxs(TabsPrimitive__namespace.Trigger, Object.assign({ ref, className: classNames__default.default(
|
|
3133
3137
|
// Layout
|
|
@@ -3165,19 +3169,19 @@ const PrimaryTabBarTrigger = React.forwardRef((_a, ref) => {
|
|
|
3165
3169
|
"ui:after:shadow-[-3px_3px_0_2px_var(--ui-color-background-neutral-secondary-default)]",
|
|
3166
3170
|
className
|
|
3167
3171
|
) }, props, { children: [text.length > 0 && jsxRuntime.jsx("span", { className: "ui:truncate", children: text }), elements] }));
|
|
3168
|
-
}
|
|
3172
|
+
};
|
|
3169
3173
|
PrimaryTabBarTrigger.displayName = "PrimaryTabBar.Trigger";
|
|
3170
3174
|
|
|
3171
|
-
const PrimaryTabBarContent =
|
|
3172
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
3175
|
+
const PrimaryTabBarContent = (_a) => {
|
|
3176
|
+
var { ref, className } = _a, props = __rest(_a, ["ref", "className"]);
|
|
3173
3177
|
return jsxRuntime.jsx(TabsPrimitive__namespace.Content, Object.assign({ ref, className: classNames__default.default("ui:relative ui:z-[1]", className), tabIndex: -1 }, props));
|
|
3174
|
-
}
|
|
3178
|
+
};
|
|
3175
3179
|
PrimaryTabBarContent.displayName = "PrimaryTabBar.Content";
|
|
3176
3180
|
|
|
3177
|
-
const PrimaryTabBarOverflowIndicator =
|
|
3178
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
3181
|
+
const PrimaryTabBarOverflowIndicator = (_a) => {
|
|
3182
|
+
var { ref, className, children } = _a, props = __rest(_a, ["ref", "className", "children"]);
|
|
3179
3183
|
return jsxRuntime.jsx("span", Object.assign({ ref, className: classNames__default.default("ui-typo-body-small-regular", "ui:text-text-neutral-secondary-disabled", "ui:self-center ui:whitespace-nowrap", className) }, props, { children }));
|
|
3180
|
-
}
|
|
3184
|
+
};
|
|
3181
3185
|
PrimaryTabBarOverflowIndicator.displayName = "PrimaryTabBar.OverflowIndicator";
|
|
3182
3186
|
|
|
3183
3187
|
const PrimaryTabBar = {
|
|
@@ -3728,7 +3732,6 @@ function DataGrid(_a) {
|
|
|
3728
3732
|
}
|
|
3729
3733
|
), showFooter ? jsxRuntime.jsx(TableFooter, { colSpan, paginationMenuProps }) : null] }));
|
|
3730
3734
|
}
|
|
3731
|
-
const Table = DataGrid;
|
|
3732
3735
|
|
|
3733
3736
|
const isPlainText = (node) => {
|
|
3734
3737
|
return typeof node === "string" || typeof node === "number";
|
|
@@ -3785,7 +3788,7 @@ const TableRoot = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3785
3788
|
return child;
|
|
3786
3789
|
})] }));
|
|
3787
3790
|
});
|
|
3788
|
-
TableRoot.displayName = "
|
|
3791
|
+
TableRoot.displayName = "Table";
|
|
3789
3792
|
const Thead = React__namespace.default.forwardRef((_a, ref) => {
|
|
3790
3793
|
var { className, children, stickyHeader } = _a, attrs = __rest(_a, ["className", "children", "stickyHeader"]);
|
|
3791
3794
|
return jsxRuntime.jsx("thead", Object.assign({ ref, className: classNames__default.default(
|
|
@@ -3804,7 +3807,7 @@ const Thead = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3804
3807
|
className
|
|
3805
3808
|
) }, attrs, { children }));
|
|
3806
3809
|
});
|
|
3807
|
-
Thead.displayName = "
|
|
3810
|
+
Thead.displayName = "Table.Thead";
|
|
3808
3811
|
const Tbody = React__namespace.default.forwardRef((_a, ref) => {
|
|
3809
3812
|
var { className, children, hasTFoot } = _a, attrs = __rest(_a, ["className", "children", "hasTFoot"]);
|
|
3810
3813
|
return jsxRuntime.jsx("tbody", Object.assign({ ref, className: classNames__default.default(
|
|
@@ -3820,17 +3823,17 @@ const Tbody = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3820
3823
|
className
|
|
3821
3824
|
) }, attrs, { children }));
|
|
3822
3825
|
});
|
|
3823
|
-
Tbody.displayName = "
|
|
3826
|
+
Tbody.displayName = "Table.Tbody";
|
|
3824
3827
|
const TFoot = React__namespace.default.forwardRef((_a, ref) => {
|
|
3825
3828
|
var { className, children } = _a, attrs = __rest(_a, ["className", "children"]);
|
|
3826
3829
|
return jsxRuntime.jsx("tfoot", Object.assign({ ref, className: classNames__default.default(className) }, attrs, { children }));
|
|
3827
3830
|
});
|
|
3828
|
-
TFoot.displayName = "
|
|
3831
|
+
TFoot.displayName = "Table.TFoot";
|
|
3829
3832
|
const Tr = React__namespace.default.forwardRef((_a, ref) => {
|
|
3830
3833
|
var { className, children } = _a, attrs = __rest(_a, ["className", "children"]);
|
|
3831
3834
|
return jsxRuntime.jsx(Box, Object.assign({ as: "tr", ref, className: classNames__default.default(className) }, attrs, { children }));
|
|
3832
3835
|
});
|
|
3833
|
-
Tr.displayName = "
|
|
3836
|
+
Tr.displayName = "Table.Tr";
|
|
3834
3837
|
const getCellClasses = (options) => {
|
|
3835
3838
|
return classNames__default.default("ui:first:pl-l ui:last:pr-l ui:text-left", {
|
|
3836
3839
|
"ui:px-xxs ui:py-m": !options.omitPadding
|
|
@@ -3841,14 +3844,14 @@ const Th = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3841
3844
|
const content = isPlainText(children) ? jsxRuntime.jsx(Text, { as: "span", variant: "strong", children }) : children;
|
|
3842
3845
|
return jsxRuntime.jsx("th", Object.assign({ ref, className: getCellClasses({ omitPadding, className }) }, attrs, { children: content }));
|
|
3843
3846
|
});
|
|
3844
|
-
Th.displayName = "
|
|
3847
|
+
Th.displayName = "Table.Th";
|
|
3845
3848
|
const Td = React__namespace.default.forwardRef((_a, ref) => {
|
|
3846
3849
|
var { className, children, omitPadding = false } = _a, attrs = __rest(_a, ["className", "children", "omitPadding"]);
|
|
3847
3850
|
const content = isPlainText(children) ? jsxRuntime.jsx(Text, { as: "span", children }) : children;
|
|
3848
3851
|
return jsxRuntime.jsx("td", Object.assign({ ref, className: getCellClasses({ omitPadding, className }) }, attrs, { children: content }));
|
|
3849
3852
|
});
|
|
3850
|
-
Td.displayName = "
|
|
3851
|
-
const
|
|
3853
|
+
Td.displayName = "Table.Td";
|
|
3854
|
+
const Table = Object.assign(TableRoot, {
|
|
3852
3855
|
Thead,
|
|
3853
3856
|
Tbody,
|
|
3854
3857
|
TFoot,
|
|
@@ -3856,6 +3859,7 @@ const TableNew = Object.assign(TableRoot, {
|
|
|
3856
3859
|
Th,
|
|
3857
3860
|
Td
|
|
3858
3861
|
});
|
|
3862
|
+
const TableNew = Table;
|
|
3859
3863
|
|
|
3860
3864
|
var CheckboxState;
|
|
3861
3865
|
(function(CheckboxState2) {
|