dawn-ui-react 1.0.0-alpha.6 → 1.0.0-alpha.7

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.
Files changed (32) hide show
  1. package/dist/{Input-DtHcqeCc.js → Input-BkHt7FC1.js} +2 -2
  2. package/dist/{clamp-DQOKpe2d.js → clamp-Bd-I2_Rk.js} +2 -2
  3. package/dist/{cn-CXogf8HW.js → cn-DWnOBdrm.js} +349 -307
  4. package/dist/components/layer-tree/index.d.ts +2 -1
  5. package/dist/components/layer-tree/layer-tree-search.d.ts +1 -1
  6. package/dist/components/layer-tree/layer-tree-sort.d.ts +1 -3
  7. package/dist/components/layer-tree/layer-tree.types.d.ts +5 -1
  8. package/dist/components/profile/index.d.ts +5 -1
  9. package/dist/components/profile/profile-action.d.ts +2 -0
  10. package/dist/components/profile/profile-content.d.ts +2 -0
  11. package/dist/components/profile/profile-name.d.ts +2 -0
  12. package/dist/components/profile/profile-subname.d.ts +2 -0
  13. package/dist/components/profile/profile.d.ts +1 -1
  14. package/dist/components/profile/profile.types.d.ts +6 -14
  15. package/dist/dawn-ui-react.js +15490 -11107
  16. package/dist/dawn-ui-react.umd.cjs +26 -26
  17. package/dist/{field-input-group-DRO7BT9K.js → field-input-group-BwMQAM6n.js} +3 -3
  18. package/dist/{field-input-group-input-D1w5gEYu.js → field-input-group-input-DnJFuMi4.js} +3 -3
  19. package/dist/{form-context-DBHjPCAB.js → form-context-om_k3VKa.js} +481 -461
  20. package/dist/{input-group-CDZSzmGh.js → input-group-CWH7SWRv.js} +2 -2
  21. package/dist/{input-group-input-DksiPZS5.js → input-group-input-DOxvfiMV.js} +2 -2
  22. package/dist/{input.types-BToTmX-b.js → input.types-BeeCYL9x.js} +1 -1
  23. package/dist/styles.css +21 -21
  24. package/dist/{useLabelableId-Bsez0mIm.js → useLabelableId-B_P81Wgy.js} +1 -1
  25. package/package.json +22 -22
  26. package/dist/field-description-BDRJXMS8.js +0 -12
  27. package/dist/field-errors-BndE4fDS.js +0 -21
  28. package/dist/field-input-BPNlupYr.js +0 -58
  29. package/dist/field-label-DiJO_3-h.js +0 -16
  30. package/dist/field-select-BRibIEnZ.js +0 -2147
  31. package/dist/field-slider-SYOU6bVj.js +0 -2167
  32. package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
@@ -1,5 +1,5 @@
1
- import { t as e } from "./cn-CXogf8HW.js";
2
- import { t } from "./input.types-BToTmX-b.js";
1
+ import { t as e } from "./cn-DWnOBdrm.js";
2
+ import { t } from "./input.types-BeeCYL9x.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
- import { t as e } from "./cn-CXogf8HW.js";
2
- import { t } from "./Input-DtHcqeCc.js";
1
+ import { t as e } from "./cn-DWnOBdrm.js";
2
+ import { t } from "./Input-BkHt7FC1.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, {
@@ -1,4 +1,4 @@
1
- import { _ as e } from "./form-context-DBHjPCAB.js";
1
+ import { _ as e } from "./form-context-om_k3VKa.js";
2
2
  //#region src/components/input/input.types.tsx
3
3
  var t = e("group flex w-full items-center rounded-full 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
4
  variants: {
package/dist/styles.css CHANGED
@@ -405,29 +405,29 @@
405
405
  --yellow-900: #715212ff;
406
406
  --yellow-950: #422f06ff;
407
407
 
408
- --dawn-brand-default: light-dark(var(--blue-700), var(--blue-400));
409
- --dawn-brand-muted: light-dark(var(--blue-800), var(--blue-300));
410
- --dawn-brand-subtle: light-dark(var(--blue-100), var(--blue-950));
408
+ --dawn-brand-default: light-dark(var(--rose-600), var(--rose-300));
409
+ --dawn-brand-muted: light-dark(var(--rose-700), var(--rose-200));
410
+ --dawn-brand-subtle: light-dark(var(--rose-100), var(--rose-950));
411
411
  --dawn-brand-on-default: light-dark(var(--white), var(--neutral-950));
412
- --dawn-brand-container: light-dark(var(--blue-50), var(--blue-950));
413
- --dawn-brand-container-high: light-dark(var(--blue-100), var(--blue-900));
414
- --dawn-brand-on-container: light-dark(var(--blue-900), var(--blue-200));
415
- --dawn-brand-on-container-muted: light-dark(var(--blue-700), var(--blue-400));
416
- --dawn-brand-border: light-dark(var(--blue-300), var(--blue-700));
417
- --dawn-brand-border-strong: light-dark(var(--blue-600), var(--blue-400));
418
- --dawn-brand-shadow: light-dark(#005ba740, #30acff66);
419
-
420
- --dawn-accent-default: light-dark(var(--lime-700), var(--lime-400));
421
- --dawn-accent-muted: light-dark(var(--lime-800), var(--lime-300));
422
- --dawn-accent-subtle: light-dark(var(--lime-100), var(--green-950));
412
+ --dawn-brand-container: light-dark(var(--rose-50), var(--rose-950));
413
+ --dawn-brand-container-high: light-dark(var(--rose-100), var(--rose-900));
414
+ --dawn-brand-on-container: light-dark(var(--rose-900), var(--rose-200));
415
+ --dawn-brand-on-container-muted: light-dark(var(--rose-700), var(--rose-300));
416
+ --dawn-brand-border: light-dark(var(--rose-300), var(--rose-600));
417
+ --dawn-brand-border-strong: light-dark(var(--rose-600), var(--rose-400));
418
+ --dawn-brand-shadow: light-dark(#e11d4840, #fda4b866);
419
+
420
+ --dawn-accent-default: light-dark(var(--violet-600), var(--violet-300));
421
+ --dawn-accent-muted: light-dark(var(--violet-700), var(--violet-200));
422
+ --dawn-accent-subtle: light-dark(var(--violet-100), var(--violet-950));
423
423
  --dawn-accent-on-default: light-dark(var(--white), var(--neutral-950));
424
- --dawn-accent-container: light-dark(var(--lime-50), var(--lime-950));
425
- --dawn-accent-container-high: light-dark(var(--lime-100), var(--lime-900));
426
- --dawn-accent-on-container: light-dark(var(--lime-900), var(--lime-200));
427
- --dawn-accent-on-container-muted: light-dark(var(--lime-700), var(--lime-400));
428
- --dawn-accent-border: light-dark(var(--lime-300), var(--green-700));
429
- --dawn-accent-border-strong: light-dark(var(--lime-600), var(--lime-400));
430
- --dawn-accent-shadow: light-dark(#197c4b40, #4fd99466);
424
+ --dawn-accent-container: light-dark(var(--violet-50), var(--violet-950));
425
+ --dawn-accent-container-high: light-dark(var(--violet-100), var(--violet-900));
426
+ --dawn-accent-on-container: light-dark(var(--violet-900), var(--violet-200));
427
+ --dawn-accent-on-container-muted: light-dark(var(--violet-700), var(--violet-300));
428
+ --dawn-accent-border: light-dark(var(--violet-300), var(--violet-700));
429
+ --dawn-accent-border-strong: light-dark(var(--violet-600), var(--violet-400));
430
+ --dawn-accent-shadow: light-dark(#7c3aed40, #d0b5fd66);
431
431
 
432
432
  --dawn-neutral-default: light-dark(var(--neutral-700), var(--neutral-100));
433
433
  --dawn-neutral-muted: light-dark(var(--neutral-800), var(--neutral-400));
@@ -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-DBHjPCAB.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-om_k3VKa.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.6",
3
+ "version": "1.0.0-alpha.7",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -53,19 +53,19 @@
53
53
  "@phosphor-icons/react": "^2.1.10",
54
54
  "@tailwindcss/cli": "^4.3.0",
55
55
  "@tailwindcss/vite": "^4.3.0",
56
- "@tanstack/react-form": "^1.31.0",
56
+ "@tanstack/react-form": "^1.32.0",
57
57
  "@tanstack/react-table": "^8.21.3",
58
58
  "class-variance-authority": "^0.7.1",
59
59
  "clsx": "^2.1.1",
60
- "react-resizable-panels": "^4.11.0",
61
- "tailwind-merge": "^3.5.0",
60
+ "react-resizable-panels": "^4.11.1",
61
+ "tailwind-merge": "^3.6.0",
62
62
  "tailwindcss": "^4.3.0",
63
63
  "tw-animate-css": "^1.4.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@chromatic-com/storybook": "^5.1.2",
67
- "@commitlint/cli": "^21.0.0",
68
- "@commitlint/config-conventional": "^21.0.0",
66
+ "@chromatic-com/storybook": "^5.2.1",
67
+ "@commitlint/cli": "^21.0.1",
68
+ "@commitlint/config-conventional": "^21.0.1",
69
69
  "@faker-js/faker": "^10.4.0",
70
70
  "@semantic-release/changelog": "^6.0.3",
71
71
  "@semantic-release/commit-analyzer": "^13.0.1",
@@ -73,18 +73,18 @@
73
73
  "@semantic-release/github": "^12.0.8",
74
74
  "@semantic-release/npm": "^13.1.5",
75
75
  "@semantic-release/release-notes-generator": "^14.1.1",
76
- "@storybook/addon-a11y": "^10.3.6",
77
- "@storybook/addon-docs": "^10.3.6",
78
- "@storybook/addon-themes": "^10.3.6",
79
- "@storybook/addon-vitest": "^10.3.6",
80
- "@storybook/react-vite": "^10.3.6",
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
81
  "@tailwindcss/node": "^4.3.0",
82
- "@types/node": "^25.6.2",
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.1",
86
- "@vitest/browser-playwright": "^4.1.5",
87
- "@vitest/coverage-v8": "^4.1.5",
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",
@@ -92,18 +92,18 @@
92
92
  "jsdom": "^29.1.1",
93
93
  "lefthook": "^2.1.6",
94
94
  "lint-staged": "^17.0.4",
95
- "oxfmt": "^0.48.0",
96
- "oxlint": "^1.63.0",
95
+ "oxfmt": "^0.50.0",
96
+ "oxlint": "^1.65.0",
97
97
  "oxlint-tailwindcss": "^0.7.1",
98
98
  "oxlint-tsgolint": "^0.22.1",
99
- "playwright": "^1.59.1",
99
+ "playwright": "^1.60.0",
100
100
  "semantic-release": "^25.0.3",
101
- "storybook": "^10.3.6",
101
+ "storybook": "^10.4.0",
102
102
  "typescript": "~6.0.3",
103
103
  "uuid": "^14.0.0",
104
- "vite": "^8.0.11",
104
+ "vite": "^8.0.13",
105
105
  "vite-plugin-dts": "^5.0.0",
106
- "vitest": "^4.1.5",
106
+ "vitest": "^4.1.6",
107
107
  "zod": "^4.4.3"
108
108
  },
109
109
  "peerDependencies": {
@@ -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,21 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { i as t } from "./form-context-DBHjPCAB.js";
3
- import { t as n } from "./cn-CXogf8HW.js";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/field/field-errors.tsx
6
- var a = /* @__PURE__ */ e({ FieldErrors: () => o }), o = ({ className: e, children: a, ref: o, ...s }) => {
7
- let c = t();
8
- if (c.state.meta.errors.length === 0 && !a) return null;
9
- let l = c.state.meta.errors.map((e) => typeof e == "string" ? e : e && typeof e == "object" && "message" in e && typeof e.message == "string" ? e.message : null).filter((e) => e !== null);
10
- return l.length === 0 && !a ? null : /* @__PURE__ */ i("ul", {
11
- className: n("space-y-3xs", e),
12
- ref: o,
13
- ...s,
14
- children: [l.map((e) => /* @__PURE__ */ r("li", {
15
- className: "flex items-center gap-2xs style-text-strong--1 text-error-default",
16
- children: e
17
- }, e)), a]
18
- });
19
- };
20
- //#endregion
21
- export { a as n, o as t };
@@ -1,58 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { i as t } from "./form-context-DBHjPCAB.js";
3
- import { t as n } from "./cn-CXogf8HW.js";
4
- import { t as r } from "./Input-DtHcqeCc.js";
5
- import { t as i } from "./input.types-BToTmX-b.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-DBHjPCAB.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 };