@devalok/shilp-sutra 0.8.3 → 0.9.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/_chunks/avatar.js +50 -0
- package/dist/_chunks/button.js +95 -0
- package/dist/_chunks/card.js +40 -0
- package/dist/_chunks/checkbox.js +14 -0
- package/dist/_chunks/form.js +27 -0
- package/dist/_chunks/primitives.js +6965 -0
- package/dist/_chunks/sidebar.js +592 -0
- package/dist/_chunks/spinner.js +34 -0
- package/dist/_chunks/tiptap.js +15254 -0
- package/dist/_chunks/tooltip.js +13 -0
- package/dist/_chunks/tree-view.js +304 -0
- package/dist/_chunks/use-calendar.js +990 -0
- package/dist/_chunks/utils.js +15 -0
- package/dist/_chunks/vendor.js +5823 -0
- package/dist/composed/avatar-group.js +20 -20
- package/dist/composed/command-palette.js +1 -1
- package/dist/composed/confirm-dialog.js +5 -5
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +6 -6
- package/dist/composed/date-picker/index.js +13 -0
- package/dist/composed/empty-state.js +10 -10
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +4 -4
- package/dist/composed/index.js +45 -53
- package/dist/composed/loading-skeleton.js +2 -2
- package/dist/composed/member-picker.js +5 -5
- package/dist/composed/page-header.js +4 -4
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +422 -209
- package/dist/composed/schedule-view.js +1 -1
- package/dist/composed/simple-tooltip.js +6 -6
- package/dist/composed/status-badge.d.ts +1 -1
- package/dist/composed/status-badge.js +2 -2
- package/dist/shell/bottom-navbar.js +1 -1
- package/dist/shell/notification-center.js +2 -2
- package/dist/shell/notification-preferences.js +32 -33
- package/dist/shell/sidebar.js +24 -24
- package/dist/shell/top-bar.js +22 -22
- package/dist/ui/accordion.js +17 -17
- package/dist/ui/alert-dialog.js +29 -29
- package/dist/ui/alert.d.ts +2 -2
- package/dist/ui/alert.js +65 -44
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/autocomplete.js +11 -11
- package/dist/ui/avatar.d.ts +1 -1
- package/dist/ui/avatar.js +67 -25
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.js +115 -91
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/banner.js +5 -5
- package/dist/ui/breadcrumb.js +14 -14
- package/dist/ui/button-group.js +30 -15
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.js +114 -71
- package/dist/ui/card.js +66 -22
- package/dist/ui/charts/index.js +1221 -18
- package/dist/ui/checkbox.js +25 -5
- package/dist/ui/chip.d.ts +4 -4
- package/dist/ui/chip.js +2 -2
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +5 -5
- package/dist/ui/color-input.js +11 -11
- package/dist/ui/combobox.js +12 -12
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +37 -37
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +2 -2
- package/dist/ui/dialog.js +33 -33
- package/dist/ui/dropdown-menu.js +60 -60
- package/dist/ui/file-upload.js +1 -1
- package/dist/ui/form.js +36 -15
- package/dist/ui/hover-card.js +7 -7
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +523 -325
- package/dist/ui/input-otp.d.ts +2 -2
- package/dist/ui/input-otp.js +14 -14
- package/dist/ui/input.js +56 -28
- package/dist/ui/label.js +18 -4
- package/dist/ui/lib/utils.js +4 -5
- package/dist/ui/link.js +9 -9
- package/dist/ui/menubar.js +81 -81
- package/dist/ui/navigation-menu.js +42 -42
- package/dist/ui/number-input.js +13 -13
- package/dist/ui/pagination.js +5 -5
- package/dist/ui/popover.js +9 -9
- package/dist/ui/progress.d.ts +1 -1
- package/dist/ui/progress.js +15 -15
- package/dist/ui/radio.js +10 -10
- package/dist/ui/search-input.js +5 -5
- package/dist/ui/segmented-control.js +91 -83
- package/dist/ui/select.js +52 -52
- package/dist/ui/separator.js +20 -5
- package/dist/ui/sheet.js +28 -28
- package/dist/ui/sidebar.js +36 -560
- package/dist/ui/skeleton.d.ts +1 -1
- package/dist/ui/skeleton.js +9 -9
- package/dist/ui/slider.js +11 -11
- package/dist/ui/spinner.js +37 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +1 -1
- package/dist/ui/stepper.js +15 -15
- package/dist/ui/switch.js +22 -3
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.js +59 -32
- package/dist/ui/text.js +2 -2
- package/dist/ui/textarea.js +7 -7
- package/dist/ui/toast.d.ts +1 -1
- package/dist/ui/toast.js +28 -28
- package/dist/ui/toggle-group.js +11 -11
- package/dist/ui/toggle.js +9 -9
- package/dist/ui/tooltip.js +17 -6
- package/dist/ui/transitions.js +68 -58
- package/dist/ui/tree-view/index.js +7 -0
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +1 -1
- package/llms.txt +7 -0
- package/package.json +656 -701
- package/dist/_virtual/client.js +0 -5
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/react-dom-client.development.js +0 -5
- package/dist/_virtual/react-dom-client.production.js +0 -5
- package/dist/_virtual/scheduler.development.js +0 -5
- package/dist/_virtual/scheduler.production.js +0 -5
- package/dist/composed/date-picker/calendar-grid.js +0 -194
- package/dist/composed/date-picker/date-picker.js +0 -124
- package/dist/composed/date-picker/date-range-picker.js +0 -167
- package/dist/composed/date-picker/date-time-picker.js +0 -193
- package/dist/composed/date-picker/month-picker.js +0 -53
- package/dist/composed/date-picker/presets.js +0 -84
- package/dist/composed/date-picker/time-picker.js +0 -181
- package/dist/composed/date-picker/use-calendar.js +0 -17
- package/dist/composed/date-picker/year-picker.js +0 -45
- package/dist/composed/extensions/emoji-suggestion.js +0 -119
- package/dist/composed/extensions/file-attachment.js +0 -55
- package/dist/composed/extensions/mention-suggestion.js +0 -79
- package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
- package/dist/node_modules/.pnpm/@emoji-mart_react@1.1.1_emoji-mart@5.6.0_react@19.2.4/node_modules/@emoji-mart/react/dist/module.js +0 -17
- package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +0 -17062
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +0 -9790
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
- package/dist/primitives/_internal/number.js +0 -6
- package/dist/primitives/_internal/primitive.js +0 -9
- package/dist/primitives/_internal/react-arrow.js +0 -13
- package/dist/primitives/_internal/react-collection.js +0 -48
- package/dist/primitives/_internal/react-compose-refs.js +0 -29
- package/dist/primitives/_internal/react-context.js +0 -76
- package/dist/primitives/_internal/react-direction.js +0 -10
- package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
- package/dist/primitives/_internal/react-focus-guards.js +0 -17
- package/dist/primitives/_internal/react-focus-scope.js +0 -137
- package/dist/primitives/_internal/react-id.js +0 -14
- package/dist/primitives/_internal/react-popper.js +0 -137
- package/dist/primitives/_internal/react-portal.js +0 -16
- package/dist/primitives/_internal/react-presence.js +0 -71
- package/dist/primitives/_internal/react-primitive.js +0 -36
- package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
- package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
- package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
- package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
- package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
- package/dist/primitives/_internal/react-use-previous.js +0 -8
- package/dist/primitives/_internal/react-use-size.js +0 -27
- package/dist/primitives/react-accordion.js +0 -239
- package/dist/primitives/react-alert-dialog.js +0 -127
- package/dist/primitives/react-aspect-ratio.js +0 -43
- package/dist/primitives/react-avatar.js +0 -75
- package/dist/primitives/react-checkbox.js +0 -251
- package/dist/primitives/react-collapsible.js +0 -120
- package/dist/primitives/react-context-menu.js +0 -240
- package/dist/primitives/react-dialog.js +0 -262
- package/dist/primitives/react-dropdown-menu.js +0 -227
- package/dist/primitives/react-hover-card.js +0 -187
- package/dist/primitives/react-label.js +0 -20
- package/dist/primitives/react-menu.js +0 -652
- package/dist/primitives/react-menubar.js +0 -355
- package/dist/primitives/react-navigation-menu.js +0 -607
- package/dist/primitives/react-popover.js +0 -243
- package/dist/primitives/react-progress.js +0 -84
- package/dist/primitives/react-radio-group.js +0 -238
- package/dist/primitives/react-roving-focus.js +0 -183
- package/dist/primitives/react-select.js +0 -862
- package/dist/primitives/react-separator.js +0 -24
- package/dist/primitives/react-slider.js +0 -437
- package/dist/primitives/react-slot.js +0 -70
- package/dist/primitives/react-switch.js +0 -132
- package/dist/primitives/react-tabs.js +0 -163
- package/dist/primitives/react-toast.js +0 -446
- package/dist/primitives/react-toggle-group.js +0 -137
- package/dist/primitives/react-toggle.js +0 -33
- package/dist/primitives/react-tooltip.js +0 -338
- package/dist/primitives/react-visually-hidden.js +0 -32
- package/dist/ui/charts/_internal/animation.js +0 -18
- package/dist/ui/charts/_internal/axes.js +0 -42
- package/dist/ui/charts/_internal/colors.js +0 -21
- package/dist/ui/charts/_internal/grid-lines.js +0 -43
- package/dist/ui/charts/_internal/legend.js +0 -29
- package/dist/ui/charts/_internal/tooltip.js +0 -39
- package/dist/ui/charts/_internal/types.js +0 -10
- package/dist/ui/charts/area-chart.js +0 -245
- package/dist/ui/charts/bar-chart.js +0 -153
- package/dist/ui/charts/chart-container.js +0 -27
- package/dist/ui/charts/gauge-chart.js +0 -72
- package/dist/ui/charts/line-chart.js +0 -163
- package/dist/ui/charts/pie-chart.js +0 -132
- package/dist/ui/charts/radar-chart.js +0 -223
- package/dist/ui/charts/sparkline.js +0 -124
- package/dist/ui/lib/motion.js +0 -32
- package/dist/ui/lib/use-reduced-motion.js +0 -15
- package/dist/ui/lib/use-ripple.js +0 -14
- package/dist/ui/tree-view/tree-item.js +0 -139
- package/dist/ui/tree-view/tree-view.js +0 -140
- package/dist/ui/tree-view/use-tree.js +0 -38
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import * as u from "react";
|
|
2
|
-
import { createCollection as re } from "./_internal/react-collection.js";
|
|
3
|
-
import { useDirection as ae } from "./_internal/react-direction.js";
|
|
4
|
-
import { composeEventHandlers as h } from "./_internal/primitive.js";
|
|
5
|
-
import { useComposedRefs as oe } from "./_internal/react-compose-refs.js";
|
|
6
|
-
import { createContextScope as ne } from "./_internal/react-context.js";
|
|
7
|
-
import { useId as S } from "./_internal/react-id.js";
|
|
8
|
-
import { Group as te, Root as ue, Portal as se, RadioGroup as ie, Sub as ce, CheckboxItem as pe, ItemIndicator as le, Content as de, createMenuScope as be, Item as me, Label as fe, RadioItem as ve, Separator as Me, SubContent as ge, SubTrigger as he, Anchor as Re, Arrow as _e } from "./react-menu.js";
|
|
9
|
-
import { Root as Ie, Item as Se, createRovingFocusGroupScope as O } from "./react-roving-focus.js";
|
|
10
|
-
import { Primitive as T } from "./_internal/react-primitive.js";
|
|
11
|
-
import { useControllableState as G } from "./_internal/react-use-controllable-state.js";
|
|
12
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
13
|
-
var _ = "Menubar", [C, Ce, xe] = re(_), [D] = ne(_, [
|
|
14
|
-
xe,
|
|
15
|
-
O
|
|
16
|
-
]), l = be(), k = O(), [we, A] = D(_), K = u.forwardRef(
|
|
17
|
-
(e, o) => {
|
|
18
|
-
const {
|
|
19
|
-
__scopeMenubar: r,
|
|
20
|
-
value: a,
|
|
21
|
-
onValueChange: n,
|
|
22
|
-
defaultValue: g,
|
|
23
|
-
loop: d = !0,
|
|
24
|
-
dir: c,
|
|
25
|
-
...s
|
|
26
|
-
} = e, m = ae(c), i = k(r), [v, b] = G({
|
|
27
|
-
prop: a,
|
|
28
|
-
onChange: n,
|
|
29
|
-
defaultProp: g ?? "",
|
|
30
|
-
caller: _
|
|
31
|
-
}), [M, p] = u.useState(null);
|
|
32
|
-
return /* @__PURE__ */ t(
|
|
33
|
-
we,
|
|
34
|
-
{
|
|
35
|
-
scope: r,
|
|
36
|
-
value: v,
|
|
37
|
-
onMenuOpen: u.useCallback(
|
|
38
|
-
(f) => {
|
|
39
|
-
b(f), p(f);
|
|
40
|
-
},
|
|
41
|
-
[b]
|
|
42
|
-
),
|
|
43
|
-
onMenuClose: u.useCallback(() => b(""), [b]),
|
|
44
|
-
onMenuToggle: u.useCallback(
|
|
45
|
-
(f) => {
|
|
46
|
-
b((y) => y ? "" : f), p(f);
|
|
47
|
-
},
|
|
48
|
-
[b]
|
|
49
|
-
),
|
|
50
|
-
dir: m,
|
|
51
|
-
loop: d,
|
|
52
|
-
children: /* @__PURE__ */ t(C.Provider, { scope: r, children: /* @__PURE__ */ t(C.Slot, { scope: r, children: /* @__PURE__ */ t(
|
|
53
|
-
Ie,
|
|
54
|
-
{
|
|
55
|
-
asChild: !0,
|
|
56
|
-
...i,
|
|
57
|
-
orientation: "horizontal",
|
|
58
|
-
loop: d,
|
|
59
|
-
dir: m,
|
|
60
|
-
currentTabStopId: M,
|
|
61
|
-
onCurrentTabStopIdChange: p,
|
|
62
|
-
children: /* @__PURE__ */ t(T.div, { role: "menubar", ...s, ref: o })
|
|
63
|
-
}
|
|
64
|
-
) }) })
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
K.displayName = _;
|
|
70
|
-
var N = "MenubarMenu", [Ae, F] = D(N), L = (e) => {
|
|
71
|
-
const { __scopeMenubar: o, value: r, ...a } = e, n = S(), g = r || n || "LEGACY_REACT_AUTO_VALUE", d = A(N, o), c = l(o), s = u.useRef(null), m = u.useRef(!1), i = d.value === g;
|
|
72
|
-
return u.useEffect(() => {
|
|
73
|
-
i || (m.current = !1);
|
|
74
|
-
}, [i]), /* @__PURE__ */ t(
|
|
75
|
-
Ae,
|
|
76
|
-
{
|
|
77
|
-
scope: o,
|
|
78
|
-
value: g,
|
|
79
|
-
triggerId: S(),
|
|
80
|
-
triggerRef: s,
|
|
81
|
-
contentId: S(),
|
|
82
|
-
wasKeyboardTriggerOpenRef: m,
|
|
83
|
-
children: /* @__PURE__ */ t(
|
|
84
|
-
ue,
|
|
85
|
-
{
|
|
86
|
-
...c,
|
|
87
|
-
open: i,
|
|
88
|
-
onOpenChange: (v) => {
|
|
89
|
-
v || d.onMenuClose();
|
|
90
|
-
},
|
|
91
|
-
modal: !1,
|
|
92
|
-
dir: d.dir,
|
|
93
|
-
...a
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
L.displayName = N;
|
|
100
|
-
var x = "MenubarTrigger", B = u.forwardRef(
|
|
101
|
-
(e, o) => {
|
|
102
|
-
const { __scopeMenubar: r, disabled: a = !1, ...n } = e, g = k(r), d = l(r), c = A(x, r), s = F(x, r), m = u.useRef(null), i = oe(o, m, s.triggerRef), [v, b] = u.useState(!1), M = c.value === s.value;
|
|
103
|
-
return /* @__PURE__ */ t(C.ItemSlot, { scope: r, value: s.value, disabled: a, children: /* @__PURE__ */ t(
|
|
104
|
-
Se,
|
|
105
|
-
{
|
|
106
|
-
asChild: !0,
|
|
107
|
-
...g,
|
|
108
|
-
focusable: !a,
|
|
109
|
-
tabStopId: s.value,
|
|
110
|
-
children: /* @__PURE__ */ t(Re, { asChild: !0, ...d, children: /* @__PURE__ */ t(
|
|
111
|
-
T.button,
|
|
112
|
-
{
|
|
113
|
-
type: "button",
|
|
114
|
-
role: "menuitem",
|
|
115
|
-
id: s.triggerId,
|
|
116
|
-
"aria-haspopup": "menu",
|
|
117
|
-
"aria-expanded": M,
|
|
118
|
-
"aria-controls": M ? s.contentId : void 0,
|
|
119
|
-
"data-highlighted": v ? "" : void 0,
|
|
120
|
-
"data-state": M ? "open" : "closed",
|
|
121
|
-
"data-disabled": a ? "" : void 0,
|
|
122
|
-
disabled: a,
|
|
123
|
-
...n,
|
|
124
|
-
ref: i,
|
|
125
|
-
onPointerDown: h(e.onPointerDown, (p) => {
|
|
126
|
-
!a && p.button === 0 && p.ctrlKey === !1 && (c.onMenuOpen(s.value), M || p.preventDefault());
|
|
127
|
-
}),
|
|
128
|
-
onPointerEnter: h(e.onPointerEnter, () => {
|
|
129
|
-
var f;
|
|
130
|
-
!!c.value && !M && (c.onMenuOpen(s.value), (f = m.current) == null || f.focus());
|
|
131
|
-
}),
|
|
132
|
-
onKeyDown: h(e.onKeyDown, (p) => {
|
|
133
|
-
a || (["Enter", " "].includes(p.key) && c.onMenuToggle(s.value), p.key === "ArrowDown" && c.onMenuOpen(s.value), ["Enter", " ", "ArrowDown"].includes(p.key) && (s.wasKeyboardTriggerOpenRef.current = !0, p.preventDefault()));
|
|
134
|
-
}),
|
|
135
|
-
onFocus: h(e.onFocus, () => b(!0)),
|
|
136
|
-
onBlur: h(e.onBlur, () => b(!1))
|
|
137
|
-
}
|
|
138
|
-
) })
|
|
139
|
-
}
|
|
140
|
-
) });
|
|
141
|
-
}
|
|
142
|
-
);
|
|
143
|
-
B.displayName = x;
|
|
144
|
-
var Ne = "MenubarPortal", U = (e) => {
|
|
145
|
-
const { __scopeMenubar: o, ...r } = e, a = l(o);
|
|
146
|
-
return /* @__PURE__ */ t(se, { ...a, ...r });
|
|
147
|
-
};
|
|
148
|
-
U.displayName = Ne;
|
|
149
|
-
var w = "MenubarContent", V = u.forwardRef(
|
|
150
|
-
(e, o) => {
|
|
151
|
-
const { __scopeMenubar: r, align: a = "start", ...n } = e, g = l(r), d = A(w, r), c = F(w, r), s = Ce(r), m = u.useRef(!1);
|
|
152
|
-
return /* @__PURE__ */ t(
|
|
153
|
-
de,
|
|
154
|
-
{
|
|
155
|
-
id: c.contentId,
|
|
156
|
-
"aria-labelledby": c.triggerId,
|
|
157
|
-
"data-radix-menubar-content": "",
|
|
158
|
-
...g,
|
|
159
|
-
...n,
|
|
160
|
-
ref: o,
|
|
161
|
-
align: a,
|
|
162
|
-
onCloseAutoFocus: h(e.onCloseAutoFocus, (i) => {
|
|
163
|
-
var b;
|
|
164
|
-
!!!d.value && !m.current && ((b = c.triggerRef.current) == null || b.focus()), m.current = !1, i.preventDefault();
|
|
165
|
-
}),
|
|
166
|
-
onFocusOutside: h(e.onFocusOutside, (i) => {
|
|
167
|
-
const v = i.target;
|
|
168
|
-
s().some((M) => {
|
|
169
|
-
var p;
|
|
170
|
-
return (p = M.ref.current) == null ? void 0 : p.contains(v);
|
|
171
|
-
}) && i.preventDefault();
|
|
172
|
-
}),
|
|
173
|
-
onInteractOutside: h(e.onInteractOutside, () => {
|
|
174
|
-
m.current = !0;
|
|
175
|
-
}),
|
|
176
|
-
onEntryFocus: (i) => {
|
|
177
|
-
c.wasKeyboardTriggerOpenRef.current || i.preventDefault();
|
|
178
|
-
},
|
|
179
|
-
onKeyDown: h(
|
|
180
|
-
e.onKeyDown,
|
|
181
|
-
(i) => {
|
|
182
|
-
if (["ArrowRight", "ArrowLeft"].includes(i.key)) {
|
|
183
|
-
const v = i.target, b = v.hasAttribute("data-radix-menubar-subtrigger"), M = v.closest("[data-radix-menubar-content]") !== i.currentTarget, f = (d.dir === "rtl" ? "ArrowRight" : "ArrowLeft") === i.key;
|
|
184
|
-
if (!f && b || M && f) return;
|
|
185
|
-
let R = s().filter((I) => !I.disabled).map((I) => I.value);
|
|
186
|
-
f && R.reverse();
|
|
187
|
-
const P = R.indexOf(c.value);
|
|
188
|
-
R = d.loop ? Ue(R, P + 1) : R.slice(P + 1);
|
|
189
|
-
const [E] = R;
|
|
190
|
-
E && d.onMenuOpen(E);
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
{ checkForDefaultPrevented: !1 }
|
|
194
|
-
),
|
|
195
|
-
style: {
|
|
196
|
-
...e.style,
|
|
197
|
-
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
198
|
-
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
199
|
-
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
200
|
-
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
201
|
-
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
V.displayName = w;
|
|
208
|
-
var ye = "MenubarGroup", H = u.forwardRef(
|
|
209
|
-
(e, o) => {
|
|
210
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
211
|
-
return /* @__PURE__ */ t(te, { ...n, ...a, ref: o });
|
|
212
|
-
}
|
|
213
|
-
);
|
|
214
|
-
H.displayName = ye;
|
|
215
|
-
var Pe = "MenubarLabel", $ = u.forwardRef(
|
|
216
|
-
(e, o) => {
|
|
217
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
218
|
-
return /* @__PURE__ */ t(fe, { ...n, ...a, ref: o });
|
|
219
|
-
}
|
|
220
|
-
);
|
|
221
|
-
$.displayName = Pe;
|
|
222
|
-
var Ee = "MenubarItem", j = u.forwardRef(
|
|
223
|
-
(e, o) => {
|
|
224
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
225
|
-
return /* @__PURE__ */ t(me, { ...n, ...a, ref: o });
|
|
226
|
-
}
|
|
227
|
-
);
|
|
228
|
-
j.displayName = Ee;
|
|
229
|
-
var Oe = "MenubarCheckboxItem", z = u.forwardRef(
|
|
230
|
-
(e, o) => {
|
|
231
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
232
|
-
return /* @__PURE__ */ t(pe, { ...n, ...a, ref: o });
|
|
233
|
-
}
|
|
234
|
-
);
|
|
235
|
-
z.displayName = Oe;
|
|
236
|
-
var Te = "MenubarRadioGroup", W = u.forwardRef(
|
|
237
|
-
(e, o) => {
|
|
238
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
239
|
-
return /* @__PURE__ */ t(ie, { ...n, ...a, ref: o });
|
|
240
|
-
}
|
|
241
|
-
);
|
|
242
|
-
W.displayName = Te;
|
|
243
|
-
var Ge = "MenubarRadioItem", X = u.forwardRef(
|
|
244
|
-
(e, o) => {
|
|
245
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
246
|
-
return /* @__PURE__ */ t(ve, { ...n, ...a, ref: o });
|
|
247
|
-
}
|
|
248
|
-
);
|
|
249
|
-
X.displayName = Ge;
|
|
250
|
-
var De = "MenubarItemIndicator", Y = u.forwardRef((e, o) => {
|
|
251
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
252
|
-
return /* @__PURE__ */ t(le, { ...n, ...a, ref: o });
|
|
253
|
-
});
|
|
254
|
-
Y.displayName = De;
|
|
255
|
-
var ke = "MenubarSeparator", q = u.forwardRef(
|
|
256
|
-
(e, o) => {
|
|
257
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
258
|
-
return /* @__PURE__ */ t(Me, { ...n, ...a, ref: o });
|
|
259
|
-
}
|
|
260
|
-
);
|
|
261
|
-
q.displayName = ke;
|
|
262
|
-
var Ke = "MenubarArrow", Fe = u.forwardRef(
|
|
263
|
-
(e, o) => {
|
|
264
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
265
|
-
return /* @__PURE__ */ t(_e, { ...n, ...a, ref: o });
|
|
266
|
-
}
|
|
267
|
-
);
|
|
268
|
-
Fe.displayName = Ke;
|
|
269
|
-
var J = "MenubarSub", Q = (e) => {
|
|
270
|
-
const { __scopeMenubar: o, children: r, open: a, onOpenChange: n, defaultOpen: g } = e, d = l(o), [c, s] = G({
|
|
271
|
-
prop: a,
|
|
272
|
-
defaultProp: g ?? !1,
|
|
273
|
-
onChange: n,
|
|
274
|
-
caller: J
|
|
275
|
-
});
|
|
276
|
-
return /* @__PURE__ */ t(ce, { ...d, open: c, onOpenChange: s, children: r });
|
|
277
|
-
};
|
|
278
|
-
Q.displayName = J;
|
|
279
|
-
var Le = "MenubarSubTrigger", Z = u.forwardRef(
|
|
280
|
-
(e, o) => {
|
|
281
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
282
|
-
return /* @__PURE__ */ t(
|
|
283
|
-
he,
|
|
284
|
-
{
|
|
285
|
-
"data-radix-menubar-subtrigger": "",
|
|
286
|
-
...n,
|
|
287
|
-
...a,
|
|
288
|
-
ref: o
|
|
289
|
-
}
|
|
290
|
-
);
|
|
291
|
-
}
|
|
292
|
-
);
|
|
293
|
-
Z.displayName = Le;
|
|
294
|
-
var Be = "MenubarSubContent", ee = u.forwardRef(
|
|
295
|
-
(e, o) => {
|
|
296
|
-
const { __scopeMenubar: r, ...a } = e, n = l(r);
|
|
297
|
-
return /* @__PURE__ */ t(
|
|
298
|
-
ge,
|
|
299
|
-
{
|
|
300
|
-
...n,
|
|
301
|
-
"data-radix-menubar-content": "",
|
|
302
|
-
...a,
|
|
303
|
-
ref: o,
|
|
304
|
-
style: {
|
|
305
|
-
...e.style,
|
|
306
|
-
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
307
|
-
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
308
|
-
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
309
|
-
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
310
|
-
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
);
|
|
316
|
-
ee.displayName = Be;
|
|
317
|
-
function Ue(e, o) {
|
|
318
|
-
return e.map((r, a) => e[(o + a) % e.length]);
|
|
319
|
-
}
|
|
320
|
-
var er = K, rr = L, ar = B, or = U, nr = V, tr = H, ur = $, sr = j, ir = z, cr = W, pr = X, lr = Y, dr = q, br = Q, mr = Z, fr = ee;
|
|
321
|
-
export {
|
|
322
|
-
ir as CheckboxItem,
|
|
323
|
-
nr as Content,
|
|
324
|
-
tr as Group,
|
|
325
|
-
sr as Item,
|
|
326
|
-
lr as ItemIndicator,
|
|
327
|
-
ur as Label,
|
|
328
|
-
rr as Menu,
|
|
329
|
-
K as Menubar,
|
|
330
|
-
Fe as MenubarArrow,
|
|
331
|
-
z as MenubarCheckboxItem,
|
|
332
|
-
V as MenubarContent,
|
|
333
|
-
H as MenubarGroup,
|
|
334
|
-
j as MenubarItem,
|
|
335
|
-
Y as MenubarItemIndicator,
|
|
336
|
-
$ as MenubarLabel,
|
|
337
|
-
L as MenubarMenu,
|
|
338
|
-
U as MenubarPortal,
|
|
339
|
-
W as MenubarRadioGroup,
|
|
340
|
-
X as MenubarRadioItem,
|
|
341
|
-
q as MenubarSeparator,
|
|
342
|
-
Q as MenubarSub,
|
|
343
|
-
ee as MenubarSubContent,
|
|
344
|
-
Z as MenubarSubTrigger,
|
|
345
|
-
B as MenubarTrigger,
|
|
346
|
-
or as Portal,
|
|
347
|
-
cr as RadioGroup,
|
|
348
|
-
pr as RadioItem,
|
|
349
|
-
er as Root,
|
|
350
|
-
dr as Separator,
|
|
351
|
-
br as Sub,
|
|
352
|
-
fr as SubContent,
|
|
353
|
-
mr as SubTrigger,
|
|
354
|
-
ar as Trigger
|
|
355
|
-
};
|