dawn-ui-react 1.0.0-alpha.16 → 1.0.0-alpha.18
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/dist/{Input--h5J-IHe.js → Input-CXejdMdw.js} +2 -2
- package/dist/{clamp-XXDcNhZ7.js → clamp-Dc75Pf2J.js} +2 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.types.d.ts +3 -1
- package/dist/components/number-field/number-field.d.ts +1 -1
- package/dist/dawn-ui-react.js +102 -64
- package/dist/dawn-ui-react.umd.cjs +3 -3
- package/dist/{field-input-group-8FpzC5q3.js → field-input-group-BmiLL43n.js} +2 -2
- package/dist/{field-input-group-input-DZCaKPkV.js → field-input-group-input-47Rcj5X2.js} +2 -2
- package/dist/{form-context-D2zlNF0l.js → form-context-CB4ds-qf.js} +1 -1
- package/dist/{input-group-Ddhxk-gp.js → input-group-Bla-ghcN.js} +1 -1
- package/dist/{input-group-input-iCeN23U6.js → input-group-input-BAoqWXrN.js} +1 -1
- package/dist/input.types-B721AivD.js +21 -0
- package/dist/{useLabelableId-C8TWIYiH.js → useLabelableId-u8XPP_En.js} +1 -1
- package/package.json +1 -1
- package/dist/input.types-oyKEbsbD.js +0 -21
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e } from "./form-context-
|
|
1
|
+
import { i as e } from "./form-context-CB4ds-qf.js";
|
|
2
2
|
import { t } from "./cn-DWnOBdrm.js";
|
|
3
|
-
import { t as n } from "./input-group-
|
|
3
|
+
import { t as n } from "./input-group-Bla-ghcN.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/field/field-input-group.tsx
|
|
6
6
|
var i = ({ className: i, children: a, ref: o, ...s }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e } from "./form-context-
|
|
1
|
+
import { i as e } from "./form-context-CB4ds-qf.js";
|
|
2
2
|
import { t } from "./cn-DWnOBdrm.js";
|
|
3
|
-
import { t as n } from "./input-group-input-
|
|
3
|
+
import { t as n } from "./input-group-input-BAoqWXrN.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/field/field-input-group-input.tsx
|
|
6
6
|
var i = ({ className: i, ref: a, ...o }) => {
|
|
@@ -3033,7 +3033,7 @@ var Wn = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m(ir()
|
|
|
3033
3033
|
weight: "bold"
|
|
3034
3034
|
}) : n
|
|
3035
3035
|
})
|
|
3036
|
-
}), qn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldDescription }))), Jn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldErrors }))), Yn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldInput }))), Xn = a(() => import("./field-input-group-
|
|
3036
|
+
}), qn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldDescription }))), Jn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldErrors }))), Yn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldInput }))), Xn = a(() => import("./field-input-group-BmiLL43n.js").then((e) => ({ default: e.FieldInputGroup }))), Zn = a(() => import("./field-input-group-input-47Rcj5X2.js").then((e) => ({ default: e.FieldInputGroupInput }))), Qn = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldLabel }))), $n = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldSelect }))), er = a(() => import("./dawn-ui-react.js").then((e) => ({ default: e.FieldSlider }))), { fieldContext: tr, useFieldContext: nr, formContext: rr, useFormContext: ir } = Hn(), { useAppForm: ar, withFieldGroup: or, withForm: sr, useTypedAppFormContext: cr } = Un({
|
|
3037
3037
|
fieldContext: tr,
|
|
3038
3038
|
fieldComponents: {
|
|
3039
3039
|
FieldDescription: qn,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-DWnOBdrm.js";
|
|
2
|
-
import { t } from "./input.types-
|
|
2
|
+
import { t } from "./input.types-B721AivD.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/input-group/input-group.tsx
|
|
5
5
|
var r = ({ variant: r, className: i, children: a, ref: o, ...s }) => /* @__PURE__ */ n("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-DWnOBdrm.js";
|
|
2
|
-
import { t } from "./Input
|
|
2
|
+
import { t } from "./Input-CXejdMdw.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/input-group/input-group-input.tsx
|
|
5
5
|
var r = ({ className: r, ref: i, ...a }) => /* @__PURE__ */ n(t, {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { _ as e } from "./form-context-CB4ds-qf.js";
|
|
2
|
+
//#region src/components/input/input.types.tsx
|
|
3
|
+
var t = e("group flex items-center rounded-full leading-0 text-ellipsis caret-brand-border-strong outline outline-transparent transition-all placeholder:opacity-60 focus-within:outline-brand-border-strong not-focus-within:hover:outline-border-strong disabled:cursor-not-allowed aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:caret-error-border-strong aria-invalid:outline-error-border aria-invalid:focus-within:outline-error-border-strong aria-invalid:not-focus-within:hover:outline-error-border data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", {
|
|
4
|
+
variants: {
|
|
5
|
+
variant: {
|
|
6
|
+
primary: "bg-surface shadow-2xs",
|
|
7
|
+
secondary: "bg-surface-low"
|
|
8
|
+
},
|
|
9
|
+
size: {
|
|
10
|
+
small: "h-lg gap-3xs px-xs style-text-prose--1",
|
|
11
|
+
medium: "h-xl gap-2xs px-sm style-text-prose-0",
|
|
12
|
+
large: "h-2xl gap-xs px-md style-text-prose-1"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "primary",
|
|
17
|
+
size: "medium"
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, B as t, G as n, I as r, J as i, Q as a, W as o, X as s, Z as c, j as ee } from "./form-context-
|
|
1
|
+
import { $ as e, B as t, G as n, I as r, J as i, Q as a, W as o, X as s, Z as c, j as ee } from "./form-context-CB4ds-qf.js";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useControlled.js
|
|
4
4
|
function u({ controlled: t, default: n, name: r, state: i = "value" }) {
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { _ as e } from "./form-context-D2zlNF0l.js";
|
|
2
|
-
//#region src/components/input/input.types.tsx
|
|
3
|
-
var t = e("group flex w-full items-center rounded-full leading-0 text-ellipsis caret-brand-border-strong outline outline-transparent transition-all placeholder:opacity-60 focus-within:outline-brand-border-strong not-focus-within:hover:outline-border-strong disabled:cursor-not-allowed aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:caret-error-border-strong aria-invalid:outline-error-border aria-invalid:focus-within:outline-error-border-strong aria-invalid:not-focus-within:hover:outline-error-border data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", {
|
|
4
|
-
variants: {
|
|
5
|
-
variant: {
|
|
6
|
-
primary: "bg-surface shadow-2xs",
|
|
7
|
-
secondary: "bg-surface-low"
|
|
8
|
-
},
|
|
9
|
-
size: {
|
|
10
|
-
small: "h-lg gap-3xs px-xs style-text-prose--1",
|
|
11
|
-
medium: "h-xl gap-2xs px-sm style-text-prose-0",
|
|
12
|
-
large: "h-2xl gap-xs px-md style-text-prose-1"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
variant: "primary",
|
|
17
|
-
size: "medium"
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { t };
|