@namroodinc/liquid-editorial 0.12.0 → 0.13.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/README.md +17 -7
- package/UPGRADING.md +70 -0
- package/dist/chunks/{Avatar-DPnrvkwd.cjs → Avatar-BY0dAItT.cjs} +2 -2
- package/dist/chunks/{Avatar-DPnrvkwd.cjs.map → Avatar-BY0dAItT.cjs.map} +1 -1
- package/dist/chunks/{Avatar-BK8IdL5W.js → Avatar-UjhjcHh5.js} +2 -2
- package/dist/chunks/{Avatar-BK8IdL5W.js.map → Avatar-UjhjcHh5.js.map} +1 -1
- package/dist/chunks/{CollectionView-DrszOUOt.cjs → CollectionView-CIJdNwcq.cjs} +2 -2
- package/dist/chunks/{CollectionView-DrszOUOt.cjs.map → CollectionView-CIJdNwcq.cjs.map} +1 -1
- package/dist/chunks/{CollectionView-B0ZJxkNK.js → CollectionView-JRNdXHti.js} +2 -2
- package/dist/chunks/{CollectionView-B0ZJxkNK.js.map → CollectionView-JRNdXHti.js.map} +1 -1
- package/dist/chunks/{ColourField-C39pcjkG.js → ColourField-BTj9NHgI.js} +146 -152
- package/dist/chunks/ColourField-BTj9NHgI.js.map +1 -0
- package/dist/chunks/ColourField-DuoVeXjG.cjs +2 -0
- package/dist/chunks/ColourField-DuoVeXjG.cjs.map +1 -0
- package/dist/chunks/{DatePicker-Dpvfomrm.cjs → DatePicker-BYpGsfL4.cjs} +2 -2
- package/dist/chunks/{DatePicker-Dpvfomrm.cjs.map → DatePicker-BYpGsfL4.cjs.map} +1 -1
- package/dist/chunks/{DatePicker-DDc1nDTb.js → DatePicker-Cb5WspIC.js} +21 -21
- package/dist/chunks/{DatePicker-DDc1nDTb.js.map → DatePicker-Cb5WspIC.js.map} +1 -1
- package/dist/chunks/{Drawer-C3mWT9Kh.js → Drawer-Ck5XKT_V.js} +3 -3
- package/dist/chunks/{Drawer-C3mWT9Kh.js.map → Drawer-Ck5XKT_V.js.map} +1 -1
- package/dist/chunks/{Drawer-DTKZptua.cjs → Drawer-DdIH9jpe.cjs} +2 -2
- package/dist/chunks/{Drawer-DTKZptua.cjs.map → Drawer-DdIH9jpe.cjs.map} +1 -1
- package/dist/chunks/{EntryPicker-CgWbgWnc.cjs → EntryPicker-CCCoJxbd.cjs} +2 -2
- package/dist/chunks/{EntryPicker-CgWbgWnc.cjs.map → EntryPicker-CCCoJxbd.cjs.map} +1 -1
- package/dist/chunks/{EntryPicker-DlEsVCvA.js → EntryPicker-DLCP4S-q.js} +3 -3
- package/dist/chunks/{EntryPicker-DlEsVCvA.js.map → EntryPicker-DLCP4S-q.js.map} +1 -1
- package/dist/chunks/{FormEditor-iACd0El-.cjs → FormEditor-ArvjKtJJ.cjs} +2 -2
- package/dist/chunks/{FormEditor-iACd0El-.cjs.map → FormEditor-ArvjKtJJ.cjs.map} +1 -1
- package/dist/chunks/{FormEditor-CLLOHKiO.js → FormEditor-DnNBv9Xf.js} +16 -16
- package/dist/chunks/{FormEditor-CLLOHKiO.js.map → FormEditor-DnNBv9Xf.js.map} +1 -1
- package/dist/chunks/{Message-CyLq9ef-.js → Message-C73sJfdo.js} +4 -8
- package/dist/chunks/{Message-CyLq9ef-.js.map → Message-C73sJfdo.js.map} +1 -1
- package/dist/chunks/{Message-D3b8HDhm.cjs → Message-CIKSTXp8.cjs} +2 -2
- package/dist/chunks/{Message-D3b8HDhm.cjs.map → Message-CIKSTXp8.cjs.map} +1 -1
- package/dist/chunks/RichTextEditor--kMao88d.cjs +2 -0
- package/dist/chunks/RichTextEditor--kMao88d.cjs.map +1 -0
- package/dist/chunks/{RichTextEditor-B0P53GFt.js → RichTextEditor-CvbboqJY.js} +391 -374
- package/dist/chunks/RichTextEditor-CvbboqJY.js.map +1 -0
- package/dist/chunks/{dialogLabel-D18maX-p.js → dialogLabel-DT7rCr3_.js} +19 -19
- package/dist/chunks/{dialogLabel-D18maX-p.js.map → dialogLabel-DT7rCr3_.js.map} +1 -1
- package/dist/chunks/{dialogLabel-2HRYMHbF.cjs → dialogLabel-_-MTckE_.cjs} +2 -2
- package/dist/chunks/{dialogLabel-2HRYMHbF.cjs.map → dialogLabel-_-MTckE_.cjs.map} +1 -1
- package/dist/chunks/overlayLayer-iGhuAByk.cjs +2 -0
- package/dist/chunks/overlayLayer-iGhuAByk.cjs.map +1 -0
- package/dist/chunks/{overlayLayer-IuoPVwTO.js → overlayLayer-lU4iWSjO.js} +32 -28
- package/dist/chunks/overlayLayer-lU4iWSjO.js.map +1 -0
- package/dist/chunks/{group-7Z_xRlQx.js → style-7Z_xRlQx.js} +1 -1
- package/dist/chunks/{group-7Z_xRlQx.js.map → style-7Z_xRlQx.js.map} +1 -1
- package/dist/chunks/{group-nulIa2_8.cjs → style-nulIa2_8.cjs} +1 -1
- package/dist/chunks/{group-nulIa2_8.cjs.map → style-nulIa2_8.cjs.map} +1 -1
- package/dist/chunks/{use-picker-session-DbfOJstX.cjs → use-picker-session-Bue5MJHQ.cjs} +2 -2
- package/dist/chunks/{use-picker-session-DbfOJstX.cjs.map → use-picker-session-Bue5MJHQ.cjs.map} +1 -1
- package/dist/chunks/{use-picker-session-BnMxbGAZ.js → use-picker-session-DUO4G8Cs.js} +2 -2
- package/dist/chunks/{use-picker-session-BnMxbGAZ.js.map → use-picker-session-DUO4G8Cs.js.map} +1 -1
- package/dist/chunks/{useTooltip-BXAvQwt4.cjs → useTooltip-C7ON4nkV.cjs} +2 -2
- package/dist/chunks/{useTooltip-BXAvQwt4.cjs.map → useTooltip-C7ON4nkV.cjs.map} +1 -1
- package/dist/chunks/{useTooltip-BrC7FdeH.js → useTooltip-DnJEFBLg.js} +2 -2
- package/dist/chunks/{useTooltip-BrC7FdeH.js.map → useTooltip-DnJEFBLg.js.map} +1 -1
- package/dist/components/AppShell/index.cjs +1 -1
- package/dist/components/AppShell/index.js +1 -1
- package/dist/components/Avatar/index.cjs +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/style.css +9 -9
- package/dist/components/Banner/index.cjs +1 -1
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/Board/style.css +3 -3
- package/dist/components/Button/style.css +4 -8
- package/dist/components/Choice/index.cjs +1 -1
- package/dist/components/Choice/index.cjs.map +1 -1
- package/dist/components/Choice/index.js +3 -3
- package/dist/components/Choice/index.js.map +1 -1
- package/dist/components/Choice/style.css +29 -18
- package/dist/components/CollectionView/index.cjs +1 -1
- package/dist/components/CollectionView/index.js +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/style.css +4 -4
- package/dist/components/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Drawer/index.cjs +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Drawer/style.css +2 -4
- package/dist/components/EditLayout/index.cjs +1 -1
- package/dist/components/EditLayout/index.js +3 -3
- package/dist/components/EditLayout/style.css +1 -7
- package/dist/components/EntryPicker/index.cjs +1 -1
- package/dist/components/EntryPicker/index.js +1 -1
- package/dist/components/EntryPicker/style.css +3 -1
- package/dist/components/Field/style.css +1 -1
- package/dist/components/FormEditor/README.md +26 -33
- package/dist/components/FormEditor/index.cjs +1 -1
- package/dist/components/FormEditor/index.js +1 -1
- package/dist/components/FormEditor/style.css +1 -0
- package/dist/components/LimitReading/style.css +1 -1
- package/dist/components/Menu/index.cjs +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/style.css +3 -2
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Modal/style.css +1 -3
- package/dist/components/Popover/index.cjs +1 -1
- package/dist/components/Popover/index.cjs.map +1 -1
- package/dist/components/Popover/index.d.cts.map +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +58 -55
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/RichTextEditor/index.cjs +1 -1
- package/dist/components/RichTextEditor/index.d.cts.map +1 -1
- package/dist/components/RichTextEditor/index.d.ts.map +1 -1
- package/dist/components/RichTextEditor/index.js +1 -1
- package/dist/components/RichTextEditor/storyblock-view.d.cts.map +1 -1
- package/dist/components/RichTextEditor/storyblock-view.d.ts.map +1 -1
- package/dist/components/RichTextEditor/style.css +91 -60
- package/dist/components/Select/index.cjs +1 -1
- package/dist/components/Select/index.js +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 -2
- package/dist/components/SelectionCard/index.js.map +1 -1
- package/dist/components/SelectionCard/style.css +20 -65
- package/dist/components/Skeleton/style.css +1 -1
- package/dist/components/Slider/style.css +12 -23
- package/dist/components/Switch/index.cjs +1 -1
- package/dist/components/Switch/index.cjs.map +1 -1
- package/dist/components/Switch/index.d.cts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +2 -1
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Switch/style.css +14 -2
- package/dist/components/TagsInput/style.css +3 -21
- package/dist/components/Time/index.cjs +1 -1
- package/dist/components/Time/index.js +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/elements.css +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +29 -29
- package/dist/internal/dialogFocus.d.cts +2 -0
- package/dist/internal/dialogFocus.d.cts.map +1 -1
- package/dist/internal/dialogFocus.d.ts +2 -0
- package/dist/internal/dialogFocus.d.ts.map +1 -1
- package/dist/message.css +5 -3
- package/dist/tokens.css +83 -309
- package/package.json +1 -1
- package/dist/chunks/ColourField-BdobU76j.cjs +0 -2
- package/dist/chunks/ColourField-BdobU76j.cjs.map +0 -1
- package/dist/chunks/ColourField-C39pcjkG.js.map +0 -1
- package/dist/chunks/RichTextEditor-B0P53GFt.js.map +0 -1
- package/dist/chunks/RichTextEditor-Wu_yjvD7.cjs +0 -2
- package/dist/chunks/RichTextEditor-Wu_yjvD7.cjs.map +0 -1
- package/dist/chunks/overlayLayer-IuoPVwTO.js.map +0 -1
- package/dist/chunks/overlayLayer-seJG-EFn.cjs +0 -2
- package/dist/chunks/overlayLayer-seJG-EFn.cjs.map +0 -1
- package/dist/components/ColourField/focus.d.cts +0 -3
- package/dist/components/ColourField/focus.d.cts.map +0 -1
- package/dist/components/ColourField/focus.d.ts +0 -3
- package/dist/components/ColourField/focus.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["forwardRef","useState","Button","require_components_Button_index","react","react_jsx_runtime","cx","parts","Switch","rest","internal","setInternal","defaultSelected","current","isSelected","invalid","className","required","onClick","event","next","onSelectedChange","children"],"sources":["../../../src/components/Switch/index.tsx"],"sourcesContent":["import { forwardRef, useState, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { Button } from \"../Button\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport interface SwitchProps extends Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n \"onChange\" | \"value\" | \"disabled\"\n> {\n /** Required state when bound to Field. */\n required?: boolean;\n isSelected?: boolean;\n defaultSelected?: boolean;\n onSelectedChange?: (isSelected: boolean) => void;\n isDisabled?: boolean;\n /** Label to the right of the track. Omit it and pass `aria-label`. */\n children?: ReactNode;\n}\n\n/** An immediate on/off — it commits as it is pressed, no Save behind it. */\nexport const Switch = forwardRef<HTMLButtonElement, SwitchProps>(function Switch(\n {\n isSelected,\n defaultSelected = false,\n onSelectedChange,\n isDisabled = false,\n required,\n className,\n children,\n onClick,\n ...rest\n },\n ref,\n) {\n const [internal, setInternal] = useState(defaultSelected);\n const current = isSelected ?? internal;\n const invalid = rest[\"aria-invalid\"] === true || rest[\"aria-invalid\"] === \"true\";\n\n return (\n <label className={cx(\"ds-switch\", className)}>\n <Button\n ref={ref}\n variant={invalid ? \"danger\" :
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["forwardRef","useState","Button","require_components_Button_index","react","react_jsx_runtime","cx","parts","Switch","rest","internal","setInternal","defaultSelected","current","isSelected","invalid","className","required","onClick","event","next","onSelectedChange","children"],"sources":["../../../src/components/Switch/index.tsx"],"sourcesContent":["import { forwardRef, useState, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { Button } from \"../Button\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport interface SwitchProps extends Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n \"onChange\" | \"value\" | \"disabled\"\n> {\n /** Required state when bound to Field. */\n required?: boolean;\n isSelected?: boolean;\n defaultSelected?: boolean;\n onSelectedChange?: (isSelected: boolean) => void;\n isDisabled?: boolean;\n /** Label to the right of the track. Omit it and pass `aria-label`. */\n children?: ReactNode;\n}\n\n/** An immediate on/off — it commits as it is pressed, no Save behind it. */\nexport const Switch = forwardRef<HTMLButtonElement, SwitchProps>(function Switch(\n {\n isSelected,\n defaultSelected = false,\n onSelectedChange,\n isDisabled = false,\n required,\n className,\n children,\n onClick,\n ...rest\n },\n ref,\n) {\n const [internal, setInternal] = useState(defaultSelected);\n const current = isSelected ?? internal;\n const invalid = rest[\"aria-invalid\"] === true || rest[\"aria-invalid\"] === \"true\";\n\n return (\n <label className={cx(\"ds-switch\", className)}>\n <Button\n ref={ref}\n variant={current ? (invalid ? \"danger\" : \"primary\") : \"neutral\"}\n data-invalid={(invalid && !current) || undefined}\n size=\"sm\"\n role=\"switch\"\n aria-checked={current}\n aria-required={required || undefined}\n isDisabled={isDisabled}\n className=\"ds-switch__track\"\n onClick={(event) => {\n onClick?.(event);\n if (event.defaultPrevented) {\n return;\n }\n const next = !current;\n if (isSelected === undefined) {\n setInternal(next);\n }\n onSelectedChange?.(next);\n }}\n {...rest}\n >\n <span\n className=\"ds-switch__knob\"\n aria-hidden=\"true\"\n />\n </Button>\n {children && <span className=\"ds-switch__label\">{children}</span>}\n </label>\n );\n});\n"],"mappings":"A,gKAIA,SAASM,EAAG,GAAGC,EAAuC,CACpD,OAAOA,EAAM,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,CACvC,CAiBA,IAAaC,GAAA,EAASR,EAAAA,WAAAA,CAA2C,SAC/D,CACE,aACA,kBAAkB,GAClB,mBACA,aAAa,GACb,WACA,YACA,WACA,UACA,GAAGS,GAEL,EACA,CACA,GAAM,CAACC,EAAUC,IAAA,EAAeV,EAAAA,SAAAA,CAASW,CAAe,EAClDC,EAAUC,GAAcJ,EACxBK,EAAUN,EAAK,kBAAoB,IAAQA,EAAK,kBAAoB,OAE1E,OACE,EAAAJ,EAAA,KAAA,CAAC,QAAD,CAAO,UAAWC,EAAG,YAAaU,CAAS,EAA3C,SAAA,EACE,EAAAX,EAAA,IAAA,CAACH,EAAAA,OAAD,CACO,MACL,QAASW,EAAWE,EAAU,SAAW,UAAa,UACtD,eAAeA,GAAW,CAACF,GAAY,IAAA,GACvC,KAAK,KACL,KAAK,SACL,eAAcA,EACd,gBAAeI,GAAY,IAAA,GACf,aACZ,UAAU,mBACV,QAAU,GAAU,CAElB,GADAC,IAAUC,CAAK,EACXA,EAAM,iBACR,OAEF,IAAMC,EAAO,CAACP,EACVC,IAAe,IAAA,IACjBH,EAAYS,CAAI,EAElBC,IAAmBD,CAAI,CACzB,EACA,GAAIX,EAEJ,UAAA,EAAAJ,EAAA,IAAA,CAAC,OAAD,CACE,UAAU,kBACV,cAAY,MACb,CAAA,CACK,CAAA,EACPiB,IAAY,EAAAjB,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,mBAAoB,UAAe,CAAA,CAC3D,C,EAEX,CAAC,E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,aAAa,CAAC;AAMrB,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,OAAO,GAAG,UAAU,CAClC;IACC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,4EAA4E;AAC5E,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,aAAa,CAAC;AAMrB,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,OAAO,GAAG,UAAU,CAClC;IACC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,4EAA4E;AAC5E,eAAO,MAAM,MAAM,2GAmDjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,aAAa,CAAC;AAMrB,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,OAAO,GAAG,UAAU,CAClC;IACC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,4EAA4E;AAC5E,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,aAAa,CAAC;AAMrB,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,OAAO,GAAG,UAAU,CAClC;IACC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,4EAA4E;AAC5E,eAAO,MAAM,MAAM,2GAmDjB,CAAC"}
|
|
@@ -11,7 +11,8 @@ var o = t(function({ isSelected: t, defaultSelected: o = !1, onSelectedChange: s
|
|
|
11
11
|
className: a("ds-switch", u),
|
|
12
12
|
children: [/* @__PURE__ */ r(e, {
|
|
13
13
|
ref: m,
|
|
14
|
-
variant: v ? "danger" :
|
|
14
|
+
variant: _ ? v ? "danger" : "primary" : "neutral",
|
|
15
|
+
"data-invalid": v && !_ || void 0,
|
|
15
16
|
size: "sm",
|
|
16
17
|
role: "switch",
|
|
17
18
|
"aria-checked": _,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["cx","parts","Switch","forwardRef","rest","internal","setInternal","useState","defaultSelected","current","isSelected","invalid","className","Button","required","onClick","event","next","onSelectedChange","children"],"sources":["../../../src/components/Switch/index.tsx"],"sourcesContent":["import { forwardRef, useState, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { Button } from \"../Button\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport interface SwitchProps extends Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n \"onChange\" | \"value\" | \"disabled\"\n> {\n /** Required state when bound to Field. */\n required?: boolean;\n isSelected?: boolean;\n defaultSelected?: boolean;\n onSelectedChange?: (isSelected: boolean) => void;\n isDisabled?: boolean;\n /** Label to the right of the track. Omit it and pass `aria-label`. */\n children?: ReactNode;\n}\n\n/** An immediate on/off — it commits as it is pressed, no Save behind it. */\nexport const Switch = forwardRef<HTMLButtonElement, SwitchProps>(function Switch(\n {\n isSelected,\n defaultSelected = false,\n onSelectedChange,\n isDisabled = false,\n required,\n className,\n children,\n onClick,\n ...rest\n },\n ref,\n) {\n const [internal, setInternal] = useState(defaultSelected);\n const current = isSelected ?? internal;\n const invalid = rest[\"aria-invalid\"] === true || rest[\"aria-invalid\"] === \"true\";\n\n return (\n <label className={cx(\"ds-switch\", className)}>\n <Button\n ref={ref}\n variant={invalid ? \"danger\" :
|
|
1
|
+
{"version":3,"file":"index.js","names":["cx","parts","Switch","forwardRef","rest","internal","setInternal","useState","defaultSelected","current","isSelected","invalid","className","Button","required","onClick","event","next","onSelectedChange","children"],"sources":["../../../src/components/Switch/index.tsx"],"sourcesContent":["import { forwardRef, useState, type ButtonHTMLAttributes, type ReactNode } from \"react\";\nimport { Button } from \"../Button\";\nimport \"./style.css\";\n\nfunction cx(...parts: (string | undefined | false)[]) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport interface SwitchProps extends Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n \"onChange\" | \"value\" | \"disabled\"\n> {\n /** Required state when bound to Field. */\n required?: boolean;\n isSelected?: boolean;\n defaultSelected?: boolean;\n onSelectedChange?: (isSelected: boolean) => void;\n isDisabled?: boolean;\n /** Label to the right of the track. Omit it and pass `aria-label`. */\n children?: ReactNode;\n}\n\n/** An immediate on/off — it commits as it is pressed, no Save behind it. */\nexport const Switch = forwardRef<HTMLButtonElement, SwitchProps>(function Switch(\n {\n isSelected,\n defaultSelected = false,\n onSelectedChange,\n isDisabled = false,\n required,\n className,\n children,\n onClick,\n ...rest\n },\n ref,\n) {\n const [internal, setInternal] = useState(defaultSelected);\n const current = isSelected ?? internal;\n const invalid = rest[\"aria-invalid\"] === true || rest[\"aria-invalid\"] === \"true\";\n\n return (\n <label className={cx(\"ds-switch\", className)}>\n <Button\n ref={ref}\n variant={current ? (invalid ? \"danger\" : \"primary\") : \"neutral\"}\n data-invalid={(invalid && !current) || undefined}\n size=\"sm\"\n role=\"switch\"\n aria-checked={current}\n aria-required={required || undefined}\n isDisabled={isDisabled}\n className=\"ds-switch__track\"\n onClick={(event) => {\n onClick?.(event);\n if (event.defaultPrevented) {\n return;\n }\n const next = !current;\n if (isSelected === undefined) {\n setInternal(next);\n }\n onSelectedChange?.(next);\n }}\n {...rest}\n >\n <span\n className=\"ds-switch__knob\"\n aria-hidden=\"true\"\n />\n </Button>\n {children && <span className=\"ds-switch__label\">{children}</span>}\n </label>\n );\n});\n"],"mappings":";;;;AAIA,SAASA,EAAG,GAAGC,GAAuC;CACpD,OAAOA,EAAM,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;AACvC;AAiBA,IAAaC,IAASC,EAA2C,SAC/D,EACE,eACA,qBAAkB,IAClB,qBACA,gBAAa,IACb,aACA,cACA,aACA,YACA,GAAGC,KAEL,GACA;CACA,IAAM,CAACC,GAAUC,KAAeC,EAASC,CAAe,GAClDC,IAAUC,KAAcL,GACxBM,IAAUP,EAAK,oBAAoB,MAAQA,EAAK,oBAAoB;CAE1E,OACE,kBAAC,SAAD;EAAO,WAAWJ,EAAG,aAAaY,CAAS;EAA3C,UAAA,CACE,kBAACC,GAAD;GACO;GACL,SAASJ,IAAWE,IAAU,WAAW,YAAa;GACtD,gBAAeA,KAAW,CAACF,KAAY,KAAA;GACvC,MAAK;GACL,MAAK;GACL,gBAAcA;GACd,iBAAeK,KAAY,KAAA;GACf;GACZ,WAAU;GACV,UAAU,MAAU;IAElB,IADAC,IAAUC,CAAK,GACXA,EAAM,kBACR;IAEF,IAAMC,IAAO,CAACR;IAId,AAHIC,MAAe,KAAA,KACjBJ,EAAYW,CAAI,GAElBC,IAAmBD,CAAI;GACzB;GACA,GAAIb;GAEJ,UAAA,kBAAC,QAAD;IACE,WAAU;IACV,eAAY;GACb,CAAA;EACK,CAAA,GACPe,KAAY,kBAAC,QAAD;GAAM,WAAU;GAAoB;EAAe,CAAA,CAC3D;;AAEX,CAAC"}
|
|
@@ -17,10 +17,22 @@
|
|
|
17
17
|
|
|
18
18
|
/* An off switch is an indicator. Button's neutral variant paints it, read
|
|
19
19
|
* from the indicator ladder instead of the control ladder. */
|
|
20
|
-
.ds-switch__track {
|
|
20
|
+
.ds-switch__track[aria-checked="false"] {
|
|
21
21
|
--fill-control: var(--fill-indicator);
|
|
22
22
|
--fill-control-hover: var(--fill-indicator-hover);
|
|
23
23
|
--fill-control-pressed: var(--fill-indicator-pressed);
|
|
24
|
+
|
|
25
|
+
box-shadow: var(--indicator-edge);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ds-switch__track[aria-checked="false"][data-invalid] {
|
|
29
|
+
--fill-control: var(--field-invalid);
|
|
30
|
+
--fill-control-hover: var(--field-invalid);
|
|
31
|
+
--fill-control-pressed: var(--field-invalid);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ds-switch__track[aria-checked="true"] {
|
|
35
|
+
box-shadow: none;
|
|
24
36
|
}
|
|
25
37
|
|
|
26
38
|
.ds-switch__knob {
|
|
@@ -30,7 +42,7 @@
|
|
|
30
42
|
inline-size: var(--switch-knob-size);
|
|
31
43
|
block-size: var(--switch-knob-size);
|
|
32
44
|
border-radius: var(--radius-pill);
|
|
33
|
-
background: var(--color-
|
|
45
|
+
background: var(--color-text-muted);
|
|
34
46
|
translate: 0 -50%;
|
|
35
47
|
transition:
|
|
36
48
|
translate var(--duration-fast) var(--ease-standard),
|
|
@@ -7,19 +7,6 @@
|
|
|
7
7
|
min-block-size: var(--field-height-md);
|
|
8
8
|
padding: var(--space-1) var(--space-2);
|
|
9
9
|
cursor: text;
|
|
10
|
-
|
|
11
|
-
/* The fill the field paints in its current state. Chips step from it. */
|
|
12
|
-
--tags-fill: var(--field-rest);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Outranks the shared skin's rest and hover fills; its invalid fill paints
|
|
16
|
-
* the same value. */
|
|
17
|
-
.ds-tags.ds-field-skin {
|
|
18
|
-
background: var(--tags-fill);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ds-tags:hover {
|
|
22
|
-
--tags-fill: var(--field-hover);
|
|
23
10
|
}
|
|
24
11
|
|
|
25
12
|
.ds-tags[data-size="sm"] {
|
|
@@ -31,18 +18,13 @@
|
|
|
31
18
|
}
|
|
32
19
|
|
|
33
20
|
.ds-tags:focus-within {
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
background: var(--field-focus);
|
|
36
22
|
outline: var(--focus-width) solid var(--color-focus);
|
|
37
23
|
outline-offset: 2px;
|
|
38
24
|
}
|
|
39
25
|
|
|
40
|
-
.ds-tags[aria-invalid="true"] {
|
|
41
|
-
--tags-fill: var(--field-invalid);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
26
|
.ds-tags[aria-invalid="true"]:focus-within {
|
|
45
|
-
|
|
27
|
+
background: var(--field-invalid-focus);
|
|
46
28
|
}
|
|
47
29
|
|
|
48
30
|
.ds-tags[data-disabled] {
|
|
@@ -64,7 +46,7 @@
|
|
|
64
46
|
font-weight: var(--font-weight-semibold);
|
|
65
47
|
|
|
66
48
|
/* A chip is a surface of its own, so its remove Button steps from it. */
|
|
67
|
-
--field-bg:
|
|
49
|
+
--field-bg: var(--color-canvas);
|
|
68
50
|
}
|
|
69
51
|
|
|
70
52
|
.ds-tags__input {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/mergeRefs-CZ-SArlE.cjs"),t=require("../../chunks/useTooltip-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/mergeRefs-CZ-SArlE.cjs"),t=require("../../chunks/useTooltip-C7ON4nkV.cjs");let n=require("react"),r=require("react/jsx-runtime");function i(...e){return e.filter(Boolean).join(` `)}var a=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],o=6e4,s=60*o,c=24*s,l=7*c;function u(e){return String(e).padStart(2,`0`)}function d(e,t={}){let{hasYear:n=!0}=t,r=`${e.getDate()} ${a[e.getMonth()]}`;return n?`${r} ${e.getFullYear()}`:r}function f(e,t={}){let{hasTimeZone:n=!0}=t,r=`${d(e)}, ${u(e.getHours())}:${u(e.getMinutes())}`;if(!n)return r;let i=new Intl.DateTimeFormat(void 0,{timeZoneName:`short`}).formatToParts(e).find(e=>e.type===`timeZoneName`)?.value;return i?`${r} ${i}`:r}function p(e,t=new Date){let n=t.getTime()-e.getTime();if(n<0)return d(e,{hasYear:e.getFullYear()!==t.getFullYear()});if(n<o)return`Just now`;if(n<s)return`${Math.floor(n/o)}m ago`;if(n<c)return`${Math.floor(n/s)}h ago`;if(n<l){let e=Math.floor(n/c);return`${e} ${e===1?`day`:`days`} ago`}return d(e,{hasYear:e.getFullYear()!==t.getFullYear()})}var m=(0,n.forwardRef)(function({value:a,format:o=`auto`,hasTooltip:s=!0,hasTimeZone:c=!0,now:l,refreshInterval:u=3e4,className:m,tabIndex:h,title:g,onMouseEnter:_,onMouseLeave:v,onFocus:y,onBlur:b,"aria-describedby":x,...S},C){let w=a instanceof Date?a:new Date(a),T=!Number.isNaN(w.getTime()),[,E]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(o===`absolute`||l)return;let e=window.setInterval(()=>E(e=>e+1),u);return()=>window.clearInterval(e)},[o,l,u]);let D=T?o===`absolute`?d(w):p(w,l??new Date):``,O=T?f(w,{hasTimeZone:c}):``,k=T&&s&&D!==O,{anchorRef:A,description:j,triggerProps:M,panel:N}=t.t(k&&O,{className:`ds-time-tooltip`}),P=(0,n.useMemo)(()=>e.t(A,C),[A,C]);return T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`time`,{ref:P,dateTime:w.toISOString(),suppressHydrationWarning:!0,className:i(`ds-time`,!k&&`ds-time--plain`,m),tabIndex:h??(k?0:void 0),"aria-describedby":[x,j].filter(Boolean).join(` `)||void 0,title:g??(k?void 0:O),...M({onMouseEnter:_,onMouseLeave:v,onFocus:y,onBlur:b}),...S,children:D}),N]}):null});exports.Time=m,exports.formatAbsoluteDate=d,exports.formatAbsoluteTime=f,exports.formatRelativeTime=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../chunks/mergeRefs-C6_5pADN.js";
|
|
2
|
-
import { t } from "../../chunks/useTooltip-
|
|
2
|
+
import { t } from "../../chunks/useTooltip-DnJEFBLg.js";
|
|
3
3
|
import { forwardRef as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
4
4
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/Time/index.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Message-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Message-CIKSTXp8.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(function({tone:t=`neutral`,title:r,description:i,onDismiss:a,role:o=`status`,className:s,...c},l){return(0,n.jsx)(e.t,{...c,ref:l,role:o,tone:t,title:r,appearance:`floating`,icon:`auto`,onDismiss:a,classPrefix:`ds-toast`,dismissLabel:`Dismiss notification`,className:[`ds-toast`,s].filter(Boolean).join(` `),children:i})}),i=(0,t.createContext)(null);function a({children:e}){let[r,a]=(0,t.useState)([]),s=(0,t.useRef)(0),c=(0,t.useCallback)(e=>{a(t=>t.filter(t=>t.id!==e))},[]),l=(0,t.useCallback)(e=>{a(t=>[...t,{...e,id:s.current++}])},[]),u=(0,t.useMemo)(()=>({toast:l,dismiss:c}),[l,c]);return(0,n.jsxs)(i.Provider,{value:u,children:[e,(0,n.jsx)(o,{items:r,onDismiss:c})]})}function o({items:e,onDismiss:t}){return e.length===0?null:(0,n.jsx)(`div`,{className:`ds-toast-region`,role:`region`,"aria-label":`Notifications`,children:e.map(e=>(0,n.jsx)(s,{item:e,onDismiss:t},e.id))})}function s({item:e,onDismiss:i}){return(0,t.useEffect)(()=>{let t=window.setTimeout(()=>i(e.id),e.duration??5e3);return()=>window.clearTimeout(t)},[e,i]),(0,n.jsx)(r,{tone:e.tone,title:e.title,description:e.description,onDismiss:()=>i(e.id)})}function c(){let e=(0,t.useContext)(i);if(!e)throw Error(`useToast must be used inside a <ToastProvider>.`);return e}exports.Toast=r,exports.ToastProvider=a,exports.useToast=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/Message-
|
|
1
|
+
import { t as e } from "../../chunks/Message-C73sJfdo.js";
|
|
2
2
|
import { createContext as t, forwardRef as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
3
3
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/Toast/index.tsx
|
package/dist/elements.css
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunks/Icon-CD3oeiNA.cjs"),t=require("./components/Button/index.cjs"),n=require("./chunks/Drawer-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunks/Icon-CD3oeiNA.cjs"),t=require("./components/Button/index.cjs"),n=require("./chunks/Drawer-DdIH9jpe.cjs"),r=require("./chunks/overlayLayer-iGhuAByk.cjs"),i=require("./components/SideNav/index.cjs"),a=require("./components/TopNav/index.cjs"),o=require("./components/AppShell/index.cjs"),s=require("./components/ButtonGroup/index.cjs"),c=require("./components/Badge/index.cjs"),l=require("./components/LimitReading/index.cjs"),u=require("./components/Field/index.cjs"),d=require("./components/Modal/index.cjs"),f=require("./components/TextField/index.cjs"),p=require("./chunks/RichTextEditor--kMao88d.cjs"),m=require("./components/Popover/index.cjs"),h=require("./components/Menu/index.cjs"),g=require("./components/Skeleton/index.cjs"),_=require("./components/Banner/index.cjs"),v=require("./chunks/LoadState-BXLG-SkQ.cjs"),y=require("./components/FieldAffix/index.cjs"),b=require("./components/SearchField/index.cjs"),x=require("./components/Grid/index.cjs"),S=require("./components/Choice/index.cjs"),C=require("./components/Container/index.cjs"),w=require("./components/SortableList/index.cjs"),T=require("./chunks/EntryPicker-CCCoJxbd.cjs"),E=require("./chunks/NumberField-BrWFmPkW.cjs"),D=require("./components/Select/index.cjs"),O=require("./components/Switch/index.cjs"),k=require("./chunks/Slider-BfvNPjRJ.cjs"),A=require("./chunks/ColourField-DuoVeXjG.cjs"),j=require("./chunks/DatePicker-BYpGsfL4.cjs"),M=require("./components/TagsInput/index.cjs"),N=require("./components/SelectionCard/index.cjs"),P=require("./chunks/FormEditor-ArvjKtJJ.cjs"),F=require("./chunks/Board-CNVy8gHI.cjs"),I=require("./chunks/Avatar-BY0dAItT.cjs"),L=require("./components/Table/index.cjs"),R=require("./components/Toast/index.cjs"),z=require("./components/SubNav/index.cjs"),B=require("./components/Stepper/index.cjs"),V=require("./components/AssetCard/index.cjs"),H=require("./components/AssetGrid/index.cjs"),U=require("./components/ImageCropper/index.cjs"),W=require("./components/Time/index.cjs"),G=require("./components/Pagination/index.cjs"),K=require("./components/EditLayout/index.cjs"),q=require("./chunks/CollectionView-CIJdNwcq.cjs"),J=require("./components/EditSection/index.cjs"),Y=require("./components/PageHeader/index.cjs"),X=require("./components/MetaList/index.cjs"),Z=require("./chunks/Wizard-B_CPW1V6.cjs");exports.AppShell=o.AppShell,exports.AssetCard=V.AssetCard,exports.AssetCardSkeleton=V.AssetCardSkeleton,exports.AssetGrid=H.AssetGrid,exports.AssetGridEmpty=H.AssetGridEmpty,exports.Avatar=I.t,exports.AvatarGroup=I.n,exports.Badge=c.Badge,exports.Banner=_.Banner,exports.Board=F.t,exports.BoardCard=F.n,exports.BoardColumn=F.r,exports.Button=t.Button,exports.ButtonGroup=s.ButtonGroup,exports.Calendar=j.t,exports.Checkbox=S.Checkbox,exports.CheckboxCard=N.CheckboxCard,exports.ChoiceGroup=S.ChoiceGroup,exports.CollectionEmpty=q.n,exports.CollectionView=q.t,exports.ColourField=A.t,exports.ColourPanel=A.n,exports.Container=C.Container,exports.DateField=j.n,exports.DateRangeField=j.r,exports.Drawer=n.t,exports.EditLayout=K.EditLayout,exports.EditSection=J.EditSection,exports.EntryPicker=T.t,exports.Field=u.Field,exports.FieldAffix=y.FieldAffix,exports.FormEditor=P.t,exports.Grid=x.Grid,exports.GridItem=x.GridItem,exports.Icon=e.t,exports.ImageCropper=U.ImageCropper,exports.LimitReading=l.LimitReading,exports.LoadError=v.r,exports.LoadState=v.t,exports.Menu=h.Menu,exports.MenuItem=h.MenuItem,exports.MenuLabel=h.MenuLabel,exports.MenuSeparator=h.MenuSeparator,exports.MetaList=X.MetaList,exports.Modal=d.Modal,exports.NumberField=E.t,exports.NumberRangeField=E.n,exports.OverlayLayer=r.n,exports.PageHeader=Y.PageHeader,exports.Pagination=G.Pagination,exports.Popover=m.Popover,exports.Radio=S.Radio,exports.RadioCard=N.RadioCard,exports.RangeSlider=k.t,exports.ReviewTable=Z.n,exports.RichTextEditor=p.t,exports.SearchField=b.SearchField,exports.Select=D.Select,exports.SelectionCardGroup=N.SelectionCardGroup,exports.SideNav=i.SideNav,exports.SideNavFooter=i.SideNavFooter,exports.SideNavHeader=i.SideNavHeader,exports.SideNavItem=i.SideNavItem,exports.SideNavSection=i.SideNavSection,exports.Skeleton=g.Skeleton,exports.SkeletonText=g.SkeletonText,exports.Slider=k.n,exports.SortableList=w.SortableList,exports.SortableListItem=w.SortableListItem,exports.Stack=x.Stack,exports.Stepper=B.Stepper,exports.SubNav=z.SubNav,exports.SubNavButton=z.SubNavButton,exports.SubNavItem=z.SubNavItem,exports.Switch=O.Switch,exports.Table=L.Table,exports.TableBody=L.TableBody,exports.TableCell=L.TableCell,exports.TableEmpty=L.TableEmpty,exports.TableFrame=L.TableFrame,exports.TableHead=L.TableHead,exports.TableHeaderCell=L.TableHeaderCell,exports.TableRow=L.TableRow,exports.TableToolbar=L.TableToolbar,exports.TagsInput=M.TagsInput,exports.TextArea=f.TextArea,exports.TextField=f.TextField,exports.Time=W.Time,exports.Toast=R.Toast,exports.ToastProvider=R.ToastProvider,exports.TopNav=a.TopNav,exports.TopNavItem=a.TopNavItem,exports.Wizard=Z.t,exports.cropToBlob=U.cropToBlob,exports.formatAbsoluteDate=W.formatAbsoluteDate,exports.formatAbsoluteTime=W.formatAbsoluteTime,exports.formatIsoDate=j.i,exports.formatRelativeTime=W.formatRelativeTime,exports.iconNames=e.n,exports.icons=e.r,exports.useSideNavCollapsed=i.useSideNavCollapsed,exports.useToast=R.useToast,exports.validateFormValues=P.n;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./chunks/Icon-CYXOo0Kt.js";
|
|
2
2
|
import { Button as r } from "./components/Button/index.js";
|
|
3
|
-
import { t as i } from "./chunks/Drawer-
|
|
4
|
-
import { n as a } from "./chunks/overlayLayer-
|
|
3
|
+
import { t as i } from "./chunks/Drawer-Ck5XKT_V.js";
|
|
4
|
+
import { n as a } from "./chunks/overlayLayer-lU4iWSjO.js";
|
|
5
5
|
import { SideNav as o, SideNavFooter as s, SideNavHeader as c, SideNavItem as l, SideNavSection as u, useSideNavCollapsed as d } from "./components/SideNav/index.js";
|
|
6
6
|
import { TopNav as f, TopNavItem as p } from "./components/TopNav/index.js";
|
|
7
7
|
import { AppShell as m } from "./components/AppShell/index.js";
|
|
@@ -11,31 +11,31 @@ import { LimitReading as _ } from "./components/LimitReading/index.js";
|
|
|
11
11
|
import { Field as v } from "./components/Field/index.js";
|
|
12
12
|
import { Modal as y } from "./components/Modal/index.js";
|
|
13
13
|
import { TextArea as b, TextField as x } from "./components/TextField/index.js";
|
|
14
|
-
import { t as S } from "./chunks/RichTextEditor-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
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 { n as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { n as
|
|
36
|
-
import { n as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
14
|
+
import { t as S } from "./chunks/RichTextEditor-CvbboqJY.js";
|
|
15
|
+
import { Popover as C } from "./components/Popover/index.js";
|
|
16
|
+
import { Menu as w, MenuItem as T, MenuLabel as E, MenuSeparator as D } from "./components/Menu/index.js";
|
|
17
|
+
import { Skeleton as O, SkeletonText as k } from "./components/Skeleton/index.js";
|
|
18
|
+
import { Banner as A } from "./components/Banner/index.js";
|
|
19
|
+
import { r as j, t as M } from "./chunks/LoadState-B056EPu7.js";
|
|
20
|
+
import { FieldAffix as N } from "./components/FieldAffix/index.js";
|
|
21
|
+
import { SearchField as P } from "./components/SearchField/index.js";
|
|
22
|
+
import { Grid as F, GridItem as I, Stack as L } from "./components/Grid/index.js";
|
|
23
|
+
import { Checkbox as R, ChoiceGroup as z, Radio as B } from "./components/Choice/index.js";
|
|
24
|
+
import { Container as V } from "./components/Container/index.js";
|
|
25
|
+
import { SortableList as H, SortableListItem as U } from "./components/SortableList/index.js";
|
|
26
|
+
import { t as W } from "./chunks/EntryPicker-DLCP4S-q.js";
|
|
27
|
+
import { n as G, t as K } from "./chunks/NumberField-C90eJGny.js";
|
|
28
|
+
import { Select as q } from "./components/Select/index.js";
|
|
29
|
+
import { Switch as J } from "./components/Switch/index.js";
|
|
30
|
+
import { n as Y, t as X } from "./chunks/Slider-Cab6NqhK.js";
|
|
31
|
+
import { n as Z, t as Q } from "./chunks/ColourField-BTj9NHgI.js";
|
|
32
|
+
import { i as $, n as ee, r as te, t as ne } from "./chunks/DatePicker-Cb5WspIC.js";
|
|
33
|
+
import { TagsInput as re } from "./components/TagsInput/index.js";
|
|
34
|
+
import { CheckboxCard as ie, RadioCard as ae, SelectionCardGroup as oe } from "./components/SelectionCard/index.js";
|
|
35
|
+
import { n as se, t as ce } from "./chunks/FormEditor-DnNBv9Xf.js";
|
|
36
|
+
import { n as le, r as ue, t as de } from "./chunks/Board-BCS7sDXg.js";
|
|
37
|
+
import { n as fe, t as pe } from "./chunks/Avatar-UjhjcHh5.js";
|
|
38
|
+
import { Table as me, TableBody as he, TableCell as ge, TableEmpty as _e, TableFrame as ve, TableHead as ye, TableHeaderCell as be, TableRow as xe, TableToolbar as Se } from "./components/Table/index.js";
|
|
39
39
|
import { Toast as Ce, ToastProvider as we, useToast as Te } from "./components/Toast/index.js";
|
|
40
40
|
import { SubNav as Ee, SubNavButton as De, SubNavItem as Oe } from "./components/SubNav/index.js";
|
|
41
41
|
import { Stepper as ke } from "./components/Stepper/index.js";
|
|
@@ -45,9 +45,9 @@ import { ImageCropper as Pe, cropToBlob as Fe } from "./components/ImageCropper/
|
|
|
45
45
|
import { Time as Ie, formatAbsoluteDate as Le, formatAbsoluteTime as Re, formatRelativeTime as ze } from "./components/Time/index.js";
|
|
46
46
|
import { Pagination as Be } from "./components/Pagination/index.js";
|
|
47
47
|
import { EditLayout as Ve } from "./components/EditLayout/index.js";
|
|
48
|
-
import { n as He, t as Ue } from "./chunks/CollectionView-
|
|
48
|
+
import { n as He, t as Ue } from "./chunks/CollectionView-JRNdXHti.js";
|
|
49
49
|
import { EditSection as We } from "./components/EditSection/index.js";
|
|
50
50
|
import { PageHeader as Ge } from "./components/PageHeader/index.js";
|
|
51
51
|
import { MetaList as Ke } from "./components/MetaList/index.js";
|
|
52
52
|
import { n as qe, t as Je } from "./chunks/Wizard-C1iR5z44.js";
|
|
53
|
-
export { m as AppShell, Ae as AssetCard, je as AssetCardSkeleton, Me as AssetGrid, Ne as AssetGridEmpty,
|
|
53
|
+
export { m as AppShell, Ae as AssetCard, je as AssetCardSkeleton, Me as AssetGrid, Ne as AssetGridEmpty, pe as Avatar, fe as AvatarGroup, g as Badge, A as Banner, de as Board, le as BoardCard, ue as BoardColumn, r as Button, h as ButtonGroup, ne as Calendar, R as Checkbox, ie as CheckboxCard, z as ChoiceGroup, He as CollectionEmpty, Ue as CollectionView, Q as ColourField, Z as ColourPanel, V as Container, ee as DateField, te as DateRangeField, i as Drawer, Ve as EditLayout, We as EditSection, W as EntryPicker, v as Field, N as FieldAffix, ce as FormEditor, F as Grid, I as GridItem, n as Icon, Pe as ImageCropper, _ as LimitReading, j as LoadError, M as LoadState, w as Menu, T as MenuItem, E as MenuLabel, D as MenuSeparator, Ke as MetaList, y as Modal, K as NumberField, G as NumberRangeField, a as OverlayLayer, Ge as PageHeader, Be as Pagination, C as Popover, B as Radio, ae as RadioCard, X as RangeSlider, qe as ReviewTable, S as RichTextEditor, P as SearchField, q as Select, oe as SelectionCardGroup, o as SideNav, s as SideNavFooter, c as SideNavHeader, l as SideNavItem, u as SideNavSection, O as Skeleton, k as SkeletonText, Y as Slider, H as SortableList, U as SortableListItem, L as Stack, ke as Stepper, Ee as SubNav, De as SubNavButton, Oe as SubNavItem, J as Switch, me as Table, he as TableBody, ge as TableCell, _e as TableEmpty, ve as TableFrame, ye as TableHead, be as TableHeaderCell, xe as TableRow, Se as TableToolbar, re as TagsInput, b as TextArea, x as TextField, Ie as Time, Ce as Toast, we as ToastProvider, f as TopNav, p as TopNavItem, Je as Wizard, Fe as cropToBlob, Le as formatAbsoluteDate, Re as formatAbsoluteTime, $ as formatIsoDate, ze as formatRelativeTime, e as iconNames, t as icons, d as useSideNavCollapsed, Te as useToast, se as validateFormValues };
|
|
@@ -24,4 +24,6 @@ export declare function panelHoldsFocus(panel: HTMLElement, active: Element | nu
|
|
|
24
24
|
* Tab inside a popup the panel owns is left to the popup and the browser.
|
|
25
25
|
*/
|
|
26
26
|
export declare function trapTabFocus(event: KeyboardEvent, panel: HTMLElement | null): void;
|
|
27
|
+
/** Continue after the composed field, respecting an enclosing modal's focus boundary. */
|
|
28
|
+
export declare function focusAfterField(root: HTMLElement): void;
|
|
27
29
|
//# sourceMappingURL=dialogFocus.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogFocus.d.cts","sourceRoot":"","sources":["../../src/internal/dialogFocus.ts"],"names":[],"mappings":"AAuBA,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,WAOtD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,YAAY,WAY3E;AAaD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,WAAW,iBAUtD;AAID;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,cAK5D;AAyBD,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,WAEzE;AAOD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,QA4B3E"}
|
|
1
|
+
{"version":3,"file":"dialogFocus.d.cts","sourceRoot":"","sources":["../../src/internal/dialogFocus.ts"],"names":[],"mappings":"AAuBA,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,WAOtD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,YAAY,WAY3E;AAaD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,WAAW,iBAUtD;AAID;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,cAK5D;AAyBD,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,WAEzE;AAOD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,QA4B3E;AAED,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,QAMhD"}
|
|
@@ -24,4 +24,6 @@ export declare function panelHoldsFocus(panel: HTMLElement, active: Element | nu
|
|
|
24
24
|
* Tab inside a popup the panel owns is left to the popup and the browser.
|
|
25
25
|
*/
|
|
26
26
|
export declare function trapTabFocus(event: KeyboardEvent, panel: HTMLElement | null): void;
|
|
27
|
+
/** Continue after the composed field, respecting an enclosing modal's focus boundary. */
|
|
28
|
+
export declare function focusAfterField(root: HTMLElement): void;
|
|
27
29
|
//# sourceMappingURL=dialogFocus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogFocus.d.ts","sourceRoot":"","sources":["../../src/internal/dialogFocus.ts"],"names":[],"mappings":"AAuBA,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,WAOtD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,YAAY,WAY3E;AAaD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,WAAW,iBAUtD;AAID;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,cAK5D;AAyBD,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,WAEzE;AAOD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,QA4B3E"}
|
|
1
|
+
{"version":3,"file":"dialogFocus.d.ts","sourceRoot":"","sources":["../../src/internal/dialogFocus.ts"],"names":[],"mappings":"AAuBA,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,WAOtD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,YAAY,WAY3E;AAaD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,WAAW,iBAUtD;AAID;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,cAK5D;AAyBD,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,WAEzE;AAOD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,QA4B3E;AAED,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,QAMhD"}
|
package/dist/message.css
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
/* Shared by Banner and Toast. Text colour and font are inherited from the
|
|
3
|
-
* page, as Toast always did. The root
|
|
4
|
-
*
|
|
3
|
+
* page, as Toast always did. The root is not a field surface, so a neutral
|
|
4
|
+
* message reads the neutral control fill of the ground it sits on, whether
|
|
5
|
+
* canvas, card, sidebar or band. Its body and dismiss button carry
|
|
6
|
+
* .ds-field-surface, so their controls re-derive against the message fill. */
|
|
5
7
|
.ds-message {
|
|
6
|
-
--message-soft: var(--
|
|
8
|
+
--message-soft: var(--fill-control);
|
|
7
9
|
--message-ink: var(--color-text);
|
|
8
10
|
--message-ink-strong: var(--color-text);
|
|
9
11
|
--field-bg: var(--message-soft);
|