@newtone-dev/ui-react-web 0.43.0 → 0.45.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/dist/app-frame/app-frame.css +36 -92
- package/dist/app-frame/control/control.d.ts +1 -0
- package/dist/app-frame/control/control.d.ts.map +1 -1
- package/dist/app-frame/control/control.js +3 -2
- package/dist/app-frame/control/control.js.map +1 -1
- package/dist/app-frame/launcher/launcher.d.ts +6 -2
- package/dist/app-frame/launcher/launcher.d.ts.map +1 -1
- package/dist/app-frame/launcher/launcher.js +12 -11
- package/dist/app-frame/launcher/launcher.js.map +1 -1
- package/dist/app-frame/main-menu/main-menu.js +7 -3
- package/dist/app-frame/main-menu/main-menu.js.map +1 -1
- package/dist/app-frame/menu/menu.d.ts +1 -0
- package/dist/app-frame/menu/menu.d.ts.map +1 -1
- package/dist/app-frame/menu/menu.js +3 -1
- package/dist/app-frame/menu/menu.js.map +1 -1
- package/dist/app-frame/parts.d.ts +7 -1
- package/dist/app-frame/parts.d.ts.map +1 -1
- package/dist/app-frame/parts.js +14 -5
- package/dist/app-frame/parts.js.map +1 -1
- package/dist/ask-button/ask-button.css +43 -0
- package/dist/ask-button/ask-button.d.ts +24 -0
- package/dist/ask-button/ask-button.d.ts.map +1 -0
- package/dist/ask-button/ask-button.js +19 -0
- package/dist/ask-button/ask-button.js.map +1 -0
- package/dist/ask-button/index.d.ts +3 -0
- package/dist/ask-button/index.d.ts.map +1 -0
- package/dist/ask-button/index.js +2 -0
- package/dist/ask-button/index.js.map +1 -0
- package/dist/badge/badge.css +44 -0
- package/dist/badge/badge.d.ts +16 -0
- package/dist/badge/badge.d.ts.map +1 -0
- package/dist/badge/badge.js +15 -0
- package/dist/badge/badge.js.map +1 -0
- package/dist/badge/index.d.ts +3 -0
- package/dist/badge/index.d.ts.map +1 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge/index.js.map +1 -0
- package/dist/below/below.css +8 -10
- package/dist/below/below.d.ts +3 -4
- package/dist/below/below.d.ts.map +1 -1
- package/dist/below/below.js +10 -52
- package/dist/below/below.js.map +1 -1
- package/dist/below/grip.d.ts +20 -0
- package/dist/below/grip.d.ts.map +1 -0
- package/dist/below/grip.js +78 -0
- package/dist/below/grip.js.map +1 -0
- package/dist/button/button.css +14 -4
- package/dist/button/button.d.ts +12 -1
- package/dist/button/button.d.ts.map +1 -1
- package/dist/button/button.js +49 -3
- package/dist/button/button.js.map +1 -1
- package/dist/canvas/box/box.d.ts +9 -2
- package/dist/canvas/box/box.d.ts.map +1 -1
- package/dist/canvas/box/box.js +2 -2
- package/dist/canvas/box/box.js.map +1 -1
- package/dist/canvas/canvas.css +114 -28
- package/dist/canvas/canvas.d.ts +9 -2
- package/dist/canvas/canvas.d.ts.map +1 -1
- package/dist/canvas/canvas.js +19 -6
- package/dist/canvas/canvas.js.map +1 -1
- package/dist/canvas/cells/cells.d.ts +15 -4
- package/dist/canvas/cells/cells.d.ts.map +1 -1
- package/dist/canvas/cells/cells.js +25 -10
- package/dist/canvas/cells/cells.js.map +1 -1
- package/dist/canvas/cells/grid.d.ts +40 -2
- package/dist/canvas/cells/grid.d.ts.map +1 -1
- package/dist/canvas/cells/grid.js +101 -6
- package/dist/canvas/cells/grid.js.map +1 -1
- package/dist/canvas/dock/dock.d.ts +6 -1
- package/dist/canvas/dock/dock.d.ts.map +1 -1
- package/dist/canvas/dock/dock.js +19 -3
- package/dist/canvas/dock/dock.js.map +1 -1
- package/dist/canvas/frame/frame.d.ts.map +1 -1
- package/dist/canvas/frame/frame.js +1 -7
- package/dist/canvas/frame/frame.js.map +1 -1
- package/dist/canvas/index.d.ts +2 -1
- package/dist/canvas/index.d.ts.map +1 -1
- package/dist/canvas/index.js.map +1 -1
- package/dist/canvas/insert/insert.d.ts +18 -0
- package/dist/canvas/insert/insert.d.ts.map +1 -0
- package/dist/canvas/insert/insert.js +40 -0
- package/dist/canvas/insert/insert.js.map +1 -0
- package/dist/canvas/pin/pin.d.ts.map +1 -1
- package/dist/canvas/pin/pin.js +2 -1
- package/dist/canvas/pin/pin.js.map +1 -1
- package/dist/chat/chat.css +2 -7
- package/dist/chat/chat.d.ts +5 -3
- package/dist/chat/chat.d.ts.map +1 -1
- package/dist/chat/chat.js +17 -24
- package/dist/chat/chat.js.map +1 -1
- package/dist/data-grid/data-grid.css +128 -0
- package/dist/data-grid/data-grid.d.ts +45 -0
- package/dist/data-grid/data-grid.d.ts.map +1 -0
- package/dist/data-grid/data-grid.js +50 -0
- package/dist/data-grid/data-grid.js.map +1 -0
- package/dist/data-grid/index.d.ts +3 -0
- package/dist/data-grid/index.d.ts.map +1 -0
- package/dist/data-grid/index.js +2 -0
- package/dist/data-grid/index.js.map +1 -0
- package/dist/discover/discover.css +60 -0
- package/dist/discover/discover.d.ts +33 -0
- package/dist/discover/discover.d.ts.map +1 -0
- package/dist/discover/discover.js +13 -0
- package/dist/discover/discover.js.map +1 -0
- package/dist/discover/index.d.ts +4 -0
- package/dist/discover/index.d.ts.map +1 -0
- package/dist/discover/index.js +3 -0
- package/dist/discover/index.js.map +1 -0
- package/dist/file-grid/file-grid.css +5 -0
- package/dist/file-grid/file-grid.d.ts +10 -3
- package/dist/file-grid/file-grid.d.ts.map +1 -1
- package/dist/file-grid/file-grid.js +6 -5
- package/dist/file-grid/file-grid.js.map +1 -1
- package/dist/floating-bar/floating-bar.css +104 -17
- package/dist/floating-bar/floating-bar.d.ts +21 -2
- package/dist/floating-bar/floating-bar.d.ts.map +1 -1
- package/dist/floating-bar/floating-bar.js +53 -47
- package/dist/floating-bar/floating-bar.js.map +1 -1
- package/dist/font-picker/font-picker.css +41 -0
- package/dist/font-picker/font-picker.d.ts +59 -0
- package/dist/font-picker/font-picker.d.ts.map +1 -0
- package/dist/font-picker/font-picker.js +155 -0
- package/dist/font-picker/font-picker.js.map +1 -0
- package/dist/font-picker/index.d.ts +3 -0
- package/dist/font-picker/index.d.ts.map +1 -0
- package/dist/font-picker/index.js +2 -0
- package/dist/font-picker/index.js.map +1 -0
- package/dist/hint/hint.css +51 -0
- package/dist/hint/hint.d.ts +33 -0
- package/dist/hint/hint.d.ts.map +1 -0
- package/dist/hint/hint.js +80 -0
- package/dist/hint/hint.js.map +1 -0
- package/dist/hint/index.d.ts +4 -0
- package/dist/hint/index.d.ts.map +1 -0
- package/dist/hint/index.js +3 -0
- package/dist/hint/index.js.map +1 -0
- package/dist/icon/glyphs.d.ts +18 -0
- package/dist/icon/glyphs.d.ts.map +1 -0
- package/dist/icon/glyphs.js +17 -0
- package/dist/icon/glyphs.js.map +1 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.d.ts.map +1 -1
- package/dist/icon/index.js +1 -0
- package/dist/icon/index.js.map +1 -1
- package/dist/index.d.ts +44 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/inspector/index.d.ts +1 -1
- package/dist/inspector/index.d.ts.map +1 -1
- package/dist/inspector/inspector.css +197 -2
- package/dist/inspector/inspector.d.ts +83 -5
- package/dist/inspector/inspector.d.ts.map +1 -1
- package/dist/inspector/inspector.js +41 -8
- package/dist/inspector/inspector.js.map +1 -1
- package/dist/look-picker/index.d.ts +3 -0
- package/dist/look-picker/index.d.ts.map +1 -0
- package/dist/look-picker/index.js +2 -0
- package/dist/look-picker/index.js.map +1 -0
- package/dist/look-picker/look-picker.css +150 -0
- package/dist/look-picker/look-picker.d.ts +72 -0
- package/dist/look-picker/look-picker.d.ts.map +1 -0
- package/dist/look-picker/look-picker.js +91 -0
- package/dist/look-picker/look-picker.js.map +1 -0
- package/dist/look-thumb/index.d.ts +3 -0
- package/dist/look-thumb/index.d.ts.map +1 -0
- package/dist/look-thumb/index.js +2 -0
- package/dist/look-thumb/index.js.map +1 -0
- package/dist/look-thumb/look-thumb.css +7 -0
- package/dist/look-thumb/look-thumb.d.ts +27 -0
- package/dist/look-thumb/look-thumb.d.ts.map +1 -0
- package/dist/look-thumb/look-thumb.js +15 -0
- package/dist/look-thumb/look-thumb.js.map +1 -0
- package/dist/material/index.d.ts +3 -0
- package/dist/material/index.d.ts.map +1 -0
- package/dist/material/index.js +2 -0
- package/dist/material/index.js.map +1 -0
- package/dist/material/material.css +371 -0
- package/dist/material/material.d.ts +43 -0
- package/dist/material/material.d.ts.map +1 -0
- package/dist/material/material.js +27 -0
- package/dist/material/material.js.map +1 -0
- package/dist/number-field/number-field.css +21 -0
- package/dist/number-field/number-field.d.ts +24 -3
- package/dist/number-field/number-field.d.ts.map +1 -1
- package/dist/number-field/number-field.js +52 -9
- package/dist/number-field/number-field.js.map +1 -1
- package/dist/on-media/on-media.css +6 -6
- package/dist/page-editor/page-editor.css +2 -6
- package/dist/picker/picker.css +42 -0
- package/dist/picker/picker.d.ts +10 -1
- package/dist/picker/picker.d.ts.map +1 -1
- package/dist/picker/picker.js +40 -5
- package/dist/picker/picker.js.map +1 -1
- package/dist/pop-menu/index.d.ts +7 -0
- package/dist/pop-menu/index.d.ts.map +1 -0
- package/dist/pop-menu/index.js +6 -0
- package/dist/pop-menu/index.js.map +1 -0
- package/dist/{floating-bar/menu.d.ts → pop-menu/pop-menu.d.ts} +8 -2
- package/dist/pop-menu/pop-menu.d.ts.map +1 -0
- package/dist/{floating-bar/menu.js → pop-menu/pop-menu.js} +39 -11
- package/dist/pop-menu/pop-menu.js.map +1 -0
- package/dist/prompt-field/index.d.ts +3 -0
- package/dist/prompt-field/index.d.ts.map +1 -0
- package/dist/prompt-field/index.js +2 -0
- package/dist/prompt-field/index.js.map +1 -0
- package/dist/prompt-field/prompt-field.css +203 -0
- package/dist/prompt-field/prompt-field.d.ts +72 -0
- package/dist/prompt-field/prompt-field.d.ts.map +1 -0
- package/dist/prompt-field/prompt-field.js +91 -0
- package/dist/prompt-field/prompt-field.js.map +1 -0
- package/dist/quick-action/index.d.ts +1 -1
- package/dist/quick-action/index.d.ts.map +1 -1
- package/dist/quick-action/quick-action.css +60 -17
- package/dist/quick-action/quick-action.d.ts +34 -28
- package/dist/quick-action/quick-action.d.ts.map +1 -1
- package/dist/quick-action/quick-action.js +25 -21
- package/dist/quick-action/quick-action.js.map +1 -1
- package/dist/row-list/row-list.css +3 -0
- package/dist/seed-color-field/index.d.ts +3 -0
- package/dist/seed-color-field/index.d.ts.map +1 -0
- package/dist/seed-color-field/index.js +2 -0
- package/dist/seed-color-field/index.js.map +1 -0
- package/dist/seed-color-field/seed-color-field.css +103 -0
- package/dist/seed-color-field/seed-color-field.d.ts +45 -0
- package/dist/seed-color-field/seed-color-field.d.ts.map +1 -0
- package/dist/seed-color-field/seed-color-field.js +130 -0
- package/dist/seed-color-field/seed-color-field.js.map +1 -0
- package/dist/seed-dark-limit-field/index.d.ts +3 -0
- package/dist/seed-dark-limit-field/index.d.ts.map +1 -0
- package/dist/seed-dark-limit-field/index.js +2 -0
- package/dist/seed-dark-limit-field/index.js.map +1 -0
- package/dist/seed-dark-limit-field/seed-dark-limit-field.css +10 -0
- package/dist/seed-dark-limit-field/seed-dark-limit-field.d.ts +36 -0
- package/dist/seed-dark-limit-field/seed-dark-limit-field.d.ts.map +1 -0
- package/dist/seed-dark-limit-field/seed-dark-limit-field.js +18 -0
- package/dist/seed-dark-limit-field/seed-dark-limit-field.js.map +1 -0
- package/dist/seed-roundness-field/index.d.ts +3 -0
- package/dist/seed-roundness-field/index.d.ts.map +1 -0
- package/dist/seed-roundness-field/index.js +2 -0
- package/dist/seed-roundness-field/index.js.map +1 -0
- package/dist/seed-roundness-field/seed-roundness-field.css +23 -0
- package/dist/seed-roundness-field/seed-roundness-field.d.ts +39 -0
- package/dist/seed-roundness-field/seed-roundness-field.d.ts.map +1 -0
- package/dist/seed-roundness-field/seed-roundness-field.js +15 -0
- package/dist/seed-roundness-field/seed-roundness-field.js.map +1 -0
- package/dist/seed-steps/index.d.ts +8 -0
- package/dist/seed-steps/index.d.ts.map +1 -0
- package/dist/seed-steps/index.js +7 -0
- package/dist/seed-steps/index.js.map +1 -0
- package/dist/seed-steps/reset-focus.d.ts +16 -0
- package/dist/seed-steps/reset-focus.d.ts.map +1 -0
- package/dist/seed-steps/reset-focus.js +53 -0
- package/dist/seed-steps/reset-focus.js.map +1 -0
- package/dist/seed-steps/seed-steps.css +83 -0
- package/dist/seed-steps/seed-steps.d.ts +47 -0
- package/dist/seed-steps/seed-steps.d.ts.map +1 -0
- package/dist/seed-steps/seed-steps.js +95 -0
- package/dist/seed-steps/seed-steps.js.map +1 -0
- package/dist/shell/shell.css +1 -13
- package/dist/skeleton/index.d.ts +3 -0
- package/dist/skeleton/index.d.ts.map +1 -0
- package/dist/skeleton/index.js +2 -0
- package/dist/skeleton/index.js.map +1 -0
- package/dist/skeleton/skeleton.css +84 -0
- package/dist/skeleton/skeleton.d.ts +50 -0
- package/dist/skeleton/skeleton.d.ts.map +1 -0
- package/dist/skeleton/skeleton.js +25 -0
- package/dist/skeleton/skeleton.js.map +1 -0
- package/dist/slide-list/index.d.ts +1 -1
- package/dist/slide-list/index.d.ts.map +1 -1
- package/dist/slide-list/slide-list.css +281 -23
- package/dist/slide-list/slide-list.d.ts +87 -1
- package/dist/slide-list/slide-list.d.ts.map +1 -1
- package/dist/slide-list/slide-list.js +265 -19
- package/dist/slide-list/slide-list.js.map +1 -1
- package/dist/split/split.css +10 -12
- package/dist/split/split.d.ts +2 -0
- package/dist/split/split.d.ts.map +1 -1
- package/dist/split/split.js +21 -3
- package/dist/split/split.js.map +1 -1
- package/dist/stage/stage.d.ts +11 -4
- package/dist/stage/stage.d.ts.map +1 -1
- package/dist/stage/stage.js +30 -9
- package/dist/stage/stage.js.map +1 -1
- package/dist/step-list/index.d.ts +3 -0
- package/dist/step-list/index.d.ts.map +1 -0
- package/dist/step-list/index.js +2 -0
- package/dist/step-list/index.js.map +1 -0
- package/dist/step-list/step-list.css +151 -0
- package/dist/step-list/step-list.d.ts +101 -0
- package/dist/step-list/step-list.d.ts.map +1 -0
- package/dist/step-list/step-list.js +76 -0
- package/dist/step-list/step-list.js.map +1 -0
- package/dist/suggestion/index.d.ts +3 -0
- package/dist/suggestion/index.d.ts.map +1 -0
- package/dist/suggestion/index.js +2 -0
- package/dist/suggestion/index.js.map +1 -0
- package/dist/suggestion/suggestion.css +45 -0
- package/dist/suggestion/suggestion.d.ts +23 -0
- package/dist/suggestion/suggestion.d.ts.map +1 -0
- package/dist/suggestion/suggestion.js +45 -0
- package/dist/suggestion/suggestion.js.map +1 -0
- package/dist/switch/switch.css +1 -6
- package/dist/text-field/text-field.css +11 -2
- package/dist/thread/thread.css +9 -49
- package/dist/thread/thread.d.ts.map +1 -1
- package/dist/thread/thread.js +45 -46
- package/dist/thread/thread.js.map +1 -1
- package/dist/tile-picker/index.d.ts +1 -1
- package/dist/tile-picker/index.d.ts.map +1 -1
- package/dist/tile-picker/tile-picker.css +74 -10
- package/dist/tile-picker/tile-picker.d.ts +74 -7
- package/dist/tile-picker/tile-picker.d.ts.map +1 -1
- package/dist/tile-picker/tile-picker.js +82 -35
- package/dist/tile-picker/tile-picker.js.map +1 -1
- package/dist/tile-search/index.d.ts +7 -0
- package/dist/tile-search/index.d.ts.map +1 -0
- package/dist/tile-search/index.js +7 -0
- package/dist/tile-search/index.js.map +1 -0
- package/dist/tile-search/narrow.d.ts +22 -0
- package/dist/tile-search/narrow.d.ts.map +1 -0
- package/dist/tile-search/narrow.js +62 -0
- package/dist/tile-search/narrow.js.map +1 -0
- package/dist/tile-search/search-box.d.ts +19 -0
- package/dist/tile-search/search-box.d.ts.map +1 -0
- package/dist/tile-search/search-box.js +47 -0
- package/dist/tile-search/search-box.js.map +1 -0
- package/dist/tooltip/tooltip.css +13 -20
- package/dist/tooltip/tooltip.d.ts +2 -2
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +15 -2
- package/dist/tooltip/tooltip.js.map +1 -1
- package/dist/workbench/workbench.css +129 -16
- package/dist/workbench/workbench.d.ts +10 -2
- package/dist/workbench/workbench.d.ts.map +1 -1
- package/dist/workbench/workbench.js +8 -2
- package/dist/workbench/workbench.js.map +1 -1
- package/package.json +81 -1
- package/dist/floating-bar/menu.d.ts.map +0 -1
- package/dist/floating-bar/menu.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quick-action.d.ts","sourceRoot":"","sources":["../../src/quick-action/quick-action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"quick-action.d.ts","sourceRoot":"","sources":["../../src/quick-action/quick-action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGlF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvD,kGAAkG;AAClG,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAA;AAEtD,UAAU,iBAAiB;IACvB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B;AAED,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAC5C,CACM,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,GAAG;IACxE,IAAI,CAAC,EAAE,SAAS,CAAA;CACnB,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,YAAY,CAAC,GAAG;IACjF,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAA;CACf,CAAC,CACP,CAAA;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,WAAW,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,IAAW,EACX,OAAmB,EACnB,OAAO,EACP,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACV,EAAE,gBAAgB,+BAoClB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Badge } from '../badge/badge.js';
|
|
2
3
|
/**
|
|
3
4
|
* One round action a page keeps within reach for a whole visit -- a chat entry, a back to top, a
|
|
4
5
|
* help button. `Action`'s persistent sibling: an action is a moment a reader arrives at, this is on
|
|
@@ -14,17 +15,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
14
15
|
* That is issues/open/201 arriving early: a consumer writes no Newtone property, and what replaces
|
|
15
16
|
* one is a prop.
|
|
16
17
|
*
|
|
17
|
-
* ----
|
|
18
|
+
* ---- it sat two months with nothing rendering it --------------------------
|
|
18
19
|
*
|
|
19
20
|
* **Ported 2026-09-16 from `~/Projects/Harbour Space/-harbour-space-design-system` with zero call
|
|
20
|
-
* sites anywhere in this house
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* **So every refusal below is argued from the reference and from sibling components, and none of
|
|
26
|
-
* them has been tested.** They may all be right. Whoever gives this a consumer should expect to
|
|
27
|
-
* change some of them, which is what happened to `Control` within hours of it landing.
|
|
21
|
+
* sites anywhere in this house**, its shape settled by reading a reference rather than by a consumer
|
|
22
|
+
* pushing on it. `production/newtone/ui_react-web/_issues/done/154-the-round-action-nothing-presses.md`.
|
|
23
|
+
* Revived 2026-11-11 (Joshua) as the general round action: AskButton is one, and HuevOS People's
|
|
24
|
+
* "+" renders one. The refusals below were argued from the reference before any of that; expect a
|
|
25
|
+
* consumer to change some of them.
|
|
28
26
|
*
|
|
29
27
|
* ---- no brand variant ----------------------------------------------------
|
|
30
28
|
*
|
|
@@ -33,26 +31,32 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
33
31
|
* a client, and a licensed asset lives with its licence holder -- *the library learns to express a
|
|
34
32
|
* thing, it never carries it.* The slot above is what replaces it.
|
|
35
33
|
*
|
|
36
|
-
* ---- no `disabled
|
|
34
|
+
* ---- no `disabled`; raised on glass, flat off it --------------------------
|
|
37
35
|
*
|
|
38
36
|
* `disabled` is absent for `Action`'s reason, which is stronger here: an unavailable action that is
|
|
39
37
|
* on screen for the entire visit is worse than one that is not there.
|
|
40
38
|
*
|
|
41
|
-
* **
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* is
|
|
45
|
-
*
|
|
46
|
-
*
|
|
39
|
+
* **Inside glass it is raised** (Joshua 2026-11-11): the glass wash, the lit edge and the close
|
|
40
|
+
* shadow cast in black, which is the lift the reference had and this lost while Newtone had no
|
|
41
|
+
* shadow vocabulary. `primary` wears the accent glass; pressed, it sits down to the contact shadow.
|
|
42
|
+
* **Outside glass it is a flat disc** with a 1px rim. It reads the material from the DOM attribute
|
|
43
|
+
* (material.css), so it stays a server component. AskButton is this, `primary`, always on glass.
|
|
44
|
+
* Revived 2026-11-11, closing issues/done/154.
|
|
47
45
|
*/
|
|
48
|
-
export function QuickAction({ label, children, size = 'lg', className, ...rest }) {
|
|
49
|
-
const classes = [
|
|
46
|
+
export function QuickAction({ label, children, size = 'lg', variant = 'neutral', pressed, badge, className, ...rest }) {
|
|
47
|
+
const classes = [
|
|
48
|
+
'newtone-quick-action',
|
|
49
|
+
`newtone-quick-action--${size}`,
|
|
50
|
+
variant === 'primary' ? 'newtone-quick-action--primary' : null,
|
|
51
|
+
className,
|
|
52
|
+
]
|
|
50
53
|
.filter(Boolean)
|
|
51
54
|
.join(' ');
|
|
55
|
+
const mark = badge === true ? _jsx(Badge, {}) : typeof badge === 'number' ? _jsx(Badge, { count: badge }) : null;
|
|
52
56
|
if (rest.href !== undefined) {
|
|
53
57
|
const { href, ...anchor } = rest;
|
|
54
|
-
return (
|
|
58
|
+
return (_jsxs("a", { href: href, className: classes, "aria-label": label, ...anchor, children: [children, mark] }));
|
|
55
59
|
}
|
|
56
|
-
return (
|
|
60
|
+
return (_jsxs("button", { type: "button", className: classes, "aria-label": label, "aria-pressed": pressed, ...rest, children: [children, mark] }));
|
|
57
61
|
}
|
|
58
62
|
//# sourceMappingURL=quick-action.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quick-action.js","sourceRoot":"","sources":["../../src/quick-action/quick-action.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"quick-action.js","sourceRoot":"","sources":["../../src/quick-action/quick-action.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAyDzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,UAAU,WAAW,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,SAAS,EACnB,OAAO,EACP,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACQ;IACf,MAAM,OAAO,GAAG;QACZ,sBAAsB;QACtB,yBAAyB,IAAI,EAAE;QAC/B,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,IAAI;QAC9D,SAAS;KACZ;SACI,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAA;IACd,MAAM,IAAI,GAAG,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,KAAC,KAAK,KAAG,CAAC,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAA;IAEpG,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,IAG3B,CAAA;QACD,OAAO,CACH,aAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,gBAAc,KAAK,KAAM,MAAM,aAC3D,QAAQ,EACR,IAAI,IACL,CACP,CAAA;IACL,CAAC;IAED,OAAO,CACH,kBACI,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,OAAO,gBACN,KAAK,kBACH,OAAO,KAChB,IAAgD,aAEpD,QAAQ,EACR,IAAI,IACA,CACZ,CAAA;AACL,CAAC"}
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
gap: var(--newtone-space-2);
|
|
21
21
|
}
|
|
22
|
+
/* The words take the room the row has left, so they stand right after what leads the row (a FramedIcon) and the end
|
|
23
|
+
stays at the end; with space-between alone, a row of three put them in its middle (2026-11-11, the Store). */
|
|
22
24
|
.newtone-row-list-text {
|
|
25
|
+
flex: 1 1 auto;
|
|
23
26
|
display: flex;
|
|
24
27
|
flex-direction: column;
|
|
25
28
|
gap: var(--newtone-space-1);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/seed-color-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/seed-color-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* SeedColorField -- blueprint components/seed-color-field.md. One palette of a seed: its ramp, its hue and saturation,
|
|
2
|
+
* and the strips it unfolds. Disabled, nothing is natively disabled (2026-11-13): the ramp and the strips are
|
|
3
|
+
* aria-disabled, the fields NumberField's own disabledFocusable, the press back Button's, so a focus held stays.
|
|
4
|
+
*
|
|
5
|
+
* LENGTHS IT DECIDES:
|
|
6
|
+
* 36px the ramp, as tall as the NumberFields beside it; 72px wide, six steps of the palette side by side
|
|
7
|
+
* 20px the base's picture beside a departure; 1px its hairline
|
|
8
|
+
* 16px each strip; 12px the ring where the value stands, 2px of surface.primary in a text.primary hairline,
|
|
9
|
+
* as ColorField's
|
|
10
|
+
* The ramp's and the strips' colours are the palette's own, not the interface's: written in seed-color-field.tsx, as
|
|
11
|
+
* data. */
|
|
12
|
+
.newtone-seed-color-field {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: var(--newtone-space-2);
|
|
16
|
+
min-inline-size: 0;
|
|
17
|
+
color: var(--newtone-role-text-primary);
|
|
18
|
+
}
|
|
19
|
+
.newtone-seed-color-field-head {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: baseline;
|
|
22
|
+
gap: var(--newtone-space-2);
|
|
23
|
+
min-inline-size: 0;
|
|
24
|
+
}
|
|
25
|
+
.newtone-seed-color-field-row {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: var(--newtone-space-2);
|
|
29
|
+
min-inline-size: 0;
|
|
30
|
+
}
|
|
31
|
+
.newtone-seed-color-field-number {
|
|
32
|
+
flex: 1 1 0;
|
|
33
|
+
min-inline-size: 5rem;
|
|
34
|
+
}
|
|
35
|
+
.newtone-seed-color-field-ramp {
|
|
36
|
+
all: unset;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
flex: none;
|
|
39
|
+
display: flex;
|
|
40
|
+
inline-size: 72px;
|
|
41
|
+
block-size: 36px;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
border: 1px solid var(--newtone-role-divider-primary);
|
|
44
|
+
border-radius: var(--newtone-radius-sm);
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
.newtone-seed-color-field-ramp > span {
|
|
48
|
+
flex: 1;
|
|
49
|
+
}
|
|
50
|
+
.newtone-seed-color-field-ramp:focus-visible {
|
|
51
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
52
|
+
outline-offset: 2px;
|
|
53
|
+
}
|
|
54
|
+
.newtone-seed-color-field-ramp[aria-disabled='true'] {
|
|
55
|
+
cursor: default;
|
|
56
|
+
}
|
|
57
|
+
/* Following its base: the fields' numbers in the secondary ink (2026-11-13, as the other style rows: ink, not opacity,
|
|
58
|
+
* so the numbers keep their contrast), the words said beside the name. The ramp is the palette's own colours, drawn as
|
|
59
|
+
* they are. Typed or scrubbed, it departs. */
|
|
60
|
+
.newtone-seed-color-field[data-same] .newtone-seed-color-field-number:not([data-disabled]) {
|
|
61
|
+
color: var(--newtone-role-text-secondary);
|
|
62
|
+
}
|
|
63
|
+
.newtone-seed-color-field-base {
|
|
64
|
+
flex: none;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
inline-size: 20px;
|
|
67
|
+
block-size: 20px;
|
|
68
|
+
border: 1px solid var(--newtone-role-divider-primary);
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
}
|
|
71
|
+
.newtone-seed-color-field-strips {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
gap: var(--newtone-space-3);
|
|
75
|
+
padding-block: var(--newtone-space-1);
|
|
76
|
+
}
|
|
77
|
+
.newtone-seed-color-field-strip {
|
|
78
|
+
position: relative;
|
|
79
|
+
block-size: 16px;
|
|
80
|
+
border-radius: var(--newtone-radius-sm);
|
|
81
|
+
touch-action: none;
|
|
82
|
+
cursor: crosshair;
|
|
83
|
+
outline: none;
|
|
84
|
+
}
|
|
85
|
+
.newtone-seed-color-field-strip:focus-visible {
|
|
86
|
+
outline: 2px solid var(--newtone-role-text-accent);
|
|
87
|
+
outline-offset: 2px;
|
|
88
|
+
}
|
|
89
|
+
.newtone-seed-color-field-strip[aria-disabled='true'] {
|
|
90
|
+
cursor: default;
|
|
91
|
+
}
|
|
92
|
+
.newtone-seed-color-field-ring {
|
|
93
|
+
position: absolute;
|
|
94
|
+
inset-block-start: 50%;
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
inline-size: 12px;
|
|
97
|
+
block-size: 12px;
|
|
98
|
+
margin: -6px 0 0 -6px;
|
|
99
|
+
border: 2px solid var(--newtone-role-surface-primary);
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
box-shadow: 0 0 0 1px var(--newtone-role-text-primary);
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
/** A palette's seed: `h`, its hue in degrees (0 to 360); `c`, its saturation as a share of the gamut (0 to 1). */
|
|
3
|
+
export interface SeedColor {
|
|
4
|
+
h: number;
|
|
5
|
+
c: number;
|
|
6
|
+
}
|
|
7
|
+
export interface SeedColorFieldLabels {
|
|
8
|
+
/** Said where the palette follows `inherited`, and on the press that makes it follow again: "Same as base". */
|
|
9
|
+
same: string;
|
|
10
|
+
/** The hue's name: its field's label, and with `label` its full name. */
|
|
11
|
+
hue: string;
|
|
12
|
+
/** The saturation's name, as `hue`. */
|
|
13
|
+
saturation: string;
|
|
14
|
+
/** The fields' short labels, where `hue` and `saturation` are too long to start a field (H, S). */
|
|
15
|
+
hueShort?: string;
|
|
16
|
+
saturationShort?: string;
|
|
17
|
+
/** Names the small picture of `inherited` beside a departure ("Base"); `same` unless given. */
|
|
18
|
+
base?: string;
|
|
19
|
+
/** The press's words that set a departure back, where they differ from `same` (2026-11-13): "Reset to Sunset's". */
|
|
20
|
+
reset?: string;
|
|
21
|
+
/** Said beside the name while the palette departs from `inherited` (2026-11-13): "Changed here". Not shown unless given. */
|
|
22
|
+
changed?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SeedColorFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
25
|
+
/** The palette's name: Accent, Neutral. */
|
|
26
|
+
label: string;
|
|
27
|
+
/** The palette as set here; null where it is not set (it follows `inherited`, when given). */
|
|
28
|
+
value: SeedColor | null;
|
|
29
|
+
/** What it follows while `value` is null: the base's palette. Given, the field can be set back to it. */
|
|
30
|
+
inherited?: SeedColor;
|
|
31
|
+
/** Told the palette as it changes; null when it is set back to follow `inherited`. */
|
|
32
|
+
onChange: (value: SeedColor | null) => void;
|
|
33
|
+
/** A change ended (typed, a step, a drag let go, set back): one change, for the consumer's history. */
|
|
34
|
+
onCommit?: () => void;
|
|
35
|
+
labels: SeedColorFieldLabels;
|
|
36
|
+
/**
|
|
37
|
+
* Read-only (2026-11-13: focus-safe). Nothing is disabled natively, which would drop a focus it holds to the page:
|
|
38
|
+
* the ramp is `aria-disabled` and does not unfold, the two fields are `NumberField`'s `disabledFocusable`, the
|
|
39
|
+
* strips `aria-disabled`, the press back Button's `disabledFocusable`. Each keeps its Tab stop and is still heard.
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** A palette: its ramp, its hue and saturation, and the strips it unfolds. Blueprint components/seed-color-field.md. */
|
|
44
|
+
export declare function SeedColorField({ label, value, inherited, onChange, onCommit, labels, disabled, className, ...rest }: SeedColorFieldProps): import("react").JSX.Element;
|
|
45
|
+
//# sourceMappingURL=seed-color-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-color-field.d.ts","sourceRoot":"","sources":["../../src/seed-color-field/seed-color-field.tsx"],"names":[],"mappings":"AAOA,OAAO,EAKH,KAAK,cAAc,EAGtB,MAAM,OAAO,CAAA;AAOd,kHAAkH;AAClH,MAAM,WAAW,SAAS;IACtB,CAAC,EAAE,MAAM,CAAA;IACT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ed.json's `{ h, c }`: a hue and a saturation, the share of the most the gamut holds), as a
|
|
4
|
+
// brand or a look edits it: a ramp of the palette's own steps, its hue and saturation to type or scrub, and two strips
|
|
5
|
+
// it unfolds to pick them by eye. Where the palette may follow another (a variant's column follows its base; a brand
|
|
6
|
+
// follows HuevOS), `inherited` is that other: while `value` is null its numbers are in the secondary ink and it is said
|
|
7
|
+
// to be the same, and a "Same as base" press puts a departure back. Blueprint components/seed-color-field.md.
|
|
8
|
+
import { useId, useMemo, useRef, useState, } from 'react';
|
|
9
|
+
import { deriveScale } from '../color/index.js';
|
|
10
|
+
import { Button } from '../button/button.js';
|
|
11
|
+
import { NumberField } from '../number-field/number-field.js';
|
|
12
|
+
import { useResetFocus } from '../seed-steps/index.js';
|
|
13
|
+
import { Text } from '../text/text.js';
|
|
14
|
+
// The steps the ramp shows, light to dark, and the one the strips are drawn at (where a palette is most itself).
|
|
15
|
+
const RAMP = [6, 14, 22, 30, 38, 46];
|
|
16
|
+
const STRIP = 22;
|
|
17
|
+
const HUES = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360];
|
|
18
|
+
const SHARES = [0, 0.2, 0.4, 0.6, 0.8, 1];
|
|
19
|
+
const round = (n, places) => Number(n.toFixed(places));
|
|
20
|
+
const wrap = (h) => ((Math.round(h) % 360) + 360) % 360;
|
|
21
|
+
const clamp01 = (n) => Math.min(1, Math.max(0, n));
|
|
22
|
+
const stepOf = (h, c, step) => deriveScale(h, c)[step].srgb;
|
|
23
|
+
/** A palette: its ramp, its hue and saturation, and the strips it unfolds. Blueprint components/seed-color-field.md. */
|
|
24
|
+
export function SeedColorField({ label, value, inherited, onChange, onCommit, labels, disabled, className, ...rest }) {
|
|
25
|
+
const [open, setOpen] = useState(false);
|
|
26
|
+
// Arrow keys held or pressed in a row on a strip: one change, ended when the key is let go (or the strip left).
|
|
27
|
+
const nudging = useRef(false);
|
|
28
|
+
const rampButton = useRef(null);
|
|
29
|
+
const strips = useRef(null);
|
|
30
|
+
const stripsId = `${useId()}strips`;
|
|
31
|
+
const same = value === null && inherited !== undefined;
|
|
32
|
+
const departs = value !== null && inherited !== undefined;
|
|
33
|
+
// The press back goes as it is pressed, or as the departure is cleared from outside: the focus it held goes to the
|
|
34
|
+
// ramp, the field's first Tab stop, now showing the palette it follows.
|
|
35
|
+
const { resetting, press } = useResetFocus(departs, () => rampButton.current);
|
|
36
|
+
// The strips fold (Escape on one, or the ramp pressed): a focus held in them goes to the ramp first, as a
|
|
37
|
+
// disclosure's goes back to its trigger, so it never drops to the page. A mouse press does not focus a button in
|
|
38
|
+
// every browser, so the ramp pressed may leave the focus on a strip until here.
|
|
39
|
+
const fold = () => {
|
|
40
|
+
if (strips.current?.contains(document.activeElement))
|
|
41
|
+
rampButton.current?.focus();
|
|
42
|
+
setOpen(false);
|
|
43
|
+
};
|
|
44
|
+
const shown = value ?? inherited ?? null;
|
|
45
|
+
const at = shown ?? { h: 0, c: 0 };
|
|
46
|
+
// The palette's colours are data, not the interface's: drawn from Newtone's own derivation.
|
|
47
|
+
const ramp = useMemo(() => {
|
|
48
|
+
if (!shown)
|
|
49
|
+
return [];
|
|
50
|
+
const steps = deriveScale(shown.h, shown.c);
|
|
51
|
+
return RAMP.map((s) => steps[s].srgb);
|
|
52
|
+
}, [shown?.h, shown?.c]);
|
|
53
|
+
const base = useMemo(() => (inherited && value ? stepOf(inherited.h, inherited.c, STRIP) : null), [inherited?.h, inherited?.c, value === null]);
|
|
54
|
+
// The strips: every hue at this saturation, every saturation at this hue. Only while unfolded. The hues are drawn
|
|
55
|
+
// at least at 40%, so a near-grey palette (a neutral) still shows which hue it leans to.
|
|
56
|
+
const cKey = Math.max(0.4, round(at.c, 2));
|
|
57
|
+
const hKey = Math.round(at.h);
|
|
58
|
+
const hueStrip = useMemo(() => open
|
|
59
|
+
? `linear-gradient(to right, ${HUES.map((h) => stepOf(h, cKey, STRIP)).join(', ')})`
|
|
60
|
+
: undefined, [open, cKey]);
|
|
61
|
+
const shareStrip = useMemo(() => open
|
|
62
|
+
? `linear-gradient(to right, ${SHARES.map((c) => stepOf(hKey, c, STRIP)).join(', ')})`
|
|
63
|
+
: undefined, [open, hKey]);
|
|
64
|
+
const set = (to) => {
|
|
65
|
+
const next = { ...at, ...to };
|
|
66
|
+
onChange({ h: wrap(next.h), c: round(clamp01(next.c), 2) });
|
|
67
|
+
};
|
|
68
|
+
// A drag on a strip picks where the pointer is, until it lets go. Made read-only mid-drag, it stops changing (as
|
|
69
|
+
// NumberField's scrub does); letting go still ends the change made before, for the consumer's history.
|
|
70
|
+
const dragOn = (part) => {
|
|
71
|
+
const pick = (e) => {
|
|
72
|
+
const r = e.currentTarget.getBoundingClientRect();
|
|
73
|
+
const x = clamp01((e.clientX - r.left) / r.width);
|
|
74
|
+
set(part === 'hue' ? { h: Math.min(359, x * 360) } : { c: x });
|
|
75
|
+
};
|
|
76
|
+
return {
|
|
77
|
+
onPointerDown: (e) => {
|
|
78
|
+
if (disabled)
|
|
79
|
+
return;
|
|
80
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
81
|
+
pick(e);
|
|
82
|
+
},
|
|
83
|
+
onPointerMove: (e) => {
|
|
84
|
+
if (disabled)
|
|
85
|
+
return;
|
|
86
|
+
if (e.currentTarget.hasPointerCapture(e.pointerId))
|
|
87
|
+
pick(e);
|
|
88
|
+
},
|
|
89
|
+
onPointerUp: (e) => {
|
|
90
|
+
if (!e.currentTarget.hasPointerCapture(e.pointerId))
|
|
91
|
+
return;
|
|
92
|
+
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
93
|
+
onCommit?.();
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
const nudge = (part) => (e) => {
|
|
98
|
+
if (e.key === 'Escape')
|
|
99
|
+
return fold();
|
|
100
|
+
const by = { ArrowLeft: -1, ArrowDown: -1, ArrowRight: 1, ArrowUp: 1 }[e.key];
|
|
101
|
+
if (!by)
|
|
102
|
+
return;
|
|
103
|
+
// A slider's own keys are kept from the page, read-only too (as NumberField's are); read-only, they change nothing.
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
if (disabled)
|
|
106
|
+
return;
|
|
107
|
+
const big = e.shiftKey ? 10 : 1;
|
|
108
|
+
if (part === 'hue')
|
|
109
|
+
set({ h: at.h + by * big });
|
|
110
|
+
else
|
|
111
|
+
set({ c: at.c + (by * big) / 100 });
|
|
112
|
+
nudging.current = true;
|
|
113
|
+
};
|
|
114
|
+
const nudged = () => {
|
|
115
|
+
if (!nudging.current)
|
|
116
|
+
return;
|
|
117
|
+
nudging.current = false;
|
|
118
|
+
onCommit?.();
|
|
119
|
+
};
|
|
120
|
+
const hueName = `${labels.hue}: ${label}`;
|
|
121
|
+
const shareName = `${labels.saturation}: ${label}`;
|
|
122
|
+
return (_jsxs("div", { ...rest, className: ['newtone-seed-color-field', className].filter(Boolean).join(' '), "data-same": same ? '' : undefined, children: [_jsxs("div", { className: "newtone-seed-color-field-head", children: [_jsx(Text, { as: "span", scale: "body-sm", weight: "medium", lines: 1, children: label }), same || (departs && labels.changed) ? (_jsx(Text, { as: "span", scale: "caption", tone: "secondary", lines: 1, children: same ? labels.same : labels.changed })) : null] }), _jsxs("div", { className: "newtone-seed-color-field-row", children: [_jsx("button", { ref: rampButton, type: "button", className: "newtone-seed-color-field-ramp", "aria-label": label, "aria-expanded": open, "aria-controls": open ? stripsId : undefined, "aria-disabled": disabled || undefined,
|
|
123
|
+
// Disabled, it does not unfold; strips already open still fold, which changes nothing.
|
|
124
|
+
onClick: () => (open ? fold() : disabled ? undefined : setOpen(true)), children: ramp.map((hex, i) => (_jsx("span", { style: { background: hex } }, i))) }), _jsx(NumberField, { className: "newtone-seed-color-field-number", label: labels.hueShort ?? labels.hue, name: hueName, value: shown ? Math.round(shown.h) : null, min: 0, max: 360, unit: "\u00B0", precision: 0, disabledFocusable: disabled, onChange: (h) => set({ h }), onCommit: onCommit }), _jsx(NumberField, { className: "newtone-seed-color-field-number", label: labels.saturationShort ?? labels.saturation, name: shareName, value: shown ? Math.round(shown.c * 100) : null, min: 0, max: 100, unit: "%", precision: 0, disabledFocusable: disabled, onChange: (p) => set({ c: p / 100 }), onCommit: onCommit }), base ? (_jsx("span", { className: "newtone-seed-color-field-base", role: "img", "aria-label": `${labels.base ?? labels.same}: ${Math.round(inherited.h)}°, ${Math.round(inherited.c * 100)}%`, title: `${labels.base ?? labels.same}: ${Math.round(inherited.h)}°, ${Math.round(inherited.c * 100)}%`, style: { background: base } })) : null, departs ? (_jsx(Button, { size: "sm", variant: "tertiary", className: "newtone-seed-color-field-reset", disabledFocusable: disabled, "aria-label": `${labels.reset ?? labels.same}: ${label}`, ...press, onClick: () => {
|
|
125
|
+
resetting();
|
|
126
|
+
onChange(null);
|
|
127
|
+
onCommit?.();
|
|
128
|
+
}, children: labels.reset ?? labels.same })) : null] }), open ? (_jsxs("div", { className: "newtone-seed-color-field-strips", id: stripsId, ref: strips, children: [_jsx("div", { className: "newtone-seed-color-field-strip", role: "slider", tabIndex: 0, "aria-label": hueName, "aria-valuemin": 0, "aria-valuemax": 360, "aria-valuenow": Math.round(at.h), "aria-valuetext": `${Math.round(at.h)} °`, "aria-disabled": disabled || undefined, style: { background: hueStrip }, onKeyDown: nudge('hue'), onKeyUp: nudged, onBlur: nudged, ...dragOn('hue'), children: _jsx("span", { className: "newtone-seed-color-field-ring", style: { left: `${(at.h / 360) * 100}%` } }) }), _jsx("div", { className: "newtone-seed-color-field-strip", role: "slider", tabIndex: 0, "aria-label": shareName, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": Math.round(at.c * 100), "aria-valuetext": `${Math.round(at.c * 100)} %`, "aria-disabled": disabled || undefined, style: { background: shareStrip }, onKeyDown: nudge('share'), onKeyUp: nudged, onBlur: nudged, ...dragOn('share'), children: _jsx("span", { className: "newtone-seed-color-field-ring", style: { left: `${at.c * 100}%` } }) })] })) : null] }));
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=seed-color-field.js.map
|
|
@@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,CAAC,mBACD,GAAG,mBACH,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,oBACrB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,mBAC9B,QAAQ,IAAI,SAAS,EACpC,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EACjC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,KACV,MAAM,CAAC,OAAO,CAAC,YAEnB,eACI,SAAS,EAAC,+BAA+B,EACzC,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,GACnC,GACA,IACJ,CACT,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { SeedDarkLimitField, DARK_LIMIT_MIN, DARK_LIMIT_MAX, DARK_LIMIT_STEPS, DARK_LIMIT_ABSENT, darkLimitText, } from './seed-dark-limit-field.js';
|
|
2
|
+
export type { SeedDarkLimitFieldProps, SeedDarkLimitFieldLabels } from './seed-dark-limit-field.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/seed-dark-limit-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,GAChB,MAAM,4BAA4B,CAAA;AACnC,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/seed-dark-limit-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,GAChB,MAAM,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* SeedDarkLimitField -- blueprint components/seed-dark-limit-field.md. A seed's dark limit: five numbered steps,
|
|
2
|
+
* −2 −1 0 +1 +2, on the steps' track (seed-steps.css, SegmentedControl's tokens, as SeedRoundnessField's), imported
|
|
3
|
+
* here. Each step is its number at body-sm in tabular figures, so the five stand alike.
|
|
4
|
+
*
|
|
5
|
+
* LENGTHS IT DECIDES: none of its own; the track's are seed-steps.css's. */
|
|
6
|
+
@import '../seed-steps/seed-steps.css';
|
|
7
|
+
|
|
8
|
+
.newtone-seed-dark-limit-field-number {
|
|
9
|
+
font-variant-numeric: tabular-nums;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
/** The least and the most `color.dark` holds; 0, Newtone's own, in the middle. */
|
|
3
|
+
export declare const DARK_LIMIT_MIN = -2;
|
|
4
|
+
export declare const DARK_LIMIT_MAX = 2;
|
|
5
|
+
/** What `color.dark` is when absent: what a null value with nothing `inherited` shows. */
|
|
6
|
+
export declare const DARK_LIMIT_ABSENT = 0;
|
|
7
|
+
/** The five steps, in order. */
|
|
8
|
+
export declare const DARK_LIMIT_STEPS: readonly [-2, -1, 0, 1, 2];
|
|
9
|
+
/** A step as it is shown and named: its sign always, a true minus below zero, 0 bare. */
|
|
10
|
+
export declare const darkLimitText: (v: number) => string;
|
|
11
|
+
export interface SeedDarkLimitFieldLabels {
|
|
12
|
+
/** Said where the value follows `inherited`, and on the press that makes it follow again: "Same as Sunset". */
|
|
13
|
+
same: string;
|
|
14
|
+
/** The press's words, where they differ from `same`: "Reset to Sunset's". */
|
|
15
|
+
reset?: string;
|
|
16
|
+
/** Said beside the name while the value departs from `inherited`: "Changed here". Not shown unless given. */
|
|
17
|
+
changed?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SeedDarkLimitFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
20
|
+
/** The field's name: Dark limit. It names the radio group too. */
|
|
21
|
+
label: string;
|
|
22
|
+
/**
|
|
23
|
+
* The value set here, -2 to +2; null where it is not set: it follows `inherited`, when given, else it shows 0, the
|
|
24
|
+
* key's value when absent, as followed (the secondary ink, the Tab stop on it).
|
|
25
|
+
*/
|
|
26
|
+
value: number | null;
|
|
27
|
+
/** What it follows while `value` is null: the style's value (0 where the style sets none). */
|
|
28
|
+
inherited?: number;
|
|
29
|
+
/** Told the step picked; null when it is set back to follow `inherited`. */
|
|
30
|
+
onChange: (value: number | null) => void;
|
|
31
|
+
labels: SeedDarkLimitFieldLabels;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** A seed's dark limit, five numbered steps from −2 to +2. Blueprint components/seed-dark-limit-field.md. */
|
|
35
|
+
export declare function SeedDarkLimitField({ labels, className, ...rest }: SeedDarkLimitFieldProps): import("react").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=seed-dark-limit-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-dark-limit-field.d.ts","sourceRoot":"","sources":["../../src/seed-dark-limit-field/seed-dark-limit-field.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,kFAAkF;AAClF,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,eAAO,MAAM,cAAc,IAAI,CAAA;AAC/B,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,IAAI,CAAA;AAClC,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,YAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAA;AAE1D,yFAAyF;AACzF,eAAO,MAAM,aAAa,MAAO,MAAM,WAA+C,CAAA;AAEtF,MAAM,WAAW,wBAAwB;IACrC,+GAA+G;IAC/G,IAAI,EAAE,MAAM,CAAA;IACZ,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6GAA6G;IAC7G,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CACjD,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,UAAU,CAC1B;IACG,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4EAA4E;IAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,MAAM,EAAE,wBAAwB,CAAA;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,6GAA6G;AAC7G,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,uBAAuB,+BAiBzF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { SeedSteps } from '../seed-steps/index.js';
|
|
4
|
+
/** The least and the most `color.dark` holds; 0, Newtone's own, in the middle. */
|
|
5
|
+
export const DARK_LIMIT_MIN = -2;
|
|
6
|
+
export const DARK_LIMIT_MAX = 2;
|
|
7
|
+
/** What `color.dark` is when absent: what a null value with nothing `inherited` shows. */
|
|
8
|
+
export const DARK_LIMIT_ABSENT = 0;
|
|
9
|
+
/** The five steps, in order. */
|
|
10
|
+
export const DARK_LIMIT_STEPS = [-2, -1, 0, 1, 2];
|
|
11
|
+
/** A step as it is shown and named: its sign always, a true minus below zero, 0 bare. */
|
|
12
|
+
export const darkLimitText = (v) => (v > 0 ? `+${v}` : v < 0 ? `−${-v}` : '0');
|
|
13
|
+
/** A seed's dark limit, five numbered steps from −2 to +2. Blueprint components/seed-dark-limit-field.md. */
|
|
14
|
+
export function SeedDarkLimitField({ labels, className, ...rest }) {
|
|
15
|
+
const names = DARK_LIMIT_STEPS.map(darkLimitText);
|
|
16
|
+
return (_jsx(SeedSteps, { ...rest, className: ['newtone-seed-dark-limit-field', className].filter(Boolean).join(' '), words: labels, absent: DARK_LIMIT_ABSENT, steps: DARK_LIMIT_STEPS, names: names, draw: (_, i) => (_jsx("span", { className: "newtone-seed-dark-limit-field-number", "aria-hidden": "true", children: names[i] })) }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=seed-dark-limit-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-dark-limit-field.js","sourceRoot":"","sources":["../../src/seed-dark-limit-field/seed-dark-limit-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAUZ,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,kFAAkF;AAClF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,CAAA;AAChC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAA;AAC/B,0FAA0F;AAC1F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAClC,gCAAgC;AAChC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAA;AAE1D,yFAAyF;AACzF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AA8BtF,6GAA6G;AAC7G,MAAM,UAAU,kBAAkB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAA2B;IACtF,MAAM,KAAK,GAAG,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACjD,OAAO,CACH,KAAC,SAAS,OACF,IAAI,EACR,SAAS,EAAE,CAAC,+BAA+B,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACjF,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,gBAAgB,EACvB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACZ,eAAM,SAAS,EAAC,sCAAsC,iBAAa,MAAM,YACpE,KAAK,CAAC,CAAC,CAAC,GACN,CACV,GACH,CACL,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/seed-roundness-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjG,YAAY,EACR,uBAAuB,EACvB,wBAAwB,EACxB,aAAa,GAChB,MAAM,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/seed-roundness-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* SeedRoundnessField -- blueprint components/seed-roundness-field.md. How round a seed's system is: five named steps,
|
|
2
|
+
* each drawn as the corner it makes, on the steps' track (seed-steps.css, SegmentedControl's tokens), imported here.
|
|
3
|
+
*
|
|
4
|
+
* LENGTHS IT DECIDES:
|
|
5
|
+
* 18px the corner's picture; its radius is the step's factor times 6px (0, 3, 6, 12, 18), written in
|
|
6
|
+
* seed-roundness-field.tsx as data: a picture of the step, not the interface's own radius
|
|
7
|
+
* 2px the corner's stroke
|
|
8
|
+
* 3px the corner moved toward the end and down, so its two drawn edges stand centred in the step */
|
|
9
|
+
@import '../seed-steps/seed-steps.css';
|
|
10
|
+
|
|
11
|
+
/* The corner a step makes: the top and start edges of an 18px square, its top-start corner at the step's radius. */
|
|
12
|
+
.newtone-seed-roundness-field-corner {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
inline-size: 18px;
|
|
15
|
+
block-size: 18px;
|
|
16
|
+
/* Only two edges are drawn: moved toward the end and down by half the open side, so the corner stands centred. */
|
|
17
|
+
position: relative;
|
|
18
|
+
inset-block-start: 3px;
|
|
19
|
+
inset-inline-start: 3px;
|
|
20
|
+
border-block-start: 2px solid currentColor;
|
|
21
|
+
border-inline-start: 2px solid currentColor;
|
|
22
|
+
border-start-start-radius: var(--_corner, 0);
|
|
23
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
/** The five steps' factors on `shape.radius`, in order: Square, Soft, Medium, Round, Rounder. */
|
|
3
|
+
export declare const ROUNDNESS_STEPS: readonly [0, 0.5, 1, 2, 3];
|
|
4
|
+
export type RoundnessStep = (typeof ROUNDNESS_STEPS)[number];
|
|
5
|
+
/** What `shape.radius` is when absent, Newtone's own (Medium): what a null value with nothing `inherited` shows. */
|
|
6
|
+
export declare const ROUNDNESS_ABSENT = 1;
|
|
7
|
+
export interface SeedRoundnessFieldLabels {
|
|
8
|
+
/** The five steps' names, in `ROUNDNESS_STEPS`' order: Square, Soft, Medium, Round, Rounder. */
|
|
9
|
+
steps: readonly [string, string, string, string, string];
|
|
10
|
+
/** Said where the value follows `inherited`, and on the press that makes it follow again: "Same as Sunset". */
|
|
11
|
+
same: string;
|
|
12
|
+
/** The press's words, where they differ from `same`: "Reset to Sunset's". */
|
|
13
|
+
reset?: string;
|
|
14
|
+
/** Said beside the name while the value departs from `inherited`: "Changed here". Not shown unless given. */
|
|
15
|
+
changed?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Said where the factor stands between two steps (a seed may hold any quarter step, 1.5): given the two steps'
|
|
18
|
+
* names, the words that say so ("Between Medium and Round"). Without it, the two names with a dash between.
|
|
19
|
+
*/
|
|
20
|
+
between?: (lower: string, upper: string) => string;
|
|
21
|
+
}
|
|
22
|
+
export interface SeedRoundnessFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
23
|
+
/** The field's name: Roundness. */
|
|
24
|
+
label: string;
|
|
25
|
+
/**
|
|
26
|
+
* The factor set here; null where it is not set: it follows `inherited`, when given, else it shows 1 (Medium), the
|
|
27
|
+
* key's value when absent, as followed (the secondary ink, the Tab stop on it).
|
|
28
|
+
*/
|
|
29
|
+
value: number | null;
|
|
30
|
+
/** What it follows while `value` is null: the style's factor. Given, the field can be set back to it. */
|
|
31
|
+
inherited?: number;
|
|
32
|
+
/** Told the factor picked; null when it is set back to follow `inherited`. */
|
|
33
|
+
onChange: (value: number | null) => void;
|
|
34
|
+
labels: SeedRoundnessFieldLabels;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/** Five named steps of roundness, each drawn as its corner. Blueprint components/seed-roundness-field.md. */
|
|
38
|
+
export declare function SeedRoundnessField({ labels, className, ...rest }: SeedRoundnessFieldProps): import("react").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=seed-roundness-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-roundness-field.d.ts","sourceRoot":"","sources":["../../src/seed-roundness-field/seed-roundness-field.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,iGAAiG;AACjG,eAAO,MAAM,eAAe,YAAI,CAA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