@namroodinc/liquid-editorial 0.3.2 → 0.4.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 +4 -0
- package/README.md +1576 -180
- package/UPGRADING.md +215 -0
- package/dist/chunks/ColourField-CJicr3OT.cjs +2 -0
- package/dist/chunks/ColourField-CJicr3OT.cjs.map +1 -0
- package/dist/chunks/{ColourField-C2YDshDg.js → ColourField-DjHRiFDU.js} +167 -162
- package/dist/chunks/ColourField-DjHRiFDU.js.map +1 -0
- package/dist/chunks/DatePicker-D_6CQpUd.js +296 -0
- package/dist/chunks/DatePicker-D_6CQpUd.js.map +1 -0
- package/dist/chunks/DatePicker-aSlYLjtW.cjs +2 -0
- package/dist/chunks/DatePicker-aSlYLjtW.cjs.map +1 -0
- package/dist/chunks/FormEditor-M7tNidFo.js +584 -0
- package/dist/chunks/FormEditor-M7tNidFo.js.map +1 -0
- package/dist/chunks/FormEditor-UzbPdiJo.cjs +2 -0
- package/dist/chunks/FormEditor-UzbPdiJo.cjs.map +1 -0
- package/dist/chunks/Slider-k8weRl34.cjs +2 -0
- package/dist/chunks/Slider-k8weRl34.cjs.map +1 -0
- package/dist/chunks/Slider-vdMFLX-H.js +174 -0
- package/dist/chunks/Slider-vdMFLX-H.js.map +1 -0
- package/dist/chunks/dialogFocus-B9iqKl3I.cjs +2 -0
- package/dist/chunks/dialogFocus-B9iqKl3I.cjs.map +1 -0
- package/dist/chunks/dialogFocus-BFoyeTpA.js +48 -0
- package/dist/chunks/dialogFocus-BFoyeTpA.js.map +1 -0
- package/dist/components/Choice/index.cjs +1 -1
- package/dist/components/Choice/index.cjs.map +1 -1
- package/dist/components/Choice/index.d.cts.map +1 -1
- package/dist/components/Choice/index.d.ts.map +1 -1
- package/dist/components/Choice/index.js +2 -0
- package/dist/components/Choice/index.js.map +1 -1
- package/dist/components/ColourField/focus.d.cts +0 -1
- package/dist/components/ColourField/focus.d.cts.map +1 -1
- package/dist/components/ColourField/focus.d.ts +0 -1
- package/dist/components/ColourField/focus.d.ts.map +1 -1
- package/dist/components/ColourField/index.cjs +1 -1
- package/dist/components/ColourField/index.d.cts.map +1 -1
- package/dist/components/ColourField/index.d.ts.map +1 -1
- package/dist/components/ColourField/index.js +1 -1
- package/dist/components/ColourField/value.d.cts +6 -0
- package/dist/components/ColourField/value.d.cts.map +1 -1
- package/dist/components/ColourField/value.d.ts +6 -0
- package/dist/components/ColourField/value.d.ts.map +1 -1
- package/dist/components/DatePicker/date.d.cts +9 -0
- package/dist/components/DatePicker/date.d.cts.map +1 -0
- package/dist/components/DatePicker/date.d.ts +9 -0
- package/dist/components/DatePicker/date.d.ts.map +1 -0
- package/dist/components/DatePicker/index.cjs +1 -2
- package/dist/components/DatePicker/index.d.cts +9 -6
- package/dist/components/DatePicker/index.d.cts.map +1 -1
- package/dist/components/DatePicker/index.d.ts +9 -6
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -259
- package/dist/components/DatePicker/style.css +5 -0
- package/dist/components/Drawer/index.cjs +1 -1
- package/dist/components/Drawer/index.cjs.map +1 -1
- package/dist/components/Drawer/index.d.cts.map +1 -1
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +69 -73
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/EditLayout/index.cjs +1 -1
- package/dist/components/EditLayout/index.cjs.map +1 -1
- package/dist/components/EditLayout/index.d.cts.map +1 -1
- package/dist/components/EditLayout/index.d.ts.map +1 -1
- package/dist/components/EditLayout/index.js +68 -55
- package/dist/components/EditLayout/index.js.map +1 -1
- package/dist/components/Field/style.css +20 -0
- package/dist/components/FormEditor/README.md +375 -0
- package/dist/components/FormEditor/additional-control.d.cts +6 -0
- package/dist/components/FormEditor/additional-control.d.cts.map +1 -0
- package/dist/components/FormEditor/additional-control.d.ts +6 -0
- package/dist/components/FormEditor/additional-control.d.ts.map +1 -0
- package/dist/components/FormEditor/choice-control.d.cts +6 -0
- package/dist/components/FormEditor/choice-control.d.cts.map +1 -0
- package/dist/components/FormEditor/choice-control.d.ts +6 -0
- package/dist/components/FormEditor/choice-control.d.ts.map +1 -0
- package/dist/components/FormEditor/control.d.cts +8 -0
- package/dist/components/FormEditor/control.d.cts.map +1 -1
- package/dist/components/FormEditor/control.d.ts +8 -0
- package/dist/components/FormEditor/control.d.ts.map +1 -1
- package/dist/components/FormEditor/index.cjs +1 -1
- package/dist/components/FormEditor/index.d.cts +1 -1
- package/dist/components/FormEditor/index.d.cts.map +1 -1
- package/dist/components/FormEditor/index.d.ts +1 -1
- package/dist/components/FormEditor/index.d.ts.map +1 -1
- package/dist/components/FormEditor/index.js +1 -1
- package/dist/components/FormEditor/model.d.cts +68 -2
- package/dist/components/FormEditor/model.d.cts.map +1 -1
- package/dist/components/FormEditor/model.d.ts +68 -2
- package/dist/components/FormEditor/model.d.ts.map +1 -1
- package/dist/components/FormEditor/style.css +12 -0
- package/dist/components/Grid/style.css +2 -1
- package/dist/components/ImageCropper/index.cjs +1 -1
- package/dist/components/ImageCropper/index.cjs.map +1 -1
- package/dist/components/ImageCropper/index.js +6 -6
- package/dist/components/ImageCropper/index.js.map +1 -1
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.cjs.map +1 -1
- package/dist/components/Modal/index.d.cts.map +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +40 -48
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/NumberField/index.cjs +1 -1
- package/dist/components/NumberField/index.cjs.map +1 -1
- package/dist/components/NumberField/index.d.cts.map +1 -1
- package/dist/components/NumberField/index.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +4 -0
- package/dist/components/NumberField/index.js.map +1 -1
- package/dist/components/Popover/index.cjs +1 -1
- package/dist/components/Popover/index.cjs.map +1 -1
- package/dist/components/Popover/index.d.cts +2 -0
- package/dist/components/Popover/index.d.cts.map +1 -1
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +45 -44
- package/dist/components/Popover/index.js.map +1 -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.map +1 -1
- package/dist/components/SelectionCard/index.d.ts.map +1 -1
- package/dist/components/SelectionCard/index.js +2 -1
- package/dist/components/SelectionCard/index.js.map +1 -1
- package/dist/components/Slider/index.cjs +1 -2
- package/dist/components/Slider/index.d.cts +14 -1
- package/dist/components/Slider/index.d.cts.map +1 -1
- package/dist/components/Slider/index.d.ts +14 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +1 -127
- package/dist/components/Slider/scale.d.cts +13 -0
- package/dist/components/Slider/scale.d.cts.map +1 -0
- package/dist/components/Slider/scale.d.ts +13 -0
- package/dist/components/Slider/scale.d.ts.map +1 -0
- package/dist/elements.css +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -20
- package/dist/internal/dialogFocus.d.cts +17 -0
- package/dist/internal/dialogFocus.d.cts.map +1 -0
- package/dist/internal/dialogFocus.d.ts +17 -0
- package/dist/internal/dialogFocus.d.ts.map +1 -0
- package/dist/reset.css +2 -0
- package/dist/styles.css +1 -0
- package/package.json +2 -2
- package/dist/chunks/ColourField-C2YDshDg.js.map +0 -1
- package/dist/chunks/ColourField-Dc9533G6.cjs +0 -2
- package/dist/chunks/ColourField-Dc9533G6.cjs.map +0 -1
- package/dist/chunks/FormEditor-DRmPFe2E.js +0 -328
- package/dist/chunks/FormEditor-DRmPFe2E.js.map +0 -1
- package/dist/chunks/FormEditor-PVkvKep1.cjs +0 -2
- package/dist/chunks/FormEditor-PVkvKep1.cjs.map +0 -1
- package/dist/components/DatePicker/index.cjs.map +0 -1
- package/dist/components/DatePicker/index.js.map +0 -1
- package/dist/components/Slider/index.cjs.map +0 -1
- package/dist/components/Slider/index.js.map +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function e(e) {
|
|
2
|
+
return (e.checkVisibility?.() ?? !e.closest("[hidden]")) && !e.closest("[inert]");
|
|
3
|
+
}
|
|
4
|
+
function t(e) {
|
|
5
|
+
return e instanceof HTMLInputElement && e.type === "radio";
|
|
6
|
+
}
|
|
7
|
+
function n(e, n) {
|
|
8
|
+
return e === n || t(e) && t(n) && e.name !== "" && e.name === n.name && e.form === n.form;
|
|
9
|
+
}
|
|
10
|
+
function r(r) {
|
|
11
|
+
let i = Array.from(r.querySelectorAll(":is(button, [href], input:not([type='hidden']), select, textarea, [tabindex], [contenteditable]:not([contenteditable='false'])):not(:disabled):not([tabindex='-1']):not([aria-hidden='true'])")).filter(e);
|
|
12
|
+
return i.filter((e) => !t(e) || e.checked || !i.some((r) => t(r) && r.checked && n(r, e)));
|
|
13
|
+
}
|
|
14
|
+
var i = /* @__PURE__ */ new WeakMap();
|
|
15
|
+
function a(e, t) {
|
|
16
|
+
return i.set(e, t), () => {
|
|
17
|
+
i.delete(e);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function o(e) {
|
|
21
|
+
let t = e instanceof Element ? e : e.parentElement;
|
|
22
|
+
for (; t && !i.has(t);) t = t.parentElement;
|
|
23
|
+
return t;
|
|
24
|
+
}
|
|
25
|
+
function s(e, t) {
|
|
26
|
+
let n = /* @__PURE__ */ new Set(), r = o(t);
|
|
27
|
+
for (; r && !n.has(r);) {
|
|
28
|
+
n.add(r);
|
|
29
|
+
let t = i.get(r);
|
|
30
|
+
if (e.contains(t)) return !0;
|
|
31
|
+
r = o(t);
|
|
32
|
+
}
|
|
33
|
+
return !1;
|
|
34
|
+
}
|
|
35
|
+
function c(e, t) {
|
|
36
|
+
return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
37
|
+
}
|
|
38
|
+
function l(e, t) {
|
|
39
|
+
if (e.key !== "Tab" || e.defaultPrevented || !t) return;
|
|
40
|
+
let i = r(t), a = i[0], o = i.at(-1);
|
|
41
|
+
if (!a || !o) return;
|
|
42
|
+
let l = t.getRootNode().activeElement ?? document.activeElement, u = l !== null && t.contains(l);
|
|
43
|
+
!u && l && s(t, l) || (!u || (e.shiftKey ? n(l, a) || c(l, a) : n(l, o) || c(o, l))) && (e.preventDefault(), (e.shiftKey ? o : a).focus());
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { r as n, l as r, a as t };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=dialogFocus-BFoyeTpA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogFocus-BFoyeTpA.js","names":["canTakeFocus","element","isRadio","sameStop","a","b","tabbableControls","controls","container","control","other","popupAnchors","registerPopup","popup","anchor","popupAround","node","inOwnedPopup","visited","panel","precedes","trapTabFocus","event","first","last","active","inside"],"sources":["../../src/internal/dialogFocus.ts"],"sourcesContent":["const focusableSelector =\n \":is(button, [href], input:not([type='hidden']), select, textarea, [tabindex], [contenteditable]:not([contenteditable='false'])):not(:disabled):not([tabindex='-1']):not([aria-hidden='true'])\";\n\n// Unrendered controls (display: none, [hidden], closed <details>) and inert\n// subtrees cannot take focus. Environments without checkVisibility fall back\n// to the hidden attribute.\nfunction canTakeFocus(element: HTMLElement) {\n return (\n (element.checkVisibility?.() ?? !element.closest(\"[hidden]\")) && !element.closest(\"[inert]\")\n );\n}\n\nfunction isRadio(element: Element | null): element is HTMLInputElement {\n return element instanceof HTMLInputElement && element.type === \"radio\";\n}\n\n/** Radios sharing a name and form are one Tab stop. */\nfunction sameStop(a: Element, b: Element) {\n return (\n a === b || (isRadio(a) && isRadio(b) && a.name !== \"\" && a.name === b.name && a.form === b.form)\n );\n}\n\n/**\n * The controls Tab visits inside `container`, in document order. A radio group\n * contributes only its checked radio, or every radio while none is checked.\n */\nexport function tabbableControls(container: HTMLElement) {\n const controls = Array.from(container.querySelectorAll<HTMLElement>(focusableSelector)).filter(\n canTakeFocus,\n );\n return controls.filter(\n (control) =>\n !isRadio(control) ||\n control.checked ||\n !controls.some((other) => isRadio(other) && other.checked && sameStop(other, control)),\n );\n}\n\nconst popupAnchors = new WeakMap<Element, Element>();\n\n/**\n * Popups portal outside the dialog that opened them. Registering one with its\n * anchor lets that dialog's Tab trap treat the popup as its own.\n */\nexport function registerPopup(popup: Element, anchor: Element) {\n popupAnchors.set(popup, anchor);\n return () => {\n popupAnchors.delete(popup);\n };\n}\n\nfunction popupAround(node: Node) {\n let element = node instanceof Element ? node : node.parentElement;\n while (element && !popupAnchors.has(element)) {\n element = element.parentElement;\n }\n return element;\n}\n\n/** Inside a popup anchored in the panel, directly or through other popups. */\nfunction inOwnedPopup(panel: HTMLElement, node: Node) {\n const visited = new Set<Element>();\n let popup = popupAround(node);\n while (popup && !visited.has(popup)) {\n visited.add(popup);\n const anchor = popupAnchors.get(popup)!;\n if (panel.contains(anchor)) {\n return true;\n }\n popup = popupAround(anchor);\n }\n return false;\n}\n\n/** `a` comes before `b` in document order, including as its ancestor. */\nfunction precedes(a: Node, b: Node) {\n return Boolean(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);\n}\n\n/**\n * Keeps Tab inside an aria-modal panel. Call only for the topmost dialog.\n * Focus that left the panel returns to its first control (last with Shift);\n * Tab inside a popup the panel owns is left to the popup and the browser.\n */\nexport function trapTabFocus(event: KeyboardEvent, panel: HTMLElement | null) {\n if (event.key !== \"Tab\" || event.defaultPrevented || !panel) {\n return;\n }\n const controls = tabbableControls(panel);\n const first = controls[0];\n const last = controls.at(-1);\n if (!first || !last) {\n return;\n }\n // document.activeElement stops at the host of a shadow root holding the panel.\n const active =\n (panel.getRootNode() as Document | ShadowRoot).activeElement ?? document.activeElement;\n const inside = active !== null && panel.contains(active);\n if (!inside && active && inOwnedPopup(panel, active)) {\n return;\n }\n // Focus on the panel itself, or on another untabbable element beyond the\n // first or last control, would otherwise leave the panel.\n const wraps =\n !inside ||\n (event.shiftKey\n ? sameStop(active, first) || precedes(active, first)\n : sameStop(active, last) || precedes(last, active));\n if (wraps) {\n event.preventDefault();\n (event.shiftKey ? last : first).focus();\n }\n}\n"],"mappings":"AAMA,SAASA,EAAa,GAAsB;CAC1C,QACGC,EAAQ,kBAAkB,KAAK,CAACA,EAAQ,QAAQ,UAAU,MAAM,CAACA,EAAQ,QAAQ,SAAS;AAE/F;AAEA,SAASC,EAAQ,GAAsD;CACrE,OAAOD,aAAmB,oBAAoBA,EAAQ,SAAS;AACjE;AAGA,SAASE,EAAS,GAAY,GAAY;CACxC,OACEC,MAAMC,KAAMH,EAAQE,CAAC,KAAKF,EAAQG,CAAC,KAAKD,EAAE,SAAS,MAAMA,EAAE,SAASC,EAAE,QAAQD,EAAE,SAASC,EAAE;AAE/F;AAMA,SAAgBC,EAAiB,GAAwB;CACvD,IAAMC,IAAW,MAAM,KAAKC,EAAU,iBAA8B,+LAAiB,CAAC,CAAC,CAAC,OACtFR,CACF;CACA,OAAOO,EAAS,QACb,MACC,CAACL,EAAQO,CAAO,KAChBA,EAAQ,WACR,CAACF,EAAS,MAAM,MAAUL,EAAQQ,CAAK,KAAKA,EAAM,WAAWP,EAASO,GAAOD,CAAO,CAAC,CACzF;AACF;AAEA,IAAME,oBAAe,IAAI,QAA0B;AAMnD,SAAgBC,EAAc,GAAgB,GAAiB;CAE7D,OADAD,EAAa,IAAIE,GAAOC,CAAM,SACjB;EACX,EAAa,OAAOD,CAAK;CAC3B;AACF;AAEA,SAASE,EAAY,GAAY;CAC/B,IAAId,IAAUe,aAAgB,UAAUA,IAAOA,EAAK;CACpD,OAAOf,KAAW,CAACU,EAAa,IAAIV,CAAO,IACzC,IAAUA,EAAQ;CAEpB,OAAOA;AACT;AAGA,SAASgB,EAAa,GAAoB,GAAY;CACpD,IAAMC,oBAAU,IAAI,IAAa,GAC7BL,IAAQE,EAAYC,CAAI;CAC5B,OAAOH,KAAS,CAACK,EAAQ,IAAIL,CAAK,IAAG;EACnC,EAAQ,IAAIA,CAAK;EACjB,IAAMC,IAASH,EAAa,IAAIE,CAAK;EACrC,IAAIM,EAAM,SAASL,CAAM,GACvB,OAAO;EAET,IAAQC,EAAYD,CAAM;CAC5B;CACA,OAAO;AACT;AAGA,SAASM,EAAS,GAAS,GAAS;CAClC,OAAO,GAAQf,EAAE,wBAAwBD,CAAC,IAAI,KAAK;AACrD;AAOA,SAAgBiB,EAAa,GAAsB,GAA2B;CAC5E,IAAIC,EAAM,QAAQ,SAASA,EAAM,oBAAoB,CAACH,GACpD;CAEF,IAAMZ,IAAWD,EAAiBa,CAAK,GACjCI,IAAQhB,EAAS,IACjBiB,IAAOjB,EAAS,GAAG,EAAE;CAC3B,IAAI,CAACgB,KAAS,CAACC,GACb;CAGF,IAAMC,IACHN,EAAM,YAAY,CAAC,CAA2B,iBAAiB,SAAS,eACrEO,IAASD,MAAW,QAAQN,EAAM,SAASM,CAAM;CACvD,AAAI,CAACC,KAAUD,KAAUR,EAAaE,GAAOM,CAAM,MAMjD,CAACC,MACAJ,EAAM,WACHnB,EAASsB,GAAQF,CAAK,KAAKH,EAASK,GAAQF,CAAK,IACjDpB,EAASsB,GAAQD,CAAI,KAAKJ,EAASI,GAAMC,CAAM,QAEnDH,EAAM,eAAe,IACpBA,EAAM,WAAWE,IAAOD,EAAA,CAAO,MAAM;AAE1C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/group-pKDQtq-9.cjs"),t=require("../Grid/index.cjs");let n=require("react"),r=require("react/jsx-runtime");var i=(0,n.forwardRef)(function({isIndeterminate:e=!1,className:t,children:i,...a},o){let s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{s.current&&(s.current.indeterminate=e)},[e]),(0,r.jsxs)(`label`,{className:[`ds-choice`,t].filter(Boolean).join(` `),children:[(0,r.jsx)(`input`,{type:`checkbox`,className:`ds-choice__control`,"data-kind":`checkbox`,ref:e=>{s.current=e,typeof o==`function`?o(e):o&&(o.current=e)},...a}),i&&(0,r.jsx)(`span`,{className:`ds-choice__label`,children:i})]})}),a=(0,n.forwardRef)(function({className:e,children:t,...n},i){return(0,r.jsxs)(`label`,{className:[`ds-choice`,e].filter(Boolean).join(` `),children:[(0,r.jsx)(`input`,{ref:i,type:`radio`,className:`ds-choice__control`,"data-kind":`radio`,...n}),t&&(0,r.jsx)(`span`,{className:`ds-choice__label`,children:t})]})});function o({label:n,columns:i=1,children:a,className:o,...s}){return(0,r.jsx)(e.t,{...s,label:n,className:[`ds-choice-group`,o].filter(Boolean).join(` `),children:i===1?(0,r.jsx)(t.Stack,{gap:`sm`,children:a}):(0,r.jsx)(t.Grid,{columns:i,gap:`sm`,children:a})})}exports.Checkbox=i,exports.ChoiceGroup=o,exports.Radio=a;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/group-pKDQtq-9.cjs"),t=require("../Grid/index.cjs");let n=require("react"),r=require("react/jsx-runtime");var i=(0,n.forwardRef)(function({isIndeterminate:e=!1,className:t,children:i,...a},o){let s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{s.current&&(s.current.indeterminate=e)},[e]),(0,r.jsxs)(`label`,{className:[`ds-choice`,t].filter(Boolean).join(` `),children:[(0,r.jsx)(`input`,{type:`checkbox`,className:`ds-choice__control`,"data-kind":`checkbox`,ref:e=>{s.current=e,typeof o==`function`?o(e):o&&(o.current=e)},...a}),i&&(0,r.jsx)(`span`,{className:`ds-choice__label`,children:i})]})}),a=(0,n.forwardRef)(function({className:e,children:t,...n},i){return(0,r.jsxs)(`label`,{className:[`ds-choice`,e].filter(Boolean).join(` `),children:[(0,r.jsx)(`input`,{ref:i,type:`radio`,className:`ds-choice__control`,"data-kind":`radio`,...n}),t&&(0,r.jsx)(`span`,{className:`ds-choice__label`,children:t})]})});function o({label:n,columns:i=1,children:a,className:o,...s}){return(0,r.jsx)(e.t,{...s,label:n,className:[`ds-choice-group`,o].filter(Boolean).join(` `),children:i===1?(0,r.jsx)(t.Stack,{gap:`sm`,children:a}):(0,r.jsx)(t.Grid,{columns:i,gap:`sm`,className:`ds-choice-group__grid ds-field-group-grid`,style:{"--field-group-columns":i},children:a})})}exports.Checkbox=i,exports.ChoiceGroup=o,exports.Radio=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["forwardRef","useRef","FieldGroup","Stack","Grid","require_group","require_components_Grid_index","react","react_jsx_runtime","Checkbox","rest","inner","isIndeterminate","className","node","ref","children","Radio","ChoiceGroup","fieldProps","columns"],"sources":["../../../src/components/Choice/index.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["forwardRef","useRef","FieldGroup","Stack","Grid","require_group","require_components_Grid_index","react","react_jsx_runtime","Checkbox","rest","inner","isIndeterminate","className","node","ref","children","Radio","ChoiceGroup","fieldProps","columns"],"sources":["../../../src/components/Choice/index.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useRef,\n type CSSProperties,\n type InputHTMLAttributes,\n type ReactNode,\n} from \"react\";\nimport { FieldGroup, type FieldGroupProps } from \"../Field/group\";\nimport { Grid, Stack } from \"../Grid\";\nimport \"./style.css\";\n\nexport interface CheckboxProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\"\n> {\n /** Display state only — clicking an indeterminate box selects all. */\n isIndeterminate?: boolean;\n children?: ReactNode;\n}\n\n/** An independent yes/no. 20px box at every size, in every context. */\nexport const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(function Checkbox(\n { isIndeterminate = false, className, children, ...rest },\n ref,\n) {\n const inner = useRef<HTMLInputElement | null>(null);\n\n useEffect(() => {\n if (inner.current) {\n inner.current.indeterminate = isIndeterminate;\n }\n }, [isIndeterminate]);\n\n return (\n <label className={[\"ds-choice\", className].filter(Boolean).join(\" \")}>\n <input\n type=\"checkbox\"\n className=\"ds-choice__control\"\n data-kind=\"checkbox\"\n ref={(node) => {\n inner.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n }}\n {...rest}\n />\n {children && <span className=\"ds-choice__label\">{children}</span>}\n </label>\n );\n});\n\nexport interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, \"type\" | \"size\"> {\n children?: ReactNode;\n}\n\n/** One of two or more mutually exclusive choices, all of them visible. */\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(function Radio(\n { className, children, ...rest },\n ref,\n) {\n return (\n <label className={[\"ds-choice\", className].filter(Boolean).join(\" \")}>\n <input\n ref={ref}\n type=\"radio\"\n className=\"ds-choice__control\"\n data-kind=\"radio\"\n {...rest}\n />\n {children && <span className=\"ds-choice__label\">{children}</span>}\n </label>\n );\n});\n\nexport interface ChoiceGroupProps extends FieldGroupProps {\n /**\n * Run a long list in columns instead of one stack. Steps down to a single\n * column inside a narrow container.\n */\n columns?: 1 | 2 | 3;\n children: ReactNode;\n}\n\n/** A set of checkboxes or radios under one group label, spaced by Stack or Grid. */\nexport function ChoiceGroup({\n label,\n columns = 1,\n children,\n className,\n ...fieldProps\n}: ChoiceGroupProps) {\n return (\n <FieldGroup\n {...fieldProps}\n label={label}\n className={[\"ds-choice-group\", className].filter(Boolean).join(\" \")}\n >\n {columns === 1 ? (\n <Stack gap=\"sm\">{children}</Stack>\n ) : (\n <Grid\n columns={columns}\n gap=\"sm\"\n className=\"ds-choice-group__grid ds-field-group-grid\"\n style={{ \"--field-group-columns\": columns } as CSSProperties}\n >\n {children}\n </Grid>\n )}\n </FieldGroup>\n );\n}\n"],"mappings":"A,2MAsBA,IAAaS,GAAA,EAAWT,EAAAA,WAAAA,CAA4C,SAClE,CAAE,kBAAkB,GAAO,YAAW,WAAU,GAAGU,GACnD,EACA,CACA,I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,GACX,EAAAZ,EAAA,IAAA,CAACL,EAAAA,MAAD,CAAO,IAAI,KAAM,UAAgB,CAAA,GAEjC,EAAAK,EAAA,IAAA,CAACJ,EAAAA,KAAD,CACW,UACT,IAAI,KACJ,UAAU,4CACV,MAAO,CAAE,wBAAyBgB,CAAQ,EAEzC,UACG,CAAA,CAEE,CAAA,CAEhB,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Choice/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Choice/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,aAAa,CAAC;AAErB,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,MAAM,CAChB;IACC,sEAAsE;IACtE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,uEAAuE;AACvE,eAAO,MAAM,QAAQ,4GA+BnB,CAAC;AAEH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9F,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,0EAA0E;AAC1E,eAAO,MAAM,KAAK,yGAgBhB,CAAC;AAEH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,oFAAoF;AACpF,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAW,EACX,QAAQ,EACR,SAAS,EACT,GAAG,UAAU,EACd,EAAE,gBAAgB,+BAqBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Choice/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Choice/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,aAAa,CAAC;AAErB,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,MAAM,CAChB;IACC,sEAAsE;IACtE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,uEAAuE;AACvE,eAAO,MAAM,QAAQ,4GA+BnB,CAAC;AAEH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9F,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,0EAA0E;AAC1E,eAAO,MAAM,KAAK,yGAgBhB,CAAC;AAEH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,oFAAoF;AACpF,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAW,EACX,QAAQ,EACR,SAAS,EACT,GAAG,UAAU,EACd,EAAE,gBAAgB,+BAqBlB"}
|
|
@@ -48,6 +48,8 @@ function u({ label: r, columns: i = 1, children: a, className: s, ...c }) {
|
|
|
48
48
|
}) : /* @__PURE__ */ o(t, {
|
|
49
49
|
columns: i,
|
|
50
50
|
gap: "sm",
|
|
51
|
+
className: "ds-choice-group__grid ds-field-group-grid",
|
|
52
|
+
style: { "--field-group-columns": i },
|
|
51
53
|
children: a
|
|
52
54
|
})
|
|
53
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["FieldGroup","Checkbox","forwardRef","rest","inner","useRef","useEffect","isIndeterminate","className","node","ref","children","Radio","ChoiceGroup","fieldProps","columns","Stack","Grid"],"sources":["../../../src/components/Choice/index.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.js","names":["FieldGroup","Checkbox","forwardRef","rest","inner","useRef","useEffect","isIndeterminate","className","node","ref","children","Radio","ChoiceGroup","fieldProps","columns","Stack","Grid"],"sources":["../../../src/components/Choice/index.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useRef,\n type CSSProperties,\n type InputHTMLAttributes,\n type ReactNode,\n} from \"react\";\nimport { FieldGroup, type FieldGroupProps } from \"../Field/group\";\nimport { Grid, Stack } from \"../Grid\";\nimport \"./style.css\";\n\nexport interface CheckboxProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"size\"\n> {\n /** Display state only — clicking an indeterminate box selects all. */\n isIndeterminate?: boolean;\n children?: ReactNode;\n}\n\n/** An independent yes/no. 20px box at every size, in every context. */\nexport const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(function Checkbox(\n { isIndeterminate = false, className, children, ...rest },\n ref,\n) {\n const inner = useRef<HTMLInputElement | null>(null);\n\n useEffect(() => {\n if (inner.current) {\n inner.current.indeterminate = isIndeterminate;\n }\n }, [isIndeterminate]);\n\n return (\n <label className={[\"ds-choice\", className].filter(Boolean).join(\" \")}>\n <input\n type=\"checkbox\"\n className=\"ds-choice__control\"\n data-kind=\"checkbox\"\n ref={(node) => {\n inner.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n }}\n {...rest}\n />\n {children && <span className=\"ds-choice__label\">{children}</span>}\n </label>\n );\n});\n\nexport interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, \"type\" | \"size\"> {\n children?: ReactNode;\n}\n\n/** One of two or more mutually exclusive choices, all of them visible. */\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>(function Radio(\n { className, children, ...rest },\n ref,\n) {\n return (\n <label className={[\"ds-choice\", className].filter(Boolean).join(\" \")}>\n <input\n ref={ref}\n type=\"radio\"\n className=\"ds-choice__control\"\n data-kind=\"radio\"\n {...rest}\n />\n {children && <span className=\"ds-choice__label\">{children}</span>}\n </label>\n );\n});\n\nexport interface ChoiceGroupProps extends FieldGroupProps {\n /**\n * Run a long list in columns instead of one stack. Steps down to a single\n * column inside a narrow container.\n */\n columns?: 1 | 2 | 3;\n children: ReactNode;\n}\n\n/** A set of checkboxes or radios under one group label, spaced by Stack or Grid. */\nexport function ChoiceGroup({\n label,\n columns = 1,\n children,\n className,\n ...fieldProps\n}: ChoiceGroupProps) {\n return (\n <FieldGroup\n {...fieldProps}\n label={label}\n className={[\"ds-choice-group\", className].filter(Boolean).join(\" \")}\n >\n {columns === 1 ? (\n <Stack gap=\"sm\">{children}</Stack>\n ) : (\n <Grid\n columns={columns}\n gap=\"sm\"\n className=\"ds-choice-group__grid ds-field-group-grid\"\n style={{ \"--field-group-columns\": columns } as CSSProperties}\n >\n {children}\n </Grid>\n )}\n </FieldGroup>\n );\n}\n"],"mappings":";;;;;AAsBA,IAAaC,IAAWC,EAA4C,SAClE,EAAE,qBAAkB,IAAO,cAAW,aAAU,GAAGC,KACnD,GACA;CACA,IAAMC,IAAQC,EAAgC,IAAI;CAQlD,OANAC,QAAgB;EACd,AAAIF,EAAM,YACR,EAAM,QAAQ,gBAAgBG;CAElC,GAAG,CAACA,CAAe,CAAC,GAGlB,kBAAC,SAAD;EAAO,WAAW,CAAC,aAAaC,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAAnE,UAAA,CACE,kBAAC,SAAD;GACE,MAAK;GACL,WAAU;GACV,aAAU;GACV,MAAM,MAAS;IAEb,AADA,EAAM,UAAUC,GACZ,OAAOC,KAAQ,aACjBA,EAAID,CAAI,IACCC,MACT,EAAI,UAAUD;GAElB;GACA,GAAIN;EACL,CAAA,GACAQ,KAAY,kBAAC,QAAD;GAAM,WAAU;GAAoB;EAAe,CAAA,CAC3D;;AAEX,CAAC,GAOYC,IAAQV,EAAyC,SAC5D,EAAE,cAAW,aAAU,GAAGC,KAC1B,GACA;CACA,OACE,kBAAC,SAAD;EAAO,WAAW,CAAC,aAAaK,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAAnE,UAAA,CACE,kBAAC,SAAD;GACO;GACL,MAAK;GACL,WAAU;GACV,aAAU;GACV,GAAIL;EACL,CAAA,GACAQ,KAAY,kBAAC,QAAD;GAAM,WAAU;GAAoB;EAAe,CAAA,CAC3D;;AAEX,CAAC;AAYD,SAAgBE,EAAY,EAC1B,UACA,aAAU,GACV,aACA,cACA,GAAGC,KACgB;CACnB,OACE,kBAACd,GAAD;EACE,GAAIc;EACG;EACP,WAAW,CAAC,mBAAmBN,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAEjE,UAAAO,MAAY,IACX,kBAACC,GAAD;GAAO,KAAI;GAAM;EAAgB,CAAA,IAEjC,kBAACC,GAAD;GACW;GACT,KAAI;GACJ,WAAU;GACV,OAAO,EAAE,yBAAyBF,EAAQ;GAEzC;EACG,CAAA;CAEE,CAAA;AAEhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus.d.cts","sourceRoot":"","sources":["../../../src/components/ColourField/focus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"focus.d.cts","sourceRoot":"","sources":["../../../src/components/ColourField/focus.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,QAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../src/components/ColourField/focus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../src/components/ColourField/focus.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,QAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/ColourField-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/ColourField-CJicr3OT.cjs");exports.ColourField=e.t,exports.ColourPanel=e.n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ColourField/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ColourField/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9D,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAkC,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,gBACf,SACE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,EACjF,gBAAgB,EAChB,mBAAmB;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,+GAoOtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ColourField/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ColourField/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9D,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAkC,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,gBACf,SACE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,EACjF,gBAAgB,EAChB,mBAAmB;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,+GAoOtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ColourField, n as ColourPanel } from "../../chunks/ColourField-
|
|
1
|
+
export { t as ColourField, n as ColourPanel } from "../../chunks/ColourField-DjHRiFDU.js";
|
|
@@ -10,4 +10,10 @@ export declare function useColourValue({ value, defaultValue, onValueChange }: C
|
|
|
10
10
|
colour: Colour;
|
|
11
11
|
commit: (next: string | Colour) => void;
|
|
12
12
|
};
|
|
13
|
+
/** Typed text the field shows until it is committed, blurred, or replaced. */
|
|
14
|
+
export declare function useColourDraft(current: string, hex: string): {
|
|
15
|
+
text: string;
|
|
16
|
+
type: (next: string, isValid: boolean) => void;
|
|
17
|
+
discard: () => void;
|
|
18
|
+
};
|
|
13
19
|
//# sourceMappingURL=value.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value.d.cts","sourceRoot":"","sources":["../../../src/components/ColourField/value.ts"],"names":[],"mappings":"AACA,OAAO,EAA2C,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oFAAoF;IACpF,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,YAAiB,EAAE,aAAa,EAAE,EAAE,gBAAgB;;;mBAapE,MAAM,GAAG,MAAM;EAatC"}
|
|
1
|
+
{"version":3,"file":"value.d.cts","sourceRoot":"","sources":["../../../src/components/ColourField/value.ts"],"names":[],"mappings":"AACA,OAAO,EAA2C,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oFAAoF;IACpF,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,YAAiB,EAAE,aAAa,EAAE,EAAE,gBAAgB;;;mBAapE,MAAM,GAAG,MAAM;EAatC;AAED,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;iBASrC,MAAM,WAAW,OAAO;;EAG7C"}
|
|
@@ -10,4 +10,10 @@ export declare function useColourValue({ value, defaultValue, onValueChange }: C
|
|
|
10
10
|
colour: Colour;
|
|
11
11
|
commit: (next: string | Colour) => void;
|
|
12
12
|
};
|
|
13
|
+
/** Typed text the field shows until it is committed, blurred, or replaced. */
|
|
14
|
+
export declare function useColourDraft(current: string, hex: string): {
|
|
15
|
+
text: string;
|
|
16
|
+
type: (next: string, isValid: boolean) => void;
|
|
17
|
+
discard: () => void;
|
|
18
|
+
};
|
|
13
19
|
//# sourceMappingURL=value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../src/components/ColourField/value.ts"],"names":[],"mappings":"AACA,OAAO,EAA2C,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oFAAoF;IACpF,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,YAAiB,EAAE,aAAa,EAAE,EAAE,gBAAgB;;;mBAapE,MAAM,GAAG,MAAM;EAatC"}
|
|
1
|
+
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../src/components/ColourField/value.ts"],"names":[],"mappings":"AACA,OAAO,EAA2C,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oFAAoF;IACpF,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,YAAiB,EAAE,aAAa,EAAE,EAAE,gBAAgB;;;mBAapE,MAAM,GAAG,MAAM;EAatC;AAED,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;iBASrC,MAAM,WAAW,OAAO;;EAG7C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** ISO calendar date, "YYYY-MM-DD" — the only date shape the system passes around. */
|
|
2
|
+
export type IsoDate = string;
|
|
3
|
+
export declare function toIso(date: Date): IsoDate;
|
|
4
|
+
export declare function fromIso(value: string | undefined): Date | null;
|
|
5
|
+
/** A real calendar day in "YYYY-MM-DD" form, checked without locale formatting. */
|
|
6
|
+
export declare function isIsoDate(value: string): boolean;
|
|
7
|
+
/** "12 March 2026" — the system's one long date format. */
|
|
8
|
+
export declare function formatIsoDate(value: string | undefined): string;
|
|
9
|
+
//# sourceMappingURL=date.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.cts","sourceRoot":"","sources":["../../../src/components/DatePicker/date.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAIzC;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAU9D;AAED,mFAAmF;AACnF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,WAEtC;AAED,2DAA2D;AAC3D,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAM/D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** ISO calendar date, "YYYY-MM-DD" — the only date shape the system passes around. */
|
|
2
|
+
export type IsoDate = string;
|
|
3
|
+
export declare function toIso(date: Date): IsoDate;
|
|
4
|
+
export declare function fromIso(value: string | undefined): Date | null;
|
|
5
|
+
/** A real calendar day in "YYYY-MM-DD" form, checked without locale formatting. */
|
|
6
|
+
export declare function isIsoDate(value: string): boolean;
|
|
7
|
+
/** "12 March 2026" — the system's one long date format. */
|
|
8
|
+
export declare function formatIsoDate(value: string | undefined): string;
|
|
9
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/date.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAIzC;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAU9D;AAED,mFAAmF;AACnF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,WAEtC;AAED,2DAA2D;AAC3D,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAM/D"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/DatePicker-aSlYLjtW.cjs");exports.Calendar=e.t,exports.DateField=e.n,exports.DateRangeField=e.r,exports.formatIsoDate=e.i;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "react";
|
|
2
2
|
import { type PopoverPlacement } from "../Popover/index.cjs";
|
|
3
3
|
import type { FieldBinding, FieldSize } from "../Field/index.cjs";
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
export declare function formatIsoDate(value: string | undefined): string;
|
|
4
|
+
import { type IsoDate } from "./date.cjs";
|
|
5
|
+
export { formatIsoDate } from "./date.cjs";
|
|
6
|
+
export type { IsoDate } from "./date.cjs";
|
|
8
7
|
export interface CalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
9
8
|
/** Selected day, or the start of a selected span. */
|
|
10
9
|
value?: IsoDate;
|
|
@@ -31,10 +30,13 @@ export interface DateFieldProps extends FieldBinding {
|
|
|
31
30
|
max?: IsoDate;
|
|
32
31
|
isDisabled?: boolean;
|
|
33
32
|
isInvalid?: boolean;
|
|
33
|
+
/** Show a separate clear action when populated. Defaults to false. */
|
|
34
|
+
isClearable?: boolean;
|
|
35
|
+
clearLabel?: string;
|
|
34
36
|
className?: string;
|
|
35
37
|
}
|
|
36
38
|
/** One day, picked from a calendar. The field prints the long date, never a mask. */
|
|
37
|
-
export declare function DateField({ value, defaultValue, onValueChange, size, placeholder, placement, min, max, isDisabled, isInvalid, "aria-invalid": ariaInvalid, id, className, ...rest }: DateFieldProps): import("react").JSX.Element;
|
|
39
|
+
export declare function DateField({ value, defaultValue, onValueChange, size, placeholder, placement, min, max, isDisabled, isInvalid, isClearable, clearLabel, "aria-invalid": ariaInvalid, id, className, ...rest }: DateFieldProps): import("react").JSX.Element;
|
|
38
40
|
export interface DateRangeValue {
|
|
39
41
|
start: IsoDate;
|
|
40
42
|
end: IsoDate;
|
|
@@ -48,10 +50,11 @@ export interface DateRangeFieldProps extends FieldBinding {
|
|
|
48
50
|
min?: IsoDate;
|
|
49
51
|
max?: IsoDate;
|
|
50
52
|
isDisabled?: boolean;
|
|
53
|
+
isClearable?: boolean;
|
|
51
54
|
startLabel?: string;
|
|
52
55
|
endLabel?: string;
|
|
53
56
|
className?: string;
|
|
54
57
|
}
|
|
55
58
|
/** A span of days. The end field never offers a day before the start. */
|
|
56
|
-
export declare function DateRangeField({ value, defaultValue, onValueChange, size, min, max, isDisabled, startLabel, endLabel, placement, className, ...binding }: DateRangeFieldProps): import("react").JSX.Element;
|
|
59
|
+
export declare function DateRangeField({ value, defaultValue, onValueChange, size, min, max, isDisabled, isClearable, startLabel, endLabel, placement, className, ...binding }: DateRangeFieldProps): import("react").JSX.Element;
|
|
57
60
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5F,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5F,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAiC,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,YAAY,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC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HhB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,YAAqC,EACrC,aAAa,EACb,IAAW,EACX,GAAG,EACH,GAAG,EACH,UAAkB,EAClB,WAAmB,EACnB,UAAyB,EACzB,QAAqB,EACrB,SAAS,EACT,SAAS,EACT,GAAG,OAAO,EACX,EAAE,mBAAmB,+BAqDrB"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "react";
|
|
2
2
|
import { type PopoverPlacement } from "../Popover/index.js";
|
|
3
3
|
import type { FieldBinding, FieldSize } from "../Field/index.js";
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
export declare function formatIsoDate(value: string | undefined): string;
|
|
4
|
+
import { type IsoDate } from "./date.js";
|
|
5
|
+
export { formatIsoDate } from "./date.js";
|
|
6
|
+
export type { IsoDate } from "./date.js";
|
|
8
7
|
export interface CalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
9
8
|
/** Selected day, or the start of a selected span. */
|
|
10
9
|
value?: IsoDate;
|
|
@@ -31,10 +30,13 @@ export interface DateFieldProps extends FieldBinding {
|
|
|
31
30
|
max?: IsoDate;
|
|
32
31
|
isDisabled?: boolean;
|
|
33
32
|
isInvalid?: boolean;
|
|
33
|
+
/** Show a separate clear action when populated. Defaults to false. */
|
|
34
|
+
isClearable?: boolean;
|
|
35
|
+
clearLabel?: string;
|
|
34
36
|
className?: string;
|
|
35
37
|
}
|
|
36
38
|
/** One day, picked from a calendar. The field prints the long date, never a mask. */
|
|
37
|
-
export declare function DateField({ value, defaultValue, onValueChange, size, placeholder, placement, min, max, isDisabled, isInvalid, "aria-invalid": ariaInvalid, id, className, ...rest }: DateFieldProps): import("react").JSX.Element;
|
|
39
|
+
export declare function DateField({ value, defaultValue, onValueChange, size, placeholder, placement, min, max, isDisabled, isInvalid, isClearable, clearLabel, "aria-invalid": ariaInvalid, id, className, ...rest }: DateFieldProps): import("react").JSX.Element;
|
|
38
40
|
export interface DateRangeValue {
|
|
39
41
|
start: IsoDate;
|
|
40
42
|
end: IsoDate;
|
|
@@ -48,10 +50,11 @@ export interface DateRangeFieldProps extends FieldBinding {
|
|
|
48
50
|
min?: IsoDate;
|
|
49
51
|
max?: IsoDate;
|
|
50
52
|
isDisabled?: boolean;
|
|
53
|
+
isClearable?: boolean;
|
|
51
54
|
startLabel?: string;
|
|
52
55
|
endLabel?: string;
|
|
53
56
|
className?: string;
|
|
54
57
|
}
|
|
55
58
|
/** A span of days. The end field never offers a day before the start. */
|
|
56
|
-
export declare function DateRangeField({ value, defaultValue, onValueChange, size, min, max, isDisabled, startLabel, endLabel, placement, className, ...binding }: DateRangeFieldProps): import("react").JSX.Element;
|
|
59
|
+
export declare function DateRangeField({ value, defaultValue, onValueChange, size, min, max, isDisabled, isClearable, startLabel, endLabel, placement, className, ...binding }: DateRangeFieldProps): import("react").JSX.Element;
|
|
57
60
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5F,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5F,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAiC,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,YAAY,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAqCtC,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACrF,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,0GAoJnB,CAAC;AAEH,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,uEA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