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.
@@ -1,6 +1,6 @@
1
- import { i as e } from "./form-context-D2zlNF0l.js";
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-Ddhxk-gp.js";
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-D2zlNF0l.js";
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-iCeN23U6.js";
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-8FpzC5q3.js").then((e) => ({ default: e.FieldInputGroup }))), Zn = a(() => import("./field-input-group-input-DZCaKPkV.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({
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-oyKEbsbD.js";
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--h5J-IHe.js";
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-D2zlNF0l.js";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "dawn-ui-react",
3
- "version": "1.0.0-alpha.16",
3
+ "version": "1.0.0-alpha.18",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 };