@namroodinc/liquid-editorial 0.6.7 → 0.6.9
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/README.md +108 -2
- package/UPGRADING.md +88 -0
- package/dist/chunks/CollectionView-BIuOL917.cjs +2 -0
- package/dist/chunks/CollectionView-BIuOL917.cjs.map +1 -0
- package/dist/chunks/CollectionView-Cr12UFWa.js +179 -0
- package/dist/chunks/CollectionView-Cr12UFWa.js.map +1 -0
- package/dist/chunks/{EntryPicker-CR8Phuzl.js → EntryPicker-B88N69zH.js} +2 -2
- package/dist/chunks/{EntryPicker-CR8Phuzl.js.map → EntryPicker-B88N69zH.js.map} +1 -1
- package/dist/chunks/{EntryPicker-D7JIgx23.cjs → EntryPicker-daSkD4aR.cjs} +2 -2
- package/dist/chunks/{EntryPicker-D7JIgx23.cjs.map → EntryPicker-daSkD4aR.cjs.map} +1 -1
- package/dist/chunks/{FormEditor-DNcSAnRF.cjs → FormEditor-B4mtAxaU.cjs} +2 -2
- package/dist/chunks/FormEditor-B4mtAxaU.cjs.map +1 -0
- package/dist/chunks/{FormEditor-BSfxVqLn.js → FormEditor-BkBhcYI5.js} +3 -2
- package/dist/chunks/FormEditor-BkBhcYI5.js.map +1 -0
- package/dist/chunks/LoadState-B7GTDlWv.js +71 -0
- package/dist/chunks/LoadState-B7GTDlWv.js.map +1 -0
- package/dist/chunks/LoadState-C7tQ6fIP.cjs +2 -0
- package/dist/chunks/LoadState-C7tQ6fIP.cjs.map +1 -0
- package/dist/chunks/Wizard-B_CPW1V6.cjs +2 -0
- package/dist/chunks/Wizard-B_CPW1V6.cjs.map +1 -0
- package/dist/chunks/Wizard-C1iR5z44.js +99 -0
- package/dist/chunks/Wizard-C1iR5z44.js.map +1 -0
- package/dist/chunks/frame-C8TwdWBC.cjs +2 -0
- package/dist/chunks/frame-C8TwdWBC.cjs.map +1 -0
- package/dist/chunks/frame-DaC03_n-.js +203 -0
- package/dist/chunks/frame-DaC03_n-.js.map +1 -0
- package/dist/chunks/{group-Ckz4Xya-.js → group-C6EOgTgM.js} +2 -2
- package/dist/chunks/{group-Ckz4Xya-.js.map → group-C6EOgTgM.js.map} +1 -1
- package/dist/chunks/{group-Bj9ZKc0R.cjs → group-QSnlx4jX.cjs} +2 -2
- package/dist/chunks/{group-Bj9ZKc0R.cjs.map → group-QSnlx4jX.cjs.map} +1 -1
- package/dist/components/Choice/index.cjs +1 -1
- package/dist/components/Choice/index.js +1 -1
- package/dist/components/CollectionView/empty.d.cts +15 -0
- package/dist/components/CollectionView/empty.d.cts.map +1 -0
- package/dist/components/CollectionView/empty.d.ts +15 -0
- package/dist/components/CollectionView/empty.d.ts.map +1 -0
- package/dist/components/CollectionView/filters.d.cts +6 -0
- package/dist/components/CollectionView/filters.d.cts.map +1 -0
- package/dist/components/CollectionView/filters.d.ts +6 -0
- package/dist/components/CollectionView/filters.d.ts.map +1 -0
- package/dist/components/CollectionView/index.cjs +1 -0
- package/dist/components/CollectionView/index.d.cts +6 -0
- package/dist/components/CollectionView/index.d.cts.map +1 -0
- package/dist/components/CollectionView/index.d.ts +6 -0
- package/dist/components/CollectionView/index.d.ts.map +1 -0
- package/dist/components/CollectionView/index.js +2 -0
- package/dist/components/CollectionView/style.css +70 -0
- package/dist/components/CollectionView/toolbar.d.cts +5 -0
- package/dist/components/CollectionView/toolbar.d.cts.map +1 -0
- package/dist/components/CollectionView/toolbar.d.ts +5 -0
- package/dist/components/CollectionView/toolbar.d.ts.map +1 -0
- package/dist/components/CollectionView/types.d.cts +40 -0
- package/dist/components/CollectionView/types.d.cts.map +1 -0
- package/dist/components/CollectionView/types.d.ts +40 -0
- package/dist/components/CollectionView/types.d.ts.map +1 -0
- package/dist/components/EditLayout/style.css +1 -1
- package/dist/components/EditSection/index.cjs +2 -0
- package/dist/components/EditSection/index.cjs.map +1 -0
- package/dist/components/EditSection/index.d.cts +9 -0
- package/dist/components/EditSection/index.d.cts.map +1 -0
- package/dist/components/EditSection/index.d.ts +9 -0
- package/dist/components/EditSection/index.d.ts.map +1 -0
- package/dist/components/EditSection/index.js +22 -0
- package/dist/components/EditSection/index.js.map +1 -0
- package/dist/components/EditSection/style.css +31 -0
- package/dist/components/EntryPicker/index.cjs +1 -1
- package/dist/components/EntryPicker/index.js +1 -1
- package/dist/components/Field/frame.d.cts +1 -1
- package/dist/components/Field/frame.d.cts.map +1 -1
- package/dist/components/Field/frame.d.ts +1 -1
- package/dist/components/Field/frame.d.ts.map +1 -1
- package/dist/components/Field/header.d.cts +5 -3
- package/dist/components/Field/header.d.cts.map +1 -1
- package/dist/components/Field/header.d.ts +5 -3
- package/dist/components/Field/header.d.ts.map +1 -1
- package/dist/components/Field/index.cjs +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/Field/style.css +18 -0
- package/dist/components/Field/types.d.cts +2 -0
- package/dist/components/Field/types.d.cts.map +1 -1
- package/dist/components/Field/types.d.ts +2 -0
- package/dist/components/Field/types.d.ts.map +1 -1
- package/dist/components/FormEditor/README.md +25 -0
- package/dist/components/FormEditor/index.cjs +1 -1
- package/dist/components/FormEditor/index.d.cts.map +1 -1
- package/dist/components/FormEditor/index.d.ts.map +1 -1
- package/dist/components/FormEditor/index.js +1 -1
- package/dist/components/FormEditor/model.d.cts +1 -0
- package/dist/components/FormEditor/model.d.cts.map +1 -1
- package/dist/components/FormEditor/model.d.ts +1 -0
- package/dist/components/FormEditor/model.d.ts.map +1 -1
- package/dist/components/LoadState/error.d.cts +13 -0
- package/dist/components/LoadState/error.d.cts.map +1 -0
- package/dist/components/LoadState/error.d.ts +13 -0
- package/dist/components/LoadState/error.d.ts.map +1 -0
- package/dist/components/LoadState/index.cjs +1 -0
- package/dist/components/LoadState/index.d.cts +15 -0
- package/dist/components/LoadState/index.d.cts.map +1 -0
- package/dist/components/LoadState/index.d.ts +15 -0
- package/dist/components/LoadState/index.d.ts.map +1 -0
- package/dist/components/LoadState/index.js +1 -0
- package/dist/components/LoadState/types.d.cts +3 -0
- package/dist/components/LoadState/types.d.cts.map +1 -0
- package/dist/components/LoadState/types.d.ts +3 -0
- package/dist/components/LoadState/types.d.ts.map +1 -0
- package/dist/components/LoadState/useRetryAttempt.d.cts +15 -0
- package/dist/components/LoadState/useRetryAttempt.d.cts.map +1 -0
- package/dist/components/LoadState/useRetryAttempt.d.ts +15 -0
- package/dist/components/LoadState/useRetryAttempt.d.ts.map +1 -0
- package/dist/components/MetaList/index.cjs +2 -0
- package/dist/components/MetaList/index.cjs.map +1 -0
- package/dist/components/MetaList/index.d.cts +7 -0
- package/dist/components/MetaList/index.d.cts.map +1 -0
- package/dist/components/MetaList/index.d.ts +7 -0
- package/dist/components/MetaList/index.d.ts.map +1 -0
- package/dist/components/MetaList/index.js +13 -0
- package/dist/components/MetaList/index.js.map +1 -0
- package/dist/components/MetaList/style.css +19 -0
- package/dist/components/PageHeader/index.cjs +2 -0
- package/dist/components/PageHeader/index.cjs.map +1 -0
- package/dist/components/PageHeader/index.d.cts +9 -0
- package/dist/components/PageHeader/index.d.cts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +9 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/PageHeader/index.js +27 -0
- package/dist/components/PageHeader/index.js.map +1 -0
- package/dist/components/PageHeader/style.css +39 -0
- package/dist/components/SelectionCard/index.cjs +1 -1
- package/dist/components/SelectionCard/index.js +1 -1
- package/dist/components/Stepper/index.cjs +1 -1
- package/dist/components/Stepper/index.cjs.map +1 -1
- package/dist/components/Stepper/index.d.cts +8 -0
- package/dist/components/Stepper/index.d.cts.map +1 -1
- package/dist/components/Stepper/index.d.ts +8 -0
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +15 -14
- package/dist/components/Stepper/index.js.map +1 -1
- package/dist/components/Stepper/style.css +53 -0
- package/dist/components/Wizard/actions.d.cts +13 -0
- package/dist/components/Wizard/actions.d.cts.map +1 -0
- package/dist/components/Wizard/actions.d.ts +13 -0
- package/dist/components/Wizard/actions.d.ts.map +1 -0
- package/dist/components/Wizard/index.cjs +1 -0
- package/dist/components/Wizard/index.d.cts +7 -0
- package/dist/components/Wizard/index.d.cts.map +1 -0
- package/dist/components/Wizard/index.d.ts +7 -0
- package/dist/components/Wizard/index.d.ts.map +1 -0
- package/dist/components/Wizard/index.js +2 -0
- package/dist/components/Wizard/review-table.d.cts +13 -0
- package/dist/components/Wizard/review-table.d.cts.map +1 -0
- package/dist/components/Wizard/review-table.d.ts +13 -0
- package/dist/components/Wizard/review-table.d.ts.map +1 -0
- package/dist/components/Wizard/style.css +13 -0
- package/dist/components/Wizard/types.d.cts +35 -0
- package/dist/components/Wizard/types.d.cts.map +1 -0
- package/dist/components/Wizard/types.d.ts +35 -0
- package/dist/components/Wizard/types.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +13 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -30
- package/dist/styles.css +5 -0
- package/package.json +1 -1
- package/dist/chunks/FormEditor-BSfxVqLn.js.map +0 -1
- package/dist/chunks/FormEditor-DNcSAnRF.cjs.map +0 -1
- package/dist/chunks/frame-BBVQTBcX.cjs +0 -2
- package/dist/chunks/frame-BBVQTBcX.cjs.map +0 -1
- package/dist/chunks/frame-De6IuTQz.js +0 -189
- package/dist/chunks/frame-De6IuTQz.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/components/CollectionView/filters.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,YAAY,GAAG,IAAI,CACtB,mBAAmB,EACnB,OAAO,GAAG,OAAO,GAAG,eAAe,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAC7E,CAAC;AAEF,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,aAAa,EACb,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,OAAO,GACR,EAAE,YAAY,+BA8Dd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../Pagination/index.cjs");const e=require("../../chunks/CollectionView-BIuOL917.cjs");exports.CollectionEmpty=e.n,exports.CollectionView=e.t;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CollectionViewProps } from "./types.cjs";
|
|
2
|
+
export type { CollectionViewProps, CollectionEmptyKind } from "./types.cjs";
|
|
3
|
+
export { CollectionEmpty } from "./empty.cjs";
|
|
4
|
+
export type { CollectionEmptyProps } from "./empty.cjs";
|
|
5
|
+
export declare function CollectionView({ title, count, query, onQueryChange, status, error, onRetry, pagination, filter, mine, view, selection, actions, children, }: CollectionViewProps): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/CollectionView/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,aAAa,CAAC;AACrB,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,KAAK,EACL,aAAa,EACb,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,OAAO,EACP,QAAQ,GACT,EAAE,mBAAmB,+BAyCrB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CollectionViewProps } from "./types.js";
|
|
2
|
+
export type { CollectionViewProps, CollectionEmptyKind } from "./types.js";
|
|
3
|
+
export { CollectionEmpty } from "./empty.js";
|
|
4
|
+
export type { CollectionEmptyProps } from "./empty.js";
|
|
5
|
+
export declare function CollectionView({ title, count, query, onQueryChange, status, error, onRetry, pagination, filter, mine, view, selection, actions, children, }: CollectionViewProps): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CollectionView/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,aAAa,CAAC;AACrB,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,KAAK,EACL,aAAa,EACb,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,OAAO,EACP,QAAQ,GACT,EAAE,mBAAmB,+BAyCrB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ds-collection-view__toolbar {
|
|
3
|
+
min-block-size: calc(var(--field-height-sm) + var(--space-4) * 2 + var(--rule-width));
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.ds-collection-view__toolbar .ds-table-toolbar__group {
|
|
8
|
+
min-inline-size: 0;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ds-collection-view__toolbar .ds-table-toolbar__group:last-child {
|
|
13
|
+
flex: 1 1 28rem;
|
|
14
|
+
justify-content: flex-end;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ds-collection-view__toolbar .ds-field-affix {
|
|
18
|
+
flex: 1 1 8rem;
|
|
19
|
+
max-inline-size: 18.75rem;
|
|
20
|
+
min-inline-size: min(100%, 8rem);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ds-collection-view__filter {
|
|
24
|
+
flex: 0 1 9.375rem;
|
|
25
|
+
min-inline-size: 9.375rem;
|
|
26
|
+
max-inline-size: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* The soft fill matches the toolbar band, so the count takes the surface.
|
|
30
|
+
* Badge's own variable is the hook; the compound selector outranks .ds-badge. */
|
|
31
|
+
.ds-badge.ds-collection-view__count {
|
|
32
|
+
--badge-soft: var(--color-surface);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ds-collection-view__toolbar[data-selected] {
|
|
36
|
+
background: var(--color-primary-soft);
|
|
37
|
+
box-shadow: inset var(--rail-width) 0 0 0 var(--rail-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* The live region stays mounted so its first announcement is heard. Empty,
|
|
41
|
+
* it leaves the flex row, so it adds no gap beside the title. */
|
|
42
|
+
.ds-collection-view__selected:empty {
|
|
43
|
+
position: absolute;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ds-collection-view__selected {
|
|
47
|
+
color: var(--color-primary);
|
|
48
|
+
font-size: var(--font-size-md);
|
|
49
|
+
font-weight: var(--font-weight-bold);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ds-collection-view__reason {
|
|
53
|
+
color: var(--color-text-muted);
|
|
54
|
+
font-size: var(--font-size-sm);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ds-collection-view__footer {
|
|
58
|
+
background: var(--color-surface-subtle);
|
|
59
|
+
border-block-start: var(--rule-width) solid var(--rule-color);
|
|
60
|
+
padding: var(--space-3) var(--table-row-pad-inline);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ds-collection-view__body[data-feedback] {
|
|
64
|
+
padding: var(--space-5);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ds-collection-view .ds-table [data-width="control"] {
|
|
68
|
+
padding-inline-end: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CollectionViewProps } from "./types.cjs";
|
|
2
|
+
type ToolbarProps = Pick<CollectionViewProps, "title" | "count" | "query" | "onQueryChange" | "filter" | "mine" | "view" | "selection" | "actions">;
|
|
3
|
+
export declare function CollectionToolbar({ title, count, query, onQueryChange, filter, mine, view, selection, actions, }: ToolbarProps): import("react").JSX.Element;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=toolbar.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.d.cts","sourceRoot":"","sources":["../../../src/components/CollectionView/toolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,YAAY,GAAG,IAAI,CACtB,mBAAmB,EACjB,OAAO,GACP,OAAO,GACP,OAAO,GACP,eAAe,GACf,QAAQ,GACR,MAAM,GACN,MAAM,GACN,WAAW,GACX,SAAS,CACZ,CAAC;AACF,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,KAAK,EACL,aAAa,EACb,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,OAAO,GACR,EAAE,YAAY,+BAuFd"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CollectionViewProps } from "./types.js";
|
|
2
|
+
type ToolbarProps = Pick<CollectionViewProps, "title" | "count" | "query" | "onQueryChange" | "filter" | "mine" | "view" | "selection" | "actions">;
|
|
3
|
+
export declare function CollectionToolbar({ title, count, query, onQueryChange, filter, mine, view, selection, actions, }: ToolbarProps): import("react").JSX.Element;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/CollectionView/toolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,YAAY,GAAG,IAAI,CACtB,mBAAmB,EACjB,OAAO,GACP,OAAO,GACP,OAAO,GACP,eAAe,GACf,QAAQ,GACR,MAAM,GACN,MAAM,GACN,WAAW,GACX,SAAS,CACZ,CAAC;AACF,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,KAAK,EACL,aAAa,EACb,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,OAAO,GACR,EAAE,YAAY,+BAuFd"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PaginationProps } from "../Pagination/index.cjs";
|
|
2
|
+
import type { SelectOption } from "../Select/index.cjs";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
import type { LoadStatus } from "../LoadState/types.cjs";
|
|
5
|
+
export type CollectionEmptyKind = "empty" | "no-match";
|
|
6
|
+
export interface CollectionViewProps {
|
|
7
|
+
title: string;
|
|
8
|
+
count: number;
|
|
9
|
+
query: string;
|
|
10
|
+
onQueryChange: (query: string) => void;
|
|
11
|
+
status: LoadStatus;
|
|
12
|
+
error?: Error | null;
|
|
13
|
+
onRetry: () => void;
|
|
14
|
+
pagination: PaginationProps;
|
|
15
|
+
filter?: {
|
|
16
|
+
value: string;
|
|
17
|
+
onChange: (value: string) => void;
|
|
18
|
+
options: SelectOption[];
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
mine?: {
|
|
22
|
+
isPressed: boolean;
|
|
23
|
+
onChange: (value: boolean) => void;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
view?: {
|
|
27
|
+
value: "grid" | "table";
|
|
28
|
+
onChange: (value: "grid" | "table") => void;
|
|
29
|
+
};
|
|
30
|
+
selection?: {
|
|
31
|
+
count: number;
|
|
32
|
+
onClear: () => void;
|
|
33
|
+
actions: ReactNode;
|
|
34
|
+
reason?: string;
|
|
35
|
+
isPending: boolean;
|
|
36
|
+
};
|
|
37
|
+
actions?: ReactNode;
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../../src/components/CollectionView/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,UAAU,CAAC;AAEvD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,OAAO,EAAE,YAAY,EAAE,CAAC;QACxB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;QACnC,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;KAC7C,CAAC;IACF,SAAS,CAAC,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,OAAO,EAAE,SAAS,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PaginationProps } from "../Pagination/index.js";
|
|
2
|
+
import type { SelectOption } from "../Select/index.js";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
import type { LoadStatus } from "../LoadState/types.js";
|
|
5
|
+
export type CollectionEmptyKind = "empty" | "no-match";
|
|
6
|
+
export interface CollectionViewProps {
|
|
7
|
+
title: string;
|
|
8
|
+
count: number;
|
|
9
|
+
query: string;
|
|
10
|
+
onQueryChange: (query: string) => void;
|
|
11
|
+
status: LoadStatus;
|
|
12
|
+
error?: Error | null;
|
|
13
|
+
onRetry: () => void;
|
|
14
|
+
pagination: PaginationProps;
|
|
15
|
+
filter?: {
|
|
16
|
+
value: string;
|
|
17
|
+
onChange: (value: string) => void;
|
|
18
|
+
options: SelectOption[];
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
mine?: {
|
|
22
|
+
isPressed: boolean;
|
|
23
|
+
onChange: (value: boolean) => void;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
view?: {
|
|
27
|
+
value: "grid" | "table";
|
|
28
|
+
onChange: (value: "grid" | "table") => void;
|
|
29
|
+
};
|
|
30
|
+
selection?: {
|
|
31
|
+
count: number;
|
|
32
|
+
onClear: () => void;
|
|
33
|
+
actions: ReactNode;
|
|
34
|
+
reason?: string;
|
|
35
|
+
isPending: boolean;
|
|
36
|
+
};
|
|
37
|
+
actions?: ReactNode;
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/CollectionView/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,UAAU,CAAC;AAEvD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,OAAO,EAAE,YAAY,EAAE,CAAC;QACxB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;QACnC,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;KAC7C,CAAC;IACF,SAAS,CAAC,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,OAAO,EAAE,SAAS,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react/jsx-runtime");function t({title:t,actions:n,children:r}){return(0,e.jsxs)(`section`,{className:`ds-edit-section`,"aria-label":t,children:[(0,e.jsxs)(`header`,{className:`ds-edit-section__header`,children:[(0,e.jsx)(`h2`,{className:`ds-edit-section__title`,children:t}),n&&(0,e.jsx)(`div`,{className:`ds-edit-section__actions`,children:n})]}),r]})}exports.EditSection=t;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["react_jsx_runtime","EditSection","title","actions","children"],"sources":["../../../src/components/EditSection/index.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport \"./style.css\";\n\n/** An unframed section in the editor's body. */\nexport interface EditSectionProps {\n title: string;\n actions?: ReactNode;\n children: ReactNode;\n}\n\nexport function EditSection({ title, actions, children }: EditSectionProps) {\n return (\n <section\n className=\"ds-edit-section\"\n aria-label={title}\n >\n <header className=\"ds-edit-section__header\">\n <h2 className=\"ds-edit-section__title\">{title}</h2>\n {/* One flex item, so several actions stay grouped at the end. */}\n {actions && <div className=\"ds-edit-section__actions\">{actions}</div>}\n </header>\n {children}\n </section>\n );\n}\n"],"mappings":"A,sGAUA,SAAgBC,EAAY,CAAE,QAAO,UAAS,YAA8B,CAC1E,OACE,EAAAD,EAAA,KAAA,CAAC,UAAD,CACE,UAAU,kBACV,aAAYE,EAFd,SAAA,EAIE,EAAAF,EAAA,KAAA,CAAC,SAAD,CAAQ,UAAU,0BAAlB,SAAA,EACE,EAAAA,EAAA,IAAA,CAAC,KAAD,CAAI,UAAU,yBAA0B,SAAAE,CAAU,CAAA,EAEjDC,IAAW,EAAAH,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,2BAA4B,SAAAG,CAAa,CAAA,CAC9D,CACP,CAAA,EAAAC,CACM,C,EAEb,C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** An unframed section in the editor's body. */
|
|
3
|
+
export interface EditSectionProps {
|
|
4
|
+
title: string;
|
|
5
|
+
actions?: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function EditSection({ title, actions, children }: EditSectionProps): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/EditSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,aAAa,CAAC;AAErB,gDAAgD;AAChD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAczE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** An unframed section in the editor's body. */
|
|
3
|
+
export interface EditSectionProps {
|
|
4
|
+
title: string;
|
|
5
|
+
actions?: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function EditSection({ title, actions, children }: EditSectionProps): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EditSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,aAAa,CAAC;AAErB,gDAAgD;AAChD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAczE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/EditSection/index.tsx
|
|
3
|
+
function n({ title: n, actions: r, children: i }) {
|
|
4
|
+
return /* @__PURE__ */ t("section", {
|
|
5
|
+
className: "ds-edit-section",
|
|
6
|
+
"aria-label": n,
|
|
7
|
+
children: [/* @__PURE__ */ t("header", {
|
|
8
|
+
className: "ds-edit-section__header",
|
|
9
|
+
children: [/* @__PURE__ */ e("h2", {
|
|
10
|
+
className: "ds-edit-section__title",
|
|
11
|
+
children: n
|
|
12
|
+
}), r && /* @__PURE__ */ e("div", {
|
|
13
|
+
className: "ds-edit-section__actions",
|
|
14
|
+
children: r
|
|
15
|
+
})]
|
|
16
|
+
}), i]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as EditSection };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["EditSection","title","actions","children"],"sources":["../../../src/components/EditSection/index.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport \"./style.css\";\n\n/** An unframed section in the editor's body. */\nexport interface EditSectionProps {\n title: string;\n actions?: ReactNode;\n children: ReactNode;\n}\n\nexport function EditSection({ title, actions, children }: EditSectionProps) {\n return (\n <section\n className=\"ds-edit-section\"\n aria-label={title}\n >\n <header className=\"ds-edit-section__header\">\n <h2 className=\"ds-edit-section__title\">{title}</h2>\n {/* One flex item, so several actions stay grouped at the end. */}\n {actions && <div className=\"ds-edit-section__actions\">{actions}</div>}\n </header>\n {children}\n </section>\n );\n}\n"],"mappings":";;AAUA,SAAgBA,EAAY,EAAE,UAAO,YAAS,eAA8B;CAC1E,OACE,kBAAC,WAAD;EACE,WAAU;EACV,cAAYC;EAFd,UAAA,CAIE,kBAAC,UAAD;GAAQ,WAAU;GAAlB,UAAA,CACE,kBAAC,MAAD;IAAI,WAAU;IAA0B,UAAAA;GAAU,CAAA,GAEjDC,KAAW,kBAAC,OAAD;IAAK,WAAU;IAA4B,UAAAA;GAAa,CAAA,CAC9D;EACP,CAAA,GAAAC,CACM;;AAEb"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ds-edit-section {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--space-6);
|
|
6
|
+
min-inline-size: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ds-edit-section__header {
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--space-6);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* reset.css is optional, so the heading clears its own UA margin. */
|
|
18
|
+
.ds-edit-section__title {
|
|
19
|
+
margin: 0;
|
|
20
|
+
font-size: var(--font-size-md);
|
|
21
|
+
font-weight: var(--font-weight-bold);
|
|
22
|
+
line-height: var(--line-height-tight);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ds-edit-section__actions {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
flex-wrap: wrap;
|
|
29
|
+
gap: var(--space-2);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/EntryPicker-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/EntryPicker-daSkD4aR.cjs");exports.EntryPicker=e.t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as EntryPicker } from "../../chunks/EntryPicker-
|
|
1
|
+
export { t as EntryPicker } from "../../chunks/EntryPicker-B88N69zH.js";
|
|
@@ -7,6 +7,6 @@ interface FieldFrameProps extends FieldProps {
|
|
|
7
7
|
* Shared label/legend, count, required marker and messages, including standalone
|
|
8
8
|
* groups. A group's fieldset carries the description; bound controls don't repeat it.
|
|
9
9
|
*/
|
|
10
|
-
export declare function FieldFrame({ label, hint, error, isRequired, count, limit, limitDisplay, limitVisibility, showLimitRing, isGroup, children, className, groupBinding, }: FieldFrameProps): import("react").JSX.Element;
|
|
10
|
+
export declare function FieldFrame({ label, labelHint, hint, error, isRequired, count, limit, limitDisplay, limitVisibility, showLimitRing, isGroup, children, className, groupBinding, }: FieldFrameProps): import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=frame.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame.d.cts","sourceRoot":"","sources":["../../../src/components/Field/frame.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAc,UAAU,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,aAAa,CAAC;AAErB,UAAU,eAAgB,SAAQ,UAAU;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAID;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,OAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,GACb,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"frame.d.cts","sourceRoot":"","sources":["../../../src/components/Field/frame.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAc,UAAU,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,aAAa,CAAC;AAErB,UAAU,eAAgB,SAAQ,UAAU;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAID;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,SAAS,EACT,IAAI,EACJ,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,OAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,GACb,EAAE,eAAe,+BAqFjB"}
|
|
@@ -7,6 +7,6 @@ interface FieldFrameProps extends FieldProps {
|
|
|
7
7
|
* Shared label/legend, count, required marker and messages, including standalone
|
|
8
8
|
* groups. A group's fieldset carries the description; bound controls don't repeat it.
|
|
9
9
|
*/
|
|
10
|
-
export declare function FieldFrame({ label, hint, error, isRequired, count, limit, limitDisplay, limitVisibility, showLimitRing, isGroup, children, className, groupBinding, }: FieldFrameProps): import("react").JSX.Element;
|
|
10
|
+
export declare function FieldFrame({ label, labelHint, hint, error, isRequired, count, limit, limitDisplay, limitVisibility, showLimitRing, isGroup, children, className, groupBinding, }: FieldFrameProps): import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=frame.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../src/components/Field/frame.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAc,UAAU,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,aAAa,CAAC;AAErB,UAAU,eAAgB,SAAQ,UAAU;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAID;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,OAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,GACb,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../src/components/Field/frame.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAc,UAAU,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,aAAa,CAAC;AAErB,UAAU,eAAgB,SAAQ,UAAU;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAID;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,SAAS,EACT,IAAI,EACJ,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,OAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,GACb,EAAE,eAAe,+BAqFjB"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { FieldProps } from "./types.cjs";
|
|
3
|
-
interface FieldHeaderProps extends Pick<FieldProps, "label" | "count" | "isRequired" | "isGroup"> {
|
|
3
|
+
interface FieldHeaderProps extends Pick<FieldProps, "label" | "labelHint" | "count" | "isRequired" | "isGroup"> {
|
|
4
4
|
id: string;
|
|
5
5
|
labelId: string;
|
|
6
|
-
|
|
6
|
+
hasHeader: boolean;
|
|
7
|
+
hasLabelHint: boolean;
|
|
8
|
+
labelHintId: string;
|
|
7
9
|
children: ReactNode;
|
|
8
10
|
}
|
|
9
11
|
/** Keep the usage reading outside the label's name and the legend directly in its fieldset. */
|
|
10
|
-
export declare function FieldHeader({ label, count, isRequired, isGroup, id, labelId,
|
|
12
|
+
export declare function FieldHeader({ label, count, isRequired, isGroup, id, labelId, hasHeader, labelHint, hasLabelHint, labelHintId, children, }: FieldHeaderProps): import("react").JSX.Element;
|
|
11
13
|
export {};
|
|
12
14
|
//# sourceMappingURL=header.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.cts","sourceRoot":"","sources":["../../../src/components/Field/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,UAAU,gBAAiB,SAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"header.d.cts","sourceRoot":"","sources":["../../../src/components/Field/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,UAAU,gBAAiB,SAAQ,IAAI,CACrC,UAAU,EACV,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAC3D;IACC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,+FAA+F;AAC/F,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACP,EAAE,EACF,OAAO,EACP,SAAS,EACT,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,GACT,EAAE,gBAAgB,+BAqElB"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { FieldProps } from "./types.js";
|
|
3
|
-
interface FieldHeaderProps extends Pick<FieldProps, "label" | "count" | "isRequired" | "isGroup"> {
|
|
3
|
+
interface FieldHeaderProps extends Pick<FieldProps, "label" | "labelHint" | "count" | "isRequired" | "isGroup"> {
|
|
4
4
|
id: string;
|
|
5
5
|
labelId: string;
|
|
6
|
-
|
|
6
|
+
hasHeader: boolean;
|
|
7
|
+
hasLabelHint: boolean;
|
|
8
|
+
labelHintId: string;
|
|
7
9
|
children: ReactNode;
|
|
8
10
|
}
|
|
9
11
|
/** Keep the usage reading outside the label's name and the legend directly in its fieldset. */
|
|
10
|
-
export declare function FieldHeader({ label, count, isRequired, isGroup, id, labelId,
|
|
12
|
+
export declare function FieldHeader({ label, count, isRequired, isGroup, id, labelId, hasHeader, labelHint, hasLabelHint, labelHintId, children, }: FieldHeaderProps): import("react").JSX.Element;
|
|
11
13
|
export {};
|
|
12
14
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/Field/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,UAAU,gBAAiB,SAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/Field/header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,UAAU,gBAAiB,SAAQ,IAAI,CACrC,UAAU,EACV,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAC3D;IACC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,+FAA+F;AAC/F,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACP,EAAE,EACF,OAAO,EACP,SAAS,EACT,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,GACT,EAAE,gBAAgB,+BAqElB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/frame-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/frame-C8TwdWBC.cjs");let t=require("react/jsx-runtime");function n(n){return(0,t.jsx)(e.t,{...n})}exports.Field=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -104,6 +104,24 @@
|
|
|
104
104
|
inline-size: 100%;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
.ds-field__support {
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: flex-end;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
gap: var(--space-2);
|
|
113
|
+
min-inline-size: 0;
|
|
114
|
+
max-inline-size: 65%;
|
|
115
|
+
text-align: end;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ds-field__label-hint {
|
|
119
|
+
color: var(--color-text-muted);
|
|
120
|
+
font-size: var(--font-size-xs);
|
|
121
|
+
font-weight: var(--font-weight-regular);
|
|
122
|
+
overflow-wrap: anywhere;
|
|
123
|
+
}
|
|
124
|
+
|
|
107
125
|
/* Beside a counter, a label may shrink and break a long word rather than
|
|
108
126
|
* overflow. break-word keeps the label's intrinsic minimum, so auto-sized
|
|
109
127
|
* containers size limited labels as they size unlimited ones. */
|
|
@@ -26,6 +26,8 @@ export interface FieldRenderProps extends FieldBinding {
|
|
|
26
26
|
}
|
|
27
27
|
export interface FieldProps extends FieldLimitOptions {
|
|
28
28
|
label: string;
|
|
29
|
+
/** Supporting content beside the label, also described when an error is present. */
|
|
30
|
+
labelHint?: ReactNode;
|
|
29
31
|
/** Supporting text or inline content, hidden while an error is present. */
|
|
30
32
|
hint?: ReactNode;
|
|
31
33
|
/** Present means invalid: the message renders and the control is marked. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../../src/components/Field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IACpC,eAAe,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACzC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC3B,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EA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Y;IAC3B,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,UAAW,SAAQ,iBAAiB;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,SAAS,CAAC;CAClD"}
|
|
@@ -26,6 +26,8 @@ export interface FieldRenderProps extends FieldBinding {
|
|
|
26
26
|
}
|
|
27
27
|
export interface FieldProps extends FieldLimitOptions {
|
|
28
28
|
label: string;
|
|
29
|
+
/** Supporting content beside the label, also described when an error is present. */
|
|
30
|
+
labelHint?: ReactNode;
|
|
29
31
|
/** Supporting text or inline content, hidden while an error is present. */
|
|
30
32
|
hint?: ReactNode;
|
|
31
33
|
/** Present means invalid: the message renders and the control is marked. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d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AC,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,SAAS,CAAC;CAClD"}
|
|
@@ -107,6 +107,7 @@ per-field validation.
|
|
|
107
107
|
| `type` | Required discriminator from the table below | Every item. |
|
|
108
108
|
| `label` | Required string | Every value-bearing field; visible and accessible name. |
|
|
109
109
|
| `hint` | Optional `ReactNode` | Every field; hidden while an error is displayed. |
|
|
110
|
+
| `labelHint` | Optional `ReactNode` | Every field; muted content beside the label, retained with errors and included in the accessible description. |
|
|
110
111
|
| `width` | Optional `"sm" \| "md" \| "lg"`; defaults to `"lg"` | Every value-bearing field; maximum width of the label, control and messages together. |
|
|
111
112
|
| `required` | Boolean, `false` | Every field; checked by `validateFormValues`. |
|
|
112
113
|
| `isDisabled` | Boolean, `false` | Every field; combines with the editor's disabled state. |
|
|
@@ -187,6 +188,13 @@ the supported schema types above. The two-thumb `rangeSlider` remains supported.
|
|
|
187
188
|
|
|
188
189
|
### Limit indicators
|
|
189
190
|
|
|
191
|
+
Use `labelHint` for additional bounds or supporting inline text beside the label.
|
|
192
|
+
It sits beside any usage counter and wraps at narrow widths. Authored `hint`
|
|
193
|
+
content remains below the control and errors replace only that lower hint.
|
|
194
|
+
Label hints never change accessible names. For example, a multiple reference can
|
|
195
|
+
use `labelHint: "min. 2"` and `picker: { max: 5 }`: the counter supplies the maximum
|
|
196
|
+
without repeating it. Applications format domain-specific bounds and units.
|
|
197
|
+
|
|
190
198
|
`shortText` and `longText` automatically show their `maxLength` usage; `tags`
|
|
191
199
|
shows committed tags against `max`. Multiple `asset` and `reference` fields
|
|
192
200
|
show selected IDs against `picker.max`. Limits must be finite and positive to
|
|
@@ -492,6 +500,7 @@ by default). FormEditor dividers span the grid and use its gap instead of margin
|
|
|
492
500
|
wrappers to preserve intrinsic sizing, overlays and queries (decisions 0034,
|
|
493
501
|
0041 and 0053).
|
|
494
502
|
Shared controls, Button, Field and theme tokens own their appearance.
|
|
503
|
+
Field's header owns label hints, their description associations and wrapping.
|
|
495
504
|
Field's private limit renderer and reporting hooks own usage indicators;
|
|
496
505
|
FormEditor passes explicit limits and presentation options to the frame.
|
|
497
506
|
|
|
@@ -511,3 +520,19 @@ When adding or changing a field:
|
|
|
511
520
|
their decision document. Keep this architecture map current.
|
|
512
521
|
- Run library validation and package/browser checks. The release workflow owns
|
|
513
522
|
versions. Finish with verification results and suggested Git commit text.
|
|
523
|
+
|
|
524
|
+
## Form layout and presentation companions
|
|
525
|
+
|
|
526
|
+
FormEditor's default field gap is `lg` (`var(--space-6)`, normally 24px).
|
|
527
|
+
Compose groups and sections with the same gap. EditSection, EditLayout and Wizard
|
|
528
|
+
use it for their outer form layouts; compact label/hint, option, table, metadata
|
|
529
|
+
and toolbar spacing is separate. General Grid/Stack defaults do not change.
|
|
530
|
+
|
|
531
|
+
CollectionView/CollectionEmpty, EditSection, PageHeader, MetaList,
|
|
532
|
+
LoadState/LoadError and Wizard/ReviewTable own presentation, not field values.
|
|
533
|
+
They require no FormEditor adapter. Applications retain data, routing, validation
|
|
534
|
+
and submission. Wizard accepts required `isOpen` and an optional stable
|
|
535
|
+
`modalComponent` to bridge application dialog coordination. Each Wizard step's
|
|
536
|
+
content mounts fresh when the step changes, so a FormEditor per step starts with
|
|
537
|
+
its own touched and error state; keep its `value` in application state above the
|
|
538
|
+
wizard so values survive Back, Next and review Edit links.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../Field/index.cjs"),require("../Container/index.cjs");const e=require("../../chunks/FormEditor-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../Field/index.cjs"),require("../Container/index.cjs");const e=require("../../chunks/FormEditor-B4mtAxaU.cjs");exports.FormEditor=e.t,exports.validateFormValues=e.n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/FormEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAQL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,YAAY,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,GACf,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,cAAc,CAAC,cAAc,CAAC,EAC9B,cAAc,GAAG,UAAU,CAC5B;IACC,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACjE,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1C,sEAAsE;IACtE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0GAA0G;IAC1G,OAAO,CAAC,EAAE,WA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CAAC;IACtB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAsED,qFAAqF;AACrF,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,KAAK,EACL,YAAiB,EACjB,aAAa,EACb,WAAgB,EAChB,MAAW,EACX,UAAkB,EAClB,aAAqB,EACrB,OAAW,EACX,cAAwB,EACxB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,+BAwEjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAQL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,YAAY,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,GACf,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,cAAc,CAAC,cAAc,CAAC,EAC9B,cAAc,GAAG,UAAU,CAC5B;IACC,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACjE,kFA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;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1C,sEAAsE;IACtE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0GAA0G;IAC1G,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAsED,qFAAqF;AACrF,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,KAAK,EACL,YAAiB,EACjB,aAAa,EACb,WAAgB,EAChB,MAAW,EACX,UAAkB,EAClB,aAAqB,EACrB,OAAW,EACX,cAAwB,EACxB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,+BAwEjB"}
|
|
@@ -12,6 +12,7 @@ declare const fieldWidths: readonly ["sm", "md", "lg"];
|
|
|
12
12
|
interface FormFieldBase {
|
|
13
13
|
id: string;
|
|
14
14
|
label: string;
|
|
15
|
+
labelHint?: ReactNode;
|
|
15
16
|
hint?: ReactNode;
|
|
16
17
|
/** Maximum width of the whole field, using Container's measures and its `lg` default. */
|
|
17
18
|
width?: (typeof fieldWidths)[number];
|