@namroodinc/liquid-editorial 0.6.9 → 0.8.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 +55 -7
- package/UPGRADING.md +436 -0
- package/dist/chunks/{Avatar-DdFEOumt.js → Avatar-6t78C9Np.js} +2 -2
- package/dist/chunks/{Avatar-DdFEOumt.js.map → Avatar-6t78C9Np.js.map} +1 -1
- package/dist/chunks/{Avatar-B_2lI7fS.cjs → Avatar-Cvj_DqG0.cjs} +2 -2
- package/dist/chunks/{Avatar-B_2lI7fS.cjs.map → Avatar-Cvj_DqG0.cjs.map} +1 -1
- package/dist/chunks/CollectionView-B18Ihv7X.cjs +2 -0
- package/dist/chunks/CollectionView-B18Ihv7X.cjs.map +1 -0
- package/dist/chunks/{CollectionView-Cr12UFWa.js → CollectionView-C-SwkPWC.js} +28 -29
- package/dist/chunks/CollectionView-C-SwkPWC.js.map +1 -0
- package/dist/chunks/ColourField-Dohdx7eW.cjs +2 -0
- package/dist/chunks/ColourField-Dohdx7eW.cjs.map +1 -0
- package/dist/chunks/{ColourField-DC6cLb9h.js → ColourField-DzZ--mQZ.js} +122 -122
- package/dist/chunks/ColourField-DzZ--mQZ.js.map +1 -0
- package/dist/chunks/DatePicker-Bjc4D8Kg.cjs +2 -0
- package/dist/chunks/DatePicker-Bjc4D8Kg.cjs.map +1 -0
- package/dist/chunks/DatePicker-DZVOtzoU.js +298 -0
- package/dist/chunks/DatePicker-DZVOtzoU.js.map +1 -0
- package/dist/chunks/Drawer-CcVF_p4b.cjs +2 -0
- package/dist/chunks/Drawer-CcVF_p4b.cjs.map +1 -0
- package/dist/chunks/Drawer-uhJvy3s9.js +172 -0
- package/dist/chunks/Drawer-uhJvy3s9.js.map +1 -0
- package/dist/chunks/EntryPicker-CBquan7o.js +685 -0
- package/dist/chunks/EntryPicker-CBquan7o.js.map +1 -0
- package/dist/chunks/EntryPicker-Dq72wjTt.cjs +2 -0
- package/dist/chunks/EntryPicker-Dq72wjTt.cjs.map +1 -0
- package/dist/chunks/FormEditor-CTcnpR51.cjs +2 -0
- package/dist/chunks/FormEditor-CTcnpR51.cjs.map +1 -0
- package/dist/chunks/{FormEditor-BkBhcYI5.js → FormEditor-D0J3JN-H.js} +221 -188
- package/dist/chunks/FormEditor-D0J3JN-H.js.map +1 -0
- package/dist/chunks/{LoadState-B7GTDlWv.js → LoadState-B056EPu7.js} +20 -19
- package/dist/chunks/LoadState-B056EPu7.js.map +1 -0
- package/dist/chunks/LoadState-BXLG-SkQ.cjs +2 -0
- package/dist/chunks/LoadState-BXLG-SkQ.cjs.map +1 -0
- package/dist/chunks/NumberField-CVsK4l9P.js +178 -0
- package/dist/chunks/NumberField-CVsK4l9P.js.map +1 -0
- package/dist/chunks/NumberField-Ccjpa_1d.cjs +2 -0
- package/dist/chunks/NumberField-Ccjpa_1d.cjs.map +1 -0
- package/dist/chunks/{RichTextEditor-CNkwWist.js → RichTextEditor-B6H6_3wk.js} +28 -28
- package/dist/chunks/{RichTextEditor-CNkwWist.js.map → RichTextEditor-B6H6_3wk.js.map} +1 -1
- package/dist/chunks/RichTextEditor-BIopdEDA.cjs +2 -0
- package/dist/chunks/RichTextEditor-BIopdEDA.cjs.map +1 -0
- package/dist/chunks/Slider-BfvNPjRJ.cjs +2 -0
- package/dist/chunks/Slider-BfvNPjRJ.cjs.map +1 -0
- package/dist/chunks/Slider-Cab6NqhK.js +168 -0
- package/dist/chunks/Slider-Cab6NqhK.js.map +1 -0
- package/dist/chunks/decimal-Ca7qJExZ.cjs +2 -0
- package/dist/chunks/decimal-Ca7qJExZ.cjs.map +1 -0
- package/dist/chunks/decimal-hq_W9D3s.js +15 -0
- package/dist/chunks/decimal-hq_W9D3s.js.map +1 -0
- package/dist/chunks/dialogLabel-3EeaH1Zl.cjs +2 -0
- package/dist/chunks/dialogLabel-3EeaH1Zl.cjs.map +1 -0
- package/dist/chunks/dialogLabel-BjtTix5C.js +176 -0
- package/dist/chunks/dialogLabel-BjtTix5C.js.map +1 -0
- package/dist/chunks/frame-BtIh7K-M.cjs +2 -0
- package/dist/chunks/frame-BtIh7K-M.cjs.map +1 -0
- package/dist/chunks/frame-CycTDnzE.js +164 -0
- package/dist/chunks/frame-CycTDnzE.js.map +1 -0
- package/dist/chunks/{group-C6EOgTgM.js → group-67F_I1yw.js} +3 -3
- package/dist/chunks/{group-C6EOgTgM.js.map → group-67F_I1yw.js.map} +1 -1
- package/dist/chunks/{group-QSnlx4jX.cjs → group-BSJHLagi.cjs} +2 -2
- package/dist/chunks/{group-QSnlx4jX.cjs.map → group-BSJHLagi.cjs.map} +1 -1
- package/dist/chunks/limit-BBnpe9o9.cjs +2 -0
- package/dist/chunks/limit-BBnpe9o9.cjs.map +1 -0
- package/dist/chunks/limit-BHHST_0G.js +15 -0
- package/dist/chunks/limit-BHHST_0G.js.map +1 -0
- package/dist/chunks/overlayLayer-BgnMskpk.js +158 -0
- package/dist/chunks/overlayLayer-BgnMskpk.js.map +1 -0
- package/dist/chunks/overlayLayer-YVudmo27.cjs +2 -0
- package/dist/chunks/overlayLayer-YVudmo27.cjs.map +1 -0
- package/dist/chunks/{useLimit-BOmHKdJE.js → useLimit-C471qZ4H.js} +2 -2
- package/dist/chunks/useLimit-C471qZ4H.js.map +1 -0
- package/dist/chunks/{useLimit-DXe_VmYl.cjs → useLimit-WWWDacob.cjs} +2 -2
- package/dist/chunks/useLimit-WWWDacob.cjs.map +1 -0
- package/dist/chunks/useTooltip-DajWQyNL.js +75 -0
- package/dist/chunks/useTooltip-DajWQyNL.js.map +1 -0
- package/dist/chunks/useTooltip-DtrE7QYu.cjs +2 -0
- package/dist/chunks/useTooltip-DtrE7QYu.cjs.map +1 -0
- package/dist/components/AppShell/index.cjs +1 -1
- package/dist/components/AppShell/index.cjs.map +1 -1
- package/dist/components/AppShell/index.js +4 -4
- package/dist/components/AppShell/index.js.map +1 -1
- package/dist/components/Avatar/index.cjs +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/index.cjs +1 -1
- package/dist/components/Badge/index.cjs.map +1 -1
- package/dist/components/Badge/index.d.cts +3 -0
- package/dist/components/Badge/index.d.cts.map +1 -1
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +11 -10
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Badge/style.css +25 -2
- package/dist/components/Button/index.cjs.map +1 -1
- package/dist/components/Button/index.d.cts +4 -2
- package/dist/components/Button/index.d.cts.map +1 -1
- package/dist/components/Button/index.d.ts +4 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Choice/index.cjs +1 -1
- package/dist/components/Choice/index.js +1 -1
- package/dist/components/CollectionView/filters.d.cts.map +1 -1
- package/dist/components/CollectionView/filters.d.ts.map +1 -1
- 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/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.d.cts.map +1 -1
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Drawer/content.d.cts +27 -0
- package/dist/components/Drawer/content.d.cts.map +1 -0
- package/dist/components/Drawer/content.d.ts +27 -0
- package/dist/components/Drawer/content.d.ts.map +1 -0
- package/dist/components/Drawer/head.d.cts +10 -0
- package/dist/components/Drawer/head.d.cts.map +1 -0
- package/dist/components/Drawer/head.d.ts +10 -0
- package/dist/components/Drawer/head.d.ts.map +1 -0
- package/dist/components/Drawer/index.cjs +1 -2
- package/dist/components/Drawer/index.d.cts +21 -0
- package/dist/components/Drawer/index.d.cts.map +1 -1
- package/dist/components/Drawer/index.d.ts +21 -0
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +1 -102
- package/dist/components/Drawer/style.css +67 -0
- package/dist/components/EditLayout/index.cjs +1 -1
- package/dist/components/EditLayout/index.cjs.map +1 -1
- package/dist/components/EditLayout/index.js +10 -10
- package/dist/components/EditLayout/index.js.map +1 -1
- package/dist/components/EntryPicker/chosen.d.cts +16 -0
- package/dist/components/EntryPicker/chosen.d.cts.map +1 -0
- package/dist/components/EntryPicker/chosen.d.ts +16 -0
- package/dist/components/EntryPicker/chosen.d.ts.map +1 -0
- package/dist/components/EntryPicker/dialog.d.cts +22 -0
- package/dist/components/EntryPicker/dialog.d.cts.map +1 -0
- package/dist/components/EntryPicker/dialog.d.ts +22 -0
- package/dist/components/EntryPicker/dialog.d.ts.map +1 -0
- package/dist/components/EntryPicker/feedback.d.cts +20 -0
- package/dist/components/EntryPicker/feedback.d.cts.map +1 -0
- package/dist/components/EntryPicker/feedback.d.ts +20 -0
- package/dist/components/EntryPicker/feedback.d.ts.map +1 -0
- package/dist/components/EntryPicker/index.cjs +1 -1
- package/dist/components/EntryPicker/index.d.cts +4 -38
- package/dist/components/EntryPicker/index.d.cts.map +1 -1
- package/dist/components/EntryPicker/index.d.ts +4 -38
- package/dist/components/EntryPicker/index.d.ts.map +1 -1
- package/dist/components/EntryPicker/index.js +1 -1
- package/dist/components/EntryPicker/item.d.cts +10 -0
- package/dist/components/EntryPicker/item.d.cts.map +1 -0
- package/dist/components/EntryPicker/item.d.ts +10 -0
- package/dist/components/EntryPicker/item.d.ts.map +1 -0
- package/dist/components/EntryPicker/results.d.cts +11 -0
- package/dist/components/EntryPicker/results.d.cts.map +1 -0
- package/dist/components/EntryPicker/results.d.ts +11 -0
- package/dist/components/EntryPicker/results.d.ts.map +1 -0
- package/dist/components/EntryPicker/selected-items.d.cts +11 -0
- package/dist/components/EntryPicker/selected-items.d.cts.map +1 -0
- package/dist/components/EntryPicker/selected-items.d.ts +11 -0
- package/dist/components/EntryPicker/selected-items.d.ts.map +1 -0
- package/dist/components/EntryPicker/style.css +129 -14
- package/dist/components/EntryPicker/types.d.cts +61 -0
- package/dist/components/EntryPicker/types.d.cts.map +1 -0
- package/dist/components/EntryPicker/types.d.ts +61 -0
- package/dist/components/EntryPicker/types.d.ts.map +1 -0
- package/dist/components/EntryPicker/use-picker-data.d.cts +40 -0
- package/dist/components/EntryPicker/use-picker-data.d.cts.map +1 -0
- package/dist/components/EntryPicker/use-picker-data.d.ts +40 -0
- package/dist/components/EntryPicker/use-picker-data.d.ts.map +1 -0
- package/dist/components/EntryPicker/use-selected-items.d.cts +21 -0
- package/dist/components/EntryPicker/use-selected-items.d.cts.map +1 -0
- package/dist/components/EntryPicker/use-selected-items.d.ts +21 -0
- package/dist/components/EntryPicker/use-selected-items.d.ts.map +1 -0
- package/dist/components/Field/frame.d.cts.map +1 -1
- package/dist/components/Field/frame.d.ts.map +1 -1
- package/dist/components/Field/index.cjs +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/Field/{limit-reading.d.cts → limit-announcer.d.cts} +1 -4
- package/dist/components/Field/limit-announcer.d.cts.map +1 -0
- package/dist/components/Field/{limit-reading.d.ts → limit-announcer.d.ts} +1 -4
- package/dist/components/Field/limit-announcer.d.ts.map +1 -0
- package/dist/components/Field/limit.d.cts +1 -5
- package/dist/components/Field/limit.d.cts.map +1 -1
- package/dist/components/Field/limit.d.ts +1 -5
- package/dist/components/Field/limit.d.ts.map +1 -1
- package/dist/components/Field/style.css +0 -39
- package/dist/components/Field/types.d.cts +7 -3
- package/dist/components/Field/types.d.cts.map +1 -1
- package/dist/components/Field/types.d.ts +7 -3
- package/dist/components/Field/types.d.ts.map +1 -1
- package/dist/components/Field/useLimit.d.cts +1 -1
- package/dist/components/Field/useLimit.d.cts.map +1 -1
- package/dist/components/Field/useLimit.d.ts +1 -1
- package/dist/components/Field/useLimit.d.ts.map +1 -1
- package/dist/components/FormEditor/README.md +133 -14
- package/dist/components/FormEditor/control.d.cts +3 -2
- package/dist/components/FormEditor/control.d.cts.map +1 -1
- package/dist/components/FormEditor/control.d.ts +3 -2
- 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 +3 -2
- package/dist/components/FormEditor/index.d.cts.map +1 -1
- package/dist/components/FormEditor/index.d.ts +3 -2
- 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 +19 -6
- package/dist/components/FormEditor/model.d.cts.map +1 -1
- package/dist/components/FormEditor/model.d.ts +19 -6
- package/dist/components/FormEditor/model.d.ts.map +1 -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/LimitReading/index.cjs +2 -0
- package/dist/components/LimitReading/index.cjs.map +1 -0
- package/dist/components/LimitReading/index.d.cts +5 -0
- package/dist/components/LimitReading/index.d.cts.map +1 -0
- package/dist/components/LimitReading/index.d.ts +5 -0
- package/dist/components/LimitReading/index.d.ts.map +1 -0
- package/dist/components/LimitReading/index.js +66 -0
- package/dist/components/LimitReading/index.js.map +1 -0
- package/dist/components/LimitReading/limit.d.cts +9 -0
- package/dist/components/LimitReading/limit.d.cts.map +1 -0
- package/dist/components/LimitReading/limit.d.ts +9 -0
- package/dist/components/LimitReading/limit.d.ts.map +1 -0
- package/dist/components/LimitReading/style.css +69 -0
- package/dist/components/LimitReading/types.d.cts +14 -0
- package/dist/components/LimitReading/types.d.cts.map +1 -0
- package/dist/components/LimitReading/types.d.ts +14 -0
- package/dist/components/LimitReading/types.d.ts.map +1 -0
- package/dist/components/LoadState/error.d.cts +3 -1
- package/dist/components/LoadState/error.d.cts.map +1 -1
- package/dist/components/LoadState/error.d.ts +3 -1
- package/dist/components/LoadState/error.d.ts.map +1 -1
- package/dist/components/LoadState/index.cjs +1 -1
- package/dist/components/LoadState/index.d.cts +3 -1
- package/dist/components/LoadState/index.d.cts.map +1 -1
- package/dist/components/LoadState/index.d.ts +3 -1
- package/dist/components/LoadState/index.d.ts.map +1 -1
- package/dist/components/LoadState/index.js +1 -1
- package/dist/components/Menu/index.cjs +1 -1
- package/dist/components/Menu/index.cjs.map +1 -1
- package/dist/components/Menu/index.d.cts.map +1 -1
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +50 -49
- package/dist/components/Menu/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 +9 -0
- package/dist/components/Modal/index.d.cts.map +1 -1
- package/dist/components/Modal/index.d.ts +9 -0
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +71 -64
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/style.css +16 -0
- package/dist/components/NumberField/index.cjs +1 -2
- package/dist/components/NumberField/index.d.cts +10 -3
- package/dist/components/NumberField/index.d.cts.map +1 -1
- package/dist/components/NumberField/index.d.ts +10 -3
- package/dist/components/NumberField/index.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +1 -128
- package/dist/components/NumberField/step.d.cts +29 -0
- package/dist/components/NumberField/step.d.cts.map +1 -0
- package/dist/components/NumberField/step.d.ts +29 -0
- package/dist/components/NumberField/step.d.ts.map +1 -0
- package/dist/components/NumberField/style.css +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 +1 -1
- package/dist/components/Popover/index.d.cts.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +57 -55
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Popover/style.css +6 -0
- package/dist/components/Popover/useTooltip.d.cts +2 -1
- package/dist/components/Popover/useTooltip.d.cts.map +1 -1
- package/dist/components/Popover/useTooltip.d.ts +2 -1
- package/dist/components/Popover/useTooltip.d.ts.map +1 -1
- package/dist/components/RichTextEditor/index.cjs +1 -1
- package/dist/components/RichTextEditor/index.js +1 -1
- package/dist/components/SearchField/index.cjs +1 -1
- package/dist/components/SearchField/index.cjs.map +1 -1
- package/dist/components/SearchField/index.d.cts +6 -1
- package/dist/components/SearchField/index.d.cts.map +1 -1
- package/dist/components/SearchField/index.d.ts +6 -1
- package/dist/components/SearchField/index.d.ts.map +1 -1
- package/dist/components/SearchField/index.js +32 -26
- package/dist/components/SearchField/index.js.map +1 -1
- package/dist/components/Select/index.cjs +1 -1
- package/dist/components/Select/index.cjs.map +1 -1
- package/dist/components/Select/index.d.cts.map +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +73 -72
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/SelectionCard/index.cjs +1 -1
- package/dist/components/SelectionCard/index.js +1 -1
- package/dist/components/Slider/index.cjs +1 -1
- package/dist/components/Slider/index.d.cts.map +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Slider/scale.d.cts +0 -2
- package/dist/components/Slider/scale.d.cts.map +1 -1
- package/dist/components/Slider/scale.d.ts +0 -2
- package/dist/components/Slider/scale.d.ts.map +1 -1
- package/dist/components/Table/style.css +6 -1
- package/dist/components/TagsInput/index.cjs +1 -1
- package/dist/components/TagsInput/index.js +1 -1
- package/dist/components/TextField/index.cjs +1 -1
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/Time/index.cjs +1 -1
- package/dist/components/Time/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +50 -48
- package/dist/internal/decimal.d.cts +7 -0
- package/dist/internal/decimal.d.cts.map +1 -0
- package/dist/internal/decimal.d.ts +7 -0
- package/dist/internal/decimal.d.ts.map +1 -0
- 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/internal/dialogLabel.d.cts +10 -0
- package/dist/internal/dialogLabel.d.cts.map +1 -0
- package/dist/internal/dialogLabel.d.ts +10 -0
- package/dist/internal/dialogLabel.d.ts.map +1 -0
- package/dist/internal/dialogStack.d.cts +11 -3
- package/dist/internal/dialogStack.d.cts.map +1 -1
- package/dist/internal/dialogStack.d.ts +11 -3
- package/dist/internal/dialogStack.d.ts.map +1 -1
- package/dist/internal/movableHost.d.cts +9 -5
- package/dist/internal/movableHost.d.cts.map +1 -1
- package/dist/internal/movableHost.d.ts +9 -5
- package/dist/internal/movableHost.d.ts.map +1 -1
- package/dist/internal/overlayLayer.d.cts +33 -0
- package/dist/internal/overlayLayer.d.cts.map +1 -0
- package/dist/internal/overlayLayer.d.ts +33 -0
- package/dist/internal/overlayLayer.d.ts.map +1 -0
- package/dist/internal/portalScope.d.cts.map +1 -1
- package/dist/internal/portalScope.d.ts.map +1 -1
- package/dist/internal/useDialogPortal.d.cts +9 -0
- package/dist/internal/useDialogPortal.d.cts.map +1 -0
- package/dist/internal/useDialogPortal.d.ts +9 -0
- package/dist/internal/useDialogPortal.d.ts.map +1 -0
- package/dist/internal/useLatest.d.cts +7 -0
- package/dist/internal/useLatest.d.cts.map +1 -0
- package/dist/internal/useLatest.d.ts +7 -0
- package/dist/internal/useLatest.d.ts.map +1 -0
- package/dist/internal/useModalDialog.d.cts +5 -1
- package/dist/internal/useModalDialog.d.cts.map +1 -1
- package/dist/internal/useModalDialog.d.ts +5 -1
- package/dist/internal/useModalDialog.d.ts.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/tokens.css +1 -2
- package/package.json +1 -1
- package/dist/chunks/CollectionView-BIuOL917.cjs +0 -2
- package/dist/chunks/CollectionView-BIuOL917.cjs.map +0 -1
- package/dist/chunks/CollectionView-Cr12UFWa.js.map +0 -1
- package/dist/chunks/ColourField-DC6cLb9h.js.map +0 -1
- package/dist/chunks/ColourField-NnFxLEsh.cjs +0 -2
- package/dist/chunks/ColourField-NnFxLEsh.cjs.map +0 -1
- package/dist/chunks/DatePicker-01sor8iD.cjs +0 -2
- package/dist/chunks/DatePicker-01sor8iD.cjs.map +0 -1
- package/dist/chunks/DatePicker-DJAqXUDJ.js +0 -297
- package/dist/chunks/DatePicker-DJAqXUDJ.js.map +0 -1
- package/dist/chunks/EntryPicker-B88N69zH.js +0 -180
- package/dist/chunks/EntryPicker-B88N69zH.js.map +0 -1
- package/dist/chunks/EntryPicker-daSkD4aR.cjs +0 -2
- package/dist/chunks/EntryPicker-daSkD4aR.cjs.map +0 -1
- package/dist/chunks/FormEditor-B4mtAxaU.cjs +0 -2
- package/dist/chunks/FormEditor-B4mtAxaU.cjs.map +0 -1
- package/dist/chunks/FormEditor-BkBhcYI5.js.map +0 -1
- package/dist/chunks/LoadState-B7GTDlWv.js.map +0 -1
- package/dist/chunks/LoadState-C7tQ6fIP.cjs +0 -2
- package/dist/chunks/LoadState-C7tQ6fIP.cjs.map +0 -1
- package/dist/chunks/RichTextEditor-DAnjElUO.cjs +0 -2
- package/dist/chunks/RichTextEditor-DAnjElUO.cjs.map +0 -1
- package/dist/chunks/Slider-k8weRl34.cjs +0 -2
- package/dist/chunks/Slider-k8weRl34.cjs.map +0 -1
- package/dist/chunks/Slider-vdMFLX-H.js +0 -174
- package/dist/chunks/Slider-vdMFLX-H.js.map +0 -1
- package/dist/chunks/frame-C8TwdWBC.cjs +0 -2
- package/dist/chunks/frame-C8TwdWBC.cjs.map +0 -1
- package/dist/chunks/frame-DaC03_n-.js +0 -203
- package/dist/chunks/frame-DaC03_n-.js.map +0 -1
- package/dist/chunks/limit-BX6-o1a2.cjs +0 -2
- package/dist/chunks/limit-BX6-o1a2.cjs.map +0 -1
- package/dist/chunks/limit-ChteDN4T.js +0 -18
- package/dist/chunks/limit-ChteDN4T.js.map +0 -1
- package/dist/chunks/movableHost-CajG9_5Z.cjs +0 -2
- package/dist/chunks/movableHost-CajG9_5Z.cjs.map +0 -1
- package/dist/chunks/movableHost-NJj_FsAu.js +0 -23
- package/dist/chunks/movableHost-NJj_FsAu.js.map +0 -1
- package/dist/chunks/portalScope-AzzPM54i.js +0 -105
- package/dist/chunks/portalScope-AzzPM54i.js.map +0 -1
- package/dist/chunks/portalScope-BVA1-Ypu.cjs +0 -2
- package/dist/chunks/portalScope-BVA1-Ypu.cjs.map +0 -1
- package/dist/chunks/useLimit-BOmHKdJE.js.map +0 -1
- package/dist/chunks/useLimit-DXe_VmYl.cjs.map +0 -1
- package/dist/chunks/useModalDialog-Cgus9408.cjs +0 -2
- package/dist/chunks/useModalDialog-Cgus9408.cjs.map +0 -1
- package/dist/chunks/useModalDialog-Dh-_6A0j.js +0 -85
- package/dist/chunks/useModalDialog-Dh-_6A0j.js.map +0 -1
- package/dist/chunks/useTooltip-C5gvEoYk.js +0 -74
- package/dist/chunks/useTooltip-C5gvEoYk.js.map +0 -1
- package/dist/chunks/useTooltip-bTE_a2Xn.cjs +0 -2
- package/dist/chunks/useTooltip-bTE_a2Xn.cjs.map +0 -1
- package/dist/components/Drawer/index.cjs.map +0 -1
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/Field/limit-reading.d.cts.map +0 -1
- package/dist/components/Field/limit-reading.d.ts.map +0 -1
- package/dist/components/NumberField/index.cjs.map +0 -1
- package/dist/components/NumberField/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -113,6 +113,7 @@ All **50 families** and **103 runtime exports** are listed below, including comp
|
|
|
113
113
|
| Family / usage | Public exports | Source examples |
|
|
114
114
|
| --- | --- | --- |
|
|
115
115
|
| [Field](#field) | `Field` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/Field/Field.stories.tsx) |
|
|
116
|
+
| [LimitReading](#limitreading) | `LimitReading` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/LimitReading/LimitReading.stories.tsx) |
|
|
116
117
|
| [TextField](#textfield) | `TextField`, `TextArea` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/TextField/TextField.stories.tsx) |
|
|
117
118
|
| [Choice](#choice) | `Checkbox`, `Radio`, `ChoiceGroup` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/Choice/Choice.stories.tsx) |
|
|
118
119
|
| [SelectionCard](#selectioncard) | `CheckboxCard`, `RadioCard`, `SelectionCardGroup` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/SelectionCard/SelectionCard.stories.tsx) |
|
|
@@ -467,6 +468,8 @@ Provider notifications dismiss automatically after five seconds unless `duration
|
|
|
467
468
|
|
|
468
469
|
A non-interactive editorial label. Use `shape="status"` for publication state, `"tag"` (the default) for metadata, and `"count"` for totals. Appearance defaults to `"outline"`; `"soft"` suits dense lists and `"solid"` emphasizes one state.
|
|
469
470
|
|
|
471
|
+
Set `size="sm"` for condensed labels or `"lg"` for more prominent labels. The default `"md"` keeps the existing size. All three sizes work with every shape and appearance; their standard heights are 20px, 24px, and 28px respectively.
|
|
472
|
+
|
|
470
473
|
```tsx
|
|
471
474
|
import { Badge } from "@namroodinc/liquid-editorial";
|
|
472
475
|
|
|
@@ -479,6 +482,7 @@ import { Badge } from "@namroodinc/liquid-editorial";
|
|
|
479
482
|
Published
|
|
480
483
|
</Badge>
|
|
481
484
|
<Badge>Opinion</Badge>
|
|
485
|
+
<Badge size="sm">Opinion</Badge>
|
|
482
486
|
<Badge shape="count">128</Badge>
|
|
483
487
|
<Badge
|
|
484
488
|
shape="count"
|
|
@@ -657,6 +661,8 @@ Use `isGroup` for a fieldset/legend around related controls and range widgets. K
|
|
|
657
661
|
|
|
658
662
|
TextField, TextArea and SearchField report `maxLength` to their bound Field; TagsInput reports its `max` and committed tag count. A finite positive limit adds a reading and progress ring at the right of the label row. EntryPicker does the same for an explicitly capped multiple selection, both standalone and inside Field. Existing count badges remain beside the label. Controls without a Field frame do not gain a label or counter.
|
|
659
663
|
|
|
664
|
+
Field uses the shared `LimitReading` at its default `sm` size. Field still owns visibility, control descriptions and threshold announcements.
|
|
665
|
+
|
|
660
666
|
| Field option | Default | Behavior |
|
|
661
667
|
| --- | --- | --- |
|
|
662
668
|
| `limit?: FieldLimit` | Reported by the bound control | Explicit `{ count, max }` overrides automatic reporting, including during server rendering. |
|
|
@@ -678,6 +684,31 @@ Character counts use JavaScript `.length`, matching native `maxLength` and FormE
|
|
|
678
684
|
|
|
679
685
|
Limited fields add `.ds-field__header` around the label and counter; limited groups retain a direct legend containing the label and counter, with the badge and required marker centred as in unlimited legends. A consumer's `aria-labelledby` or `aria-label` still names a limited standalone group. Use `.ds-field__label` rather than direct-child label selectors when customizing these fields. Existing unbounded frames keep their markup and styles; only labels beside a counter may break long words. Numeric/date bounds and uncapped or single pickers do not automatically show usage counters. Rich-text limits are deferred.
|
|
680
686
|
|
|
687
|
+
### LimitReading
|
|
688
|
+
|
|
689
|
+
A standalone usage count and decorative progress ring. Import `LimitReading` and its `LimitReadingProps`, `LimitReadingSize` and `LimitReadingDisplay` types from the package root or `components/LimitReading`.
|
|
690
|
+
|
|
691
|
+
```tsx
|
|
692
|
+
import { LimitReading } from "@namroodinc/liquid-editorial";
|
|
693
|
+
|
|
694
|
+
<>
|
|
695
|
+
<LimitReading count={4} max={5} />
|
|
696
|
+
<LimitReading count={4} max={5} size="md" />
|
|
697
|
+
<LimitReading count={4} max={5} size="lg" />
|
|
698
|
+
<LimitReading count={4} max={5} limitDisplay="remaining" showLimitRing={false} />
|
|
699
|
+
</>;
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
| Size | Text | Ring |
|
|
703
|
+
| --- | --- | --- |
|
|
704
|
+
| `sm` (default) | 12px | 16px |
|
|
705
|
+
| `md` | 14px | 20px |
|
|
706
|
+
| `lg` | 16px | 24px |
|
|
707
|
+
|
|
708
|
+
`count` and `max` are required. `limitDisplay` defaults to `"used"` (`4/5`); `"remaining"` prints `1 left`. `showLimitRing` defaults to true. Text becomes warning at 85% and danger at 100%; the ring keeps the continuous theme colour progression. Counts above the cap stay visible, including negative remaining values, while the ring stays full. Invalid counts or nonpositive/nonfinite maxima render nothing.
|
|
709
|
+
|
|
710
|
+
The visible shorthand and ring are decorative to assistive technology; hidden text reads `4 of 5 used` or `1 remaining`. Pass `descriptionId` to connect that text to a control's `aria-describedby`. Standard span attributes, `id`, `className`, `style` and a span ref are supported. The owning component decides live announcements, visibility and enforcement; LimitReading itself adds no live region.
|
|
711
|
+
|
|
681
712
|
### TextField
|
|
682
713
|
|
|
683
714
|
TextField and TextArea wrap native text controls. Use native `value`/`defaultValue`, `onChange`, `disabled`, `readOnly`, and validation attributes. TextField sizes are `sm`, `md` (default), and `lg`; TextArea uses native rows.
|
|
@@ -828,6 +859,8 @@ Affixes are non-interactive by default. Set `isLeadInteractive` or `isTrailInter
|
|
|
828
859
|
|
|
829
860
|
NumberField emits a number or `""` when cleared. It includes steppers by default, supports prefix/suffix content, and marks typed out-of-range values invalid. NumberRangeField emits `{ min, max }` with each member a number or `""`.
|
|
830
861
|
|
|
862
|
+
The − and + steppers form one attached ButtonGroup at the input's inline end (right in LTR). NumberRangeField and FormEditor number fields use the same arrangement.
|
|
863
|
+
|
|
831
864
|
```tsx
|
|
832
865
|
import { Field, NumberField, NumberRangeField } from "@namroodinc/liquid-editorial";
|
|
833
866
|
|
|
@@ -864,7 +897,7 @@ import { Field, NumberField, NumberRangeField } from "@namroodinc/liquid-editori
|
|
|
864
897
|
</>;
|
|
865
898
|
```
|
|
866
899
|
|
|
867
|
-
Use `value`/`onValueChange` for controlled numbers and ranges; sizes are `sm`, `md` (default), and `lg`. Steppers honor `min`, `max`, and `step`; typing stays editable. Set `hasSteppers={false}`
|
|
900
|
+
Use `value`/`onValueChange` for controlled numbers and ranges; sizes are `sm`, `md` (default), and `lg`. Steppers and ArrowUp/ArrowDown honor `min`, `max`, and `step`; typing stays editable. A numeric `step` keeps stepped values on the grid `min + k × step` (from 0 without `min`), so they never fail browser step validation, and `max` stops at the last grid value inside it. An empty field counts as 0, but its first press lands on a bound at or beyond 0 (an empty `min={1}` field gives 1). With `step="any"`, steppers move by 1, or by the largest power of ten below the range when `min` and `max` are at most 1 apart, keeping the typed precision. The steppers stay out of the tab order and never take focus, so a tap does not open the soft keyboard. Set `hasSteppers={false}` to hide them. Name steppers after their field when several are present; `isDisabled` disables the whole widget.
|
|
868
901
|
|
|
869
902
|
### Slider
|
|
870
903
|
|
|
@@ -1121,9 +1154,18 @@ Select entries or assets from app-provided items. The value is an ordered array
|
|
|
1121
1154
|
|
|
1122
1155
|
```tsx
|
|
1123
1156
|
import { useState } from "react";
|
|
1124
|
-
import { EntryPicker, Field } from "@namroodinc/liquid-editorial";
|
|
1125
|
-
|
|
1126
|
-
const articles = [{
|
|
1157
|
+
import { Badge, EntryPicker, Field, Time } from "@namroodinc/liquid-editorial";
|
|
1158
|
+
|
|
1159
|
+
const articles = [{
|
|
1160
|
+
id: "article-1",
|
|
1161
|
+
title: "The corner bookshop",
|
|
1162
|
+
keywords: ["article", "published"],
|
|
1163
|
+
metadata: <>
|
|
1164
|
+
<Badge shape="status" tone="published" size="sm">Published</Badge>
|
|
1165
|
+
<span>Article</span>
|
|
1166
|
+
<span>Published <Time value="2026-11-16T10:00:00Z" /></span>
|
|
1167
|
+
</>,
|
|
1168
|
+
}];
|
|
1127
1169
|
|
|
1128
1170
|
export function RelatedArticles() {
|
|
1129
1171
|
const [selected, setSelected] = useState<string[]>([]);
|
|
@@ -1149,7 +1191,11 @@ export function RelatedArticles() {
|
|
|
1149
1191
|
}
|
|
1150
1192
|
```
|
|
1151
1193
|
|
|
1152
|
-
Mode defaults to `"multiple"`; multiple selections are reorderable by default. `max` disables unpicked items at the limit. Items can have
|
|
1194
|
+
Mode defaults to `"multiple"`; multiple selections are reorderable by default. `max` disables unpicked items at the limit. Items can have `metadata?: ReactNode`, an image URL, keywords, and `isDisabled`. The app composes the complete inline metadata beneath the title, including badges, type, separators and dates; the library supplies wrapping, spacing and muted small text. Use `size="sm"` for condensed status badges and `Time` for dates. The same metadata renders in results and selected rows. Links and focusable metadata handle clicks without selecting the row. Static search matches only titles and `keywords`; include any searchable metadata labels there.
|
|
1195
|
+
|
|
1196
|
+
`defaultValue` supplies local state; `isDisabled` disables editing. Standalone pickers can supply their own `label`, `hint`, and `error`; a bound group Field owns that frame and displays the selected count. Copy options include `emptyLabel`, `addLabel`, `itemLabel`, and `itemsLabel`.
|
|
1197
|
+
|
|
1198
|
+
The dialog footer uses `LimitReading size="lg"` for a multiple selection with a finite positive `max`, replacing text such as `4 of 5 selected` with `4/5` and a progress ring. Uncapped and single-mode pickers retain their plain selected count. The header reading stays small and follows its owning Field's presentation options.
|
|
1153
1199
|
|
|
1154
1200
|
### RichTextEditor
|
|
1155
1201
|
|
|
@@ -1235,7 +1281,7 @@ Radio and checkbox fields are groups, including when `options` contains one item
|
|
|
1235
1281
|
|
|
1236
1282
|
Use `defaultValue` for an uncontrolled editor, `errors` for app-specific messages, `showAllErrors` after a submit attempt, and `isDisabled` to disable editing. Required and format errors appear after a field changes; loaded numeric, slider, range, calendar-date and colour fields validate immediately, except blank date and colour strings, which wait like other empty fields. `false` and `0` are populated values. Missing keys render controls without emitting changes; sliders show fallback positions without storing them. An unset slider or range slider prints `placeholder` or `"Not set"` (an unset range also has no fill) until a click or arrow key on a thumb stores the shown position or full range. Loaded slider values outside the scale, or reversed ranges, are drawn clamped and ordered while validation still reports them. Clearing a number, date, colour, select, radio group or single picker removes its key; empty text, rich-text documents and lists keep their shapes. Unrelated keys are preserved. Validation runs per field and is reused until that field or its value changes, so define schemas outside render or memoize them.
|
|
1237
1283
|
|
|
1238
|
-
General forms can use select fields with `options: [{ value, label }]`, per-field `isDisabled`, and React-node hints. Optional selects lead with an empty choice, labelled with the field's `placeholder` or "None", that clears the value. Pass `options: []` while choices load; a stored value stays valid until they arrive. Text fields support `maxLength` and `readOnly`; short text also supports `inputType: "email"`, long text supports `rows`, and numeric fields support `min`, `max`, `step`, and `
|
|
1284
|
+
General forms can use select fields with `options: [{ value, label }]`, per-field `isDisabled`, and React-node hints. Optional selects lead with an empty choice, labelled with the field's `placeholder` or "None", that clears the value. Pass `options: []` while choices load; a stored value stays valid until they arrive. Text fields support `maxLength` and `readOnly`; short text also supports `inputType: "email"`, long text supports `rows`, and numeric fields support `min`, `max`, `step`, `hasSteppers`, `decreaseLabel`, and `increaseLabel`. Number fields show NumberField's − / + buttons by default, with NumberField's stepping rules above; set `hasSteppers: false` to hide them. Steppers are named after their field, such as "Increase Width"; translate the names with `decreaseLabel` and `increaseLabel`. The default `step: "any"` accepts typed decimals while the buttons move by 1, or by 0.1 across a 0–1 range; set a numeric `step` for another increment. Number schemas need finite bounds with `min <= max` and a positive step or `"any"`. See FormEditor's **NumberSteppers** story for bounds, affixes, typing-only, translated and disabled examples. `validateFormValues` enforces `maxLength`, numeric limits, and `picker.max`. `autoFocus` applies to text, number, select, boolean, UTC date-time, slider, and colour fields.
|
|
1239
1285
|
|
|
1240
1286
|
`columns` sets the most columns and defaults to one. The form drops a column whenever a field would be narrower than `minColumnWidth` (default `16rem`), measured against the form's own width, so it steps down inside drawers and modals. Use `columns="auto"` to fit as many columns as the width allows. FormEditor is not a size container, so it keeps its content width in flex rows and popovers.
|
|
1241
1287
|
|
|
@@ -1940,7 +1986,7 @@ npm run fallow:report
|
|
|
1940
1986
|
|
|
1941
1987
|
Storybook runs on port 6006. Stories/tests live beside each family. `npm run validate` runs ESLint, Stylelint, formatting checks, TypeScript, tests with coverage, the Storybook build, package lint/type checks, packed ESM/CommonJS smoke checks on React 18/19, and Fallow. `npm run format` rewrites formatting; `npm run lint` checks it. The aggregate stylesheet order is checked by tests.
|
|
1942
1988
|
|
|
1943
|
-
`npm run fallow` checks dead code, duplication, and cyclomatic/cognitive complexity without writing reports. `npm run test:coverage && npm run fallow:report` refreshes
|
|
1989
|
+
`npm run fallow` checks dead code, duplication, and cyclomatic/cognitive complexity without writing reports. `npm run test:coverage && npm run fallow:report` refreshes the local, Git-ignored `reports/fallow-report.md` and `reports/fallow-report.json` with current coverage. Estimated change-risk advisories stay visible and non-blocking; confirmed findings fail both commands. Keep the tracked original baseline and thresholds.
|
|
1944
1990
|
|
|
1945
1991
|
### Publishing
|
|
1946
1992
|
|
|
@@ -1965,6 +2011,8 @@ override the collection's defaults (`md`, menus opening upward, enabled). Paging
|
|
|
1965
2011
|
stays operable while a page loads, so focus stays on the pressed Next or Previous
|
|
1966
2012
|
button; pass `pagination.isDisabled` to lock it. A pending selection also locks it.
|
|
1967
2013
|
Optional `filter`, `mine`, `view`, `selection` and `actions` configure the toolbar.
|
|
2014
|
+
The grid/table `view` switch uses an attached ButtonGroup with pressed-state
|
|
2015
|
+
styling and a shared border between its two buttons.
|
|
1968
2016
|
The selected count is announced from a status region present before selection.
|
|
1969
2017
|
When Clear or a selection action leaves with focus, focus returns to the title.
|
|
1970
2018
|
The application owns filtering, records, eligibility, selection and requests.
|
package/UPGRADING.md
CHANGED
|
@@ -2,6 +2,442 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.8.0
|
|
6
|
+
|
|
7
|
+
### Attached number steppers and collection view buttons
|
|
8
|
+
|
|
9
|
+
NumberField places its − / + actions in one attached ButtonGroup after the
|
|
10
|
+
input, at the inline end (right in LTR). NumberRangeField and FormEditor number
|
|
11
|
+
fields inherit this layout. All field sizes keep matching button heights.
|
|
12
|
+
CollectionView's grid/table switch also uses attached ButtonGroup segments.
|
|
13
|
+
|
|
14
|
+
Adoption: no prop or stored-value changes are required. Update custom styles or
|
|
15
|
+
tests that assumed number buttons were direct children of `.ds-number` or that
|
|
16
|
+
Decrease preceded the input; `.ds-number__step` remains on each button, inside
|
|
17
|
+
the new `.ds-number__steppers` group. Review collection toolbar snapshots for
|
|
18
|
+
the joined view-switch borders.
|
|
19
|
+
|
|
20
|
+
Compatibility: stepper labels, min/max/step behaviour, disabled states, tab order
|
|
21
|
+
and focus preservation are unchanged. View-switch names, `aria-pressed` and
|
|
22
|
+
callbacks retain their contracts. `hasSteppers={false}` still omits the actions.
|
|
23
|
+
No dependencies or manual version increments are required.
|
|
24
|
+
|
|
25
|
+
Verification: run consuming lint/typechecks/tests/build and check all number
|
|
26
|
+
sizes, affixes, ranges, boundaries, typing-only fields, ArrowUp/ArrowDown and
|
|
27
|
+
pointer focus. Review attached view-switch selection/focus borders, narrow
|
|
28
|
+
toolbars and RTL layouts.
|
|
29
|
+
|
|
30
|
+
### Generated Fallow reports stay local
|
|
31
|
+
|
|
32
|
+
Generated `reports/fallow-report.*` files are ignored and no longer tracked.
|
|
33
|
+
`npm run fallow:report` still writes local Markdown/JSON outputs; the original
|
|
34
|
+
`reports/fallow-baseline.json` remains tracked because the generator reads it.
|
|
35
|
+
|
|
36
|
+
Adoption: contributors can regenerate reports without adding them to commits.
|
|
37
|
+
Consuming projects need no changes; public APIs, checks and package versions
|
|
38
|
+
are unchanged.
|
|
39
|
+
|
|
40
|
+
Verification: run `npm run fallow:report`, then confirm `git check-ignore` matches
|
|
41
|
+
the generated outputs and `git ls-files reports` still includes the baseline.
|
|
42
|
+
|
|
43
|
+
### Standalone LimitReading and larger picker footer counts
|
|
44
|
+
|
|
45
|
+
Adds `LimitReading` and its `LimitReadingProps`, `LimitReadingSize` and
|
|
46
|
+
`LimitReadingDisplay` types at the root and `components/LimitReading` subpath.
|
|
47
|
+
Pass `count` and `max`. Sizes are `sm` (default: existing 12px text/16px ring),
|
|
48
|
+
`md` (14px/20px) and `lg` (16px/24px). `limitDisplay` defaults to `used` and
|
|
49
|
+
`showLimitRing` to true. `descriptionId` identifies the hidden descriptive text
|
|
50
|
+
for an owning control; regular span attributes and refs apply to the outer span.
|
|
51
|
+
Invalid limits render nothing. Loaded over-limit values and negative remaining
|
|
52
|
+
counts remain visible; the ring clamps at full without a closing seam.
|
|
53
|
+
|
|
54
|
+
Field composes the small reading while retaining reporting, visibility and its
|
|
55
|
+
threshold-only announcer. EntryPicker's live footer uses a large reading for
|
|
56
|
+
multiple mode with a finite positive maximum. Uncapped and single-mode footers
|
|
57
|
+
keep their selected-count text. Picker labels and FormEditor values/schema
|
|
58
|
+
options keep their existing contracts.
|
|
59
|
+
|
|
60
|
+
Plain footer counts such as `0 selected` use the same 16px text and muted colour
|
|
61
|
+
as the large reading's normal state, keeping capped and uncapped pickers aligned.
|
|
62
|
+
|
|
63
|
+
Adoption: use `<LimitReading count={4} max={5} size="lg" />` wherever a standalone
|
|
64
|
+
reading is needed. Its owner supplies enforcement, visibility and live-region
|
|
65
|
+
semantics. Import the aggregate stylesheet as usual. Update affected CSS hooks
|
|
66
|
+
and picker text queries listed under Breaking changes.
|
|
67
|
+
|
|
68
|
+
Compatibility: this adds no dependency or manual version change. Existing Field
|
|
69
|
+
readings keep the current small metrics, colours, descriptions and announcements.
|
|
70
|
+
The picker footer uses its own default `used`/ring presentation; Field options
|
|
71
|
+
continue to configure the small label reading.
|
|
72
|
+
|
|
73
|
+
Verification: run consuming lint/typechecks/tests/build against a packed or
|
|
74
|
+
released build. Check all sizes and themes, empty/near/full/over-limit readings,
|
|
75
|
+
remaining text, hidden rings, Field descriptions/threshold announcements, and
|
|
76
|
+
capped picker selection/deselection, uncapped and single-mode footers at narrow
|
|
77
|
+
widths. Confirm plain and capped footer counts have matching text size and colour
|
|
78
|
+
below the warning threshold. Confirm root and subpath imports and aggregate CSS
|
|
79
|
+
include LimitReading.
|
|
80
|
+
|
|
81
|
+
### Inactive drawer activation
|
|
82
|
+
|
|
83
|
+
Drawer adds optional `onInactivePress?: () => void` and `inactivePressLabel?: string`.
|
|
84
|
+
An open, visible drawer with `isActive={false}` and a callback presents a shared
|
|
85
|
+
Button over its panel, outside the inert editor contents. Pressing it requests
|
|
86
|
+
activation once; the application owns navigation, discard confirmation and pending
|
|
87
|
+
write guards. It neither calls onClose nor activates the panel itself. Pointer
|
|
88
|
+
presses preserve the active editor's focus until the app accepts navigation.
|
|
89
|
+
|
|
90
|
+
The action defaults to `Return to {title}` for a string title or `Activate drawer`
|
|
91
|
+
for other title nodes. Supply an explicit localized label as needed. It is not an
|
|
92
|
+
extra Tab stop: the active modal retains its focus trap and keyboard navigation.
|
|
93
|
+
Closed, hidden and exiting panels expose no activation action. Omitting the
|
|
94
|
+
callback preserves the existing fully inert inactive panel and scrim.
|
|
95
|
+
|
|
96
|
+
Adoption: replace application geometry/hit-testing with the callback. In a stack,
|
|
97
|
+
use `hasScrim={false}` on the panels with an application-owned shared scrim so
|
|
98
|
+
the top drawer does not intercept presses on exposed panels below it. Drawer
|
|
99
|
+
content now has a stable `.ds-drawer__content` flex wrapper around its header,
|
|
100
|
+
body and footer, preserving mounted state when activity changes. Update custom
|
|
101
|
+
selectors that assumed those elements were direct children of the panel.
|
|
102
|
+
No dependencies or manual version increments are required.
|
|
103
|
+
|
|
104
|
+
Verification: press exposed background panels with mouse and touch; confirm only
|
|
105
|
+
the callback fires, editor controls remain inert, focus stays in the active editor
|
|
106
|
+
when navigation is refused, and hidden/closing panels cannot activate. Check all
|
|
107
|
+
sides, RTL, contained navigation, nested popups and normal active scrolling/layout.
|
|
108
|
+
|
|
109
|
+
### Picker creation and live refresh
|
|
110
|
+
|
|
111
|
+
`EntryPickerSource` adds optional `refreshKey?: string | number` and
|
|
112
|
+
`isCreating?: boolean`, also accepted through FormEditor's `pickerSources`.
|
|
113
|
+
Change `refreshKey` after an external edit; keep it stable during unrelated
|
|
114
|
+
renders. Inline callbacks remain supported.
|
|
115
|
+
|
|
116
|
+
- An open picker reads its loaded rows again in the background, requesting the
|
|
117
|
+
full pages together and reading on one page at a time after a short page. The
|
|
118
|
+
rows, query, scroll and focus stay, and the rows remain usable meanwhile. A
|
|
119
|
+
Load more in flight joins the refreshed rows. A new search after a refresh
|
|
120
|
+
loads one page.
|
|
121
|
+
- A failed refresh keeps the rows and shows a "Couldn't refresh {itemsLabel}"
|
|
122
|
+
banner whose Try again reads the same rows again. Until a refresh succeeds,
|
|
123
|
+
Load more stays disabled but focusable, so no page is read at an old offset.
|
|
124
|
+
A failed Load more is hidden while a refresh re-reads its rows. If its Try
|
|
125
|
+
again had focus, focus moves to Load more.
|
|
126
|
+
- Selected rows keep their previous copy, title and pencil while `resolveItem`
|
|
127
|
+
describes them again. Without `resolveItem`, the copies stay until a loaded
|
|
128
|
+
page replaces them. A row picked from rows read before the latest refresh
|
|
129
|
+
keeps its copy in the same way and is described again. A failed lookup keeps
|
|
130
|
+
the copy and shows the existing retry banner. Only a null resolution means
|
|
131
|
+
gone, and it takes precedence over an older page copy.
|
|
132
|
+
|
|
133
|
+
`isCreating` shows the New action's spinner and blocks repeated creation. New
|
|
134
|
+
stays focusable while blocked, so focus survives creation that ends at the
|
|
135
|
+
selection cap. New is now primary, alongside the primary Done. This is the one
|
|
136
|
+
recorded exception to Button's "one primary per view" rule. Below 480px the
|
|
137
|
+
search takes a full row above New. Applications still own creation, uploads,
|
|
138
|
+
eligibility, persistence and item metadata.
|
|
139
|
+
|
|
140
|
+
Obsolete paging replies no longer update selected-item caches. Removing and
|
|
141
|
+
restoring an ID during its pending lookup starts a fresh lookup. Rows from a
|
|
142
|
+
previous search are disabled for keyboard as well as pointer interaction while
|
|
143
|
+
the new search loads. Load more never stays pending after a search is undone or
|
|
144
|
+
replaced.
|
|
145
|
+
|
|
146
|
+
Dialog portal hosts follow opening order, so same-commit paint order agrees with
|
|
147
|
+
focus and Escape. Modal and Drawer frames now sit in a `div.ds-dialog-host`
|
|
148
|
+
portal host with `display: contents`; custom selectors that require the scrim
|
|
149
|
+
to be a direct child of `body` (or a contained drawer's container) must allow
|
|
150
|
+
that wrapper. A host moves only when its order is wrong, keeping focus, so a
|
|
151
|
+
drawer reopened during its exit keeps its scroll and focus. Hosts stay attached
|
|
152
|
+
under React Strict Mode. Frame classes, explicit layers and contained navigation
|
|
153
|
+
layers are unchanged; explicit overlay layer overrides should place children
|
|
154
|
+
above parents and below toasts.
|
|
155
|
+
|
|
156
|
+
Modal and Drawer return focus to the control focused last in the current
|
|
157
|
+
opening in two cases: when the dialog resumes from `isHidden`, and when a
|
|
158
|
+
drawer becomes active again. Before, focus went to `initialFocus` or the first
|
|
159
|
+
control. The control is scrolled into view within the panel's own scroll
|
|
160
|
+
areas, and the page does not scroll. If that control was removed or can no
|
|
161
|
+
longer take focus, focus goes to `initialFocus`, then the first control. A new
|
|
162
|
+
opening still starts from its initial focus.
|
|
163
|
+
|
|
164
|
+
Adoption: pass a stable `refreshKey` that changes after external data changes,
|
|
165
|
+
and `isCreating` while creation is pending. Update any selector that expects a
|
|
166
|
+
dialog scrim directly under `body`. Don't refocus a control after resuming or
|
|
167
|
+
reactivating a dialog; the dialog does that itself. No stored schema/value
|
|
168
|
+
change, dependency or manual version increment is required.
|
|
169
|
+
|
|
170
|
+
Compatibility: `isHidden`, `isActive` and `onCreate` are new in this release,
|
|
171
|
+
so no released behaviour changes. `initialFocus` now applies only when a dialog
|
|
172
|
+
opens, or when its last control can no longer take focus. For example, a
|
|
173
|
+
navigation drawer whose `initialFocus` is Close returns to the control that was
|
|
174
|
+
used last, both after resuming and after its stack makes it active again. To
|
|
175
|
+
send focus somewhere else, focus that control explicitly after the change.
|
|
176
|
+
|
|
177
|
+
Verification: in the consuming project, cover these cases:
|
|
178
|
+
|
|
179
|
+
- A refresh with several loaded pages: rows stay usable, scroll and focus are
|
|
180
|
+
kept.
|
|
181
|
+
- A failed refresh and its retry. Load more stays disabled until the retry
|
|
182
|
+
succeeds.
|
|
183
|
+
- A failed Load more with focus on Try again when a refresh starts. Focus
|
|
184
|
+
should move to Load more.
|
|
185
|
+
- A refresh while a selected item resolves: title and pencil stay.
|
|
186
|
+
- A row picked during a pending refresh. It keeps its title and pencil until
|
|
187
|
+
`resolveItem` answers, and shows as unavailable if that returns null.
|
|
188
|
+
- A loadPage-only picker's selected titles across a refresh.
|
|
189
|
+
- Remove/restore during resolution.
|
|
190
|
+
- Load more across an undone search.
|
|
191
|
+
- A pending New action that ends at the cap. New shows the primary colour.
|
|
192
|
+
- A long Modal or Drawer form resumed with a lower field focused. That field
|
|
193
|
+
should hold focus and be scrolled into view.
|
|
194
|
+
- Nested dialogs opened together, including under Strict Mode.
|
|
195
|
+
|
|
196
|
+
Run consuming checks against the packed build and restart Vite before browser
|
|
197
|
+
QA.
|
|
198
|
+
|
|
199
|
+
### Breaking changes
|
|
200
|
+
|
|
201
|
+
- Limit indicators move from `.ds-field__limit`, `.ds-field__limit-ring`,
|
|
202
|
+
`.ds-field__limit-progress` and `.ds-field__limit-description` to
|
|
203
|
+
`.ds-limit-reading`, `.ds-limit-reading__ring`, `.ds-limit-reading__progress`
|
|
204
|
+
and `.ds-limit-reading__description`. Update custom selectors. Field's private
|
|
205
|
+
`.ds-field__limit-announcement` remains its live-announcement hook.
|
|
206
|
+
- Capped multiple-picker footers now display `4/5` and a large progress ring
|
|
207
|
+
instead of `4 of 5 selected`. Their accessible reading is `4 of 5 used`.
|
|
208
|
+
Update consuming text queries; the footer's status region is retained.
|
|
209
|
+
- `EntryItem.subtitle` and `EntryItem.status` are replaced by
|
|
210
|
+
`metadata?: ReactNode`. Compose the entire line beneath the title in that
|
|
211
|
+
slot, including badges, type labels, separators and `Time` components.
|
|
212
|
+
- Static EntryPicker search now matches `title` and `keywords` only. Move any
|
|
213
|
+
searchable subtitle text into `keywords`; metadata nodes are never stringified.
|
|
214
|
+
- The `.ds-entry__subtitle` CSS hook is removed. Use `.ds-entry__meta` for the
|
|
215
|
+
shared metadata frame, or application classes for individual metadata pieces.
|
|
216
|
+
- The `--entry-list-max-height` token is removed. Picker results now scroll in a
|
|
217
|
+
dialog sized by `--entry-picker-height` (default 47.5rem, capped by the
|
|
218
|
+
viewport); set that on `.ds-entry-picker__dialog` instead.
|
|
219
|
+
|
|
220
|
+
### Composable picker metadata
|
|
221
|
+
|
|
222
|
+
The application owns all content beneath an EntryPicker item title through
|
|
223
|
+
`metadata`. The library supplies a wrapping inline flex row with muted small
|
|
224
|
+
text; it adds no badge, type name, separator or date formatting. This works in
|
|
225
|
+
results, selected rows, drag overlays, and FormEditor's `pickerItems` and
|
|
226
|
+
`pickerSources`. Links, controls and focusable metadata such as `Time` handle
|
|
227
|
+
their own clicks without toggling the row's checkbox.
|
|
228
|
+
|
|
229
|
+
Adoption: replace `{ subtitle, status }` with a `metadata` string or fragment.
|
|
230
|
+
Use `<Badge shape="status" size="sm" …>` for condensed state labels and
|
|
231
|
+
`<Time value={publishedAt} />` for dates. Supply the type/status text in `keywords`
|
|
232
|
+
when static choices should be searchable by those labels.
|
|
233
|
+
|
|
234
|
+
Compatibility: item IDs, selected values, paging and FormEditor link storage
|
|
235
|
+
are unchanged. `metadata` is runtime UI, not JSON data for persisted schemas.
|
|
236
|
+
No dependency or manual version change is needed.
|
|
237
|
+
|
|
238
|
+
Verification: typecheck every `EntryItem` producer, including resolved/missing
|
|
239
|
+
items and static default choices. Check composed metadata in results and
|
|
240
|
+
selections, narrow wrapping, `Time` tooltips by hover/focus, clicking metadata
|
|
241
|
+
controls without selection, and static searches by title/keywords. Run consuming
|
|
242
|
+
lint/typechecks/tests/build against the released or packed package.
|
|
243
|
+
|
|
244
|
+
### Badge sizes
|
|
245
|
+
|
|
246
|
+
Badge adds `size="sm" | "md" | "lg"` and exports `BadgeSize` from the package
|
|
247
|
+
root and Badge subpath. The default `md` retains the existing metrics and tokens.
|
|
248
|
+
Standard heights are 20px, 24px and 28px across status, tag and count shapes and
|
|
249
|
+
all appearances. Small badges tighten padding, marker size and spacing; large
|
|
250
|
+
badges also enlarge type. Borders, corners, tones and count formatting keep their
|
|
251
|
+
existing behavior.
|
|
252
|
+
|
|
253
|
+
Adoption: use `<Badge size="sm">…</Badge>` in dense rows, or `size="lg"` for a
|
|
254
|
+
larger label. No changes are required for existing badges.
|
|
255
|
+
|
|
256
|
+
Compatibility: this is an optional prop; existing markup gains `data-size="md"`
|
|
257
|
+
without changing its appearance. Existing badge tokens still govern `md`.
|
|
258
|
+
No dependency or manual version change.
|
|
259
|
+
|
|
260
|
+
Verification: run consuming lint/typechecks/tests/build, then review Badge's
|
|
261
|
+
Sizes story and badges in dense rows in each theme at desktop and narrow widths.
|
|
262
|
+
Confirm omitted size matches explicit `md`, small counts stay legible, and zero,
|
|
263
|
+
`99+` and `isCountExact` formatting are unchanged.
|
|
264
|
+
|
|
265
|
+
### Paged pickers and composable resource drawers
|
|
266
|
+
|
|
267
|
+
EntryPicker accepts optional `loadPage({ offset, limit }, { query })`, `pageSize`
|
|
268
|
+
(default 10), `resolveItem(id)`, `onEditItem(item)` and `onCreate()` callbacks.
|
|
269
|
+
Pages return `{ items, total }`; item resolution may return a value or Promise,
|
|
270
|
+
and null means unavailable. Requests are debounced by 250ms, stale replies are
|
|
271
|
+
ignored, and Load more preserves existing selections. Callbacks are read when
|
|
272
|
+
called, so inline sources are fine: each opening, search, page size change and
|
|
273
|
+
retry requests the first page, and closing discards the pages. Load failures
|
|
274
|
+
use the shared LoadError banner with Try again; a failed search clears the
|
|
275
|
+
previous rows. `EntryItem.metadata` is a ReactNode slot. Static `items` remain
|
|
276
|
+
supported. No network calls occur before opening except resolving selected IDs
|
|
277
|
+
that no static item describes.
|
|
278
|
+
|
|
279
|
+
Selected IDs show the latest copy of their item from static items, a loaded page
|
|
280
|
+
or a pick, so an edited item appears once a page includes it. `resolveItem`
|
|
281
|
+
resolves each undescribed ID once, and Try again re-resolves only the failed
|
|
282
|
+
ones. Removing an ID forgets it, so an ID an undo or form reset restores is
|
|
283
|
+
resolved afresh. Without `resolveItem`, an ID nothing describes shows as the ID
|
|
284
|
+
itself rather than as unavailable. Static search trims the query, as server
|
|
285
|
+
searches do.
|
|
286
|
+
|
|
287
|
+
When Load more held focus and the final page or a failure removes it, focus moves
|
|
288
|
+
to the first new row or to Try again; a reply from an earlier opening is ignored.
|
|
289
|
+
A new opening starts at the top of the list.
|
|
290
|
+
|
|
291
|
+
Result rows now expose shared checkboxes named `Select {title}`, rather than
|
|
292
|
+
full-row buttons. Update role queries in consuming tests. Single mode retains
|
|
293
|
+
its immediate-close behaviour. For a scalar FormEditor field with checkbox
|
|
294
|
+
interaction and explicit Done, set `pickerSources[fieldId]` to
|
|
295
|
+
`{ mode: "multiple", loadPage, resolveItem }`: the picker caps it at one and
|
|
296
|
+
asks to "Choose one {itemLabel}" without a usage counter, and the schema's
|
|
297
|
+
`multiple` flag still determines its object/array storage and validation. A
|
|
298
|
+
runtime `max` can lower the schema's `picker.max` but never lift it, and the
|
|
299
|
+
field's counter shows the lower cap; an undefined runtime option never replaces
|
|
300
|
+
a schema value. Field's `limit` accepts `null` to show no counter, even one a
|
|
301
|
+
bound control reports.
|
|
302
|
+
`pickerItems` continues to supply static choices. All source props are
|
|
303
|
+
optional. The library adds no default maximum to multiple fields.
|
|
304
|
+
|
|
305
|
+
`dialogTitle`, `dialogDescription` and `isDialogHidden` customize/suspend a picker
|
|
306
|
+
while retaining its query, loaded pages and scroll. Returning false from
|
|
307
|
+
`onEditItem` dismisses it, useful when jumping to its owning editor. Edit actions
|
|
308
|
+
do not select rows, and remain available when only the selection cap is reached.
|
|
309
|
+
`onCreate` adds a `New {itemLabel}` action, disabled at capacity.
|
|
310
|
+
|
|
311
|
+
LoadError accepts `title` and LoadState accepts `errorTitle` to name what failed
|
|
312
|
+
to load; both default to "Couldn't load this".
|
|
313
|
+
|
|
314
|
+
SearchField `isBusy` shows the shared spinner beside its clear action and sets
|
|
315
|
+
`aria-busy`. Escape clears a nonempty controlled query before closing a
|
|
316
|
+
surrounding dialog; an empty one leaves Escape to the dialog. Uncontrolled
|
|
317
|
+
fields still call `onClear` on every Escape. An Escape that ends an IME
|
|
318
|
+
composition belongs to the input method.
|
|
319
|
+
|
|
320
|
+
Drawer adds `hasHeader` (true), `isActive` (true), `hasScrim` (true) and
|
|
321
|
+
`overlayLayer`. An inactive open panel stays visible and mounted but is inert
|
|
322
|
+
and hidden from assistive technology: it takes no focus, pointer input or scrim
|
|
323
|
+
presses, its menus and pickers pause, and its tooltips close. Give people an external control to
|
|
324
|
+
return to it. A headerless navigation drawer focuses its first control.
|
|
325
|
+
`hasScrim: false` passes background pointer events through and keeps slide motion.
|
|
326
|
+
Set `--drawer-width`/`--drawer-width-wide` on a drawer to override its width.
|
|
327
|
+
|
|
328
|
+
Modal and Drawer also accept `isHidden` (false): suspend an open dialog without
|
|
329
|
+
unmounting its form or picker nodes. Focus/Escape and nested popover/menu
|
|
330
|
+
controllers pause while suspended and resume on return, in place rather than
|
|
331
|
+
replaying their entry motion; a menu that resumes keeps focus. Tooltips close
|
|
332
|
+
rather than pause. Prefer suspension over closing a Properties drawer
|
|
333
|
+
when opening a related editor.
|
|
334
|
+
|
|
335
|
+
Drawer and Modal pass their layer (an explicit `overlayLayer`, else an enclosing
|
|
336
|
+
`OverlayLayer`) to the dialogs and popovers opened inside them, so a nested
|
|
337
|
+
picker, Select, Menu, DateField or ColourField paints above a raised drawer.
|
|
338
|
+
Keep layers below 80 so toasts stay on top. Omitting layers keeps CSS defaults,
|
|
339
|
+
including contained navigation drawer layering. Focus and Escape go to the
|
|
340
|
+
dialog on the highest layer; on one layer, to the one opened last, which paints
|
|
341
|
+
last. A dialog that resumes keeps its place, so it never moves above a dialog
|
|
342
|
+
opened while it was suspended, and a dialog opened together with the dialogs
|
|
343
|
+
nested in it stays below them. Headerless dialogs retain
|
|
344
|
+
accessible names. The app owns stack state, a shared scrim, draft guards,
|
|
345
|
+
resource loading, permissions and persistence.
|
|
346
|
+
|
|
347
|
+
Table draws its header rule on the first body row after a `thead`, so the rule
|
|
348
|
+
spans every column, including a spanning empty state. Tables without a head get
|
|
349
|
+
no rule above their first row. Styles that targeted the header rule through
|
|
350
|
+
`.ds-table th` should target `.ds-table thead + tbody > tr:first-child` instead.
|
|
351
|
+
|
|
352
|
+
Compatibility: selected rows now read the theme's `--entry-thumb-size` (3rem by
|
|
353
|
+
default), as result rows already did, rather than a fixed 3rem; a theme that
|
|
354
|
+
overrides the token now sizes both. Selected result rows gain their intended
|
|
355
|
+
`--color-accent-soft` fill.
|
|
356
|
+
|
|
357
|
+
Adoption: pass runtime sources inline or memoized, as convenient. Pass busy
|
|
358
|
+
search feedback only for an active request. Coordinate inactive editor
|
|
359
|
+
shortcuts and protect all affected drafts before stack navigation. Keep
|
|
360
|
+
application schemas authoritative for limits and stored values. Choose overlay
|
|
361
|
+
layers below 80. Replace any `--entry-list-max-height` override with
|
|
362
|
+
`--entry-picker-height` on `.ds-entry-picker__dialog`. No new peers,
|
|
363
|
+
dependencies or manual version increment.
|
|
364
|
+
|
|
365
|
+
Verification: run `npm run validate`, then consuming lint/typechecks/tests/build
|
|
366
|
+
against a packed package. Check loading/search/paging retries (including a failed
|
|
367
|
+
search), off-page and missing selections, an edited selected item, a removed
|
|
368
|
+
and restored selection, capacity and the FormEditor counter, removal and
|
|
369
|
+
reordering, pencil isolation, creation, Escape in a picker search with and
|
|
370
|
+
without a query, keyboard focus through the final Load more and its failure,
|
|
371
|
+
reopening a scrolled picker, popovers inside raised drawers, inactive background
|
|
372
|
+
panels, nested dialogs, suspension and resume (with an open menu or tooltip, and
|
|
373
|
+
with a dialog opened meanwhile), header-less tables, and reduced motion in every
|
|
374
|
+
theme at desktop and narrow widths. Search consuming stylesheets for
|
|
375
|
+
`--entry-list-max-height`.
|
|
376
|
+
|
|
377
|
+
## 0.7.0
|
|
378
|
+
|
|
379
|
+
### Breaking changes
|
|
380
|
+
|
|
381
|
+
- FormEditor number fields now show NumberField's − / + steppers when
|
|
382
|
+
`hasSteppers` is omitted (previously hidden). Queries such as
|
|
383
|
+
`getByRole("button")` beside a FormEditor can now match several buttons, and
|
|
384
|
+
narrow layouts gain two buttons per number field. Set `hasSteppers: false` to
|
|
385
|
+
keep a field typing-only.
|
|
386
|
+
- NumberField steppers (standalone, in NumberRangeField and in FormEditor) are
|
|
387
|
+
out of the tab order (`tabindex="-1"`) and no longer move focus to the input
|
|
388
|
+
when pressed. Keyboard users step with ArrowUp/ArrowDown in the input; tests
|
|
389
|
+
that tabbed to "Decrease …"/"Increase …" or expected the input to gain focus
|
|
390
|
+
after a press need updating.
|
|
391
|
+
- NumberField stepping follows new rules (below): numeric steps snap to the
|
|
392
|
+
`min`-based grid, an empty field's first press lands on a bound at or beyond 0,
|
|
393
|
+
and `step="any"` moves by a power of ten below narrow ranges. Tests that
|
|
394
|
+
asserted the previous off-grid or `min + step` results need updating.
|
|
395
|
+
- FormEditor and `validateFormValues` now throw for number fields with non-finite
|
|
396
|
+
bounds, `min > max`, a `step` that is neither positive nor `"any"`, or empty
|
|
397
|
+
`decreaseLabel`/`increaseLabel`.
|
|
398
|
+
|
|
399
|
+
### FormEditor number steppers by default, with grid-aligned stepping
|
|
400
|
+
|
|
401
|
+
FormEditor number fields show NumberField's shared − / + buttons unless
|
|
402
|
+
`hasSteppers: false`. The adapter passes `hasSteppers` through, so NumberField
|
|
403
|
+
owns the default. New `decreaseLabel` and `increaseLabel` schema options replace
|
|
404
|
+
the default "Decrease {label}"/"Increase {label}" names for translation.
|
|
405
|
+
|
|
406
|
+
NumberField's steppers and ArrowUp/ArrowDown share one set of rules:
|
|
407
|
+
|
|
408
|
+
- A numeric `step` keeps stepped values on the grid `min + k × step` (from 0
|
|
409
|
+
without `min`). Off-grid values move to the neighbouring grid value, and `max`
|
|
410
|
+
stops at the last grid value inside it, so stepping never produces a value the
|
|
411
|
+
browser rejects as a step mismatch.
|
|
412
|
+
- An empty field counts as 0, but its first press lands on a bound at or beyond
|
|
413
|
+
0: an empty `min: 1` field gives 1, and `min: 0` gives 0.
|
|
414
|
+
- `step: "any"` moves by 1, or by the largest power of ten below the range when
|
|
415
|
+
`min` and `max` are at most 1 apart (0.1 for 0–1). Results keep the operands'
|
|
416
|
+
precision instead of rounding to 10 places.
|
|
417
|
+
- Out-of-range values only step back towards their range; a direction that
|
|
418
|
+
cannot move disables its stepper.
|
|
419
|
+
- Steppers stay out of the tab order and keep focus where it is, so a tap does
|
|
420
|
+
not open the soft keyboard and a second Enter cannot submit a form.
|
|
421
|
+
|
|
422
|
+
Adoption: set `hasSteppers: false` on fields that should stay typing-only. Add
|
|
423
|
+
`decreaseLabel`/`increaseLabel` to number fields in translated forms. Fix any
|
|
424
|
+
schema that now throws. If your form wraps FormEditor in a `<form>` and relies
|
|
425
|
+
on `validateFormValues`, add `noValidate` (as the FormEditor guide's example now
|
|
426
|
+
does): a typed number off a numeric step's grid still fails the browser's own
|
|
427
|
+
constraint validation. Update tests and selectors listed above.
|
|
428
|
+
|
|
429
|
+
Compatibility: explicit `hasSteppers` values keep their meaning. Value contracts
|
|
430
|
+
are unchanged. The `onKeyDown` you pass to NumberField runs first; calling
|
|
431
|
+
`preventDefault()` there for an arrow key skips NumberField's stepping, and
|
|
432
|
+
read-only inputs do not step. No dependency or manual version change.
|
|
433
|
+
|
|
434
|
+
Verification: run `npm run validate` and consuming lint/typechecks/tests/build.
|
|
435
|
+
Review FormEditor's NumberSteppers story in all four themes at desktop, 390px and
|
|
436
|
+
320px widths. Check the default buttons, the empty-minimum, ratio and translated
|
|
437
|
+
fields, the opt-out, min/max stops on the step grid, ArrowUp/ArrowDown, that
|
|
438
|
+
Tab moves between inputs without stopping on steppers, that pressing a stepper
|
|
439
|
+
leaves focus where it was, disabled controls, affixes and clearing.
|
|
440
|
+
|
|
5
441
|
## 0.6.9
|
|
6
442
|
|
|
7
443
|
### Shared collection, editor, loading and wizard presentation
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button as e } from "../components/Button/index.js";
|
|
2
2
|
import { t } from "./mergeRefs-C6_5pADN.js";
|
|
3
3
|
import { i as n } from "./colour-CYEF4Q_n.js";
|
|
4
|
-
import { t as r } from "./useTooltip-
|
|
4
|
+
import { t as r } from "./useTooltip-DajWQyNL.js";
|
|
5
5
|
import { forwardRef as i, useMemo as a } from "react";
|
|
6
6
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import { extend as l } from "colord";
|
|
@@ -146,4 +146,4 @@ var b = i(function({ people: e, size: t = 24, className: n, ...r }, i) {
|
|
|
146
146
|
//#endregion
|
|
147
147
|
export { b as n, v as t };
|
|
148
148
|
|
|
149
|
-
//# sourceMappingURL=Avatar-
|
|
149
|
+
//# sourceMappingURL=Avatar-6t78C9Np.js.map
|