@namroodinc/liquid-editorial 0.1.10 → 0.2.0
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/AGENTS.md +1 -1
- package/README.md +32 -16
- package/UPGRADING.md +68 -0
- package/dist/chunks/FormEditor-8bz3pOdP.cjs +2 -0
- package/dist/chunks/FormEditor-8bz3pOdP.cjs.map +1 -0
- package/dist/chunks/FormEditor-DuW8x78Y.js +330 -0
- package/dist/chunks/FormEditor-DuW8x78Y.js.map +1 -0
- package/dist/components/AppShell/index.cjs +1 -1
- package/dist/components/AppShell/index.cjs.map +1 -1
- package/dist/components/AppShell/index.d.cts.map +1 -1
- package/dist/components/AppShell/index.d.ts.map +1 -1
- package/dist/components/AppShell/index.js +1 -0
- package/dist/components/AppShell/index.js.map +1 -1
- package/dist/components/Badge/style.css +24 -21
- package/dist/components/Drawer/index.cjs +1 -1
- package/dist/components/Drawer/index.cjs.map +1 -1
- package/dist/components/Drawer/index.d.cts +3 -2
- package/dist/components/Drawer/index.d.cts.map +1 -1
- package/dist/components/Drawer/index.d.ts +3 -2
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +11 -10
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/Drawer/style.css +37 -79
- package/dist/components/EntryPicker/index.cjs +1 -1
- package/dist/components/EntryPicker/index.cjs.map +1 -1
- package/dist/components/EntryPicker/index.d.cts +3 -1
- package/dist/components/EntryPicker/index.d.cts.map +1 -1
- package/dist/components/EntryPicker/index.d.ts +3 -1
- package/dist/components/EntryPicker/index.d.ts.map +1 -1
- package/dist/components/EntryPicker/index.js +45 -43
- package/dist/components/EntryPicker/index.js.map +1 -1
- package/dist/components/FormEditor/control.d.cts +15 -0
- package/dist/components/FormEditor/control.d.cts.map +1 -0
- package/dist/components/FormEditor/control.d.ts +15 -0
- package/dist/components/FormEditor/control.d.ts.map +1 -0
- package/dist/components/FormEditor/index.cjs +1 -0
- package/dist/components/FormEditor/index.d.cts +28 -0
- package/dist/components/FormEditor/index.d.cts.map +1 -0
- package/dist/components/FormEditor/index.d.ts +28 -0
- package/dist/components/FormEditor/index.d.ts.map +1 -0
- package/dist/components/FormEditor/index.js +2 -0
- package/dist/components/FormEditor/model.d.cts +86 -0
- package/dist/components/FormEditor/model.d.cts.map +1 -0
- package/dist/components/FormEditor/model.d.ts +86 -0
- package/dist/components/FormEditor/model.d.ts.map +1 -0
- package/dist/components/FormEditor/style.css +25 -0
- package/dist/components/NumberField/index.cjs +1 -1
- package/dist/components/NumberField/index.cjs.map +1 -1
- package/dist/components/NumberField/index.d.cts +3 -0
- package/dist/components/NumberField/index.d.cts.map +1 -1
- package/dist/components/NumberField/index.d.ts +3 -0
- package/dist/components/NumberField/index.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +20 -20
- package/dist/components/NumberField/index.js.map +1 -1
- package/dist/components/RichTextEditor/index.cjs +1 -1
- package/dist/components/RichTextEditor/index.js +0 -1
- package/dist/components/SelectionCard/index.cjs +1 -1
- package/dist/components/SelectionCard/index.cjs.map +1 -1
- package/dist/components/SelectionCard/index.d.cts +4 -1
- package/dist/components/SelectionCard/index.d.cts.map +1 -1
- package/dist/components/SelectionCard/index.d.ts +4 -1
- package/dist/components/SelectionCard/index.d.ts.map +1 -1
- package/dist/components/SelectionCard/index.js +3 -3
- package/dist/components/SelectionCard/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -20
- package/dist/styles.css +1 -1
- package/dist/tokens.css +15 -5
- package/package.json +1 -1
- package/dist/chunks/EntryEditor-CcyYtH74.js +0 -191
- package/dist/chunks/EntryEditor-CcyYtH74.js.map +0 -1
- package/dist/chunks/EntryEditor-DIpc1iPF.cjs +0 -2
- package/dist/chunks/EntryEditor-DIpc1iPF.cjs.map +0 -1
- package/dist/components/EntryEditor/index.cjs +0 -1
- package/dist/components/EntryEditor/index.d.cts +0 -21
- package/dist/components/EntryEditor/index.d.cts.map +0 -1
- package/dist/components/EntryEditor/index.d.ts +0 -21
- package/dist/components/EntryEditor/index.d.ts.map +0 -1
- package/dist/components/EntryEditor/index.js +0 -6
- package/dist/components/EntryEditor/model.d.cts +0 -33
- package/dist/components/EntryEditor/model.d.cts.map +0 -1
- package/dist/components/EntryEditor/model.d.ts +0 -33
- package/dist/components/EntryEditor/model.d.ts.map +0 -1
- package/dist/components/EntryEditor/style.css +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["forwardRef","Grid","require_components_Grid_index","react","react_jsx_runtime","CardBody","className","inputRef","kind","inputProps","title","description","children","CheckboxCard","rest","ref","RadioCard","SelectionCardGroup","label"],"sources":["../../../src/components/SelectionCard/index.tsx"],"sourcesContent":["import { forwardRef, type InputHTMLAttributes, type ReactNode } from \"react\";\nimport { Grid } from \"../Grid\";\nimport \"./style.css\";\n\ninterface SelectionCardBase {\n /** The commitment, in the user's words. */\n title: ReactNode;\n /** One line on what picking this means. Takes nodes, so a chip or a link can sit inline. */\n description?: ReactNode;\n /** Extra content under the description — a price, a sample, a badge. */\n children?: ReactNode;\n}\n\ntype NativeInput = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\" | \"children\" | \"title\"\n>;\n\nfunction CardBody({\n kind,\n title,\n description,\n children,\n className,\n inputProps,\n inputRef,\n}: SelectionCardBase & {\n kind: \"checkbox\" | \"radio\";\n className?: string;\n inputProps: NativeInput;\n inputRef: React.Ref<HTMLInputElement>;\n}) {\n return (\n <label className={[\"ds-selection-card\", className].filter(Boolean).join(\" \")}>\n <input\n ref={inputRef}\n type={kind}\n data-kind={kind}\n className=\"ds-selection-card__control\"\n {...inputProps}\n />\n <span className=\"ds-selection-card__text\">\n <span className=\"ds-selection-card__title\">{title}</span>\n {description && <span className=\"ds-selection-card__description\">{description}</span>}\n {children && <span className=\"ds-selection-card__extra\">{children}</span>}\n </span>\n </label>\n );\n}\n\nexport interface CheckboxCardProps extends SelectionCardBase, NativeInput {}\n\n/**\n * A checkbox with room to explain itself. Same 20px box as the bare control —\n * the card is a bigger target, not a different decision.\n */\nexport const CheckboxCard = forwardRef<HTMLInputElement, CheckboxCardProps>(\n function CheckboxCard({ title, description, children, className, ...rest }, ref) {\n return (\n <CardBody\n kind=\"checkbox\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n },\n);\n\nexport interface RadioCardProps extends SelectionCardBase, NativeInput {}\n\n/** One of a set of mutually exclusive options, each with its own explanation. */\nexport const RadioCard = forwardRef<HTMLInputElement, RadioCardProps>(function RadioCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"radio\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface SelectionCardGroupProps {\n /** Group label — the question the cards answer. */\n label: string;\n /** Cards per row at full width. Steps down inside a narrow container. */\n columns?: 1 | 2 | 3;\n children: ReactNode;\n}\n\n/** A grid of selection cards under one legend, spaced by the shared Grid. */\nexport function SelectionCardGroup({ label, columns = 2, children }: SelectionCardGroupProps) {\n return (\n <fieldset className=\"ds-selection-card-group\">\n <legend className=\"ds-selection-card-group__label\">{label}</legend>\n <Grid columns={columns} gap
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["forwardRef","Grid","require_components_Grid_index","react","react_jsx_runtime","CardBody","className","inputRef","kind","inputProps","title","description","children","CheckboxCard","rest","ref","RadioCard","SelectionCardGroup","label"],"sources":["../../../src/components/SelectionCard/index.tsx"],"sourcesContent":["import { forwardRef, type InputHTMLAttributes, type ReactNode } from \"react\";\nimport { Grid, type GapSize } from \"../Grid\";\nimport \"./style.css\";\n\ninterface SelectionCardBase {\n /** The commitment, in the user's words. */\n title: ReactNode;\n /** One line on what picking this means. Takes nodes, so a chip or a link can sit inline. */\n description?: ReactNode;\n /** Extra content under the description — a price, a sample, a badge. */\n children?: ReactNode;\n}\n\ntype NativeInput = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\" | \"children\" | \"title\"\n>;\n\nfunction CardBody({\n kind,\n title,\n description,\n children,\n className,\n inputProps,\n inputRef,\n}: SelectionCardBase & {\n kind: \"checkbox\" | \"radio\";\n className?: string;\n inputProps: NativeInput;\n inputRef: React.Ref<HTMLInputElement>;\n}) {\n return (\n <label className={[\"ds-selection-card\", className].filter(Boolean).join(\" \")}>\n <input\n ref={inputRef}\n type={kind}\n data-kind={kind}\n className=\"ds-selection-card__control\"\n {...inputProps}\n />\n <span className=\"ds-selection-card__text\">\n <span className=\"ds-selection-card__title\">{title}</span>\n {description && <span className=\"ds-selection-card__description\">{description}</span>}\n {children && <span className=\"ds-selection-card__extra\">{children}</span>}\n </span>\n </label>\n );\n}\n\nexport interface CheckboxCardProps extends SelectionCardBase, NativeInput {}\n\n/**\n * A checkbox with room to explain itself. Same 20px box as the bare control —\n * the card is a bigger target, not a different decision.\n */\nexport const CheckboxCard = forwardRef<HTMLInputElement, CheckboxCardProps>(\n function CheckboxCard({ title, description, children, className, ...rest }, ref) {\n return (\n <CardBody\n kind=\"checkbox\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n },\n);\n\nexport interface RadioCardProps extends SelectionCardBase, NativeInput {}\n\n/** One of a set of mutually exclusive options, each with its own explanation. */\nexport const RadioCard = forwardRef<HTMLInputElement, RadioCardProps>(function RadioCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"radio\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface SelectionCardGroupProps {\n /** Group label — the question the cards answer. */\n label: string;\n /** Cards per row at full width. Steps down inside a narrow container. */\n columns?: 1 | 2 | 3;\n /** Space between cards in both axes, using Grid's spacing scale. Defaults to `md`. */\n gap?: GapSize;\n children: ReactNode;\n}\n\n/** A grid of selection cards under one legend, spaced by the shared Grid. */\nexport function SelectionCardGroup({ label, columns = 2, gap = \"md\", children }: SelectionCardGroupProps) {\n return (\n <fieldset className=\"ds-selection-card-group\">\n <legend className=\"ds-selection-card-group__label\">{label}</legend>\n <Grid columns={columns} gap={gap} className=\"ds-selection-card-group__grid\">\n {children}\n </Grid>\n </fieldset>\n );\n}\n"],"mappings":"A,8JAkBA,SAASK,EAAS,CAChB,OACA,QACA,cACA,WACA,YACA,aACA,YAMC,CACD,OACE,EAAAD,EAAA,KAAA,CAAC,QAAD,CAAO,UAAW,CAAC,oBAAqBE,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAA3E,SAAA,EACE,EAAAF,EAAA,IAAA,CAAC,QAAD,CACE,IAAKG,EACL,KAAMC,EACN,YAAWA,EACX,UAAU,6BACV,GAAIC,CACL,CAAA,GACD,EAAAL,EAAA,KAAA,CAAC,OAAD,CAAM,UAAU,0BAAhB,SAAA,EACE,EAAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,2BAA4B,SAAAM,CAAY,CAAA,EACvDC,IAAe,EAAAP,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,iCAAkC,SAAAO,CAAkB,CAAA,EACnFC,IAAY,EAAAR,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,2BAA4B,UAAe,CAAA,CACpE,CACD,CAAA,CAAA,C,EAEX,CAQA,IAAaS,GAAA,EAAeb,EAAAA,WAAAA,CAC1B,SAAsB,CAAE,QAAO,cAAa,WAAU,YAAW,GAAGc,GAAQ,EAAK,CAC/E,OACE,EAAAV,EAAA,IAAA,CAACC,EAAD,CACE,KAAK,WACE,QACM,cACF,YACX,WAAYS,EACZ,SAAUC,EAET,UACO,CAAA,CAEd,CACF,EAKaC,GAAA,EAAYhB,EAAAA,WAAAA,CAA6C,SACpE,CAAE,QAAO,cAAa,WAAU,YAAW,GAAGc,GAC9C,EACA,CACA,OACE,EAAAV,EAAA,IAAA,CAACC,EAAD,CACE,KAAK,QACE,QACM,cACF,YACX,WAAYS,EACZ,SAAUC,EAET,UACO,CAAA,CAEd,CAAC,EAaD,SAAgBE,EAAmB,CAAE,QAAO,UAAU,EAAG,MAAM,KAAM,YAAqC,CACxG,OACE,EAAAb,EAAA,KAAA,CAAC,WAAD,CAAU,UAAU,0BAApB,SAAA,EACE,EAAAA,EAAA,IAAA,CAAC,SAAD,CAAQ,UAAU,iCAAkC,SAAAc,CAAc,CAAA,GAClE,EAAAd,EAAA,IAAA,CAACH,EAAAA,KAAD,CAAe,UAAc,MAAK,UAAU,gCACzC,UACG,CAAA,CACE,C,EAEd,C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
import { type GapSize } from "../Grid/index.cjs";
|
|
2
3
|
interface SelectionCardBase {
|
|
3
4
|
/** The commitment, in the user's words. */
|
|
4
5
|
title: ReactNode;
|
|
@@ -24,9 +25,11 @@ export interface SelectionCardGroupProps {
|
|
|
24
25
|
label: string;
|
|
25
26
|
/** Cards per row at full width. Steps down inside a narrow container. */
|
|
26
27
|
columns?: 1 | 2 | 3;
|
|
28
|
+
/** Space between cards in both axes, using Grid's spacing scale. Defaults to `md`. */
|
|
29
|
+
gap?: GapSize;
|
|
27
30
|
children: ReactNode;
|
|
28
31
|
}
|
|
29
32
|
/** A grid of selection cards under one legend, spaced by the shared Grid. */
|
|
30
|
-
export declare function SelectionCardGroup({ label, columns, children }: SelectionCardGroupProps): import("react").JSX.Element;
|
|
33
|
+
export declare function SelectionCardGroup({ label, columns, gap, children }: SelectionCardGroupProps): import("react").JSX.Element;
|
|
31
34
|
export {};
|
|
32
35
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/SelectionCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/SelectionCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,aAAa,CAAC;AAErB,UAAU,iBAAiB;IACzB,2CAA2C;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CACvC,CAAC;AAkCF,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,EAAE,WAAW;CAAG;AAE5E;;;GAGG;AACH,eAAO,MAAM,YAAY,gHAexB,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,iBAAiB,EAAE,WAAW;CAAG;AAEzE,iFAAiF;AACjF,eAAO,MAAM,SAAS,6GAgBpB,CAAC;AAEH,MAAM,WAAW,uBAAuB;IACtC,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,sFAAsF;IACtF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,OAAW,EAAE,GAAU,EAAE,QAAQ,EAAE,EAAE,uBAAuB,+BASvG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
import { type GapSize } from "../Grid/index.js";
|
|
2
3
|
interface SelectionCardBase {
|
|
3
4
|
/** The commitment, in the user's words. */
|
|
4
5
|
title: ReactNode;
|
|
@@ -24,9 +25,11 @@ export interface SelectionCardGroupProps {
|
|
|
24
25
|
label: string;
|
|
25
26
|
/** Cards per row at full width. Steps down inside a narrow container. */
|
|
26
27
|
columns?: 1 | 2 | 3;
|
|
28
|
+
/** Space between cards in both axes, using Grid's spacing scale. Defaults to `md`. */
|
|
29
|
+
gap?: GapSize;
|
|
27
30
|
children: ReactNode;
|
|
28
31
|
}
|
|
29
32
|
/** A grid of selection cards under one legend, spaced by the shared Grid. */
|
|
30
|
-
export declare function SelectionCardGroup({ label, columns, children }: SelectionCardGroupProps): import("react").JSX.Element;
|
|
33
|
+
export declare function SelectionCardGroup({ label, columns, gap, children }: SelectionCardGroupProps): import("react").JSX.Element;
|
|
31
34
|
export {};
|
|
32
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,aAAa,CAAC;AAErB,UAAU,iBAAiB;IACzB,2CAA2C;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CACvC,CAAC;AAkCF,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,EAAE,WAAW;CAAG;AAE5E;;;GAGG;AACH,eAAO,MAAM,YAAY,gHAexB,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,iBAAiB,EAAE,WAAW;CAAG;AAEzE,iFAAiF;AACjF,eAAO,MAAM,SAAS,6GAgBpB,CAAC;AAEH,MAAM,WAAW,uBAAuB;IACtC,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,sFAAsF;IACtF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,OAAW,EAAE,GAAU,EAAE,QAAQ,EAAE,EAAE,uBAAuB,+BASvG"}
|
|
@@ -51,7 +51,7 @@ var a = t(function({ title: e, description: t, children: r, className: a, ...o }
|
|
|
51
51
|
children: r
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
|
-
function s({ label: t, columns: i = 2,
|
|
54
|
+
function s({ label: t, columns: i = 2, gap: a = "md", children: o }) {
|
|
55
55
|
return /* @__PURE__ */ r("fieldset", {
|
|
56
56
|
className: "ds-selection-card-group",
|
|
57
57
|
children: [/* @__PURE__ */ n("legend", {
|
|
@@ -59,9 +59,9 @@ function s({ label: t, columns: i = 2, children: a }) {
|
|
|
59
59
|
children: t
|
|
60
60
|
}), /* @__PURE__ */ n(e, {
|
|
61
61
|
columns: i,
|
|
62
|
-
gap:
|
|
62
|
+
gap: a,
|
|
63
63
|
className: "ds-selection-card-group__grid",
|
|
64
|
-
children:
|
|
64
|
+
children: o
|
|
65
65
|
})]
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["CardBody","className","inputRef","kind","inputProps","title","description","children","CheckboxCard","forwardRef","rest","ref","RadioCard","SelectionCardGroup","label","Grid"],"sources":["../../../src/components/SelectionCard/index.tsx"],"sourcesContent":["import { forwardRef, type InputHTMLAttributes, type ReactNode } from \"react\";\nimport { Grid } from \"../Grid\";\nimport \"./style.css\";\n\ninterface SelectionCardBase {\n /** The commitment, in the user's words. */\n title: ReactNode;\n /** One line on what picking this means. Takes nodes, so a chip or a link can sit inline. */\n description?: ReactNode;\n /** Extra content under the description — a price, a sample, a badge. */\n children?: ReactNode;\n}\n\ntype NativeInput = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\" | \"children\" | \"title\"\n>;\n\nfunction CardBody({\n kind,\n title,\n description,\n children,\n className,\n inputProps,\n inputRef,\n}: SelectionCardBase & {\n kind: \"checkbox\" | \"radio\";\n className?: string;\n inputProps: NativeInput;\n inputRef: React.Ref<HTMLInputElement>;\n}) {\n return (\n <label className={[\"ds-selection-card\", className].filter(Boolean).join(\" \")}>\n <input\n ref={inputRef}\n type={kind}\n data-kind={kind}\n className=\"ds-selection-card__control\"\n {...inputProps}\n />\n <span className=\"ds-selection-card__text\">\n <span className=\"ds-selection-card__title\">{title}</span>\n {description && <span className=\"ds-selection-card__description\">{description}</span>}\n {children && <span className=\"ds-selection-card__extra\">{children}</span>}\n </span>\n </label>\n );\n}\n\nexport interface CheckboxCardProps extends SelectionCardBase, NativeInput {}\n\n/**\n * A checkbox with room to explain itself. Same 20px box as the bare control —\n * the card is a bigger target, not a different decision.\n */\nexport const CheckboxCard = forwardRef<HTMLInputElement, CheckboxCardProps>(\n function CheckboxCard({ title, description, children, className, ...rest }, ref) {\n return (\n <CardBody\n kind=\"checkbox\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n },\n);\n\nexport interface RadioCardProps extends SelectionCardBase, NativeInput {}\n\n/** One of a set of mutually exclusive options, each with its own explanation. */\nexport const RadioCard = forwardRef<HTMLInputElement, RadioCardProps>(function RadioCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"radio\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface SelectionCardGroupProps {\n /** Group label — the question the cards answer. */\n label: string;\n /** Cards per row at full width. Steps down inside a narrow container. */\n columns?: 1 | 2 | 3;\n children: ReactNode;\n}\n\n/** A grid of selection cards under one legend, spaced by the shared Grid. */\nexport function SelectionCardGroup({ label, columns = 2, children }: SelectionCardGroupProps) {\n return (\n <fieldset className=\"ds-selection-card-group\">\n <legend className=\"ds-selection-card-group__label\">{label}</legend>\n <Grid columns={columns} gap
|
|
1
|
+
{"version":3,"file":"index.js","names":["CardBody","className","inputRef","kind","inputProps","title","description","children","CheckboxCard","forwardRef","rest","ref","RadioCard","SelectionCardGroup","label","Grid"],"sources":["../../../src/components/SelectionCard/index.tsx"],"sourcesContent":["import { forwardRef, type InputHTMLAttributes, type ReactNode } from \"react\";\nimport { Grid, type GapSize } from \"../Grid\";\nimport \"./style.css\";\n\ninterface SelectionCardBase {\n /** The commitment, in the user's words. */\n title: ReactNode;\n /** One line on what picking this means. Takes nodes, so a chip or a link can sit inline. */\n description?: ReactNode;\n /** Extra content under the description — a price, a sample, a badge. */\n children?: ReactNode;\n}\n\ntype NativeInput = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\" | \"children\" | \"title\"\n>;\n\nfunction CardBody({\n kind,\n title,\n description,\n children,\n className,\n inputProps,\n inputRef,\n}: SelectionCardBase & {\n kind: \"checkbox\" | \"radio\";\n className?: string;\n inputProps: NativeInput;\n inputRef: React.Ref<HTMLInputElement>;\n}) {\n return (\n <label className={[\"ds-selection-card\", className].filter(Boolean).join(\" \")}>\n <input\n ref={inputRef}\n type={kind}\n data-kind={kind}\n className=\"ds-selection-card__control\"\n {...inputProps}\n />\n <span className=\"ds-selection-card__text\">\n <span className=\"ds-selection-card__title\">{title}</span>\n {description && <span className=\"ds-selection-card__description\">{description}</span>}\n {children && <span className=\"ds-selection-card__extra\">{children}</span>}\n </span>\n </label>\n );\n}\n\nexport interface CheckboxCardProps extends SelectionCardBase, NativeInput {}\n\n/**\n * A checkbox with room to explain itself. Same 20px box as the bare control —\n * the card is a bigger target, not a different decision.\n */\nexport const CheckboxCard = forwardRef<HTMLInputElement, CheckboxCardProps>(\n function CheckboxCard({ title, description, children, className, ...rest }, ref) {\n return (\n <CardBody\n kind=\"checkbox\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n },\n);\n\nexport interface RadioCardProps extends SelectionCardBase, NativeInput {}\n\n/** One of a set of mutually exclusive options, each with its own explanation. */\nexport const RadioCard = forwardRef<HTMLInputElement, RadioCardProps>(function RadioCard(\n { title, description, children, className, ...rest },\n ref,\n) {\n return (\n <CardBody\n kind=\"radio\"\n title={title}\n description={description}\n className={className}\n inputProps={rest}\n inputRef={ref}\n >\n {children}\n </CardBody>\n );\n});\n\nexport interface SelectionCardGroupProps {\n /** Group label — the question the cards answer. */\n label: string;\n /** Cards per row at full width. Steps down inside a narrow container. */\n columns?: 1 | 2 | 3;\n /** Space between cards in both axes, using Grid's spacing scale. Defaults to `md`. */\n gap?: GapSize;\n children: ReactNode;\n}\n\n/** A grid of selection cards under one legend, spaced by the shared Grid. */\nexport function SelectionCardGroup({ label, columns = 2, gap = \"md\", children }: SelectionCardGroupProps) {\n return (\n <fieldset className=\"ds-selection-card-group\">\n <legend className=\"ds-selection-card-group__label\">{label}</legend>\n <Grid columns={columns} gap={gap} className=\"ds-selection-card-group__grid\">\n {children}\n </Grid>\n </fieldset>\n );\n}\n"],"mappings":";;;;AAkBA,SAASA,EAAS,EAChB,SACA,UACA,gBACA,aACA,cACA,eACA,eAMC;CACD,OACE,kBAAC,SAAD;EAAO,WAAW,CAAC,qBAAqBC,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAA3E,UAAA,CACE,kBAAC,SAAD;GACE,KAAKC;GACL,MAAMC;GACN,aAAWA;GACX,WAAU;GACV,GAAIC;EACL,CAAA,GACD,kBAAC,QAAD;GAAM,WAAU;GAAhB,UAAA;IACE,kBAAC,QAAD;KAAM,WAAU;KAA4B,UAAAC;IAAY,CAAA;IACvDC,KAAe,kBAAC,QAAD;KAAM,WAAU;KAAkC,UAAAA;IAAkB,CAAA;IACnFC,KAAY,kBAAC,QAAD;KAAM,WAAU;KAA4B;IAAe,CAAA;GACpE;EACD,CAAA,CAAA;;AAEX;AAQA,IAAaC,IAAeC,EAC1B,SAAsB,EAAE,UAAO,gBAAa,aAAU,cAAW,GAAGC,KAAQ,GAAK;CAC/E,OACE,kBAACV,GAAD;EACE,MAAK;EACE;EACM;EACF;EACX,YAAYU;EACZ,UAAUC;EAET;CACO,CAAA;AAEd,CACF,GAKaC,IAAYH,EAA6C,SACpE,EAAE,UAAO,gBAAa,aAAU,cAAW,GAAGC,KAC9C,GACA;CACA,OACE,kBAACV,GAAD;EACE,MAAK;EACE;EACM;EACF;EACX,YAAYU;EACZ,UAAUC;EAET;CACO,CAAA;AAEd,CAAC;AAaD,SAAgBE,EAAmB,EAAE,UAAO,aAAU,GAAG,SAAM,MAAM,eAAqC;CACxG,OACE,kBAAC,YAAD;EAAU,WAAU;EAApB,UAAA,CACE,kBAAC,UAAD;GAAQ,WAAU;GAAkC,UAAAC;EAAc,CAAA,GAClE,kBAACC,GAAD;GAAe;GAAc;GAAK,WAAU;GACzC;EACG,CAAA,CACE;;AAEd"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunks/Icon-CWsA1W83.cjs"),t=require("./components/Button/index.cjs"),n=require("./components/Drawer/index.cjs"),r=require("./components/SideNav/index.cjs"),i=require("./components/TopNav/index.cjs"),a=require("./components/AppShell/index.cjs"),o=require("./components/ButtonGroup/index.cjs"),s=require("./components/Field/index.cjs"),c=require("./components/Modal/index.cjs"),l=require("./components/TextField/index.cjs"),u=require("./chunks/RichTextEditor-BxtlbjXj.cjs"),d=require("./components/Badge/index.cjs"),f=require("./components/FieldAffix/index.cjs"),p=require("./components/SearchField/index.cjs"),m=require("./components/SortableList/index.cjs"),h=require("./components/EntryPicker/index.cjs"),g=require("./components/NumberField/index.cjs"),_=require("./components/
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunks/Icon-CWsA1W83.cjs"),t=require("./components/Button/index.cjs"),n=require("./components/Drawer/index.cjs"),r=require("./components/SideNav/index.cjs"),i=require("./components/TopNav/index.cjs"),a=require("./components/AppShell/index.cjs"),o=require("./components/ButtonGroup/index.cjs"),s=require("./components/Field/index.cjs"),c=require("./components/Modal/index.cjs"),l=require("./components/TextField/index.cjs"),u=require("./chunks/RichTextEditor-BxtlbjXj.cjs"),d=require("./components/Badge/index.cjs"),f=require("./components/FieldAffix/index.cjs"),p=require("./components/SearchField/index.cjs"),m=require("./components/SortableList/index.cjs"),h=require("./components/EntryPicker/index.cjs"),g=require("./components/NumberField/index.cjs"),_=require("./components/Popover/index.cjs"),v=require("./components/Select/index.cjs"),y=require("./components/Switch/index.cjs"),b=require("./chunks/FormEditor-8bz3pOdP.cjs"),x=require("./chunks/Board-BLhB5_xx.cjs"),S=require("./components/Avatar/index.cjs"),C=require("./components/Grid/index.cjs"),w=require("./components/Choice/index.cjs"),T=require("./components/Table/index.cjs"),E=require("./components/Menu/index.cjs"),D=require("./components/Toast/index.cjs"),O=require("./components/Skeleton/index.cjs"),k=require("./components/SubNav/index.cjs"),A=require("./components/SelectionCard/index.cjs"),j=require("./components/Stepper/index.cjs"),M=require("./components/AssetCard/index.cjs"),N=require("./components/AssetGrid/index.cjs"),P=require("./components/Slider/index.cjs"),F=require("./components/ImageCropper/index.cjs"),I=require("./components/Container/index.cjs"),L=require("./components/DatePicker/index.cjs"),R=require("./components/TagsInput/index.cjs"),z=require("./components/Time/index.cjs"),B=require("./components/Pagination/index.cjs");exports.AppShell=a.AppShell,exports.AssetCard=M.AssetCard,exports.AssetTile=M.AssetCard,exports.AssetCardSkeleton=M.AssetCardSkeleton,exports.AssetTileSkeleton=M.AssetCardSkeleton,exports.AssetGrid=N.AssetGrid,exports.AssetGridEmpty=N.AssetGridEmpty,exports.Avatar=S.Avatar,exports.AvatarGroup=S.AvatarGroup,exports.Badge=d.Badge,exports.Board=x.t,exports.BoardCard=x.n,exports.BoardColumn=x.r,exports.Button=t.Button,exports.ButtonGroup=o.ButtonGroup,exports.Calendar=L.Calendar,exports.Checkbox=w.Checkbox,exports.CheckboxCard=A.CheckboxCard,exports.ChoiceGroup=w.ChoiceGroup,exports.Container=I.Container,exports.DateField=L.DateField,exports.DateRangeField=L.DateRangeField,exports.Drawer=n.Drawer,exports.EntryPicker=h.EntryPicker,exports.Field=s.Field,exports.FieldAffix=f.FieldAffix,exports.FormEditor=b.t,exports.Grid=C.Grid,exports.GridItem=C.GridItem,exports.Icon=e.t,exports.ImageCropper=F.ImageCropper,exports.Menu=E.Menu,exports.MenuItem=E.MenuItem,exports.MenuLabel=E.MenuLabel,exports.MenuSeparator=E.MenuSeparator,exports.Modal=c.Modal,exports.NumberField=g.NumberField,exports.NumberRangeField=g.NumberRangeField,exports.Pagination=B.Pagination,exports.Popover=_.Popover,exports.Radio=w.Radio,exports.RadioCard=A.RadioCard,exports.RangeSlider=P.RangeSlider,exports.RichTextEditor=u.t,exports.SearchField=p.SearchField,exports.Select=v.Select,exports.SelectionCardGroup=A.SelectionCardGroup,exports.SideNav=r.SideNav,exports.SideNavFooter=r.SideNavFooter,exports.SideNavHeader=r.SideNavHeader,exports.SideNavItem=r.SideNavItem,exports.SideNavSection=r.SideNavSection,exports.Skeleton=O.Skeleton,exports.SkeletonText=O.SkeletonText,exports.Slider=P.Slider,exports.SortableList=m.SortableList,exports.SortableListItem=m.SortableListItem,exports.Stack=C.Stack,exports.Stepper=j.Stepper,exports.SubNav=k.SubNav,exports.SubNavButton=k.SubNavButton,exports.SubNavItem=k.SubNavItem,exports.Switch=y.Switch,exports.Table=T.Table,exports.TableBody=T.TableBody,exports.TableCell=T.TableCell,exports.TableEmpty=T.TableEmpty,exports.TableFrame=T.TableFrame,exports.TableHead=T.TableHead,exports.TableHeaderCell=T.TableHeaderCell,exports.TableRow=T.TableRow,exports.TableToolbar=T.TableToolbar,exports.TagsInput=R.TagsInput,exports.TextArea=l.TextArea,exports.TextField=l.TextField,exports.Time=z.Time,exports.Toast=D.Toast,exports.ToastProvider=D.ToastProvider,exports.TopNav=i.TopNav,exports.TopNavItem=i.TopNavItem,exports.cropToBlob=F.cropToBlob,exports.formatAbsoluteDate=z.formatAbsoluteDate,exports.formatAbsoluteTime=z.formatAbsoluteTime,exports.formatIsoDate=L.formatIsoDate,exports.formatRelativeTime=z.formatRelativeTime,exports.iconNames=e.n,exports.icons=e.r,exports.useSideNavCollapsed=r.useSideNavCollapsed,exports.useToast=D.useToast,exports.validateFormValues=b.n;
|
package/dist/index.d.cts
CHANGED
|
@@ -6,8 +6,8 @@ export { ButtonGroup } from "./components/ButtonGroup/index.cjs";
|
|
|
6
6
|
export type { ButtonGroupProps, ButtonGroupOrientation } from "./components/ButtonGroup/index.cjs";
|
|
7
7
|
export { RichTextEditor } from "./components/RichTextEditor/index.cjs";
|
|
8
8
|
export type { RichTextEditorProps, RichTextEditorSize, RichTextDocument } from "./components/RichTextEditor/index.cjs";
|
|
9
|
-
export {
|
|
10
|
-
export type {
|
|
9
|
+
export { FormEditor, validateFormValues } from "./components/FormEditor/index.cjs";
|
|
10
|
+
export type { FormEditorProps, FormChange, AssetValue, FormField, FormSchema, FormErrors, FormFieldValue, FormValues, ReferenceValue } from "./components/FormEditor/index.cjs";
|
|
11
11
|
export { Board, BoardColumn, BoardCard } from "./components/Board/index.cjs";
|
|
12
12
|
export type { BoardProps, BoardColumnProps, BoardCardProps, BoardMove, BoardColumnMove } from "./components/Board/index.cjs";
|
|
13
13
|
export { SortableList, SortableListItem } from "./components/SortableList/index.cjs";
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE7G,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAA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,mBAAmB,EACnB,cAAc,EACd,OAAO,GACR,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE7F,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACrG,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export { ButtonGroup } from "./components/ButtonGroup/index.js";
|
|
|
6
6
|
export type { ButtonGroupProps, ButtonGroupOrientation } from "./components/ButtonGroup/index.js";
|
|
7
7
|
export { RichTextEditor } from "./components/RichTextEditor/index.js";
|
|
8
8
|
export type { RichTextEditorProps, RichTextEditorSize, RichTextDocument } from "./components/RichTextEditor/index.js";
|
|
9
|
-
export {
|
|
10
|
-
export type {
|
|
9
|
+
export { FormEditor, validateFormValues } from "./components/FormEditor/index.js";
|
|
10
|
+
export type { FormEditorProps, FormChange, AssetValue, FormField, FormSchema, FormErrors, FormFieldValue, FormValues, ReferenceValue } from "./components/FormEditor/index.js";
|
|
11
11
|
export { Board, BoardColumn, BoardCard } from "./components/Board/index.js";
|
|
12
12
|
export type { BoardProps, BoardColumnProps, BoardCardProps, BoardMove, BoardColumnMove } from "./components/Board/index.js";
|
|
13
13
|
export { SortableList, SortableListItem } from "./components/SortableList/index.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE7G,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC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EACd,OAAO,GACR,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE7F,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACrG,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,28 +15,28 @@ import { SearchField as b } from "./components/SearchField/index.js";
|
|
|
15
15
|
import { SortableList as x, SortableListItem as S } from "./components/SortableList/index.js";
|
|
16
16
|
import { EntryPicker as C } from "./components/EntryPicker/index.js";
|
|
17
17
|
import { NumberField as w, NumberRangeField as T } from "./components/NumberField/index.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
18
|
+
import { Popover as E } from "./components/Popover/index.js";
|
|
19
|
+
import { Select as D } from "./components/Select/index.js";
|
|
20
|
+
import { Switch as O } from "./components/Switch/index.js";
|
|
21
|
+
import { n as k, t as A } from "./chunks/FormEditor-DuW8x78Y.js";
|
|
22
|
+
import { n as j, r as M, t as N } from "./chunks/Board-BTFSzn6c.js";
|
|
23
|
+
import { Avatar as P, AvatarGroup as F } from "./components/Avatar/index.js";
|
|
24
|
+
import { Grid as I, GridItem as L, Stack as R } from "./components/Grid/index.js";
|
|
25
|
+
import { Checkbox as z, ChoiceGroup as B, Radio as V } from "./components/Choice/index.js";
|
|
26
|
+
import { Table as H, TableBody as U, TableCell as W, TableEmpty as ne, TableFrame as G, TableHead as K, TableHeaderCell as q, TableRow as J, TableToolbar as Y } from "./components/Table/index.js";
|
|
27
|
+
import { Menu as X, MenuItem as Z, MenuLabel as re, MenuSeparator as ie } from "./components/Menu/index.js";
|
|
28
|
+
import { Toast as ae, ToastProvider as oe, useToast as se } from "./components/Toast/index.js";
|
|
29
|
+
import { Skeleton as ce, SkeletonText as le } from "./components/Skeleton/index.js";
|
|
30
|
+
import { SubNav as ue, SubNavButton as de, SubNavItem as fe } from "./components/SubNav/index.js";
|
|
31
|
+
import { CheckboxCard as pe, RadioCard as me, SelectionCardGroup as he } from "./components/SelectionCard/index.js";
|
|
32
|
+
import { Stepper as ge } from "./components/Stepper/index.js";
|
|
32
33
|
import { AssetCard as Q, AssetCardSkeleton as $ } from "./components/AssetCard/index.js";
|
|
33
|
-
import { AssetGrid as
|
|
34
|
-
import { RangeSlider as
|
|
35
|
-
import { ImageCropper as
|
|
36
|
-
import { Container as
|
|
37
|
-
import { Select as Ce } from "./components/Select/index.js";
|
|
34
|
+
import { AssetGrid as _e, AssetGridEmpty as ve } from "./components/AssetGrid/index.js";
|
|
35
|
+
import { RangeSlider as ye, Slider as be } from "./components/Slider/index.js";
|
|
36
|
+
import { ImageCropper as xe, cropToBlob as Se } from "./components/ImageCropper/index.js";
|
|
37
|
+
import { Container as Ce } from "./components/Container/index.js";
|
|
38
38
|
import { Calendar as we, DateField as Te, DateRangeField as Ee, formatIsoDate as De } from "./components/DatePicker/index.js";
|
|
39
39
|
import { TagsInput as Oe } from "./components/TagsInput/index.js";
|
|
40
40
|
import { Time as ke, formatAbsoluteDate as Ae, formatAbsoluteTime as je, formatRelativeTime as Me } from "./components/Time/index.js";
|
|
41
41
|
import { Pagination as Ne } from "./components/Pagination/index.js";
|
|
42
|
-
export { d as AppShell, Q as AssetCard, Q as AssetTile, $ as AssetCardSkeleton, $ as AssetTileSkeleton,
|
|
42
|
+
export { d as AppShell, Q as AssetCard, Q as AssetTile, $ as AssetCardSkeleton, $ as AssetTileSkeleton, _e as AssetGrid, ve as AssetGridEmpty, P as Avatar, F as AvatarGroup, v as Badge, N as Board, j as BoardCard, M as BoardColumn, te as Button, f as ButtonGroup, we as Calendar, z as Checkbox, pe as CheckboxCard, B as ChoiceGroup, Ce as Container, Te as DateField, Ee as DateRangeField, n as Drawer, C as EntryPicker, p as Field, y as FieldAffix, A as FormEditor, I as Grid, L as GridItem, ee as Icon, xe as ImageCropper, X as Menu, Z as MenuItem, re as MenuLabel, ie as MenuSeparator, m as Modal, w as NumberField, T as NumberRangeField, Ne as Pagination, E as Popover, V as Radio, me as RadioCard, ye as RangeSlider, _ as RichTextEditor, b as SearchField, D as Select, he as SelectionCardGroup, r as SideNav, i as SideNavFooter, a as SideNavHeader, o as SideNavItem, s as SideNavSection, ce as Skeleton, le as SkeletonText, be as Slider, x as SortableList, S as SortableListItem, R as Stack, ge as Stepper, ue as SubNav, de as SubNavButton, fe as SubNavItem, O as Switch, H as Table, U as TableBody, W as TableCell, ne as TableEmpty, G as TableFrame, K as TableHead, q as TableHeaderCell, J as TableRow, Y as TableToolbar, Oe as TagsInput, h as TextArea, g as TextField, ke as Time, ae as Toast, oe as ToastProvider, l as TopNav, u as TopNavItem, Se as cropToBlob, Ae as formatAbsoluteDate, je as formatAbsoluteTime, De as formatIsoDate, Me as formatRelativeTime, e as iconNames, t as icons, c as useSideNavCollapsed, se as useToast, k as validateFormValues };
|
package/dist/styles.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@import "./components/DatePicker/style.css";
|
|
14
14
|
@import "./components/Drawer/style.css";
|
|
15
15
|
@import "./components/EntryPicker/style.css";
|
|
16
|
-
@import "./components/
|
|
16
|
+
@import "./components/FormEditor/style.css";
|
|
17
17
|
@import "./components/Field/style.css";
|
|
18
18
|
@import "./components/FieldAffix/style.css";
|
|
19
19
|
@import "./components/Grid/style.css";
|
package/dist/tokens.css
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--font-weight-semibold: 600;
|
|
13
13
|
--font-weight-bold: 700;
|
|
14
14
|
|
|
15
|
-
--font-size-xs: 0.75rem; /* 12 —
|
|
15
|
+
--font-size-xs: 0.75rem; /* 12 — badge counts, micro-labels */
|
|
16
16
|
--font-size-sm: 0.875rem; /* 14 — buttons, secondary cells */
|
|
17
17
|
--font-size-md: 1rem; /* 16 — body */
|
|
18
18
|
--font-size-md-lg: 1.0625rem; /* 17 — primary table cell */
|
|
@@ -117,11 +117,21 @@
|
|
|
117
117
|
/* Hard border. Buttons, fields, checkboxes and badges all carry a constant
|
|
118
118
|
* 2px stroke; state stays on the fill so nothing shifts on interaction.
|
|
119
119
|
* Deliberately thinner than --frame-width: the container must outrank its
|
|
120
|
-
* contents. Controls stroke in --control-border-color; badges
|
|
121
|
-
*
|
|
120
|
+
* contents. Controls stroke in --control-border-color; badges show their
|
|
121
|
+
* tone stroke on outline only, with transparent or fill-matched borders
|
|
122
|
+
* on soft and solid appearances. */
|
|
122
123
|
--control-border-width: 2px;
|
|
123
124
|
--control-border-color: var(--color-text);
|
|
124
125
|
--badge-border-width: 2px;
|
|
126
|
+
--badge-radius: var(--field-radius);
|
|
127
|
+
--badge-font-size: 0.6875rem; /* 11 */
|
|
128
|
+
--badge-line-height: 0.875rem; /* 14 */
|
|
129
|
+
--badge-tracking: var(--table-head-tracking);
|
|
130
|
+
--badge-pad-block: 3px;
|
|
131
|
+
--badge-gap: 6px;
|
|
132
|
+
--badge-marker-size: 6px;
|
|
133
|
+
--badge-count-min: 22px;
|
|
134
|
+
--badge-count-pad-inline: 6px;
|
|
125
135
|
|
|
126
136
|
--table-head-size: 0.8125rem; /* 13 */
|
|
127
137
|
--table-head-weight: var(--font-weight-bold);
|
|
@@ -245,7 +255,7 @@
|
|
|
245
255
|
redefining the semantic tones above. Six states, no seventh. */
|
|
246
256
|
--status-draft: var(--color-border-strong);
|
|
247
257
|
--status-draft-text: var(--color-text-muted);
|
|
248
|
-
--status-draft-soft: var(--color-surface-
|
|
258
|
+
--status-draft-soft: var(--color-surface-subtle);
|
|
249
259
|
--status-scheduled: var(--color-primary);
|
|
250
260
|
--status-scheduled-soft: var(--color-primary-soft);
|
|
251
261
|
--status-published: var(--color-success);
|
|
@@ -255,7 +265,7 @@
|
|
|
255
265
|
--status-unpublished: var(--color-danger);
|
|
256
266
|
--status-unpublished-soft: var(--color-danger-soft);
|
|
257
267
|
--status-archived: var(--color-border);
|
|
258
|
-
--status-archived-text: color-mix(in srgb, var(--color-text-muted)
|
|
268
|
+
--status-archived-text: color-mix(in srgb, var(--color-text-muted) 90%, var(--color-surface));
|
|
259
269
|
--status-archived-soft: transparent;
|
|
260
270
|
/* Status tabs are interactive, so each soft needs its two further steps.
|
|
261
271
|
* Four inherit their tone's ladder; draft and archived have no tone of
|
package/package.json
CHANGED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { Field as e } from "../components/Field/index.js";
|
|
2
|
-
import { TextArea as t, TextField as n } from "../components/TextField/index.js";
|
|
3
|
-
import { n as r, r as i, t as a } from "./RichTextEditor-Dnx4i7bQ.js";
|
|
4
|
-
import { EntryPicker as o } from "../components/EntryPicker/index.js";
|
|
5
|
-
import { NumberField as s } from "../components/NumberField/index.js";
|
|
6
|
-
import { Switch as c } from "../components/Switch/index.js";
|
|
7
|
-
import { useState as l } from "react";
|
|
8
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
9
|
-
//#region src/components/EntryEditor/model.ts
|
|
10
|
-
var d = /* @__PURE__ */ new Set([
|
|
11
|
-
"shortText",
|
|
12
|
-
"longText",
|
|
13
|
-
"richText",
|
|
14
|
-
"number",
|
|
15
|
-
"boolean",
|
|
16
|
-
"dateTime",
|
|
17
|
-
"asset",
|
|
18
|
-
"reference"
|
|
19
|
-
]);
|
|
20
|
-
function f(e) {
|
|
21
|
-
let t = /* @__PURE__ */ new Set();
|
|
22
|
-
for (let n of e.fields) {
|
|
23
|
-
if (!n.id?.trim() || t.has(n.id)) throw Error("Content model field IDs must be nonempty and unique.");
|
|
24
|
-
if (!d.has(n.type)) throw Error(`Unsupported content field type: ${n.type}`);
|
|
25
|
-
t.add(n.id);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function p(e) {
|
|
29
|
-
if (typeof e != "string") return;
|
|
30
|
-
let t = /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?(?:Z|\+00:00)$/.exec(e);
|
|
31
|
-
if (!t) return;
|
|
32
|
-
let n = `${t[1]}:${t[2] ?? "00"}.${(t[3] ?? "").padEnd(3, "0")}Z`, r = new Date(n);
|
|
33
|
-
if (Number.isFinite(r.getTime()) && r.toISOString() === n) return n;
|
|
34
|
-
}
|
|
35
|
-
function m(e, t) {
|
|
36
|
-
return !!e && typeof e == "object" && t in e && typeof e[t] == "string" && e[t].trim().length > 0;
|
|
37
|
-
}
|
|
38
|
-
function h(e) {
|
|
39
|
-
return !!e.text?.trim() || e.type === "horizontalRule" || !!e.content?.some(h);
|
|
40
|
-
}
|
|
41
|
-
function g(e) {
|
|
42
|
-
return `${e.label} is required.`;
|
|
43
|
-
}
|
|
44
|
-
function _(e, t) {
|
|
45
|
-
if (typeof t != "string") return "Enter text.";
|
|
46
|
-
if (e.required && !t.trim()) return g(e);
|
|
47
|
-
}
|
|
48
|
-
function v(e, t) {
|
|
49
|
-
let n = r(t);
|
|
50
|
-
if (n) return n;
|
|
51
|
-
if (e.required && !h(t)) return g(e);
|
|
52
|
-
}
|
|
53
|
-
function y(e, t) {
|
|
54
|
-
let n = e.type === "asset" ? "assetId" : "entryId";
|
|
55
|
-
if (!(e.multiple ? Array.isArray(t) && t.every((e) => m(e, n)) : m(t, n))) return e.multiple ? `Choose a list of ${e.type === "asset" ? "assets" : "entries"}.` : `Choose an ${e.type === "asset" ? "asset" : "entry"}.`;
|
|
56
|
-
if (e.required && Array.isArray(t) && t.length === 0) return g(e);
|
|
57
|
-
}
|
|
58
|
-
var b = {
|
|
59
|
-
shortText: _,
|
|
60
|
-
longText: _,
|
|
61
|
-
richText: v,
|
|
62
|
-
number: (e, t) => typeof t == "number" && Number.isFinite(t) ? void 0 : "Enter a finite number.",
|
|
63
|
-
boolean: (e, t) => typeof t == "boolean" ? void 0 : "Choose a boolean value.",
|
|
64
|
-
dateTime: (e, t) => p(t) ? void 0 : "Enter a valid UTC date and time.",
|
|
65
|
-
asset: y,
|
|
66
|
-
reference: y
|
|
67
|
-
};
|
|
68
|
-
function x(e, t) {
|
|
69
|
-
return f(e), Object.fromEntries(e.fields.flatMap((e) => {
|
|
70
|
-
let n = Object.hasOwn(t, e.id) ? t[e.id] : void 0, r = n === void 0 ? e.required ? g(e) : void 0 : b[e.type](e, n);
|
|
71
|
-
return r ? [[e.id, r]] : [];
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/components/EntryEditor/index.tsx
|
|
76
|
-
function S(e, t) {
|
|
77
|
-
let n = e.type === "asset" ? "assetId" : "entryId";
|
|
78
|
-
return (Array.isArray(t) ? t : t === void 0 ? [] : [t]).flatMap((e) => {
|
|
79
|
-
if (!e || typeof e != "object" || !(n in e)) return [];
|
|
80
|
-
let t = e[n];
|
|
81
|
-
return typeof t == "string" ? [t] : [];
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
function C(e, t) {
|
|
85
|
-
if (e.type === "asset") {
|
|
86
|
-
let n = t.map((e) => ({ assetId: e }));
|
|
87
|
-
return e.multiple ? n : n[0];
|
|
88
|
-
}
|
|
89
|
-
let n = t.map((e) => ({ entryId: e }));
|
|
90
|
-
return e.multiple ? n : n[0];
|
|
91
|
-
}
|
|
92
|
-
function w({ field: e, stored: r, items: l, isDisabled: d, accessibility: { required: f, ...m }, onChange: h }) {
|
|
93
|
-
switch (e.type) {
|
|
94
|
-
case "shortText":
|
|
95
|
-
case "longText": {
|
|
96
|
-
let i = e.type === "shortText" ? n : t;
|
|
97
|
-
return /* @__PURE__ */ u(i, {
|
|
98
|
-
...m,
|
|
99
|
-
required: f,
|
|
100
|
-
disabled: d,
|
|
101
|
-
placeholder: e.placeholder,
|
|
102
|
-
value: typeof r == "string" ? r : "",
|
|
103
|
-
onChange: (e) => h(e.target.value)
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
case "number": return /* @__PURE__ */ u(s, {
|
|
107
|
-
...m,
|
|
108
|
-
required: f,
|
|
109
|
-
isDisabled: d,
|
|
110
|
-
placeholder: e.placeholder,
|
|
111
|
-
step: "any",
|
|
112
|
-
hasSteppers: !1,
|
|
113
|
-
value: typeof r == "number" && Number.isFinite(r) ? r : "",
|
|
114
|
-
onValueChange: (e) => {
|
|
115
|
-
(e === "" || Number.isFinite(e)) && h(e === "" ? void 0 : e);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
case "boolean": return /* @__PURE__ */ u(c, {
|
|
119
|
-
...m,
|
|
120
|
-
isDisabled: d,
|
|
121
|
-
isSelected: r === !0,
|
|
122
|
-
onSelectedChange: h
|
|
123
|
-
});
|
|
124
|
-
case "dateTime": return /* @__PURE__ */ u(n, {
|
|
125
|
-
...m,
|
|
126
|
-
required: f,
|
|
127
|
-
disabled: d,
|
|
128
|
-
type: "datetime-local",
|
|
129
|
-
step: "0.001",
|
|
130
|
-
value: p(r)?.slice(0, -1) ?? "",
|
|
131
|
-
onChange: (e) => h(p(`${e.target.value}Z`))
|
|
132
|
-
});
|
|
133
|
-
case "richText": return /* @__PURE__ */ u(a, {
|
|
134
|
-
...m,
|
|
135
|
-
label: e.label,
|
|
136
|
-
isRequired: f,
|
|
137
|
-
isDisabled: d,
|
|
138
|
-
placeholder: e.placeholder,
|
|
139
|
-
format: "json",
|
|
140
|
-
value: r === void 0 ? i : r,
|
|
141
|
-
onChange: h
|
|
142
|
-
});
|
|
143
|
-
case "asset":
|
|
144
|
-
case "reference": return /* @__PURE__ */ u("div", {
|
|
145
|
-
...m,
|
|
146
|
-
role: "group",
|
|
147
|
-
children: /* @__PURE__ */ u(o, {
|
|
148
|
-
items: l,
|
|
149
|
-
value: S(e, r),
|
|
150
|
-
label: e.type === "asset" ? "Assets" : "Entries",
|
|
151
|
-
addLabel: `Choose ${e.label}`,
|
|
152
|
-
mode: e.multiple ? "multiple" : "single",
|
|
153
|
-
isDisabled: d,
|
|
154
|
-
onValueChange: (t) => h(C(e, t))
|
|
155
|
-
})
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function T({ model: t, value: n, defaultValue: r = {}, onValueChange: i, pickerItems: a = {}, errors: o = {}, isDisabled: s = !1, showAllErrors: c = !1, className: d, ...f }) {
|
|
160
|
-
let [p, m] = l(r), [h, g] = l(() => /* @__PURE__ */ new Set()), _ = n ?? p, v = x(t, _), y = (e, t) => {
|
|
161
|
-
if (s) return;
|
|
162
|
-
let r = { ..._ };
|
|
163
|
-
t === void 0 ? delete r[e] : r[e] = t, n === void 0 && m(r), g((t) => new Set(t).add(e)), i?.(r);
|
|
164
|
-
};
|
|
165
|
-
return /* @__PURE__ */ u("div", {
|
|
166
|
-
className: ["ds-entry-editor", d].filter(Boolean).join(" "),
|
|
167
|
-
...f,
|
|
168
|
-
children: t.fields.map((t) => {
|
|
169
|
-
let n = Object.hasOwn(_, t.id) ? _[t.id] : void 0, r = t.type === "asset" || t.type === "reference", i = t.type === "dateTime" ? `${t.label} (UTC)` : t.label, l = o[t.id] ?? (c || h.has(t.id) ? v[t.id] : void 0);
|
|
170
|
-
return /* @__PURE__ */ u(e, {
|
|
171
|
-
label: i,
|
|
172
|
-
hint: t.hint,
|
|
173
|
-
error: l,
|
|
174
|
-
isRequired: t.required,
|
|
175
|
-
isGroup: r,
|
|
176
|
-
children: (e) => /* @__PURE__ */ u(w, {
|
|
177
|
-
field: t,
|
|
178
|
-
stored: n,
|
|
179
|
-
items: a[t.id] ?? [],
|
|
180
|
-
isDisabled: s,
|
|
181
|
-
accessibility: e,
|
|
182
|
-
onChange: (e) => y(t.id, e)
|
|
183
|
-
})
|
|
184
|
-
}, t.id);
|
|
185
|
-
})
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
export { x as n, T as t };
|
|
190
|
-
|
|
191
|
-
//# sourceMappingURL=EntryEditor-CcyYtH74.js.map
|