@eqtylab/equality 2.2.3 → 2.3.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/dropdown-menu.module.module.css.module.css +2 -2
- package/dist/index.cjs +203 -133
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +199 -131
- package/dist/index.js.map +1 -1
- package/dist/segmented-controls.module.module.css.module.css +86 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -72,27 +72,28 @@ var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
|
|
|
72
72
|
var styles43 = require('./scroll-area.module.module.css.module.css');
|
|
73
73
|
var styles44 = require('./search-bar.module.module.css.module.css');
|
|
74
74
|
var styles45 = require('./section-heading.module.module.css.module.css');
|
|
75
|
+
var styles46 = require('./segmented-controls.module.module.css.module.css');
|
|
75
76
|
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
77
|
+
var styles47 = require('./separator.module.module.css.module.css');
|
|
78
|
+
var styles48 = require('./sheet.module.module.css.module.css');
|
|
79
|
+
var styles49 = require('./skeleton.module.module.css.module.css');
|
|
80
|
+
var styles50 = require('./sort-selector.module.module.css.module.css');
|
|
80
81
|
var SwitchPrimitives = require('@radix-ui/react-switch');
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
var
|
|
82
|
+
var styles51 = require('./switch.module.module.css.module.css');
|
|
83
|
+
var styles52 = require('./sort-button.module.module.css.module.css');
|
|
84
|
+
var styles53 = require('./table-components.module.module.css.module.css');
|
|
84
85
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
var
|
|
86
|
+
var styles54 = require('./tabs-components.module.module.css.module.css');
|
|
87
|
+
var styles55 = require('./tabs.module.module.css.module.css');
|
|
88
|
+
var styles56 = require('./textarea.module.module.css.module.css');
|
|
89
|
+
var styles57 = require('./format-date.module.module.css.module.css');
|
|
89
90
|
var ToastPrimitives = require('@radix-ui/react-toast');
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
91
|
+
var styles58 = require('./toast-components.module.module.css.module.css');
|
|
92
|
+
var styles59 = require('./toast.module.module.css.module.css');
|
|
93
|
+
var styles60 = require('./truncated-description.module.module.css.module.css');
|
|
94
|
+
var styles61 = require('./heading.module.module.css.module.css');
|
|
95
|
+
var styles62 = require('./control-status-badge.module.module.css.module.css');
|
|
96
|
+
var styles63 = require('./theme.module.module.css.module.css');
|
|
96
97
|
|
|
97
98
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
98
99
|
|
|
@@ -176,27 +177,28 @@ var ScrollAreaPrimitive__namespace = /*#__PURE__*/_interopNamespace(ScrollAreaPr
|
|
|
176
177
|
var styles43__default = /*#__PURE__*/_interopDefault(styles43);
|
|
177
178
|
var styles44__default = /*#__PURE__*/_interopDefault(styles44);
|
|
178
179
|
var styles45__default = /*#__PURE__*/_interopDefault(styles45);
|
|
179
|
-
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
180
180
|
var styles46__default = /*#__PURE__*/_interopDefault(styles46);
|
|
181
|
+
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
181
182
|
var styles47__default = /*#__PURE__*/_interopDefault(styles47);
|
|
182
183
|
var styles48__default = /*#__PURE__*/_interopDefault(styles48);
|
|
183
184
|
var styles49__default = /*#__PURE__*/_interopDefault(styles49);
|
|
184
|
-
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
185
185
|
var styles50__default = /*#__PURE__*/_interopDefault(styles50);
|
|
186
|
+
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
186
187
|
var styles51__default = /*#__PURE__*/_interopDefault(styles51);
|
|
187
188
|
var styles52__default = /*#__PURE__*/_interopDefault(styles52);
|
|
188
|
-
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
189
189
|
var styles53__default = /*#__PURE__*/_interopDefault(styles53);
|
|
190
|
+
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
190
191
|
var styles54__default = /*#__PURE__*/_interopDefault(styles54);
|
|
191
192
|
var styles55__default = /*#__PURE__*/_interopDefault(styles55);
|
|
192
193
|
var styles56__default = /*#__PURE__*/_interopDefault(styles56);
|
|
193
|
-
var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
|
|
194
194
|
var styles57__default = /*#__PURE__*/_interopDefault(styles57);
|
|
195
|
+
var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
|
|
195
196
|
var styles58__default = /*#__PURE__*/_interopDefault(styles58);
|
|
196
197
|
var styles59__default = /*#__PURE__*/_interopDefault(styles59);
|
|
197
198
|
var styles60__default = /*#__PURE__*/_interopDefault(styles60);
|
|
198
199
|
var styles61__default = /*#__PURE__*/_interopDefault(styles61);
|
|
199
200
|
var styles62__default = /*#__PURE__*/_interopDefault(styles62);
|
|
201
|
+
var styles63__default = /*#__PURE__*/_interopDefault(styles63);
|
|
200
202
|
|
|
201
203
|
// src/components/alert/alert.tsx
|
|
202
204
|
var ELEVATION = {
|
|
@@ -205,12 +207,12 @@ var ELEVATION = {
|
|
|
205
207
|
RAISED: "raised",
|
|
206
208
|
OVERLAY: "overlay"
|
|
207
209
|
};
|
|
208
|
-
var generateElevationVariants = (
|
|
210
|
+
var generateElevationVariants = (styles64, baseClassName, defaultElevation) => {
|
|
209
211
|
const classNames = {};
|
|
210
212
|
Object.values(ELEVATION).forEach((elevation) => {
|
|
211
|
-
classNames[elevation] =
|
|
213
|
+
classNames[elevation] = styles64[`${baseClassName}--${elevation}`];
|
|
212
214
|
});
|
|
213
|
-
const variants = classVarianceAuthority.cva(
|
|
215
|
+
const variants = classVarianceAuthority.cva(styles64[baseClassName], {
|
|
214
216
|
variants: {
|
|
215
217
|
elevation: classNames
|
|
216
218
|
},
|
|
@@ -1939,14 +1941,14 @@ var DropdownMenuContent = React16__namespace.forwardRef(({ className, sideOffset
|
|
|
1939
1941
|
}
|
|
1940
1942
|
) }));
|
|
1941
1943
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1942
|
-
var DropdownMenuItem = React16__namespace.forwardRef(({ className, inset,
|
|
1944
|
+
var DropdownMenuItem = React16__namespace.forwardRef(({ className, inset, variant = "neutral", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1943
1945
|
DropdownMenuPrimitive__namespace.Item,
|
|
1944
1946
|
{
|
|
1945
1947
|
ref,
|
|
1946
1948
|
className: cn(
|
|
1947
1949
|
styles22__default.default["dropdown-menu-item"],
|
|
1948
1950
|
inset && styles22__default.default["dropdown-menu-inset"],
|
|
1949
|
-
danger && styles22__default.default["dropdown-menu-item-danger"],
|
|
1951
|
+
variant === "danger" && styles22__default.default["dropdown-menu-item-danger"],
|
|
1950
1952
|
className
|
|
1951
1953
|
),
|
|
1952
1954
|
...props
|
|
@@ -2037,7 +2039,7 @@ var FilterDropdown = ({
|
|
|
2037
2039
|
(option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
|
|
2038
2040
|
);
|
|
2039
2041
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
2040
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2042
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2041
2043
|
Button,
|
|
2042
2044
|
{
|
|
2043
2045
|
variant: "tertiary",
|
|
@@ -2950,6 +2952,77 @@ var SectionHeading = ({
|
|
|
2950
2952
|
hasRightContent && renderRightContent()
|
|
2951
2953
|
] });
|
|
2952
2954
|
};
|
|
2955
|
+
var SegmentedControls = ({
|
|
2956
|
+
options,
|
|
2957
|
+
value,
|
|
2958
|
+
onValueChange,
|
|
2959
|
+
display = "both",
|
|
2960
|
+
className
|
|
2961
|
+
}) => {
|
|
2962
|
+
const allHaveIcons = options.every((option) => option.icon != null);
|
|
2963
|
+
const effectiveDisplay = display === "icon-only" && !allHaveIcons ? "both" : display;
|
|
2964
|
+
const isIconOnly = effectiveDisplay === "icon-only";
|
|
2965
|
+
const containerRef = React16.useRef(null);
|
|
2966
|
+
const segmentRefs = React16.useRef({});
|
|
2967
|
+
const [indicator, setIndicator] = React16.useState({
|
|
2968
|
+
left: 0,
|
|
2969
|
+
width: 0
|
|
2970
|
+
});
|
|
2971
|
+
const updateIndicator = React16.useCallback(() => {
|
|
2972
|
+
const activeSegment = segmentRefs.current[value];
|
|
2973
|
+
if (activeSegment) {
|
|
2974
|
+
setIndicator({ left: activeSegment.offsetLeft, width: activeSegment.offsetWidth });
|
|
2975
|
+
}
|
|
2976
|
+
}, [value]);
|
|
2977
|
+
React16.useLayoutEffect(() => {
|
|
2978
|
+
updateIndicator();
|
|
2979
|
+
}, [updateIndicator, options, effectiveDisplay]);
|
|
2980
|
+
React16.useLayoutEffect(() => {
|
|
2981
|
+
const container = containerRef.current;
|
|
2982
|
+
if (!container) return;
|
|
2983
|
+
const observer = new ResizeObserver(updateIndicator);
|
|
2984
|
+
observer.observe(container);
|
|
2985
|
+
return () => observer.disconnect();
|
|
2986
|
+
}, [updateIndicator]);
|
|
2987
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: cn(styles46__default.default["segmented-controls"], className), children: [
|
|
2988
|
+
options.map((option) => {
|
|
2989
|
+
const currentlyActive = option.value === value;
|
|
2990
|
+
const showIcon = option.icon != null && effectiveDisplay !== "text-only";
|
|
2991
|
+
const showLabel = effectiveDisplay !== "icon-only";
|
|
2992
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2993
|
+
"button",
|
|
2994
|
+
{
|
|
2995
|
+
ref: (el) => {
|
|
2996
|
+
segmentRefs.current[option.value] = el;
|
|
2997
|
+
},
|
|
2998
|
+
type: "button",
|
|
2999
|
+
"aria-pressed": currentlyActive,
|
|
3000
|
+
"aria-label": isIconOnly ? option.label : void 0,
|
|
3001
|
+
title: isIconOnly ? option.label : void 0,
|
|
3002
|
+
className: cn(
|
|
3003
|
+
styles46__default.default["segment"],
|
|
3004
|
+
isIconOnly && styles46__default.default["segment--icon-only"],
|
|
3005
|
+
currentlyActive ? styles46__default.default["segment--active"] : styles46__default.default["segment--inactive"]
|
|
3006
|
+
),
|
|
3007
|
+
onClick: () => onValueChange(option.value),
|
|
3008
|
+
children: [
|
|
3009
|
+
showIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: option.icon, size: "xs", className: styles46__default.default["segment-icon"] }),
|
|
3010
|
+
showLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { children: option.label }),
|
|
3011
|
+
!isIconOnly && option.suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles46__default.default["segment-suffix"], children: option.suffix })
|
|
3012
|
+
]
|
|
3013
|
+
},
|
|
3014
|
+
option.value
|
|
3015
|
+
);
|
|
3016
|
+
}),
|
|
3017
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3018
|
+
"div",
|
|
3019
|
+
{
|
|
3020
|
+
className: styles46__default.default["active-segment-indicator"],
|
|
3021
|
+
style: { transform: `translateX(${indicator.left}px)`, width: `${indicator.width}px` }
|
|
3022
|
+
}
|
|
3023
|
+
)
|
|
3024
|
+
] });
|
|
3025
|
+
};
|
|
2953
3026
|
var Separator3 = React16__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2954
3027
|
SeparatorPrimitive__namespace.Root,
|
|
2955
3028
|
{
|
|
@@ -2957,8 +3030,8 @@ var Separator3 = React16__namespace.forwardRef(({ className, orientation = "hori
|
|
|
2957
3030
|
decorative,
|
|
2958
3031
|
orientation,
|
|
2959
3032
|
className: cn(
|
|
2960
|
-
|
|
2961
|
-
orientation === "horizontal" ?
|
|
3033
|
+
styles47__default.default["separator"],
|
|
3034
|
+
orientation === "horizontal" ? styles47__default.default["separator--horizontal"] : styles47__default.default["separator--vertical"],
|
|
2962
3035
|
className
|
|
2963
3036
|
),
|
|
2964
3037
|
...props
|
|
@@ -2969,15 +3042,15 @@ var Sheet = DialogPrimitive__namespace.Root;
|
|
|
2969
3042
|
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
2970
3043
|
var SheetClose = DialogPrimitive__namespace.Close;
|
|
2971
3044
|
var SheetPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { container: getThemeProviderRoot(), children });
|
|
2972
|
-
var SheetOverlay = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cn(
|
|
3045
|
+
var SheetOverlay = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cn(styles48__default.default["sheet-overlay"], className), ...props, ref }));
|
|
2973
3046
|
SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
2974
|
-
var sheetVariants = classVarianceAuthority.cva(
|
|
3047
|
+
var sheetVariants = classVarianceAuthority.cva(styles48__default.default["sheet-content"], {
|
|
2975
3048
|
variants: {
|
|
2976
3049
|
side: {
|
|
2977
|
-
top:
|
|
2978
|
-
bottom:
|
|
2979
|
-
left:
|
|
2980
|
-
right:
|
|
3050
|
+
top: styles48__default.default["sheet-content--side-top"],
|
|
3051
|
+
bottom: styles48__default.default["sheet-content--side-bottom"],
|
|
3052
|
+
left: styles48__default.default["sheet-content--side-left"],
|
|
3053
|
+
right: styles48__default.default["sheet-content--side-right"]
|
|
2981
3054
|
}
|
|
2982
3055
|
},
|
|
2983
3056
|
defaultVariants: {
|
|
@@ -2989,7 +3062,7 @@ var SheetContainer = React16__namespace.forwardRef(({ side = "right", className,
|
|
|
2989
3062
|
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
|
|
2990
3063
|
] }));
|
|
2991
3064
|
SheetContainer.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
2992
|
-
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3065
|
+
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-header-icon"], className), ...props });
|
|
2993
3066
|
SheetHeaderIcon.displayName = "SheetHeaderIcon";
|
|
2994
3067
|
var SheetHeader = ({ className, children, ...props }) => {
|
|
2995
3068
|
const childrenArray = React16__namespace.Children.toArray(children);
|
|
@@ -2999,30 +3072,30 @@ var SheetHeader = ({ className, children, ...props }) => {
|
|
|
2999
3072
|
const otherChildren = childrenArray.filter(
|
|
3000
3073
|
(child) => !(React16__namespace.isValidElement(child) && child.type === SheetHeaderIcon)
|
|
3001
3074
|
);
|
|
3002
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3075
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles48__default.default["sheet-header"], className), ...props, children: [
|
|
3003
3076
|
icon,
|
|
3004
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3005
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { name: "X", label: "Close", className:
|
|
3077
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles48__default.default["sheet-header-text-content"], children: otherChildren }),
|
|
3078
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { name: "X", label: "Close", className: styles48__default.default["sheet-close"] }) })
|
|
3006
3079
|
] });
|
|
3007
3080
|
};
|
|
3008
3081
|
SheetHeader.displayName = "SheetHeader";
|
|
3009
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3082
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-footer"], className), ...props });
|
|
3010
3083
|
SheetFooter.displayName = "SheetFooter";
|
|
3011
|
-
var SheetTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(
|
|
3084
|
+
var SheetTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(styles48__default.default["sheet-title"], className), ...props }));
|
|
3012
3085
|
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3013
3086
|
var SheetDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3014
3087
|
DialogPrimitive__namespace.Description,
|
|
3015
3088
|
{
|
|
3016
3089
|
ref,
|
|
3017
|
-
className: cn(
|
|
3090
|
+
className: cn(styles48__default.default["sheet-description"], className),
|
|
3018
3091
|
...props
|
|
3019
3092
|
}
|
|
3020
3093
|
));
|
|
3021
3094
|
SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3022
|
-
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3095
|
+
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-body"], "styled-vertical-scrollbar", className), ...props });
|
|
3023
3096
|
SheetContent.displayName = "SheetContent";
|
|
3024
3097
|
function Skeleton({ className, ...props }) {
|
|
3025
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3098
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles49__default.default["skeleton"], className), ...props });
|
|
3026
3099
|
}
|
|
3027
3100
|
var ChevronDownIcon4 = LucideIcons.ChevronDown;
|
|
3028
3101
|
function SortSelector({
|
|
@@ -3066,9 +3139,9 @@ function SortSelector({
|
|
|
3066
3139
|
setCurrentPage?.(1);
|
|
3067
3140
|
};
|
|
3068
3141
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
3069
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(
|
|
3142
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(styles50__default.default["sort-selector-trigger"], className), children: [
|
|
3070
3143
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: currentLabel }),
|
|
3071
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className:
|
|
3144
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className: styles50__default.default["chevron-down-icon"] })
|
|
3072
3145
|
] }) }),
|
|
3073
3146
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3074
3147
|
DropdownMenuContent,
|
|
@@ -3081,19 +3154,15 @@ function SortSelector({
|
|
|
3081
3154
|
!isDefaultSort && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleReset, children: "Reset" })
|
|
3082
3155
|
] }),
|
|
3083
3156
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
|
|
3084
|
-
filteredOptions.map((option) =>
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
},
|
|
3094
|
-
option.value
|
|
3095
|
-
);
|
|
3096
|
-
})
|
|
3157
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuRadioGroup, { value: currentValue, onValueChange: handleChange, children: filteredOptions.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3158
|
+
DropdownMenuRadioItem,
|
|
3159
|
+
{
|
|
3160
|
+
value: option.value,
|
|
3161
|
+
onSelect: (e) => e.preventDefault(),
|
|
3162
|
+
children: option.label
|
|
3163
|
+
},
|
|
3164
|
+
option.value
|
|
3165
|
+
)) })
|
|
3097
3166
|
]
|
|
3098
3167
|
}
|
|
3099
3168
|
)
|
|
@@ -3105,10 +3174,10 @@ var Switch = React16__namespace.forwardRef(
|
|
|
3105
3174
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3106
3175
|
SwitchPrimitives__namespace.Root,
|
|
3107
3176
|
{
|
|
3108
|
-
className: cn(
|
|
3177
|
+
className: cn(styles51__default.default["switch"], styles51__default.default[size], styles51__default.default[variant], className),
|
|
3109
3178
|
...props,
|
|
3110
3179
|
ref,
|
|
3111
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SwitchPrimitives__namespace.Thumb, { className: cn(
|
|
3180
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SwitchPrimitives__namespace.Thumb, { className: cn(styles51__default.default["thumb"], styles51__default.default[size]), children: thumbIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: thumbIcon, className: styles51__default.default["thumb-icon"], size: iconSize }) })
|
|
3112
3181
|
}
|
|
3113
3182
|
);
|
|
3114
3183
|
}
|
|
@@ -3130,24 +3199,24 @@ function SortButton({
|
|
|
3130
3199
|
const handleClick = () => {
|
|
3131
3200
|
onSort(field);
|
|
3132
3201
|
};
|
|
3133
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className:
|
|
3202
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className: styles52__default.default["sort-button"], children: [
|
|
3134
3203
|
icon,
|
|
3135
3204
|
children,
|
|
3136
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3205
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles52__default.default["arrow-container"], children: isActive ? isAscending ? /* @__PURE__ */ jsxRuntime.jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowUpDownIcon, { className: styles52__default.default["arrow-up-down-icon"] }) })
|
|
3137
3206
|
] });
|
|
3138
3207
|
}
|
|
3139
|
-
var tableElevationVariants = generateElevationVariants(
|
|
3208
|
+
var tableElevationVariants = generateElevationVariants(styles53__default.default, "table", ELEVATION.RAISED);
|
|
3140
3209
|
var TableContainer = React16__namespace.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3141
3210
|
"div",
|
|
3142
3211
|
{
|
|
3143
3212
|
className: cn(
|
|
3144
|
-
|
|
3213
|
+
styles53__default.default["table"],
|
|
3145
3214
|
tableElevationVariants({ elevation }),
|
|
3146
|
-
border &&
|
|
3215
|
+
border && styles53__default.default["table-border"],
|
|
3147
3216
|
className
|
|
3148
3217
|
),
|
|
3149
3218
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
3150
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className:
|
|
3219
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: styles53__default.default["table-inner"], ...props })
|
|
3151
3220
|
}
|
|
3152
3221
|
));
|
|
3153
3222
|
TableContainer.displayName = "Table";
|
|
@@ -3156,18 +3225,18 @@ var TableHeader = React16__namespace.forwardRef(({ className, sticky = false, ..
|
|
|
3156
3225
|
{
|
|
3157
3226
|
ref,
|
|
3158
3227
|
className: cn(
|
|
3159
|
-
|
|
3160
|
-
sticky === "container" &&
|
|
3161
|
-
sticky === "page" &&
|
|
3228
|
+
styles53__default.default["table-header"],
|
|
3229
|
+
sticky === "container" && styles53__default.default["table-header--sticky-container"],
|
|
3230
|
+
sticky === "page" && styles53__default.default["table-header--sticky-page"],
|
|
3162
3231
|
className
|
|
3163
3232
|
),
|
|
3164
3233
|
...props
|
|
3165
3234
|
}
|
|
3166
3235
|
));
|
|
3167
3236
|
TableHeader.displayName = "TableHeader";
|
|
3168
|
-
var TableBody = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(
|
|
3237
|
+
var TableBody = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(styles53__default.default["table-body"], className), ...props }));
|
|
3169
3238
|
TableBody.displayName = "TableBody";
|
|
3170
|
-
var TableFooter = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(
|
|
3239
|
+
var TableFooter = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(styles53__default.default["table-footer"], className), ...props }));
|
|
3171
3240
|
TableFooter.displayName = "TableFooter";
|
|
3172
3241
|
var TableRow = React16__namespace.forwardRef(
|
|
3173
3242
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
@@ -3184,15 +3253,15 @@ var TableRow = React16__namespace.forwardRef(
|
|
|
3184
3253
|
{
|
|
3185
3254
|
ref,
|
|
3186
3255
|
className: cn(
|
|
3187
|
-
|
|
3188
|
-
isClickable &&
|
|
3189
|
-
href &&
|
|
3256
|
+
styles53__default.default["table-row"],
|
|
3257
|
+
isClickable && styles53__default.default["table-row--clickable"],
|
|
3258
|
+
href && styles53__default.default["table-row--linked"],
|
|
3190
3259
|
className
|
|
3191
3260
|
),
|
|
3192
3261
|
onClick: onClick ? handleClick : void 0,
|
|
3193
3262
|
...props,
|
|
3194
3263
|
children: [
|
|
3195
|
-
href && /* @__PURE__ */ jsxRuntime.jsx("a", { href, className:
|
|
3264
|
+
href && /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: styles53__default.default["table-row-link"], "data-table-row-link": true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: hrefLabel }) }),
|
|
3196
3265
|
children
|
|
3197
3266
|
]
|
|
3198
3267
|
}
|
|
@@ -3200,18 +3269,18 @@ var TableRow = React16__namespace.forwardRef(
|
|
|
3200
3269
|
}
|
|
3201
3270
|
);
|
|
3202
3271
|
TableRow.displayName = "TableRow";
|
|
3203
|
-
var TableHead = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(
|
|
3272
|
+
var TableHead = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(styles53__default.default["table-head"], className), ...props }));
|
|
3204
3273
|
TableHead.displayName = "TableHead";
|
|
3205
|
-
var TableCell = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(
|
|
3274
|
+
var TableCell = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(styles53__default.default["table-cell"], className), ...props }));
|
|
3206
3275
|
TableCell.displayName = "TableCell";
|
|
3207
|
-
var TableCaption = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(
|
|
3276
|
+
var TableCaption = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(styles53__default.default["table-caption"], className), ...props }));
|
|
3208
3277
|
TableCaption.displayName = "TableCaption";
|
|
3209
3278
|
var TabsContainer = TabsPrimitive__namespace.Root;
|
|
3210
|
-
var TabsList = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(
|
|
3279
|
+
var TabsList = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(styles54__default.default["tabs-list"], className), ...props }));
|
|
3211
3280
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
3212
|
-
var TabsTrigger = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(
|
|
3281
|
+
var TabsTrigger = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(styles54__default.default["tabs-trigger"], className), ...props }));
|
|
3213
3282
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
3214
|
-
var TabsContent = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(
|
|
3283
|
+
var TabsContent = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(styles54__default.default["tabs-content"], className), ...props }));
|
|
3215
3284
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
3216
3285
|
var Tabs = ({
|
|
3217
3286
|
id,
|
|
@@ -3229,7 +3298,7 @@ var Tabs = ({
|
|
|
3229
3298
|
};
|
|
3230
3299
|
const renderIcon = (icon) => {
|
|
3231
3300
|
if (icon) {
|
|
3232
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className:
|
|
3301
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className: styles55__default.default["tabs-icon"] });
|
|
3233
3302
|
}
|
|
3234
3303
|
return null;
|
|
3235
3304
|
};
|
|
@@ -3239,8 +3308,8 @@ var Tabs = ({
|
|
|
3239
3308
|
react.motion.span,
|
|
3240
3309
|
{
|
|
3241
3310
|
className: cn(
|
|
3242
|
-
|
|
3243
|
-
isFilled ?
|
|
3311
|
+
styles55__default.default["active-tab-indicator"],
|
|
3312
|
+
isFilled ? styles55__default.default["active-tab-indicator--filled"] : styles55__default.default["active-tab-indicator--transparent"]
|
|
3244
3313
|
),
|
|
3245
3314
|
initial: false,
|
|
3246
3315
|
layoutId: `${id}-active-tab-indicator`
|
|
@@ -3254,14 +3323,14 @@ var Tabs = ({
|
|
|
3254
3323
|
{
|
|
3255
3324
|
value: activeTab,
|
|
3256
3325
|
onValueChange: handleValueChange,
|
|
3257
|
-
className: cn(
|
|
3326
|
+
className: cn(styles55__default.default["tabs"], className),
|
|
3258
3327
|
children: [
|
|
3259
3328
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3260
3329
|
TabsList,
|
|
3261
3330
|
{
|
|
3262
3331
|
className: cn(
|
|
3263
|
-
|
|
3264
|
-
isFilled ?
|
|
3332
|
+
styles55__default.default["tabs-list"],
|
|
3333
|
+
isFilled ? styles55__default.default["tabs-list--filled"] : styles55__default.default["tabs-list--transparent"]
|
|
3265
3334
|
),
|
|
3266
3335
|
children: items.map(({ label, value, icon, suffix }) => {
|
|
3267
3336
|
const isActive = activeTab === value;
|
|
@@ -3270,8 +3339,8 @@ var Tabs = ({
|
|
|
3270
3339
|
{
|
|
3271
3340
|
value,
|
|
3272
3341
|
className: cn(
|
|
3273
|
-
|
|
3274
|
-
isFilled ?
|
|
3342
|
+
styles55__default.default["tabs-trigger"],
|
|
3343
|
+
isFilled ? styles55__default.default["tabs-trigger--filled"] : styles55__default.default["tabs-trigger--transparent"]
|
|
3275
3344
|
),
|
|
3276
3345
|
"data-tour": `${value}-tab-overview`,
|
|
3277
3346
|
children: [
|
|
@@ -3286,14 +3355,14 @@ var Tabs = ({
|
|
|
3286
3355
|
})
|
|
3287
3356
|
}
|
|
3288
3357
|
),
|
|
3289
|
-
items.map(({ value, content }) => /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value, className:
|
|
3358
|
+
items.map(({ value, content }) => /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value, className: styles55__default.default["content"], children: content }, value))
|
|
3290
3359
|
]
|
|
3291
3360
|
}
|
|
3292
3361
|
);
|
|
3293
3362
|
};
|
|
3294
3363
|
var Textarea = React16__namespace.forwardRef(
|
|
3295
3364
|
({ className, ...props }, ref) => {
|
|
3296
|
-
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(
|
|
3365
|
+
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(styles56__default.default["textarea"], className), ref, ...props });
|
|
3297
3366
|
}
|
|
3298
3367
|
);
|
|
3299
3368
|
Textarea.displayName = "Textarea";
|
|
@@ -3364,10 +3433,10 @@ function FormatDate({
|
|
|
3364
3433
|
return () => clearInterval(id);
|
|
3365
3434
|
}, [isRelative, live]);
|
|
3366
3435
|
if (missing) {
|
|
3367
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(
|
|
3436
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles57__default.default["format-date"], className), "aria-label": "No date", ...props, children: NO_DATE_PLACEHOLDER });
|
|
3368
3437
|
}
|
|
3369
3438
|
if (!parsed) {
|
|
3370
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(
|
|
3439
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles57__default.default["format-date"], className), ...props, children: "Invalid date" });
|
|
3371
3440
|
}
|
|
3372
3441
|
const machineValue = parsed.toISOString();
|
|
3373
3442
|
const absolute = formatAbsolute(
|
|
@@ -3377,11 +3446,11 @@ function FormatDate({
|
|
|
3377
3446
|
locale
|
|
3378
3447
|
);
|
|
3379
3448
|
if (!isRelative) {
|
|
3380
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(
|
|
3449
|
+
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles57__default.default["format-date"], className), ...props, children: absolute });
|
|
3381
3450
|
}
|
|
3382
3451
|
const relative = mounted ? formatRelative(parsed, now, locale) : absolute;
|
|
3383
3452
|
if (!tooltip) {
|
|
3384
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(
|
|
3453
|
+
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles57__default.default["format-date"], className), ...props, children: relative });
|
|
3385
3454
|
}
|
|
3386
3455
|
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
3387
3456
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3389,7 +3458,7 @@ function FormatDate({
|
|
|
3389
3458
|
{
|
|
3390
3459
|
dateTime: machineValue,
|
|
3391
3460
|
tabIndex: 0,
|
|
3392
|
-
className: cn(
|
|
3461
|
+
className: cn(styles57__default.default["format-date"], styles57__default.default["format-date--interactive"], className),
|
|
3393
3462
|
...props,
|
|
3394
3463
|
children: relative
|
|
3395
3464
|
}
|
|
@@ -3403,18 +3472,18 @@ var ToastViewport = React16__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3403
3472
|
ToastPrimitives__namespace.Viewport,
|
|
3404
3473
|
{
|
|
3405
3474
|
ref,
|
|
3406
|
-
className: cn(
|
|
3475
|
+
className: cn(styles58__default.default["toast-viewport"], className),
|
|
3407
3476
|
...props
|
|
3408
3477
|
}
|
|
3409
3478
|
));
|
|
3410
3479
|
ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
|
|
3411
|
-
var toastVariants = classVarianceAuthority.cva(
|
|
3480
|
+
var toastVariants = classVarianceAuthority.cva(styles58__default.default["toast"], {
|
|
3412
3481
|
variants: {
|
|
3413
3482
|
variant: {
|
|
3414
|
-
default:
|
|
3415
|
-
danger:
|
|
3416
|
-
warning:
|
|
3417
|
-
success:
|
|
3483
|
+
default: styles58__default.default["toast--default"],
|
|
3484
|
+
danger: styles58__default.default["toast--danger"],
|
|
3485
|
+
warning: styles58__default.default["toast--warning"],
|
|
3486
|
+
success: styles58__default.default["toast--success"]
|
|
3418
3487
|
}
|
|
3419
3488
|
},
|
|
3420
3489
|
defaultVariants: {
|
|
@@ -3432,17 +3501,17 @@ var ToastContainer = React16__namespace.forwardRef(({ className, variant, ...pro
|
|
|
3432
3501
|
);
|
|
3433
3502
|
});
|
|
3434
3503
|
ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
3435
|
-
var ToastAction = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(
|
|
3504
|
+
var ToastAction = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(styles58__default.default["toast-action"], className), ...props }));
|
|
3436
3505
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
3437
|
-
var ToastClose = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(
|
|
3506
|
+
var ToastClose = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(styles58__default.default["toast-close"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles58__default.default["toast-close-icon"] }) }));
|
|
3438
3507
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
3439
|
-
var ToastTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(
|
|
3508
|
+
var ToastTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles58__default.default["toast-title"], className), ...props }));
|
|
3440
3509
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
3441
3510
|
var ToastDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3442
3511
|
ToastPrimitives__namespace.Description,
|
|
3443
3512
|
{
|
|
3444
3513
|
ref,
|
|
3445
|
-
className: cn(
|
|
3514
|
+
className: cn(styles58__default.default["toast-description"], className),
|
|
3446
3515
|
...props
|
|
3447
3516
|
}
|
|
3448
3517
|
));
|
|
@@ -3577,14 +3646,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
3577
3646
|
};
|
|
3578
3647
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
3579
3648
|
return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
|
|
3580
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3581
|
-
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3649
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles59__default.default["toast-copy"], children: [
|
|
3650
|
+
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles59__default.default["toast-title-container"], children: [
|
|
3582
3651
|
displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
3583
3652
|
/* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
|
|
3584
3653
|
] }),
|
|
3585
3654
|
description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
|
|
3586
3655
|
] }),
|
|
3587
|
-
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3656
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles59__default.default["toast-action"], children: action }),
|
|
3588
3657
|
/* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
|
|
3589
3658
|
] });
|
|
3590
3659
|
};
|
|
@@ -3614,7 +3683,7 @@ var TruncatedDescription = ({
|
|
|
3614
3683
|
e.stopPropagation();
|
|
3615
3684
|
setExpanded(!expanded);
|
|
3616
3685
|
};
|
|
3617
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3686
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles60__default.default["truncated-description"], className), children: [
|
|
3618
3687
|
/* @__PURE__ */ jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
3619
3688
|
isLongDescription && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
3620
3689
|
] });
|
|
@@ -3625,12 +3694,12 @@ var removeHtmlTags = (html) => {
|
|
|
3625
3694
|
var Heading = React16.forwardRef(
|
|
3626
3695
|
({ className, as, displayAs, children, ...props }, ref) => {
|
|
3627
3696
|
const displayClasses = {
|
|
3628
|
-
h1:
|
|
3629
|
-
h2:
|
|
3630
|
-
h3:
|
|
3631
|
-
h4:
|
|
3632
|
-
h5:
|
|
3633
|
-
h6:
|
|
3697
|
+
h1: styles61__default.default["h1"],
|
|
3698
|
+
h2: styles61__default.default["h2"],
|
|
3699
|
+
h3: styles61__default.default["h3"],
|
|
3700
|
+
h4: styles61__default.default["h4"],
|
|
3701
|
+
h5: styles61__default.default["h5"],
|
|
3702
|
+
h6: styles61__default.default["h6"]
|
|
3634
3703
|
};
|
|
3635
3704
|
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
3636
3705
|
const HeadingTag = as;
|
|
@@ -3644,12 +3713,12 @@ var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
|
3644
3713
|
if (display === "icon-only") {
|
|
3645
3714
|
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
3646
3715
|
}
|
|
3647
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3648
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
3649
|
-
display !== "text-only" && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: config.icon, size: "xs", className:
|
|
3716
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles62__default.default["split-badge"], config.className), children: [
|
|
3717
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles62__default.default["split-badge__status"], children: [
|
|
3718
|
+
display !== "text-only" && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: config.icon, size: "xs", className: styles62__default.default["icon"] }),
|
|
3650
3719
|
config.label
|
|
3651
3720
|
] }),
|
|
3652
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3721
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles62__default.default["split-badge__sub-status"], children: config.subLabel })
|
|
3653
3722
|
] });
|
|
3654
3723
|
}
|
|
3655
3724
|
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
@@ -3659,70 +3728,70 @@ var getStatusConfig = (status) => {
|
|
|
3659
3728
|
case "in-progress":
|
|
3660
3729
|
return {
|
|
3661
3730
|
icon: "Clock",
|
|
3662
|
-
className:
|
|
3731
|
+
className: styles62__default.default["badge--in-progress"],
|
|
3663
3732
|
label: "In Progress"
|
|
3664
3733
|
};
|
|
3665
3734
|
case "not-started":
|
|
3666
3735
|
return {
|
|
3667
3736
|
icon: "CircleDashed",
|
|
3668
|
-
className:
|
|
3737
|
+
className: styles62__default.default["badge--not-started"],
|
|
3669
3738
|
label: "Not Started"
|
|
3670
3739
|
};
|
|
3671
3740
|
case "ready-for-review":
|
|
3672
3741
|
return {
|
|
3673
3742
|
icon: "ClipboardCheck",
|
|
3674
|
-
className:
|
|
3743
|
+
className: styles62__default.default["badge--ready-for-review"],
|
|
3675
3744
|
label: "Ready for Review"
|
|
3676
3745
|
};
|
|
3677
3746
|
case "in-review":
|
|
3678
3747
|
return {
|
|
3679
3748
|
icon: "Eye",
|
|
3680
|
-
className:
|
|
3749
|
+
className: styles62__default.default["badge--in-review"],
|
|
3681
3750
|
label: "In Review"
|
|
3682
3751
|
};
|
|
3683
3752
|
case "comment":
|
|
3684
3753
|
return {
|
|
3685
3754
|
icon: "Eye",
|
|
3686
|
-
className:
|
|
3755
|
+
className: styles62__default.default["badge--comment"],
|
|
3687
3756
|
label: "In Review",
|
|
3688
3757
|
subLabel: "General"
|
|
3689
3758
|
};
|
|
3690
3759
|
case "not-applicable":
|
|
3691
3760
|
return {
|
|
3692
3761
|
icon: "MinusCircle",
|
|
3693
|
-
className:
|
|
3762
|
+
className: styles62__default.default["badge--not-applicable"],
|
|
3694
3763
|
label: "Not Applicable"
|
|
3695
3764
|
};
|
|
3696
3765
|
case "accepted":
|
|
3697
3766
|
return {
|
|
3698
3767
|
icon: "Eye",
|
|
3699
|
-
className:
|
|
3768
|
+
className: styles62__default.default["badge--accepted"],
|
|
3700
3769
|
label: "In Review",
|
|
3701
3770
|
subLabel: "Accepted"
|
|
3702
3771
|
};
|
|
3703
3772
|
case "questioned":
|
|
3704
3773
|
return {
|
|
3705
3774
|
icon: "Eye",
|
|
3706
|
-
className:
|
|
3775
|
+
className: styles62__default.default["badge--question"],
|
|
3707
3776
|
label: "In Review",
|
|
3708
3777
|
subLabel: "Questioned"
|
|
3709
3778
|
};
|
|
3710
3779
|
case "compliant":
|
|
3711
3780
|
return {
|
|
3712
3781
|
icon: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckFillIcon, {}),
|
|
3713
|
-
className:
|
|
3782
|
+
className: styles62__default.default["badge--compliant"],
|
|
3714
3783
|
label: "Compliant"
|
|
3715
3784
|
};
|
|
3716
3785
|
case "non-compliant":
|
|
3717
3786
|
return {
|
|
3718
3787
|
icon: "X",
|
|
3719
|
-
className:
|
|
3788
|
+
className: styles62__default.default["badge--non-compliant"],
|
|
3720
3789
|
label: "Non-compliant"
|
|
3721
3790
|
};
|
|
3722
3791
|
default:
|
|
3723
3792
|
return {
|
|
3724
3793
|
icon: "CircleDashed",
|
|
3725
|
-
className:
|
|
3794
|
+
className: styles62__default.default["badge--not-started"],
|
|
3726
3795
|
label: status
|
|
3727
3796
|
};
|
|
3728
3797
|
}
|
|
@@ -3745,7 +3814,7 @@ var Portal8 = () => {
|
|
|
3745
3814
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "equality-theme-provider-root-portal" });
|
|
3746
3815
|
};
|
|
3747
3816
|
var ThemeProvider = ({ customVars, children }) => {
|
|
3748
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { id: "equality-theme-provider-root", className:
|
|
3817
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { id: "equality-theme-provider-root", className: styles63__default.default.root, style: customVars, children: [
|
|
3749
3818
|
children,
|
|
3750
3819
|
/* @__PURE__ */ jsxRuntime.jsx(Portal8, {})
|
|
3751
3820
|
] });
|
|
@@ -3871,6 +3940,7 @@ exports.ScrollArea = ScrollArea;
|
|
|
3871
3940
|
exports.ScrollBar = ScrollBar;
|
|
3872
3941
|
exports.SearchBar = SearchBar;
|
|
3873
3942
|
exports.SectionHeading = SectionHeading;
|
|
3943
|
+
exports.SegmentedControls = SegmentedControls;
|
|
3874
3944
|
exports.Select = Select;
|
|
3875
3945
|
exports.SelectContent = SelectContent;
|
|
3876
3946
|
exports.SelectGroup = SelectGroup;
|