@epilot/volt-ui 1.1.7-alpha.1 → 1.1.8
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 -1
- package/dist/index.cjs.js +51 -0
- package/dist/index.es.js +11843 -137
- package/dist/preflight.css +1 -241
- package/dist/style.css +1 -7393
- package/package.json +4 -1
- package/dist/components/button/index.d.ts +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/index.es10.js +0 -35
- package/dist/index.es10.js.map +0 -1
- package/dist/index.es100.js +0 -14
- package/dist/index.es100.js.map +0 -1
- package/dist/index.es101.js +0 -20
- package/dist/index.es101.js.map +0 -1
- package/dist/index.es102.js +0 -103
- package/dist/index.es102.js.map +0 -1
- package/dist/index.es103.js +0 -12
- package/dist/index.es103.js.map +0 -1
- package/dist/index.es104.js +0 -30
- package/dist/index.es104.js.map +0 -1
- package/dist/index.es105.js +0 -38
- package/dist/index.es105.js.map +0 -1
- package/dist/index.es106.js +0 -17
- package/dist/index.es106.js.map +0 -1
- package/dist/index.es107.js +0 -49
- package/dist/index.es107.js.map +0 -1
- package/dist/index.es108.js +0 -10
- package/dist/index.es108.js.map +0 -1
- package/dist/index.es11.js +0 -318
- package/dist/index.es11.js.map +0 -1
- package/dist/index.es12.js +0 -274
- package/dist/index.es12.js.map +0 -1
- package/dist/index.es13.js +0 -38
- package/dist/index.es13.js.map +0 -1
- package/dist/index.es14.js +0 -48
- package/dist/index.es14.js.map +0 -1
- package/dist/index.es15.js +0 -67
- package/dist/index.es15.js.map +0 -1
- package/dist/index.es16.js +0 -120
- package/dist/index.es16.js.map +0 -1
- package/dist/index.es17.js +0 -27
- package/dist/index.es17.js.map +0 -1
- package/dist/index.es18.js +0 -51
- package/dist/index.es18.js.map +0 -1
- package/dist/index.es19.js +0 -168
- package/dist/index.es19.js.map +0 -1
- package/dist/index.es20.js +0 -55
- package/dist/index.es20.js.map +0 -1
- package/dist/index.es21.js +0 -61
- package/dist/index.es21.js.map +0 -1
- package/dist/index.es22.js +0 -86
- package/dist/index.es22.js.map +0 -1
- package/dist/index.es23.js +0 -195
- package/dist/index.es23.js.map +0 -1
- package/dist/index.es24.js +0 -105
- package/dist/index.es24.js.map +0 -1
- package/dist/index.es25.js +0 -146
- package/dist/index.es25.js.map +0 -1
- package/dist/index.es26.js +0 -92
- package/dist/index.es26.js.map +0 -1
- package/dist/index.es27.js +0 -80
- package/dist/index.es27.js.map +0 -1
- package/dist/index.es28.js +0 -94
- package/dist/index.es28.js.map +0 -1
- package/dist/index.es29.js +0 -82
- package/dist/index.es29.js.map +0 -1
- package/dist/index.es30.js +0 -1087
- package/dist/index.es30.js.map +0 -1
- package/dist/index.es31.js +0 -18
- package/dist/index.es31.js.map +0 -1
- package/dist/index.es32.js +0 -3015
- package/dist/index.es32.js.map +0 -1
- package/dist/index.es33.js +0 -107
- package/dist/index.es33.js.map +0 -1
- package/dist/index.es34.js +0 -46
- package/dist/index.es34.js.map +0 -1
- package/dist/index.es35.js +0 -151
- package/dist/index.es35.js.map +0 -1
- package/dist/index.es36.js +0 -1200
- package/dist/index.es36.js.map +0 -1
- package/dist/index.es37.js +0 -27
- package/dist/index.es37.js.map +0 -1
- package/dist/index.es38.js +0 -493
- package/dist/index.es38.js.map +0 -1
- package/dist/index.es39.js +0 -156
- package/dist/index.es39.js.map +0 -1
- package/dist/index.es4.js +0 -9
- package/dist/index.es4.js.map +0 -1
- package/dist/index.es40.js +0 -31
- package/dist/index.es40.js.map +0 -1
- package/dist/index.es41.js +0 -314
- package/dist/index.es41.js.map +0 -1
- package/dist/index.es42.js +0 -343
- package/dist/index.es42.js.map +0 -1
- package/dist/index.es43.js +0 -280
- package/dist/index.es43.js.map +0 -1
- package/dist/index.es44.js +0 -289
- package/dist/index.es44.js.map +0 -1
- package/dist/index.es45.js +0 -319
- package/dist/index.es45.js.map +0 -1
- package/dist/index.es46.js +0 -167
- package/dist/index.es46.js.map +0 -1
- package/dist/index.es47.js +0 -195
- package/dist/index.es47.js.map +0 -1
- package/dist/index.es48.js +0 -40
- package/dist/index.es48.js.map +0 -1
- package/dist/index.es49.js +0 -40
- package/dist/index.es49.js.map +0 -1
- package/dist/index.es5.js +0 -57
- package/dist/index.es5.js.map +0 -1
- package/dist/index.es50.js +0 -12
- package/dist/index.es50.js.map +0 -1
- package/dist/index.es51.js +0 -82
- package/dist/index.es51.js.map +0 -1
- package/dist/index.es52.js +0 -72
- package/dist/index.es52.js.map +0 -1
- package/dist/index.es53.js +0 -15
- package/dist/index.es53.js.map +0 -1
- package/dist/index.es54.js +0 -40
- package/dist/index.es54.js.map +0 -1
- package/dist/index.es55.js +0 -44
- package/dist/index.es55.js.map +0 -1
- package/dist/index.es56.js +0 -71
- package/dist/index.es56.js.map +0 -1
- package/dist/index.es57.js +0 -152
- package/dist/index.es57.js.map +0 -1
- package/dist/index.es58.js +0 -15
- package/dist/index.es58.js.map +0 -1
- package/dist/index.es59.js +0 -11
- package/dist/index.es59.js.map +0 -1
- package/dist/index.es6.js +0 -77
- package/dist/index.es6.js.map +0 -1
- package/dist/index.es60.js +0 -130
- package/dist/index.es60.js.map +0 -1
- package/dist/index.es61.js +0 -213
- package/dist/index.es61.js.map +0 -1
- package/dist/index.es62.js +0 -294
- package/dist/index.es62.js.map +0 -1
- package/dist/index.es63.js +0 -16
- package/dist/index.es63.js.map +0 -1
- package/dist/index.es64.js +0 -37
- package/dist/index.es64.js.map +0 -1
- package/dist/index.es65.js +0 -228
- package/dist/index.es65.js.map +0 -1
- package/dist/index.es66.js +0 -209
- package/dist/index.es66.js.map +0 -1
- package/dist/index.es67.js +0 -19
- package/dist/index.es67.js.map +0 -1
- package/dist/index.es68.js +0 -30
- package/dist/index.es68.js.map +0 -1
- package/dist/index.es69.js +0 -12
- package/dist/index.es69.js.map +0 -1
- package/dist/index.es7.js +0 -200
- package/dist/index.es7.js.map +0 -1
- package/dist/index.es70.js +0 -123
- package/dist/index.es70.js.map +0 -1
- package/dist/index.es71.js +0 -90
- package/dist/index.es71.js.map +0 -1
- package/dist/index.es72.js +0 -7
- package/dist/index.es72.js.map +0 -1
- package/dist/index.es73.js +0 -90
- package/dist/index.es73.js.map +0 -1
- package/dist/index.es74.js +0 -15
- package/dist/index.es74.js.map +0 -1
- package/dist/index.es75.js +0 -7
- package/dist/index.es75.js.map +0 -1
- package/dist/index.es76.js +0 -40
- package/dist/index.es76.js.map +0 -1
- package/dist/index.es77.js +0 -90
- package/dist/index.es77.js.map +0 -1
- package/dist/index.es78.js +0 -313
- package/dist/index.es78.js.map +0 -1
- package/dist/index.es79.js +0 -16
- package/dist/index.es79.js.map +0 -1
- package/dist/index.es8.js +0 -47
- package/dist/index.es8.js.map +0 -1
- package/dist/index.es80.js +0 -90
- package/dist/index.es80.js.map +0 -1
- package/dist/index.es81.js +0 -18
- package/dist/index.es81.js.map +0 -1
- package/dist/index.es82.js +0 -298
- package/dist/index.es82.js.map +0 -1
- package/dist/index.es83.js +0 -26
- package/dist/index.es83.js.map +0 -1
- package/dist/index.es84.js +0 -626
- package/dist/index.es84.js.map +0 -1
- package/dist/index.es85.js +0 -19
- package/dist/index.es85.js.map +0 -1
- package/dist/index.es86.js +0 -40
- package/dist/index.es86.js.map +0 -1
- package/dist/index.es87.js +0 -40
- package/dist/index.es87.js.map +0 -1
- package/dist/index.es88.js +0 -39
- package/dist/index.es88.js.map +0 -1
- package/dist/index.es89.js +0 -8
- package/dist/index.es89.js.map +0 -1
- package/dist/index.es9.js +0 -37
- package/dist/index.es9.js.map +0 -1
- package/dist/index.es90.js +0 -722
- package/dist/index.es90.js.map +0 -1
- package/dist/index.es91.js +0 -155
- package/dist/index.es91.js.map +0 -1
- package/dist/index.es92.js +0 -174
- package/dist/index.es92.js.map +0 -1
- package/dist/index.es93.js +0 -11
- package/dist/index.es93.js.map +0 -1
- package/dist/index.es94.js +0 -6
- package/dist/index.es94.js.map +0 -1
- package/dist/index.es95.js +0 -36
- package/dist/index.es95.js.map +0 -1
- package/dist/index.es96.js +0 -175
- package/dist/index.es96.js.map +0 -1
- package/dist/index.es97.js +0 -22
- package/dist/index.es97.js.map +0 -1
- package/dist/index.es98.js +0 -89
- package/dist/index.es98.js.map +0 -1
- package/dist/index.es99.js +0 -48
- package/dist/index.es99.js.map +0 -1
package/dist/index.es39.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { composeEventHandlers } from "./index.es50.js";
|
|
3
|
-
import { useComposedRefs } from "./index.es48.js";
|
|
4
|
-
import { createContextScope } from "./index.es51.js";
|
|
5
|
-
import { useControllableState } from "./index.es52.js";
|
|
6
|
-
import { usePrevious } from "./index.es53.js";
|
|
7
|
-
import { useSize } from "./index.es54.js";
|
|
8
|
-
import { Primitive } from "./index.es55.js";
|
|
9
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
|
-
var SWITCH_NAME = "Switch";
|
|
11
|
-
var [createSwitchContext] = createContextScope(SWITCH_NAME);
|
|
12
|
-
var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
|
13
|
-
var Switch = React.forwardRef(
|
|
14
|
-
(props, forwardedRef) => {
|
|
15
|
-
const {
|
|
16
|
-
__scopeSwitch,
|
|
17
|
-
name,
|
|
18
|
-
checked: checkedProp,
|
|
19
|
-
defaultChecked,
|
|
20
|
-
required,
|
|
21
|
-
disabled,
|
|
22
|
-
value = "on",
|
|
23
|
-
onCheckedChange,
|
|
24
|
-
form,
|
|
25
|
-
...switchProps
|
|
26
|
-
} = props;
|
|
27
|
-
const [button, setButton] = React.useState(null);
|
|
28
|
-
const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
|
|
29
|
-
const hasConsumerStoppedPropagationRef = React.useRef(false);
|
|
30
|
-
const isFormControl = button ? form || !!button.closest("form") : true;
|
|
31
|
-
const [checked, setChecked] = useControllableState({
|
|
32
|
-
prop: checkedProp,
|
|
33
|
-
defaultProp: defaultChecked ?? false,
|
|
34
|
-
onChange: onCheckedChange,
|
|
35
|
-
caller: SWITCH_NAME
|
|
36
|
-
});
|
|
37
|
-
return /* @__PURE__ */ jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
39
|
-
Primitive.button,
|
|
40
|
-
{
|
|
41
|
-
type: "button",
|
|
42
|
-
role: "switch",
|
|
43
|
-
"aria-checked": checked,
|
|
44
|
-
"aria-required": required,
|
|
45
|
-
"data-state": getState(checked),
|
|
46
|
-
"data-disabled": disabled ? "" : void 0,
|
|
47
|
-
disabled,
|
|
48
|
-
value,
|
|
49
|
-
...switchProps,
|
|
50
|
-
ref: composedRefs,
|
|
51
|
-
onClick: composeEventHandlers(props.onClick, (event) => {
|
|
52
|
-
setChecked((prevChecked) => !prevChecked);
|
|
53
|
-
if (isFormControl) {
|
|
54
|
-
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
|
55
|
-
if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
isFormControl && /* @__PURE__ */ jsx(
|
|
61
|
-
SwitchBubbleInput,
|
|
62
|
-
{
|
|
63
|
-
control: button,
|
|
64
|
-
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
65
|
-
name,
|
|
66
|
-
value,
|
|
67
|
-
checked,
|
|
68
|
-
required,
|
|
69
|
-
disabled,
|
|
70
|
-
form,
|
|
71
|
-
style: { transform: "translateX(-100%)" }
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
] });
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
Switch.displayName = SWITCH_NAME;
|
|
78
|
-
var THUMB_NAME = "SwitchThumb";
|
|
79
|
-
var SwitchThumb = React.forwardRef(
|
|
80
|
-
(props, forwardedRef) => {
|
|
81
|
-
const { __scopeSwitch, ...thumbProps } = props;
|
|
82
|
-
const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
|
|
83
|
-
return /* @__PURE__ */ jsx(
|
|
84
|
-
Primitive.span,
|
|
85
|
-
{
|
|
86
|
-
"data-state": getState(context.checked),
|
|
87
|
-
"data-disabled": context.disabled ? "" : void 0,
|
|
88
|
-
...thumbProps,
|
|
89
|
-
ref: forwardedRef
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
SwitchThumb.displayName = THUMB_NAME;
|
|
95
|
-
var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
|
|
96
|
-
var SwitchBubbleInput = React.forwardRef(
|
|
97
|
-
({
|
|
98
|
-
__scopeSwitch,
|
|
99
|
-
control,
|
|
100
|
-
checked,
|
|
101
|
-
bubbles = true,
|
|
102
|
-
...props
|
|
103
|
-
}, forwardedRef) => {
|
|
104
|
-
const ref = React.useRef(null);
|
|
105
|
-
const composedRefs = useComposedRefs(ref, forwardedRef);
|
|
106
|
-
const prevChecked = usePrevious(checked);
|
|
107
|
-
const controlSize = useSize(control);
|
|
108
|
-
React.useEffect(() => {
|
|
109
|
-
const input = ref.current;
|
|
110
|
-
if (!input) return;
|
|
111
|
-
const inputProto = window.HTMLInputElement.prototype;
|
|
112
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
113
|
-
inputProto,
|
|
114
|
-
"checked"
|
|
115
|
-
);
|
|
116
|
-
const setChecked = descriptor.set;
|
|
117
|
-
if (prevChecked !== checked && setChecked) {
|
|
118
|
-
const event = new Event("click", { bubbles });
|
|
119
|
-
setChecked.call(input, checked);
|
|
120
|
-
input.dispatchEvent(event);
|
|
121
|
-
}
|
|
122
|
-
}, [prevChecked, checked, bubbles]);
|
|
123
|
-
return /* @__PURE__ */ jsx(
|
|
124
|
-
"input",
|
|
125
|
-
{
|
|
126
|
-
type: "checkbox",
|
|
127
|
-
"aria-hidden": true,
|
|
128
|
-
defaultChecked: checked,
|
|
129
|
-
...props,
|
|
130
|
-
tabIndex: -1,
|
|
131
|
-
ref: composedRefs,
|
|
132
|
-
style: {
|
|
133
|
-
...props.style,
|
|
134
|
-
...controlSize,
|
|
135
|
-
position: "absolute",
|
|
136
|
-
pointerEvents: "none",
|
|
137
|
-
opacity: 0,
|
|
138
|
-
margin: 0
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
);
|
|
144
|
-
SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME;
|
|
145
|
-
function getState(checked) {
|
|
146
|
-
return checked ? "checked" : "unchecked";
|
|
147
|
-
}
|
|
148
|
-
var Root = Switch;
|
|
149
|
-
var Thumb = SwitchThumb;
|
|
150
|
-
export {
|
|
151
|
-
Root,
|
|
152
|
-
Switch,
|
|
153
|
-
SwitchThumb,
|
|
154
|
-
Thumb
|
|
155
|
-
};
|
|
156
|
-
//# sourceMappingURL=index.es39.js.map
|
package/dist/index.es39.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es39.js","sources":["../docs/node_modules/.bun/@radix-ui+react-switch@1.2.6+98e41321d0e6b3fa/node_modules/@radix-ui/react-switch/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/switch.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar SWITCH_NAME = \"Switch\";\nvar [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);\nvar [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);\nvar Switch = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSwitch,\n name,\n checked: checkedProp,\n defaultChecked,\n required,\n disabled,\n value = \"on\",\n onCheckedChange,\n form,\n ...switchProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? form || !!button.closest(\"form\") : true;\n const [checked, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked ?? false,\n onChange: onCheckedChange,\n caller: SWITCH_NAME\n });\n return /* @__PURE__ */ jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"switch\",\n \"aria-checked\": checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...switchProps,\n ref: composedRefs,\n onClick: composeEventHandlers(props.onClick, (event) => {\n setChecked((prevChecked) => !prevChecked);\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n SwitchBubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n form,\n style: { transform: \"translateX(-100%)\" }\n }\n )\n ] });\n }\n);\nSwitch.displayName = SWITCH_NAME;\nvar THUMB_NAME = \"SwitchThumb\";\nvar SwitchThumb = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSwitch, ...thumbProps } = props;\n const context = useSwitchContext(THUMB_NAME, __scopeSwitch);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...thumbProps,\n ref: forwardedRef\n }\n );\n }\n);\nSwitchThumb.displayName = THUMB_NAME;\nvar BUBBLE_INPUT_NAME = \"SwitchBubbleInput\";\nvar SwitchBubbleInput = React.forwardRef(\n ({\n __scopeSwitch,\n control,\n checked,\n bubbles = true,\n ...props\n }, forwardedRef) => {\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(ref, forwardedRef);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n if (!input) return;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n inputProto,\n \"checked\"\n );\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: checked,\n ...props,\n tabIndex: -1,\n ref: composedRefs,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n }\n);\nSwitchBubbleInput.displayName = BUBBLE_INPUT_NAME;\nfunction getState(checked) {\n return checked ? \"checked\" : \"unchecked\";\n}\nvar Root = Switch;\nvar Thumb = SwitchThumb;\nexport {\n Root,\n Switch,\n SwitchThumb,\n Thumb,\n createSwitchScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;;;;;;AAYA,IAAI,cAAc;AAClB,IAAI,CAAC,mBAAsC,IAAI,mBAAmB,WAAW;AAC7E,IAAI,CAAC,gBAAgB,gBAAgB,IAAI,oBAAoB,WAAW;AACrE,IAAC,SAAS,MAAM;AAAA,EACjB,CAAC,OAAO,iBAAiB;AACvB,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA,SAAS;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACT,IAAQ;AACJ,UAAM,CAAC,QAAQ,SAAS,IAAI,MAAM,SAAS,IAAI;AAC/C,UAAM,eAAe,gBA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;AACF;AACA,kBAAkB,cAAc;AAChC,SAAS,SAAS,SAAS;AACzB,SAAO,UAAU,YAAY;AAC/B;AACG,IAAC,OAAO;AACR,IAAC,QAAQ;","x_google_ignoreList":[0]}
|
package/dist/index.es4.js
DELETED
package/dist/index.es4.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es4.js","sources":["../src/lib/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\n/**\n * Utility function to merge Tailwind CSS classes.\n * Combines clsx for conditional classes and tailwind-merge to resolve conflicts.\n *\n * @example\n * ```tsx\n * cn(\"px-2 py-1\", \"px-4\") // Returns \"py-1 px-4\" (px-2 is overridden by px-4)\n * cn(\"text-red-500\", { \"text-blue-500\": isActive }) // Conditional classes\n * ```\n */\nexport const cn = (...inputs: ClassValue[]) => {\n return twMerge(clsx(inputs))\n}\n"],"names":[],"mappings":";;AAaO,MAAM,KAAK,IAAI,WAAyB;AAC7C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;"}
|
package/dist/index.es40.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Primitive } from "./index.es49.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
var NAME = "Separator";
|
|
5
|
-
var DEFAULT_ORIENTATION = "horizontal";
|
|
6
|
-
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
7
|
-
var Separator = React.forwardRef((props, forwardedRef) => {
|
|
8
|
-
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
9
|
-
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
10
|
-
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
11
|
-
const semanticProps = decorative ? { role: "none" } : { "aria-orientation": ariaOrientation, role: "separator" };
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
-
Primitive.div,
|
|
14
|
-
{
|
|
15
|
-
"data-orientation": orientation,
|
|
16
|
-
...semanticProps,
|
|
17
|
-
...domProps,
|
|
18
|
-
ref: forwardedRef
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
});
|
|
22
|
-
Separator.displayName = NAME;
|
|
23
|
-
function isValidOrientation(orientation) {
|
|
24
|
-
return ORIENTATIONS.includes(orientation);
|
|
25
|
-
}
|
|
26
|
-
var Root = Separator;
|
|
27
|
-
export {
|
|
28
|
-
Root,
|
|
29
|
-
Separator
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=index.es40.js.map
|
package/dist/index.es40.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es40.js","sources":["../docs/node_modules/.bun/@radix-ui+react-separator@1.1.8+98e41321d0e6b3fa/node_modules/@radix-ui/react-separator/dist/index.mjs"],"sourcesContent":["// src/separator.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Separator\";\nvar DEFAULT_ORIENTATION = \"horizontal\";\nvar ORIENTATIONS = [\"horizontal\", \"vertical\"];\nvar Separator = React.forwardRef((props, forwardedRef) => {\n const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;\n const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;\n const ariaOrientation = orientation === \"vertical\" ? orientation : void 0;\n const semanticProps = decorative ? { role: \"none\" } : { \"aria-orientation\": ariaOrientation, role: \"separator\" };\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-orientation\": orientation,\n ...semanticProps,\n ...domProps,\n ref: forwardedRef\n }\n );\n});\nSeparator.displayName = NAME;\nfunction isValidOrientation(orientation) {\n return ORIENTATIONS.includes(orientation);\n}\nvar Root = Separator;\nexport {\n Root,\n Separator\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;AAIA,IAAI,OAAO;AACX,IAAI,sBAAsB;AAC1B,IAAI,eAAe,CAAC,cAAc,UAAU;AACzC,IAAC,YAAY,MAAM,WAAW,CAAC,OAAO,iBAAiB;AACxD,QAAM,EAAE,YAAY,aAAa,kBAAkB,qBAAqB,GAAG,SAAQ,IAAK;AACxF,QAAM,cAAc,mBAAmB,eAAe,IAAI,kBAAkB;AAC5E,QAAM,kBAAkB,gBAAgB,aAAa,cAAc;AACnE,QAAM,gBAAgB,aAAa,EAAE,MAAM,WAAW,EAAE,oBAAoB,iBAAiB,MAAM,YAAW;AAC9G,SAAuB;AAAA,IACrB,UAAU;AAAA,IACV;AAAA,MACE,oBAAoB;AAAA,MACpB,GAAG;AAAA,MACH,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AACA,CAAC;AACD,UAAU,cAAc;AACxB,SAAS,mBAAmB,aAAa;AACvC,SAAO,aAAa,SAAS,WAAW;AAC1C;AACG,IAAC,OAAO;","x_google_ignoreList":[0]}
|
package/dist/index.es41.js
DELETED
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { composeEventHandlers } from "./index.es50.js";
|
|
3
|
-
import { useComposedRefs } from "./index.es48.js";
|
|
4
|
-
import { createContextScope } from "./index.es51.js";
|
|
5
|
-
import { DismissableLayer } from "./index.es61.js";
|
|
6
|
-
import { useFocusGuards } from "./index.es68.js";
|
|
7
|
-
import { FocusScope } from "./index.es66.js";
|
|
8
|
-
import { useId } from "./index.es58.js";
|
|
9
|
-
import { createPopperScope, Anchor, Root as Root2$1, Content, Arrow } from "./index.es62.js";
|
|
10
|
-
import { Portal as Portal$1 } from "./index.es67.js";
|
|
11
|
-
import { Presence } from "./index.es60.js";
|
|
12
|
-
import { Primitive } from "./index.es55.js";
|
|
13
|
-
import { createSlot } from "./index.es77.js";
|
|
14
|
-
import { useControllableState } from "./index.es52.js";
|
|
15
|
-
import { hideOthers } from "./index.es70.js";
|
|
16
|
-
import ReactRemoveScroll from "./index.es69.js";
|
|
17
|
-
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
var POPOVER_NAME = "Popover";
|
|
19
|
-
var [createPopoverContext] = createContextScope(POPOVER_NAME, [
|
|
20
|
-
createPopperScope
|
|
21
|
-
]);
|
|
22
|
-
var usePopperScope = createPopperScope();
|
|
23
|
-
var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
|
|
24
|
-
var Popover = (props) => {
|
|
25
|
-
const {
|
|
26
|
-
__scopePopover,
|
|
27
|
-
children,
|
|
28
|
-
open: openProp,
|
|
29
|
-
defaultOpen,
|
|
30
|
-
onOpenChange,
|
|
31
|
-
modal = false
|
|
32
|
-
} = props;
|
|
33
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
34
|
-
const triggerRef = React.useRef(null);
|
|
35
|
-
const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
|
|
36
|
-
const [open, setOpen] = useControllableState({
|
|
37
|
-
prop: openProp,
|
|
38
|
-
defaultProp: defaultOpen ?? false,
|
|
39
|
-
onChange: onOpenChange,
|
|
40
|
-
caller: POPOVER_NAME
|
|
41
|
-
});
|
|
42
|
-
return /* @__PURE__ */ jsx(Root2$1, { ...popperScope, children: /* @__PURE__ */ jsx(
|
|
43
|
-
PopoverProvider,
|
|
44
|
-
{
|
|
45
|
-
scope: __scopePopover,
|
|
46
|
-
contentId: useId(),
|
|
47
|
-
triggerRef,
|
|
48
|
-
open,
|
|
49
|
-
onOpenChange: setOpen,
|
|
50
|
-
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
51
|
-
hasCustomAnchor,
|
|
52
|
-
onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),
|
|
53
|
-
onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),
|
|
54
|
-
modal,
|
|
55
|
-
children
|
|
56
|
-
}
|
|
57
|
-
) });
|
|
58
|
-
};
|
|
59
|
-
Popover.displayName = POPOVER_NAME;
|
|
60
|
-
var ANCHOR_NAME = "PopoverAnchor";
|
|
61
|
-
var PopoverAnchor = React.forwardRef(
|
|
62
|
-
(props, forwardedRef) => {
|
|
63
|
-
const { __scopePopover, ...anchorProps } = props;
|
|
64
|
-
const context = usePopoverContext(ANCHOR_NAME, __scopePopover);
|
|
65
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
66
|
-
const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
|
|
67
|
-
React.useEffect(() => {
|
|
68
|
-
onCustomAnchorAdd();
|
|
69
|
-
return () => onCustomAnchorRemove();
|
|
70
|
-
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
|
71
|
-
return /* @__PURE__ */ jsx(Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
PopoverAnchor.displayName = ANCHOR_NAME;
|
|
75
|
-
var TRIGGER_NAME = "PopoverTrigger";
|
|
76
|
-
var PopoverTrigger = React.forwardRef(
|
|
77
|
-
(props, forwardedRef) => {
|
|
78
|
-
const { __scopePopover, ...triggerProps } = props;
|
|
79
|
-
const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
|
|
80
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
81
|
-
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
82
|
-
const trigger = /* @__PURE__ */ jsx(
|
|
83
|
-
Primitive.button,
|
|
84
|
-
{
|
|
85
|
-
type: "button",
|
|
86
|
-
"aria-haspopup": "dialog",
|
|
87
|
-
"aria-expanded": context.open,
|
|
88
|
-
"aria-controls": context.contentId,
|
|
89
|
-
"data-state": getState(context.open),
|
|
90
|
-
...triggerProps,
|
|
91
|
-
ref: composedTriggerRef,
|
|
92
|
-
onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: trigger });
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
PopoverTrigger.displayName = TRIGGER_NAME;
|
|
99
|
-
var PORTAL_NAME = "PopoverPortal";
|
|
100
|
-
var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {
|
|
101
|
-
forceMount: void 0
|
|
102
|
-
});
|
|
103
|
-
var PopoverPortal = (props) => {
|
|
104
|
-
const { __scopePopover, forceMount, children, container } = props;
|
|
105
|
-
const context = usePopoverContext(PORTAL_NAME, __scopePopover);
|
|
106
|
-
return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$1, { asChild: true, container, children }) }) });
|
|
107
|
-
};
|
|
108
|
-
PopoverPortal.displayName = PORTAL_NAME;
|
|
109
|
-
var CONTENT_NAME = "PopoverContent";
|
|
110
|
-
var PopoverContent = React.forwardRef(
|
|
111
|
-
(props, forwardedRef) => {
|
|
112
|
-
const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
|
|
113
|
-
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
114
|
-
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
115
|
-
return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
PopoverContent.displayName = CONTENT_NAME;
|
|
119
|
-
var Slot = createSlot("PopoverContent.RemoveScroll");
|
|
120
|
-
var PopoverContentModal = React.forwardRef(
|
|
121
|
-
(props, forwardedRef) => {
|
|
122
|
-
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
123
|
-
const contentRef = React.useRef(null);
|
|
124
|
-
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
125
|
-
const isRightClickOutsideRef = React.useRef(false);
|
|
126
|
-
React.useEffect(() => {
|
|
127
|
-
const content = contentRef.current;
|
|
128
|
-
if (content) return hideOthers(content);
|
|
129
|
-
}, []);
|
|
130
|
-
return /* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
|
|
131
|
-
PopoverContentImpl,
|
|
132
|
-
{
|
|
133
|
-
...props,
|
|
134
|
-
ref: composedRefs,
|
|
135
|
-
trapFocus: context.open,
|
|
136
|
-
disableOutsidePointerEvents: true,
|
|
137
|
-
onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
|
138
|
-
var _a;
|
|
139
|
-
event.preventDefault();
|
|
140
|
-
if (!isRightClickOutsideRef.current) (_a = context.triggerRef.current) == null ? void 0 : _a.focus();
|
|
141
|
-
}),
|
|
142
|
-
onPointerDownOutside: composeEventHandlers(
|
|
143
|
-
props.onPointerDownOutside,
|
|
144
|
-
(event) => {
|
|
145
|
-
const originalEvent = event.detail.originalEvent;
|
|
146
|
-
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
|
147
|
-
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
148
|
-
isRightClickOutsideRef.current = isRightClick;
|
|
149
|
-
},
|
|
150
|
-
{ checkForDefaultPrevented: false }
|
|
151
|
-
),
|
|
152
|
-
onFocusOutside: composeEventHandlers(
|
|
153
|
-
props.onFocusOutside,
|
|
154
|
-
(event) => event.preventDefault(),
|
|
155
|
-
{ checkForDefaultPrevented: false }
|
|
156
|
-
)
|
|
157
|
-
}
|
|
158
|
-
) });
|
|
159
|
-
}
|
|
160
|
-
);
|
|
161
|
-
var PopoverContentNonModal = React.forwardRef(
|
|
162
|
-
(props, forwardedRef) => {
|
|
163
|
-
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
164
|
-
const hasInteractedOutsideRef = React.useRef(false);
|
|
165
|
-
const hasPointerDownOutsideRef = React.useRef(false);
|
|
166
|
-
return /* @__PURE__ */ jsx(
|
|
167
|
-
PopoverContentImpl,
|
|
168
|
-
{
|
|
169
|
-
...props,
|
|
170
|
-
ref: forwardedRef,
|
|
171
|
-
trapFocus: false,
|
|
172
|
-
disableOutsidePointerEvents: false,
|
|
173
|
-
onCloseAutoFocus: (event) => {
|
|
174
|
-
var _a, _b;
|
|
175
|
-
(_a = props.onCloseAutoFocus) == null ? void 0 : _a.call(props, event);
|
|
176
|
-
if (!event.defaultPrevented) {
|
|
177
|
-
if (!hasInteractedOutsideRef.current) (_b = context.triggerRef.current) == null ? void 0 : _b.focus();
|
|
178
|
-
event.preventDefault();
|
|
179
|
-
}
|
|
180
|
-
hasInteractedOutsideRef.current = false;
|
|
181
|
-
hasPointerDownOutsideRef.current = false;
|
|
182
|
-
},
|
|
183
|
-
onInteractOutside: (event) => {
|
|
184
|
-
var _a, _b;
|
|
185
|
-
(_a = props.onInteractOutside) == null ? void 0 : _a.call(props, event);
|
|
186
|
-
if (!event.defaultPrevented) {
|
|
187
|
-
hasInteractedOutsideRef.current = true;
|
|
188
|
-
if (event.detail.originalEvent.type === "pointerdown") {
|
|
189
|
-
hasPointerDownOutsideRef.current = true;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
const target = event.target;
|
|
193
|
-
const targetIsTrigger = (_b = context.triggerRef.current) == null ? void 0 : _b.contains(target);
|
|
194
|
-
if (targetIsTrigger) event.preventDefault();
|
|
195
|
-
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
|
|
196
|
-
event.preventDefault();
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
);
|
|
203
|
-
var PopoverContentImpl = React.forwardRef(
|
|
204
|
-
(props, forwardedRef) => {
|
|
205
|
-
const {
|
|
206
|
-
__scopePopover,
|
|
207
|
-
trapFocus,
|
|
208
|
-
onOpenAutoFocus,
|
|
209
|
-
onCloseAutoFocus,
|
|
210
|
-
disableOutsidePointerEvents,
|
|
211
|
-
onEscapeKeyDown,
|
|
212
|
-
onPointerDownOutside,
|
|
213
|
-
onFocusOutside,
|
|
214
|
-
onInteractOutside,
|
|
215
|
-
...contentProps
|
|
216
|
-
} = props;
|
|
217
|
-
const context = usePopoverContext(CONTENT_NAME, __scopePopover);
|
|
218
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
219
|
-
useFocusGuards();
|
|
220
|
-
return /* @__PURE__ */ jsx(
|
|
221
|
-
FocusScope,
|
|
222
|
-
{
|
|
223
|
-
asChild: true,
|
|
224
|
-
loop: true,
|
|
225
|
-
trapped: trapFocus,
|
|
226
|
-
onMountAutoFocus: onOpenAutoFocus,
|
|
227
|
-
onUnmountAutoFocus: onCloseAutoFocus,
|
|
228
|
-
children: /* @__PURE__ */ jsx(
|
|
229
|
-
DismissableLayer,
|
|
230
|
-
{
|
|
231
|
-
asChild: true,
|
|
232
|
-
disableOutsidePointerEvents,
|
|
233
|
-
onInteractOutside,
|
|
234
|
-
onEscapeKeyDown,
|
|
235
|
-
onPointerDownOutside,
|
|
236
|
-
onFocusOutside,
|
|
237
|
-
onDismiss: () => context.onOpenChange(false),
|
|
238
|
-
children: /* @__PURE__ */ jsx(
|
|
239
|
-
Content,
|
|
240
|
-
{
|
|
241
|
-
"data-state": getState(context.open),
|
|
242
|
-
role: "dialog",
|
|
243
|
-
id: context.contentId,
|
|
244
|
-
...popperScope,
|
|
245
|
-
...contentProps,
|
|
246
|
-
ref: forwardedRef,
|
|
247
|
-
style: {
|
|
248
|
-
...contentProps.style,
|
|
249
|
-
// re-namespace exposed content custom properties
|
|
250
|
-
...{
|
|
251
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
252
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
253
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
254
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
255
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
)
|
|
260
|
-
}
|
|
261
|
-
)
|
|
262
|
-
}
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
);
|
|
266
|
-
var CLOSE_NAME = "PopoverClose";
|
|
267
|
-
var PopoverClose = React.forwardRef(
|
|
268
|
-
(props, forwardedRef) => {
|
|
269
|
-
const { __scopePopover, ...closeProps } = props;
|
|
270
|
-
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
|
271
|
-
return /* @__PURE__ */ jsx(
|
|
272
|
-
Primitive.button,
|
|
273
|
-
{
|
|
274
|
-
type: "button",
|
|
275
|
-
...closeProps,
|
|
276
|
-
ref: forwardedRef,
|
|
277
|
-
onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
|
|
278
|
-
}
|
|
279
|
-
);
|
|
280
|
-
}
|
|
281
|
-
);
|
|
282
|
-
PopoverClose.displayName = CLOSE_NAME;
|
|
283
|
-
var ARROW_NAME = "PopoverArrow";
|
|
284
|
-
var PopoverArrow = React.forwardRef(
|
|
285
|
-
(props, forwardedRef) => {
|
|
286
|
-
const { __scopePopover, ...arrowProps } = props;
|
|
287
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
288
|
-
return /* @__PURE__ */ jsx(Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
289
|
-
}
|
|
290
|
-
);
|
|
291
|
-
PopoverArrow.displayName = ARROW_NAME;
|
|
292
|
-
function getState(open) {
|
|
293
|
-
return open ? "open" : "closed";
|
|
294
|
-
}
|
|
295
|
-
var Root2 = Popover;
|
|
296
|
-
var Anchor2 = PopoverAnchor;
|
|
297
|
-
var Trigger = PopoverTrigger;
|
|
298
|
-
var Portal = PopoverPortal;
|
|
299
|
-
var Content2 = PopoverContent;
|
|
300
|
-
export {
|
|
301
|
-
Anchor2 as Anchor,
|
|
302
|
-
Content2 as Content,
|
|
303
|
-
Popover,
|
|
304
|
-
PopoverAnchor,
|
|
305
|
-
PopoverArrow,
|
|
306
|
-
PopoverClose,
|
|
307
|
-
PopoverContent,
|
|
308
|
-
PopoverPortal,
|
|
309
|
-
PopoverTrigger,
|
|
310
|
-
Portal,
|
|
311
|
-
Root2 as Root,
|
|
312
|
-
Trigger
|
|
313
|
-
};
|
|
314
|
-
//# sourceMappingURL=index.es41.js.map
|
package/dist/index.es41.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es41.js","sources":["../docs/node_modules/.bun/@radix-ui+react-popover@1.1.15+98e41321d0e6b3fa/node_modules/@radix-ui/react-popover/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/popover.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar POPOVER_NAME = \"Popover\";\nvar [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);\nvar Popover = (props) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: POPOVER_NAME\n });\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n PopoverProvider,\n {\n scope: __scopePopover,\n contentId: useId(),\n triggerRef,\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n hasCustomAnchor,\n onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),\n onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),\n modal,\n children\n }\n ) });\n};\nPopover.displayName = POPOVER_NAME;\nvar ANCHOR_NAME = \"PopoverAnchor\";\nvar PopoverAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nPopoverAnchor.displayName = ANCHOR_NAME;\nvar TRIGGER_NAME = \"PopoverTrigger\";\nvar PopoverTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n const trigger = /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });\n }\n);\nPopoverTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"PopoverPortal\";\nvar [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar PopoverPortal = (props) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nPopoverPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"PopoverContent\";\nvar PopoverContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nPopoverContent.displayName = CONTENT_NAME;\nvar Slot = createSlot(\"PopoverContent.RemoveScroll\");\nvar PopoverContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(\n props.onPointerDownOutside,\n (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\n ),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nvar PopoverContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar PopoverContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n useFocusGuards();\n return /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onInteractOutside,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n \"data-state\": getState(context.open),\n role: \"dialog\",\n id: context.contentId,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-popover-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-popover-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-popover-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-popover-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-popover-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n )\n }\n )\n }\n );\n }\n);\nvar CLOSE_NAME = \"PopoverClose\";\nvar PopoverClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nPopoverClose.displayName = CLOSE_NAME;\nvar ARROW_NAME = \"PopoverArrow\";\nvar PopoverArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nPopoverArrow.displayName = ARROW_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Popover;\nvar Anchor2 = PopoverAnchor;\nvar Trigger = PopoverTrigger;\nvar Portal = PopoverPortal;\nvar Content2 = PopoverContent;\nvar Close = PopoverClose;\nvar Arrow2 = PopoverArrow;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n Close,\n Content2 as Content,\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverClose,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n Portal,\n Root2 as Root,\n Trigger,\n createPopoverScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PopperPrimitive.Root","PopperPrimitive.Anchor","PortalPrimitive","RemoveScroll","PopperPrimitive.Content","PopperPrimitive.Arrow"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,IAAI,eAAe;AACnB,IAAI,CAAC,oBAAwC,IAAI,mBAAmB,cAAc;AAAA,EAChF;AACF,CAAC;AACD,IAAI,iBAAiB,kBAAiB;AACtC,IAAI,CAAC,iBAAiB,iBAAiB,IAAI,qBAAqB,YAAY;AACzE,IAAC,UAAU,CAAC,UAAU;AACvB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,EACZ,IAAM;AACJ,QAAM,cAAc,eAAe,cAAc;AACjD,QAAM,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