@eqtylab/equality 2.2.4 → 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/index.cjs +191 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +187 -115
- 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
|
},
|
|
@@ -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,
|
|
@@ -3101,10 +3174,10 @@ var Switch = React16__namespace.forwardRef(
|
|
|
3101
3174
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3102
3175
|
SwitchPrimitives__namespace.Root,
|
|
3103
3176
|
{
|
|
3104
|
-
className: cn(
|
|
3177
|
+
className: cn(styles51__default.default["switch"], styles51__default.default[size], styles51__default.default[variant], className),
|
|
3105
3178
|
...props,
|
|
3106
3179
|
ref,
|
|
3107
|
-
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 }) })
|
|
3108
3181
|
}
|
|
3109
3182
|
);
|
|
3110
3183
|
}
|
|
@@ -3126,24 +3199,24 @@ function SortButton({
|
|
|
3126
3199
|
const handleClick = () => {
|
|
3127
3200
|
onSort(field);
|
|
3128
3201
|
};
|
|
3129
|
-
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: [
|
|
3130
3203
|
icon,
|
|
3131
3204
|
children,
|
|
3132
|
-
/* @__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"] }) })
|
|
3133
3206
|
] });
|
|
3134
3207
|
}
|
|
3135
|
-
var tableElevationVariants = generateElevationVariants(
|
|
3208
|
+
var tableElevationVariants = generateElevationVariants(styles53__default.default, "table", ELEVATION.RAISED);
|
|
3136
3209
|
var TableContainer = React16__namespace.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3137
3210
|
"div",
|
|
3138
3211
|
{
|
|
3139
3212
|
className: cn(
|
|
3140
|
-
|
|
3213
|
+
styles53__default.default["table"],
|
|
3141
3214
|
tableElevationVariants({ elevation }),
|
|
3142
|
-
border &&
|
|
3215
|
+
border && styles53__default.default["table-border"],
|
|
3143
3216
|
className
|
|
3144
3217
|
),
|
|
3145
3218
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
3146
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className:
|
|
3219
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: styles53__default.default["table-inner"], ...props })
|
|
3147
3220
|
}
|
|
3148
3221
|
));
|
|
3149
3222
|
TableContainer.displayName = "Table";
|
|
@@ -3152,18 +3225,18 @@ var TableHeader = React16__namespace.forwardRef(({ className, sticky = false, ..
|
|
|
3152
3225
|
{
|
|
3153
3226
|
ref,
|
|
3154
3227
|
className: cn(
|
|
3155
|
-
|
|
3156
|
-
sticky === "container" &&
|
|
3157
|
-
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"],
|
|
3158
3231
|
className
|
|
3159
3232
|
),
|
|
3160
3233
|
...props
|
|
3161
3234
|
}
|
|
3162
3235
|
));
|
|
3163
3236
|
TableHeader.displayName = "TableHeader";
|
|
3164
|
-
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 }));
|
|
3165
3238
|
TableBody.displayName = "TableBody";
|
|
3166
|
-
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 }));
|
|
3167
3240
|
TableFooter.displayName = "TableFooter";
|
|
3168
3241
|
var TableRow = React16__namespace.forwardRef(
|
|
3169
3242
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
@@ -3180,15 +3253,15 @@ var TableRow = React16__namespace.forwardRef(
|
|
|
3180
3253
|
{
|
|
3181
3254
|
ref,
|
|
3182
3255
|
className: cn(
|
|
3183
|
-
|
|
3184
|
-
isClickable &&
|
|
3185
|
-
href &&
|
|
3256
|
+
styles53__default.default["table-row"],
|
|
3257
|
+
isClickable && styles53__default.default["table-row--clickable"],
|
|
3258
|
+
href && styles53__default.default["table-row--linked"],
|
|
3186
3259
|
className
|
|
3187
3260
|
),
|
|
3188
3261
|
onClick: onClick ? handleClick : void 0,
|
|
3189
3262
|
...props,
|
|
3190
3263
|
children: [
|
|
3191
|
-
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 }) }),
|
|
3192
3265
|
children
|
|
3193
3266
|
]
|
|
3194
3267
|
}
|
|
@@ -3196,18 +3269,18 @@ var TableRow = React16__namespace.forwardRef(
|
|
|
3196
3269
|
}
|
|
3197
3270
|
);
|
|
3198
3271
|
TableRow.displayName = "TableRow";
|
|
3199
|
-
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 }));
|
|
3200
3273
|
TableHead.displayName = "TableHead";
|
|
3201
|
-
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 }));
|
|
3202
3275
|
TableCell.displayName = "TableCell";
|
|
3203
|
-
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 }));
|
|
3204
3277
|
TableCaption.displayName = "TableCaption";
|
|
3205
3278
|
var TabsContainer = TabsPrimitive__namespace.Root;
|
|
3206
|
-
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 }));
|
|
3207
3280
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
3208
|
-
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 }));
|
|
3209
3282
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
3210
|
-
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 }));
|
|
3211
3284
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
3212
3285
|
var Tabs = ({
|
|
3213
3286
|
id,
|
|
@@ -3225,7 +3298,7 @@ var Tabs = ({
|
|
|
3225
3298
|
};
|
|
3226
3299
|
const renderIcon = (icon) => {
|
|
3227
3300
|
if (icon) {
|
|
3228
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className:
|
|
3301
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className: styles55__default.default["tabs-icon"] });
|
|
3229
3302
|
}
|
|
3230
3303
|
return null;
|
|
3231
3304
|
};
|
|
@@ -3235,8 +3308,8 @@ var Tabs = ({
|
|
|
3235
3308
|
react.motion.span,
|
|
3236
3309
|
{
|
|
3237
3310
|
className: cn(
|
|
3238
|
-
|
|
3239
|
-
isFilled ?
|
|
3311
|
+
styles55__default.default["active-tab-indicator"],
|
|
3312
|
+
isFilled ? styles55__default.default["active-tab-indicator--filled"] : styles55__default.default["active-tab-indicator--transparent"]
|
|
3240
3313
|
),
|
|
3241
3314
|
initial: false,
|
|
3242
3315
|
layoutId: `${id}-active-tab-indicator`
|
|
@@ -3250,14 +3323,14 @@ var Tabs = ({
|
|
|
3250
3323
|
{
|
|
3251
3324
|
value: activeTab,
|
|
3252
3325
|
onValueChange: handleValueChange,
|
|
3253
|
-
className: cn(
|
|
3326
|
+
className: cn(styles55__default.default["tabs"], className),
|
|
3254
3327
|
children: [
|
|
3255
3328
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3256
3329
|
TabsList,
|
|
3257
3330
|
{
|
|
3258
3331
|
className: cn(
|
|
3259
|
-
|
|
3260
|
-
isFilled ?
|
|
3332
|
+
styles55__default.default["tabs-list"],
|
|
3333
|
+
isFilled ? styles55__default.default["tabs-list--filled"] : styles55__default.default["tabs-list--transparent"]
|
|
3261
3334
|
),
|
|
3262
3335
|
children: items.map(({ label, value, icon, suffix }) => {
|
|
3263
3336
|
const isActive = activeTab === value;
|
|
@@ -3266,8 +3339,8 @@ var Tabs = ({
|
|
|
3266
3339
|
{
|
|
3267
3340
|
value,
|
|
3268
3341
|
className: cn(
|
|
3269
|
-
|
|
3270
|
-
isFilled ?
|
|
3342
|
+
styles55__default.default["tabs-trigger"],
|
|
3343
|
+
isFilled ? styles55__default.default["tabs-trigger--filled"] : styles55__default.default["tabs-trigger--transparent"]
|
|
3271
3344
|
),
|
|
3272
3345
|
"data-tour": `${value}-tab-overview`,
|
|
3273
3346
|
children: [
|
|
@@ -3282,14 +3355,14 @@ var Tabs = ({
|
|
|
3282
3355
|
})
|
|
3283
3356
|
}
|
|
3284
3357
|
),
|
|
3285
|
-
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))
|
|
3286
3359
|
]
|
|
3287
3360
|
}
|
|
3288
3361
|
);
|
|
3289
3362
|
};
|
|
3290
3363
|
var Textarea = React16__namespace.forwardRef(
|
|
3291
3364
|
({ className, ...props }, ref) => {
|
|
3292
|
-
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(
|
|
3365
|
+
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(styles56__default.default["textarea"], className), ref, ...props });
|
|
3293
3366
|
}
|
|
3294
3367
|
);
|
|
3295
3368
|
Textarea.displayName = "Textarea";
|
|
@@ -3360,10 +3433,10 @@ function FormatDate({
|
|
|
3360
3433
|
return () => clearInterval(id);
|
|
3361
3434
|
}, [isRelative, live]);
|
|
3362
3435
|
if (missing) {
|
|
3363
|
-
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 });
|
|
3364
3437
|
}
|
|
3365
3438
|
if (!parsed) {
|
|
3366
|
-
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" });
|
|
3367
3440
|
}
|
|
3368
3441
|
const machineValue = parsed.toISOString();
|
|
3369
3442
|
const absolute = formatAbsolute(
|
|
@@ -3373,11 +3446,11 @@ function FormatDate({
|
|
|
3373
3446
|
locale
|
|
3374
3447
|
);
|
|
3375
3448
|
if (!isRelative) {
|
|
3376
|
-
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 });
|
|
3377
3450
|
}
|
|
3378
3451
|
const relative = mounted ? formatRelative(parsed, now, locale) : absolute;
|
|
3379
3452
|
if (!tooltip) {
|
|
3380
|
-
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 });
|
|
3381
3454
|
}
|
|
3382
3455
|
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
3383
3456
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3385,7 +3458,7 @@ function FormatDate({
|
|
|
3385
3458
|
{
|
|
3386
3459
|
dateTime: machineValue,
|
|
3387
3460
|
tabIndex: 0,
|
|
3388
|
-
className: cn(
|
|
3461
|
+
className: cn(styles57__default.default["format-date"], styles57__default.default["format-date--interactive"], className),
|
|
3389
3462
|
...props,
|
|
3390
3463
|
children: relative
|
|
3391
3464
|
}
|
|
@@ -3399,18 +3472,18 @@ var ToastViewport = React16__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3399
3472
|
ToastPrimitives__namespace.Viewport,
|
|
3400
3473
|
{
|
|
3401
3474
|
ref,
|
|
3402
|
-
className: cn(
|
|
3475
|
+
className: cn(styles58__default.default["toast-viewport"], className),
|
|
3403
3476
|
...props
|
|
3404
3477
|
}
|
|
3405
3478
|
));
|
|
3406
3479
|
ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
|
|
3407
|
-
var toastVariants = classVarianceAuthority.cva(
|
|
3480
|
+
var toastVariants = classVarianceAuthority.cva(styles58__default.default["toast"], {
|
|
3408
3481
|
variants: {
|
|
3409
3482
|
variant: {
|
|
3410
|
-
default:
|
|
3411
|
-
danger:
|
|
3412
|
-
warning:
|
|
3413
|
-
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"]
|
|
3414
3487
|
}
|
|
3415
3488
|
},
|
|
3416
3489
|
defaultVariants: {
|
|
@@ -3428,17 +3501,17 @@ var ToastContainer = React16__namespace.forwardRef(({ className, variant, ...pro
|
|
|
3428
3501
|
);
|
|
3429
3502
|
});
|
|
3430
3503
|
ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
3431
|
-
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 }));
|
|
3432
3505
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
3433
|
-
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"] }) }));
|
|
3434
3507
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
3435
|
-
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 }));
|
|
3436
3509
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
3437
3510
|
var ToastDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3438
3511
|
ToastPrimitives__namespace.Description,
|
|
3439
3512
|
{
|
|
3440
3513
|
ref,
|
|
3441
|
-
className: cn(
|
|
3514
|
+
className: cn(styles58__default.default["toast-description"], className),
|
|
3442
3515
|
...props
|
|
3443
3516
|
}
|
|
3444
3517
|
));
|
|
@@ -3573,14 +3646,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
3573
3646
|
};
|
|
3574
3647
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
3575
3648
|
return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
|
|
3576
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3577
|
-
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: [
|
|
3578
3651
|
displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
3579
3652
|
/* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
|
|
3580
3653
|
] }),
|
|
3581
3654
|
description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
|
|
3582
3655
|
] }),
|
|
3583
|
-
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3656
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles59__default.default["toast-action"], children: action }),
|
|
3584
3657
|
/* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
|
|
3585
3658
|
] });
|
|
3586
3659
|
};
|
|
@@ -3610,7 +3683,7 @@ var TruncatedDescription = ({
|
|
|
3610
3683
|
e.stopPropagation();
|
|
3611
3684
|
setExpanded(!expanded);
|
|
3612
3685
|
};
|
|
3613
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3686
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles60__default.default["truncated-description"], className), children: [
|
|
3614
3687
|
/* @__PURE__ */ jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
3615
3688
|
isLongDescription && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
3616
3689
|
] });
|
|
@@ -3621,12 +3694,12 @@ var removeHtmlTags = (html) => {
|
|
|
3621
3694
|
var Heading = React16.forwardRef(
|
|
3622
3695
|
({ className, as, displayAs, children, ...props }, ref) => {
|
|
3623
3696
|
const displayClasses = {
|
|
3624
|
-
h1:
|
|
3625
|
-
h2:
|
|
3626
|
-
h3:
|
|
3627
|
-
h4:
|
|
3628
|
-
h5:
|
|
3629
|
-
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"]
|
|
3630
3703
|
};
|
|
3631
3704
|
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
3632
3705
|
const HeadingTag = as;
|
|
@@ -3640,12 +3713,12 @@ var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
|
3640
3713
|
if (display === "icon-only") {
|
|
3641
3714
|
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
3642
3715
|
}
|
|
3643
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3644
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
3645
|
-
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"] }),
|
|
3646
3719
|
config.label
|
|
3647
3720
|
] }),
|
|
3648
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3721
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles62__default.default["split-badge__sub-status"], children: config.subLabel })
|
|
3649
3722
|
] });
|
|
3650
3723
|
}
|
|
3651
3724
|
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
@@ -3655,70 +3728,70 @@ var getStatusConfig = (status) => {
|
|
|
3655
3728
|
case "in-progress":
|
|
3656
3729
|
return {
|
|
3657
3730
|
icon: "Clock",
|
|
3658
|
-
className:
|
|
3731
|
+
className: styles62__default.default["badge--in-progress"],
|
|
3659
3732
|
label: "In Progress"
|
|
3660
3733
|
};
|
|
3661
3734
|
case "not-started":
|
|
3662
3735
|
return {
|
|
3663
3736
|
icon: "CircleDashed",
|
|
3664
|
-
className:
|
|
3737
|
+
className: styles62__default.default["badge--not-started"],
|
|
3665
3738
|
label: "Not Started"
|
|
3666
3739
|
};
|
|
3667
3740
|
case "ready-for-review":
|
|
3668
3741
|
return {
|
|
3669
3742
|
icon: "ClipboardCheck",
|
|
3670
|
-
className:
|
|
3743
|
+
className: styles62__default.default["badge--ready-for-review"],
|
|
3671
3744
|
label: "Ready for Review"
|
|
3672
3745
|
};
|
|
3673
3746
|
case "in-review":
|
|
3674
3747
|
return {
|
|
3675
3748
|
icon: "Eye",
|
|
3676
|
-
className:
|
|
3749
|
+
className: styles62__default.default["badge--in-review"],
|
|
3677
3750
|
label: "In Review"
|
|
3678
3751
|
};
|
|
3679
3752
|
case "comment":
|
|
3680
3753
|
return {
|
|
3681
3754
|
icon: "Eye",
|
|
3682
|
-
className:
|
|
3755
|
+
className: styles62__default.default["badge--comment"],
|
|
3683
3756
|
label: "In Review",
|
|
3684
3757
|
subLabel: "General"
|
|
3685
3758
|
};
|
|
3686
3759
|
case "not-applicable":
|
|
3687
3760
|
return {
|
|
3688
3761
|
icon: "MinusCircle",
|
|
3689
|
-
className:
|
|
3762
|
+
className: styles62__default.default["badge--not-applicable"],
|
|
3690
3763
|
label: "Not Applicable"
|
|
3691
3764
|
};
|
|
3692
3765
|
case "accepted":
|
|
3693
3766
|
return {
|
|
3694
3767
|
icon: "Eye",
|
|
3695
|
-
className:
|
|
3768
|
+
className: styles62__default.default["badge--accepted"],
|
|
3696
3769
|
label: "In Review",
|
|
3697
3770
|
subLabel: "Accepted"
|
|
3698
3771
|
};
|
|
3699
3772
|
case "questioned":
|
|
3700
3773
|
return {
|
|
3701
3774
|
icon: "Eye",
|
|
3702
|
-
className:
|
|
3775
|
+
className: styles62__default.default["badge--question"],
|
|
3703
3776
|
label: "In Review",
|
|
3704
3777
|
subLabel: "Questioned"
|
|
3705
3778
|
};
|
|
3706
3779
|
case "compliant":
|
|
3707
3780
|
return {
|
|
3708
3781
|
icon: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckFillIcon, {}),
|
|
3709
|
-
className:
|
|
3782
|
+
className: styles62__default.default["badge--compliant"],
|
|
3710
3783
|
label: "Compliant"
|
|
3711
3784
|
};
|
|
3712
3785
|
case "non-compliant":
|
|
3713
3786
|
return {
|
|
3714
3787
|
icon: "X",
|
|
3715
|
-
className:
|
|
3788
|
+
className: styles62__default.default["badge--non-compliant"],
|
|
3716
3789
|
label: "Non-compliant"
|
|
3717
3790
|
};
|
|
3718
3791
|
default:
|
|
3719
3792
|
return {
|
|
3720
3793
|
icon: "CircleDashed",
|
|
3721
|
-
className:
|
|
3794
|
+
className: styles62__default.default["badge--not-started"],
|
|
3722
3795
|
label: status
|
|
3723
3796
|
};
|
|
3724
3797
|
}
|
|
@@ -3741,7 +3814,7 @@ var Portal8 = () => {
|
|
|
3741
3814
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "equality-theme-provider-root-portal" });
|
|
3742
3815
|
};
|
|
3743
3816
|
var ThemeProvider = ({ customVars, children }) => {
|
|
3744
|
-
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: [
|
|
3745
3818
|
children,
|
|
3746
3819
|
/* @__PURE__ */ jsxRuntime.jsx(Portal8, {})
|
|
3747
3820
|
] });
|
|
@@ -3867,6 +3940,7 @@ exports.ScrollArea = ScrollArea;
|
|
|
3867
3940
|
exports.ScrollBar = ScrollBar;
|
|
3868
3941
|
exports.SearchBar = SearchBar;
|
|
3869
3942
|
exports.SectionHeading = SectionHeading;
|
|
3943
|
+
exports.SegmentedControls = SegmentedControls;
|
|
3870
3944
|
exports.Select = Select;
|
|
3871
3945
|
exports.SelectContent = SelectContent;
|
|
3872
3946
|
exports.SelectGroup = SelectGroup;
|