@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/dist/Heading/index.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { TextProps } from "../Text/index.mjs";
|
|
2
|
-
//#region src/Heading/index.d.ts
|
|
3
2
|
export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
4
3
|
export type HeadingSize = "sm" | "med" | "lg" | "xl" | "2xl";
|
|
5
4
|
export type HeadingProps<T extends HeadingLevel = "h2"> = Omit<TextProps<T>, "size"> & {
|
|
6
5
|
size?: HeadingSize;
|
|
7
6
|
};
|
|
8
|
-
export declare function Heading<T extends HeadingLevel = "h2">({ as, size, font, weight, leading, className, ...props }: HeadingProps<T>): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare function Heading<T extends HeadingLevel = "h2">({ as, size, font, weight, leading, className, ...props }: HeadingProps<T>): import("react").JSX.Element;
|
package/dist/Heading/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { join as e } from "../styles/join.mjs";
|
|
|
2
2
|
import { Text as t } from "../Text/index.mjs";
|
|
3
3
|
import { root as n } from "./Heading.css.mjs";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/Heading/index.tsx
|
|
6
6
|
var i = {
|
|
7
7
|
h1: "2xl",
|
|
8
8
|
h2: "xl",
|
|
@@ -23,5 +23,4 @@ function a({ as: a, size: o, font: s = "heading", weight: c = "semibold", leadin
|
|
|
23
23
|
weight: c
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { a as Heading };
|
package/dist/Icon/Icon.css.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import "../styles/layers.css";
|
|
|
2
2
|
import "./Icon.css";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
// src/Icon/Icon.css.ts
|
|
6
6
|
var e = "wz3ei00", t = {
|
|
7
7
|
xs: "wz3ei01",
|
|
8
8
|
sm: "wz3ei02",
|
|
@@ -13,5 +13,4 @@ var e = "wz3ei00", t = {
|
|
|
13
13
|
"3xl": "wz3ei07",
|
|
14
14
|
"4xl": "wz3ei08"
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { e as root, t as size };
|
package/dist/Icon/index.d.mts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Sprinkles } from "../styles/atoms.css.mjs";
|
|
2
2
|
import { tokens } from "../tokens/scales.mjs";
|
|
3
3
|
import { ComponentPropsWithRef } from "react";
|
|
4
|
-
//#region src/Icon/index.d.ts
|
|
5
4
|
export type IconProps = Omit<ComponentPropsWithRef<"svg">, "color" | "strokeWidth" | "width" | "height"> & {
|
|
6
5
|
color?: Sprinkles["color"];
|
|
7
6
|
label?: string;
|
|
8
7
|
size?: keyof typeof tokens.fontSize;
|
|
9
8
|
strokeWidth?: number;
|
|
10
9
|
};
|
|
11
|
-
export declare function Icon({ size, color, label, strokeWidth, viewBox, className, "aria-label": ariaLabel, "aria-labelledby": labelledBy, ...props }: IconProps): import("react").JSX.Element;
|
|
12
|
-
//#endregion
|
|
10
|
+
export declare function Icon({ size, color, label, strokeWidth, viewBox, className, "aria-label": ariaLabel, "aria-labelledby": labelledBy, ...props }: IconProps): import("react").JSX.Element;
|
package/dist/Icon/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { sprinkles as e } from "../styles/atoms.css.mjs";
|
|
|
2
2
|
import { join as t } from "../styles/join.mjs";
|
|
3
3
|
import { root as n, size as r } from "./Icon.css.mjs";
|
|
4
4
|
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/Icon/index.tsx
|
|
6
6
|
function a({ size: a = "med", color: o, label: s, strokeWidth: c = 2, viewBox: l = "0 0 24 24", className: u, "aria-label": d, "aria-labelledby": f, ...p }) {
|
|
7
7
|
let m = s || d || void 0, h = !!(m || f);
|
|
8
8
|
return /* @__PURE__ */ i("svg", {
|
|
@@ -20,5 +20,4 @@ function a({ size: a = "med", color: o, label: s, strokeWidth: c = 2, viewBox: l
|
|
|
20
20
|
role: h ? "img" : void 0
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { a as Icon };
|
|
@@ -3,7 +3,7 @@ import "./IconButton.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/IconButton/IconButton.css.ts
|
|
7
7
|
var t = "n2fy8x0", n = e({
|
|
8
8
|
defaultClassName: "n2fy8x1",
|
|
9
9
|
variantClassNames: {
|
|
@@ -21,5 +21,4 @@ var t = "n2fy8x0", n = e({
|
|
|
21
21
|
defaultVariants: {},
|
|
22
22
|
compoundVariants: []
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { n as iconButton, t as root };
|
|
@@ -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/IconButton/index.d.ts
|
|
7
6
|
export type IconButtonOwnProps = {
|
|
8
7
|
icon: ComponentType<IconProps>;
|
|
9
8
|
label: string;
|
|
@@ -11,5 +10,4 @@ export type IconButtonOwnProps = {
|
|
|
11
10
|
variant?: "primary" | "secondary" | "ghost";
|
|
12
11
|
};
|
|
13
12
|
export type IconButtonProps<T extends ElementType = "button"> = PolymorphicProps<T, StyleProps & IconButtonOwnProps & Omit<ClickableOwnProps, "busy">, "busy" | "aria-disabled" | "aria-busy" | "aria-label" | "aria-labelledby" | "children">;
|
|
14
|
-
export declare function IconButton<T extends ElementType = "button">({ label, icon: IconComponent, variant, size, minInlineSize, minBlockSize, borderRadius, backgroundColor, color, className, ...props }: IconButtonProps<T>): import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
13
|
+
export declare function IconButton<T extends ElementType = "button">({ label, icon: IconComponent, variant, size, minInlineSize, minBlockSize, borderRadius, backgroundColor, color, className, ...props }: IconButtonProps<T>): import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { fills as n } from "../styles/button-fills.mjs";
|
|
|
4
4
|
import { controlHeight as r, controlText as i } from "../styles/control-size.mjs";
|
|
5
5
|
import { iconButton as a, root as o } from "./IconButton.css.mjs";
|
|
6
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/IconButton/index.tsx
|
|
8
8
|
function c({ label: c, icon: l, variant: u = "secondary", size: d = "med", minInlineSize: f = r[d], minBlockSize: p = r[d], borderRadius: m = "full", backgroundColor: h = n[u].backgroundColor, color: g = n[u].color, className: _, ...v }) {
|
|
9
9
|
return /* @__PURE__ */ s(t, {
|
|
10
10
|
...v,
|
|
@@ -22,5 +22,4 @@ function c({ label: c, icon: l, variant: u = "secondary", size: d = "med", minIn
|
|
|
22
22
|
children: /* @__PURE__ */ s(l, { size: i[d] })
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { c as IconButton };
|
package/dist/Inline/index.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import { PolymorphicProps } from "../types.mjs";
|
|
|
2
2
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
3
|
import "../Box/index.mjs";
|
|
4
4
|
import { ElementType } from "react";
|
|
5
|
-
//#region src/Inline/index.d.ts
|
|
6
5
|
type Gap = StyleProps["gap"];
|
|
7
6
|
type Token = Extract<Gap, string>;
|
|
8
7
|
export type InlineProps<T extends ElementType = "div"> = PolymorphicProps<T, {
|
|
@@ -11,5 +10,4 @@ export type InlineProps<T extends ElementType = "div"> = PolymorphicProps<T, {
|
|
|
11
10
|
});
|
|
12
11
|
} & Omit<StyleProps, "gap">>;
|
|
13
12
|
export declare function Inline<T extends ElementType = "div">({ display, flexDirection, flexWrap, alignItems, className, ...props }: InlineProps<T>): import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
package/dist/Inline/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { join as e } from "../styles/join.mjs";
|
|
|
2
2
|
import { Box as t } from "../Box/index.mjs";
|
|
3
3
|
import { root as n } from "./Inline.css.mjs";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/Inline/index.tsx
|
|
6
6
|
function i({ display: i = "flex", flexDirection: a = "row", flexWrap: o = "wrap", alignItems: s = "center", className: c, ...l }) {
|
|
7
7
|
return /* @__PURE__ */ r(t, {
|
|
8
8
|
alignItems: s,
|
|
@@ -13,5 +13,4 @@ function i({ display: i = "flex", flexDirection: a = "row", flexWrap: o = "wrap"
|
|
|
13
13
|
className: e(n, c)
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { i as Inline };
|
package/dist/Menu/Menu.css.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import "../styles/layers.css";
|
|
|
2
2
|
import "./Menu.css";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
// src/Menu/Menu.css.ts
|
|
6
6
|
var e = "_393eil0", t = "_393eil1", n = "_393eil2", r = "_393eil3", i = "_393eil4", a = "_393eil5";
|
|
7
|
-
//#endregion
|
|
8
7
|
export { r as description, n as item, i as linkItem, t as popup, e as positioner, a as separator };
|
package/dist/Menu/client.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { TriggerElementProps, TriggerLookProps } from "../popup/client.mjs";
|
|
|
3
3
|
import "./index.mjs";
|
|
4
4
|
import { ComponentType, ReactNode } from "react";
|
|
5
5
|
import { Menu } from "@base-ui/react/menu";
|
|
6
|
-
//#region src/Menu/client.d.ts
|
|
7
6
|
type TriggerOwnProps = Omit<Menu.Trigger.Props, "render" | "className" | "style" | "nativeButton">;
|
|
8
7
|
type TriggerIconForm = {
|
|
9
8
|
"aria-label"?: never;
|
|
@@ -20,5 +19,4 @@ type TriggerTextForm = {
|
|
|
20
19
|
};
|
|
21
20
|
export type MenuTriggerProps = TriggerOwnProps & TriggerLookProps & Omit<TriggerElementProps, keyof TriggerLookProps | keyof TriggerOwnProps> & (TriggerIconForm | TriggerTextForm);
|
|
22
21
|
export declare function MenuTrigger({ disabled, openOnHover, delay, closeDelay, handle, payload, icon, label, ...props }: MenuTriggerProps): import("react").JSX.Element;
|
|
23
|
-
//#endregion
|
|
24
22
|
export {};
|
package/dist/Menu/client.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { description as u, positioner as d } from "./Menu.css.mjs";
|
|
|
9
9
|
import { useId as f } from "react";
|
|
10
10
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
11
11
|
import { Menu as g } from "@base-ui/react/menu";
|
|
12
|
-
|
|
12
|
+
// src/Menu/client.tsx
|
|
13
13
|
function _({ disabled: e = !1, openOnHover: t, delay: n, closeDelay: r, handle: i, payload: o, icon: c, label: u, ...d }) {
|
|
14
14
|
let { ref: f } = s();
|
|
15
15
|
return /* @__PURE__ */ m(g.Trigger, {
|
|
@@ -105,5 +105,4 @@ function T({ open: t, finalFocus: r, ref: i, className: a, ...s }) {
|
|
|
105
105
|
zIndex: "popover"
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
//#endregion
|
|
109
108
|
export { y as MenuItemPart, b as MenuLinkItemPart, x as MenuPortal, w as MenuPositioner, S as MenuRootScope, _ as MenuTrigger };
|
package/dist/Menu/index.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import { StyleProps } from "../Box/base.mjs";
|
|
|
2
2
|
import { MenuTrigger, MenuTriggerProps } from "./client.mjs";
|
|
3
3
|
import { CSSProperties, ReactNode } from "react";
|
|
4
4
|
import { Menu as Menu$1 } from "@base-ui/react/menu";
|
|
5
|
-
//#region src/Menu/index.d.ts
|
|
6
5
|
type PartProps<P> = StyleProps & Omit<P, "render" | "className" | "style" | keyof StyleProps> & {
|
|
7
6
|
className?: string;
|
|
8
7
|
style?: CSSProperties;
|
|
@@ -39,5 +38,4 @@ export declare const Menu: typeof MenuRoot & {
|
|
|
39
38
|
Separator: typeof MenuSeparator;
|
|
40
39
|
Group: typeof MenuGroup;
|
|
41
40
|
};
|
|
42
|
-
//#endregion
|
|
43
41
|
export type { MenuTriggerProps };
|
package/dist/Menu/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { MenuItemPart as c, MenuLinkItemPart as l, MenuPortal as u, MenuPosition
|
|
|
7
7
|
import { Children as m } from "react";
|
|
8
8
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
9
9
|
import { Menu as _ } from "@base-ui/react/menu";
|
|
10
|
-
|
|
10
|
+
// src/Menu/index.tsx
|
|
11
11
|
function v(e) {
|
|
12
12
|
return /* @__PURE__ */ h(f, { ...e });
|
|
13
13
|
}
|
|
@@ -137,5 +137,4 @@ var O = Object.assign(v, {
|
|
|
137
137
|
Separator: E,
|
|
138
138
|
Group: D
|
|
139
139
|
});
|
|
140
|
-
//#endregion
|
|
141
140
|
export { O as Menu };
|
|
@@ -2,7 +2,6 @@ import "../styles/layers.css";
|
|
|
2
2
|
import "./MultiSelect.css";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
// src/MultiSelect/MultiSelect.css.ts
|
|
6
6
|
var e = "_1seauxl0", t = "_1seauxl1", n = "_1seauxl2", r = "_1seauxl3", i = "_1seauxl4", a = "_1seauxl5", o = "_1seauxl6", s = "_1seauxl7";
|
|
7
|
-
//#endregion
|
|
8
7
|
export { s as check, i as count, o as item, r as labels, a as popup, n as summary, e as trigger, t as value };
|
|
@@ -9,7 +9,7 @@ import { labels as u, popup as d, summary as f, trigger as p, value as m } from
|
|
|
9
9
|
import { createContext as h, use as g, useId as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
|
|
10
10
|
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
11
11
|
import { Select as w } from "@base-ui/react/select";
|
|
12
|
-
|
|
12
|
+
// src/MultiSelect/client.tsx
|
|
13
13
|
function T({ options: e, placeholder: t, countLabel: n, disabled: r, size: a }) {
|
|
14
14
|
let { ref: s } = o(), c = y(() => new Map(e.map((e) => [e.value, e.label])), [e]);
|
|
15
15
|
return /* @__PURE__ */ S(w.Trigger, {
|
|
@@ -131,5 +131,4 @@ function P({ open: e, ref: n, ...r }) {
|
|
|
131
131
|
zIndex: "popover"
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
//#endregion
|
|
135
134
|
export { A as MultiSelectLabel, j as MultiSelectPopup, M as MultiSelectPortal, N as MultiSelectPositioner, k as MultiSelectRoot, O as MultiSelectScope, T as MultiSelectTrigger };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
2
2
|
import { Option } from "./client.mjs";
|
|
3
3
|
import { CSSProperties, ReactNode } from "react";
|
|
4
|
-
//#region src/MultiSelect/index.d.ts
|
|
5
4
|
export type MultiSelectOption = Option;
|
|
6
5
|
export type MultiSelectProps = StyleProps & {
|
|
7
6
|
className?: string;
|
|
@@ -20,5 +19,4 @@ export type MultiSelectProps = StyleProps & {
|
|
|
20
19
|
style?: CSSProperties;
|
|
21
20
|
value?: readonly string[];
|
|
22
21
|
};
|
|
23
|
-
export declare function MultiSelect({ options, value, defaultValue, onValueChange, label, description, error, placeholder, countLabel, disabled, required, size, name, className, style, ...atoms }: MultiSelectProps): import("react").JSX.Element;
|
|
24
|
-
//#endregion
|
|
22
|
+
export declare function MultiSelect({ options, value, defaultValue, onValueChange, label, description, error, placeholder, countLabel, disabled, required, size, name, className, style, ...atoms }: MultiSelectProps): import("react").JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { check as i, item as a } from "./MultiSelect.css.mjs";
|
|
|
6
6
|
import { MultiSelectLabel as o, MultiSelectPopup as s, MultiSelectPortal as c, MultiSelectPositioner as l, MultiSelectRoot as u, MultiSelectScope as d, MultiSelectTrigger as f } from "./client.mjs";
|
|
7
7
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
8
|
import { Select as h } from "@base-ui/react/select";
|
|
9
|
-
|
|
9
|
+
// src/MultiSelect/index.tsx
|
|
10
10
|
function g({ options: g, value: _, defaultValue: v, onValueChange: y, label: b, description: x, error: S, placeholder: C = "Select", countLabel: w = "{count} selected", disabled: T = !1, required: E = !1, size: D = "med", name: O, className: k, style: A, ...j }) {
|
|
11
11
|
return /* @__PURE__ */ m(r, {
|
|
12
12
|
...j,
|
|
@@ -64,5 +64,4 @@ function g({ options: g, value: _, defaultValue: v, onValueChange: y, label: b,
|
|
|
64
64
|
]
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
//#endregion
|
|
68
67
|
export { g as MultiSelect };
|
|
@@ -3,7 +3,7 @@ import "./SearchField.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/SearchField/SearchField.css.ts
|
|
7
7
|
var t = "_1cj8r6g0", n = e({
|
|
8
8
|
defaultClassName: "_1cj8r6g1",
|
|
9
9
|
variantClassNames: { size: {
|
|
@@ -23,5 +23,4 @@ var t = "_1cj8r6g0", n = e({
|
|
|
23
23
|
defaultVariants: {},
|
|
24
24
|
compoundVariants: []
|
|
25
25
|
}), i = "_1cj8r6g9", a = "_1cj8r6ga";
|
|
26
|
-
//#endregion
|
|
27
26
|
export { a as clear, t as hiddenLabel, i as icon, r as input, n as root };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import "./index.mjs";
|
|
2
2
|
import { ComponentPropsWithRef } from "react";
|
|
3
|
-
|
|
4
|
-
export type SearchFieldInputProps = Pick<ComponentPropsWithRef<"input">, "ref" | "id" | "autoFocus" | "autoComplete" | "spellCheck" | "enterKeyHint" | "maxLength" | "onKeyDown" | "aria-atomic" | "aria-busy" | "aria-controls" | "aria-current" | "aria-details" | "aria-flowto" | "aria-keyshortcuts" | "aria-live" | "aria-owns" | "aria-relevant" | "aria-roledescription" | "aria-activedescendant" | "aria-autocomplete" | "aria-placeholder">;
|
|
5
|
-
//#endregion
|
|
3
|
+
export type SearchFieldInputProps = Pick<ComponentPropsWithRef<"input">, "ref" | "id" | "autoFocus" | "autoComplete" | "spellCheck" | "enterKeyHint" | "maxLength" | "onKeyDown" | "aria-atomic" | "aria-busy" | "aria-controls" | "aria-current" | "aria-details" | "aria-flowto" | "aria-keyshortcuts" | "aria-live" | "aria-owns" | "aria-relevant" | "aria-roledescription" | "aria-activedescendant" | "aria-autocomplete" | "aria-placeholder">;
|
|
@@ -9,7 +9,7 @@ import { icon as o, input as s, root as c } from "./SearchField.css.mjs";
|
|
|
9
9
|
import { useRef as l, useState as u } from "react";
|
|
10
10
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
11
|
import { Input as p } from "@base-ui/react/input";
|
|
12
|
-
|
|
12
|
+
// src/SearchField/client.tsx
|
|
13
13
|
var m = {
|
|
14
14
|
sm: "sm",
|
|
15
15
|
med: "sm",
|
|
@@ -62,5 +62,4 @@ function h({ value: h, defaultValue: g, onValueChange: _, placeholder: v, size:
|
|
|
62
62
|
]
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { h as SearchFieldControl };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
2
2
|
import { SearchFieldInputProps } from "./client.mjs";
|
|
3
3
|
import { CSSProperties, ReactNode } from "react";
|
|
4
|
-
//#region src/SearchField/index.d.ts
|
|
5
4
|
export type SearchFieldProps = StyleProps & {
|
|
6
5
|
className?: string;
|
|
7
6
|
clearLabel?: string;
|
|
@@ -21,5 +20,4 @@ export type SearchFieldProps = StyleProps & {
|
|
|
21
20
|
value?: string;
|
|
22
21
|
};
|
|
23
22
|
export declare function SearchField({ label, hideLabel, value, defaultValue, onValueChange, placeholder, description, error, size, disabled, required, name, clearLabel, inputProps, className, style, ...atoms }: SearchFieldProps): import("react").JSX.Element;
|
|
24
|
-
//#endregion
|
|
25
23
|
export type { SearchFieldInputProps };
|
|
@@ -2,7 +2,7 @@ import { Field as e } from "../Field/index.mjs";
|
|
|
2
2
|
import { hiddenLabel as t } from "./SearchField.css.mjs";
|
|
3
3
|
import { SearchFieldControl as n } from "./client.mjs";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/SearchField/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, clearLabel: _ = "Clear search", 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 SearchField };
|
package/dist/Stack/Stack.css.mjs
CHANGED
package/dist/Stack/index.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import { PolymorphicProps } from "../types.mjs";
|
|
|
2
2
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
3
|
import "../Box/index.mjs";
|
|
4
4
|
import { ElementType } from "react";
|
|
5
|
-
//#region src/Stack/index.d.ts
|
|
6
5
|
type Gap = StyleProps["gap"];
|
|
7
6
|
type Token = Extract<Gap, string>;
|
|
8
7
|
export type StackProps<T extends ElementType = "div"> = PolymorphicProps<T, {
|
|
@@ -11,5 +10,4 @@ export type StackProps<T extends ElementType = "div"> = PolymorphicProps<T, {
|
|
|
11
10
|
});
|
|
12
11
|
} & Omit<StyleProps, "gap">>;
|
|
13
12
|
export declare function Stack<T extends ElementType = "div">({ display, flexDirection, className, ...props }: StackProps<T>): import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
package/dist/Stack/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { join as e } from "../styles/join.mjs";
|
|
|
2
2
|
import { Box as t } from "../Box/index.mjs";
|
|
3
3
|
import { root as n } from "./Stack.css.mjs";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/Stack/index.tsx
|
|
6
6
|
function i({ display: i = "flex", flexDirection: a = "column", className: o, ...s }) {
|
|
7
7
|
return /* @__PURE__ */ r(t, {
|
|
8
8
|
display: i,
|
|
@@ -11,5 +11,4 @@ function i({ display: i = "flex", flexDirection: a = "column", className: o, ...
|
|
|
11
11
|
className: e(n, o)
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { i as Stack };
|
package/dist/Tabs/Tabs.css.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import "../styles/layers.css";
|
|
|
2
2
|
import "./Tabs.css";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
// src/Tabs/Tabs.css.ts
|
|
6
6
|
var e = "xowpd00", t = "xowpd01", n = "xowpd02", r = "xowpd03";
|
|
7
|
-
//#endregion
|
|
8
7
|
export { n as indicator, e as list, r as panel, t as tab };
|
package/dist/Tabs/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 { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
4
|
-
//#region src/Tabs/index.d.ts
|
|
5
4
|
export type TabsProps = PartProps<Tabs$1.Root.Props>;
|
|
6
5
|
export type TabsListProps = PartProps<Tabs$1.List.Props>;
|
|
7
6
|
type LabelProps = Omit<TextOwnProps, "truncate">;
|
|
@@ -16,5 +15,4 @@ export declare const Tabs: typeof TabsRoot & {
|
|
|
16
15
|
Tab: typeof TabsTab;
|
|
17
16
|
Panel: typeof TabsPanel;
|
|
18
17
|
};
|
|
19
|
-
//#endregion
|
|
20
18
|
export {};
|
package/dist/Tabs/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { splitTextProps as a } from "../styles/split-text-props.mjs";
|
|
|
7
7
|
import { indicator as o, list as s, panel as c, tab as l } from "./Tabs.css.mjs";
|
|
8
8
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
9
|
import { Tabs as f } from "@base-ui/react/tabs";
|
|
10
|
-
|
|
10
|
+
// src/Tabs/index.tsx
|
|
11
11
|
function p({ orientation: e = "horizontal", display: r = "flex", flexDirection: i = e === "vertical" ? "row" : "column", flexWrap: a = e === "vertical" ? "wrap" : "nowrap", gap: o = "16", className: s, style: c, ...l }) {
|
|
12
12
|
let [d, p] = t(l);
|
|
13
13
|
return /* @__PURE__ */ u(f.Root, {
|
|
@@ -85,5 +85,4 @@ var _ = Object.assign(p, {
|
|
|
85
85
|
Tab: h,
|
|
86
86
|
Panel: g
|
|
87
87
|
});
|
|
88
|
-
//#endregion
|
|
89
88
|
export { _ as Tabs };
|
package/dist/Tag/Tag.css.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "./Tag.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/Tag/Tag.css.ts
|
|
7
7
|
var t = "_1jsyd8s0", n = "_1jsyd8s1", r = "_1jsyd8s2", i = "_1jsyd8s3", a = e({
|
|
8
8
|
defaultClassName: "_1jsyd8s4",
|
|
9
9
|
variantClassNames: {
|
|
@@ -23,5 +23,4 @@ var t = "_1jsyd8s0", n = "_1jsyd8s1", r = "_1jsyd8s2", i = "_1jsyd8s3", a = e({
|
|
|
23
23
|
defaultVariants: {},
|
|
24
24
|
compoundVariants: []
|
|
25
25
|
});
|
|
26
|
-
//#endregion
|
|
27
26
|
export { n as label, r as link, i as remove, t as root, a as tag };
|
package/dist/Tag/index.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ 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/Tag/index.d.ts
|
|
6
5
|
export type TagOwnProps = {
|
|
7
6
|
href?: string;
|
|
8
7
|
onRemove?: () => void;
|
|
@@ -11,5 +10,4 @@ export type TagOwnProps = {
|
|
|
11
10
|
variant?: Tone;
|
|
12
11
|
};
|
|
13
12
|
export type TagProps = StyleProps & TagOwnProps & OmitEach<ComponentPropsWithRef<"span">, keyof StyleProps | keyof TagOwnProps>;
|
|
14
|
-
export declare function Tag({ variant, size, href, onRemove, removeLabel, display, alignItems, gap, minBlockSize, paddingInlineStart, paddingInlineEnd, borderRadius, backgroundColor, color, maxInlineSize, className, style, children, ...props }: TagProps): import("react").JSX.Element | null;
|
|
15
|
-
//#endregion
|
|
13
|
+
export declare function Tag({ variant, size, href, onRemove, removeLabel, display, alignItems, gap, minBlockSize, paddingInlineStart, paddingInlineEnd, borderRadius, backgroundColor, color, maxInlineSize, className, style, children, ...props }: TagProps): import("react").JSX.Element | null;
|
package/dist/Tag/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { XIcon as a } from "../icons/XIcon.mjs";
|
|
|
7
7
|
import { size as o } from "../tokens/scales.mjs";
|
|
8
8
|
import { label as s, link as c, root as l, tag as u } from "./Tag.css.mjs";
|
|
9
9
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/Tag/index.tsx
|
|
11
11
|
function p(e) {
|
|
12
12
|
if (typeof e == "string" || typeof e == "number") return String(e);
|
|
13
13
|
if (!Array.isArray(e)) return;
|
|
@@ -83,5 +83,4 @@ function v({ variant: o = "neutral", size: m = "med", href: h, onRemove: v, remo
|
|
|
83
83
|
})]
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
//#endregion
|
|
87
86
|
export { v as Tag };
|
package/dist/Text/Text.css.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import "../styles/layers.css";
|
|
|
2
2
|
import "./Text.css";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
// src/Text/Text.css.ts
|
|
6
6
|
var e = "_1mgdisq3", t = "_1mgdisq4", n = "_1mgdisq5", r = {
|
|
7
7
|
body: "_1mgdisq6",
|
|
8
8
|
heading: "_1mgdisq7",
|
|
@@ -32,5 +32,4 @@ var e = "_1mgdisq3", t = "_1mgdisq4", n = "_1mgdisq5", r = {
|
|
|
32
32
|
"pre-wrap": "_1mgdisqr",
|
|
33
33
|
pre: "_1mgdisqs"
|
|
34
34
|
}, c = "_1mgdisqt";
|
|
35
|
-
//#endregion
|
|
36
35
|
export { t as block, r as font, o as leading, e as root, i as size, c as truncate, n as truncateBox, a as weight, s as wrap };
|
package/dist/Text/index.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { StyleProps } from "../Box/base.mjs";
|
|
|
3
3
|
import { tokens } from "../tokens/scales.mjs";
|
|
4
4
|
import { FontRole } from "../tokens/roles.mjs";
|
|
5
5
|
import { ElementType } from "react";
|
|
6
|
-
//#region src/Text/index.d.ts
|
|
7
6
|
export type TextOwnProps = {
|
|
8
7
|
font?: FontRole;
|
|
9
8
|
leading?: keyof typeof tokens.lineHeight;
|
|
@@ -13,5 +12,4 @@ export type TextOwnProps = {
|
|
|
13
12
|
wrap?: "nowrap" | "pre-wrap" | "pre";
|
|
14
13
|
};
|
|
15
14
|
export type TextProps<T extends ElementType = "p"> = PolymorphicProps<T, StyleProps & TextOwnProps>;
|
|
16
|
-
export declare function Text<T extends ElementType = "p">({ as, size, font, weight, leading, truncate, wrap, display, overflow, className, ...props }: TextProps<T>): import("react").JSX.Element;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare function Text<T extends ElementType = "p">({ as, size, font, weight, leading, truncate, wrap, display, overflow, className, ...props }: TextProps<T>): import("react").JSX.Element;
|
package/dist/Text/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { join as e } from "../styles/join.mjs";
|
|
|
2
2
|
import { Box as t } from "../Box/base.mjs";
|
|
3
3
|
import { font as n, leading as r, root as i, size as a, weight as o, wrap as s } from "./Text.css.mjs";
|
|
4
4
|
import { jsx as c } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/Text/index.tsx
|
|
6
6
|
function l({ as: l, size: u, font: d, weight: f, leading: p, truncate: m, wrap: h, display: g = "block", overflow: _ = m ? "hidden" : void 0, className: v, ...y }) {
|
|
7
7
|
let b = [
|
|
8
8
|
i,
|
|
@@ -24,5 +24,4 @@ function l({ as: l, size: u, font: d, weight: f, leading: p, truncate: m, wrap:
|
|
|
24
24
|
className: e(...b)
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { l as Text };
|
|
@@ -3,7 +3,7 @@ import "./TextField.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/TextField/TextField.css.ts
|
|
7
7
|
var t = "_20at410", n = e({
|
|
8
8
|
defaultClassName: "_20at411",
|
|
9
9
|
variantClassNames: { size: {
|
|
@@ -14,5 +14,4 @@ var t = "_20at410", n = e({
|
|
|
14
14
|
defaultVariants: {},
|
|
15
15
|
compoundVariants: []
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { t as hiddenLabel, n as input };
|
|
@@ -2,7 +2,6 @@ import { StyleProps } from "../Box/base.mjs";
|
|
|
2
2
|
import { SearchFieldInputProps } from "../SearchField/client.mjs";
|
|
3
3
|
import "../SearchField/index.mjs";
|
|
4
4
|
import { CSSProperties, ComponentPropsWithRef, ReactNode } from "react";
|
|
5
|
-
//#region src/TextField/index.d.ts
|
|
6
5
|
export type TextFieldInputProps = Pick<ComponentPropsWithRef<"input">, keyof SearchFieldInputProps | "inputMode" | "minLength" | "pattern">;
|
|
7
6
|
export type TextFieldProps = StyleProps & {
|
|
8
7
|
className?: string;
|
|
@@ -22,5 +21,4 @@ export type TextFieldProps = StyleProps & {
|
|
|
22
21
|
type?: "text" | "email" | "url" | "tel";
|
|
23
22
|
value?: string;
|
|
24
23
|
};
|
|
25
|
-
export declare function TextField({ label, hideLabel, type, value, defaultValue, onValueChange, placeholder, description, error, size, disabled, required, name, inputProps, className, style, ...atoms }: TextFieldProps): import("react").JSX.Element;
|
|
26
|
-
//#endregion
|
|
24
|
+
export declare function TextField({ label, hideLabel, type, value, defaultValue, onValueChange, placeholder, description, error, size, disabled, required, name, inputProps, className, style, ...atoms }: TextFieldProps): import("react").JSX.Element;
|
package/dist/TextField/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { Field as n } from "../Field/index.mjs";
|
|
|
4
4
|
import { hiddenLabel as r, input as i } from "./TextField.css.mjs";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
import { Input as s } from "@base-ui/react/input";
|
|
7
|
-
|
|
7
|
+
// src/TextField/index.tsx
|
|
8
8
|
function c({ label: c, hideLabel: l = !1, type: u = "text", value: d, defaultValue: f, onValueChange: p, placeholder: m, description: h, error: g, size: _ = "med", disabled: v = !1, required: y = !1, name: b, inputProps: x, className: S, style: C, ...w }) {
|
|
9
9
|
return /* @__PURE__ */ o(n, {
|
|
10
10
|
...w,
|
|
@@ -37,5 +37,4 @@ function c({ label: c, hideLabel: l = !1, type: u = "text", value: d, defaultVal
|
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
//#endregion
|
|
41
40
|
export { c as TextField };
|
package/dist/Toast/Toast.css.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "./Toast.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
|
|
6
|
+
// src/Toast/Toast.css.ts
|
|
7
7
|
var t = "hcnvsc1", n = "hcnvsc2", r = "hcnvsc3", i = "hcnvsc4", a = "hcnvsc5", o = e({
|
|
8
8
|
defaultClassName: "hcnvsc6",
|
|
9
9
|
variantClassNames: { variant: {
|
|
@@ -14,5 +14,4 @@ var t = "hcnvsc1", n = "hcnvsc2", r = "hcnvsc3", i = "hcnvsc4", a = "hcnvsc5", o
|
|
|
14
14
|
defaultVariants: {},
|
|
15
15
|
compoundVariants: []
|
|
16
16
|
}), s = "hcnvsca";
|
|
17
|
-
//#endregion
|
|
18
17
|
export { s as announcer, a as close, i as content, n as list, r as root, o as toast, t as viewport };
|