dawn-ui-react 1.0.0-alpha.2 → 1.0.0-alpha.21
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/CompositeItem-CH9gluPn.js +45 -0
- package/dist/CompositeListContext-DMNULDos.js +15 -0
- package/dist/FieldItemContext-D1iEutzE.js +9 -0
- package/dist/FormContext-DmYxHG1e.js +26 -0
- package/dist/{Input-DXDwtOqf.js → Input-DXQc6T_w.js} +16 -10
- package/dist/LabelableContext-mL6rBiul.js +85 -0
- package/dist/RadioGroupContext-zHzEliyD.js +9 -0
- package/dist/clamp-63kvPeUJ.js +801 -0
- package/dist/{cn-CXogf8HW.js → cn-BSNuKelt.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/chart/chart-container.d.ts +5 -0
- package/dist/components/chart/chart-legend-content.d.ts +8 -0
- package/dist/components/chart/chart-legend-icon.d.ts +2 -0
- package/dist/components/chart/chart-legend-indicator.d.ts +2 -0
- package/dist/components/chart/chart-legend-label.d.ts +2 -0
- package/dist/components/chart/chart-legend.d.ts +2 -0
- package/dist/components/chart/chart-linear-gradient.d.ts +2 -0
- package/dist/components/chart/chart-tooltip-content.d.ts +3 -0
- package/dist/components/chart/chart-tooltip-icon.d.ts +2 -0
- package/dist/components/chart/chart-tooltip-indicator.d.ts +2 -0
- package/dist/components/chart/chart-tooltip-label.d.ts +2 -0
- package/dist/components/chart/chart-tooltip-name.d.ts +2 -0
- package/dist/components/chart/chart-tooltip-payload.d.ts +4 -0
- package/dist/components/chart/chart-tooltip-value.d.ts +2 -0
- package/dist/components/chart/chart-tooltip.d.ts +2 -0
- package/dist/components/chart/chart.types.d.ts +50 -0
- package/dist/components/chart/chart.utils.d.ts +11 -0
- package/dist/components/chart/index.d.ts +19 -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.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 +2 -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 +10 -0
- package/dist/components/combobox/combobox-virtualized-list.d.ts +2 -0
- package/dist/components/combobox/combobox.types.d.ts +9 -0
- package/dist/components/combobox/index.d.ts +2 -1
- 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/field/field-radio.d.ts +2 -0
- package/dist/components/field/field-set.d.ts +2 -0
- package/dist/components/field/field.types.d.ts +3 -1
- package/dist/components/field/index.d.ts +5 -1
- package/dist/components/form/form-context.d.ts +56 -14
- package/dist/components/index.d.ts +3 -0
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.types.d.ts +3 -1
- 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 +5 -3
- package/dist/components/layer-tree/layer-tree.types.d.ts +26 -13
- package/dist/components/number-field/number-field.d.ts +1 -1
- 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/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area/scroll-area.types.d.ts +6 -2
- package/dist/components/select/select.types.d.ts +5 -0
- package/dist/components/separator/separator.d.ts +1 -1
- package/dist/components/separator/separator.types.d.ts +3 -1
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/slider.types.d.ts +7 -1
- package/dist/components/table/index.d.ts +18 -3
- package/dist/components/table/table-body-grid.d.ts +2 -0
- package/dist/components/table/table-body-list.d.ts +2 -0
- package/dist/components/table/table-change-view.d.ts +1 -3
- package/dist/components/table/table-column-toggle.d.ts +2 -0
- package/dist/components/table/table-container.d.ts +2 -0
- package/dist/components/table/table-data-set-select.d.ts +2 -0
- package/dist/components/table/table-data-set-tabs.d.ts +2 -0
- package/dist/components/table/table-filter-form.d.ts +3 -0
- package/dist/components/table/table-filter.d.ts +1 -1
- package/dist/components/table/table-filters.d.ts +2 -0
- package/dist/components/table/table-header.d.ts +1 -1
- package/dist/components/table/table-pagination.d.ts +1 -1
- package/dist/components/table/table-paging.d.ts +2 -0
- package/dist/components/table/table-row-grid.d.ts +1 -1
- package/dist/components/table/table-row-list.d.ts +1 -1
- package/dist/components/table/table-sort.d.ts +1 -1
- package/dist/components/table/table-toolbar.d.ts +2 -0
- package/dist/components/table/table.constants.d.ts +64 -0
- package/dist/components/table/table.d.ts +14 -5
- package/dist/components/table/table.types.d.ts +73 -15
- package/dist/components/table/table.utils.d.ts +4 -0
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.types.d.ts +4 -1
- package/dist/components/toggle-group/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group/toggle-group.types.d.ts +1 -0
- package/dist/composite-8Z1YCmUf.js +161 -0
- package/dist/composite-DTxBFZq_.js +328 -0
- package/dist/createBaseUIEventDetails-BHkB1IRT.js +36 -0
- package/dist/dawn-ui-react.js +38102 -11554
- package/dist/dawn-ui-react.umd.cjs +176 -27
- package/dist/{form-context-DqrRdk0d.js → form-context-CpevRrMx.js} +541 -515
- package/dist/input.types-DDZuq7AK.js +21 -0
- package/dist/label-C57cQsPN.js +50 -0
- package/dist/owner-CZ-bExcn.js +6 -0
- package/dist/serializeValue-DadF0djs.js +12 -0
- package/dist/shadowDom-nxuQhD_O.js +25 -0
- package/dist/styles.css +149 -118
- package/dist/useBaseUiId-DJ56dhex.js +25 -0
- package/dist/useCompositeListItem-CuKiOJnK.js +53 -0
- package/dist/useControlled-kefeIBTp.js +48 -0
- package/dist/useLabelableId-Cb5S9nao.js +39 -0
- package/dist/useOpenChangeComplete-D1bYAEWf.js +178 -0
- package/dist/useRegisterFieldControl-I4gdfodR.js +27 -0
- package/dist/visuallyHidden-C0MRt467.js +21 -0
- package/package.json +42 -37
- package/dist/clamp-CYKyjuJR.js +0 -3033
- package/dist/components/table/table-body.d.ts +0 -2
- package/dist/field-description-BDRJXMS8.js +0 -12
- package/dist/field-errors-DVQtEKG3.js +0 -19
- package/dist/field-input-Doplzz0V.js +0 -58
- package/dist/field-input-group-CzX_hAjq.js +0 -18
- package/dist/field-input-group-input-micw-J2Y.js +0 -20
- package/dist/field-label-C2atREm0.js +0 -16
- package/dist/field-select--mY7GbNz.js +0 -2149
- package/dist/field-slider-D54-Z8Ds.js +0 -2167
- package/dist/input-group-DgFUfXr7.js +0 -12
- package/dist/input-group-input-DNZQ6g-3.js +0 -11
- package/dist/input.types-D8b-1Bcm.js +0 -21
- package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
- package/dist/useLabelableId-BaWKrZ8_.js +0 -271
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { _ as e } from "./form-context-CpevRrMx.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 };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { X as e, _ as t } from "./form-context-CpevRrMx.js";
|
|
2
|
+
import { t as n } from "./useBaseUiId-DJ56dhex.js";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/labelable-provider/useAriaLabelledBy.js
|
|
6
|
+
function a(t, i, a, s = !0, c) {
|
|
7
|
+
let [l, u] = r.useState(), d = n(c ? `${c}-label` : void 0), f = t ?? i ?? l;
|
|
8
|
+
return e(() => {
|
|
9
|
+
let e = t || i || !s ? void 0 : o(a.current, d);
|
|
10
|
+
l !== e && u(e);
|
|
11
|
+
}), f;
|
|
12
|
+
}
|
|
13
|
+
function o(e, t) {
|
|
14
|
+
let n = s(e);
|
|
15
|
+
if (n) return !n.id && t && (n.id = t), n.id || void 0;
|
|
16
|
+
}
|
|
17
|
+
function s(e) {
|
|
18
|
+
if (!e) return;
|
|
19
|
+
let t = e.parentElement;
|
|
20
|
+
if (t && t.tagName === "LABEL") return t;
|
|
21
|
+
let n = e.id;
|
|
22
|
+
if (n) {
|
|
23
|
+
let t = e.nextElementSibling;
|
|
24
|
+
if (t && t.htmlFor === n) return t;
|
|
25
|
+
}
|
|
26
|
+
let r = e.labels;
|
|
27
|
+
return r && r[0];
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/label/label.types.ts
|
|
31
|
+
var c = t("flex items-center gap-2xs select-none hover:cursor-pointer", {
|
|
32
|
+
variants: { size: {
|
|
33
|
+
small: "style-text-default--1",
|
|
34
|
+
medium: "style-text-default-0",
|
|
35
|
+
large: "style-text-default-1"
|
|
36
|
+
} },
|
|
37
|
+
defaultVariants: { size: "medium" }
|
|
38
|
+
}), l = ({ className: e, children: t, ref: n, size: r, ...a }) => /* @__PURE__ */ i("label", {
|
|
39
|
+
className: c({
|
|
40
|
+
className: e,
|
|
41
|
+
size: r
|
|
42
|
+
}),
|
|
43
|
+
"data-slot": "label",
|
|
44
|
+
htmlFor: a.htmlFor,
|
|
45
|
+
ref: n,
|
|
46
|
+
...a,
|
|
47
|
+
children: t
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { a as n, l as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/serializeValue.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
if (e == null) return "";
|
|
4
|
+
if (typeof e == "string") return e;
|
|
5
|
+
try {
|
|
6
|
+
return JSON.stringify(e);
|
|
7
|
+
} catch {
|
|
8
|
+
return String(e);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { I as e } from "./form-context-CpevRrMx.js";
|
|
2
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/shadowDom.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
let t = e.activeElement;
|
|
5
|
+
for (; t?.shadowRoot?.activeElement != null;) t = t.shadowRoot.activeElement;
|
|
6
|
+
return t;
|
|
7
|
+
}
|
|
8
|
+
function n(t, n) {
|
|
9
|
+
if (!t || !n) return !1;
|
|
10
|
+
let r = n.getRootNode?.();
|
|
11
|
+
if (t.contains(n)) return !0;
|
|
12
|
+
if (r && e(r)) {
|
|
13
|
+
let e = n;
|
|
14
|
+
for (; e;) {
|
|
15
|
+
if (t === e) return !0;
|
|
16
|
+
e = e.parentNode || e.host;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return !1;
|
|
20
|
+
}
|
|
21
|
+
function r(e) {
|
|
22
|
+
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { n, r, t };
|
package/dist/styles.css
CHANGED
|
@@ -405,32 +405,32 @@
|
|
|
405
405
|
--yellow-900: #715212ff;
|
|
406
406
|
--yellow-950: #422f06ff;
|
|
407
407
|
|
|
408
|
-
--dawn-brand-default: light-dark(var(--
|
|
409
|
-
--dawn-brand-muted: light-dark(var(--
|
|
410
|
-
--dawn-brand-subtle: light-dark(var(--
|
|
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(--
|
|
413
|
-
--dawn-brand-container-high: light-dark(var(--
|
|
414
|
-
--dawn-brand-on-container: light-dark(var(--
|
|
415
|
-
--dawn-brand-on-container-muted: light-dark(var(--
|
|
416
|
-
--dawn-brand-border: light-dark(var(--
|
|
417
|
-
--dawn-brand-border-strong: light-dark(var(--
|
|
418
|
-
--dawn-brand-shadow: light-dark(#
|
|
419
|
-
|
|
420
|
-
--dawn-accent-default: light-dark(var(--
|
|
421
|
-
--dawn-accent-muted: light-dark(var(--
|
|
422
|
-
--dawn-accent-subtle: light-dark(var(--
|
|
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(--
|
|
425
|
-
--dawn-accent-container-high: light-dark(var(--
|
|
426
|
-
--dawn-accent-on-container: light-dark(var(--
|
|
427
|
-
--dawn-accent-on-container-muted: light-dark(var(--
|
|
428
|
-
--dawn-accent-border: light-dark(var(--
|
|
429
|
-
--dawn-accent-border-strong: light-dark(var(--
|
|
430
|
-
--dawn-accent-shadow: light-dark(#
|
|
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
|
-
--dawn-neutral-muted: light-dark(var(--neutral-800), var(--neutral-
|
|
433
|
+
--dawn-neutral-muted: light-dark(var(--neutral-800), var(--neutral-400));
|
|
434
434
|
--dawn-neutral-subtle: light-dark(var(--neutral-200), var(--neutral-800));
|
|
435
435
|
--dawn-neutral-on-default: light-dark(var(--white), var(--neutral-950));
|
|
436
436
|
--dawn-neutral-container: light-dark(var(--neutral-200), var(--neutral-800));
|
|
@@ -598,182 +598,213 @@
|
|
|
598
598
|
|
|
599
599
|
@layer base {
|
|
600
600
|
body {
|
|
601
|
+
margin: 0;
|
|
601
602
|
background-color: theme(--color-surface-background);
|
|
602
603
|
color: theme(--color-on-surface);
|
|
603
604
|
font-family: var(--font-body);
|
|
604
605
|
font-size: var(--text-base);
|
|
605
606
|
scrollbar-color: theme(--color-accent-default) theme(--color-surface-2);
|
|
606
607
|
}
|
|
608
|
+
button {
|
|
609
|
+
line-height: 0;
|
|
610
|
+
}
|
|
611
|
+
input {
|
|
612
|
+
line-height: 0;
|
|
613
|
+
}
|
|
607
614
|
}
|
|
608
615
|
|
|
609
616
|
@utility shadow-* {
|
|
610
617
|
box-shadow: --value(--shadow-*) var(--dawn-shadow);
|
|
611
618
|
}
|
|
612
619
|
|
|
613
|
-
@utility style-text-* {
|
|
614
|
-
font-family: var(--text-font);
|
|
615
|
-
font-weight: var(--text-weight);
|
|
616
|
-
font-size: var(--text-size);
|
|
617
|
-
line-height: var(--text-leading, normal);
|
|
618
|
-
letter-spacing: normal;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
620
|
@utility style-text-default-5 {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
621
|
+
font-family: var(--font-body);
|
|
622
|
+
font-weight: 500;
|
|
623
|
+
font-size: var(--text-4xl);
|
|
624
|
+
line-height: normal;
|
|
625
|
+
letter-spacing: normal;
|
|
625
626
|
}
|
|
626
627
|
|
|
627
628
|
@utility style-text-default-4 {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
font-family: var(--font-body);
|
|
630
|
+
font-weight: 500;
|
|
631
|
+
font-size: var(--text-3xl);
|
|
632
|
+
line-height: normal;
|
|
633
|
+
letter-spacing: normal;
|
|
631
634
|
}
|
|
632
635
|
|
|
633
636
|
@utility style-text-default-3 {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
+
font-family: var(--font-body);
|
|
638
|
+
font-weight: 500;
|
|
639
|
+
font-size: var(--text-2xl);
|
|
640
|
+
line-height: normal;
|
|
641
|
+
letter-spacing: normal;
|
|
637
642
|
}
|
|
638
643
|
|
|
639
644
|
@utility style-text-default-2 {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
645
|
+
font-family: var(--font-body);
|
|
646
|
+
font-weight: 500;
|
|
647
|
+
font-size: var(--text-xl);
|
|
648
|
+
line-height: normal;
|
|
649
|
+
letter-spacing: normal;
|
|
643
650
|
}
|
|
644
651
|
|
|
645
652
|
@utility style-text-default-1 {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
653
|
+
font-family: var(--font-body);
|
|
654
|
+
font-weight: 500;
|
|
655
|
+
font-size: var(--text-lg);
|
|
656
|
+
line-height: normal;
|
|
657
|
+
letter-spacing: normal;
|
|
649
658
|
}
|
|
650
659
|
|
|
651
660
|
@utility style-text-default-0 {
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
661
|
+
font-family: var(--font-body);
|
|
662
|
+
font-weight: 500;
|
|
663
|
+
font-size: var(--text-base);
|
|
664
|
+
line-height: normal;
|
|
665
|
+
letter-spacing: normal;
|
|
655
666
|
}
|
|
656
667
|
|
|
657
668
|
@utility style-text-default--1 {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
669
|
+
font-family: var(--font-body);
|
|
670
|
+
font-weight: 500;
|
|
671
|
+
font-size: var(--text-sm);
|
|
672
|
+
line-height: normal;
|
|
673
|
+
letter-spacing: normal;
|
|
661
674
|
}
|
|
662
675
|
|
|
663
676
|
@utility style-text-default--2 {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
677
|
+
font-family: var(--font-body);
|
|
678
|
+
font-weight: 500;
|
|
679
|
+
font-size: var(--text-xs);
|
|
680
|
+
line-height: normal;
|
|
681
|
+
letter-spacing: normal;
|
|
667
682
|
}
|
|
668
683
|
|
|
669
684
|
@utility style-text-prose-5 {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
685
|
+
font-family: var(--font-body);
|
|
686
|
+
font-weight: 400;
|
|
687
|
+
font-size: var(--text-4xl);
|
|
688
|
+
line-height: 160%;
|
|
689
|
+
letter-spacing: normal;
|
|
674
690
|
}
|
|
675
691
|
|
|
676
692
|
@utility style-text-prose-4 {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
693
|
+
font-family: var(--font-body);
|
|
694
|
+
font-weight: 400;
|
|
695
|
+
font-size: var(--text-3xl);
|
|
696
|
+
line-height: 160%;
|
|
697
|
+
letter-spacing: normal;
|
|
681
698
|
}
|
|
682
699
|
|
|
683
700
|
@utility style-text-prose-3 {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
701
|
+
font-family: var(--font-body);
|
|
702
|
+
font-weight: 400;
|
|
703
|
+
font-size: var(--text-2xl);
|
|
704
|
+
line-height: 160%;
|
|
705
|
+
letter-spacing: normal;
|
|
688
706
|
}
|
|
689
707
|
|
|
690
708
|
@utility style-text-prose-2 {
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
709
|
+
font-family: var(--font-body);
|
|
710
|
+
font-weight: 400;
|
|
711
|
+
font-size: var(--text-xl);
|
|
712
|
+
line-height: 160%;
|
|
713
|
+
letter-spacing: normal;
|
|
695
714
|
}
|
|
696
715
|
|
|
697
716
|
@utility style-text-prose-1 {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
717
|
+
font-family: var(--font-body);
|
|
718
|
+
font-weight: 400;
|
|
719
|
+
font-size: var(--text-lg);
|
|
720
|
+
line-height: 160%;
|
|
721
|
+
letter-spacing: normal;
|
|
702
722
|
}
|
|
703
723
|
|
|
704
724
|
@utility style-text-prose-0 {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
725
|
+
font-family: var(--font-body);
|
|
726
|
+
font-weight: 400;
|
|
727
|
+
font-size: var(--text-base);
|
|
728
|
+
line-height: 160%;
|
|
729
|
+
letter-spacing: normal;
|
|
709
730
|
}
|
|
710
731
|
|
|
711
732
|
@utility style-text-prose--1 {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
733
|
+
font-family: var(--font-body);
|
|
734
|
+
font-weight: 400;
|
|
735
|
+
font-size: var(--text-sm);
|
|
736
|
+
line-height: 160%;
|
|
737
|
+
letter-spacing: normal;
|
|
716
738
|
}
|
|
717
739
|
|
|
718
740
|
@utility style-text-prose--2 {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
741
|
+
font-family: var(--font-body);
|
|
742
|
+
font-weight: 400;
|
|
743
|
+
font-size: var(--text-xs);
|
|
744
|
+
line-height: 160%;
|
|
745
|
+
letter-spacing: normal;
|
|
723
746
|
}
|
|
724
747
|
|
|
725
748
|
@utility style-text-strong-5 {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
749
|
+
font-family: var(--font-heading);
|
|
750
|
+
font-weight: 700;
|
|
751
|
+
font-size: var(--text-4xl);
|
|
752
|
+
line-height: 120%;
|
|
753
|
+
letter-spacing: normal;
|
|
730
754
|
}
|
|
731
755
|
|
|
732
756
|
@utility style-text-strong-4 {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
757
|
+
font-family: var(--font-heading);
|
|
758
|
+
font-weight: 700;
|
|
759
|
+
font-size: var(--text-3xl);
|
|
760
|
+
line-height: 120%;
|
|
761
|
+
letter-spacing: normal;
|
|
737
762
|
}
|
|
738
763
|
|
|
739
764
|
@utility style-text-strong-3 {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
765
|
+
font-family: var(--font-heading);
|
|
766
|
+
font-weight: 700;
|
|
767
|
+
font-size: var(--text-2xl);
|
|
768
|
+
line-height: 120%;
|
|
769
|
+
letter-spacing: normal;
|
|
744
770
|
}
|
|
745
771
|
|
|
746
772
|
@utility style-text-strong-2 {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
773
|
+
font-family: var(--font-heading);
|
|
774
|
+
font-weight: 700;
|
|
775
|
+
font-size: var(--text-xl);
|
|
776
|
+
line-height: 120%;
|
|
777
|
+
letter-spacing: normal;
|
|
751
778
|
}
|
|
752
779
|
|
|
753
780
|
@utility style-text-strong-1 {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
781
|
+
font-family: var(--font-heading);
|
|
782
|
+
font-weight: 700;
|
|
783
|
+
font-size: var(--text-lg);
|
|
784
|
+
line-height: 120%;
|
|
785
|
+
letter-spacing: normal;
|
|
758
786
|
}
|
|
759
787
|
|
|
760
788
|
@utility style-text-strong-0 {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
789
|
+
font-family: var(--font-heading);
|
|
790
|
+
font-weight: 700;
|
|
791
|
+
font-size: var(--text-base);
|
|
792
|
+
line-height: 120%;
|
|
793
|
+
letter-spacing: normal;
|
|
765
794
|
}
|
|
766
795
|
|
|
767
796
|
@utility style-text-strong--1 {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
797
|
+
font-family: var(--font-heading);
|
|
798
|
+
font-weight: 700;
|
|
799
|
+
font-size: var(--text-sm);
|
|
800
|
+
line-height: 120%;
|
|
801
|
+
letter-spacing: normal;
|
|
772
802
|
}
|
|
773
803
|
|
|
774
804
|
@utility style-text-strong--2 {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
805
|
+
font-family: var(--font-heading);
|
|
806
|
+
font-weight: 700;
|
|
807
|
+
font-size: var(--text-xs);
|
|
808
|
+
line-height: 120%;
|
|
809
|
+
letter-spacing: normal;
|
|
779
810
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { B as e } from "./form-context-CpevRrMx.js";
|
|
2
|
+
import * as t from "react";
|
|
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/useId.js
|
|
4
|
+
var n = 0;
|
|
5
|
+
function r(e, r = "mui") {
|
|
6
|
+
let [i, a] = t.useState(e), o = e || i;
|
|
7
|
+
return t.useEffect(() => {
|
|
8
|
+
i ?? (n += 1, a(`${r}-${n}`));
|
|
9
|
+
}, [i, r]), o;
|
|
10
|
+
}
|
|
11
|
+
var i = e.useId;
|
|
12
|
+
function a(e, t) {
|
|
13
|
+
if (i !== void 0) {
|
|
14
|
+
let n = i();
|
|
15
|
+
return e ?? (t ? `${t}-${n}` : n);
|
|
16
|
+
}
|
|
17
|
+
return r(e, t);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/useBaseUiId.js
|
|
21
|
+
function o(e) {
|
|
22
|
+
return a(e, "base-ui");
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as n, o as t };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { X as e } from "./form-context-CpevRrMx.js";
|
|
2
|
+
import { n as t } from "./CompositeListContext-DMNULDos.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/composite/list/useCompositeListItem.js
|
|
5
|
+
var r = /* @__PURE__ */ function(e) {
|
|
6
|
+
return e[e.None = 0] = "None", e[e.GuessFromOrder = 1] = "GuessFromOrder", e;
|
|
7
|
+
}({});
|
|
8
|
+
function i(i = {}) {
|
|
9
|
+
let { label: a, metadata: o, textRef: s, indexGuessBehavior: c, index: l } = i, { register: u, unregister: d, subscribeMapChange: f, elementsRef: p, labelsRef: m, nextIndexRef: h } = t(), g = n.useRef(-1), [_, v] = n.useState(l ?? (c === r.GuessFromOrder ? () => {
|
|
10
|
+
if (g.current === -1) {
|
|
11
|
+
let e = h.current;
|
|
12
|
+
h.current += 1, g.current = e;
|
|
13
|
+
}
|
|
14
|
+
return g.current;
|
|
15
|
+
} : -1)), y = n.useRef(null), b = n.useCallback((e) => {
|
|
16
|
+
if (y.current = e, _ !== -1 && e !== null && (p.current[_] = e, m)) {
|
|
17
|
+
let t = a !== void 0;
|
|
18
|
+
m.current[_] = t ? a : s?.current?.textContent ?? e.textContent;
|
|
19
|
+
}
|
|
20
|
+
}, [
|
|
21
|
+
_,
|
|
22
|
+
p,
|
|
23
|
+
m,
|
|
24
|
+
a,
|
|
25
|
+
s
|
|
26
|
+
]);
|
|
27
|
+
return e(() => {
|
|
28
|
+
if (l != null) return;
|
|
29
|
+
let e = y.current;
|
|
30
|
+
if (e) return u(e, o), () => {
|
|
31
|
+
d(e);
|
|
32
|
+
};
|
|
33
|
+
}, [
|
|
34
|
+
l,
|
|
35
|
+
u,
|
|
36
|
+
d,
|
|
37
|
+
o
|
|
38
|
+
]), e(() => {
|
|
39
|
+
if (l == null) return f((e) => {
|
|
40
|
+
let t = y.current ? e.get(y.current)?.index : null;
|
|
41
|
+
t != null && v(t);
|
|
42
|
+
});
|
|
43
|
+
}, [
|
|
44
|
+
l,
|
|
45
|
+
f,
|
|
46
|
+
v
|
|
47
|
+
]), n.useMemo(() => ({
|
|
48
|
+
ref: b,
|
|
49
|
+
index: _
|
|
50
|
+
}), [_, b]);
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { i as n, r as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { $ as e } from "./form-context-CpevRrMx.js";
|
|
2
|
+
import * as t from "react";
|
|
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
|
+
function n({ controlled: n, default: i, name: a, state: o = "value" }) {
|
|
5
|
+
let { current: s } = t.useRef(n !== void 0), [c, l] = t.useState(i), u = s ? n : c;
|
|
6
|
+
if (process.env.NODE_ENV !== "production") {
|
|
7
|
+
t.useEffect(() => {
|
|
8
|
+
s !== (n !== void 0) && e([
|
|
9
|
+
`A component is changing the ${s ? "" : "un"}controlled ${o} state of ${a} to be ${s ? "un" : ""}controlled.`,
|
|
10
|
+
"Elements should not switch from uncontrolled to controlled (or vice versa).",
|
|
11
|
+
`Decide between using a controlled or uncontrolled ${a} element for the lifetime of the component.`,
|
|
12
|
+
"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
|
|
13
|
+
"More info: https://fb.me/react-controlled-components"
|
|
14
|
+
].join("\n"));
|
|
15
|
+
}, [
|
|
16
|
+
o,
|
|
17
|
+
a,
|
|
18
|
+
n
|
|
19
|
+
]);
|
|
20
|
+
let { current: c } = t.useRef(i);
|
|
21
|
+
t.useEffect(() => {
|
|
22
|
+
!s && r(c) !== r(i) && e([`A component is changing the default ${o} state of an uncontrolled ${a} after being initialized. To suppress this warning opt to use a controlled ${a}.`].join("\n"));
|
|
23
|
+
}, [i]);
|
|
24
|
+
}
|
|
25
|
+
return [u, t.useCallback((e) => {
|
|
26
|
+
s || l(e);
|
|
27
|
+
}, [])];
|
|
28
|
+
}
|
|
29
|
+
function r(e) {
|
|
30
|
+
let t = 0, n = /* @__PURE__ */ new WeakMap();
|
|
31
|
+
try {
|
|
32
|
+
return JSON.stringify(e, function(e, r) {
|
|
33
|
+
if (!(e === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
|
|
34
|
+
if (typeof r == "bigint") return `__bigint__:${r}`;
|
|
35
|
+
if (typeof r == "object" && r) {
|
|
36
|
+
let e = n.get(r);
|
|
37
|
+
if (e !== void 0) return `__object__:${e}`;
|
|
38
|
+
n.set(r, t), t += 1;
|
|
39
|
+
}
|
|
40
|
+
return r;
|
|
41
|
+
}
|
|
42
|
+
}) ?? `__top__:${typeof e}`;
|
|
43
|
+
} catch {
|
|
44
|
+
return "__unserializable__";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { n as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { G as e, Q as t, X as n, Z as r, j as i } from "./form-context-CpevRrMx.js";
|
|
2
|
+
import { t as a } from "./useBaseUiId-DJ56dhex.js";
|
|
3
|
+
import { t as o } from "./LabelableContext-mL6rBiul.js";
|
|
4
|
+
import * as s from "react";
|
|
5
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/labelable-provider/useLabelableId.js
|
|
6
|
+
function c(c = {}) {
|
|
7
|
+
let { id: l, implicit: u = !1, controlRef: d } = c, { controlId: f, registerControlId: p } = o(), m = a(l), h = u ? f : void 0, g = t(() => Symbol("labelable-control")), _ = s.useRef(!1), v = s.useRef(l != null), y = r(() => {
|
|
8
|
+
!_.current || p === e || (_.current = !1, p(g.current, void 0));
|
|
9
|
+
});
|
|
10
|
+
return n(() => {
|
|
11
|
+
if (p === e) return;
|
|
12
|
+
let t;
|
|
13
|
+
if (u) {
|
|
14
|
+
let e = d?.current;
|
|
15
|
+
t = i(e) && e.closest("label") != null ? l ?? null : h ?? m;
|
|
16
|
+
} else if (l != null) v.current = !0, t = l;
|
|
17
|
+
else if (v.current) t = m;
|
|
18
|
+
else {
|
|
19
|
+
y();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (t === void 0) {
|
|
23
|
+
y();
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
_.current = !0, p(g.current, t);
|
|
27
|
+
}, [
|
|
28
|
+
l,
|
|
29
|
+
d,
|
|
30
|
+
h,
|
|
31
|
+
p,
|
|
32
|
+
u,
|
|
33
|
+
m,
|
|
34
|
+
g,
|
|
35
|
+
y
|
|
36
|
+
]), s.useEffect(() => y, [y]), f ?? m;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { c as t };
|