@usememos/ui 26.10.0 → 26.10.1
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/LICENSE +21 -0
- package/README.md +65 -92
- package/dist/InterVariable-Italic.woff2 +0 -0
- package/dist/InterVariable.woff2 +0 -0
- package/dist/OFL.txt +92 -0
- package/dist/index.js +3 -48
- package/dist/index.js.map +7 -0
- package/dist/styles.css +1 -0
- package/dist/tokens.css +1 -0
- package/dist/types/components/avatar/index.d.ts +16 -0
- package/dist/types/components/badge/index.d.ts +10 -0
- package/dist/types/components/button/index.d.ts +29 -0
- package/dist/types/components/checkbox/index.d.ts +11 -0
- package/dist/types/components/collapsible/index.d.ts +15 -0
- package/dist/types/components/combobox/index.d.ts +66 -0
- package/dist/types/components/dialog/alert-dialog.d.ts +19 -0
- package/dist/types/components/dialog/index.d.ts +22 -0
- package/dist/types/components/dialog/parts.d.ts +34 -0
- package/dist/types/components/field/fieldset.d.ts +11 -0
- package/dist/types/components/field/index.d.ts +24 -0
- package/dist/types/components/input/index.d.ts +19 -0
- package/dist/types/components/kbd/index.d.ts +5 -0
- package/dist/types/components/link/index.d.ts +11 -0
- package/dist/types/components/menu/index.d.ts +67 -0
- package/dist/types/components/popover/index.d.ts +28 -0
- package/dist/types/components/prose/index.d.ts +11 -0
- package/dist/types/components/radio-group/index.d.ts +15 -0
- package/dist/types/components/select/index.d.ts +46 -0
- package/dist/types/components/separator/index.d.ts +5 -0
- package/dist/types/components/skeleton/index.d.ts +13 -0
- package/dist/types/components/spinner/index.d.ts +10 -0
- package/dist/types/components/switch/index.d.ts +11 -0
- package/dist/types/components/table/index.d.ts +42 -0
- package/dist/types/components/tabs/index.d.ts +22 -0
- package/dist/types/components/textarea/index.d.ts +9 -0
- package/dist/types/components/toast/index.d.ts +19 -0
- package/dist/types/components/toggle/index.d.ts +11 -0
- package/dist/types/components/toggle-group/index.d.ts +13 -0
- package/dist/types/components/tooltip/index.d.ts +24 -0
- package/dist/types/index.d.ts +30 -0
- package/dist/types/internal/class-name.d.ts +7 -0
- package/dist/types/internal/popup.d.ts +9 -0
- package/dist/types/internal/size.d.ts +5 -0
- package/dist/types/types.d.ts +7 -0
- package/llms-full.txt +2145 -0
- package/llms.txt +53 -0
- package/package.json +34 -157
- package/dist/button.cjs +0 -74
- package/dist/button.d.cts +0 -15
- package/dist/button.d.ts +0 -15
- package/dist/button.js +0 -7
- package/dist/checkbox.cjs +0 -98
- package/dist/checkbox.d.cts +0 -16
- package/dist/checkbox.d.ts +0 -16
- package/dist/checkbox.js +0 -7
- package/dist/chunk-3DNMGJFC.js +0 -216
- package/dist/chunk-3VYNJ6UM.js +0 -27
- package/dist/chunk-3YY2G3JK.js +0 -125
- package/dist/chunk-5GQEJQKE.js +0 -60
- package/dist/chunk-6TNEFWVX.js +0 -9
- package/dist/chunk-BH4MPO4N.js +0 -25
- package/dist/chunk-F6GH4X7N.js +0 -34
- package/dist/chunk-HYN2P4OY.js +0 -84
- package/dist/chunk-OIUVLPTE.js +0 -54
- package/dist/chunk-S6LVYCE6.js +0 -157
- package/dist/chunk-SNSDJKJP.js +0 -44
- package/dist/chunk-WPO54YPG.js +0 -328
- package/dist/chunk-Z3ME5VRQ.js +0 -98
- package/dist/control-size-Bz2gyuyO.d.cts +0 -3
- package/dist/control-size-Bz2gyuyO.d.ts +0 -3
- package/dist/dialog.cjs +0 -203
- package/dist/dialog.d.cts +0 -34
- package/dist/dialog.d.ts +0 -34
- package/dist/dialog.js +0 -8
- package/dist/dropdown-menu.cjs +0 -378
- package/dist/dropdown-menu.d.cts +0 -60
- package/dist/dropdown-menu.d.ts +0 -60
- package/dist/dropdown-menu.js +0 -8
- package/dist/index.cjs +0 -1223
- package/dist/index.d.cts +0 -21
- package/dist/index.d.ts +0 -21
- package/dist/input.cjs +0 -67
- package/dist/input.d.cts +0 -11
- package/dist/input.d.ts +0 -11
- package/dist/input.js +0 -7
- package/dist/popover.cjs +0 -175
- package/dist/popover.d.cts +0 -53
- package/dist/popover.d.ts +0 -53
- package/dist/popover.js +0 -8
- package/dist/radio-group.cjs +0 -122
- package/dist/radio-group.d.cts +0 -25
- package/dist/radio-group.d.ts +0 -25
- package/dist/radio-group.js +0 -7
- package/dist/select.cjs +0 -266
- package/dist/select.d.cts +0 -45
- package/dist/select.d.ts +0 -45
- package/dist/select.js +0 -8
- package/dist/separator.cjs +0 -82
- package/dist/separator.d.cts +0 -12
- package/dist/separator.d.ts +0 -12
- package/dist/separator.js +0 -7
- package/dist/switch.cjs +0 -92
- package/dist/switch.d.cts +0 -16
- package/dist/switch.d.ts +0 -16
- package/dist/switch.js +0 -7
- package/dist/theme.css +0 -1097
- package/dist/tooltip.cjs +0 -148
- package/dist/tooltip.d.cts +0 -24
- package/dist/tooltip.d.ts +0 -24
- package/dist/tooltip.js +0 -8
package/dist/chunk-3DNMGJFC.js
DELETED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useOverlayLayerProps
|
|
3
|
-
} from "./chunk-BH4MPO4N.js";
|
|
4
|
-
import {
|
|
5
|
-
cx
|
|
6
|
-
} from "./chunk-6TNEFWVX.js";
|
|
7
|
-
|
|
8
|
-
// src/selection/select.tsx
|
|
9
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
10
|
-
|
|
11
|
-
// ../primitives/src/selection/select.tsx
|
|
12
|
-
import * as React from "react";
|
|
13
|
-
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
14
|
-
import { jsx } from "react/jsx-runtime";
|
|
15
|
-
var Root = (props) => {
|
|
16
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-scope": "select", "data-part": "root", ...props });
|
|
17
|
-
};
|
|
18
|
-
var Group = (props) => {
|
|
19
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Group, { "data-scope": "select", "data-part": "group", ...props });
|
|
20
|
-
};
|
|
21
|
-
var Value = React.forwardRef((props, ref) => {
|
|
22
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Value, { ref, "data-scope": "select", "data-part": "value", ...props });
|
|
23
|
-
});
|
|
24
|
-
var Trigger = React.forwardRef((props, ref) => {
|
|
25
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Trigger, { ref, "data-scope": "select", "data-part": "trigger", ...props });
|
|
26
|
-
});
|
|
27
|
-
var Portal = (props) => {
|
|
28
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { "data-scope": "select", "data-part": "portal", ...props });
|
|
29
|
-
};
|
|
30
|
-
var Content = React.forwardRef(
|
|
31
|
-
({
|
|
32
|
-
className,
|
|
33
|
-
children,
|
|
34
|
-
finalFocus,
|
|
35
|
-
align = "start",
|
|
36
|
-
collisionPadding = 8,
|
|
37
|
-
sideOffset = 4,
|
|
38
|
-
...props
|
|
39
|
-
}, ref) => {
|
|
40
|
-
return /* @__PURE__ */ jsx(
|
|
41
|
-
SelectPrimitive.Positioner,
|
|
42
|
-
{
|
|
43
|
-
"data-scope": "select",
|
|
44
|
-
"data-part": "positioner",
|
|
45
|
-
align,
|
|
46
|
-
collisionPadding,
|
|
47
|
-
sideOffset,
|
|
48
|
-
...props,
|
|
49
|
-
children: /* @__PURE__ */ jsx(
|
|
50
|
-
SelectPrimitive.Popup,
|
|
51
|
-
{
|
|
52
|
-
ref,
|
|
53
|
-
"data-scope": "select",
|
|
54
|
-
"data-part": "content",
|
|
55
|
-
className,
|
|
56
|
-
finalFocus,
|
|
57
|
-
children
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
var Viewport = React.forwardRef((props, ref) => {
|
|
65
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.List, { ref, "data-scope": "select", "data-part": "viewport", ...props });
|
|
66
|
-
});
|
|
67
|
-
var Label = React.forwardRef((props, ref) => {
|
|
68
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.GroupLabel, { ref, "data-scope": "select", "data-part": "label", ...props });
|
|
69
|
-
});
|
|
70
|
-
var Item = React.forwardRef((props, ref) => {
|
|
71
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Item, { ref, "data-scope": "select", "data-part": "item", ...props });
|
|
72
|
-
});
|
|
73
|
-
var ItemText = React.forwardRef((props, ref) => {
|
|
74
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { ref, "data-scope": "select", "data-part": "item-text", ...props });
|
|
75
|
-
});
|
|
76
|
-
var ItemIndicator = React.forwardRef((props, ref) => {
|
|
77
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { ref, "data-scope": "select", "data-part": "item-indicator", ...props });
|
|
78
|
-
});
|
|
79
|
-
var Separator = React.forwardRef((props, ref) => {
|
|
80
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Separator, { ref, "data-scope": "select", "data-part": "separator", ...props });
|
|
81
|
-
});
|
|
82
|
-
var ScrollUpButton = React.forwardRef((props, ref) => {
|
|
83
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpArrow, { ref, "data-scope": "select", "data-part": "scroll-up-button", ...props });
|
|
84
|
-
});
|
|
85
|
-
var ScrollDownButton = React.forwardRef((props, ref) => {
|
|
86
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownArrow, { ref, "data-scope": "select", "data-part": "scroll-down-button", ...props });
|
|
87
|
-
});
|
|
88
|
-
Root.displayName = "Select.Root";
|
|
89
|
-
Group.displayName = "Select.Group";
|
|
90
|
-
Value.displayName = "Select.Value";
|
|
91
|
-
Trigger.displayName = "Select.Trigger";
|
|
92
|
-
Portal.displayName = "Select.Portal";
|
|
93
|
-
Content.displayName = "Select.Content";
|
|
94
|
-
Viewport.displayName = "Select.Viewport";
|
|
95
|
-
Label.displayName = "Select.Label";
|
|
96
|
-
Item.displayName = "Select.Item";
|
|
97
|
-
ItemText.displayName = "Select.ItemText";
|
|
98
|
-
ItemIndicator.displayName = "Select.ItemIndicator";
|
|
99
|
-
Separator.displayName = "Select.Separator";
|
|
100
|
-
ScrollUpButton.displayName = "Select.ScrollUpButton";
|
|
101
|
-
ScrollDownButton.displayName = "Select.ScrollDownButton";
|
|
102
|
-
var Select = {
|
|
103
|
-
Root,
|
|
104
|
-
Group,
|
|
105
|
-
Value,
|
|
106
|
-
Trigger,
|
|
107
|
-
Portal,
|
|
108
|
-
Content,
|
|
109
|
-
Viewport,
|
|
110
|
-
Label,
|
|
111
|
-
Item,
|
|
112
|
-
ItemText,
|
|
113
|
-
ItemIndicator,
|
|
114
|
-
Separator,
|
|
115
|
-
ScrollUpButton,
|
|
116
|
-
ScrollDownButton
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
// src/selection/select.tsx
|
|
120
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
121
|
-
var Root2 = Select.Root;
|
|
122
|
-
var Group2 = Select.Group;
|
|
123
|
-
var Value2 = Select.Value;
|
|
124
|
-
function Trigger2({
|
|
125
|
-
className,
|
|
126
|
-
children,
|
|
127
|
-
size = "md",
|
|
128
|
-
...props
|
|
129
|
-
}) {
|
|
130
|
-
return /* @__PURE__ */ jsxs(
|
|
131
|
-
Select.Trigger,
|
|
132
|
-
{
|
|
133
|
-
className: cx("mui-select__trigger", className),
|
|
134
|
-
"data-size": size,
|
|
135
|
-
...props,
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ jsx2("span", { className: "mui-select__value-slot", children }),
|
|
138
|
-
/* @__PURE__ */ jsx2("span", { className: "mui-select__icon-slot", "aria-hidden": "true", children: /* @__PURE__ */ jsx2(ChevronDownIcon, { className: "mui-select__icon", size: 12 }) })
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
function Content2({
|
|
144
|
-
className,
|
|
145
|
-
children,
|
|
146
|
-
...props
|
|
147
|
-
}) {
|
|
148
|
-
const layerProps = useOverlayLayerProps(props);
|
|
149
|
-
return /* @__PURE__ */ jsx2(Select.Portal, { children: /* @__PURE__ */ jsxs(
|
|
150
|
-
Select.Content,
|
|
151
|
-
{
|
|
152
|
-
className: cx("mui-select__content", className),
|
|
153
|
-
...layerProps,
|
|
154
|
-
children: [
|
|
155
|
-
/* @__PURE__ */ jsx2(Select.ScrollUpButton, { className: "mui-select__scroll-button", children: /* @__PURE__ */ jsx2(ChevronUpIcon, { size: 12 }) }),
|
|
156
|
-
/* @__PURE__ */ jsx2(Select.Viewport, { className: "mui-select__viewport", children }),
|
|
157
|
-
/* @__PURE__ */ jsx2(Select.ScrollDownButton, { className: "mui-select__scroll-button", children: /* @__PURE__ */ jsx2(ChevronDownIcon, { size: 12 }) })
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
|
-
) });
|
|
161
|
-
}
|
|
162
|
-
function Label2({
|
|
163
|
-
className,
|
|
164
|
-
...props
|
|
165
|
-
}) {
|
|
166
|
-
return /* @__PURE__ */ jsx2(
|
|
167
|
-
Select.Label,
|
|
168
|
-
{
|
|
169
|
-
className: cx("mui-select__label", className),
|
|
170
|
-
...props
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
function Item2({
|
|
175
|
-
className,
|
|
176
|
-
children,
|
|
177
|
-
...props
|
|
178
|
-
}) {
|
|
179
|
-
return /* @__PURE__ */ jsxs(
|
|
180
|
-
Select.Item,
|
|
181
|
-
{
|
|
182
|
-
className: cx("mui-select__item", className),
|
|
183
|
-
...props,
|
|
184
|
-
children: [
|
|
185
|
-
/* @__PURE__ */ jsx2("span", { className: "mui-select__item-leading", "aria-hidden": "true", children: /* @__PURE__ */ jsx2(Select.ItemIndicator, { className: "mui-select__item-indicator", children: /* @__PURE__ */ jsx2(CheckIcon, { size: 10 }) }) }),
|
|
186
|
-
/* @__PURE__ */ jsx2(Select.ItemText, { className: "mui-select__item-text", children })
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
function Separator2({
|
|
192
|
-
className,
|
|
193
|
-
...props
|
|
194
|
-
}) {
|
|
195
|
-
return /* @__PURE__ */ jsx2(
|
|
196
|
-
Select.Separator,
|
|
197
|
-
{
|
|
198
|
-
className: cx("mui-select__separator", className),
|
|
199
|
-
...props
|
|
200
|
-
}
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
var Select2 = {
|
|
204
|
-
Root: Root2,
|
|
205
|
-
Group: Group2,
|
|
206
|
-
Value: Value2,
|
|
207
|
-
Trigger: Trigger2,
|
|
208
|
-
Content: Content2,
|
|
209
|
-
Label: Label2,
|
|
210
|
-
Item: Item2,
|
|
211
|
-
Separator: Separator2
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
export {
|
|
215
|
-
Select2 as Select
|
|
216
|
-
};
|
package/dist/chunk-3VYNJ6UM.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cx
|
|
3
|
-
} from "./chunk-6TNEFWVX.js";
|
|
4
|
-
|
|
5
|
-
// src/foundation/input.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
var Input = React.forwardRef(
|
|
9
|
-
({ className, disabled, size = "md", ...props }, ref) => {
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
"input",
|
|
12
|
-
{
|
|
13
|
-
ref,
|
|
14
|
-
className: cx("mui-input", className),
|
|
15
|
-
"data-disabled": disabled ? "" : void 0,
|
|
16
|
-
"data-size": size,
|
|
17
|
-
disabled,
|
|
18
|
-
...props
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
Input.displayName = "Input";
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
Input
|
|
27
|
-
};
|
package/dist/chunk-3YY2G3JK.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useOverlayLayerProps
|
|
3
|
-
} from "./chunk-BH4MPO4N.js";
|
|
4
|
-
import {
|
|
5
|
-
cx
|
|
6
|
-
} from "./chunk-6TNEFWVX.js";
|
|
7
|
-
|
|
8
|
-
// src/overlay/popover.tsx
|
|
9
|
-
import * as React2 from "react";
|
|
10
|
-
|
|
11
|
-
// ../primitives/src/overlay/popover.tsx
|
|
12
|
-
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import { jsx } from "react/jsx-runtime";
|
|
15
|
-
var Root = (props) => {
|
|
16
|
-
return /* @__PURE__ */ jsx(PopoverPrimitive.Root, { "data-scope": "popover", "data-part": "root", ...props });
|
|
17
|
-
};
|
|
18
|
-
var Trigger = React.forwardRef((props, ref) => {
|
|
19
|
-
return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { ref, "data-scope": "popover", "data-part": "trigger", ...props });
|
|
20
|
-
});
|
|
21
|
-
var Portal = (props) => {
|
|
22
|
-
return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { "data-scope": "popover", "data-part": "portal", ...props });
|
|
23
|
-
};
|
|
24
|
-
var Content = React.forwardRef(
|
|
25
|
-
({
|
|
26
|
-
className,
|
|
27
|
-
children,
|
|
28
|
-
finalFocus,
|
|
29
|
-
initialFocus,
|
|
30
|
-
align = "start",
|
|
31
|
-
collisionPadding = 8,
|
|
32
|
-
sideOffset = 4,
|
|
33
|
-
...props
|
|
34
|
-
}, ref) => {
|
|
35
|
-
return /* @__PURE__ */ jsx(
|
|
36
|
-
PopoverPrimitive.Positioner,
|
|
37
|
-
{
|
|
38
|
-
"data-scope": "popover",
|
|
39
|
-
"data-part": "positioner",
|
|
40
|
-
align,
|
|
41
|
-
collisionPadding,
|
|
42
|
-
sideOffset,
|
|
43
|
-
...props,
|
|
44
|
-
children: /* @__PURE__ */ jsx(
|
|
45
|
-
PopoverPrimitive.Popup,
|
|
46
|
-
{
|
|
47
|
-
ref,
|
|
48
|
-
"data-scope": "popover",
|
|
49
|
-
"data-part": "content",
|
|
50
|
-
className,
|
|
51
|
-
finalFocus,
|
|
52
|
-
initialFocus,
|
|
53
|
-
children
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
Root.displayName = "Popover.Root";
|
|
61
|
-
Trigger.displayName = "Popover.Trigger";
|
|
62
|
-
Portal.displayName = "Popover.Portal";
|
|
63
|
-
Content.displayName = "Popover.Content";
|
|
64
|
-
var Popover = {
|
|
65
|
-
Root,
|
|
66
|
-
Trigger,
|
|
67
|
-
Portal,
|
|
68
|
-
Content
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
// src/overlay/popover.tsx
|
|
72
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
73
|
-
function Root2(props) {
|
|
74
|
-
return /* @__PURE__ */ jsx2(
|
|
75
|
-
Popover.Root,
|
|
76
|
-
{
|
|
77
|
-
...props
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
var Trigger2 = React2.forwardRef(
|
|
82
|
-
(props, ref) => {
|
|
83
|
-
return /* @__PURE__ */ jsx2(
|
|
84
|
-
Popover.Trigger,
|
|
85
|
-
{
|
|
86
|
-
ref,
|
|
87
|
-
...props
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
function Portal2(props) {
|
|
93
|
-
return /* @__PURE__ */ jsx2(
|
|
94
|
-
Popover.Portal,
|
|
95
|
-
{
|
|
96
|
-
...props
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
function Content2({
|
|
101
|
-
className,
|
|
102
|
-
sideOffset = 4,
|
|
103
|
-
...props
|
|
104
|
-
}) {
|
|
105
|
-
const layerProps = useOverlayLayerProps(props);
|
|
106
|
-
return /* @__PURE__ */ jsx2(Popover.Portal, { children: /* @__PURE__ */ jsx2(
|
|
107
|
-
Popover.Content,
|
|
108
|
-
{
|
|
109
|
-
className: cx("mui-popover__content", className),
|
|
110
|
-
sideOffset,
|
|
111
|
-
...layerProps
|
|
112
|
-
}
|
|
113
|
-
) });
|
|
114
|
-
}
|
|
115
|
-
Trigger2.displayName = "Popover.Trigger";
|
|
116
|
-
var Popover2 = {
|
|
117
|
-
Root: Root2,
|
|
118
|
-
Trigger: Trigger2,
|
|
119
|
-
Portal: Portal2,
|
|
120
|
-
Content: Content2
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export {
|
|
124
|
-
Popover2 as Popover
|
|
125
|
-
};
|
package/dist/chunk-5GQEJQKE.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cx
|
|
3
|
-
} from "./chunk-6TNEFWVX.js";
|
|
4
|
-
|
|
5
|
-
// src/foundation/checkbox.tsx
|
|
6
|
-
import { CheckIcon } from "lucide-react";
|
|
7
|
-
|
|
8
|
-
// ../primitives/src/foundation/checkbox.tsx
|
|
9
|
-
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
10
|
-
import * as React from "react";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
var Root = React.forwardRef((props, ref) => {
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
CheckboxPrimitive.Root,
|
|
15
|
-
{
|
|
16
|
-
ref,
|
|
17
|
-
"data-scope": "checkbox",
|
|
18
|
-
"data-part": "root",
|
|
19
|
-
...props
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
});
|
|
23
|
-
var Indicator = React.forwardRef((props, ref) => {
|
|
24
|
-
return /* @__PURE__ */ jsx(
|
|
25
|
-
CheckboxPrimitive.Indicator,
|
|
26
|
-
{
|
|
27
|
-
ref,
|
|
28
|
-
"data-scope": "checkbox",
|
|
29
|
-
"data-part": "indicator",
|
|
30
|
-
...props
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
});
|
|
34
|
-
Root.displayName = "Checkbox.Root";
|
|
35
|
-
Indicator.displayName = "Checkbox.Indicator";
|
|
36
|
-
var Checkbox = {
|
|
37
|
-
Root,
|
|
38
|
-
Indicator
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// src/foundation/checkbox.tsx
|
|
42
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
43
|
-
function Checkbox2({ className, children, size = "md", ...props }) {
|
|
44
|
-
return /* @__PURE__ */ jsxs(
|
|
45
|
-
Checkbox.Root,
|
|
46
|
-
{
|
|
47
|
-
className: cx("mui-checkbox", className),
|
|
48
|
-
"data-size": size,
|
|
49
|
-
...props,
|
|
50
|
-
children: [
|
|
51
|
-
/* @__PURE__ */ jsx2(Checkbox.Indicator, { className: "mui-checkbox__indicator", children: /* @__PURE__ */ jsx2(CheckIcon, { size: 10, strokeWidth: 3 }) }),
|
|
52
|
-
children
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export {
|
|
59
|
-
Checkbox2 as Checkbox
|
|
60
|
-
};
|
package/dist/chunk-6TNEFWVX.js
DELETED
package/dist/chunk-BH4MPO4N.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// src/overlay/layer-context.tsx
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
var OverlayLayerContext = React.createContext("root");
|
|
5
|
-
function OverlayLayerProvider({
|
|
6
|
-
children,
|
|
7
|
-
value
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(OverlayLayerContext.Provider, { value, children });
|
|
10
|
-
}
|
|
11
|
-
function useOverlayLayerProps(props) {
|
|
12
|
-
const layer = React.useContext(OverlayLayerContext);
|
|
13
|
-
if (layer === "root") {
|
|
14
|
-
return props;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
...props,
|
|
18
|
-
"data-mui-layer": layer
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
OverlayLayerProvider,
|
|
24
|
-
useOverlayLayerProps
|
|
25
|
-
};
|
package/dist/chunk-F6GH4X7N.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cx
|
|
3
|
-
} from "./chunk-6TNEFWVX.js";
|
|
4
|
-
|
|
5
|
-
// src/foundation/button.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
var Button = React.forwardRef(
|
|
9
|
-
({
|
|
10
|
-
className,
|
|
11
|
-
variant = "default",
|
|
12
|
-
size = "md",
|
|
13
|
-
disabled,
|
|
14
|
-
...props
|
|
15
|
-
}, ref) => {
|
|
16
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
-
"button",
|
|
18
|
-
{
|
|
19
|
-
ref,
|
|
20
|
-
className: cx("mui-button", className),
|
|
21
|
-
"data-size": size,
|
|
22
|
-
"data-variant": variant,
|
|
23
|
-
"data-disabled": disabled ? "" : void 0,
|
|
24
|
-
disabled,
|
|
25
|
-
...props
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
Button.displayName = "Button";
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
Button
|
|
34
|
-
};
|
package/dist/chunk-HYN2P4OY.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cx
|
|
3
|
-
} from "./chunk-6TNEFWVX.js";
|
|
4
|
-
|
|
5
|
-
// ../primitives/src/foundation/radio-group.tsx
|
|
6
|
-
import { Radio } from "@base-ui/react/radio";
|
|
7
|
-
import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var Root = React.forwardRef((props, ref) => {
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
-
RadioGroupPrimitive,
|
|
13
|
-
{
|
|
14
|
-
ref,
|
|
15
|
-
"data-scope": "radio-group",
|
|
16
|
-
"data-part": "root",
|
|
17
|
-
...props
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
});
|
|
21
|
-
var Item = React.forwardRef((props, ref) => {
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
Radio.Root,
|
|
24
|
-
{
|
|
25
|
-
ref,
|
|
26
|
-
"data-scope": "radio-group",
|
|
27
|
-
"data-part": "item",
|
|
28
|
-
...props
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
});
|
|
32
|
-
var Indicator = React.forwardRef((props, ref) => {
|
|
33
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
-
Radio.Indicator,
|
|
35
|
-
{
|
|
36
|
-
ref,
|
|
37
|
-
"data-scope": "radio-group",
|
|
38
|
-
"data-part": "indicator",
|
|
39
|
-
...props
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
Root.displayName = "RadioGroup.Root";
|
|
44
|
-
Item.displayName = "RadioGroup.Item";
|
|
45
|
-
Indicator.displayName = "RadioGroup.Indicator";
|
|
46
|
-
var RadioGroupPrimitiveParts = {
|
|
47
|
-
Root,
|
|
48
|
-
Item,
|
|
49
|
-
Indicator
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
// src/foundation/radio-group.tsx
|
|
53
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
54
|
-
function Root2({ className, ...props }) {
|
|
55
|
-
return /* @__PURE__ */ jsx2(
|
|
56
|
-
RadioGroupPrimitiveParts.Root,
|
|
57
|
-
{
|
|
58
|
-
className: cx("mui-radio-group", className),
|
|
59
|
-
...props
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
function Item2({ className, children, size = "md", ...props }) {
|
|
64
|
-
return /* @__PURE__ */ jsxs(
|
|
65
|
-
RadioGroupPrimitiveParts.Item,
|
|
66
|
-
{
|
|
67
|
-
className: cx("mui-radio-group__item", className),
|
|
68
|
-
"data-size": size,
|
|
69
|
-
...props,
|
|
70
|
-
children: [
|
|
71
|
-
/* @__PURE__ */ jsx2(RadioGroupPrimitiveParts.Indicator, { className: "mui-radio-group__indicator" }),
|
|
72
|
-
children
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
var RadioGroup = {
|
|
78
|
-
Root: Root2,
|
|
79
|
-
Item: Item2
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export {
|
|
83
|
-
RadioGroup
|
|
84
|
-
};
|
package/dist/chunk-OIUVLPTE.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cx
|
|
3
|
-
} from "./chunk-6TNEFWVX.js";
|
|
4
|
-
|
|
5
|
-
// ../primitives/src/foundation/switch.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
var Root = React.forwardRef((props, ref) => {
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
SwitchPrimitive.Root,
|
|
12
|
-
{
|
|
13
|
-
ref,
|
|
14
|
-
"data-scope": "switch",
|
|
15
|
-
"data-part": "root",
|
|
16
|
-
...props
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
});
|
|
20
|
-
var Thumb = React.forwardRef((props, ref) => {
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
SwitchPrimitive.Thumb,
|
|
23
|
-
{
|
|
24
|
-
ref,
|
|
25
|
-
"data-scope": "switch",
|
|
26
|
-
"data-part": "thumb",
|
|
27
|
-
...props
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
});
|
|
31
|
-
Root.displayName = "Switch.Root";
|
|
32
|
-
Thumb.displayName = "Switch.Thumb";
|
|
33
|
-
var Switch = {
|
|
34
|
-
Root,
|
|
35
|
-
Thumb
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
// src/foundation/switch.tsx
|
|
39
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
40
|
-
function Switch2({ className, size = "md", ...props }) {
|
|
41
|
-
return /* @__PURE__ */ jsx2(
|
|
42
|
-
Switch.Root,
|
|
43
|
-
{
|
|
44
|
-
className: cx("mui-switch", className),
|
|
45
|
-
"data-size": size,
|
|
46
|
-
...props,
|
|
47
|
-
children: /* @__PURE__ */ jsx2(Switch.Thumb, { className: "mui-switch__thumb" })
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export {
|
|
53
|
-
Switch2 as Switch
|
|
54
|
-
};
|