@usememos/ui 26.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +117 -0
  2. package/dist/button.cjs +74 -0
  3. package/dist/button.d.cts +15 -0
  4. package/dist/button.d.ts +15 -0
  5. package/dist/button.js +7 -0
  6. package/dist/checkbox.cjs +98 -0
  7. package/dist/checkbox.d.cts +16 -0
  8. package/dist/checkbox.d.ts +16 -0
  9. package/dist/checkbox.js +7 -0
  10. package/dist/chunk-3DNMGJFC.js +216 -0
  11. package/dist/chunk-3VYNJ6UM.js +27 -0
  12. package/dist/chunk-3YY2G3JK.js +125 -0
  13. package/dist/chunk-5GQEJQKE.js +60 -0
  14. package/dist/chunk-6TNEFWVX.js +9 -0
  15. package/dist/chunk-BH4MPO4N.js +25 -0
  16. package/dist/chunk-F6GH4X7N.js +34 -0
  17. package/dist/chunk-HYN2P4OY.js +84 -0
  18. package/dist/chunk-OIUVLPTE.js +54 -0
  19. package/dist/chunk-S6LVYCE6.js +157 -0
  20. package/dist/chunk-SNSDJKJP.js +44 -0
  21. package/dist/chunk-WPO54YPG.js +328 -0
  22. package/dist/chunk-Z3ME5VRQ.js +98 -0
  23. package/dist/control-size-Bz2gyuyO.d.cts +3 -0
  24. package/dist/control-size-Bz2gyuyO.d.ts +3 -0
  25. package/dist/dialog.cjs +203 -0
  26. package/dist/dialog.d.cts +34 -0
  27. package/dist/dialog.d.ts +34 -0
  28. package/dist/dialog.js +8 -0
  29. package/dist/dropdown-menu.cjs +378 -0
  30. package/dist/dropdown-menu.d.cts +60 -0
  31. package/dist/dropdown-menu.d.ts +60 -0
  32. package/dist/dropdown-menu.js +8 -0
  33. package/dist/index.cjs +1223 -0
  34. package/dist/index.d.cts +21 -0
  35. package/dist/index.d.ts +21 -0
  36. package/dist/index.js +48 -0
  37. package/dist/input.cjs +67 -0
  38. package/dist/input.d.cts +11 -0
  39. package/dist/input.d.ts +11 -0
  40. package/dist/input.js +7 -0
  41. package/dist/popover.cjs +175 -0
  42. package/dist/popover.d.cts +53 -0
  43. package/dist/popover.d.ts +53 -0
  44. package/dist/popover.js +8 -0
  45. package/dist/radio-group.cjs +122 -0
  46. package/dist/radio-group.d.cts +25 -0
  47. package/dist/radio-group.d.ts +25 -0
  48. package/dist/radio-group.js +7 -0
  49. package/dist/select.cjs +266 -0
  50. package/dist/select.d.cts +45 -0
  51. package/dist/select.d.ts +45 -0
  52. package/dist/select.js +8 -0
  53. package/dist/separator.cjs +82 -0
  54. package/dist/separator.d.cts +12 -0
  55. package/dist/separator.d.ts +12 -0
  56. package/dist/separator.js +7 -0
  57. package/dist/switch.cjs +92 -0
  58. package/dist/switch.d.cts +16 -0
  59. package/dist/switch.d.ts +16 -0
  60. package/dist/switch.js +7 -0
  61. package/dist/theme.css +1097 -0
  62. package/dist/tooltip.cjs +148 -0
  63. package/dist/tooltip.d.cts +24 -0
  64. package/dist/tooltip.d.ts +24 -0
  65. package/dist/tooltip.js +8 -0
  66. package/package.json +172 -0
@@ -0,0 +1,21 @@
1
+ export { Button, ButtonProps, ButtonSize, ButtonVariant } from './button.cjs';
2
+ export { Checkbox, CheckboxProps } from './checkbox.cjs';
3
+ export { Input, InputProps } from './input.cjs';
4
+ export { RadioGroup } from './radio-group.cjs';
5
+ export { Separator, SeparatorProps } from './separator.cjs';
6
+ export { Switch, SwitchProps } from './switch.cjs';
7
+ export { Dialog } from './dialog.cjs';
8
+ export { DropdownMenu } from './dropdown-menu.cjs';
9
+ export { Popover } from './popover.cjs';
10
+ export { Tooltip } from './tooltip.cjs';
11
+ export { Select } from './select.cjs';
12
+ export { C as ControlSize } from './control-size-Bz2gyuyO.cjs';
13
+ import 'react';
14
+ import 'react/jsx-runtime';
15
+ import '@base-ui/react';
16
+ import '@base-ui/react/radio';
17
+ import '@base-ui/react/radio-group';
18
+ import '@base-ui/react/dialog';
19
+ import '@base-ui/react/menu';
20
+ import '@base-ui/react/tooltip';
21
+ import '@base-ui/react/select';
@@ -0,0 +1,21 @@
1
+ export { Button, ButtonProps, ButtonSize, ButtonVariant } from './button.js';
2
+ export { Checkbox, CheckboxProps } from './checkbox.js';
3
+ export { Input, InputProps } from './input.js';
4
+ export { RadioGroup } from './radio-group.js';
5
+ export { Separator, SeparatorProps } from './separator.js';
6
+ export { Switch, SwitchProps } from './switch.js';
7
+ export { Dialog } from './dialog.js';
8
+ export { DropdownMenu } from './dropdown-menu.js';
9
+ export { Popover } from './popover.js';
10
+ export { Tooltip } from './tooltip.js';
11
+ export { Select } from './select.js';
12
+ export { C as ControlSize } from './control-size-Bz2gyuyO.js';
13
+ import 'react';
14
+ import 'react/jsx-runtime';
15
+ import '@base-ui/react';
16
+ import '@base-ui/react/radio';
17
+ import '@base-ui/react/radio-group';
18
+ import '@base-ui/react/dialog';
19
+ import '@base-ui/react/menu';
20
+ import '@base-ui/react/tooltip';
21
+ import '@base-ui/react/select';
package/dist/index.js ADDED
@@ -0,0 +1,48 @@
1
+ import {
2
+ Select
3
+ } from "./chunk-3DNMGJFC.js";
4
+ import {
5
+ Separator
6
+ } from "./chunk-SNSDJKJP.js";
7
+ import {
8
+ Switch
9
+ } from "./chunk-OIUVLPTE.js";
10
+ import {
11
+ Tooltip
12
+ } from "./chunk-Z3ME5VRQ.js";
13
+ import {
14
+ Button
15
+ } from "./chunk-F6GH4X7N.js";
16
+ import {
17
+ Checkbox
18
+ } from "./chunk-5GQEJQKE.js";
19
+ import {
20
+ Input
21
+ } from "./chunk-3VYNJ6UM.js";
22
+ import {
23
+ Dialog
24
+ } from "./chunk-S6LVYCE6.js";
25
+ import {
26
+ DropdownMenu
27
+ } from "./chunk-WPO54YPG.js";
28
+ import {
29
+ Popover
30
+ } from "./chunk-3YY2G3JK.js";
31
+ import "./chunk-BH4MPO4N.js";
32
+ import {
33
+ RadioGroup
34
+ } from "./chunk-HYN2P4OY.js";
35
+ import "./chunk-6TNEFWVX.js";
36
+ export {
37
+ Button,
38
+ Checkbox,
39
+ Dialog,
40
+ DropdownMenu,
41
+ Input,
42
+ Popover,
43
+ RadioGroup,
44
+ Select,
45
+ Separator,
46
+ Switch,
47
+ Tooltip
48
+ };
package/dist/input.cjs ADDED
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/input.ts
31
+ var input_exports = {};
32
+ __export(input_exports, {
33
+ Input: () => Input
34
+ });
35
+ module.exports = __toCommonJS(input_exports);
36
+
37
+ // src/foundation/input.tsx
38
+ var React = __toESM(require("react"), 1);
39
+
40
+ // src/shared/cx.ts
41
+ var import_clsx = require("clsx");
42
+ function cx(...values) {
43
+ return (0, import_clsx.clsx)(values);
44
+ }
45
+
46
+ // src/foundation/input.tsx
47
+ var import_jsx_runtime = require("react/jsx-runtime");
48
+ var Input = React.forwardRef(
49
+ ({ className, disabled, size = "md", ...props }, ref) => {
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51
+ "input",
52
+ {
53
+ ref,
54
+ className: cx("mui-input", className),
55
+ "data-disabled": disabled ? "" : void 0,
56
+ "data-size": size,
57
+ disabled,
58
+ ...props
59
+ }
60
+ );
61
+ }
62
+ );
63
+ Input.displayName = "Input";
64
+ // Annotate the CommonJS export names for ESM import in node:
65
+ 0 && (module.exports = {
66
+ Input
67
+ });
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { C as ControlSize } from './control-size-Bz2gyuyO.cjs';
3
+
4
+ type InputProps = Omit<React.ComponentPropsWithoutRef<"input">, "size"> & {
5
+ size?: ControlSize;
6
+ };
7
+ declare const Input: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size"> & {
8
+ size?: ControlSize;
9
+ } & React.RefAttributes<HTMLInputElement>>;
10
+
11
+ export { Input, type InputProps };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { C as ControlSize } from './control-size-Bz2gyuyO.js';
3
+
4
+ type InputProps = Omit<React.ComponentPropsWithoutRef<"input">, "size"> & {
5
+ size?: ControlSize;
6
+ };
7
+ declare const Input: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size"> & {
8
+ size?: ControlSize;
9
+ } & React.RefAttributes<HTMLInputElement>>;
10
+
11
+ export { Input, type InputProps };
package/dist/input.js ADDED
@@ -0,0 +1,7 @@
1
+ import {
2
+ Input
3
+ } from "./chunk-3VYNJ6UM.js";
4
+ import "./chunk-6TNEFWVX.js";
5
+ export {
6
+ Input
7
+ };
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/popover.ts
31
+ var popover_exports = {};
32
+ __export(popover_exports, {
33
+ Popover: () => Popover2
34
+ });
35
+ module.exports = __toCommonJS(popover_exports);
36
+
37
+ // src/overlay/popover.tsx
38
+ var React3 = __toESM(require("react"), 1);
39
+
40
+ // ../primitives/src/overlay/popover.tsx
41
+ var import_popover = require("@base-ui/react/popover");
42
+ var React = __toESM(require("react"), 1);
43
+ var import_jsx_runtime = require("react/jsx-runtime");
44
+ var Root = (props) => {
45
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popover.Popover.Root, { "data-scope": "popover", "data-part": "root", ...props });
46
+ };
47
+ var Trigger = React.forwardRef((props, ref) => {
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popover.Popover.Trigger, { ref, "data-scope": "popover", "data-part": "trigger", ...props });
49
+ });
50
+ var Portal = (props) => {
51
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popover.Popover.Portal, { "data-scope": "popover", "data-part": "portal", ...props });
52
+ };
53
+ var Content = React.forwardRef(
54
+ ({
55
+ className,
56
+ children,
57
+ finalFocus,
58
+ initialFocus,
59
+ align = "start",
60
+ collisionPadding = 8,
61
+ sideOffset = 4,
62
+ ...props
63
+ }, ref) => {
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
65
+ import_popover.Popover.Positioner,
66
+ {
67
+ "data-scope": "popover",
68
+ "data-part": "positioner",
69
+ align,
70
+ collisionPadding,
71
+ sideOffset,
72
+ ...props,
73
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ import_popover.Popover.Popup,
75
+ {
76
+ ref,
77
+ "data-scope": "popover",
78
+ "data-part": "content",
79
+ className,
80
+ finalFocus,
81
+ initialFocus,
82
+ children
83
+ }
84
+ )
85
+ }
86
+ );
87
+ }
88
+ );
89
+ Root.displayName = "Popover.Root";
90
+ Trigger.displayName = "Popover.Trigger";
91
+ Portal.displayName = "Popover.Portal";
92
+ Content.displayName = "Popover.Content";
93
+ var Popover = {
94
+ Root,
95
+ Trigger,
96
+ Portal,
97
+ Content
98
+ };
99
+
100
+ // src/overlay/layer-context.tsx
101
+ var React2 = __toESM(require("react"), 1);
102
+ var import_jsx_runtime2 = require("react/jsx-runtime");
103
+ var OverlayLayerContext = React2.createContext("root");
104
+ function useOverlayLayerProps(props) {
105
+ const layer = React2.useContext(OverlayLayerContext);
106
+ if (layer === "root") {
107
+ return props;
108
+ }
109
+ return {
110
+ ...props,
111
+ "data-mui-layer": layer
112
+ };
113
+ }
114
+
115
+ // src/shared/cx.ts
116
+ var import_clsx = require("clsx");
117
+ function cx(...values) {
118
+ return (0, import_clsx.clsx)(values);
119
+ }
120
+
121
+ // src/overlay/popover.tsx
122
+ var import_jsx_runtime3 = require("react/jsx-runtime");
123
+ function Root2(props) {
124
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
125
+ Popover.Root,
126
+ {
127
+ ...props
128
+ }
129
+ );
130
+ }
131
+ var Trigger2 = React3.forwardRef(
132
+ (props, ref) => {
133
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
134
+ Popover.Trigger,
135
+ {
136
+ ref,
137
+ ...props
138
+ }
139
+ );
140
+ }
141
+ );
142
+ function Portal2(props) {
143
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
144
+ Popover.Portal,
145
+ {
146
+ ...props
147
+ }
148
+ );
149
+ }
150
+ function Content2({
151
+ className,
152
+ sideOffset = 4,
153
+ ...props
154
+ }) {
155
+ const layerProps = useOverlayLayerProps(props);
156
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
157
+ Popover.Content,
158
+ {
159
+ className: cx("mui-popover__content", className),
160
+ sideOffset,
161
+ ...layerProps
162
+ }
163
+ ) });
164
+ }
165
+ Trigger2.displayName = "Popover.Trigger";
166
+ var Popover2 = {
167
+ Root: Root2,
168
+ Trigger: Trigger2,
169
+ Portal: Portal2,
170
+ Content: Content2
171
+ };
172
+ // Annotate the CommonJS export names for ESM import in node:
173
+ 0 && (module.exports = {
174
+ Popover
175
+ });
@@ -0,0 +1,53 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ type PopoverRootProps = {
5
+ children?: React.ReactNode;
6
+ defaultOpen?: boolean;
7
+ open?: boolean;
8
+ onOpenChange?: (open: boolean, eventDetails: unknown) => void;
9
+ onOpenChangeComplete?: (open: boolean) => void;
10
+ actionsRef?: React.RefObject<{
11
+ unmount: () => void;
12
+ close: () => void;
13
+ } | null>;
14
+ modal?: boolean | "trap-focus";
15
+ triggerId?: string | null;
16
+ defaultTriggerId?: string | null;
17
+ handle?: unknown;
18
+ };
19
+ type PopoverPortalProps = {
20
+ children?: React.ReactNode;
21
+ container?: HTMLElement | null | React.RefObject<HTMLElement | null>;
22
+ keepMounted?: boolean;
23
+ };
24
+ type PopoverContentProps = Omit<React.HTMLAttributes<HTMLDivElement>, "style"> & {
25
+ side?: "top" | "right" | "bottom" | "left";
26
+ align?: "start" | "center" | "end";
27
+ sideOffset?: number;
28
+ alignOffset?: number;
29
+ collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
30
+ sticky?: boolean;
31
+ initialFocus?: boolean | React.RefObject<HTMLElement | null> | ((openType: unknown) => void | boolean | HTMLElement | null);
32
+ finalFocus?: boolean | React.RefObject<HTMLElement | null> | ((closeType: unknown) => void | boolean | HTMLElement | null);
33
+ style?: React.CSSProperties;
34
+ };
35
+ declare function Root(props: PopoverRootProps): react_jsx_runtime.JSX.Element;
36
+ declare function Portal(props: PopoverPortalProps): react_jsx_runtime.JSX.Element;
37
+ declare function Content({ className, sideOffset, ...props }: PopoverContentProps): react_jsx_runtime.JSX.Element;
38
+ declare const Popover: {
39
+ Root: typeof Root;
40
+ Trigger: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
41
+ render?: React.ReactElement | ((props: React.HTMLAttributes<HTMLElement>, state: unknown) => React.ReactNode);
42
+ nativeButton?: boolean;
43
+ handle?: unknown;
44
+ payload?: unknown;
45
+ openOnHover?: boolean;
46
+ delay?: number;
47
+ closeDelay?: number;
48
+ } & React.RefAttributes<HTMLButtonElement>>;
49
+ Portal: typeof Portal;
50
+ Content: typeof Content;
51
+ };
52
+
53
+ export { Popover };
@@ -0,0 +1,53 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ type PopoverRootProps = {
5
+ children?: React.ReactNode;
6
+ defaultOpen?: boolean;
7
+ open?: boolean;
8
+ onOpenChange?: (open: boolean, eventDetails: unknown) => void;
9
+ onOpenChangeComplete?: (open: boolean) => void;
10
+ actionsRef?: React.RefObject<{
11
+ unmount: () => void;
12
+ close: () => void;
13
+ } | null>;
14
+ modal?: boolean | "trap-focus";
15
+ triggerId?: string | null;
16
+ defaultTriggerId?: string | null;
17
+ handle?: unknown;
18
+ };
19
+ type PopoverPortalProps = {
20
+ children?: React.ReactNode;
21
+ container?: HTMLElement | null | React.RefObject<HTMLElement | null>;
22
+ keepMounted?: boolean;
23
+ };
24
+ type PopoverContentProps = Omit<React.HTMLAttributes<HTMLDivElement>, "style"> & {
25
+ side?: "top" | "right" | "bottom" | "left";
26
+ align?: "start" | "center" | "end";
27
+ sideOffset?: number;
28
+ alignOffset?: number;
29
+ collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
30
+ sticky?: boolean;
31
+ initialFocus?: boolean | React.RefObject<HTMLElement | null> | ((openType: unknown) => void | boolean | HTMLElement | null);
32
+ finalFocus?: boolean | React.RefObject<HTMLElement | null> | ((closeType: unknown) => void | boolean | HTMLElement | null);
33
+ style?: React.CSSProperties;
34
+ };
35
+ declare function Root(props: PopoverRootProps): react_jsx_runtime.JSX.Element;
36
+ declare function Portal(props: PopoverPortalProps): react_jsx_runtime.JSX.Element;
37
+ declare function Content({ className, sideOffset, ...props }: PopoverContentProps): react_jsx_runtime.JSX.Element;
38
+ declare const Popover: {
39
+ Root: typeof Root;
40
+ Trigger: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
41
+ render?: React.ReactElement | ((props: React.HTMLAttributes<HTMLElement>, state: unknown) => React.ReactNode);
42
+ nativeButton?: boolean;
43
+ handle?: unknown;
44
+ payload?: unknown;
45
+ openOnHover?: boolean;
46
+ delay?: number;
47
+ closeDelay?: number;
48
+ } & React.RefAttributes<HTMLButtonElement>>;
49
+ Portal: typeof Portal;
50
+ Content: typeof Content;
51
+ };
52
+
53
+ export { Popover };
@@ -0,0 +1,8 @@
1
+ import {
2
+ Popover
3
+ } from "./chunk-3YY2G3JK.js";
4
+ import "./chunk-BH4MPO4N.js";
5
+ import "./chunk-6TNEFWVX.js";
6
+ export {
7
+ Popover
8
+ };
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/radio-group.ts
31
+ var radio_group_exports = {};
32
+ __export(radio_group_exports, {
33
+ RadioGroup: () => RadioGroup
34
+ });
35
+ module.exports = __toCommonJS(radio_group_exports);
36
+
37
+ // ../primitives/src/foundation/radio-group.tsx
38
+ var import_radio = require("@base-ui/react/radio");
39
+ var import_radio_group = require("@base-ui/react/radio-group");
40
+ var React = __toESM(require("react"), 1);
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var Root = React.forwardRef((props, ref) => {
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
44
+ import_radio_group.RadioGroup,
45
+ {
46
+ ref,
47
+ "data-scope": "radio-group",
48
+ "data-part": "root",
49
+ ...props
50
+ }
51
+ );
52
+ });
53
+ var Item = React.forwardRef((props, ref) => {
54
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
+ import_radio.Radio.Root,
56
+ {
57
+ ref,
58
+ "data-scope": "radio-group",
59
+ "data-part": "item",
60
+ ...props
61
+ }
62
+ );
63
+ });
64
+ var Indicator = React.forwardRef((props, ref) => {
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
66
+ import_radio.Radio.Indicator,
67
+ {
68
+ ref,
69
+ "data-scope": "radio-group",
70
+ "data-part": "indicator",
71
+ ...props
72
+ }
73
+ );
74
+ });
75
+ Root.displayName = "RadioGroup.Root";
76
+ Item.displayName = "RadioGroup.Item";
77
+ Indicator.displayName = "RadioGroup.Indicator";
78
+ var RadioGroupPrimitiveParts = {
79
+ Root,
80
+ Item,
81
+ Indicator
82
+ };
83
+
84
+ // src/shared/cx.ts
85
+ var import_clsx = require("clsx");
86
+ function cx(...values) {
87
+ return (0, import_clsx.clsx)(values);
88
+ }
89
+
90
+ // src/foundation/radio-group.tsx
91
+ var import_jsx_runtime2 = require("react/jsx-runtime");
92
+ function Root2({ className, ...props }) {
93
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
94
+ RadioGroupPrimitiveParts.Root,
95
+ {
96
+ className: cx("mui-radio-group", className),
97
+ ...props
98
+ }
99
+ );
100
+ }
101
+ function Item2({ className, children, size = "md", ...props }) {
102
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
103
+ RadioGroupPrimitiveParts.Item,
104
+ {
105
+ className: cx("mui-radio-group__item", className),
106
+ "data-size": size,
107
+ ...props,
108
+ children: [
109
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadioGroupPrimitiveParts.Indicator, { className: "mui-radio-group__indicator" }),
110
+ children
111
+ ]
112
+ }
113
+ );
114
+ }
115
+ var RadioGroup = {
116
+ Root: Root2,
117
+ Item: Item2
118
+ };
119
+ // Annotate the CommonJS export names for ESM import in node:
120
+ 0 && (module.exports = {
121
+ RadioGroup
122
+ });
@@ -0,0 +1,25 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as _base_ui_react from '@base-ui/react';
4
+ import { Radio } from '@base-ui/react/radio';
5
+ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
6
+ import { C as ControlSize } from './control-size-Bz2gyuyO.cjs';
7
+
8
+ declare const RadioGroupPrimitiveParts: {
9
+ Root: React.ForwardRefExoticComponent<Omit<RadioGroup$1.Props<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ Item: React.ForwardRefExoticComponent<Omit<Radio.Root.Props<unknown>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
+ Indicator: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.RadioIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
12
+ };
13
+
14
+ type RootProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitiveParts.Root>;
15
+ type ItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitiveParts.Item> & {
16
+ size?: ControlSize;
17
+ };
18
+ declare function Root({ className, ...props }: RootProps): react_jsx_runtime.JSX.Element;
19
+ declare function Item({ className, children, size, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
20
+ declare const RadioGroup: {
21
+ Root: typeof Root;
22
+ Item: typeof Item;
23
+ };
24
+
25
+ export { RadioGroup };
@@ -0,0 +1,25 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as _base_ui_react from '@base-ui/react';
4
+ import { Radio } from '@base-ui/react/radio';
5
+ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
6
+ import { C as ControlSize } from './control-size-Bz2gyuyO.js';
7
+
8
+ declare const RadioGroupPrimitiveParts: {
9
+ Root: React.ForwardRefExoticComponent<Omit<RadioGroup$1.Props<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ Item: React.ForwardRefExoticComponent<Omit<Radio.Root.Props<unknown>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
+ Indicator: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.RadioIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
12
+ };
13
+
14
+ type RootProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitiveParts.Root>;
15
+ type ItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitiveParts.Item> & {
16
+ size?: ControlSize;
17
+ };
18
+ declare function Root({ className, ...props }: RootProps): react_jsx_runtime.JSX.Element;
19
+ declare function Item({ className, children, size, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
20
+ declare const RadioGroup: {
21
+ Root: typeof Root;
22
+ Item: typeof Item;
23
+ };
24
+
25
+ export { RadioGroup };
@@ -0,0 +1,7 @@
1
+ import {
2
+ RadioGroup
3
+ } from "./chunk-HYN2P4OY.js";
4
+ import "./chunk-6TNEFWVX.js";
5
+ export {
6
+ RadioGroup
7
+ };