@eqtylab/equality 2.2.4 → 2.3.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/checkbox.module.module.css.module.css +5 -2
- package/dist/index.cjs +194 -124
- 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 +190 -122
- 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
|
},
|
|
@@ -1089,10 +1091,7 @@ var Checkbox = React16__namespace.forwardRef(
|
|
|
1089
1091
|
ref,
|
|
1090
1092
|
className: cn(styles13__default.default.checkbox, styles13__default.default[size], className),
|
|
1091
1093
|
...props,
|
|
1092
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
1093
|
-
Icon3 ? /* @__PURE__ */ jsxRuntime.jsx(Icon3, { className: styles13__default.default.check }) : /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: styles13__default.default.check }),
|
|
1094
|
-
" "
|
|
1095
|
-
] })
|
|
1094
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { className: styles13__default.default.indicator, children: Icon3 ? /* @__PURE__ */ jsxRuntime.jsx(Icon3, { className: styles13__default.default.check }) : /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: styles13__default.default.check }) })
|
|
1096
1095
|
}
|
|
1097
1096
|
)
|
|
1098
1097
|
);
|
|
@@ -1135,8 +1134,7 @@ function IconButton({
|
|
|
1135
1134
|
const iconSize = iconSizeMap[size || "sm"];
|
|
1136
1135
|
const IconComponent = Icon3;
|
|
1137
1136
|
if (!Icon3) {
|
|
1138
|
-
|
|
1139
|
-
return null;
|
|
1137
|
+
throw new Error(`Icon "${name}" not found in lucide-react`);
|
|
1140
1138
|
}
|
|
1141
1139
|
const content = /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { size: iconSize });
|
|
1142
1140
|
if (href && !disabled) {
|
|
@@ -2926,7 +2924,7 @@ var SearchBar = ({
|
|
|
2926
2924
|
suffix: searchQuery && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2927
2925
|
IconButton,
|
|
2928
2926
|
{
|
|
2929
|
-
name: "
|
|
2927
|
+
name: "X",
|
|
2930
2928
|
onClick: handleClear,
|
|
2931
2929
|
className: styles44__default.default["clear-button"],
|
|
2932
2930
|
label: "Clear search"
|
|
@@ -2950,6 +2948,77 @@ var SectionHeading = ({
|
|
|
2950
2948
|
hasRightContent && renderRightContent()
|
|
2951
2949
|
] });
|
|
2952
2950
|
};
|
|
2951
|
+
var SegmentedControls = ({
|
|
2952
|
+
options,
|
|
2953
|
+
value,
|
|
2954
|
+
onValueChange,
|
|
2955
|
+
display = "both",
|
|
2956
|
+
className
|
|
2957
|
+
}) => {
|
|
2958
|
+
const allHaveIcons = options.every((option) => option.icon != null);
|
|
2959
|
+
const effectiveDisplay = display === "icon-only" && !allHaveIcons ? "both" : display;
|
|
2960
|
+
const isIconOnly = effectiveDisplay === "icon-only";
|
|
2961
|
+
const containerRef = React16.useRef(null);
|
|
2962
|
+
const segmentRefs = React16.useRef({});
|
|
2963
|
+
const [indicator, setIndicator] = React16.useState({
|
|
2964
|
+
left: 0,
|
|
2965
|
+
width: 0
|
|
2966
|
+
});
|
|
2967
|
+
const updateIndicator = React16.useCallback(() => {
|
|
2968
|
+
const activeSegment = segmentRefs.current[value];
|
|
2969
|
+
if (activeSegment) {
|
|
2970
|
+
setIndicator({ left: activeSegment.offsetLeft, width: activeSegment.offsetWidth });
|
|
2971
|
+
}
|
|
2972
|
+
}, [value]);
|
|
2973
|
+
React16.useLayoutEffect(() => {
|
|
2974
|
+
updateIndicator();
|
|
2975
|
+
}, [updateIndicator, options, effectiveDisplay]);
|
|
2976
|
+
React16.useLayoutEffect(() => {
|
|
2977
|
+
const container = containerRef.current;
|
|
2978
|
+
if (!container) return;
|
|
2979
|
+
const observer = new ResizeObserver(updateIndicator);
|
|
2980
|
+
observer.observe(container);
|
|
2981
|
+
return () => observer.disconnect();
|
|
2982
|
+
}, [updateIndicator]);
|
|
2983
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: cn(styles46__default.default["segmented-controls"], className), children: [
|
|
2984
|
+
options.map((option) => {
|
|
2985
|
+
const currentlyActive = option.value === value;
|
|
2986
|
+
const showIcon = option.icon != null && effectiveDisplay !== "text-only";
|
|
2987
|
+
const showLabel = effectiveDisplay !== "icon-only";
|
|
2988
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2989
|
+
"button",
|
|
2990
|
+
{
|
|
2991
|
+
ref: (el) => {
|
|
2992
|
+
segmentRefs.current[option.value] = el;
|
|
2993
|
+
},
|
|
2994
|
+
type: "button",
|
|
2995
|
+
"aria-pressed": currentlyActive,
|
|
2996
|
+
"aria-label": isIconOnly ? option.label : void 0,
|
|
2997
|
+
title: isIconOnly ? option.label : void 0,
|
|
2998
|
+
className: cn(
|
|
2999
|
+
styles46__default.default["segment"],
|
|
3000
|
+
isIconOnly && styles46__default.default["segment--icon-only"],
|
|
3001
|
+
currentlyActive ? styles46__default.default["segment--active"] : styles46__default.default["segment--inactive"]
|
|
3002
|
+
),
|
|
3003
|
+
onClick: () => onValueChange(option.value),
|
|
3004
|
+
children: [
|
|
3005
|
+
showIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: option.icon, size: "xs", className: styles46__default.default["segment-icon"] }),
|
|
3006
|
+
showLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { children: option.label }),
|
|
3007
|
+
!isIconOnly && option.suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles46__default.default["segment-suffix"], children: option.suffix })
|
|
3008
|
+
]
|
|
3009
|
+
},
|
|
3010
|
+
option.value
|
|
3011
|
+
);
|
|
3012
|
+
}),
|
|
3013
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3014
|
+
"div",
|
|
3015
|
+
{
|
|
3016
|
+
className: styles46__default.default["active-segment-indicator"],
|
|
3017
|
+
style: { transform: `translateX(${indicator.left}px)`, width: `${indicator.width}px` }
|
|
3018
|
+
}
|
|
3019
|
+
)
|
|
3020
|
+
] });
|
|
3021
|
+
};
|
|
2953
3022
|
var Separator3 = React16__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2954
3023
|
SeparatorPrimitive__namespace.Root,
|
|
2955
3024
|
{
|
|
@@ -2957,8 +3026,8 @@ var Separator3 = React16__namespace.forwardRef(({ className, orientation = "hori
|
|
|
2957
3026
|
decorative,
|
|
2958
3027
|
orientation,
|
|
2959
3028
|
className: cn(
|
|
2960
|
-
|
|
2961
|
-
orientation === "horizontal" ?
|
|
3029
|
+
styles47__default.default["separator"],
|
|
3030
|
+
orientation === "horizontal" ? styles47__default.default["separator--horizontal"] : styles47__default.default["separator--vertical"],
|
|
2962
3031
|
className
|
|
2963
3032
|
),
|
|
2964
3033
|
...props
|
|
@@ -2969,15 +3038,15 @@ var Sheet = DialogPrimitive__namespace.Root;
|
|
|
2969
3038
|
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
2970
3039
|
var SheetClose = DialogPrimitive__namespace.Close;
|
|
2971
3040
|
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(
|
|
3041
|
+
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
3042
|
SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
2974
|
-
var sheetVariants = classVarianceAuthority.cva(
|
|
3043
|
+
var sheetVariants = classVarianceAuthority.cva(styles48__default.default["sheet-content"], {
|
|
2975
3044
|
variants: {
|
|
2976
3045
|
side: {
|
|
2977
|
-
top:
|
|
2978
|
-
bottom:
|
|
2979
|
-
left:
|
|
2980
|
-
right:
|
|
3046
|
+
top: styles48__default.default["sheet-content--side-top"],
|
|
3047
|
+
bottom: styles48__default.default["sheet-content--side-bottom"],
|
|
3048
|
+
left: styles48__default.default["sheet-content--side-left"],
|
|
3049
|
+
right: styles48__default.default["sheet-content--side-right"]
|
|
2981
3050
|
}
|
|
2982
3051
|
},
|
|
2983
3052
|
defaultVariants: {
|
|
@@ -2989,7 +3058,7 @@ var SheetContainer = React16__namespace.forwardRef(({ side = "right", className,
|
|
|
2989
3058
|
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
|
|
2990
3059
|
] }));
|
|
2991
3060
|
SheetContainer.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
2992
|
-
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3061
|
+
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-header-icon"], className), ...props });
|
|
2993
3062
|
SheetHeaderIcon.displayName = "SheetHeaderIcon";
|
|
2994
3063
|
var SheetHeader = ({ className, children, ...props }) => {
|
|
2995
3064
|
const childrenArray = React16__namespace.Children.toArray(children);
|
|
@@ -2999,30 +3068,30 @@ var SheetHeader = ({ className, children, ...props }) => {
|
|
|
2999
3068
|
const otherChildren = childrenArray.filter(
|
|
3000
3069
|
(child) => !(React16__namespace.isValidElement(child) && child.type === SheetHeaderIcon)
|
|
3001
3070
|
);
|
|
3002
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3071
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles48__default.default["sheet-header"], className), ...props, children: [
|
|
3003
3072
|
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:
|
|
3073
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles48__default.default["sheet-header-text-content"], children: otherChildren }),
|
|
3074
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { name: "X", label: "Close", className: styles48__default.default["sheet-close"] }) })
|
|
3006
3075
|
] });
|
|
3007
3076
|
};
|
|
3008
3077
|
SheetHeader.displayName = "SheetHeader";
|
|
3009
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3078
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-footer"], className), ...props });
|
|
3010
3079
|
SheetFooter.displayName = "SheetFooter";
|
|
3011
|
-
var SheetTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(
|
|
3080
|
+
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
3081
|
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3013
3082
|
var SheetDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3014
3083
|
DialogPrimitive__namespace.Description,
|
|
3015
3084
|
{
|
|
3016
3085
|
ref,
|
|
3017
|
-
className: cn(
|
|
3086
|
+
className: cn(styles48__default.default["sheet-description"], className),
|
|
3018
3087
|
...props
|
|
3019
3088
|
}
|
|
3020
3089
|
));
|
|
3021
3090
|
SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3022
|
-
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3091
|
+
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-body"], "styled-vertical-scrollbar", className), ...props });
|
|
3023
3092
|
SheetContent.displayName = "SheetContent";
|
|
3024
3093
|
function Skeleton({ className, ...props }) {
|
|
3025
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3094
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles49__default.default["skeleton"], className), ...props });
|
|
3026
3095
|
}
|
|
3027
3096
|
var ChevronDownIcon4 = LucideIcons.ChevronDown;
|
|
3028
3097
|
function SortSelector({
|
|
@@ -3066,9 +3135,9 @@ function SortSelector({
|
|
|
3066
3135
|
setCurrentPage?.(1);
|
|
3067
3136
|
};
|
|
3068
3137
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
3069
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(
|
|
3138
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(styles50__default.default["sort-selector-trigger"], className), children: [
|
|
3070
3139
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: currentLabel }),
|
|
3071
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className:
|
|
3140
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className: styles50__default.default["chevron-down-icon"] })
|
|
3072
3141
|
] }) }),
|
|
3073
3142
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3074
3143
|
DropdownMenuContent,
|
|
@@ -3101,10 +3170,10 @@ var Switch = React16__namespace.forwardRef(
|
|
|
3101
3170
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3102
3171
|
SwitchPrimitives__namespace.Root,
|
|
3103
3172
|
{
|
|
3104
|
-
className: cn(
|
|
3173
|
+
className: cn(styles51__default.default["switch"], styles51__default.default[size], styles51__default.default[variant], className),
|
|
3105
3174
|
...props,
|
|
3106
3175
|
ref,
|
|
3107
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SwitchPrimitives__namespace.Thumb, { className: cn(
|
|
3176
|
+
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
3177
|
}
|
|
3109
3178
|
);
|
|
3110
3179
|
}
|
|
@@ -3126,24 +3195,24 @@ function SortButton({
|
|
|
3126
3195
|
const handleClick = () => {
|
|
3127
3196
|
onSort(field);
|
|
3128
3197
|
};
|
|
3129
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className:
|
|
3198
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className: styles52__default.default["sort-button"], children: [
|
|
3130
3199
|
icon,
|
|
3131
3200
|
children,
|
|
3132
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3201
|
+
/* @__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
3202
|
] });
|
|
3134
3203
|
}
|
|
3135
|
-
var tableElevationVariants = generateElevationVariants(
|
|
3204
|
+
var tableElevationVariants = generateElevationVariants(styles53__default.default, "table", ELEVATION.RAISED);
|
|
3136
3205
|
var TableContainer = React16__namespace.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3137
3206
|
"div",
|
|
3138
3207
|
{
|
|
3139
3208
|
className: cn(
|
|
3140
|
-
|
|
3209
|
+
styles53__default.default["table"],
|
|
3141
3210
|
tableElevationVariants({ elevation }),
|
|
3142
|
-
border &&
|
|
3211
|
+
border && styles53__default.default["table-border"],
|
|
3143
3212
|
className
|
|
3144
3213
|
),
|
|
3145
3214
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
3146
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className:
|
|
3215
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: styles53__default.default["table-inner"], ...props })
|
|
3147
3216
|
}
|
|
3148
3217
|
));
|
|
3149
3218
|
TableContainer.displayName = "Table";
|
|
@@ -3152,18 +3221,18 @@ var TableHeader = React16__namespace.forwardRef(({ className, sticky = false, ..
|
|
|
3152
3221
|
{
|
|
3153
3222
|
ref,
|
|
3154
3223
|
className: cn(
|
|
3155
|
-
|
|
3156
|
-
sticky === "container" &&
|
|
3157
|
-
sticky === "page" &&
|
|
3224
|
+
styles53__default.default["table-header"],
|
|
3225
|
+
sticky === "container" && styles53__default.default["table-header--sticky-container"],
|
|
3226
|
+
sticky === "page" && styles53__default.default["table-header--sticky-page"],
|
|
3158
3227
|
className
|
|
3159
3228
|
),
|
|
3160
3229
|
...props
|
|
3161
3230
|
}
|
|
3162
3231
|
));
|
|
3163
3232
|
TableHeader.displayName = "TableHeader";
|
|
3164
|
-
var TableBody = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(
|
|
3233
|
+
var TableBody = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(styles53__default.default["table-body"], className), ...props }));
|
|
3165
3234
|
TableBody.displayName = "TableBody";
|
|
3166
|
-
var TableFooter = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(
|
|
3235
|
+
var TableFooter = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(styles53__default.default["table-footer"], className), ...props }));
|
|
3167
3236
|
TableFooter.displayName = "TableFooter";
|
|
3168
3237
|
var TableRow = React16__namespace.forwardRef(
|
|
3169
3238
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
@@ -3180,15 +3249,15 @@ var TableRow = React16__namespace.forwardRef(
|
|
|
3180
3249
|
{
|
|
3181
3250
|
ref,
|
|
3182
3251
|
className: cn(
|
|
3183
|
-
|
|
3184
|
-
isClickable &&
|
|
3185
|
-
href &&
|
|
3252
|
+
styles53__default.default["table-row"],
|
|
3253
|
+
isClickable && styles53__default.default["table-row--clickable"],
|
|
3254
|
+
href && styles53__default.default["table-row--linked"],
|
|
3186
3255
|
className
|
|
3187
3256
|
),
|
|
3188
3257
|
onClick: onClick ? handleClick : void 0,
|
|
3189
3258
|
...props,
|
|
3190
3259
|
children: [
|
|
3191
|
-
href && /* @__PURE__ */ jsxRuntime.jsx("a", { href, className:
|
|
3260
|
+
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
3261
|
children
|
|
3193
3262
|
]
|
|
3194
3263
|
}
|
|
@@ -3196,18 +3265,18 @@ var TableRow = React16__namespace.forwardRef(
|
|
|
3196
3265
|
}
|
|
3197
3266
|
);
|
|
3198
3267
|
TableRow.displayName = "TableRow";
|
|
3199
|
-
var TableHead = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(
|
|
3268
|
+
var TableHead = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(styles53__default.default["table-head"], className), ...props }));
|
|
3200
3269
|
TableHead.displayName = "TableHead";
|
|
3201
|
-
var TableCell = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(
|
|
3270
|
+
var TableCell = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(styles53__default.default["table-cell"], className), ...props }));
|
|
3202
3271
|
TableCell.displayName = "TableCell";
|
|
3203
|
-
var TableCaption = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(
|
|
3272
|
+
var TableCaption = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(styles53__default.default["table-caption"], className), ...props }));
|
|
3204
3273
|
TableCaption.displayName = "TableCaption";
|
|
3205
3274
|
var TabsContainer = TabsPrimitive__namespace.Root;
|
|
3206
|
-
var TabsList = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(
|
|
3275
|
+
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
3276
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
3208
|
-
var TabsTrigger = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(
|
|
3277
|
+
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
3278
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
3210
|
-
var TabsContent = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(
|
|
3279
|
+
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
3280
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
3212
3281
|
var Tabs = ({
|
|
3213
3282
|
id,
|
|
@@ -3225,7 +3294,7 @@ var Tabs = ({
|
|
|
3225
3294
|
};
|
|
3226
3295
|
const renderIcon = (icon) => {
|
|
3227
3296
|
if (icon) {
|
|
3228
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className:
|
|
3297
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className: styles55__default.default["tabs-icon"] });
|
|
3229
3298
|
}
|
|
3230
3299
|
return null;
|
|
3231
3300
|
};
|
|
@@ -3235,8 +3304,8 @@ var Tabs = ({
|
|
|
3235
3304
|
react.motion.span,
|
|
3236
3305
|
{
|
|
3237
3306
|
className: cn(
|
|
3238
|
-
|
|
3239
|
-
isFilled ?
|
|
3307
|
+
styles55__default.default["active-tab-indicator"],
|
|
3308
|
+
isFilled ? styles55__default.default["active-tab-indicator--filled"] : styles55__default.default["active-tab-indicator--transparent"]
|
|
3240
3309
|
),
|
|
3241
3310
|
initial: false,
|
|
3242
3311
|
layoutId: `${id}-active-tab-indicator`
|
|
@@ -3250,14 +3319,14 @@ var Tabs = ({
|
|
|
3250
3319
|
{
|
|
3251
3320
|
value: activeTab,
|
|
3252
3321
|
onValueChange: handleValueChange,
|
|
3253
|
-
className: cn(
|
|
3322
|
+
className: cn(styles55__default.default["tabs"], className),
|
|
3254
3323
|
children: [
|
|
3255
3324
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3256
3325
|
TabsList,
|
|
3257
3326
|
{
|
|
3258
3327
|
className: cn(
|
|
3259
|
-
|
|
3260
|
-
isFilled ?
|
|
3328
|
+
styles55__default.default["tabs-list"],
|
|
3329
|
+
isFilled ? styles55__default.default["tabs-list--filled"] : styles55__default.default["tabs-list--transparent"]
|
|
3261
3330
|
),
|
|
3262
3331
|
children: items.map(({ label, value, icon, suffix }) => {
|
|
3263
3332
|
const isActive = activeTab === value;
|
|
@@ -3266,8 +3335,8 @@ var Tabs = ({
|
|
|
3266
3335
|
{
|
|
3267
3336
|
value,
|
|
3268
3337
|
className: cn(
|
|
3269
|
-
|
|
3270
|
-
isFilled ?
|
|
3338
|
+
styles55__default.default["tabs-trigger"],
|
|
3339
|
+
isFilled ? styles55__default.default["tabs-trigger--filled"] : styles55__default.default["tabs-trigger--transparent"]
|
|
3271
3340
|
),
|
|
3272
3341
|
"data-tour": `${value}-tab-overview`,
|
|
3273
3342
|
children: [
|
|
@@ -3282,14 +3351,14 @@ var Tabs = ({
|
|
|
3282
3351
|
})
|
|
3283
3352
|
}
|
|
3284
3353
|
),
|
|
3285
|
-
items.map(({ value, content }) => /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value, className:
|
|
3354
|
+
items.map(({ value, content }) => /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value, className: styles55__default.default["content"], children: content }, value))
|
|
3286
3355
|
]
|
|
3287
3356
|
}
|
|
3288
3357
|
);
|
|
3289
3358
|
};
|
|
3290
3359
|
var Textarea = React16__namespace.forwardRef(
|
|
3291
3360
|
({ className, ...props }, ref) => {
|
|
3292
|
-
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(
|
|
3361
|
+
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(styles56__default.default["textarea"], className), ref, ...props });
|
|
3293
3362
|
}
|
|
3294
3363
|
);
|
|
3295
3364
|
Textarea.displayName = "Textarea";
|
|
@@ -3360,10 +3429,10 @@ function FormatDate({
|
|
|
3360
3429
|
return () => clearInterval(id);
|
|
3361
3430
|
}, [isRelative, live]);
|
|
3362
3431
|
if (missing) {
|
|
3363
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(
|
|
3432
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles57__default.default["format-date"], className), "aria-label": "No date", ...props, children: NO_DATE_PLACEHOLDER });
|
|
3364
3433
|
}
|
|
3365
3434
|
if (!parsed) {
|
|
3366
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(
|
|
3435
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles57__default.default["format-date"], className), ...props, children: "Invalid date" });
|
|
3367
3436
|
}
|
|
3368
3437
|
const machineValue = parsed.toISOString();
|
|
3369
3438
|
const absolute = formatAbsolute(
|
|
@@ -3373,11 +3442,11 @@ function FormatDate({
|
|
|
3373
3442
|
locale
|
|
3374
3443
|
);
|
|
3375
3444
|
if (!isRelative) {
|
|
3376
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(
|
|
3445
|
+
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles57__default.default["format-date"], className), ...props, children: absolute });
|
|
3377
3446
|
}
|
|
3378
3447
|
const relative = mounted ? formatRelative(parsed, now, locale) : absolute;
|
|
3379
3448
|
if (!tooltip) {
|
|
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: relative });
|
|
3381
3450
|
}
|
|
3382
3451
|
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
3383
3452
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3385,7 +3454,7 @@ function FormatDate({
|
|
|
3385
3454
|
{
|
|
3386
3455
|
dateTime: machineValue,
|
|
3387
3456
|
tabIndex: 0,
|
|
3388
|
-
className: cn(
|
|
3457
|
+
className: cn(styles57__default.default["format-date"], styles57__default.default["format-date--interactive"], className),
|
|
3389
3458
|
...props,
|
|
3390
3459
|
children: relative
|
|
3391
3460
|
}
|
|
@@ -3399,18 +3468,18 @@ var ToastViewport = React16__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3399
3468
|
ToastPrimitives__namespace.Viewport,
|
|
3400
3469
|
{
|
|
3401
3470
|
ref,
|
|
3402
|
-
className: cn(
|
|
3471
|
+
className: cn(styles58__default.default["toast-viewport"], className),
|
|
3403
3472
|
...props
|
|
3404
3473
|
}
|
|
3405
3474
|
));
|
|
3406
3475
|
ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
|
|
3407
|
-
var toastVariants = classVarianceAuthority.cva(
|
|
3476
|
+
var toastVariants = classVarianceAuthority.cva(styles58__default.default["toast"], {
|
|
3408
3477
|
variants: {
|
|
3409
3478
|
variant: {
|
|
3410
|
-
default:
|
|
3411
|
-
danger:
|
|
3412
|
-
warning:
|
|
3413
|
-
success:
|
|
3479
|
+
default: styles58__default.default["toast--default"],
|
|
3480
|
+
danger: styles58__default.default["toast--danger"],
|
|
3481
|
+
warning: styles58__default.default["toast--warning"],
|
|
3482
|
+
success: styles58__default.default["toast--success"]
|
|
3414
3483
|
}
|
|
3415
3484
|
},
|
|
3416
3485
|
defaultVariants: {
|
|
@@ -3428,17 +3497,17 @@ var ToastContainer = React16__namespace.forwardRef(({ className, variant, ...pro
|
|
|
3428
3497
|
);
|
|
3429
3498
|
});
|
|
3430
3499
|
ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
3431
|
-
var ToastAction = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(
|
|
3500
|
+
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
3501
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
3433
|
-
var ToastClose = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Close, { ref, className: cn(
|
|
3502
|
+
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
3503
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
3435
|
-
var ToastTitle = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(
|
|
3504
|
+
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
3505
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
3437
3506
|
var ToastDescription = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3438
3507
|
ToastPrimitives__namespace.Description,
|
|
3439
3508
|
{
|
|
3440
3509
|
ref,
|
|
3441
|
-
className: cn(
|
|
3510
|
+
className: cn(styles58__default.default["toast-description"], className),
|
|
3442
3511
|
...props
|
|
3443
3512
|
}
|
|
3444
3513
|
));
|
|
@@ -3573,14 +3642,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
3573
3642
|
};
|
|
3574
3643
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
3575
3644
|
return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
|
|
3576
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3577
|
-
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3645
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles59__default.default["toast-copy"], children: [
|
|
3646
|
+
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles59__default.default["toast-title-container"], children: [
|
|
3578
3647
|
displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
3579
3648
|
/* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
|
|
3580
3649
|
] }),
|
|
3581
3650
|
description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
|
|
3582
3651
|
] }),
|
|
3583
|
-
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3652
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles59__default.default["toast-action"], children: action }),
|
|
3584
3653
|
/* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
|
|
3585
3654
|
] });
|
|
3586
3655
|
};
|
|
@@ -3610,7 +3679,7 @@ var TruncatedDescription = ({
|
|
|
3610
3679
|
e.stopPropagation();
|
|
3611
3680
|
setExpanded(!expanded);
|
|
3612
3681
|
};
|
|
3613
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3682
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles60__default.default["truncated-description"], className), children: [
|
|
3614
3683
|
/* @__PURE__ */ jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
3615
3684
|
isLongDescription && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
3616
3685
|
] });
|
|
@@ -3621,12 +3690,12 @@ var removeHtmlTags = (html) => {
|
|
|
3621
3690
|
var Heading = React16.forwardRef(
|
|
3622
3691
|
({ className, as, displayAs, children, ...props }, ref) => {
|
|
3623
3692
|
const displayClasses = {
|
|
3624
|
-
h1:
|
|
3625
|
-
h2:
|
|
3626
|
-
h3:
|
|
3627
|
-
h4:
|
|
3628
|
-
h5:
|
|
3629
|
-
h6:
|
|
3693
|
+
h1: styles61__default.default["h1"],
|
|
3694
|
+
h2: styles61__default.default["h2"],
|
|
3695
|
+
h3: styles61__default.default["h3"],
|
|
3696
|
+
h4: styles61__default.default["h4"],
|
|
3697
|
+
h5: styles61__default.default["h5"],
|
|
3698
|
+
h6: styles61__default.default["h6"]
|
|
3630
3699
|
};
|
|
3631
3700
|
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
3632
3701
|
const HeadingTag = as;
|
|
@@ -3640,12 +3709,12 @@ var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
|
3640
3709
|
if (display === "icon-only") {
|
|
3641
3710
|
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
3642
3711
|
}
|
|
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:
|
|
3712
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles62__default.default["split-badge"], config.className), children: [
|
|
3713
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles62__default.default["split-badge__status"], children: [
|
|
3714
|
+
display !== "text-only" && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: config.icon, size: "xs", className: styles62__default.default["icon"] }),
|
|
3646
3715
|
config.label
|
|
3647
3716
|
] }),
|
|
3648
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3717
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles62__default.default["split-badge__sub-status"], children: config.subLabel })
|
|
3649
3718
|
] });
|
|
3650
3719
|
}
|
|
3651
3720
|
return /* @__PURE__ */ jsxRuntime.jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
@@ -3655,70 +3724,70 @@ var getStatusConfig = (status) => {
|
|
|
3655
3724
|
case "in-progress":
|
|
3656
3725
|
return {
|
|
3657
3726
|
icon: "Clock",
|
|
3658
|
-
className:
|
|
3727
|
+
className: styles62__default.default["badge--in-progress"],
|
|
3659
3728
|
label: "In Progress"
|
|
3660
3729
|
};
|
|
3661
3730
|
case "not-started":
|
|
3662
3731
|
return {
|
|
3663
3732
|
icon: "CircleDashed",
|
|
3664
|
-
className:
|
|
3733
|
+
className: styles62__default.default["badge--not-started"],
|
|
3665
3734
|
label: "Not Started"
|
|
3666
3735
|
};
|
|
3667
3736
|
case "ready-for-review":
|
|
3668
3737
|
return {
|
|
3669
3738
|
icon: "ClipboardCheck",
|
|
3670
|
-
className:
|
|
3739
|
+
className: styles62__default.default["badge--ready-for-review"],
|
|
3671
3740
|
label: "Ready for Review"
|
|
3672
3741
|
};
|
|
3673
3742
|
case "in-review":
|
|
3674
3743
|
return {
|
|
3675
3744
|
icon: "Eye",
|
|
3676
|
-
className:
|
|
3745
|
+
className: styles62__default.default["badge--in-review"],
|
|
3677
3746
|
label: "In Review"
|
|
3678
3747
|
};
|
|
3679
3748
|
case "comment":
|
|
3680
3749
|
return {
|
|
3681
3750
|
icon: "Eye",
|
|
3682
|
-
className:
|
|
3751
|
+
className: styles62__default.default["badge--comment"],
|
|
3683
3752
|
label: "In Review",
|
|
3684
3753
|
subLabel: "General"
|
|
3685
3754
|
};
|
|
3686
3755
|
case "not-applicable":
|
|
3687
3756
|
return {
|
|
3688
3757
|
icon: "MinusCircle",
|
|
3689
|
-
className:
|
|
3758
|
+
className: styles62__default.default["badge--not-applicable"],
|
|
3690
3759
|
label: "Not Applicable"
|
|
3691
3760
|
};
|
|
3692
3761
|
case "accepted":
|
|
3693
3762
|
return {
|
|
3694
3763
|
icon: "Eye",
|
|
3695
|
-
className:
|
|
3764
|
+
className: styles62__default.default["badge--accepted"],
|
|
3696
3765
|
label: "In Review",
|
|
3697
3766
|
subLabel: "Accepted"
|
|
3698
3767
|
};
|
|
3699
3768
|
case "questioned":
|
|
3700
3769
|
return {
|
|
3701
3770
|
icon: "Eye",
|
|
3702
|
-
className:
|
|
3771
|
+
className: styles62__default.default["badge--question"],
|
|
3703
3772
|
label: "In Review",
|
|
3704
3773
|
subLabel: "Questioned"
|
|
3705
3774
|
};
|
|
3706
3775
|
case "compliant":
|
|
3707
3776
|
return {
|
|
3708
3777
|
icon: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckFillIcon, {}),
|
|
3709
|
-
className:
|
|
3778
|
+
className: styles62__default.default["badge--compliant"],
|
|
3710
3779
|
label: "Compliant"
|
|
3711
3780
|
};
|
|
3712
3781
|
case "non-compliant":
|
|
3713
3782
|
return {
|
|
3714
3783
|
icon: "X",
|
|
3715
|
-
className:
|
|
3784
|
+
className: styles62__default.default["badge--non-compliant"],
|
|
3716
3785
|
label: "Non-compliant"
|
|
3717
3786
|
};
|
|
3718
3787
|
default:
|
|
3719
3788
|
return {
|
|
3720
3789
|
icon: "CircleDashed",
|
|
3721
|
-
className:
|
|
3790
|
+
className: styles62__default.default["badge--not-started"],
|
|
3722
3791
|
label: status
|
|
3723
3792
|
};
|
|
3724
3793
|
}
|
|
@@ -3741,7 +3810,7 @@ var Portal8 = () => {
|
|
|
3741
3810
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "equality-theme-provider-root-portal" });
|
|
3742
3811
|
};
|
|
3743
3812
|
var ThemeProvider = ({ customVars, children }) => {
|
|
3744
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { id: "equality-theme-provider-root", className:
|
|
3813
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { id: "equality-theme-provider-root", className: styles63__default.default.root, style: customVars, children: [
|
|
3745
3814
|
children,
|
|
3746
3815
|
/* @__PURE__ */ jsxRuntime.jsx(Portal8, {})
|
|
3747
3816
|
] });
|
|
@@ -3867,6 +3936,7 @@ exports.ScrollArea = ScrollArea;
|
|
|
3867
3936
|
exports.ScrollBar = ScrollBar;
|
|
3868
3937
|
exports.SearchBar = SearchBar;
|
|
3869
3938
|
exports.SectionHeading = SectionHeading;
|
|
3939
|
+
exports.SegmentedControls = SegmentedControls;
|
|
3870
3940
|
exports.Select = Select;
|
|
3871
3941
|
exports.SelectContent = SelectContent;
|
|
3872
3942
|
exports.SelectGroup = SelectGroup;
|