dawn-ui-react 1.0.0-alpha.5 → 1.0.0-alpha.6
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Dialog } from './dialog';
|
|
2
|
-
export type { DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogProps, DialogTitleProps, DialogTriggerProps, } from './dialog.types';
|
|
2
|
+
export type { DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogContentProps, } from './dialog.types';
|
|
3
3
|
export { DialogClose } from './dialog-close';
|
|
4
4
|
export { DialogContent } from './dialog-content';
|
|
5
5
|
export { DialogDescription } from './dialog-description';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SeparatorProps } from './separator.types';
|
|
2
|
-
export declare const Separator: ({ orientation, weight, style, variant, className, ref, ...props }: SeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Separator: ({ orientation, weight, style, variant, children, className, labelClassName, ref, ...props }: SeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,4 +6,6 @@ export declare const separatorVariants: (props?: ({
|
|
|
6
6
|
variant?: "strong" | "default" | null | undefined;
|
|
7
7
|
weight?: "medium" | "thin" | "thick" | "thinnest" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
export type SeparatorProps = Omit<React.ComponentProps<typeof BaseSeparator>, 'style'> & VariantProps<typeof separatorVariants
|
|
9
|
+
export type SeparatorProps = Omit<React.ComponentProps<typeof BaseSeparator>, 'style'> & VariantProps<typeof separatorVariants> & {
|
|
10
|
+
labelClassName?: string;
|
|
11
|
+
};
|
package/dist/dawn-ui-react.js
CHANGED
|
@@ -12815,7 +12815,7 @@ var lg = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q("div
|
|
|
12815
12815
|
ref: n,
|
|
12816
12816
|
...r,
|
|
12817
12817
|
children: t
|
|
12818
|
-
}), Ag = h("shrink-0 rounded-full", {
|
|
12818
|
+
}), Ag = h("relative shrink-0 rounded-full", {
|
|
12819
12819
|
variants: {
|
|
12820
12820
|
orientation: {
|
|
12821
12821
|
horizontal: "w-full",
|
|
@@ -12830,10 +12830,10 @@ var lg = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q("div
|
|
|
12830
12830
|
strong: "bg-neutral-border-strong"
|
|
12831
12831
|
},
|
|
12832
12832
|
weight: {
|
|
12833
|
-
thick: "",
|
|
12834
|
-
medium: "",
|
|
12835
|
-
thin: "",
|
|
12836
|
-
thinnest: ""
|
|
12833
|
+
thick: "[&_[data-label]]:style-text-prose-0",
|
|
12834
|
+
medium: "[&_[data-label]]:style-text-prose--1",
|
|
12835
|
+
thin: "[&_[data-label]]:style-text-prose--2",
|
|
12836
|
+
thinnest: "[&_[data-label]]:style-text-prose--2"
|
|
12837
12837
|
}
|
|
12838
12838
|
},
|
|
12839
12839
|
defaultVariants: {
|
|
@@ -12884,17 +12884,21 @@ var lg = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q("div
|
|
|
12884
12884
|
className: "w-px"
|
|
12885
12885
|
}
|
|
12886
12886
|
]
|
|
12887
|
-
}), jg = ({ orientation: e, weight: t, style: n, variant: r,
|
|
12888
|
-
className: Y(Ag({
|
|
12887
|
+
}), jg = ({ orientation: e, weight: t, style: n, variant: r, children: i, className: a, labelClassName: o, ref: s, ...c }) => /* @__PURE__ */ Z(Bo, {
|
|
12888
|
+
className: Y("relative", Ag({
|
|
12889
12889
|
orientation: e,
|
|
12890
12890
|
weight: t,
|
|
12891
12891
|
style: n,
|
|
12892
|
-
variant: r
|
|
12893
|
-
|
|
12894
|
-
})),
|
|
12892
|
+
variant: r
|
|
12893
|
+
}), a),
|
|
12895
12894
|
orientation: e,
|
|
12896
|
-
ref:
|
|
12897
|
-
...
|
|
12895
|
+
ref: s,
|
|
12896
|
+
...c,
|
|
12897
|
+
children: /* @__PURE__ */ Z("span", {
|
|
12898
|
+
"data-label": !0,
|
|
12899
|
+
className: Y("absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-surface-background px-2xs whitespace-nowrap text-on-surface-variant", o),
|
|
12900
|
+
children: i
|
|
12901
|
+
})
|
|
12898
12902
|
}), Mg = ({ inline: e = !1, variant: t, className: n, children: r, ref: i, ...a }) => {
|
|
12899
12903
|
let o = Mr.useId();
|
|
12900
12904
|
return e ? /* @__PURE__ */ Z("div", {
|