@jonmilner/ui 0.11.1 → 0.11.3
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/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/AlertDialog/client.mjs +1 -2
- package/dist/AlertDialog/index.d.mts +0 -2
- package/dist/AlertDialog/index.mjs +1 -2
- package/dist/Avatar/Avatar.css.mjs +1 -2
- package/dist/Avatar/index.d.mts +0 -2
- package/dist/Avatar/index.mjs +1 -2
- package/dist/Avatar/ink.mjs +1 -2
- package/dist/Badge/Badge.css.mjs +1 -2
- package/dist/Badge/index.d.mts +1 -3
- package/dist/Badge/index.mjs +1 -2
- package/dist/Box/Box.css.mjs +1 -2
- package/dist/Box/ResponsiveCheck.mjs +1 -2
- package/dist/Box/base.d.mts +1 -3
- package/dist/Box/base.mjs +1 -2
- package/dist/Box/index.d.mts +0 -2
- package/dist/Box/index.mjs +1 -2
- package/dist/Button/Button.css.mjs +1 -2
- package/dist/Button/index.d.mts +1 -3
- package/dist/Button/index.mjs +1 -2
- package/dist/Checkbox/Checkbox.css.mjs +1 -2
- package/dist/Checkbox/index.d.mts +1 -3
- package/dist/Checkbox/index.mjs +1 -2
- package/dist/Chip/Chip.css.mjs +1 -2
- package/dist/Chip/index.d.mts +1 -3
- package/dist/Chip/index.mjs +1 -2
- package/dist/Clickable/Clickable.css.mjs +1 -2
- package/dist/Clickable/index.d.mts +1 -3
- package/dist/Clickable/index.mjs +1 -2
- package/dist/ColorField/ColorField.css.mjs +1 -2
- package/dist/ColorField/client.d.mts +1 -3
- package/dist/ColorField/client.mjs +1 -2
- package/dist/ColorField/index.d.mts +0 -2
- package/dist/ColorField/index.mjs +1 -2
- package/dist/Dialog/Dialog.css.d.mts +1 -3
- package/dist/Dialog/Dialog.css.mjs +1 -2
- package/dist/Dialog/client.d.mts +0 -2
- package/dist/Dialog/client.mjs +1 -2
- package/dist/Dialog/index.d.mts +0 -2
- package/dist/Dialog/index.mjs +1 -2
- package/dist/Field/Field.css.mjs +1 -2
- package/dist/Field/client.mjs +1 -2
- package/dist/Field/index.d.mts +0 -2
- package/dist/Field/index.mjs +1 -2
- package/dist/Heading/Heading.css.mjs +1 -2
- package/dist/Heading/index.d.mts +1 -3
- package/dist/Heading/index.mjs +1 -2
- package/dist/Icon/Icon.css.mjs +1 -2
- package/dist/Icon/index.d.mts +1 -3
- package/dist/Icon/index.mjs +1 -2
- package/dist/IconButton/IconButton.css.mjs +1 -2
- package/dist/IconButton/index.d.mts +1 -3
- package/dist/IconButton/index.mjs +1 -2
- package/dist/Inline/Inline.css.mjs +1 -2
- package/dist/Inline/index.d.mts +0 -2
- package/dist/Inline/index.mjs +1 -2
- package/dist/Menu/Menu.css.mjs +1 -2
- package/dist/Menu/client.d.mts +0 -2
- package/dist/Menu/client.mjs +1 -2
- package/dist/Menu/index.d.mts +0 -2
- package/dist/Menu/index.mjs +1 -2
- package/dist/MultiSelect/MultiSelect.css.mjs +1 -2
- package/dist/MultiSelect/client.d.mts +1 -3
- package/dist/MultiSelect/client.mjs +1 -2
- package/dist/MultiSelect/index.d.mts +1 -3
- package/dist/MultiSelect/index.mjs +1 -2
- package/dist/SearchField/SearchField.css.mjs +1 -2
- package/dist/SearchField/client.d.mts +1 -3
- package/dist/SearchField/client.mjs +1 -2
- package/dist/SearchField/index.d.mts +0 -2
- package/dist/SearchField/index.mjs +1 -2
- package/dist/Stack/Stack.css.mjs +1 -2
- package/dist/Stack/index.d.mts +0 -2
- package/dist/Stack/index.mjs +1 -2
- package/dist/Tabs/Tabs.css.mjs +1 -2
- package/dist/Tabs/index.d.mts +0 -2
- package/dist/Tabs/index.mjs +1 -2
- package/dist/Tag/Tag.css.mjs +1 -2
- package/dist/Tag/index.d.mts +1 -3
- package/dist/Tag/index.mjs +1 -2
- package/dist/Text/Text.css.mjs +1 -2
- package/dist/Text/index.d.mts +1 -3
- package/dist/Text/index.mjs +1 -2
- package/dist/TextField/TextField.css.mjs +1 -2
- package/dist/TextField/index.d.mts +1 -3
- package/dist/TextField/index.mjs +1 -2
- package/dist/Toast/Toast.css.mjs +1 -2
- package/dist/Toast/client.d.mts +0 -2
- package/dist/Toast/client.mjs +2 -3
- package/dist/Toast/index.d.mts +0 -2
- package/dist/Toast/index.mjs +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.css.mjs +1 -2
- package/dist/VisuallyHidden/index.d.mts +1 -3
- package/dist/VisuallyHidden/index.mjs +1 -2
- package/dist/brands/brand.d.mts +1 -3
- package/dist/brands/brand.mjs +1 -2
- package/dist/brands/check-fonts.mjs +1 -2
- package/dist/brands/default.d.mts +1 -3
- package/dist/brands/default.mjs +1 -2
- package/dist/brands/font.d.mts +1 -3
- package/dist/brands/font.mjs +1 -2
- package/dist/brands/forced-colors.mjs +1 -2
- package/dist/brands/index.d.mts +0 -2
- package/dist/brands/index.mjs +1 -2
- package/dist/brands/metrics.mjs +1 -2
- package/dist/contrast/color.d.mts +1 -3
- package/dist/contrast/color.mjs +1 -2
- package/dist/contrast/contrast.d.mts +0 -2
- package/dist/contrast/contrast.mjs +1 -2
- package/dist/contrast/mixes.mjs +1 -2
- package/dist/docs/Box.md +24 -3
- package/dist/docs/Checkbox.md +2 -2
- package/dist/docs/Field.md +2 -2
- package/dist/docs/Menu.md +1 -1
- package/dist/docs/MultiSelect.md +2 -2
- package/dist/docs/SearchField.md +1 -1
- package/dist/docs/Stack.md +26 -0
- package/dist/docs/TextField.md +3 -3
- package/dist/docs/llms.txt +7 -0
- package/dist/docs/manifest.json +1 -1
- package/dist/icons/ArrowLeftIcon.d.mts +1 -3
- package/dist/icons/ArrowLeftIcon.mjs +1 -2
- package/dist/icons/ArrowRightIcon.d.mts +1 -3
- package/dist/icons/ArrowRightIcon.mjs +1 -2
- package/dist/icons/CheckIcon.d.mts +1 -3
- package/dist/icons/CheckIcon.mjs +1 -2
- package/dist/icons/ChevronDownIcon.d.mts +1 -3
- package/dist/icons/ChevronDownIcon.mjs +1 -2
- package/dist/icons/ChevronRightIcon.d.mts +1 -3
- package/dist/icons/ChevronRightIcon.mjs +1 -2
- package/dist/icons/CircleAlertIcon.d.mts +1 -3
- package/dist/icons/CircleAlertIcon.mjs +1 -2
- package/dist/icons/CircleCheckIcon.d.mts +1 -3
- package/dist/icons/CircleCheckIcon.mjs +1 -2
- package/dist/icons/CircleDotIcon.d.mts +1 -3
- package/dist/icons/CircleDotIcon.mjs +1 -2
- package/dist/icons/CircleSlashIcon.d.mts +1 -3
- package/dist/icons/CircleSlashIcon.mjs +1 -2
- package/dist/icons/EllipsisIcon.d.mts +1 -3
- package/dist/icons/EllipsisIcon.mjs +1 -2
- package/dist/icons/GitMergeIcon.d.mts +1 -3
- package/dist/icons/GitMergeIcon.mjs +1 -2
- package/dist/icons/GitPullRequestClosedIcon.d.mts +1 -3
- package/dist/icons/GitPullRequestClosedIcon.mjs +1 -2
- package/dist/icons/GitPullRequestDraftIcon.d.mts +1 -3
- package/dist/icons/GitPullRequestDraftIcon.mjs +1 -2
- package/dist/icons/GitPullRequestIcon.d.mts +1 -3
- package/dist/icons/GitPullRequestIcon.mjs +1 -2
- package/dist/icons/InboxIcon.d.mts +1 -3
- package/dist/icons/InboxIcon.mjs +1 -2
- package/dist/icons/InfoIcon.d.mts +1 -3
- package/dist/icons/InfoIcon.mjs +1 -2
- package/dist/icons/LoaderCircleIcon.d.mts +1 -3
- package/dist/icons/LoaderCircleIcon.mjs +1 -2
- package/dist/icons/LockOpenIcon.d.mts +1 -3
- package/dist/icons/LockOpenIcon.mjs +1 -2
- package/dist/icons/PencilIcon.d.mts +1 -3
- package/dist/icons/PencilIcon.mjs +1 -2
- package/dist/icons/PlayIcon.d.mts +1 -3
- package/dist/icons/PlayIcon.mjs +1 -2
- package/dist/icons/PlusIcon.d.mts +1 -3
- package/dist/icons/PlusIcon.mjs +1 -2
- package/dist/icons/RefreshCwIcon.d.mts +1 -3
- package/dist/icons/RefreshCwIcon.mjs +1 -2
- package/dist/icons/ReplyIcon.d.mts +1 -3
- package/dist/icons/ReplyIcon.mjs +1 -2
- package/dist/icons/SearchIcon.d.mts +1 -3
- package/dist/icons/SearchIcon.mjs +1 -2
- package/dist/icons/SettingsIcon.d.mts +1 -3
- package/dist/icons/SettingsIcon.mjs +1 -2
- package/dist/icons/Trash2Icon.d.mts +1 -3
- package/dist/icons/Trash2Icon.mjs +1 -2
- package/dist/icons/XIcon.d.mts +1 -3
- package/dist/icons/XIcon.mjs +1 -2
- package/dist/icons/index.d.mts +0 -2
- package/dist/icons/index.mjs +1 -2
- package/dist/lint/index.d.mts +1 -3
- package/dist/lint/index.mjs +1 -2
- package/dist/popup/client.d.mts +1 -3
- package/dist/popup/client.mjs +1 -2
- package/dist/styles/atoms.css.d.mts +1 -3
- package/dist/styles/atoms.css.mjs +1 -2
- package/dist/styles/button-fills.mjs +1 -2
- package/dist/styles/button-parts.css.mjs +1 -2
- package/dist/styles/control-size.mjs +1 -2
- package/dist/styles/highlight.mjs +1 -2
- package/dist/styles/hover-tint.mjs +1 -2
- package/dist/styles/join.mjs +1 -2
- package/dist/styles/part-props.d.mts +1 -3
- package/dist/styles/split-style-props.mjs +1 -2
- package/dist/styles/split-text-props.mjs +1 -2
- package/dist/styles/subtle-fills.d.mts +1 -3
- package/dist/styles/subtle-fills.mjs +1 -2
- package/dist/testing/motion.d.mts +1 -3
- package/dist/testing/motion.mjs +1 -2
- package/dist/theme/FontCheck.mjs +1 -2
- package/dist/theme/ThemeProvider.d.mts +1 -3
- package/dist/theme/ThemeProvider.mjs +1 -2
- package/dist/theme/define-theme.d.mts +1 -3
- package/dist/theme/define-theme.mjs +1 -2
- package/dist/theme/use-theme-container.mjs +1 -2
- package/dist/tokens/contract.d.mts +0 -2
- package/dist/tokens/contract.mjs +1 -2
- package/dist/tokens/roles.d.mts +1 -3
- package/dist/tokens/roles.mjs +1 -2
- package/dist/tokens/scales.d.mts +1 -3
- package/dist/tokens/scales.mjs +1 -2
- package/dist/types.d.mts +1 -3
- package/package.json +4 -4
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Lucide
|
|
4
4
|
|
|
5
|
-
The components exported from `@jonmilner/ui/icons` are generated from [Lucide](https://lucide.dev) icons (lucide-static 1.
|
|
5
|
+
The components exported from `@jonmilner/ui/icons` are generated from [Lucide](https://lucide.dev) icons (lucide-static 1.65.0). Lucide's license follows.
|
|
6
6
|
|
|
7
7
|
```text
|
|
8
8
|
ISC License
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { PopupScope as e, useRecordOpenChange as t } from "../popup/client.mjs";
|
|
3
3
|
import { AlertDialog as n } from "@base-ui/react/alert-dialog";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/AlertDialog/client.tsx
|
|
6
6
|
function i(t) {
|
|
7
7
|
return /* @__PURE__ */ r(e, { children: /* @__PURE__ */ r(a, { ...t }) });
|
|
8
8
|
}
|
|
@@ -12,5 +12,4 @@ function a({ onOpenChange: e, ...i }) {
|
|
|
12
12
|
onOpenChange: t(e)
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { i as AlertDialogRootScope };
|
|
@@ -2,7 +2,6 @@ import "../Dialog/index.mjs";
|
|
|
2
2
|
import { DialogTrigger, DialogTriggerProps } from "../Dialog/client.mjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
|
|
5
|
-
//#region src/AlertDialog/index.d.ts
|
|
6
5
|
export type AlertDialogTriggerProps = DialogTriggerProps;
|
|
7
6
|
export type AlertDialogProps = Pick<AlertDialog$1.Root.Props, "open" | "defaultOpen" | "onOpenChange" | "onOpenChangeComplete"> & {
|
|
8
7
|
cancelLabel?: string;
|
|
@@ -17,5 +16,4 @@ declare function AlertDialogRoot({ title, description, confirmLabel, cancelLabel
|
|
|
17
16
|
export declare const AlertDialog: typeof AlertDialogRoot & {
|
|
18
17
|
Trigger: typeof DialogTrigger;
|
|
19
18
|
};
|
|
20
|
-
//#endregion
|
|
21
19
|
export {};
|
|
@@ -3,7 +3,7 @@ import { Dialog as t } from "../Dialog/index.mjs";
|
|
|
3
3
|
import { AlertDialogRootScope as n } from "./client.mjs";
|
|
4
4
|
import { AlertDialog as r } from "@base-ui/react/alert-dialog";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/AlertDialog/index.tsx
|
|
7
7
|
function o({ title: o, description: s, confirmLabel: c, cancelLabel: l = "Cancel", tone: u = "default", onConfirm: d, children: f, ...p }) {
|
|
8
8
|
return /* @__PURE__ */ a(n, {
|
|
9
9
|
...p,
|
|
@@ -25,5 +25,4 @@ function o({ title: o, description: s, confirmLabel: c, cancelLabel: l = "Cancel
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
var s = Object.assign(o, { Trigger: t.Trigger });
|
|
28
|
-
//#endregion
|
|
29
28
|
export { s as AlertDialog };
|
|
@@ -3,7 +3,7 @@ import "./Avatar.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/Avatar/Avatar.css.ts
|
|
7
7
|
var t = "o8rb9b0", n = "o8rb9b1", r = e({
|
|
8
8
|
defaultClassName: "o8rb9b2",
|
|
9
9
|
variantClassNames: { size: {
|
|
@@ -14,5 +14,4 @@ var t = "o8rb9b0", n = "o8rb9b1", r = e({
|
|
|
14
14
|
defaultVariants: {},
|
|
15
15
|
compoundVariants: []
|
|
16
16
|
}), i = "o8rb9b6", a = "o8rb9b7";
|
|
17
|
-
//#endregion
|
|
18
17
|
export { r as avatar, i as inkBlack, a as inkWhite, n as neutral, t as root };
|
package/dist/Avatar/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OmitEach } from "../types.mjs";
|
|
2
2
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
3
|
import { ComponentPropsWithRef } from "react";
|
|
4
|
-
//#region src/Avatar/index.d.ts
|
|
5
4
|
export type AvatarOwnProps = {
|
|
6
5
|
color?: string | null | undefined;
|
|
7
6
|
initials: string;
|
|
@@ -11,5 +10,4 @@ export type AvatarOwnProps = {
|
|
|
11
10
|
type AvatarStyleProps = Omit<StyleProps, "color" | "backgroundColor" | "inlineSize" | "blockSize">;
|
|
12
11
|
export type AvatarProps = AvatarStyleProps & AvatarOwnProps & OmitEach<ComponentPropsWithRef<"span">, keyof StyleProps | keyof AvatarOwnProps | "children" | "role" | "aria-label" | "aria-labelledby">;
|
|
13
12
|
export declare function Avatar({ initials, label, color, size, display, alignItems, justifyContent, flexShrink, borderRadius, className, style, ...props }: AvatarProps): import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
package/dist/Avatar/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { Text as n } from "../Text/index.mjs";
|
|
|
4
4
|
import { avatar as r, inkBlack as i, inkWhite as a, root as o } from "./Avatar.css.mjs";
|
|
5
5
|
import { fillFor as s, inkFor as c } from "./ink.mjs";
|
|
6
6
|
import { jsx as l } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/Avatar/index.tsx
|
|
8
8
|
var u = new Intl.Segmenter(), d = (e) => Array.from(u.segment(e), ({ segment: e }) => e).slice(0, 2).join(""), f = {
|
|
9
9
|
sm: "xs",
|
|
10
10
|
med: "sm",
|
|
@@ -41,5 +41,4 @@ function p({ initials: u, label: p, color: m, size: h = "med", display: g = "inl
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { p as Avatar };
|
package/dist/Avatar/ink.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Avatar/ink.ts
|
|
2
2
|
var e = /^#[\da-f]{6}$/i;
|
|
3
3
|
function t(t) {
|
|
4
4
|
return t != null && e.test(t) ? t : null;
|
|
@@ -14,5 +14,4 @@ function n(e) {
|
|
|
14
14
|
});
|
|
15
15
|
return .2126 * t + .7152 * n + .0722 * r > .18 ? "black" : "white";
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { t as fillFor, n as inkFor };
|
package/dist/Badge/Badge.css.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "./Badge.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/Badge/Badge.css.ts
|
|
7
7
|
var t = "_1ixfil10", n = e({
|
|
8
8
|
defaultClassName: "_1ixfil11",
|
|
9
9
|
variantClassNames: {
|
|
@@ -27,5 +27,4 @@ var t = "_1ixfil10", n = e({
|
|
|
27
27
|
defaultVariants: {},
|
|
28
28
|
compoundVariants: []
|
|
29
29
|
});
|
|
30
|
-
//#endregion
|
|
31
30
|
export { n as badge, t as root };
|
package/dist/Badge/index.d.mts
CHANGED
|
@@ -2,12 +2,10 @@ import { OmitEach } from "../types.mjs";
|
|
|
2
2
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
3
|
import { Tone } from "../styles/subtle-fills.mjs";
|
|
4
4
|
import { ComponentPropsWithRef } from "react";
|
|
5
|
-
//#region src/Badge/index.d.ts
|
|
6
5
|
export type BadgeOwnProps = {
|
|
7
6
|
size?: "sm" | "med";
|
|
8
7
|
subtle?: boolean;
|
|
9
8
|
variant?: Tone;
|
|
10
9
|
};
|
|
11
10
|
export type BadgeProps = StyleProps & BadgeOwnProps & OmitEach<ComponentPropsWithRef<"span">, keyof StyleProps | keyof BadgeOwnProps>;
|
|
12
|
-
export declare function Badge({ variant, subtle, size, display, paddingInline, paddingBlock, borderRadius, backgroundColor, color, className, children, ...props }: BadgeProps): import("react").JSX.Element | null;
|
|
13
|
-
//#endregion
|
|
11
|
+
export declare function Badge({ variant, subtle, size, display, paddingInline, paddingBlock, borderRadius, backgroundColor, color, className, children, ...props }: BadgeProps): import("react").JSX.Element | null;
|
package/dist/Badge/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { Text as n } from "../Text/index.mjs";
|
|
|
4
4
|
import { subtleFills as r } from "../styles/subtle-fills.mjs";
|
|
5
5
|
import { badge as i, root as a } from "./Badge.css.mjs";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/Badge/index.tsx
|
|
8
8
|
var s = {
|
|
9
9
|
neutral: {
|
|
10
10
|
backgroundColor: "bgMuted",
|
|
@@ -65,5 +65,4 @@ function l({ variant: l = "neutral", subtle: u = !1, size: d = "med", display: f
|
|
|
65
65
|
})
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
//#endregion
|
|
69
68
|
export { l as Badge };
|
package/dist/Box/Box.css.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect as e } from "react";
|
|
3
|
-
|
|
3
|
+
// src/Box/ResponsiveCheck.tsx
|
|
4
4
|
var t = "--jmui-responsive-css", n = !1;
|
|
5
5
|
function r() {
|
|
6
6
|
getComputedStyle(document.documentElement).getPropertyValue(t).trim() || console.warn("@jonmilner/ui: a responsive style prop rendered without the breakpoint rules, so only its `base` value applies. Add `import '@jonmilner/ui/responsive.css'` once at the app's root.");
|
|
@@ -13,5 +13,4 @@ function i() {
|
|
|
13
13
|
document.readyState === "complete" ? e() : window.addEventListener("load", e, { once: !0 });
|
|
14
14
|
}, []), null;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { i as ResponsiveCheck };
|
package/dist/Box/base.d.mts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Sprinkles } from "../styles/atoms.css.mjs";
|
|
2
2
|
import { PolymorphicProps } from "../types.mjs";
|
|
3
3
|
import { ElementType } from "react";
|
|
4
|
-
//#region src/Box/base.d.ts
|
|
5
4
|
export type StyleProps = { [K in keyof Sprinkles]?: Sprinkles[K] | null | false; };
|
|
6
5
|
export type BoxProps<T extends ElementType = "div"> = PolymorphicProps<T, StyleProps>;
|
|
7
|
-
export declare function Box<T extends ElementType = "div">({ as, className, ...props }: BoxProps<T>): import("react").JSX.Element;
|
|
8
|
-
//#endregion
|
|
6
|
+
export declare function Box<T extends ElementType = "div">({ as, className, ...props }: BoxProps<T>): import("react").JSX.Element;
|
package/dist/Box/base.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { splitStyleProps as n } from "../styles/split-style-props.mjs";
|
|
|
4
4
|
import { root as r } from "./Box.css.mjs";
|
|
5
5
|
import { ResponsiveCheck as i } from "./ResponsiveCheck.mjs";
|
|
6
6
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/Box/base.tsx
|
|
8
8
|
var c = (e) => typeof e == "object" && !!e && Object.entries(e).some(([e, t]) => e !== "base" && t != null && t !== !1);
|
|
9
9
|
function l({ as: l, className: u, ...d }) {
|
|
10
10
|
let f = l ?? "div", [p, m] = n(d), h = Object.fromEntries(Object.entries(p).filter(([, e]) => e !== null && e !== !1)), g = /* @__PURE__ */ o(f, {
|
|
@@ -13,5 +13,4 @@ function l({ as: l, className: u, ...d }) {
|
|
|
13
13
|
});
|
|
14
14
|
return process.env.NODE_ENV !== "production" && Object.values(h).some(c) ? /* @__PURE__ */ s(a, { children: [g, /* @__PURE__ */ o(i, {})] }) : g;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { l as Box };
|
package/dist/Box/index.d.mts
CHANGED
package/dist/Box/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "./Button.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/Button/Button.css.ts
|
|
7
7
|
var t = "hkhd80", n = e({
|
|
8
8
|
defaultClassName: "hkhd81",
|
|
9
9
|
variantClassNames: {
|
|
@@ -22,5 +22,4 @@ var t = "hkhd80", n = e({
|
|
|
22
22
|
defaultVariants: {},
|
|
23
23
|
compoundVariants: []
|
|
24
24
|
}), r = "hkhd89", i = "hkhd8a", a = "hkhd8b", o = "hkhd8d", s = "hkhd8e";
|
|
25
|
-
//#endregion
|
|
26
25
|
export { n as button, a as content, s as dot, r as label, t as root, o as spinner, i as stack };
|
package/dist/Button/index.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { StyleProps } from "../Box/base.mjs";
|
|
|
3
3
|
import { ClickableOwnProps } from "../Clickable/index.mjs";
|
|
4
4
|
import { IconProps } from "../Icon/index.mjs";
|
|
5
5
|
import { ComponentType, ElementType } from "react";
|
|
6
|
-
//#region src/Button/index.d.ts
|
|
7
6
|
export type ButtonOwnProps = {
|
|
8
7
|
iconEnd?: ComponentType<IconProps>;
|
|
9
8
|
iconStart?: ComponentType<IconProps>;
|
|
@@ -14,5 +13,4 @@ export type ButtonOwnProps = {
|
|
|
14
13
|
export type ButtonProps<T extends ElementType = "button"> = PolymorphicProps<T, StyleProps & ButtonOwnProps & Omit<ClickableOwnProps, "busy">, "busy" | "aria-disabled" | "aria-busy">;
|
|
15
14
|
export declare function Button<T extends ElementType = "button">({ variant, size, loading: loadingProp, iconStart: IconStart, iconEnd: IconEnd, minBlockSize, paddingBlock, paddingInline, gap, borderRadius, backgroundColor, color, className, children, "aria-busy": ariaBusy, ...props }: ButtonProps<T> & {
|
|
16
15
|
"aria-busy"?: boolean | "true" | "false";
|
|
17
|
-
}): import("react").JSX.Element;
|
|
18
|
-
//#endregion
|
|
16
|
+
}): import("react").JSX.Element;
|
package/dist/Button/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { controlHeight as s, controlText as c } from "../styles/control-size.mjs
|
|
|
8
8
|
import { Text as l } from "../Text/index.mjs";
|
|
9
9
|
import { button as u, content as d, root as f, stack as p } from "./Button.css.mjs";
|
|
10
10
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
11
|
-
|
|
11
|
+
// src/Button/index.tsx
|
|
12
12
|
var g = {
|
|
13
13
|
sm: {
|
|
14
14
|
minBlockSize: s.sm,
|
|
@@ -96,5 +96,4 @@ function _({ variant: s = "secondary", size: _ = "med", loading: v = !1, iconSta
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
//#endregion
|
|
100
99
|
export { _ as Button };
|
|
@@ -2,7 +2,6 @@ import "../styles/layers.css";
|
|
|
2
2
|
import "./Checkbox.css";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
// src/Checkbox/Checkbox.css.ts
|
|
6
6
|
var e = "_1tze2y80", t = "_1tze2y81", n = "_1tze2y82", r = "_1tze2y83", i = "_1tze2y84";
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as box, i as dash, n as mark, e as root, r as tick };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { PartProps } from "../styles/part-props.mjs";
|
|
2
2
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
3
|
-
//#region src/Checkbox/index.d.ts
|
|
4
3
|
export type CheckboxProps = PartProps<Omit<Checkbox$1.Root.Props, "nativeButton">>;
|
|
5
|
-
export declare function Checkbox({ display, alignItems, justifyContent, flexShrink, minInlineSize, minBlockSize, className, style, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function Checkbox({ display, alignItems, justifyContent, flexShrink, minInlineSize, minBlockSize, className, style, ...props }: CheckboxProps): import("react").JSX.Element;
|
package/dist/Checkbox/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { Box as n } from "../Box/base.mjs";
|
|
|
4
4
|
import { box as r, dash as i, mark as a, root as o, tick as s } from "./Checkbox.css.mjs";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
import { Checkbox as u } from "@base-ui/react/checkbox";
|
|
7
|
-
|
|
7
|
+
// src/Checkbox/index.tsx
|
|
8
8
|
function d({ display: d = "inline-flex", alignItems: f = "center", justifyContent: p = "center", flexShrink: m = 0, minInlineSize: h = "xs", minBlockSize: g = "xs", className: _, style: v, ...y }) {
|
|
9
9
|
let [b, x] = t(y);
|
|
10
10
|
return /* @__PURE__ */ c(u.Root, {
|
|
@@ -41,5 +41,4 @@ function d({ display: d = "inline-flex", alignItems: f = "center", justifyConten
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { d as Checkbox };
|
package/dist/Chip/Chip.css.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "./Chip.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/Chip/Chip.css.ts
|
|
7
7
|
var t = "_1l071c80", n = e({
|
|
8
8
|
defaultClassName: "_1l071c81",
|
|
9
9
|
variantClassNames: { size: {
|
|
@@ -13,5 +13,4 @@ var t = "_1l071c80", n = e({
|
|
|
13
13
|
defaultVariants: {},
|
|
14
14
|
compoundVariants: []
|
|
15
15
|
}), r = "_1l071c84";
|
|
16
|
-
//#endregion
|
|
17
16
|
export { r as check, n as chip, t as root };
|
package/dist/Chip/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PartProps } from "../styles/part-props.mjs";
|
|
2
2
|
import { Toggle } from "@base-ui/react/toggle";
|
|
3
3
|
import { ToggleGroup } from "@base-ui/react/toggle-group";
|
|
4
|
-
//#region src/Chip/index.d.ts
|
|
5
4
|
export type ChipOwnProps = {
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
size?: "sm" | "med";
|
|
@@ -9,5 +8,4 @@ export type ChipOwnProps = {
|
|
|
9
8
|
export type ChipProps = PartProps<Omit<Toggle.Props, "nativeButton" | keyof ChipOwnProps>> & ChipOwnProps;
|
|
10
9
|
export type ChipGroupProps = PartProps<Omit<ToggleGroup.Props, "disabled">>;
|
|
11
10
|
export declare function Chip({ size, disabled, children, minBlockSize, paddingBlock, paddingInline, gap, borderRadius, backgroundColor, color, className, style, ...props }: ChipProps): import("react").JSX.Element;
|
|
12
|
-
export declare function ChipGroup({ orientation, display, flexDirection, flexWrap, alignItems, gap, className, style, ...props }: ChipGroupProps): import("react").JSX.Element;
|
|
13
|
-
//#endregion
|
|
11
|
+
export declare function ChipGroup({ orientation, display, flexDirection, flexWrap, alignItems, gap, className, style, ...props }: ChipGroupProps): import("react").JSX.Element;
|
package/dist/Chip/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { check as o, chip as s, root as c } from "./Chip.css.mjs";
|
|
|
8
8
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
9
|
import { Toggle as d } from "@base-ui/react/toggle";
|
|
10
10
|
import { ToggleGroup as f } from "@base-ui/react/toggle-group";
|
|
11
|
-
|
|
11
|
+
// src/Chip/index.tsx
|
|
12
12
|
var p = {
|
|
13
13
|
sm: {
|
|
14
14
|
minBlockSize: "xs",
|
|
@@ -69,5 +69,4 @@ function h({ orientation: e = "horizontal", display: r = "flex", flexDirection:
|
|
|
69
69
|
})
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
//#endregion
|
|
73
72
|
export { m as Chip, h as ChipGroup };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { PolymorphicProps } from "../types.mjs";
|
|
2
2
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
3
|
import { ElementType } from "react";
|
|
4
|
-
//#region src/Clickable/index.d.ts
|
|
5
4
|
export type ClickableOwnProps = {
|
|
6
5
|
busy?: boolean;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
};
|
|
9
8
|
export type ClickableProps<T extends ElementType = "button"> = PolymorphicProps<T, StyleProps & ClickableOwnProps, "aria-disabled" | "aria-busy">;
|
|
10
|
-
export declare function Clickable<T extends ElementType = "button">({ as, disabled, busy, display, alignItems, justifyContent, minInlineSize, minBlockSize, className, ...props }: ClickableProps<T>): import("react").JSX.Element;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare function Clickable<T extends ElementType = "button">({ as, disabled, busy, display, alignItems, justifyContent, minInlineSize, minBlockSize, className, ...props }: ClickableProps<T>): import("react").JSX.Element;
|
package/dist/Clickable/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join as e } from "../styles/join.mjs";
|
|
|
3
3
|
import { Box as t } from "../Box/base.mjs";
|
|
4
4
|
import { root as n } from "./Clickable.css.mjs";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/Clickable/index.tsx
|
|
7
7
|
function i({ as: i, disabled: a = !1, busy: o = !1, display: s = "inline-flex", alignItems: c = "center", justifyContent: l = "center", minInlineSize: u = "xs", minBlockSize: d = "xs", className: f, ...p }) {
|
|
8
8
|
let m = i ?? "button", { onClick: h, onAuxClick: g, "aria-disabled": _, "aria-busy": v, ...y } = p, b = a || String(_) === "true", x = o || String(v) === "true", S = (e) => (t) => {
|
|
9
9
|
b || x ? t.preventDefault() : e?.(t);
|
|
@@ -24,5 +24,4 @@ function i({ as: i, disabled: a = !1, busy: o = !1, display: s = "inline-flex",
|
|
|
24
24
|
onClick: S(h)
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { i as Clickable };
|
|
@@ -3,7 +3,7 @@ import "./ColorField.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/ColorField/ColorField.css.ts
|
|
7
7
|
var t = "nmj5ie0", n = e({
|
|
8
8
|
defaultClassName: "nmj5ie1",
|
|
9
9
|
variantClassNames: { size: {
|
|
@@ -23,5 +23,4 @@ var t = "nmj5ie0", n = e({
|
|
|
23
23
|
defaultVariants: {},
|
|
24
24
|
compoundVariants: []
|
|
25
25
|
});
|
|
26
|
-
//#endregion
|
|
27
26
|
export { t as hiddenLabel, n as input, r as swatch };
|
|
@@ -2,6 +2,4 @@ import { SearchFieldInputProps } from "../SearchField/client.mjs";
|
|
|
2
2
|
import "../SearchField/index.mjs";
|
|
3
3
|
import "./index.mjs";
|
|
4
4
|
import { ComponentPropsWithRef } from "react";
|
|
5
|
-
|
|
6
|
-
export type ColorFieldInputProps = Pick<ComponentPropsWithRef<"input">, keyof SearchFieldInputProps>;
|
|
7
|
-
//#endregion
|
|
5
|
+
export type ColorFieldInputProps = Pick<ComponentPropsWithRef<"input">, keyof SearchFieldInputProps>;
|
|
@@ -6,7 +6,7 @@ import { input as r, swatch as i } from "./ColorField.css.mjs";
|
|
|
6
6
|
import { useState as a } from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { Input as c } from "@base-ui/react/input";
|
|
9
|
-
|
|
9
|
+
// src/ColorField/client.tsx
|
|
10
10
|
var l = /^#[0-9a-f]{6}$/i, u = (e) => l.test(e) ? e.toLowerCase() : "#000000";
|
|
11
11
|
function d({ value: l, defaultValue: d, onValueChange: f, placeholder: p, size: m, disabled: h, required: g, name: _, swatchLabel: v, inputProps: y }) {
|
|
12
12
|
let [b, x] = a(d), S = l ?? b, C = (e) => {
|
|
@@ -40,5 +40,4 @@ function d({ value: l, defaultValue: d, onValueChange: f, placeholder: p, size:
|
|
|
40
40
|
})]
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { d as ColorFieldControl };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
2
2
|
import { ColorFieldInputProps } from "./client.mjs";
|
|
3
3
|
import { CSSProperties, ReactNode } from "react";
|
|
4
|
-
//#region src/ColorField/index.d.ts
|
|
5
4
|
export type ColorFieldProps = StyleProps & {
|
|
6
5
|
className?: string;
|
|
7
6
|
defaultValue?: string;
|
|
@@ -21,5 +20,4 @@ export type ColorFieldProps = StyleProps & {
|
|
|
21
20
|
value?: string;
|
|
22
21
|
};
|
|
23
22
|
export declare function ColorField({ label, hideLabel, value, defaultValue, onValueChange, placeholder, description, error, size, disabled, required, name, swatchLabel, inputProps, className, style, ...atoms }: ColorFieldProps): import("react").JSX.Element;
|
|
24
|
-
//#endregion
|
|
25
23
|
export type { ColorFieldInputProps };
|
|
@@ -2,7 +2,7 @@ import { Field as e } from "../Field/index.mjs";
|
|
|
2
2
|
import { hiddenLabel as t } from "./ColorField.css.mjs";
|
|
3
3
|
import { ColorFieldControl as n } from "./client.mjs";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/ColorField/index.tsx
|
|
6
6
|
function a({ label: a, hideLabel: o = !1, value: s, defaultValue: c = "", onValueChange: l, placeholder: u, description: d, error: f, size: p = "med", disabled: m = !1, required: h = !1, name: g, swatchLabel: _ = "Pick colour", inputProps: v, className: y, style: b, ...x }) {
|
|
7
7
|
return /* @__PURE__ */ i(e, {
|
|
8
8
|
...x,
|
|
@@ -32,5 +32,4 @@ function a({ label: a, hideLabel: o = !1, value: s, defaultValue: c = "", onValu
|
|
|
32
32
|
]
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { a as ColorField };
|
|
@@ -2,11 +2,10 @@ import "../styles/layers.css";
|
|
|
2
2
|
import "./Dialog.css";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
// src/Dialog/Dialog.css.ts
|
|
6
6
|
var e = "iyoziv0", t = "iyoziv1", n = {
|
|
7
7
|
sm: "iyoziv2",
|
|
8
8
|
med: "iyoziv3",
|
|
9
9
|
lg: "iyoziv4"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { e as backdrop, t as popup, n as size };
|
package/dist/Dialog/client.d.mts
CHANGED
|
@@ -3,12 +3,10 @@ import { TriggerElementProps, TriggerLookProps } from "../popup/client.mjs";
|
|
|
3
3
|
import "./index.mjs";
|
|
4
4
|
import { Dialog } from "@base-ui/react/dialog";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
|
-
//#region src/Dialog/client.d.ts
|
|
7
6
|
type TriggerOwnProps = Omit<Dialog.Trigger.Props, "render" | "className" | "style" | "nativeButton">;
|
|
8
7
|
type CloseOwnProps = Omit<Dialog.Close.Props, "render" | "className" | "style" | "nativeButton">;
|
|
9
8
|
export type DialogTriggerProps = TriggerOwnProps & TriggerLookProps & Omit<TriggerElementProps, keyof TriggerLookProps | keyof TriggerOwnProps>;
|
|
10
9
|
export type DialogCloseProps = CloseOwnProps & TriggerLookProps & Omit<TriggerElementProps, keyof TriggerLookProps | keyof CloseOwnProps>;
|
|
11
10
|
export declare function DialogTrigger({ disabled, handle, payload, id, ...props }: DialogTriggerProps): import("react").JSX.Element;
|
|
12
11
|
export declare function DialogClose({ disabled, ...props }: DialogCloseProps): import("react").JSX.Element;
|
|
13
|
-
//#endregion
|
|
14
12
|
export {};
|
package/dist/Dialog/client.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { Box as n } from "../Box/base.mjs";
|
|
|
5
5
|
import { PopupScope as r, triggerElement as i, useClosingRule as a, usePopupScope as o, useRecordOpenChange as s } from "../popup/client.mjs";
|
|
6
6
|
import { jsx as c } from "react/jsx-runtime";
|
|
7
7
|
import { Dialog as l } from "@base-ui/react/dialog";
|
|
8
|
-
|
|
8
|
+
// src/Dialog/client.tsx
|
|
9
9
|
function u({ disabled: e = !1, handle: t, payload: n, id: r, ...a }) {
|
|
10
10
|
let { ref: s } = o();
|
|
11
11
|
return /* @__PURE__ */ c(l.Trigger, {
|
|
@@ -70,5 +70,4 @@ function g({ open: t, finalFocus: r, frame: i, ref: o, className: s, style: l, .
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
export { d as DialogClose, h as DialogPopupFrame, f as DialogPortal, p as DialogRootScope, u as DialogTrigger };
|
package/dist/Dialog/index.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ import { size as size$1 } from "./Dialog.css.mjs";
|
|
|
4
4
|
import { DialogClose, DialogCloseProps, DialogTrigger, DialogTriggerProps } from "./client.mjs";
|
|
5
5
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
|
-
//#region src/Dialog/index.d.ts
|
|
8
7
|
export type DialogProps = Pick<Dialog$1.Root.Props, "open" | "defaultOpen" | "onOpenChange" | "onOpenChangeComplete"> & {
|
|
9
8
|
children?: ReactNode;
|
|
10
9
|
};
|
|
@@ -26,5 +25,4 @@ export declare const Dialog: typeof DialogRoot & {
|
|
|
26
25
|
Actions: typeof DialogActions;
|
|
27
26
|
Close: typeof DialogClose;
|
|
28
27
|
};
|
|
29
|
-
//#endregion
|
|
30
28
|
export type { DialogCloseProps, DialogTriggerProps };
|
package/dist/Dialog/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { DialogClose as a, DialogPopupFrame as o, DialogPortal as s, DialogRootS
|
|
|
7
7
|
import { backdrop as u, popup as d, size as f } from "./Dialog.css.mjs";
|
|
8
8
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
9
9
|
import { Dialog as h } from "@base-ui/react/dialog";
|
|
10
|
-
|
|
10
|
+
// src/Dialog/index.tsx
|
|
11
11
|
function g(e) {
|
|
12
12
|
return /* @__PURE__ */ p(c, { ...e });
|
|
13
13
|
}
|
|
@@ -78,5 +78,4 @@ var b = Object.assign(g, {
|
|
|
78
78
|
Actions: y,
|
|
79
79
|
Close: a
|
|
80
80
|
});
|
|
81
|
-
//#endregion
|
|
82
81
|
export { b as Dialog };
|
package/dist/Field/Field.css.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import "../styles/layers.css";
|
|
|
2
2
|
import "./Field.css";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
// src/Field/Field.css.ts
|
|
6
6
|
var e = "_13w7r940", t = "_13w7r941", n = "_13w7r942";
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as error, n as icon, e as label };
|
package/dist/Field/client.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { CircleAlertIcon as n } from "../icons/CircleAlertIcon.mjs";
|
|
|
5
5
|
import { icon as r } from "./Field.css.mjs";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
import { Field as o } from "@base-ui/react/field";
|
|
8
|
-
|
|
8
|
+
// src/Field/client.tsx
|
|
9
9
|
function s({ size: s, ...c }) {
|
|
10
10
|
return /* @__PURE__ */ i(o.Error, {
|
|
11
11
|
...c,
|
|
@@ -22,5 +22,4 @@ function s({ size: s, ...c }) {
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { s as FieldErrorMessage };
|
package/dist/Field/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PartProps } from "../styles/part-props.mjs";
|
|
2
2
|
import { TextOwnProps } from "../Text/index.mjs";
|
|
3
3
|
import { Field as Field$1 } from "@base-ui/react/field";
|
|
4
|
-
//#region src/Field/index.d.ts
|
|
5
4
|
type TextPartProps<P> = PartProps<Omit<P, keyof TextOwnProps>> & TextOwnProps;
|
|
6
5
|
export type FieldProps = PartProps<Field$1.Root.Props>;
|
|
7
6
|
export type FieldLabelProps = TextPartProps<Field$1.Label.Props>;
|
|
@@ -16,5 +15,4 @@ export declare const Field: typeof FieldRoot & {
|
|
|
16
15
|
Description: typeof FieldDescription;
|
|
17
16
|
Error: typeof FieldError;
|
|
18
17
|
};
|
|
19
|
-
//#endregion
|
|
20
18
|
export {};
|
package/dist/Field/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { FieldErrorMessage as s } from "./client.mjs";
|
|
|
8
8
|
import { Children as c } from "react";
|
|
9
9
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import { Field as d } from "@base-ui/react/field";
|
|
11
|
-
|
|
11
|
+
// src/Field/index.tsx
|
|
12
12
|
function f({ display: e = "flex", flexDirection: r = "column", gap: i = "8", className: a, style: o, ...s }) {
|
|
13
13
|
let [c, u] = t(s);
|
|
14
14
|
return /* @__PURE__ */ l(d.Root, {
|
|
@@ -79,5 +79,4 @@ var g = Object.assign(f, {
|
|
|
79
79
|
Description: m,
|
|
80
80
|
Error: h
|
|
81
81
|
});
|
|
82
|
-
//#endregion
|
|
83
82
|
export { g as Field };
|