@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.
Files changed (110) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -92
  3. package/dist/InterVariable-Italic.woff2 +0 -0
  4. package/dist/InterVariable.woff2 +0 -0
  5. package/dist/OFL.txt +92 -0
  6. package/dist/index.js +3 -48
  7. package/dist/index.js.map +7 -0
  8. package/dist/styles.css +1 -0
  9. package/dist/tokens.css +1 -0
  10. package/dist/types/components/avatar/index.d.ts +16 -0
  11. package/dist/types/components/badge/index.d.ts +10 -0
  12. package/dist/types/components/button/index.d.ts +29 -0
  13. package/dist/types/components/checkbox/index.d.ts +11 -0
  14. package/dist/types/components/collapsible/index.d.ts +15 -0
  15. package/dist/types/components/combobox/index.d.ts +66 -0
  16. package/dist/types/components/dialog/alert-dialog.d.ts +19 -0
  17. package/dist/types/components/dialog/index.d.ts +22 -0
  18. package/dist/types/components/dialog/parts.d.ts +34 -0
  19. package/dist/types/components/field/fieldset.d.ts +11 -0
  20. package/dist/types/components/field/index.d.ts +24 -0
  21. package/dist/types/components/input/index.d.ts +19 -0
  22. package/dist/types/components/kbd/index.d.ts +5 -0
  23. package/dist/types/components/link/index.d.ts +11 -0
  24. package/dist/types/components/menu/index.d.ts +67 -0
  25. package/dist/types/components/popover/index.d.ts +28 -0
  26. package/dist/types/components/prose/index.d.ts +11 -0
  27. package/dist/types/components/radio-group/index.d.ts +15 -0
  28. package/dist/types/components/select/index.d.ts +46 -0
  29. package/dist/types/components/separator/index.d.ts +5 -0
  30. package/dist/types/components/skeleton/index.d.ts +13 -0
  31. package/dist/types/components/spinner/index.d.ts +10 -0
  32. package/dist/types/components/switch/index.d.ts +11 -0
  33. package/dist/types/components/table/index.d.ts +42 -0
  34. package/dist/types/components/tabs/index.d.ts +22 -0
  35. package/dist/types/components/textarea/index.d.ts +9 -0
  36. package/dist/types/components/toast/index.d.ts +19 -0
  37. package/dist/types/components/toggle/index.d.ts +11 -0
  38. package/dist/types/components/toggle-group/index.d.ts +13 -0
  39. package/dist/types/components/tooltip/index.d.ts +24 -0
  40. package/dist/types/index.d.ts +30 -0
  41. package/dist/types/internal/class-name.d.ts +7 -0
  42. package/dist/types/internal/popup.d.ts +9 -0
  43. package/dist/types/internal/size.d.ts +5 -0
  44. package/dist/types/types.d.ts +7 -0
  45. package/llms-full.txt +2145 -0
  46. package/llms.txt +53 -0
  47. package/package.json +34 -157
  48. package/dist/button.cjs +0 -74
  49. package/dist/button.d.cts +0 -15
  50. package/dist/button.d.ts +0 -15
  51. package/dist/button.js +0 -7
  52. package/dist/checkbox.cjs +0 -98
  53. package/dist/checkbox.d.cts +0 -16
  54. package/dist/checkbox.d.ts +0 -16
  55. package/dist/checkbox.js +0 -7
  56. package/dist/chunk-3DNMGJFC.js +0 -216
  57. package/dist/chunk-3VYNJ6UM.js +0 -27
  58. package/dist/chunk-3YY2G3JK.js +0 -125
  59. package/dist/chunk-5GQEJQKE.js +0 -60
  60. package/dist/chunk-6TNEFWVX.js +0 -9
  61. package/dist/chunk-BH4MPO4N.js +0 -25
  62. package/dist/chunk-F6GH4X7N.js +0 -34
  63. package/dist/chunk-HYN2P4OY.js +0 -84
  64. package/dist/chunk-OIUVLPTE.js +0 -54
  65. package/dist/chunk-S6LVYCE6.js +0 -157
  66. package/dist/chunk-SNSDJKJP.js +0 -44
  67. package/dist/chunk-WPO54YPG.js +0 -328
  68. package/dist/chunk-Z3ME5VRQ.js +0 -98
  69. package/dist/control-size-Bz2gyuyO.d.cts +0 -3
  70. package/dist/control-size-Bz2gyuyO.d.ts +0 -3
  71. package/dist/dialog.cjs +0 -203
  72. package/dist/dialog.d.cts +0 -34
  73. package/dist/dialog.d.ts +0 -34
  74. package/dist/dialog.js +0 -8
  75. package/dist/dropdown-menu.cjs +0 -378
  76. package/dist/dropdown-menu.d.cts +0 -60
  77. package/dist/dropdown-menu.d.ts +0 -60
  78. package/dist/dropdown-menu.js +0 -8
  79. package/dist/index.cjs +0 -1223
  80. package/dist/index.d.cts +0 -21
  81. package/dist/index.d.ts +0 -21
  82. package/dist/input.cjs +0 -67
  83. package/dist/input.d.cts +0 -11
  84. package/dist/input.d.ts +0 -11
  85. package/dist/input.js +0 -7
  86. package/dist/popover.cjs +0 -175
  87. package/dist/popover.d.cts +0 -53
  88. package/dist/popover.d.ts +0 -53
  89. package/dist/popover.js +0 -8
  90. package/dist/radio-group.cjs +0 -122
  91. package/dist/radio-group.d.cts +0 -25
  92. package/dist/radio-group.d.ts +0 -25
  93. package/dist/radio-group.js +0 -7
  94. package/dist/select.cjs +0 -266
  95. package/dist/select.d.cts +0 -45
  96. package/dist/select.d.ts +0 -45
  97. package/dist/select.js +0 -8
  98. package/dist/separator.cjs +0 -82
  99. package/dist/separator.d.cts +0 -12
  100. package/dist/separator.d.ts +0 -12
  101. package/dist/separator.js +0 -7
  102. package/dist/switch.cjs +0 -92
  103. package/dist/switch.d.cts +0 -16
  104. package/dist/switch.d.ts +0 -16
  105. package/dist/switch.js +0 -7
  106. package/dist/theme.css +0 -1097
  107. package/dist/tooltip.cjs +0 -148
  108. package/dist/tooltip.d.cts +0 -24
  109. package/dist/tooltip.d.ts +0 -24
  110. package/dist/tooltip.js +0 -8
package/dist/index.d.cts DELETED
@@ -1,21 +0,0 @@
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';
package/dist/index.d.ts DELETED
@@ -1,21 +0,0 @@
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/input.cjs DELETED
@@ -1,67 +0,0 @@
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
- });
package/dist/input.d.cts DELETED
@@ -1,11 +0,0 @@
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 };
package/dist/input.d.ts DELETED
@@ -1,11 +0,0 @@
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 DELETED
@@ -1,7 +0,0 @@
1
- import {
2
- Input
3
- } from "./chunk-3VYNJ6UM.js";
4
- import "./chunk-6TNEFWVX.js";
5
- export {
6
- Input
7
- };
package/dist/popover.cjs DELETED
@@ -1,175 +0,0 @@
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
- });
@@ -1,53 +0,0 @@
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 };
package/dist/popover.d.ts DELETED
@@ -1,53 +0,0 @@
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 };
package/dist/popover.js DELETED
@@ -1,8 +0,0 @@
1
- import {
2
- Popover
3
- } from "./chunk-3YY2G3JK.js";
4
- import "./chunk-BH4MPO4N.js";
5
- import "./chunk-6TNEFWVX.js";
6
- export {
7
- Popover
8
- };
@@ -1,122 +0,0 @@
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
- });
@@ -1,25 +0,0 @@
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 };
@@ -1,25 +0,0 @@
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 };
@@ -1,7 +0,0 @@
1
- import {
2
- RadioGroup
3
- } from "./chunk-HYN2P4OY.js";
4
- import "./chunk-6TNEFWVX.js";
5
- export {
6
- RadioGroup
7
- };