impact-nova 2.2.1 → 2.2.3
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/components/data/ag-grid-react/ag-grid-header-dom.d.ts +8 -0
- package/dist/components/data/ag-grid-react/ag-grid-header-dom.js +11 -0
- package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +4 -1
- package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +14 -3
- package/dist/components/data/ag-grid-react/headers/column-menu/column-header-settings-menu.d.ts +19 -0
- package/dist/components/data/ag-grid-react/headers/column-menu/column-header-settings-menu.js +74 -0
- package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.d.ts +4 -5
- package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +110 -144
- package/dist/components/data/ag-grid-react/headers/components/header-info.d.ts +2 -1
- package/dist/components/data/ag-grid-react/headers/components/header-info.js +73 -70
- package/dist/components/data/ag-grid-react/headers/context/grid-header-context.d.ts +0 -8
- package/dist/components/data/ag-grid-react/headers/custom-header.js +112 -118
- package/dist/components/data/ag-grid-react/headers/custom-inner-header-group.js +27 -23
- package/dist/components/data/ag-grid-react/headers/resolve-header-info-params.d.ts +10 -0
- package/dist/components/data/ag-grid-react/headers/resolve-header-info-params.js +19 -0
- package/dist/components/data/ag-grid-react/index.js +169 -210
- package/dist/components/data/ag-grid-react/info-system-story-columns.d.ts +12 -0
- package/dist/components/data/ag-grid-react/merge-column-group-defs.d.ts +3 -0
- package/dist/components/data/ag-grid-react/merge-column-group-defs.js +27 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.d.ts +2 -1
- package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.js +7 -7
- package/dist/components/data/data-table/data-table-view-menu.d.ts +1 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +6 -7
- package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +3 -2
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +70 -68
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +29 -29
- package/dist/components/data-display/calendar/calendar.js +96 -94
- package/dist/components/data-display/calendar/calendar.types.d.ts +2 -0
- package/dist/components/feedback/dialog/dialog.js +107 -61
- package/dist/components/feedback/dropdown-menu/dropdown-menu.d.ts +1 -0
- package/dist/components/feedback/dropdown-menu/dropdown-menu.js +83 -76
- package/dist/components/feedback/popover/popover.d.ts +5 -2
- package/dist/components/feedback/popover/popover.js +43 -40
- package/dist/components/feedback/sheet/sheet.js +149 -102
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- package/dist/components/flows/filter-panel/filter-panel.js +79 -76
- package/dist/components/forms/date-picker/date-input-behavior.d.ts +10 -4
- package/dist/components/forms/date-picker/date-input-behavior.js +86 -67
- package/dist/components/forms/date-picker/date-picker.js +59 -52
- package/dist/components/forms/date-picker/date-range-picker.js +26 -25
- package/dist/components/forms/date-picker/month-picker.js +76 -69
- package/dist/components/forms/date-picker/month-range-picker.js +41 -40
- package/dist/components/forms/date-picker/multi-date-picker.js +31 -31
- package/dist/components/forms/date-picker/multi-month-picker.js +27 -27
- package/dist/components/forms/date-picker/multi-week-picker.js +37 -37
- package/dist/components/forms/date-picker/week-picker.js +85 -78
- package/dist/components/forms/date-picker/week-range-picker.js +67 -66
- package/dist/components/forms/select/components/SelectMenuPanel.js +19 -15
- package/dist/components/forms/select/components/SelectOptionRow.js +110 -90
- package/dist/components/forms/select/components/Submenu.js +39 -34
- package/dist/components/forms/select/hooks/useSelectOpenEffects.js +65 -70
- package/dist/components/forms/select/select.js +228 -223
- package/dist/components/forms/select/select.types.d.ts +8 -0
- package/dist/impact-nova-components.css +59 -15
- package/dist/impact-nova.css +1 -1
- package/dist/lib/overlay/merge-element-refs.d.ts +2 -0
- package/dist/lib/overlay/merge-element-refs.js +17 -0
- package/dist/lib/overlay/overlay-host.constants.d.ts +4 -0
- package/dist/lib/overlay/overlay-host.constants.js +5 -0
- package/dist/lib/overlay/overlay-portal-context.d.ts +26 -0
- package/dist/lib/overlay/overlay-portal-context.js +65 -0
- package/dist/lib/overlay/use-overlay-portal-container-state.d.ts +5 -0
- package/dist/lib/overlay/use-overlay-portal-container-state.js +13 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +23 -8
- package/dist/components/forms/select/components/LabelWithSequence.d.ts +0 -13
- package/dist/components/forms/select/components/LabelWithSequence.js +0 -18
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
3
|
import * as a from "@radix-ui/react-popover";
|
|
4
|
-
import { Cross as
|
|
5
|
-
import { Tooltip as
|
|
6
|
-
import { wrapRadixPart as
|
|
4
|
+
import { Cross as N } from "impact-nova-icons";
|
|
5
|
+
import { Tooltip as g, TooltipTrigger as u, TooltipContent as P } from "../tooltip/tooltip.js";
|
|
6
|
+
import { wrapRadixPart as d, createCompoundPart as x } from "../../../lib/primitives/create-compound.js";
|
|
7
7
|
import { cn as n } from "../../../lib/utils.js";
|
|
8
|
-
import { useImpactNovaI18n as
|
|
9
|
-
|
|
8
|
+
import { useImpactNovaI18n as m } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
|
+
import { useOverlayNestedLayerDismiss as C, useOverlayPortalContainer as b } from "../../../lib/overlay/overlay-portal-context.js";
|
|
10
|
+
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as T } from "../../../lib/overlay/overlay-host.constants.js";
|
|
11
|
+
const H = (o) => (C(o.open, o.onOpenChange), /* @__PURE__ */ e(
|
|
10
12
|
a.Root,
|
|
11
13
|
{
|
|
12
14
|
"data-component": "popover",
|
|
13
15
|
modal: !1,
|
|
14
16
|
...o
|
|
15
17
|
}
|
|
16
|
-
),
|
|
18
|
+
)), B = d(
|
|
17
19
|
"popover",
|
|
18
20
|
"trigger",
|
|
19
21
|
"PopoverTrigger",
|
|
20
22
|
a.Trigger
|
|
21
|
-
),
|
|
23
|
+
), k = d(
|
|
22
24
|
"popover",
|
|
23
25
|
"anchor",
|
|
24
26
|
"PopoverAnchor",
|
|
25
27
|
a.Anchor
|
|
26
|
-
),
|
|
27
|
-
const { t:
|
|
28
|
-
return /* @__PURE__ */ e(a.Portal, { children: /* @__PURE__ */ e(
|
|
28
|
+
), w = p.forwardRef(({ className: o, align: t = "center", sideOffset: i = 4, container: s, "aria-label": r, ...c }, v) => {
|
|
29
|
+
const { t: f } = m(), y = b(), h = s ?? y;
|
|
30
|
+
return /* @__PURE__ */ e(a.Portal, { container: h, children: /* @__PURE__ */ e(
|
|
29
31
|
a.Content,
|
|
30
32
|
{
|
|
31
|
-
ref:
|
|
33
|
+
ref: v,
|
|
32
34
|
align: t,
|
|
33
35
|
sideOffset: i,
|
|
34
|
-
"aria-label":
|
|
36
|
+
"aria-label": r ?? f("aria.popover"),
|
|
35
37
|
"data-component": "popover-content",
|
|
36
38
|
className: n(
|
|
37
39
|
"z-50 min-w-[240px] rounded-xl border bg-canvas-overlay p-3 text-canvas-overlay-foreground shadow-md outline-none overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin] pointer-events-auto motion-reduce:animate-none motion-reduce:transition-none",
|
|
40
|
+
T,
|
|
38
41
|
o
|
|
39
42
|
),
|
|
40
|
-
...
|
|
43
|
+
...c
|
|
41
44
|
}
|
|
42
45
|
) });
|
|
43
46
|
});
|
|
44
|
-
|
|
45
|
-
const
|
|
47
|
+
w.displayName = a.Content.displayName;
|
|
48
|
+
const A = ({
|
|
46
49
|
className: o,
|
|
47
50
|
...t
|
|
48
51
|
}) => /* @__PURE__ */ e(
|
|
@@ -52,8 +55,8 @@ const x = ({
|
|
|
52
55
|
...t
|
|
53
56
|
}
|
|
54
57
|
);
|
|
55
|
-
|
|
56
|
-
const
|
|
58
|
+
A.displayName = "PopoverHeader";
|
|
59
|
+
const R = ({
|
|
57
60
|
className: o,
|
|
58
61
|
...t
|
|
59
62
|
}) => /* @__PURE__ */ e(
|
|
@@ -67,15 +70,15 @@ const N = ({
|
|
|
67
70
|
...t
|
|
68
71
|
}
|
|
69
72
|
);
|
|
70
|
-
|
|
71
|
-
const
|
|
73
|
+
R.displayName = "PopoverTitle";
|
|
74
|
+
const G = x("popover", {
|
|
72
75
|
part: "body",
|
|
73
76
|
displayName: "PopoverBody",
|
|
74
77
|
className: "text-sm"
|
|
75
|
-
}),
|
|
76
|
-
const { t: s } =
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */ e(
|
|
78
|
+
}), I = p.forwardRef(({ className: o, ...t }, i) => {
|
|
79
|
+
const { t: s } = m(), r = s("aria.close");
|
|
80
|
+
return /* @__PURE__ */ l(g, { children: [
|
|
81
|
+
/* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ l(
|
|
79
82
|
a.Close,
|
|
80
83
|
{
|
|
81
84
|
ref: i,
|
|
@@ -87,31 +90,31 @@ const I = u("popover", {
|
|
|
87
90
|
"aria-label": r,
|
|
88
91
|
...t,
|
|
89
92
|
children: [
|
|
90
|
-
/* @__PURE__ */ e(
|
|
93
|
+
/* @__PURE__ */ e(N, { className: "!h-3 !w-3 text-content-tertiary" }),
|
|
91
94
|
/* @__PURE__ */ e("span", { className: "sr-only", children: r })
|
|
92
95
|
]
|
|
93
96
|
}
|
|
94
97
|
) }),
|
|
95
|
-
/* @__PURE__ */ e(
|
|
98
|
+
/* @__PURE__ */ e(P, { variant: "tertiary", side: "top", children: r })
|
|
96
99
|
] });
|
|
97
100
|
});
|
|
98
|
-
|
|
99
|
-
const
|
|
101
|
+
I.displayName = a.Close.displayName;
|
|
102
|
+
const L = ({
|
|
100
103
|
className: o,
|
|
101
104
|
...t
|
|
102
|
-
}) => /* @__PURE__ */
|
|
105
|
+
}) => /* @__PURE__ */ l("div", { className: n("mt-4 flex flex-col gap-3", o), ...t, children: [
|
|
103
106
|
/* @__PURE__ */ e("div", { className: "h-[1px] w-full bg-stroke-hairline" }),
|
|
104
107
|
/* @__PURE__ */ e("div", { className: "flex justify-end gap-2", children: t.children })
|
|
105
108
|
] });
|
|
106
|
-
|
|
109
|
+
L.displayName = "PopoverFooter";
|
|
107
110
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
H as Popover,
|
|
112
|
+
k as PopoverAnchor,
|
|
113
|
+
G as PopoverBody,
|
|
114
|
+
I as PopoverClose,
|
|
115
|
+
w as PopoverContent,
|
|
116
|
+
L as PopoverFooter,
|
|
117
|
+
A as PopoverHeader,
|
|
118
|
+
R as PopoverTitle,
|
|
119
|
+
B as PopoverTrigger
|
|
117
120
|
};
|
|
@@ -1,170 +1,217 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import { ChevronRight as
|
|
5
|
-
import { createCompoundPart as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { useImpactNovaI18n as
|
|
8
|
-
import { Tooltip as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
3
|
+
import * as n from "@radix-ui/react-dialog";
|
|
4
|
+
import { ChevronRight as v, Cross as L } from "impact-nova-icons";
|
|
5
|
+
import { createCompoundPart as b, wrapRadixPart as y } from "../../../lib/primitives/create-compound.js";
|
|
6
|
+
import { cn as g } from "../../../lib/utils.js";
|
|
7
|
+
import { useImpactNovaI18n as R } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { Tooltip as N, TooltipTrigger as C, TooltipContent as S } from "../tooltip/tooltip.js";
|
|
9
|
+
import { mergeElementRefs as E } from "../../../lib/overlay/merge-element-refs.js";
|
|
10
|
+
import { OverlayHostProvider as k, useOverlayHostDismissBeforeClose as x, useOverlayHostNestedDismissing as B } from "../../../lib/overlay/overlay-portal-context.js";
|
|
11
|
+
import { OVERLAY_HOST_GROUP_CLASS as j } from "../../../lib/overlay/overlay-host.constants.js";
|
|
12
|
+
import { useOverlayPortalContainerState as z } from "../../../lib/overlay/use-overlay-portal-container-state.js";
|
|
13
|
+
import { SheetContext as T } from "./sheet-context.js";
|
|
14
|
+
import { sheetVariants as A } from "./sheet.variants.js";
|
|
15
|
+
const ee = (t) => /* @__PURE__ */ e(n.Root, { "data-component": "sheet", ...t }), te = y(
|
|
12
16
|
"sheet",
|
|
13
17
|
"trigger",
|
|
14
18
|
"SheetTrigger",
|
|
15
|
-
|
|
16
|
-
),
|
|
19
|
+
n.Trigger
|
|
20
|
+
), F = y(
|
|
17
21
|
"sheet",
|
|
18
22
|
"close",
|
|
19
23
|
"SheetClose",
|
|
20
|
-
|
|
21
|
-
),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
n.Close
|
|
25
|
+
), I = n.Portal, P = p.forwardRef(({ className: t, onPointerDown: i, ...l }, a) => {
|
|
26
|
+
const o = x();
|
|
27
|
+
return /* @__PURE__ */ e(
|
|
28
|
+
n.Overlay,
|
|
29
|
+
{
|
|
30
|
+
className: g(
|
|
31
|
+
"fixed inset-0 z-50 bg-scrim data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-reduce:animate-none motion-reduce:transition-none",
|
|
32
|
+
t
|
|
33
|
+
),
|
|
34
|
+
onPointerDown: (c) => {
|
|
35
|
+
o(), i?.(c);
|
|
36
|
+
},
|
|
37
|
+
...l,
|
|
38
|
+
ref: a
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
P.displayName = n.Overlay.displayName;
|
|
43
|
+
const D = p.forwardRef(
|
|
44
|
+
({
|
|
45
|
+
side: t,
|
|
46
|
+
isExpanded: i,
|
|
47
|
+
setPortalContainerElement: l,
|
|
48
|
+
className: a,
|
|
49
|
+
children: o,
|
|
50
|
+
onOpenAutoFocus: c,
|
|
51
|
+
onEscapeKeyDown: h,
|
|
52
|
+
...f
|
|
53
|
+
}, u) => {
|
|
54
|
+
const r = B(), d = x();
|
|
55
|
+
return /* @__PURE__ */ e(
|
|
56
|
+
n.Content,
|
|
57
|
+
{
|
|
58
|
+
ref: E(u, l),
|
|
59
|
+
"data-component": "sheet-content",
|
|
60
|
+
"data-overlay-host": "",
|
|
61
|
+
"data-nested-dismissing": r || void 0,
|
|
62
|
+
onOpenAutoFocus: (s) => {
|
|
63
|
+
s.preventDefault(), c?.(s);
|
|
64
|
+
},
|
|
65
|
+
onEscapeKeyDown: (s) => {
|
|
66
|
+
d(), h?.(s);
|
|
67
|
+
},
|
|
68
|
+
className: g(
|
|
69
|
+
A({ side: t }),
|
|
70
|
+
j,
|
|
71
|
+
"flex flex-col p-0 transition-all duration-300 motion-reduce:transition-none",
|
|
72
|
+
t === "bottom" && (i ? "h-[96vh]" : "h-[40vh]"),
|
|
73
|
+
a
|
|
74
|
+
),
|
|
75
|
+
...f,
|
|
76
|
+
children: o
|
|
77
|
+
}
|
|
78
|
+
);
|
|
30
79
|
}
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
const
|
|
80
|
+
);
|
|
81
|
+
D.displayName = "SheetHostContent";
|
|
82
|
+
const _ = p.forwardRef(
|
|
34
83
|
({
|
|
35
|
-
side:
|
|
36
|
-
className:
|
|
37
|
-
children:
|
|
38
|
-
expandable:
|
|
39
|
-
defaultExpanded:
|
|
40
|
-
onOpenAutoFocus:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
84
|
+
side: t = "right",
|
|
85
|
+
className: i,
|
|
86
|
+
children: l,
|
|
87
|
+
expandable: a = !1,
|
|
88
|
+
defaultExpanded: o = !1,
|
|
89
|
+
onOpenAutoFocus: c,
|
|
90
|
+
onEscapeKeyDown: h,
|
|
91
|
+
...f
|
|
92
|
+
}, u) => {
|
|
93
|
+
const [r, d] = p.useState(o), { portalContainer: s, setPortalContainerElement: H } = z(), O = p.useCallback(() => {
|
|
94
|
+
d((w) => !w);
|
|
45
95
|
}, []);
|
|
46
96
|
return /* @__PURE__ */ e(
|
|
47
|
-
|
|
97
|
+
T.Provider,
|
|
48
98
|
{
|
|
49
99
|
value: {
|
|
50
|
-
isExpanded:
|
|
51
|
-
onExpandToggle:
|
|
52
|
-
expandable:
|
|
53
|
-
side:
|
|
100
|
+
isExpanded: r,
|
|
101
|
+
onExpandToggle: O,
|
|
102
|
+
expandable: a,
|
|
103
|
+
side: t || void 0
|
|
54
104
|
},
|
|
55
|
-
children: /* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */ e(
|
|
105
|
+
children: /* @__PURE__ */ e(I, { children: /* @__PURE__ */ m(k, { portalContainer: s, children: [
|
|
106
|
+
/* @__PURE__ */ e(P, {}),
|
|
57
107
|
/* @__PURE__ */ e(
|
|
58
|
-
|
|
108
|
+
D,
|
|
59
109
|
{
|
|
60
|
-
ref:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
r
|
|
70
|
-
),
|
|
71
|
-
...u,
|
|
72
|
-
children: i
|
|
110
|
+
ref: u,
|
|
111
|
+
side: t,
|
|
112
|
+
isExpanded: r,
|
|
113
|
+
setPortalContainerElement: H,
|
|
114
|
+
className: i,
|
|
115
|
+
onOpenAutoFocus: c,
|
|
116
|
+
onEscapeKeyDown: h,
|
|
117
|
+
...f,
|
|
118
|
+
children: l
|
|
73
119
|
}
|
|
74
120
|
)
|
|
75
|
-
] })
|
|
121
|
+
] }) })
|
|
76
122
|
}
|
|
77
123
|
);
|
|
78
124
|
}
|
|
79
125
|
);
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
className:
|
|
83
|
-
children:
|
|
84
|
-
...
|
|
126
|
+
_.displayName = n.Content.displayName;
|
|
127
|
+
const V = ({
|
|
128
|
+
className: t,
|
|
129
|
+
children: i,
|
|
130
|
+
...l
|
|
85
131
|
}) => {
|
|
86
|
-
const { t:
|
|
87
|
-
return /* @__PURE__ */
|
|
132
|
+
const { t: a } = R(), { isExpanded: o, onExpandToggle: c, expandable: h, side: f } = p.useContext(T), u = x(), r = a("aria.close"), d = a("nestedList.expand"), s = a("nestedList.collapse");
|
|
133
|
+
return /* @__PURE__ */ m(
|
|
88
134
|
"div",
|
|
89
135
|
{
|
|
90
|
-
className:
|
|
136
|
+
className: g(
|
|
91
137
|
"flex shrink-0 items-center justify-between border-b bg-brand-tint px-4 py-4",
|
|
92
|
-
|
|
93
|
-
|
|
138
|
+
f === "bottom" && "rounded-t-lg",
|
|
139
|
+
t
|
|
94
140
|
),
|
|
95
|
-
...
|
|
141
|
+
...l,
|
|
96
142
|
children: [
|
|
97
|
-
/* @__PURE__ */ e("div", { className: "flex flex-col space-y-1 text-center sm:text-start", children:
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
|
|
100
|
-
/* @__PURE__ */ e(
|
|
143
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col space-y-1 text-center sm:text-start", children: i }),
|
|
144
|
+
/* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
|
|
145
|
+
h && /* @__PURE__ */ m(N, { children: [
|
|
146
|
+
/* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ m(
|
|
101
147
|
"button",
|
|
102
148
|
{
|
|
103
149
|
type: "button",
|
|
104
150
|
"data-component": "sheet-expand-toggle",
|
|
105
|
-
onClick:
|
|
151
|
+
onClick: c,
|
|
106
152
|
className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none",
|
|
107
|
-
"aria-label":
|
|
153
|
+
"aria-label": o ? s : d,
|
|
108
154
|
children: [
|
|
109
|
-
|
|
110
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children:
|
|
155
|
+
o ? /* @__PURE__ */ e(v, { size: 19, className: " -rotate-90" }) : /* @__PURE__ */ e(v, { size: 19, className: "rotate-90" }),
|
|
156
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: o ? s : d })
|
|
111
157
|
]
|
|
112
158
|
}
|
|
113
159
|
) }),
|
|
114
|
-
/* @__PURE__ */ e(
|
|
160
|
+
/* @__PURE__ */ e(S, { variant: "tertiary", side: "top", children: o ? s : d })
|
|
115
161
|
] }),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
-
|
|
162
|
+
/* @__PURE__ */ m(N, { children: [
|
|
163
|
+
/* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ m(
|
|
164
|
+
F,
|
|
119
165
|
{
|
|
120
166
|
"data-component": "sheet-close",
|
|
121
167
|
className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
122
|
-
"aria-label":
|
|
168
|
+
"aria-label": r,
|
|
169
|
+
onPointerDown: () => u(),
|
|
123
170
|
children: [
|
|
124
|
-
/* @__PURE__ */ e(
|
|
125
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children:
|
|
171
|
+
/* @__PURE__ */ e(L, { className: "!h-3 !w-3" }),
|
|
172
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: r })
|
|
126
173
|
]
|
|
127
174
|
}
|
|
128
175
|
) }),
|
|
129
|
-
/* @__PURE__ */ e(
|
|
176
|
+
/* @__PURE__ */ e(S, { variant: "tertiary", side: "top", children: r })
|
|
130
177
|
] })
|
|
131
178
|
] })
|
|
132
179
|
]
|
|
133
180
|
}
|
|
134
181
|
);
|
|
135
182
|
};
|
|
136
|
-
|
|
137
|
-
const
|
|
183
|
+
V.displayName = "SheetHeader";
|
|
184
|
+
const oe = b("sheet", {
|
|
138
185
|
part: "body",
|
|
139
186
|
displayName: "SheetBody",
|
|
140
187
|
className: "flex-1 overflow-y-auto p-4"
|
|
141
|
-
}),
|
|
188
|
+
}), se = b("sheet", {
|
|
142
189
|
part: "footer",
|
|
143
190
|
displayName: "SheetFooter",
|
|
144
191
|
className: "mt-auto flex shrink-0 items-center justify-end gap-2 border-t bg-canvas-elevated px-4 py-3"
|
|
145
|
-
}),
|
|
192
|
+
}), ne = y(
|
|
146
193
|
"sheet",
|
|
147
194
|
"title",
|
|
148
195
|
"SheetTitle",
|
|
149
|
-
|
|
196
|
+
n.Title,
|
|
150
197
|
"text-sm font-bold leading-none tracking-tight"
|
|
151
|
-
),
|
|
198
|
+
), ae = y(
|
|
152
199
|
"sheet",
|
|
153
200
|
"description",
|
|
154
201
|
"SheetDescription",
|
|
155
|
-
|
|
202
|
+
n.Description,
|
|
156
203
|
"text-sm text-content-secondary"
|
|
157
204
|
);
|
|
158
205
|
export {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
206
|
+
ee as Sheet,
|
|
207
|
+
oe as SheetBody,
|
|
208
|
+
F as SheetClose,
|
|
209
|
+
_ as SheetContent,
|
|
210
|
+
ae as SheetDescription,
|
|
211
|
+
se as SheetFooter,
|
|
212
|
+
V as SheetHeader,
|
|
213
|
+
P as SheetOverlay,
|
|
214
|
+
I as SheetPortal,
|
|
215
|
+
ne as SheetTitle,
|
|
216
|
+
te as SheetTrigger
|
|
170
217
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
|
|
3
|
-
|
|
4
|
-
const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
3
|
+
const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
5
4
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
6
5
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
7
6
|
] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
@@ -10,5 +9,5 @@ const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
|
10
9
|
] });
|
|
11
10
|
export {
|
|
12
11
|
h as defaultAccordionTooltipRender,
|
|
13
|
-
|
|
12
|
+
d as defaultTabTooltipRender
|
|
14
13
|
};
|