@namroodinc/liquid-editorial 0.6.8 → 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.
Files changed (120) hide show
  1. package/README.md +108 -2
  2. package/UPGRADING.md +65 -0
  3. package/dist/chunks/CollectionView-BIuOL917.cjs +2 -0
  4. package/dist/chunks/CollectionView-BIuOL917.cjs.map +1 -0
  5. package/dist/chunks/CollectionView-Cr12UFWa.js +179 -0
  6. package/dist/chunks/CollectionView-Cr12UFWa.js.map +1 -0
  7. package/dist/chunks/LoadState-B7GTDlWv.js +71 -0
  8. package/dist/chunks/LoadState-B7GTDlWv.js.map +1 -0
  9. package/dist/chunks/LoadState-C7tQ6fIP.cjs +2 -0
  10. package/dist/chunks/LoadState-C7tQ6fIP.cjs.map +1 -0
  11. package/dist/chunks/Wizard-B_CPW1V6.cjs +2 -0
  12. package/dist/chunks/Wizard-B_CPW1V6.cjs.map +1 -0
  13. package/dist/chunks/Wizard-C1iR5z44.js +99 -0
  14. package/dist/chunks/Wizard-C1iR5z44.js.map +1 -0
  15. package/dist/components/CollectionView/empty.d.cts +15 -0
  16. package/dist/components/CollectionView/empty.d.cts.map +1 -0
  17. package/dist/components/CollectionView/empty.d.ts +15 -0
  18. package/dist/components/CollectionView/empty.d.ts.map +1 -0
  19. package/dist/components/CollectionView/filters.d.cts +6 -0
  20. package/dist/components/CollectionView/filters.d.cts.map +1 -0
  21. package/dist/components/CollectionView/filters.d.ts +6 -0
  22. package/dist/components/CollectionView/filters.d.ts.map +1 -0
  23. package/dist/components/CollectionView/index.cjs +1 -0
  24. package/dist/components/CollectionView/index.d.cts +6 -0
  25. package/dist/components/CollectionView/index.d.cts.map +1 -0
  26. package/dist/components/CollectionView/index.d.ts +6 -0
  27. package/dist/components/CollectionView/index.d.ts.map +1 -0
  28. package/dist/components/CollectionView/index.js +2 -0
  29. package/dist/components/CollectionView/style.css +70 -0
  30. package/dist/components/CollectionView/toolbar.d.cts +5 -0
  31. package/dist/components/CollectionView/toolbar.d.cts.map +1 -0
  32. package/dist/components/CollectionView/toolbar.d.ts +5 -0
  33. package/dist/components/CollectionView/toolbar.d.ts.map +1 -0
  34. package/dist/components/CollectionView/types.d.cts +40 -0
  35. package/dist/components/CollectionView/types.d.cts.map +1 -0
  36. package/dist/components/CollectionView/types.d.ts +40 -0
  37. package/dist/components/CollectionView/types.d.ts.map +1 -0
  38. package/dist/components/EditLayout/style.css +1 -1
  39. package/dist/components/EditSection/index.cjs +2 -0
  40. package/dist/components/EditSection/index.cjs.map +1 -0
  41. package/dist/components/EditSection/index.d.cts +9 -0
  42. package/dist/components/EditSection/index.d.cts.map +1 -0
  43. package/dist/components/EditSection/index.d.ts +9 -0
  44. package/dist/components/EditSection/index.d.ts.map +1 -0
  45. package/dist/components/EditSection/index.js +22 -0
  46. package/dist/components/EditSection/index.js.map +1 -0
  47. package/dist/components/EditSection/style.css +31 -0
  48. package/dist/components/FormEditor/README.md +16 -0
  49. package/dist/components/LoadState/error.d.cts +13 -0
  50. package/dist/components/LoadState/error.d.cts.map +1 -0
  51. package/dist/components/LoadState/error.d.ts +13 -0
  52. package/dist/components/LoadState/error.d.ts.map +1 -0
  53. package/dist/components/LoadState/index.cjs +1 -0
  54. package/dist/components/LoadState/index.d.cts +15 -0
  55. package/dist/components/LoadState/index.d.cts.map +1 -0
  56. package/dist/components/LoadState/index.d.ts +15 -0
  57. package/dist/components/LoadState/index.d.ts.map +1 -0
  58. package/dist/components/LoadState/index.js +1 -0
  59. package/dist/components/LoadState/types.d.cts +3 -0
  60. package/dist/components/LoadState/types.d.cts.map +1 -0
  61. package/dist/components/LoadState/types.d.ts +3 -0
  62. package/dist/components/LoadState/types.d.ts.map +1 -0
  63. package/dist/components/LoadState/useRetryAttempt.d.cts +15 -0
  64. package/dist/components/LoadState/useRetryAttempt.d.cts.map +1 -0
  65. package/dist/components/LoadState/useRetryAttempt.d.ts +15 -0
  66. package/dist/components/LoadState/useRetryAttempt.d.ts.map +1 -0
  67. package/dist/components/MetaList/index.cjs +2 -0
  68. package/dist/components/MetaList/index.cjs.map +1 -0
  69. package/dist/components/MetaList/index.d.cts +7 -0
  70. package/dist/components/MetaList/index.d.cts.map +1 -0
  71. package/dist/components/MetaList/index.d.ts +7 -0
  72. package/dist/components/MetaList/index.d.ts.map +1 -0
  73. package/dist/components/MetaList/index.js +13 -0
  74. package/dist/components/MetaList/index.js.map +1 -0
  75. package/dist/components/MetaList/style.css +19 -0
  76. package/dist/components/PageHeader/index.cjs +2 -0
  77. package/dist/components/PageHeader/index.cjs.map +1 -0
  78. package/dist/components/PageHeader/index.d.cts +9 -0
  79. package/dist/components/PageHeader/index.d.cts.map +1 -0
  80. package/dist/components/PageHeader/index.d.ts +9 -0
  81. package/dist/components/PageHeader/index.d.ts.map +1 -0
  82. package/dist/components/PageHeader/index.js +27 -0
  83. package/dist/components/PageHeader/index.js.map +1 -0
  84. package/dist/components/PageHeader/style.css +39 -0
  85. package/dist/components/Stepper/index.cjs +1 -1
  86. package/dist/components/Stepper/index.cjs.map +1 -1
  87. package/dist/components/Stepper/index.d.cts +8 -0
  88. package/dist/components/Stepper/index.d.cts.map +1 -1
  89. package/dist/components/Stepper/index.d.ts +8 -0
  90. package/dist/components/Stepper/index.d.ts.map +1 -1
  91. package/dist/components/Stepper/index.js +15 -14
  92. package/dist/components/Stepper/index.js.map +1 -1
  93. package/dist/components/Stepper/style.css +53 -0
  94. package/dist/components/Wizard/actions.d.cts +13 -0
  95. package/dist/components/Wizard/actions.d.cts.map +1 -0
  96. package/dist/components/Wizard/actions.d.ts +13 -0
  97. package/dist/components/Wizard/actions.d.ts.map +1 -0
  98. package/dist/components/Wizard/index.cjs +1 -0
  99. package/dist/components/Wizard/index.d.cts +7 -0
  100. package/dist/components/Wizard/index.d.cts.map +1 -0
  101. package/dist/components/Wizard/index.d.ts +7 -0
  102. package/dist/components/Wizard/index.d.ts.map +1 -0
  103. package/dist/components/Wizard/index.js +2 -0
  104. package/dist/components/Wizard/review-table.d.cts +13 -0
  105. package/dist/components/Wizard/review-table.d.cts.map +1 -0
  106. package/dist/components/Wizard/review-table.d.ts +13 -0
  107. package/dist/components/Wizard/review-table.d.ts.map +1 -0
  108. package/dist/components/Wizard/style.css +13 -0
  109. package/dist/components/Wizard/types.d.cts +35 -0
  110. package/dist/components/Wizard/types.d.cts.map +1 -0
  111. package/dist/components/Wizard/types.d.ts +35 -0
  112. package/dist/components/Wizard/types.d.ts.map +1 -0
  113. package/dist/index.cjs +1 -1
  114. package/dist/index.d.cts +13 -1
  115. package/dist/index.d.cts.map +1 -1
  116. package/dist/index.d.ts +13 -1
  117. package/dist/index.d.ts.map +1 -1
  118. package/dist/index.js +36 -30
  119. package/dist/styles.css +5 -0
  120. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import { Button as e } from "../components/Button/index.js";
2
+ import { Modal as t } from "../components/Modal/index.js";
3
+ import { Table as n, TableBody as r, TableCell as i, TableFrame as a, TableHead as o, TableHeaderCell as s, TableRow as c } from "../components/Table/index.js";
4
+ import { Stepper as l } from "../components/Stepper/index.js";
5
+ import { Fragment as u } from "react";
6
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
7
+ //#region src/components/Wizard/actions.tsx
8
+ var m = (e) => (t) => {
9
+ t.detail <= 1 && e();
10
+ };
11
+ function h({ step: t, isFirst: n, isLast: r, isPending: i, submitLabel: a, onBack: o, onAdvance: s }) {
12
+ return /* @__PURE__ */ p(d, { children: [!t.hideSecondary && /* @__PURE__ */ f(e, {
13
+ isDisabled: i,
14
+ isFocusableWhenDisabled: !0,
15
+ onClick: m(o),
16
+ children: n ? "Cancel" : "Back"
17
+ }), /* @__PURE__ */ f(e, {
18
+ variant: "primary",
19
+ isDisabled: i || t.canContinue === !1 && !t.onInvalid,
20
+ isPending: i,
21
+ isFocusableWhenDisabled: !0,
22
+ onClick: m(s),
23
+ children: t.primaryAction?.label ?? (r ? a : "Next")
24
+ })] });
25
+ }
26
+ //#endregion
27
+ //#region src/components/Wizard/review-table.tsx
28
+ function g({ rows: t, onStepChange: l, isDisabled: u = !1 }) {
29
+ return /* @__PURE__ */ f(a, { children: /* @__PURE__ */ p(n, { children: [/* @__PURE__ */ f(o, { children: /* @__PURE__ */ p(c, { children: [
30
+ /* @__PURE__ */ f(s, { children: "Setting" }),
31
+ /* @__PURE__ */ f(s, { children: "Value" }),
32
+ /* @__PURE__ */ f(s, {
33
+ width: "control",
34
+ align: "end",
35
+ "aria-label": "Actions"
36
+ })
37
+ ] }) }), /* @__PURE__ */ f(r, { children: t.map((t, n) => /* @__PURE__ */ p(c, { children: [
38
+ /* @__PURE__ */ f(i, {
39
+ emphasis: "primary",
40
+ children: t.term
41
+ }),
42
+ /* @__PURE__ */ f(i, { children: t.value }),
43
+ /* @__PURE__ */ f(i, {
44
+ width: "control",
45
+ align: "end",
46
+ children: /* @__PURE__ */ f(e, {
47
+ isDisabled: u,
48
+ size: "sm",
49
+ variant: "simple",
50
+ "aria-label": `Edit ${t.term}`,
51
+ onClick: () => l(t.step),
52
+ children: "Edit"
53
+ })
54
+ })
55
+ ] }, n)) })] }) });
56
+ }
57
+ //#endregion
58
+ //#region src/components/Wizard/index.tsx
59
+ function _({ isOpen: e, modalComponent: n = t, title: r, description: i, steps: a, activeStep: o = 0, onStepChange: s = () => {}, submitLabel: c, onSubmit: m, isPending: g = !1, isNavigable: _ = !0, onClose: v }) {
60
+ let y = Math.min(Math.max(o, 0), a.length - 1), b = a[y], x = y === 0, S = y === a.length - 1, C = () => {
61
+ g || v();
62
+ };
63
+ return /* @__PURE__ */ f(n, {
64
+ isOpen: e,
65
+ size: "md",
66
+ title: b?.title ?? r,
67
+ description: b?.modalDescription ?? i,
68
+ onClose: C,
69
+ footer: b && /* @__PURE__ */ f(h, {
70
+ step: b,
71
+ isFirst: x,
72
+ isLast: S,
73
+ isPending: g,
74
+ submitLabel: c,
75
+ onBack: x ? C : () => s(y - 1),
76
+ onAdvance: () => {
77
+ !g && b && (b.canContinue === !1 ? b.onInvalid?.() : b.primaryAction ? b.primaryAction.onClick() : S ? m() : s(y + 1));
78
+ }
79
+ }),
80
+ children: /* @__PURE__ */ p("div", {
81
+ className: "ds-wizard__content",
82
+ children: [a.length > 1 && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(l, {
83
+ size: "md",
84
+ orientation: "auto",
85
+ activeStep: y,
86
+ steps: a.map(({ id: e, label: t, description: n }) => ({
87
+ id: e,
88
+ label: t,
89
+ description: n
90
+ })),
91
+ onStepChange: _ && !g ? s : void 0
92
+ }), /* @__PURE__ */ f("hr", { className: "ds-wizard__rule" })] }), b && /* @__PURE__ */ f(u, { children: b.content }, b.id)]
93
+ })
94
+ });
95
+ }
96
+ //#endregion
97
+ export { g as n, _ as t };
98
+
99
+ //# sourceMappingURL=Wizard-C1iR5z44.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wizard-C1iR5z44.js","names":["_Fragment","_Fragment","Fragment$1","singleClick","event","action","WizardActions","step","Button","isPending","onBack","isFirst","onAdvance","isLast","submitLabel","ReviewTable","TableFrame","Table","TableHead","TableRow","TableHeaderCell","TableBody","rows","TableCell","row","onStepChange","index","Wizard","ModalComponent","Modal","activeStep","steps","close","onClose","title","description","onSubmit","Stepper","isNavigable","Fragment"],"sources":["../../src/components/Wizard/actions.tsx","../../src/components/Wizard/review-table.tsx","../../src/components/Wizard/index.tsx"],"sourcesContent":["import type { MouseEvent } from \"react\";\nimport { Button } from \"../Button\";\nimport type { WizardStep } from \"./types\";\n\n// A footer changes meaning between steps. Ignore the second click of a double-click.\n// Blocked footer buttons stay focusable: the pressed Next/Finish button is the\n// same element on the following step, so native disabling would drop its focus.\nconst singleClick = (action: () => void) => (event: MouseEvent<HTMLButtonElement>) => {\n if (event.detail <= 1) {\n action();\n }\n};\n\ninterface WizardActionsProps {\n step: WizardStep;\n isFirst: boolean;\n isLast: boolean;\n isPending: boolean;\n submitLabel: string;\n onBack: () => void;\n onAdvance: () => void;\n}\n\nexport function WizardActions({\n step,\n isFirst,\n isLast,\n isPending,\n submitLabel,\n onBack,\n onAdvance,\n}: WizardActionsProps) {\n return (\n <>\n {!step.hideSecondary && (\n <Button\n isDisabled={isPending}\n isFocusableWhenDisabled\n onClick={singleClick(onBack)}\n >\n {isFirst ? \"Cancel\" : \"Back\"}\n </Button>\n )}\n <Button\n variant=\"primary\"\n isDisabled={isPending || (step.canContinue === false && !step.onInvalid)}\n isPending={isPending}\n isFocusableWhenDisabled\n onClick={singleClick(onAdvance)}\n >\n {step.primaryAction?.label ?? (isLast ? submitLabel : \"Next\")}\n </Button>\n </>\n );\n}\n","import { Button } from \"../Button\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableFrame,\n TableHead,\n TableHeaderCell,\n TableRow,\n} from \"../Table\";\nimport type { ReactNode } from \"react\";\n\nexport interface ReviewRow {\n term: string;\n value: ReactNode;\n step: number;\n}\n\nexport interface ReviewTableProps {\n rows: ReviewRow[];\n isDisabled?: boolean;\n onStepChange: (index: number) => void;\n}\n\nexport function ReviewTable({ rows, onStepChange, isDisabled = false }: ReviewTableProps) {\n return (\n <TableFrame>\n <Table>\n <TableHead>\n <TableRow>\n <TableHeaderCell>Setting</TableHeaderCell>\n <TableHeaderCell>Value</TableHeaderCell>\n <TableHeaderCell\n width=\"control\"\n align=\"end\"\n aria-label=\"Actions\"\n />\n </TableRow>\n </TableHead>\n <TableBody>\n {/* Terms may repeat, and rows hold no state of their own, so position is the key. */}\n {rows.map((row, index) => (\n <TableRow key={index}>\n <TableCell emphasis=\"primary\">{row.term}</TableCell>\n <TableCell>{row.value}</TableCell>\n <TableCell\n width=\"control\"\n align=\"end\"\n >\n <Button\n isDisabled={isDisabled}\n size=\"sm\"\n variant=\"simple\"\n aria-label={`Edit ${row.term}`}\n onClick={() => onStepChange(row.step)}\n >\n Edit\n </Button>\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </TableFrame>\n );\n}\n","import { Fragment } from \"react\";\nimport { Modal } from \"../Modal\";\nimport { Stepper } from \"../Stepper\";\nimport { WizardActions } from \"./actions\";\nimport type { WizardProps, WizardStep } from \"./types\";\nimport \"./style.css\";\n\nexport type { WizardProps, WizardStep } from \"./types\";\nexport { ReviewTable } from \"./review-table\";\nexport type { ReviewTableProps, ReviewRow } from \"./review-table\";\n\n/** Controlled layout and navigation; applications own values, validation and actions. */\nexport function Wizard({\n isOpen,\n modalComponent: ModalComponent = Modal,\n title,\n description,\n steps,\n activeStep = 0,\n onStepChange = () => {},\n submitLabel,\n onSubmit,\n isPending = false,\n isNavigable = true,\n onClose,\n}: WizardProps) {\n // An index past the end, such as after a conditional step is removed, shows\n // the last step. Without steps, such as while they load, only the frame shows.\n const index = Math.min(Math.max(activeStep, 0), steps.length - 1);\n const step: WizardStep | undefined = steps[index];\n const isFirst = index === 0;\n const isLast = index === steps.length - 1;\n const close = () => {\n if (!isPending) {\n onClose();\n }\n };\n const advance = () => {\n if (isPending || !step) {\n return;\n }\n if (step.canContinue === false) {\n step.onInvalid?.();\n return;\n }\n if (step.primaryAction) {\n step.primaryAction.onClick();\n } else if (isLast) {\n onSubmit();\n } else {\n onStepChange(index + 1);\n }\n };\n // The modal stays rendered while closed, so an application modal sees\n // isOpen={false} and can run its own close behavior.\n return (\n <ModalComponent\n isOpen={isOpen}\n size=\"md\"\n title={step?.title ?? title}\n description={step?.modalDescription ?? description}\n onClose={close}\n footer={\n step && (\n <WizardActions\n step={step}\n isFirst={isFirst}\n isLast={isLast}\n isPending={isPending}\n submitLabel={submitLabel}\n onBack={isFirst ? close : () => onStepChange(index - 1)}\n onAdvance={advance}\n />\n )\n }\n >\n <div className=\"ds-wizard__content\">\n {steps.length > 1 && (\n <>\n <Stepper\n size=\"md\"\n orientation=\"auto\"\n activeStep={index}\n steps={steps.map(({ id, label, description }) => ({ id, label, description }))}\n onStepChange={isNavigable && !isPending ? onStepChange : undefined}\n />\n <hr className=\"ds-wizard__rule\" />\n </>\n )}\n {/* Each step mounts fresh, so steps sharing a component type never share its state. */}\n {step && <Fragment key={step.id}>{step.content}</Fragment>}\n </div>\n </ModalComponent>\n );\n}\n"],"mappings":";;;;;;;AAOA,IAAMG,KAAe,OAAwB,MAAyC;CACpF,AAAIC,EAAM,UAAU,KAClBC,EAAO;AAEX;AAYA,SAAgBC,EAAc,EAC5B,SACA,YACA,WACA,cACA,gBACA,WACA,gBACqB;CACrB,OACE,kBAAAN,GAAA,EAAA,UAAA,CACG,CAACO,EAAK,iBACL,kBAACC,GAAD;EACE,YAAYC;EACZ,yBAAA;EACA,SAASN,EAAYO,CAAM;EAE1B,UAAAC,IAAU,WAAW;CAChB,CAAA,GAEV,kBAACH,GAAD;EACE,SAAQ;EACR,YAAYC,KAAcF,EAAK,gBAAgB,MAAS,CAACA,EAAK;EACnD;EACX,yBAAA;EACA,SAASJ,EAAYS,CAAS;EAE7B,UAAAL,EAAK,eAAe,UAAUM,IAASC,IAAc;CAChD,CAAA,CACR,EAAA,CAAA;AAEN;;;AC9BA,SAAgBC,EAAY,EAAE,SAAM,iBAAc,gBAAa,MAA2B;CACxF,OACE,kBAACC,GAAD,EAAA,UACE,kBAACC,GAAD,EAAA,UAAA,CACE,kBAACC,GAAD,EAAA,UACE,kBAACC,GAAD,EAAA,UAAA;EACE,kBAACC,GAAD,EAAA,UAAiB,UAAwB,CAAA;EACzC,kBAACA,GAAD,EAAA,UAAiB,QAAsB,CAAA;EACvC,kBAACA,GAAD;GACE,OAAM;GACN,OAAM;GACN,cAAW;EACZ,CAAA;CACO,EAAA,CAAA,EACD,CAAA,GACX,kBAACC,GAAD,EAAA,UAEGC,EAAK,KAAK,GAAK,MACd,kBAACH,GAAD,EAAA,UAAA;EACE,kBAACI,GAAD;GAAW,UAAS;GAAW,UAAAC,EAAI;EAAgB,CAAA;EACnD,kBAACD,GAAD,EAAA,UAAYC,EAAI,MAAiB,CAAA;EACjC,kBAACD,GAAD;GACE,OAAM;GACN,OAAM;GAEN,UAAA,kBAACf,GAAD;IACc;IACZ,MAAK;IACL,SAAQ;IACR,cAAY,QAAQgB,EAAI;IACxB,eAAeC,EAAaD,EAAI,IAAI;IACrC,UAAA;GAEO,CAAA;EACC,CAAA;CACH,EAAA,GAjBKE,CAiBL,CACX,EACQ,CAAA,CACN,EAAA,CAAA,EACG,CAAA;AAEhB;;;ACrDA,SAAgBC,EAAO,EACrB,WACA,gBAAgBC,IAAiBC,GACjC,UACA,gBACA,UACA,gBAAa,GACb,wBAAqB,CAAC,GACtB,gBACA,aACA,eAAY,IACZ,iBAAc,IACd,cACc;CAGd,IAAMH,IAAQ,KAAK,IAAI,KAAK,IAAII,GAAY,CAAC,GAAGC,EAAM,SAAS,CAAC,GAC1DxB,IAA+BwB,EAAML,IACrCf,IAAUe,MAAU,GACpBb,IAASa,MAAUK,EAAM,SAAS,GAClCC,UAAc;EAClB,AAAKvB,KACHwB,EAAQ;CAEZ;CAmBA,OACE,kBAACL,GAAD;EACU;EACR,MAAK;EACL,OAAOrB,GAAM,SAAS2B;EACtB,aAAa3B,GAAM,oBAAoB4B;EACvC,SAASH;EACT,QACEzB,KACE,kBAACD,GAAD;GACQ;GACG;GACD;GACG;GACE;GACb,QAAQK,IAAUqB,UAAcP,EAAaC,IAAQ,CAAC;GACtD,iBAlCY;IACpB,AAAI,MAAcnB,MAGdA,EAAK,gBAAgB,KACvBA,EAAK,YAAY,IAGfA,EAAK,gBACPA,EAAK,cAAc,QAAQ,IAClBM,IACTuB,EAAS,IAETX,EAAaC,IAAQ,CAAC;GAE1B;EAoBS,CAAA;EAIL,UAAA,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACGK,EAAM,SAAS,KACd,kBAAA9B,GAAA,EAAA,UAAA,CACE,kBAACoC,GAAD;IACE,MAAK;IACL,aAAY;IACZ,YAAYX;IACZ,OAAOK,EAAM,KAAK,EAAE,OAAI,UAAO,sBAAmB;KAAE;KAAI;KAAO;IAAY,EAAE;IAC7E,cAAcO,KAAe,CAAC7B,IAAYgB,IAAe,KAAA;GAC1D,CAAA,GACD,kBAAC,MAAD,EAAI,WAAU,kBAAmB,CAAA,CACjC,EAAA,CAAA,GAGHlB,KAAQ,kBAACgC,GAAD,EAAA,UAAyBhC,EAAK,QAAkB,GAAjCA,EAAK,EAA4B,CACtD;;CACS,CAAA;AAEpB"}
@@ -0,0 +1,15 @@
1
+ import { type TableEmptyProps } from "../Table/index.cjs";
2
+ import type { CollectionEmptyKind } from "./types.cjs";
3
+ export interface CollectionEmptyProps extends Pick<TableEmptyProps, "icon" | "description" | "action"> {
4
+ kind: CollectionEmptyKind;
5
+ /** Plural noun for the no-match title, e.g. "entries". */
6
+ noun: string;
7
+ /** Shown when the collection itself has no items. */
8
+ title: string;
9
+ }
10
+ /**
11
+ * What a searchable collection's frame shows instead of its table: how to
12
+ * start an empty collection, or a pointer back to the search field.
13
+ */
14
+ export declare function CollectionEmpty({ kind, noun, icon, title, description, action, }: CollectionEmptyProps): import("react").JSX.Element;
15
+ //# sourceMappingURL=empty.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.d.cts","sourceRoot":"","sources":["../../../src/components/CollectionView/empty.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,eAAe,EACf,MAAM,GAAG,aAAa,GAAG,QAAQ,CAClC;IACC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,MAAM,GACP,EAAE,oBAAoB,+BAkBtB"}
@@ -0,0 +1,15 @@
1
+ import { type TableEmptyProps } from "../Table/index.js";
2
+ import type { CollectionEmptyKind } from "./types.js";
3
+ export interface CollectionEmptyProps extends Pick<TableEmptyProps, "icon" | "description" | "action"> {
4
+ kind: CollectionEmptyKind;
5
+ /** Plural noun for the no-match title, e.g. "entries". */
6
+ noun: string;
7
+ /** Shown when the collection itself has no items. */
8
+ title: string;
9
+ }
10
+ /**
11
+ * What a searchable collection's frame shows instead of its table: how to
12
+ * start an empty collection, or a pointer back to the search field.
13
+ */
14
+ export declare function CollectionEmpty({ kind, noun, icon, title, description, action, }: CollectionEmptyProps): import("react").JSX.Element;
15
+ //# sourceMappingURL=empty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/CollectionView/empty.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,eAAe,EACf,MAAM,GAAG,aAAa,GAAG,QAAQ,CAClC;IACC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,MAAM,GACP,EAAE,oBAAoB,+BAkBtB"}
@@ -0,0 +1,6 @@
1
+ import type { CollectionViewProps } from "./types.cjs";
2
+ type FiltersProps = Pick<CollectionViewProps, "title" | "query" | "onQueryChange" | "filter" | "mine" | "view" | "actions">;
3
+ /** Search and view controls for a collection without an active selection. */
4
+ export declare function CollectionFilters({ title, query, onQueryChange, filter, mine, view, actions, }: FiltersProps): import("react").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=filters.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.d.cts","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,6 @@
1
+ import type { CollectionViewProps } from "./types.js";
2
+ type FiltersProps = Pick<CollectionViewProps, "title" | "query" | "onQueryChange" | "filter" | "mine" | "view" | "actions">;
3
+ /** Search and view controls for a collection without an active selection. */
4
+ export declare function CollectionFilters({ title, query, onQueryChange, filter, mine, view, actions, }: FiltersProps): import("react").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=filters.d.ts.map
@@ -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,2 @@
1
+ import "../Pagination/index.js";
2
+ export { n as CollectionEmpty, t as CollectionView } from "../../chunks/CollectionView-Cr12UFWa.js";
@@ -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"}
@@ -152,7 +152,7 @@
152
152
  .ds-edit-layout__content {
153
153
  display: flex;
154
154
  flex-direction: column;
155
- gap: var(--space-8);
155
+ gap: var(--space-6);
156
156
  min-inline-size: 0;
157
157
  max-inline-size: var(--width-md);
158
158
  margin-inline: auto;
@@ -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
+ }
@@ -520,3 +520,19 @@ When adding or changing a field:
520
520
  their decision document. Keep this architecture map current.
521
521
  - Run library validation and package/browser checks. The release workflow owns
522
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.
@@ -0,0 +1,13 @@
1
+ import type { RetryState } from "./types.cjs";
2
+ /**
3
+ * Persistent load feedback; the owning view controls when it is shown. A first
4
+ * failure stays quiet, while a retry's progress and repeated failure are announced.
5
+ */
6
+ export interface LoadErrorProps {
7
+ error?: Error | null;
8
+ onRetry?: () => void;
9
+ /** Set while the owner keeps this banner mounted through a retry, so Retry keeps focus. */
10
+ retryState?: RetryState;
11
+ }
12
+ export declare function LoadError({ error, onRetry, retryState }: LoadErrorProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=error.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.cts","sourceRoot":"","sources":["../../../src/components/LoadState/error.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAO1C;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,cAAc,+BAuBvE"}
@@ -0,0 +1,13 @@
1
+ import type { RetryState } from "./types.js";
2
+ /**
3
+ * Persistent load feedback; the owning view controls when it is shown. A first
4
+ * failure stays quiet, while a retry's progress and repeated failure are announced.
5
+ */
6
+ export interface LoadErrorProps {
7
+ error?: Error | null;
8
+ onRetry?: () => void;
9
+ /** Set while the owner keeps this banner mounted through a retry, so Retry keeps focus. */
10
+ retryState?: RetryState;
11
+ }
12
+ export declare function LoadError({ error, onRetry, retryState }: LoadErrorProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/components/LoadState/error.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAO1C;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,cAAc,+BAuBvE"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/LoadState-C7tQ6fIP.cjs");exports.LoadError=e.n,exports.LoadState=e.t;
@@ -0,0 +1,15 @@
1
+ import type { LoadStatus } from "./types.cjs";
2
+ import type { ReactNode } from "react";
3
+ export interface LoadStateProps {
4
+ status: LoadStatus;
5
+ error?: Error | null;
6
+ onRetry?: () => void;
7
+ /** Rendered once loaded. */
8
+ children?: ReactNode;
9
+ }
10
+ /** The loading and failed states every API-backed view shares; children render once ready. */
11
+ export declare function LoadState({ status, error, onRetry, children }: LoadStateProps): import("react").JSX.Element;
12
+ export { LoadError } from "./error.cjs";
13
+ export type { LoadErrorProps } from "./error.cjs";
14
+ export type { LoadStatus, RetryState } from "./types.cjs";
15
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/LoadState/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAgB7E;AAED,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { LoadStatus } from "./types.js";
2
+ import type { ReactNode } from "react";
3
+ export interface LoadStateProps {
4
+ status: LoadStatus;
5
+ error?: Error | null;
6
+ onRetry?: () => void;
7
+ /** Rendered once loaded. */
8
+ children?: ReactNode;
9
+ }
10
+ /** The loading and failed states every API-backed view shares; children render once ready. */
11
+ export declare function LoadState({ status, error, onRetry, children }: LoadStateProps): import("react").JSX.Element;
12
+ export { LoadError } from "./error.js";
13
+ export type { LoadErrorProps } from "./error.js";
14
+ export type { LoadStatus, RetryState } from "./types.js";
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LoadState/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAgB7E;AAED,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ export { n as LoadError, t as LoadState } from "../../chunks/LoadState-B7GTDlWv.js";