@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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React16 from 'react';
|
|
2
|
-
import { forwardRef, useRef, useMemo, useEffect, useSyncExternalStore, useState } from 'react';
|
|
2
|
+
import { forwardRef, useRef, useMemo, useEffect, useSyncExternalStore, useState, useCallback, useLayoutEffect } from 'react';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
4
|
import styles2 from './alert.module.module.css.module.css';
|
|
5
5
|
import * as LucideIcons from 'lucide-react';
|
|
@@ -72,27 +72,28 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
|
72
72
|
import styles43 from './scroll-area.module.module.css.module.css';
|
|
73
73
|
import styles44 from './search-bar.module.module.css.module.css';
|
|
74
74
|
import styles45 from './section-heading.module.module.css.module.css';
|
|
75
|
+
import styles46 from './segmented-controls.module.module.css.module.css';
|
|
75
76
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
77
|
+
import styles47 from './separator.module.module.css.module.css';
|
|
78
|
+
import styles48 from './sheet.module.module.css.module.css';
|
|
79
|
+
import styles49 from './skeleton.module.module.css.module.css';
|
|
80
|
+
import styles50 from './sort-selector.module.module.css.module.css';
|
|
80
81
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
82
|
+
import styles51 from './switch.module.module.css.module.css';
|
|
83
|
+
import styles52 from './sort-button.module.module.css.module.css';
|
|
84
|
+
import styles53 from './table-components.module.module.css.module.css';
|
|
84
85
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
86
|
+
import styles54 from './tabs-components.module.module.css.module.css';
|
|
87
|
+
import styles55 from './tabs.module.module.css.module.css';
|
|
88
|
+
import styles56 from './textarea.module.module.css.module.css';
|
|
89
|
+
import styles57 from './format-date.module.module.css.module.css';
|
|
89
90
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
91
|
+
import styles58 from './toast-components.module.module.css.module.css';
|
|
92
|
+
import styles59 from './toast.module.module.css.module.css';
|
|
93
|
+
import styles60 from './truncated-description.module.module.css.module.css';
|
|
94
|
+
import styles61 from './heading.module.module.css.module.css';
|
|
95
|
+
import styles62 from './control-status-badge.module.module.css.module.css';
|
|
96
|
+
import styles63 from './theme.module.module.css.module.css';
|
|
96
97
|
|
|
97
98
|
// src/components/alert/alert.tsx
|
|
98
99
|
var ELEVATION = {
|
|
@@ -101,12 +102,12 @@ var ELEVATION = {
|
|
|
101
102
|
RAISED: "raised",
|
|
102
103
|
OVERLAY: "overlay"
|
|
103
104
|
};
|
|
104
|
-
var generateElevationVariants = (
|
|
105
|
+
var generateElevationVariants = (styles64, baseClassName, defaultElevation) => {
|
|
105
106
|
const classNames = {};
|
|
106
107
|
Object.values(ELEVATION).forEach((elevation) => {
|
|
107
|
-
classNames[elevation] =
|
|
108
|
+
classNames[elevation] = styles64[`${baseClassName}--${elevation}`];
|
|
108
109
|
});
|
|
109
|
-
const variants = cva(
|
|
110
|
+
const variants = cva(styles64[baseClassName], {
|
|
110
111
|
variants: {
|
|
111
112
|
elevation: classNames
|
|
112
113
|
},
|
|
@@ -1835,14 +1836,14 @@ var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1835
1836
|
}
|
|
1836
1837
|
) }));
|
|
1837
1838
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1838
|
-
var DropdownMenuItem = React16.forwardRef(({ className, inset,
|
|
1839
|
+
var DropdownMenuItem = React16.forwardRef(({ className, inset, variant = "neutral", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1839
1840
|
DropdownMenuPrimitive.Item,
|
|
1840
1841
|
{
|
|
1841
1842
|
ref,
|
|
1842
1843
|
className: cn(
|
|
1843
1844
|
styles22["dropdown-menu-item"],
|
|
1844
1845
|
inset && styles22["dropdown-menu-inset"],
|
|
1845
|
-
danger && styles22["dropdown-menu-item-danger"],
|
|
1846
|
+
variant === "danger" && styles22["dropdown-menu-item-danger"],
|
|
1846
1847
|
className
|
|
1847
1848
|
),
|
|
1848
1849
|
...props
|
|
@@ -1933,7 +1934,7 @@ var FilterDropdown = ({
|
|
|
1933
1934
|
(option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
|
|
1934
1935
|
);
|
|
1935
1936
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
1936
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
1937
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxs(
|
|
1937
1938
|
Button,
|
|
1938
1939
|
{
|
|
1939
1940
|
variant: "tertiary",
|
|
@@ -2846,6 +2847,77 @@ var SectionHeading = ({
|
|
|
2846
2847
|
hasRightContent && renderRightContent()
|
|
2847
2848
|
] });
|
|
2848
2849
|
};
|
|
2850
|
+
var SegmentedControls = ({
|
|
2851
|
+
options,
|
|
2852
|
+
value,
|
|
2853
|
+
onValueChange,
|
|
2854
|
+
display = "both",
|
|
2855
|
+
className
|
|
2856
|
+
}) => {
|
|
2857
|
+
const allHaveIcons = options.every((option) => option.icon != null);
|
|
2858
|
+
const effectiveDisplay = display === "icon-only" && !allHaveIcons ? "both" : display;
|
|
2859
|
+
const isIconOnly = effectiveDisplay === "icon-only";
|
|
2860
|
+
const containerRef = useRef(null);
|
|
2861
|
+
const segmentRefs = useRef({});
|
|
2862
|
+
const [indicator, setIndicator] = useState({
|
|
2863
|
+
left: 0,
|
|
2864
|
+
width: 0
|
|
2865
|
+
});
|
|
2866
|
+
const updateIndicator = useCallback(() => {
|
|
2867
|
+
const activeSegment = segmentRefs.current[value];
|
|
2868
|
+
if (activeSegment) {
|
|
2869
|
+
setIndicator({ left: activeSegment.offsetLeft, width: activeSegment.offsetWidth });
|
|
2870
|
+
}
|
|
2871
|
+
}, [value]);
|
|
2872
|
+
useLayoutEffect(() => {
|
|
2873
|
+
updateIndicator();
|
|
2874
|
+
}, [updateIndicator, options, effectiveDisplay]);
|
|
2875
|
+
useLayoutEffect(() => {
|
|
2876
|
+
const container = containerRef.current;
|
|
2877
|
+
if (!container) return;
|
|
2878
|
+
const observer = new ResizeObserver(updateIndicator);
|
|
2879
|
+
observer.observe(container);
|
|
2880
|
+
return () => observer.disconnect();
|
|
2881
|
+
}, [updateIndicator]);
|
|
2882
|
+
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: cn(styles46["segmented-controls"], className), children: [
|
|
2883
|
+
options.map((option) => {
|
|
2884
|
+
const currentlyActive = option.value === value;
|
|
2885
|
+
const showIcon = option.icon != null && effectiveDisplay !== "text-only";
|
|
2886
|
+
const showLabel = effectiveDisplay !== "icon-only";
|
|
2887
|
+
return /* @__PURE__ */ jsxs(
|
|
2888
|
+
"button",
|
|
2889
|
+
{
|
|
2890
|
+
ref: (el) => {
|
|
2891
|
+
segmentRefs.current[option.value] = el;
|
|
2892
|
+
},
|
|
2893
|
+
type: "button",
|
|
2894
|
+
"aria-pressed": currentlyActive,
|
|
2895
|
+
"aria-label": isIconOnly ? option.label : void 0,
|
|
2896
|
+
title: isIconOnly ? option.label : void 0,
|
|
2897
|
+
className: cn(
|
|
2898
|
+
styles46["segment"],
|
|
2899
|
+
isIconOnly && styles46["segment--icon-only"],
|
|
2900
|
+
currentlyActive ? styles46["segment--active"] : styles46["segment--inactive"]
|
|
2901
|
+
),
|
|
2902
|
+
onClick: () => onValueChange(option.value),
|
|
2903
|
+
children: [
|
|
2904
|
+
showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className: styles46["segment-icon"] }),
|
|
2905
|
+
showLabel && /* @__PURE__ */ jsx("span", { children: option.label }),
|
|
2906
|
+
!isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className: styles46["segment-suffix"], children: option.suffix })
|
|
2907
|
+
]
|
|
2908
|
+
},
|
|
2909
|
+
option.value
|
|
2910
|
+
);
|
|
2911
|
+
}),
|
|
2912
|
+
/* @__PURE__ */ jsx(
|
|
2913
|
+
"div",
|
|
2914
|
+
{
|
|
2915
|
+
className: styles46["active-segment-indicator"],
|
|
2916
|
+
style: { transform: `translateX(${indicator.left}px)`, width: `${indicator.width}px` }
|
|
2917
|
+
}
|
|
2918
|
+
)
|
|
2919
|
+
] });
|
|
2920
|
+
};
|
|
2849
2921
|
var Separator3 = React16.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2850
2922
|
SeparatorPrimitive.Root,
|
|
2851
2923
|
{
|
|
@@ -2853,8 +2925,8 @@ var Separator3 = React16.forwardRef(({ className, orientation = "horizontal", de
|
|
|
2853
2925
|
decorative,
|
|
2854
2926
|
orientation,
|
|
2855
2927
|
className: cn(
|
|
2856
|
-
|
|
2857
|
-
orientation === "horizontal" ?
|
|
2928
|
+
styles47["separator"],
|
|
2929
|
+
orientation === "horizontal" ? styles47["separator--horizontal"] : styles47["separator--vertical"],
|
|
2858
2930
|
className
|
|
2859
2931
|
),
|
|
2860
2932
|
...props
|
|
@@ -2865,15 +2937,15 @@ var Sheet = DialogPrimitive.Root;
|
|
|
2865
2937
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
2866
2938
|
var SheetClose = DialogPrimitive.Close;
|
|
2867
2939
|
var SheetPortal = ({ children }) => /* @__PURE__ */ jsx(DialogPrimitive.Portal, { container: getThemeProviderRoot(), children });
|
|
2868
|
-
var SheetOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: cn(
|
|
2940
|
+
var SheetOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { className: cn(styles48["sheet-overlay"], className), ...props, ref }));
|
|
2869
2941
|
SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2870
|
-
var sheetVariants = cva(
|
|
2942
|
+
var sheetVariants = cva(styles48["sheet-content"], {
|
|
2871
2943
|
variants: {
|
|
2872
2944
|
side: {
|
|
2873
|
-
top:
|
|
2874
|
-
bottom:
|
|
2875
|
-
left:
|
|
2876
|
-
right:
|
|
2945
|
+
top: styles48["sheet-content--side-top"],
|
|
2946
|
+
bottom: styles48["sheet-content--side-bottom"],
|
|
2947
|
+
left: styles48["sheet-content--side-left"],
|
|
2948
|
+
right: styles48["sheet-content--side-right"]
|
|
2877
2949
|
}
|
|
2878
2950
|
},
|
|
2879
2951
|
defaultVariants: {
|
|
@@ -2885,7 +2957,7 @@ var SheetContainer = React16.forwardRef(({ side = "right", className, children,
|
|
|
2885
2957
|
/* @__PURE__ */ jsx(DialogPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
|
|
2886
2958
|
] }));
|
|
2887
2959
|
SheetContainer.displayName = DialogPrimitive.Content.displayName;
|
|
2888
|
-
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
2960
|
+
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles48["sheet-header-icon"], className), ...props });
|
|
2889
2961
|
SheetHeaderIcon.displayName = "SheetHeaderIcon";
|
|
2890
2962
|
var SheetHeader = ({ className, children, ...props }) => {
|
|
2891
2963
|
const childrenArray = React16.Children.toArray(children);
|
|
@@ -2895,30 +2967,30 @@ var SheetHeader = ({ className, children, ...props }) => {
|
|
|
2895
2967
|
const otherChildren = childrenArray.filter(
|
|
2896
2968
|
(child) => !(React16.isValidElement(child) && child.type === SheetHeaderIcon)
|
|
2897
2969
|
);
|
|
2898
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
2970
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles48["sheet-header"], className), ...props, children: [
|
|
2899
2971
|
icon,
|
|
2900
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2901
|
-
/* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { name: "X", label: "Close", className:
|
|
2972
|
+
/* @__PURE__ */ jsx("div", { className: styles48["sheet-header-text-content"], children: otherChildren }),
|
|
2973
|
+
/* @__PURE__ */ jsx(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { name: "X", label: "Close", className: styles48["sheet-close"] }) })
|
|
2902
2974
|
] });
|
|
2903
2975
|
};
|
|
2904
2976
|
SheetHeader.displayName = "SheetHeader";
|
|
2905
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
2977
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles48["sheet-footer"], className), ...props });
|
|
2906
2978
|
SheetFooter.displayName = "SheetFooter";
|
|
2907
|
-
var SheetTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(
|
|
2979
|
+
var SheetTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn(styles48["sheet-title"], className), ...props }));
|
|
2908
2980
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2909
2981
|
var SheetDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2910
2982
|
DialogPrimitive.Description,
|
|
2911
2983
|
{
|
|
2912
2984
|
ref,
|
|
2913
|
-
className: cn(
|
|
2985
|
+
className: cn(styles48["sheet-description"], className),
|
|
2914
2986
|
...props
|
|
2915
2987
|
}
|
|
2916
2988
|
));
|
|
2917
2989
|
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2918
|
-
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(
|
|
2990
|
+
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn(styles48["sheet-body"], "styled-vertical-scrollbar", className), ...props });
|
|
2919
2991
|
SheetContent.displayName = "SheetContent";
|
|
2920
2992
|
function Skeleton({ className, ...props }) {
|
|
2921
|
-
return /* @__PURE__ */ jsx("div", { className: cn(
|
|
2993
|
+
return /* @__PURE__ */ jsx("div", { className: cn(styles49["skeleton"], className), ...props });
|
|
2922
2994
|
}
|
|
2923
2995
|
var ChevronDownIcon4 = ChevronDown;
|
|
2924
2996
|
function SortSelector({
|
|
@@ -2962,9 +3034,9 @@ function SortSelector({
|
|
|
2962
3034
|
setCurrentPage?.(1);
|
|
2963
3035
|
};
|
|
2964
3036
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
2965
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className: cn(
|
|
3037
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "tertiary", className: cn(styles50["sort-selector-trigger"], className), children: [
|
|
2966
3038
|
/* @__PURE__ */ jsx("span", { children: currentLabel }),
|
|
2967
|
-
/* @__PURE__ */ jsx(ChevronDownIcon4, { className:
|
|
3039
|
+
/* @__PURE__ */ jsx(ChevronDownIcon4, { className: styles50["chevron-down-icon"] })
|
|
2968
3040
|
] }) }),
|
|
2969
3041
|
/* @__PURE__ */ jsxs(
|
|
2970
3042
|
DropdownMenuContent,
|
|
@@ -2977,19 +3049,15 @@ function SortSelector({
|
|
|
2977
3049
|
!isDefaultSort && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleReset, children: "Reset" })
|
|
2978
3050
|
] }),
|
|
2979
3051
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
2980
|
-
filteredOptions.map((option) =>
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
},
|
|
2990
|
-
option.value
|
|
2991
|
-
);
|
|
2992
|
-
})
|
|
3052
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioGroup, { value: currentValue, onValueChange: handleChange, children: filteredOptions.map((option) => /* @__PURE__ */ jsx(
|
|
3053
|
+
DropdownMenuRadioItem,
|
|
3054
|
+
{
|
|
3055
|
+
value: option.value,
|
|
3056
|
+
onSelect: (e) => e.preventDefault(),
|
|
3057
|
+
children: option.label
|
|
3058
|
+
},
|
|
3059
|
+
option.value
|
|
3060
|
+
)) })
|
|
2993
3061
|
]
|
|
2994
3062
|
}
|
|
2995
3063
|
)
|
|
@@ -3001,10 +3069,10 @@ var Switch = React16.forwardRef(
|
|
|
3001
3069
|
return /* @__PURE__ */ jsx(
|
|
3002
3070
|
SwitchPrimitives.Root,
|
|
3003
3071
|
{
|
|
3004
|
-
className: cn(
|
|
3072
|
+
className: cn(styles51["switch"], styles51[size], styles51[variant], className),
|
|
3005
3073
|
...props,
|
|
3006
3074
|
ref,
|
|
3007
|
-
children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(
|
|
3075
|
+
children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn(styles51["thumb"], styles51[size]), children: thumbIcon && /* @__PURE__ */ jsx(Icon, { icon: thumbIcon, className: styles51["thumb-icon"], size: iconSize }) })
|
|
3008
3076
|
}
|
|
3009
3077
|
);
|
|
3010
3078
|
}
|
|
@@ -3026,24 +3094,24 @@ function SortButton({
|
|
|
3026
3094
|
const handleClick = () => {
|
|
3027
3095
|
onSort(field);
|
|
3028
3096
|
};
|
|
3029
|
-
return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleClick, className:
|
|
3097
|
+
return /* @__PURE__ */ jsxs("button", { type: "button", onClick: handleClick, className: styles52["sort-button"], children: [
|
|
3030
3098
|
icon,
|
|
3031
3099
|
children,
|
|
3032
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3100
|
+
/* @__PURE__ */ jsx("div", { className: styles52["arrow-container"], children: isActive ? isAscending ? /* @__PURE__ */ jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsx(ArrowDownIcon, {}) : /* @__PURE__ */ jsx(ArrowUpDownIcon, { className: styles52["arrow-up-down-icon"] }) })
|
|
3033
3101
|
] });
|
|
3034
3102
|
}
|
|
3035
|
-
var tableElevationVariants = generateElevationVariants(
|
|
3103
|
+
var tableElevationVariants = generateElevationVariants(styles53, "table", ELEVATION.RAISED);
|
|
3036
3104
|
var TableContainer = React16.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3037
3105
|
"div",
|
|
3038
3106
|
{
|
|
3039
3107
|
className: cn(
|
|
3040
|
-
|
|
3108
|
+
styles53["table"],
|
|
3041
3109
|
tableElevationVariants({ elevation }),
|
|
3042
|
-
border &&
|
|
3110
|
+
border && styles53["table-border"],
|
|
3043
3111
|
className
|
|
3044
3112
|
),
|
|
3045
3113
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
3046
|
-
children: /* @__PURE__ */ jsx("table", { ref, className:
|
|
3114
|
+
children: /* @__PURE__ */ jsx("table", { ref, className: styles53["table-inner"], ...props })
|
|
3047
3115
|
}
|
|
3048
3116
|
));
|
|
3049
3117
|
TableContainer.displayName = "Table";
|
|
@@ -3052,18 +3120,18 @@ var TableHeader = React16.forwardRef(({ className, sticky = false, ...props }, r
|
|
|
3052
3120
|
{
|
|
3053
3121
|
ref,
|
|
3054
3122
|
className: cn(
|
|
3055
|
-
|
|
3056
|
-
sticky === "container" &&
|
|
3057
|
-
sticky === "page" &&
|
|
3123
|
+
styles53["table-header"],
|
|
3124
|
+
sticky === "container" && styles53["table-header--sticky-container"],
|
|
3125
|
+
sticky === "page" && styles53["table-header--sticky-page"],
|
|
3058
3126
|
className
|
|
3059
3127
|
),
|
|
3060
3128
|
...props
|
|
3061
3129
|
}
|
|
3062
3130
|
));
|
|
3063
3131
|
TableHeader.displayName = "TableHeader";
|
|
3064
|
-
var TableBody = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn(
|
|
3132
|
+
var TableBody = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn(styles53["table-body"], className), ...props }));
|
|
3065
3133
|
TableBody.displayName = "TableBody";
|
|
3066
|
-
var TableFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: cn(
|
|
3134
|
+
var TableFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: cn(styles53["table-footer"], className), ...props }));
|
|
3067
3135
|
TableFooter.displayName = "TableFooter";
|
|
3068
3136
|
var TableRow = React16.forwardRef(
|
|
3069
3137
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
@@ -3080,15 +3148,15 @@ var TableRow = React16.forwardRef(
|
|
|
3080
3148
|
{
|
|
3081
3149
|
ref,
|
|
3082
3150
|
className: cn(
|
|
3083
|
-
|
|
3084
|
-
isClickable &&
|
|
3085
|
-
href &&
|
|
3151
|
+
styles53["table-row"],
|
|
3152
|
+
isClickable && styles53["table-row--clickable"],
|
|
3153
|
+
href && styles53["table-row--linked"],
|
|
3086
3154
|
className
|
|
3087
3155
|
),
|
|
3088
3156
|
onClick: onClick ? handleClick : void 0,
|
|
3089
3157
|
...props,
|
|
3090
3158
|
children: [
|
|
3091
|
-
href && /* @__PURE__ */ jsx("a", { href, className:
|
|
3159
|
+
href && /* @__PURE__ */ jsx("a", { href, className: styles53["table-row-link"], "data-table-row-link": true, children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: hrefLabel }) }),
|
|
3092
3160
|
children
|
|
3093
3161
|
]
|
|
3094
3162
|
}
|
|
@@ -3096,18 +3164,18 @@ var TableRow = React16.forwardRef(
|
|
|
3096
3164
|
}
|
|
3097
3165
|
);
|
|
3098
3166
|
TableRow.displayName = "TableRow";
|
|
3099
|
-
var TableHead = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: cn(
|
|
3167
|
+
var TableHead = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: cn(styles53["table-head"], className), ...props }));
|
|
3100
3168
|
TableHead.displayName = "TableHead";
|
|
3101
|
-
var TableCell = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: cn(
|
|
3169
|
+
var TableCell = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: cn(styles53["table-cell"], className), ...props }));
|
|
3102
3170
|
TableCell.displayName = "TableCell";
|
|
3103
|
-
var TableCaption = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn(
|
|
3171
|
+
var TableCaption = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn(styles53["table-caption"], className), ...props }));
|
|
3104
3172
|
TableCaption.displayName = "TableCaption";
|
|
3105
3173
|
var TabsContainer = TabsPrimitive.Root;
|
|
3106
|
-
var TabsList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, { ref, className: cn(
|
|
3174
|
+
var TabsList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, { ref, className: cn(styles54["tabs-list"], className), ...props }));
|
|
3107
3175
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3108
|
-
var TabsTrigger = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ref, className: cn(
|
|
3176
|
+
var TabsTrigger = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ref, className: cn(styles54["tabs-trigger"], className), ...props }));
|
|
3109
3177
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3110
|
-
var TabsContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ref, className: cn(
|
|
3178
|
+
var TabsContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ref, className: cn(styles54["tabs-content"], className), ...props }));
|
|
3111
3179
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
3112
3180
|
var Tabs = ({
|
|
3113
3181
|
id,
|
|
@@ -3125,7 +3193,7 @@ var Tabs = ({
|
|
|
3125
3193
|
};
|
|
3126
3194
|
const renderIcon = (icon) => {
|
|
3127
3195
|
if (icon) {
|
|
3128
|
-
return /* @__PURE__ */ jsx(Icon, { icon, size: "sm", className:
|
|
3196
|
+
return /* @__PURE__ */ jsx(Icon, { icon, size: "sm", className: styles55["tabs-icon"] });
|
|
3129
3197
|
}
|
|
3130
3198
|
return null;
|
|
3131
3199
|
};
|
|
@@ -3135,8 +3203,8 @@ var Tabs = ({
|
|
|
3135
3203
|
motion.span,
|
|
3136
3204
|
{
|
|
3137
3205
|
className: cn(
|
|
3138
|
-
|
|
3139
|
-
isFilled ?
|
|
3206
|
+
styles55["active-tab-indicator"],
|
|
3207
|
+
isFilled ? styles55["active-tab-indicator--filled"] : styles55["active-tab-indicator--transparent"]
|
|
3140
3208
|
),
|
|
3141
3209
|
initial: false,
|
|
3142
3210
|
layoutId: `${id}-active-tab-indicator`
|
|
@@ -3150,14 +3218,14 @@ var Tabs = ({
|
|
|
3150
3218
|
{
|
|
3151
3219
|
value: activeTab,
|
|
3152
3220
|
onValueChange: handleValueChange,
|
|
3153
|
-
className: cn(
|
|
3221
|
+
className: cn(styles55["tabs"], className),
|
|
3154
3222
|
children: [
|
|
3155
3223
|
/* @__PURE__ */ jsx(
|
|
3156
3224
|
TabsList,
|
|
3157
3225
|
{
|
|
3158
3226
|
className: cn(
|
|
3159
|
-
|
|
3160
|
-
isFilled ?
|
|
3227
|
+
styles55["tabs-list"],
|
|
3228
|
+
isFilled ? styles55["tabs-list--filled"] : styles55["tabs-list--transparent"]
|
|
3161
3229
|
),
|
|
3162
3230
|
children: items.map(({ label, value, icon, suffix }) => {
|
|
3163
3231
|
const isActive = activeTab === value;
|
|
@@ -3166,8 +3234,8 @@ var Tabs = ({
|
|
|
3166
3234
|
{
|
|
3167
3235
|
value,
|
|
3168
3236
|
className: cn(
|
|
3169
|
-
|
|
3170
|
-
isFilled ?
|
|
3237
|
+
styles55["tabs-trigger"],
|
|
3238
|
+
isFilled ? styles55["tabs-trigger--filled"] : styles55["tabs-trigger--transparent"]
|
|
3171
3239
|
),
|
|
3172
3240
|
"data-tour": `${value}-tab-overview`,
|
|
3173
3241
|
children: [
|
|
@@ -3182,14 +3250,14 @@ var Tabs = ({
|
|
|
3182
3250
|
})
|
|
3183
3251
|
}
|
|
3184
3252
|
),
|
|
3185
|
-
items.map(({ value, content }) => /* @__PURE__ */ jsx(TabsContent, { value, className:
|
|
3253
|
+
items.map(({ value, content }) => /* @__PURE__ */ jsx(TabsContent, { value, className: styles55["content"], children: content }, value))
|
|
3186
3254
|
]
|
|
3187
3255
|
}
|
|
3188
3256
|
);
|
|
3189
3257
|
};
|
|
3190
3258
|
var Textarea = React16.forwardRef(
|
|
3191
3259
|
({ className, ...props }, ref) => {
|
|
3192
|
-
return /* @__PURE__ */ jsx("textarea", { className: cn(
|
|
3260
|
+
return /* @__PURE__ */ jsx("textarea", { className: cn(styles56["textarea"], className), ref, ...props });
|
|
3193
3261
|
}
|
|
3194
3262
|
);
|
|
3195
3263
|
Textarea.displayName = "Textarea";
|
|
@@ -3260,10 +3328,10 @@ function FormatDate({
|
|
|
3260
3328
|
return () => clearInterval(id);
|
|
3261
3329
|
}, [isRelative, live]);
|
|
3262
3330
|
if (missing) {
|
|
3263
|
-
return /* @__PURE__ */ jsx("span", { className: cn(
|
|
3331
|
+
return /* @__PURE__ */ jsx("span", { className: cn(styles57["format-date"], className), "aria-label": "No date", ...props, children: NO_DATE_PLACEHOLDER });
|
|
3264
3332
|
}
|
|
3265
3333
|
if (!parsed) {
|
|
3266
|
-
return /* @__PURE__ */ jsx("span", { className: cn(
|
|
3334
|
+
return /* @__PURE__ */ jsx("span", { className: cn(styles57["format-date"], className), ...props, children: "Invalid date" });
|
|
3267
3335
|
}
|
|
3268
3336
|
const machineValue = parsed.toISOString();
|
|
3269
3337
|
const absolute = formatAbsolute(
|
|
@@ -3273,11 +3341,11 @@ function FormatDate({
|
|
|
3273
3341
|
locale
|
|
3274
3342
|
);
|
|
3275
3343
|
if (!isRelative) {
|
|
3276
|
-
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(
|
|
3344
|
+
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles57["format-date"], className), ...props, children: absolute });
|
|
3277
3345
|
}
|
|
3278
3346
|
const relative = mounted ? formatRelative(parsed, now, locale) : absolute;
|
|
3279
3347
|
if (!tooltip) {
|
|
3280
|
-
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(
|
|
3348
|
+
return /* @__PURE__ */ jsx("time", { dateTime: machineValue, className: cn(styles57["format-date"], className), ...props, children: relative });
|
|
3281
3349
|
}
|
|
3282
3350
|
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
3283
3351
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
@@ -3285,7 +3353,7 @@ function FormatDate({
|
|
|
3285
3353
|
{
|
|
3286
3354
|
dateTime: machineValue,
|
|
3287
3355
|
tabIndex: 0,
|
|
3288
|
-
className: cn(
|
|
3356
|
+
className: cn(styles57["format-date"], styles57["format-date--interactive"], className),
|
|
3289
3357
|
...props,
|
|
3290
3358
|
children: relative
|
|
3291
3359
|
}
|
|
@@ -3299,18 +3367,18 @@ var ToastViewport = React16.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3299
3367
|
ToastPrimitives.Viewport,
|
|
3300
3368
|
{
|
|
3301
3369
|
ref,
|
|
3302
|
-
className: cn(
|
|
3370
|
+
className: cn(styles58["toast-viewport"], className),
|
|
3303
3371
|
...props
|
|
3304
3372
|
}
|
|
3305
3373
|
));
|
|
3306
3374
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
3307
|
-
var toastVariants = cva(
|
|
3375
|
+
var toastVariants = cva(styles58["toast"], {
|
|
3308
3376
|
variants: {
|
|
3309
3377
|
variant: {
|
|
3310
|
-
default:
|
|
3311
|
-
danger:
|
|
3312
|
-
warning:
|
|
3313
|
-
success:
|
|
3378
|
+
default: styles58["toast--default"],
|
|
3379
|
+
danger: styles58["toast--danger"],
|
|
3380
|
+
warning: styles58["toast--warning"],
|
|
3381
|
+
success: styles58["toast--success"]
|
|
3314
3382
|
}
|
|
3315
3383
|
},
|
|
3316
3384
|
defaultVariants: {
|
|
@@ -3328,17 +3396,17 @@ var ToastContainer = React16.forwardRef(({ className, variant, ...props }, ref)
|
|
|
3328
3396
|
);
|
|
3329
3397
|
});
|
|
3330
3398
|
ToastContainer.displayName = ToastPrimitives.Root.displayName;
|
|
3331
|
-
var ToastAction = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Action, { ref, className: cn(
|
|
3399
|
+
var ToastAction = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Action, { ref, className: cn(styles58["toast-action"], className), ...props }));
|
|
3332
3400
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
3333
|
-
var ToastClose = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Close, { ref, className: cn(
|
|
3401
|
+
var ToastClose = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Close, { ref, className: cn(styles58["toast-close"], className), ...props, children: /* @__PURE__ */ jsx(XIcon2, { className: styles58["toast-close-icon"] }) }));
|
|
3334
3402
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
3335
|
-
var ToastTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(
|
|
3403
|
+
var ToastTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(styles58["toast-title"], className), ...props }));
|
|
3336
3404
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
3337
3405
|
var ToastDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3338
3406
|
ToastPrimitives.Description,
|
|
3339
3407
|
{
|
|
3340
3408
|
ref,
|
|
3341
|
-
className: cn(
|
|
3409
|
+
className: cn(styles58["toast-description"], className),
|
|
3342
3410
|
...props
|
|
3343
3411
|
}
|
|
3344
3412
|
));
|
|
@@ -3473,14 +3541,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
3473
3541
|
};
|
|
3474
3542
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
3475
3543
|
return /* @__PURE__ */ jsxs(ToastContainer, { ...props, variant, children: [
|
|
3476
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
3477
|
-
title && /* @__PURE__ */ jsxs("div", { className:
|
|
3544
|
+
/* @__PURE__ */ jsxs("div", { className: styles59["toast-copy"], children: [
|
|
3545
|
+
title && /* @__PURE__ */ jsxs("div", { className: styles59["toast-title-container"], children: [
|
|
3478
3546
|
displayIcon && /* @__PURE__ */ jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
3479
3547
|
/* @__PURE__ */ jsx(ToastTitle, { children: title })
|
|
3480
3548
|
] }),
|
|
3481
3549
|
description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
|
|
3482
3550
|
] }),
|
|
3483
|
-
action && /* @__PURE__ */ jsx("div", { className:
|
|
3551
|
+
action && /* @__PURE__ */ jsx("div", { className: styles59["toast-action"], children: action }),
|
|
3484
3552
|
/* @__PURE__ */ jsx(ToastClose, {})
|
|
3485
3553
|
] });
|
|
3486
3554
|
};
|
|
@@ -3510,7 +3578,7 @@ var TruncatedDescription = ({
|
|
|
3510
3578
|
e.stopPropagation();
|
|
3511
3579
|
setExpanded(!expanded);
|
|
3512
3580
|
};
|
|
3513
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
3581
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles60["truncated-description"], className), children: [
|
|
3514
3582
|
/* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
3515
3583
|
isLongDescription && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
3516
3584
|
] });
|
|
@@ -3521,12 +3589,12 @@ var removeHtmlTags = (html) => {
|
|
|
3521
3589
|
var Heading = forwardRef(
|
|
3522
3590
|
({ className, as, displayAs, children, ...props }, ref) => {
|
|
3523
3591
|
const displayClasses = {
|
|
3524
|
-
h1:
|
|
3525
|
-
h2:
|
|
3526
|
-
h3:
|
|
3527
|
-
h4:
|
|
3528
|
-
h5:
|
|
3529
|
-
h6:
|
|
3592
|
+
h1: styles61["h1"],
|
|
3593
|
+
h2: styles61["h2"],
|
|
3594
|
+
h3: styles61["h3"],
|
|
3595
|
+
h4: styles61["h4"],
|
|
3596
|
+
h5: styles61["h5"],
|
|
3597
|
+
h6: styles61["h6"]
|
|
3530
3598
|
};
|
|
3531
3599
|
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
3532
3600
|
const HeadingTag = as;
|
|
@@ -3540,12 +3608,12 @@ var ControlStatusBadge = ({ status, display = "both" }) => {
|
|
|
3540
3608
|
if (display === "icon-only") {
|
|
3541
3609
|
return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
|
|
3542
3610
|
}
|
|
3543
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
3544
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
3545
|
-
display !== "text-only" && /* @__PURE__ */ jsx(Icon, { icon: config.icon, size: "xs", className:
|
|
3611
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles62["split-badge"], config.className), children: [
|
|
3612
|
+
/* @__PURE__ */ jsxs("span", { className: styles62["split-badge__status"], children: [
|
|
3613
|
+
display !== "text-only" && /* @__PURE__ */ jsx(Icon, { icon: config.icon, size: "xs", className: styles62["icon"] }),
|
|
3546
3614
|
config.label
|
|
3547
3615
|
] }),
|
|
3548
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
3616
|
+
/* @__PURE__ */ jsx("span", { className: styles62["split-badge__sub-status"], children: config.subLabel })
|
|
3549
3617
|
] });
|
|
3550
3618
|
}
|
|
3551
3619
|
return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
|
|
@@ -3555,70 +3623,70 @@ var getStatusConfig = (status) => {
|
|
|
3555
3623
|
case "in-progress":
|
|
3556
3624
|
return {
|
|
3557
3625
|
icon: "Clock",
|
|
3558
|
-
className:
|
|
3626
|
+
className: styles62["badge--in-progress"],
|
|
3559
3627
|
label: "In Progress"
|
|
3560
3628
|
};
|
|
3561
3629
|
case "not-started":
|
|
3562
3630
|
return {
|
|
3563
3631
|
icon: "CircleDashed",
|
|
3564
|
-
className:
|
|
3632
|
+
className: styles62["badge--not-started"],
|
|
3565
3633
|
label: "Not Started"
|
|
3566
3634
|
};
|
|
3567
3635
|
case "ready-for-review":
|
|
3568
3636
|
return {
|
|
3569
3637
|
icon: "ClipboardCheck",
|
|
3570
|
-
className:
|
|
3638
|
+
className: styles62["badge--ready-for-review"],
|
|
3571
3639
|
label: "Ready for Review"
|
|
3572
3640
|
};
|
|
3573
3641
|
case "in-review":
|
|
3574
3642
|
return {
|
|
3575
3643
|
icon: "Eye",
|
|
3576
|
-
className:
|
|
3644
|
+
className: styles62["badge--in-review"],
|
|
3577
3645
|
label: "In Review"
|
|
3578
3646
|
};
|
|
3579
3647
|
case "comment":
|
|
3580
3648
|
return {
|
|
3581
3649
|
icon: "Eye",
|
|
3582
|
-
className:
|
|
3650
|
+
className: styles62["badge--comment"],
|
|
3583
3651
|
label: "In Review",
|
|
3584
3652
|
subLabel: "General"
|
|
3585
3653
|
};
|
|
3586
3654
|
case "not-applicable":
|
|
3587
3655
|
return {
|
|
3588
3656
|
icon: "MinusCircle",
|
|
3589
|
-
className:
|
|
3657
|
+
className: styles62["badge--not-applicable"],
|
|
3590
3658
|
label: "Not Applicable"
|
|
3591
3659
|
};
|
|
3592
3660
|
case "accepted":
|
|
3593
3661
|
return {
|
|
3594
3662
|
icon: "Eye",
|
|
3595
|
-
className:
|
|
3663
|
+
className: styles62["badge--accepted"],
|
|
3596
3664
|
label: "In Review",
|
|
3597
3665
|
subLabel: "Accepted"
|
|
3598
3666
|
};
|
|
3599
3667
|
case "questioned":
|
|
3600
3668
|
return {
|
|
3601
3669
|
icon: "Eye",
|
|
3602
|
-
className:
|
|
3670
|
+
className: styles62["badge--question"],
|
|
3603
3671
|
label: "In Review",
|
|
3604
3672
|
subLabel: "Questioned"
|
|
3605
3673
|
};
|
|
3606
3674
|
case "compliant":
|
|
3607
3675
|
return {
|
|
3608
3676
|
icon: /* @__PURE__ */ jsx(CircleCheckFillIcon, {}),
|
|
3609
|
-
className:
|
|
3677
|
+
className: styles62["badge--compliant"],
|
|
3610
3678
|
label: "Compliant"
|
|
3611
3679
|
};
|
|
3612
3680
|
case "non-compliant":
|
|
3613
3681
|
return {
|
|
3614
3682
|
icon: "X",
|
|
3615
|
-
className:
|
|
3683
|
+
className: styles62["badge--non-compliant"],
|
|
3616
3684
|
label: "Non-compliant"
|
|
3617
3685
|
};
|
|
3618
3686
|
default:
|
|
3619
3687
|
return {
|
|
3620
3688
|
icon: "CircleDashed",
|
|
3621
|
-
className:
|
|
3689
|
+
className: styles62["badge--not-started"],
|
|
3622
3690
|
label: status
|
|
3623
3691
|
};
|
|
3624
3692
|
}
|
|
@@ -3641,12 +3709,12 @@ var Portal8 = () => {
|
|
|
3641
3709
|
return /* @__PURE__ */ jsx("div", { id: "equality-theme-provider-root-portal" });
|
|
3642
3710
|
};
|
|
3643
3711
|
var ThemeProvider = ({ customVars, children }) => {
|
|
3644
|
-
return /* @__PURE__ */ jsxs("div", { id: "equality-theme-provider-root", className:
|
|
3712
|
+
return /* @__PURE__ */ jsxs("div", { id: "equality-theme-provider-root", className: styles63.root, style: customVars, children: [
|
|
3645
3713
|
children,
|
|
3646
3714
|
/* @__PURE__ */ jsx(Portal8, {})
|
|
3647
3715
|
] });
|
|
3648
3716
|
};
|
|
3649
3717
|
|
|
3650
|
-
export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BarGraph, BarGraphSegment, BgGradient, Button, Card, CardContent, CardContentHeader, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, CopyButton, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, Heading, Icon, IconButton, InfoCard, Input, Label2 as Label, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, NotFound, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, ScrollArea, ScrollBar, SearchBar, SectionHeading, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toast, ToastAction, ToastClose, ToastContainer, ToastDescription, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, buttonVariants, reducer, toast, useFormField, useTheme, useToast };
|
|
3718
|
+
export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BarGraph, BarGraphSegment, BgGradient, Button, Card, CardContent, CardContentHeader, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, CopyButton, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, Heading, Icon, IconButton, InfoCard, Input, Label2 as Label, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, NotFound, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, ScrollArea, ScrollBar, SearchBar, SectionHeading, SegmentedControls, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toast, ToastAction, ToastClose, ToastContainer, ToastDescription, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, buttonVariants, reducer, toast, useFormField, useTheme, useToast };
|
|
3651
3719
|
//# sourceMappingURL=index.js.map
|
|
3652
3720
|
//# sourceMappingURL=index.js.map
|