@ark-ui/solid 5.15.0 → 5.15.2
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/README.md +1 -0
- package/dist/chunk/{QTPO6CAG.jsx → 4L4266PL.jsx} +10 -10
- package/dist/chunk/{LHJM3X56.jsx → 4T2T3PMU.jsx} +7 -7
- package/dist/chunk/6ATAHZBX.js +193 -0
- package/dist/chunk/{QZL7A4I6.jsx → 6XAZQVOY.jsx} +10 -10
- package/dist/chunk/{WYNHVCCC.jsx → 7FASJWDK.jsx} +6 -6
- package/dist/chunk/{4JKVIHU2.jsx → 7OXBQSIZ.jsx} +10 -10
- package/dist/chunk/{UBCF5HI7.jsx → 7RYPC5LL.jsx} +6 -6
- package/dist/chunk/{NUPYPPGN.jsx → 7UNWOGPT.jsx} +7 -7
- package/dist/chunk/{5UVX33V2.jsx → CINP4S7J.jsx} +6 -6
- package/dist/chunk/{IFVMP7PM.jsx → DLZTFD37.jsx} +10 -10
- package/dist/chunk/{PNYN26W7.jsx → FG427CLW.jsx} +6 -6
- package/dist/chunk/{P5ZRUIVB.jsx → FOIEK72O.jsx} +6 -6
- package/dist/chunk/{6Q4ZZUWZ.jsx → GKS4JQZJ.jsx} +4 -4
- package/dist/chunk/{OIG52XTL.jsx → GLN6WFQR.jsx} +3 -3
- package/dist/chunk/{7JA2F6LW.jsx → H4MJ4254.jsx} +7 -7
- package/dist/chunk/{O2Q7MOG6.jsx → HQOIDGRU.jsx} +2 -2
- package/dist/chunk/I7VQFKYT.jsx +172 -0
- package/dist/chunk/{2Z37DOO5.jsx → IDNDLSEV.jsx} +7 -7
- package/dist/chunk/{5FW3VV3B.jsx → JK6QXH6B.jsx} +6 -6
- package/dist/chunk/{5OA4XEHW.jsx → JKM73NGJ.jsx} +6 -6
- package/dist/chunk/{FS6GEMRM.jsx → JY6PMVAK.jsx} +4 -4
- package/dist/chunk/{7AMCFBJH.jsx → KJ353BY6.jsx} +7 -7
- package/dist/chunk/{SXZY4NGI.jsx → KNVMVQG6.jsx} +7 -7
- package/dist/chunk/L5XYJCAK.jsx +264 -0
- package/dist/chunk/{A6XGGK7D.jsx → MJTOTU2A.jsx} +6 -6
- package/dist/chunk/{FKI6A35L.jsx → N3W3K2ZD.jsx} +7 -7
- package/dist/chunk/{VSLHNUS2.jsx → OM7DNJ6L.jsx} +7 -7
- package/dist/chunk/{TTZNIVIU.jsx → OM7V7VVC.jsx} +7 -7
- package/dist/chunk/P5BHXVYK.js +126 -0
- package/dist/chunk/{B4ZXV6YG.jsx → PRA2XFQE.jsx} +6 -6
- package/dist/chunk/{J4VOAZA3.jsx → QXYWHKF7.jsx} +6 -6
- package/dist/chunk/{ZF7UP5R3.jsx → RULCXX3A.jsx} +4 -4
- package/dist/chunk/TBR4XVH2.js +172 -0
- package/dist/chunk/{ZMXVBUJS.jsx → TTIVTOWQ.jsx} +1 -1
- package/dist/chunk/{N4LRXFJX.jsx → U7QDCJXT.jsx} +10 -10
- package/dist/chunk/{3HYU2MCP.jsx → V2GDFVDR.jsx} +1 -1
- package/dist/chunk/{7BS7ZITV.jsx → V6S3C3U7.jsx} +7 -7
- package/dist/chunk/{TILCNQZF.jsx → V75EMOIC.jsx} +7 -7
- package/dist/chunk/{Q3QMDHRY.jsx → VR5BNKL7.jsx} +7 -7
- package/dist/chunk/{WKKFHYOJ.jsx → VXQNQSLM.jsx} +10 -10
- package/dist/chunk/{YIQG5BP3.jsx → WBLWV2L4.jsx} +7 -7
- package/dist/chunk/{LY6KT2RR.jsx → X5GWQYGE.jsx} +6 -6
- package/dist/chunk/{44EPTWQE.jsx → XENPQFEN.jsx} +7 -7
- package/dist/chunk/{JWPRFVT7.jsx → XSGHIZ6Q.jsx} +6 -6
- package/dist/chunk/{7EHWC54T.jsx → Y2LC36B4.jsx} +7 -7
- package/dist/chunk/{2JINNNT3.jsx → YJX4W6VT.jsx} +7 -7
- package/dist/chunk/{CFW2CEDK.jsx → YM35RFYG.jsx} +7 -7
- package/dist/chunk/{XOVDOF3R.jsx → Z2BXVXSV.jsx} +6 -6
- package/dist/chunk/ZHLQWQXX.jsx +253 -0
- package/dist/components/accordion/index.jsx +5 -5
- package/dist/components/angle-slider/index.jsx +4 -4
- package/dist/components/avatar/index.jsx +4 -4
- package/dist/components/carousel/index.jsx +4 -4
- package/dist/components/checkbox/index.jsx +6 -6
- package/dist/components/clipboard/index.jsx +4 -4
- package/dist/components/collapsible/index.jsx +4 -4
- package/dist/components/color-picker/index.jsx +8 -8
- package/dist/components/combobox/index.jsx +9 -9
- package/dist/components/date-picker/index.jsx +6 -6
- package/dist/components/dialog/index.jsx +6 -6
- package/dist/components/download-trigger/index.jsx +4 -4
- package/dist/components/editable/index.jsx +6 -6
- package/dist/components/field/index.jsx +5 -5
- package/dist/components/fieldset/index.jsx +4 -4
- package/dist/components/file-upload/index.jsx +6 -6
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +6 -7
- package/dist/components/format/index.jsx +2 -2
- package/dist/components/frame/index.jsx +3 -3
- package/dist/components/hover-card/index.jsx +6 -6
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +25 -25
- package/dist/components/index.jsx +465 -464
- package/dist/components/listbox/index.d.ts +11 -6
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/index.jsx +6 -5
- package/dist/components/menu/index.jsx +6 -6
- package/dist/components/number-input/index.jsx +6 -6
- package/dist/components/pagination/index.jsx +4 -4
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/index.jsx +6 -7
- package/dist/components/pin-input/index.jsx +6 -6
- package/dist/components/popover/index.jsx +6 -6
- package/dist/components/presence/index.jsx +3 -3
- package/dist/components/progress/index.jsx +4 -4
- package/dist/components/qr-code/index.jsx +4 -4
- package/dist/components/radio-group/index.jsx +4 -4
- package/dist/components/rating-group/index.jsx +6 -6
- package/dist/components/segment-group/index.jsx +4 -4
- package/dist/components/select/index.jsx +9 -9
- package/dist/components/signature-pad/index.jsx +6 -6
- package/dist/components/slider/index.jsx +4 -4
- package/dist/components/splitter/index.jsx +4 -4
- package/dist/components/steps/index.jsx +4 -4
- package/dist/components/switch/index.jsx +6 -6
- package/dist/components/tabs/index.jsx +6 -6
- package/dist/components/tags-input/index.jsx +6 -6
- package/dist/components/time-picker/index.jsx +6 -6
- package/dist/components/timer/index.jsx +4 -4
- package/dist/components/toast/index.jsx +4 -4
- package/dist/components/toggle-group/index.jsx +4 -4
- package/dist/components/tooltip/index.jsx +6 -6
- package/dist/components/tour/index.jsx +6 -6
- package/dist/components/tree-view/index.jsx +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -25
- package/dist/index.jsx +443 -442
- package/dist/providers/environment/index.jsx +2 -2
- package/dist/providers/index.jsx +5 -5
- package/package.json +58 -53
- package/dist/chunk/6IL4FKPO.jsx +0 -1818
- package/dist/chunk/ETB2BIQZ.jsx +0 -30
- package/dist/chunk/I3E4ZWU3.js +0 -1065
- package/dist/chunk/OO4YLIXE.js +0 -352
- package/dist/chunk/PKUUD527.js +0 -25
- package/dist/chunk/VWQOTIDH.jsx +0 -1137
- package/dist/chunk/XWFAYRYW.jsx +0 -400
- package/dist/chunk/YGAFIEFX.js +0 -1706
- package/dist/chunk/{6J5H27AQ.jsx → E2L62MKC.jsx} +3 -3
- package/dist/chunk/{T67EMHNB.jsx → WC2HBDLJ.jsx} +6 -6
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useFieldContext
|
|
3
|
+
} from "./HQOIDGRU.jsx";
|
|
4
|
+
import {
|
|
5
|
+
createSplitProps
|
|
6
|
+
} from "./6WEDGJKQ.jsx";
|
|
7
|
+
import {
|
|
8
|
+
ark
|
|
9
|
+
} from "./UFYZ7HLU.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useLocaleContext
|
|
12
|
+
} from "./YUC6JE7K.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./E2L62MKC.jsx";
|
|
16
|
+
import {
|
|
17
|
+
createContext
|
|
18
|
+
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
22
|
+
import {
|
|
23
|
+
__export
|
|
24
|
+
} from "./7IUG3E2V.jsx";
|
|
25
|
+
|
|
26
|
+
// src/components/password-input/use-password-input-context.ts
|
|
27
|
+
var [PasswordInputProvider, usePasswordInputContext] = createContext({
|
|
28
|
+
hookName: "usePasswordInputContext",
|
|
29
|
+
providerName: "<PasswordInputProvider />"
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// src/components/password-input/password-input-context.tsx
|
|
33
|
+
var PasswordInputContext = (props) => props.children(usePasswordInputContext());
|
|
34
|
+
|
|
35
|
+
// src/components/password-input/password-input-control.tsx
|
|
36
|
+
import { mergeProps } from "@zag-js/solid";
|
|
37
|
+
var PasswordInputControl = (props) => {
|
|
38
|
+
const passwordInput2 = usePasswordInputContext();
|
|
39
|
+
const mergedProps = mergeProps(() => passwordInput2().getControlProps(), props);
|
|
40
|
+
return <ark.div {...mergedProps} />;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// src/components/password-input/password-input-indicator.tsx
|
|
44
|
+
import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
45
|
+
import { Show } from "solid-js";
|
|
46
|
+
var PasswordInputIndicator = (props) => {
|
|
47
|
+
const passwordInput2 = usePasswordInputContext();
|
|
48
|
+
const mergedProps = mergeProps2(() => passwordInput2().getIndicatorProps(), props);
|
|
49
|
+
return <ark.span {...mergedProps}>
|
|
50
|
+
<Show when={passwordInput2().visible} fallback={props.fallback}>
|
|
51
|
+
{props.children}
|
|
52
|
+
</Show>
|
|
53
|
+
</ark.span>;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// src/components/password-input/password-input-input.tsx
|
|
57
|
+
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
58
|
+
var PasswordInputInput = (props) => {
|
|
59
|
+
const passwordInput2 = usePasswordInputContext();
|
|
60
|
+
const mergedProps = mergeProps3(() => passwordInput2().getInputProps(), props);
|
|
61
|
+
const field = useFieldContext();
|
|
62
|
+
return <ark.input aria-describedby={field?.().ariaDescribedby} {...mergedProps} />;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// src/components/password-input/password-input-label.tsx
|
|
66
|
+
import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
67
|
+
var PasswordInputLabel = (props) => {
|
|
68
|
+
const passwordInput2 = usePasswordInputContext();
|
|
69
|
+
const mergedProps = mergeProps4(() => passwordInput2().getLabelProps(), props);
|
|
70
|
+
return <ark.label {...mergedProps} />;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// src/components/password-input/password-input-root.tsx
|
|
74
|
+
import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
75
|
+
|
|
76
|
+
// src/components/password-input/use-password-input.ts
|
|
77
|
+
import * as passwordInput from "@zag-js/password-input";
|
|
78
|
+
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
79
|
+
import { createMemo, createUniqueId } from "solid-js";
|
|
80
|
+
var usePasswordInput = (props) => {
|
|
81
|
+
const id = createUniqueId();
|
|
82
|
+
const locale = useLocaleContext();
|
|
83
|
+
const environment = useEnvironmentContext();
|
|
84
|
+
const field = useFieldContext();
|
|
85
|
+
const machineProps = createMemo(() => ({
|
|
86
|
+
id,
|
|
87
|
+
ids: {
|
|
88
|
+
input: field?.().ids.control
|
|
89
|
+
},
|
|
90
|
+
disabled: field?.().disabled,
|
|
91
|
+
readOnly: field?.().readOnly,
|
|
92
|
+
required: field?.().required,
|
|
93
|
+
invalid: field?.().invalid,
|
|
94
|
+
dir: locale().dir,
|
|
95
|
+
getRootNode: environment().getRootNode,
|
|
96
|
+
...runIfFn(props)
|
|
97
|
+
}));
|
|
98
|
+
const service = useMachine(passwordInput.machine, machineProps);
|
|
99
|
+
return createMemo(() => passwordInput.connect(service, normalizeProps));
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// src/components/password-input/password-input-root.tsx
|
|
103
|
+
var PasswordInputRoot = (props) => {
|
|
104
|
+
const [usePasswordInputProps, localProps] = createSplitProps()(props, [
|
|
105
|
+
"autoComplete",
|
|
106
|
+
"defaultVisible",
|
|
107
|
+
"disabled",
|
|
108
|
+
"id",
|
|
109
|
+
"ids",
|
|
110
|
+
"ignorePasswordManagers",
|
|
111
|
+
"invalid",
|
|
112
|
+
"name",
|
|
113
|
+
"onVisibilityChange",
|
|
114
|
+
"readOnly",
|
|
115
|
+
"required",
|
|
116
|
+
"translations",
|
|
117
|
+
"visible"
|
|
118
|
+
]);
|
|
119
|
+
const passwordInput2 = usePasswordInput(usePasswordInputProps);
|
|
120
|
+
const mergedProps = mergeProps5(() => passwordInput2().getRootProps(), localProps);
|
|
121
|
+
return <PasswordInputProvider value={passwordInput2}>
|
|
122
|
+
<ark.div {...mergedProps} />
|
|
123
|
+
</PasswordInputProvider>;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// src/components/password-input/password-input-root-provider.tsx
|
|
127
|
+
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
128
|
+
var PasswordInputRootProvider = (props) => {
|
|
129
|
+
const mergedProps = mergeProps6(() => props.value().getRootProps(), props);
|
|
130
|
+
return <PasswordInputProvider value={props.value}>
|
|
131
|
+
<ark.div {...mergedProps} />
|
|
132
|
+
</PasswordInputProvider>;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// src/components/password-input/password-input-visibility-trigger.tsx
|
|
136
|
+
import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
137
|
+
var PasswordInputVisibilityTrigger = (props) => {
|
|
138
|
+
const passwordInput2 = usePasswordInputContext();
|
|
139
|
+
const mergedProps = mergeProps7(() => passwordInput2().getVisibilityTriggerProps(), props);
|
|
140
|
+
return <ark.button {...mergedProps} />;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
// src/components/password-input/password-input.anatomy.ts
|
|
144
|
+
import { anatomy } from "@zag-js/password-input";
|
|
145
|
+
|
|
146
|
+
// src/components/password-input/password-input.ts
|
|
147
|
+
var password_input_exports = {};
|
|
148
|
+
__export(password_input_exports, {
|
|
149
|
+
Context: () => PasswordInputContext,
|
|
150
|
+
Control: () => PasswordInputControl,
|
|
151
|
+
Indicator: () => PasswordInputIndicator,
|
|
152
|
+
Input: () => PasswordInputInput,
|
|
153
|
+
Label: () => PasswordInputLabel,
|
|
154
|
+
Root: () => PasswordInputRoot,
|
|
155
|
+
RootProvider: () => PasswordInputRootProvider,
|
|
156
|
+
VisibilityTrigger: () => PasswordInputVisibilityTrigger
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export {
|
|
160
|
+
usePasswordInputContext,
|
|
161
|
+
PasswordInputContext,
|
|
162
|
+
PasswordInputControl,
|
|
163
|
+
PasswordInputIndicator,
|
|
164
|
+
PasswordInputInput,
|
|
165
|
+
PasswordInputLabel,
|
|
166
|
+
usePasswordInput,
|
|
167
|
+
PasswordInputRoot,
|
|
168
|
+
PasswordInputRootProvider,
|
|
169
|
+
PasswordInputVisibilityTrigger,
|
|
170
|
+
anatomy,
|
|
171
|
+
password_input_exports
|
|
172
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collapsible_exports,
|
|
3
3
|
useCollapsibleContext
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./Z2BXVXSV.jsx";
|
|
5
5
|
import {
|
|
6
6
|
RenderStrategyProvider,
|
|
7
7
|
splitRenderStrategyProps,
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
ark
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useEnvironmentContext
|
|
18
|
-
} from "./6J5H27AQ.jsx";
|
|
19
|
-
import {
|
|
20
|
-
runIfFn
|
|
21
|
-
} from "./KGOB2IMX.jsx";
|
|
22
16
|
import {
|
|
23
17
|
useLocaleContext
|
|
24
18
|
} from "./YUC6JE7K.jsx";
|
|
19
|
+
import {
|
|
20
|
+
useEnvironmentContext
|
|
21
|
+
} from "./E2L62MKC.jsx";
|
|
25
22
|
import {
|
|
26
23
|
createContext
|
|
27
24
|
} from "./TVCIHLER.jsx";
|
|
25
|
+
import {
|
|
26
|
+
runIfFn
|
|
27
|
+
} from "./KGOB2IMX.jsx";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./7IUG3E2V.jsx";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./6J5H27AQ.jsx";
|
|
10
|
-
import {
|
|
11
|
-
runIfFn
|
|
12
|
-
} from "./KGOB2IMX.jsx";
|
|
13
7
|
import {
|
|
14
8
|
useLocaleContext
|
|
15
9
|
} from "./YUC6JE7K.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./E2L62MKC.jsx";
|
|
16
13
|
import {
|
|
17
14
|
createContext
|
|
18
15
|
} from "./TVCIHLER.jsx";
|
|
16
|
+
import {
|
|
17
|
+
runIfFn
|
|
18
|
+
} from "./KGOB2IMX.jsx";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./6J5H27AQ.jsx";
|
|
10
|
-
import {
|
|
11
|
-
runIfFn
|
|
12
|
-
} from "./KGOB2IMX.jsx";
|
|
13
7
|
import {
|
|
14
8
|
useLocaleContext
|
|
15
9
|
} from "./YUC6JE7K.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./E2L62MKC.jsx";
|
|
16
13
|
import {
|
|
17
14
|
createContext
|
|
18
15
|
} from "./TVCIHLER.jsx";
|
|
16
|
+
import {
|
|
17
|
+
runIfFn
|
|
18
|
+
} from "./KGOB2IMX.jsx";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useEnvironmentContext
|
|
9
|
-
} from "./
|
|
10
|
-
import {
|
|
11
|
-
runIfFn
|
|
12
|
-
} from "./KGOB2IMX.jsx";
|
|
9
|
+
} from "./E2L62MKC.jsx";
|
|
13
10
|
import {
|
|
14
11
|
createContext
|
|
15
12
|
} from "./TVCIHLER.jsx";
|
|
13
|
+
import {
|
|
14
|
+
runIfFn
|
|
15
|
+
} from "./KGOB2IMX.jsx";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./7IUG3E2V.jsx";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./HQOIDGRU.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
ark
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./6J5H27AQ.jsx";
|
|
13
|
-
import {
|
|
14
|
-
runIfFn
|
|
15
|
-
} from "./KGOB2IMX.jsx";
|
|
16
10
|
import {
|
|
17
11
|
useLocaleContext
|
|
18
12
|
} from "./YUC6JE7K.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./E2L62MKC.jsx";
|
|
19
16
|
import {
|
|
20
17
|
createContext
|
|
21
18
|
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./HQOIDGRU.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
ark
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./6J5H27AQ.jsx";
|
|
13
|
-
import {
|
|
14
|
-
runIfFn
|
|
15
|
-
} from "./KGOB2IMX.jsx";
|
|
16
10
|
import {
|
|
17
11
|
useLocaleContext
|
|
18
12
|
} from "./YUC6JE7K.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./E2L62MKC.jsx";
|
|
19
16
|
import {
|
|
20
17
|
createContext
|
|
21
18
|
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PresenceProvider,
|
|
3
|
+
splitPresenceProps,
|
|
4
|
+
usePresence,
|
|
5
|
+
usePresenceContext
|
|
6
|
+
} from "./WC2HBDLJ.jsx";
|
|
7
|
+
import {
|
|
8
|
+
createSplitProps
|
|
9
|
+
} from "./6WEDGJKQ.jsx";
|
|
10
|
+
import {
|
|
11
|
+
ark
|
|
12
|
+
} from "./UFYZ7HLU.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useLocaleContext
|
|
15
|
+
} from "./YUC6JE7K.jsx";
|
|
16
|
+
import {
|
|
17
|
+
useEnvironmentContext
|
|
18
|
+
} from "./E2L62MKC.jsx";
|
|
19
|
+
import {
|
|
20
|
+
createContext
|
|
21
|
+
} from "./TVCIHLER.jsx";
|
|
22
|
+
import {
|
|
23
|
+
runIfFn
|
|
24
|
+
} from "./KGOB2IMX.jsx";
|
|
25
|
+
import {
|
|
26
|
+
__export
|
|
27
|
+
} from "./7IUG3E2V.jsx";
|
|
28
|
+
|
|
29
|
+
// src/components/floating-panel/floating-panel-body.tsx
|
|
30
|
+
import { mergeProps } from "@zag-js/solid";
|
|
31
|
+
|
|
32
|
+
// src/components/floating-panel/use-floating-panel-context.ts
|
|
33
|
+
var [FloatingPanelProvider, useFloatingPanelContext] = createContext({
|
|
34
|
+
hookName: "useFloatingPanelContext",
|
|
35
|
+
providerName: "<FloatingPanelProvider />"
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// src/components/floating-panel/floating-panel-body.tsx
|
|
39
|
+
var FloatingPanelBody = (props) => {
|
|
40
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
41
|
+
const mergedProps = mergeProps(() => floatingPanel2().getBodyProps(), props);
|
|
42
|
+
return <ark.div {...mergedProps} />;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// src/components/floating-panel/floating-panel-close-trigger.tsx
|
|
46
|
+
import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
47
|
+
var FloatingPanelCloseTrigger = (props) => {
|
|
48
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
49
|
+
const mergedProps = mergeProps2(() => floatingPanel2().getCloseTriggerProps(), props);
|
|
50
|
+
return <ark.button {...mergedProps} />;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// src/components/floating-panel/floating-panel-content.tsx
|
|
54
|
+
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
55
|
+
var FloatingPanelContent = (props) => {
|
|
56
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
57
|
+
const presence = usePresenceContext();
|
|
58
|
+
const mergedProps = mergeProps3(
|
|
59
|
+
() => floatingPanel2().getContentProps(),
|
|
60
|
+
() => presence().presenceProps,
|
|
61
|
+
props
|
|
62
|
+
);
|
|
63
|
+
if (presence().unmounted) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return <ark.div {...mergedProps} />;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/components/floating-panel/floating-panel-context.tsx
|
|
70
|
+
var FloatingPanelContext = (props) => props.children(useFloatingPanelContext());
|
|
71
|
+
|
|
72
|
+
// src/components/floating-panel/floating-panel-drag-trigger.tsx
|
|
73
|
+
import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
74
|
+
var FloatingPanelDragTrigger = (props) => {
|
|
75
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
76
|
+
const mergedProps = mergeProps4(() => floatingPanel2().getDragTriggerProps(), props);
|
|
77
|
+
return <ark.div {...mergedProps} />;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// src/components/floating-panel/floating-panel-header.tsx
|
|
81
|
+
import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
82
|
+
var FloatingPanelHeader = (props) => {
|
|
83
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
84
|
+
const mergedProps = mergeProps5(() => floatingPanel2().getHeaderProps(), props);
|
|
85
|
+
return <ark.div {...mergedProps} />;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/components/floating-panel/floating-panel-positioner.tsx
|
|
89
|
+
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
90
|
+
var FloatingPanelPositioner = (props) => {
|
|
91
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
92
|
+
const mergedProps = mergeProps6(() => floatingPanel2().getPositionerProps(), props);
|
|
93
|
+
const presence = usePresenceContext();
|
|
94
|
+
if (presence().unmounted) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
return <ark.div {...mergedProps} />;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// src/components/floating-panel/floating-panel-resize-trigger.tsx
|
|
101
|
+
import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
102
|
+
var FloatingPanelResizeTrigger = (props) => {
|
|
103
|
+
const [resizeProps, localProps] = createSplitProps()(props, ["axis"]);
|
|
104
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
105
|
+
const mergedProps = mergeProps7(() => floatingPanel2().getResizeTriggerProps(resizeProps), localProps);
|
|
106
|
+
return <ark.div {...mergedProps} />;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// src/components/floating-panel/floating-panel-stage-trigger.tsx
|
|
110
|
+
import { mergeProps as mergeProps8 } from "@zag-js/solid";
|
|
111
|
+
var FloatingPanelStageTrigger = (props) => {
|
|
112
|
+
const [stage, localProps] = createSplitProps()(props, ["stage"]);
|
|
113
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
114
|
+
const mergedProps = mergeProps8(() => floatingPanel2().getStageTriggerProps(stage), localProps);
|
|
115
|
+
return <ark.button {...mergedProps} />;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
// src/components/floating-panel/floating-panel-root.tsx
|
|
119
|
+
import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
120
|
+
|
|
121
|
+
// src/components/floating-panel/use-floating-panel.ts
|
|
122
|
+
import * as floatingPanel from "@zag-js/floating-panel";
|
|
123
|
+
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
124
|
+
import { createMemo, createUniqueId } from "solid-js";
|
|
125
|
+
var useFloatingPanel = (props = {}) => {
|
|
126
|
+
const env = useEnvironmentContext();
|
|
127
|
+
const locale = useLocaleContext();
|
|
128
|
+
const id = createUniqueId();
|
|
129
|
+
const machineProps = createMemo(() => ({
|
|
130
|
+
id,
|
|
131
|
+
dir: locale().dir,
|
|
132
|
+
getRootNode: env().getRootNode,
|
|
133
|
+
...runIfFn(props)
|
|
134
|
+
}));
|
|
135
|
+
const service = useMachine(floatingPanel.machine, machineProps);
|
|
136
|
+
return createMemo(() => floatingPanel.connect(service, normalizeProps));
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// src/components/floating-panel/floating-panel-root.tsx
|
|
140
|
+
var FloatingPanelRoot = (props) => {
|
|
141
|
+
const [presenceProps, otherProps] = splitPresenceProps(props);
|
|
142
|
+
const [useFloatingPanelProps, localProps] = createSplitProps()(otherProps, [
|
|
143
|
+
"allowOverflow",
|
|
144
|
+
"closeOnEscape",
|
|
145
|
+
"defaultOpen",
|
|
146
|
+
"defaultPosition",
|
|
147
|
+
"defaultSize",
|
|
148
|
+
"dir",
|
|
149
|
+
"disabled",
|
|
150
|
+
"draggable",
|
|
151
|
+
"getAnchorPosition",
|
|
152
|
+
"getBoundaryEl",
|
|
153
|
+
"gridSize",
|
|
154
|
+
"id",
|
|
155
|
+
"ids",
|
|
156
|
+
"lockAspectRatio",
|
|
157
|
+
"maxSize",
|
|
158
|
+
"minSize",
|
|
159
|
+
"onOpenChange",
|
|
160
|
+
"onPositionChange",
|
|
161
|
+
"onPositionChangeEnd",
|
|
162
|
+
"onSizeChange",
|
|
163
|
+
"onSizeChangeEnd",
|
|
164
|
+
"onStageChange",
|
|
165
|
+
"open",
|
|
166
|
+
"persistRect",
|
|
167
|
+
"position",
|
|
168
|
+
"resizable",
|
|
169
|
+
"size",
|
|
170
|
+
"strategy",
|
|
171
|
+
"translations"
|
|
172
|
+
]);
|
|
173
|
+
const floatingPanel2 = useFloatingPanel(useFloatingPanelProps);
|
|
174
|
+
const usePresenceProps = mergeProps9(() => ({ present: floatingPanel2().open }), presenceProps);
|
|
175
|
+
const presence = usePresence(usePresenceProps);
|
|
176
|
+
return <FloatingPanelProvider value={floatingPanel2}>
|
|
177
|
+
<PresenceProvider value={presence}>{localProps.children}</PresenceProvider>
|
|
178
|
+
</FloatingPanelProvider>;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
// src/components/floating-panel/floating-panel-root-provider.tsx
|
|
182
|
+
import { mergeProps as mergeProps10 } from "@zag-js/solid";
|
|
183
|
+
var FloatingPanelRootProvider = (props) => {
|
|
184
|
+
const [presenceProps, baseProps] = splitPresenceProps(props);
|
|
185
|
+
const [rootProps, localProps] = createSplitProps()(baseProps, ["value"]);
|
|
186
|
+
const presence = usePresence(mergeProps10(() => ({ present: rootProps.value().open }), presenceProps));
|
|
187
|
+
return <FloatingPanelProvider value={rootProps.value}>
|
|
188
|
+
<PresenceProvider value={presence}>{localProps.children}</PresenceProvider>
|
|
189
|
+
</FloatingPanelProvider>;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
// src/components/floating-panel/floating-panel-title.tsx
|
|
193
|
+
import { mergeProps as mergeProps11 } from "@zag-js/solid";
|
|
194
|
+
var FloatingPanelTitle = (props) => {
|
|
195
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
196
|
+
const mergedProps = mergeProps11(() => floatingPanel2().getTitleProps(), props);
|
|
197
|
+
return <ark.h2 {...mergedProps} />;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
// src/components/floating-panel/floating-panel-trigger.tsx
|
|
201
|
+
import { mergeProps as mergeProps12 } from "@zag-js/solid";
|
|
202
|
+
var FloatingPanelTrigger = (props) => {
|
|
203
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
204
|
+
const presence = usePresenceContext();
|
|
205
|
+
const mergedProps = mergeProps12(() => {
|
|
206
|
+
const triggerProps = floatingPanel2().getTriggerProps();
|
|
207
|
+
return {
|
|
208
|
+
...triggerProps,
|
|
209
|
+
"aria-controls": presence().unmounted ? void 0 : triggerProps["aria-controls"]
|
|
210
|
+
};
|
|
211
|
+
}, props);
|
|
212
|
+
return <ark.button {...mergedProps} />;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// src/components/floating-panel/floating-panel-control.tsx
|
|
216
|
+
import { mergeProps as mergeProps13 } from "@zag-js/solid";
|
|
217
|
+
var FloatingPanelControl = (props) => {
|
|
218
|
+
const floatingPanel2 = useFloatingPanelContext();
|
|
219
|
+
const mergedProps = mergeProps13(() => floatingPanel2().getControlProps(), props);
|
|
220
|
+
return <ark.div {...mergedProps} />;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// src/components/floating-panel/floating-panel.anatomy.ts
|
|
224
|
+
import { anatomy } from "@zag-js/floating-panel";
|
|
225
|
+
|
|
226
|
+
// src/components/floating-panel/floating-panel.ts
|
|
227
|
+
var floating_panel_exports = {};
|
|
228
|
+
__export(floating_panel_exports, {
|
|
229
|
+
Body: () => FloatingPanelBody,
|
|
230
|
+
CloseTrigger: () => FloatingPanelCloseTrigger,
|
|
231
|
+
Content: () => FloatingPanelContent,
|
|
232
|
+
Context: () => FloatingPanelContext,
|
|
233
|
+
Control: () => FloatingPanelControl,
|
|
234
|
+
DragTrigger: () => FloatingPanelDragTrigger,
|
|
235
|
+
Header: () => FloatingPanelHeader,
|
|
236
|
+
Positioner: () => FloatingPanelPositioner,
|
|
237
|
+
ResizeTrigger: () => FloatingPanelResizeTrigger,
|
|
238
|
+
Root: () => FloatingPanelRoot,
|
|
239
|
+
RootProvider: () => FloatingPanelRootProvider,
|
|
240
|
+
StageTrigger: () => FloatingPanelStageTrigger,
|
|
241
|
+
Title: () => FloatingPanelTitle,
|
|
242
|
+
Trigger: () => FloatingPanelTrigger
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
export {
|
|
246
|
+
useFloatingPanelContext,
|
|
247
|
+
FloatingPanelBody,
|
|
248
|
+
FloatingPanelCloseTrigger,
|
|
249
|
+
FloatingPanelContent,
|
|
250
|
+
FloatingPanelContext,
|
|
251
|
+
FloatingPanelDragTrigger,
|
|
252
|
+
FloatingPanelHeader,
|
|
253
|
+
FloatingPanelPositioner,
|
|
254
|
+
FloatingPanelResizeTrigger,
|
|
255
|
+
FloatingPanelStageTrigger,
|
|
256
|
+
useFloatingPanel,
|
|
257
|
+
FloatingPanelRoot,
|
|
258
|
+
FloatingPanelRootProvider,
|
|
259
|
+
FloatingPanelTitle,
|
|
260
|
+
FloatingPanelTrigger,
|
|
261
|
+
FloatingPanelControl,
|
|
262
|
+
anatomy,
|
|
263
|
+
floating_panel_exports
|
|
264
|
+
};
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./6J5H27AQ.jsx";
|
|
10
|
-
import {
|
|
11
|
-
runIfFn
|
|
12
|
-
} from "./KGOB2IMX.jsx";
|
|
13
7
|
import {
|
|
14
8
|
useLocaleContext
|
|
15
9
|
} from "./YUC6JE7K.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./E2L62MKC.jsx";
|
|
16
13
|
import {
|
|
17
14
|
createContext
|
|
18
15
|
} from "./TVCIHLER.jsx";
|
|
16
|
+
import {
|
|
17
|
+
runIfFn
|
|
18
|
+
} from "./KGOB2IMX.jsx";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./WC2HBDLJ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
composeRefs
|
|
9
9
|
} from "./DOBZPYAN.jsx";
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
ark
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useEnvironmentContext
|
|
18
|
-
} from "./6J5H27AQ.jsx";
|
|
19
|
-
import {
|
|
20
|
-
runIfFn
|
|
21
|
-
} from "./KGOB2IMX.jsx";
|
|
22
16
|
import {
|
|
23
17
|
useLocaleContext
|
|
24
18
|
} from "./YUC6JE7K.jsx";
|
|
19
|
+
import {
|
|
20
|
+
useEnvironmentContext
|
|
21
|
+
} from "./E2L62MKC.jsx";
|
|
25
22
|
import {
|
|
26
23
|
createContext
|
|
27
24
|
} from "./TVCIHLER.jsx";
|
|
25
|
+
import {
|
|
26
|
+
runIfFn
|
|
27
|
+
} from "./KGOB2IMX.jsx";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./7IUG3E2V.jsx";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./HQOIDGRU.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
ark
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./6J5H27AQ.jsx";
|
|
13
|
-
import {
|
|
14
|
-
runIfFn
|
|
15
|
-
} from "./KGOB2IMX.jsx";
|
|
16
10
|
import {
|
|
17
11
|
useLocaleContext
|
|
18
12
|
} from "./YUC6JE7K.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./E2L62MKC.jsx";
|
|
19
16
|
import {
|
|
20
17
|
createContext
|
|
21
18
|
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./7IUG3E2V.jsx";
|