dawn-ui-react 1.0.0-alpha → 1.0.0-alpha.10
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-Br91lfPH.js → Input--h5J-IHe.js} +4 -4
- package/dist/{clamp-C6OCmUfq.js → clamp-XXDcNhZ7.js} +50 -50
- package/dist/{cn-CXogf8HW.js → cn-DWnOBdrm.js} +349 -307
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.types.d.ts +1 -0
- package/dist/components/code-block/code-block-actions.d.ts +2 -0
- package/dist/components/code-block/code-block-copy.d.ts +2 -0
- package/dist/components/code-block/code-block-download.d.ts +2 -0
- package/dist/components/code-block/code-block-header-group.d.ts +2 -0
- package/dist/components/code-block/code-block-header.d.ts +3 -0
- package/dist/components/code-block/code-block-name.d.ts +2 -0
- package/dist/components/code-block/code-block-select.d.ts +2 -0
- package/dist/components/code-block/code-block-tabs.d.ts +2 -0
- package/dist/components/code-block/code-block-window.d.ts +3 -0
- package/dist/components/code-block/code-block.d.ts +3 -0
- package/dist/components/code-block/code-block.types.d.ts +26 -0
- package/dist/components/code-block/index.d.ts +2 -0
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/drawer/drawer-close.d.ts +2 -0
- package/dist/components/drawer/drawer-content.d.ts +2 -0
- package/dist/components/drawer/drawer-description.d.ts +2 -0
- package/dist/components/drawer/drawer-header.d.ts +2 -0
- package/dist/components/drawer/drawer-popup.d.ts +2 -0
- package/dist/components/drawer/drawer-provider.d.ts +2 -0
- package/dist/components/drawer/drawer-title.d.ts +2 -0
- package/dist/components/drawer/drawer-trigger.d.ts +2 -0
- package/dist/components/drawer/drawer.d.ts +2 -0
- package/dist/components/drawer/drawer.types.d.ts +10 -0
- package/dist/components/drawer/index.d.ts +10 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/input-otp/index.d.ts +2 -1
- package/dist/components/input-otp/input-otp-separator.d.ts +2 -0
- package/dist/components/input-otp/input-otp-slot.d.ts +1 -1
- package/dist/components/input-otp/input-otp.types.d.ts +4 -3
- package/dist/components/layer-tree/index.d.ts +5 -1
- package/dist/components/layer-tree/layer-tree-body.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-footer.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-node-toggle.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-node.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-row.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-search.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-sort.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-utils.d.ts +83 -0
- package/dist/components/layer-tree/layer-tree.d.ts +9 -4
- package/dist/components/layer-tree/layer-tree.types.d.ts +16 -5
- package/dist/components/popover/index.d.ts +2 -1
- package/dist/components/popover/popover-button.d.ts +2 -0
- package/dist/components/popover/popover.types.d.ts +2 -0
- package/dist/components/profile/index.d.ts +5 -1
- package/dist/components/profile/profile-action.d.ts +2 -0
- package/dist/components/profile/profile-content.d.ts +2 -0
- package/dist/components/profile/profile-name.d.ts +2 -0
- package/dist/components/profile/profile-subname.d.ts +2 -0
- package/dist/components/profile/profile.d.ts +1 -1
- package/dist/components/profile/profile.types.d.ts +6 -14
- package/dist/components/separator/separator.d.ts +1 -1
- package/dist/components/separator/separator.types.d.ts +3 -1
- package/dist/components/tabs/tabs.types.d.ts +1 -1
- package/dist/dawn-ui-react.js +20673 -10612
- package/dist/dawn-ui-react.umd.cjs +71 -24
- package/dist/{field-input-group-Dcwadst3.js → field-input-group-8FpzC5q3.js} +3 -3
- package/dist/{field-input-group-input-CLQz2SPo.js → field-input-group-input-DZCaKPkV.js} +3 -3
- package/dist/{form-context-CzC_p5DL.js → form-context-D2zlNF0l.js} +529 -509
- package/dist/{input-group-D3zocoNy.js → input-group-Ddhxk-gp.js} +2 -2
- package/dist/{input-group-input-CHby62R-.js → input-group-input-iCeN23U6.js} +2 -2
- package/dist/input.types-oyKEbsbD.js +21 -0
- package/dist/styles.css +149 -118
- package/dist/{useLabelableId-VWw8rfpn.js → useLabelableId-C8TWIYiH.js} +51 -51
- package/package.json +40 -40
- package/dist/field-description-BDRJXMS8.js +0 -12
- package/dist/field-errors-BDUanNiE.js +0 -19
- package/dist/field-input-0WxX-93A.js +0 -58
- package/dist/field-label-DwF_1o76.js +0 -16
- package/dist/field-select-BmvhGVSz.js +0 -2149
- package/dist/field-slider-oL8pDrCe.js +0 -2167
- package/dist/input.types-Dl_61f0y.js +0 -21
- package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dawn-ui-react",
|
|
3
|
-
"version": "1.0.0-alpha",
|
|
3
|
+
"version": "1.0.0-alpha.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build": "tsc -b && vite build && pnpm run build:css",
|
|
32
32
|
"build-storybook": "pnpm build:tailwind && storybook build",
|
|
33
33
|
"build:css": "node -e \"require('fs').copyFileSync('src/styles/input.css', 'dist/styles.css')\"",
|
|
34
|
-
"build:tailwind": "
|
|
34
|
+
"build:tailwind": "pnpm dlx @tailwindcss/cli -i ./src/styles/input.css -o ./dist/styles.css",
|
|
35
35
|
"commit": "git add . && git commit",
|
|
36
36
|
"commit:skip": "git add . && git commit --no-verify",
|
|
37
37
|
"cz": "cz",
|
|
@@ -44,68 +44,68 @@
|
|
|
44
44
|
"storybook": "concurrently 'pnpm:watch:*'",
|
|
45
45
|
"test": "vitest run",
|
|
46
46
|
"watch:storybook": "storybook dev -p 6006",
|
|
47
|
-
"watch:tailwind": "
|
|
47
|
+
"watch:tailwind": "pnpm dlx @tailwindcss/cli -i ./src/styles/input.css -o ./src/styles/output.css --watch"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@base-ui/react": "^1.4.1",
|
|
51
|
+
"@dnd-kit/dom": "^0.4.0",
|
|
52
|
+
"@dnd-kit/react": "^0.4.0",
|
|
51
53
|
"@phosphor-icons/react": "^2.1.10",
|
|
52
|
-
"@tailwindcss/cli": "^4.
|
|
53
|
-
"@tailwindcss/vite": "^4.
|
|
54
|
-
"@tanstack/react-form": "^1.
|
|
54
|
+
"@tailwindcss/cli": "^4.3.0",
|
|
55
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
56
|
+
"@tanstack/react-form": "^1.32.0",
|
|
55
57
|
"@tanstack/react-table": "^8.21.3",
|
|
56
58
|
"class-variance-authority": "^0.7.1",
|
|
57
59
|
"clsx": "^2.1.1",
|
|
58
|
-
"
|
|
59
|
-
"tailwind-merge": "^3.
|
|
60
|
-
"tailwindcss": "^4.
|
|
60
|
+
"react-resizable-panels": "^4.11.1",
|
|
61
|
+
"tailwind-merge": "^3.6.0",
|
|
62
|
+
"tailwindcss": "^4.3.0",
|
|
61
63
|
"tw-animate-css": "^1.4.0"
|
|
62
64
|
},
|
|
63
65
|
"devDependencies": {
|
|
64
|
-
"@chromatic-com/storybook": "^5.1
|
|
65
|
-
"@commitlint/cli": "^
|
|
66
|
-
"@commitlint/config-conventional": "^
|
|
66
|
+
"@chromatic-com/storybook": "^5.2.1",
|
|
67
|
+
"@commitlint/cli": "^21.0.1",
|
|
68
|
+
"@commitlint/config-conventional": "^21.0.1",
|
|
67
69
|
"@faker-js/faker": "^10.4.0",
|
|
68
70
|
"@semantic-release/changelog": "^6.0.3",
|
|
69
71
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
70
72
|
"@semantic-release/git": "^10.0.1",
|
|
71
|
-
"@semantic-release/github": "^12.0.
|
|
73
|
+
"@semantic-release/github": "^12.0.8",
|
|
72
74
|
"@semantic-release/npm": "^13.1.5",
|
|
73
|
-
"@semantic-release/release-notes-generator": "^14.1.
|
|
74
|
-
"@storybook/addon-a11y": "^10.
|
|
75
|
-
"@storybook/addon-docs": "^10.
|
|
76
|
-
"@storybook/addon-themes": "^10.
|
|
77
|
-
"@storybook/addon-vitest": "^10.
|
|
78
|
-
"@storybook/react-vite": "^10.
|
|
79
|
-
"@tailwindcss/node": "^4.
|
|
80
|
-
"@
|
|
81
|
-
"@tanstack/react-table": "^8.21.3",
|
|
82
|
-
"@types/node": "^25.6.0",
|
|
75
|
+
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
76
|
+
"@storybook/addon-a11y": "^10.4.0",
|
|
77
|
+
"@storybook/addon-docs": "^10.4.0",
|
|
78
|
+
"@storybook/addon-themes": "^10.4.0",
|
|
79
|
+
"@storybook/addon-vitest": "^10.4.0",
|
|
80
|
+
"@storybook/react-vite": "^10.4.0",
|
|
81
|
+
"@tailwindcss/node": "^4.3.0",
|
|
82
|
+
"@types/node": "^25.8.0",
|
|
83
83
|
"@types/react": "^19.2.14",
|
|
84
84
|
"@types/react-dom": "^19.2.3",
|
|
85
|
-
"@vitejs/plugin-react": "^6.0.
|
|
86
|
-
"@vitest/browser-playwright": "^4.1.
|
|
87
|
-
"@vitest/coverage-v8": "^4.1.
|
|
85
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
86
|
+
"@vitest/browser-playwright": "^4.1.6",
|
|
87
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
88
88
|
"commitizen": "^4.3.1",
|
|
89
89
|
"concurrently": "^9.2.1",
|
|
90
90
|
"cz-conventional-changelog": "^3.3.0",
|
|
91
|
-
"globals": "^17.
|
|
92
|
-
"
|
|
93
|
-
"jsdom": "^29.1.0",
|
|
91
|
+
"globals": "^17.6.0",
|
|
92
|
+
"jsdom": "^29.1.1",
|
|
94
93
|
"lefthook": "^2.1.6",
|
|
95
|
-
"lint-staged": "^
|
|
96
|
-
"oxfmt": "^0.
|
|
97
|
-
"oxlint": "^1.
|
|
98
|
-
"oxlint-tailwindcss": "^0.
|
|
94
|
+
"lint-staged": "^17.0.4",
|
|
95
|
+
"oxfmt": "^0.50.0",
|
|
96
|
+
"oxlint": "^1.65.0",
|
|
97
|
+
"oxlint-tailwindcss": "^0.7.1",
|
|
99
98
|
"oxlint-tsgolint": "^0.22.1",
|
|
100
|
-
"playwright": "^1.
|
|
101
|
-
"react-resizable-panels": "^4.10.0",
|
|
99
|
+
"playwright": "^1.60.0",
|
|
102
100
|
"semantic-release": "^25.0.3",
|
|
103
|
-
"
|
|
101
|
+
"shiki": "^4.1.0",
|
|
102
|
+
"storybook": "^10.4.0",
|
|
104
103
|
"typescript": "~6.0.3",
|
|
105
|
-
"
|
|
106
|
-
"vite
|
|
107
|
-
"
|
|
108
|
-
"
|
|
104
|
+
"uuid": "^14.0.0",
|
|
105
|
+
"vite": "^8.0.13",
|
|
106
|
+
"vite-plugin-dts": "^5.0.0",
|
|
107
|
+
"vitest": "^4.1.6",
|
|
108
|
+
"zod": "^4.4.3"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"react": "^19.0.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { t } from "./cn-CXogf8HW.js";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/field/field-description.tsx
|
|
5
|
-
var r = /* @__PURE__ */ e({ FieldDescription: () => i }), i = ({ className: e, children: r, ref: i, ...a }) => /* @__PURE__ */ n("p", {
|
|
6
|
-
className: t("style-text-prose--1 text-on-surface-variant", e),
|
|
7
|
-
ref: i,
|
|
8
|
-
...a,
|
|
9
|
-
children: r
|
|
10
|
-
});
|
|
11
|
-
//#endregion
|
|
12
|
-
export { r as n, i as t };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { i as t } from "./form-context-CzC_p5DL.js";
|
|
3
|
-
import { t as n } from "./cn-CXogf8HW.js";
|
|
4
|
-
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/field/field-errors.tsx
|
|
6
|
-
var o = /* @__PURE__ */ e({ FieldErrors: () => s }), s = ({ className: e, children: o, ref: s, ...c }) => {
|
|
7
|
-
let l = t();
|
|
8
|
-
return l.state.meta.errors.length === 0 && !o ? null : /* @__PURE__ */ i(r, { children: l.state.meta.errors.length > 0 && /* @__PURE__ */ a("ul", {
|
|
9
|
-
className: n("space-y-3xs", e),
|
|
10
|
-
ref: s,
|
|
11
|
-
...c,
|
|
12
|
-
children: [l.state.meta.errors.map((e) => /* @__PURE__ */ i("li", {
|
|
13
|
-
className: "flex items-center gap-2xs style-text-strong--1 text-error-default",
|
|
14
|
-
children: e.message
|
|
15
|
-
}, e.message)), o]
|
|
16
|
-
}) });
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { o as n, s as t };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { i as t } from "./form-context-CzC_p5DL.js";
|
|
3
|
-
import { t as n } from "./cn-CXogf8HW.js";
|
|
4
|
-
import { t as r } from "./Input-Br91lfPH.js";
|
|
5
|
-
import { t as i } from "./input.types-Dl_61f0y.js";
|
|
6
|
-
import { useRef as a, useState as o } from "react";
|
|
7
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
-
//#region src/components/input/input.tsx
|
|
9
|
-
var l = ({ variant: e, size: t, className: l, ref: u, ...d }) => {
|
|
10
|
-
let f = a(null), [p, m] = o(d.defaultValue || "#000000");
|
|
11
|
-
return d.type === "color" ? /* @__PURE__ */ c("button", {
|
|
12
|
-
"aria-label": "Open color picker",
|
|
13
|
-
className: "relative h-xl w-[calc(var(--spacing-3xl)+5rem)] items-center rounded-xl pl-xs transition-all peer-focus:outline-brand-default hover:cursor-pointer",
|
|
14
|
-
onClick: () => f.current?.click(),
|
|
15
|
-
type: "button",
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ s("div", {
|
|
18
|
-
className: n("absolute top-1/2 left-[0px] aspect-square h-full -translate-y-1/2 rounded-l-xl"),
|
|
19
|
-
style: { backgroundColor: p }
|
|
20
|
-
}),
|
|
21
|
-
/* @__PURE__ */ s(r, {
|
|
22
|
-
className: "peer pointer-events-none invisible absolute top-lg",
|
|
23
|
-
defaultValue: p,
|
|
24
|
-
onChange: (e) => m(e.currentTarget.value),
|
|
25
|
-
ref: f,
|
|
26
|
-
type: "color",
|
|
27
|
-
value: p,
|
|
28
|
-
...d
|
|
29
|
-
}),
|
|
30
|
-
/* @__PURE__ */ s("p", {
|
|
31
|
-
className: "pl-xl text-left style-text-default-0",
|
|
32
|
-
children: p
|
|
33
|
-
})
|
|
34
|
-
]
|
|
35
|
-
}) : /* @__PURE__ */ s(r, {
|
|
36
|
-
className: n(i({
|
|
37
|
-
variant: e,
|
|
38
|
-
size: t
|
|
39
|
-
}), l),
|
|
40
|
-
ref: u,
|
|
41
|
-
...d
|
|
42
|
-
});
|
|
43
|
-
}, u = /* @__PURE__ */ e({ FieldInput: () => d }), d = ({ className: e, children: r, ref: i, ...a }) => {
|
|
44
|
-
let o = t();
|
|
45
|
-
return /* @__PURE__ */ s(l, {
|
|
46
|
-
"aria-invalid": o.state.meta.isTouched && o.state.meta.errors.length > 0 && !o.state.meta.isValid,
|
|
47
|
-
className: n("", e),
|
|
48
|
-
id: o.name,
|
|
49
|
-
name: o.name,
|
|
50
|
-
onChange: (e) => o.handleChange(e.target.value),
|
|
51
|
-
ref: i,
|
|
52
|
-
value: o.state.value,
|
|
53
|
-
...a,
|
|
54
|
-
children: r
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
//#endregion
|
|
58
|
-
export { u as n, l as r, d as t };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { i as t } from "./form-context-CzC_p5DL.js";
|
|
3
|
-
import { t as n } from "./cn-CXogf8HW.js";
|
|
4
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/field/field-label.tsx
|
|
6
|
-
var i = /* @__PURE__ */ e({ FieldLabel: () => a }), a = ({ className: e, children: i, ref: a, ...o }) => {
|
|
7
|
-
let s = t(), c = s.name.replace(/([A-Z])/g, " $1").replace(/^./, (e) => e.toUpperCase());
|
|
8
|
-
return /* @__PURE__ */ r("div", {
|
|
9
|
-
className: n("style-text-default-0", e, s.state.meta.errors.length > 0 && "text-error-default"),
|
|
10
|
-
ref: a,
|
|
11
|
-
...o,
|
|
12
|
-
children: i || c
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
16
|
-
export { i as n, a as t };
|