@g9tm/lynxcontrols 2.9.0 → 2.10.1
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/catalog/cards/G9DockLayout.md +17 -0
- package/catalog/cards/G9KeyDiamond.md +15 -0
- package/catalog/cards/G9KeySlider.md +17 -0
- package/catalog/catalog.json +1249 -7
- package/catalog/index.md +4 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/anchor/hooks.d.ts.map +1 -1
- package/dist/anchor/hooks.jsx +1 -1
- package/dist/base/control.d.ts +9 -0
- package/dist/base/control.d.ts.map +1 -1
- package/dist/base/control.jsx +14 -1
- package/dist/base/index.d.ts +1 -1
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.jsx +1 -1
- package/dist/base/press.d.ts +16 -1
- package/dist/base/press.d.ts.map +1 -1
- package/dist/base/press.jsx +29 -3
- package/dist/base/text-of.d.ts +10 -0
- package/dist/base/text-of.d.ts.map +1 -0
- package/dist/base/text-of.jsx +26 -0
- package/dist/button/icon-button.d.ts.map +1 -1
- package/dist/button/icon-button.jsx +6 -2
- package/dist/display/figures.d.ts +1 -1
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +2 -2
- package/dist/display/motion-figures.d.ts +5 -2
- package/dist/display/motion-figures.d.ts.map +1 -1
- package/dist/display/motion-figures.jsx +4 -4
- package/dist/layout/containers.d.ts +6 -1
- package/dist/layout/containers.d.ts.map +1 -1
- package/dist/layout/containers.jsx +7 -2
- package/dist/layout/dock.css +90 -0
- package/dist/layout/dock.css.map +1 -0
- package/dist/layout/dock.d.ts +86 -0
- package/dist/layout/dock.d.ts.map +1 -0
- package/dist/layout/dock.jsx +272 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.d.ts.map +1 -1
- package/dist/layout/index.jsx +1 -0
- package/dist/list/virtual-list.d.ts +11 -1
- package/dist/list/virtual-list.d.ts.map +1 -1
- package/dist/list/virtual-list.jsx +36 -7
- package/dist/pointer/index.d.ts +1 -0
- package/dist/pointer/index.d.ts.map +1 -1
- package/dist/pointer/index.jsx +1 -0
- package/dist/pointer/pad.d.ts +57 -0
- package/dist/pointer/pad.d.ts.map +1 -0
- package/dist/pointer/pad.jsx +111 -0
- package/dist/popover/popover.d.ts +3 -1
- package/dist/popover/popover.d.ts.map +1 -1
- package/dist/popover/popover.jsx +4 -2
- package/dist/range-slider/index.d.ts +1 -0
- package/dist/range-slider/index.d.ts.map +1 -1
- package/dist/range-slider/index.jsx +1 -0
- package/dist/range-slider/key-slider.d.ts +50 -0
- package/dist/range-slider/key-slider.d.ts.map +1 -0
- package/dist/range-slider/key-slider.jsx +51 -0
- package/dist/range-slider/range-slider.css +48 -0
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/range-slider.d.ts +16 -0
- package/dist/range-slider/range-slider.d.ts.map +1 -1
- package/dist/range-slider/range-slider.jsx +26 -10
- package/dist/sheet/sizing.d.ts +3 -3
- package/dist/shell/shell.css +6 -1
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +13 -7
- package/dist/tab-bar/tab-bar.d.ts +2 -0
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +7 -3
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +11 -2
- package/skills/g9-lynx-app/references/components/datagrid.md +3 -3
- package/skills/g9-lynx-app/references/components/layout-1.md +18 -18
- package/skills/g9-lynx-app/references/components/layout-2.md +18 -0
- package/skills/g9-lynx-app/references/components/media-1.md +7 -7
- package/skills/g9-lynx-app/references/components/projects.md +1 -1
- package/skills/g9-lynx-app/references/components/range-slider.md +34 -0
- package/skills/g9-lynx-app/references/components/studio-color-picker.md +19 -0
- package/skills/g9-lynx-app/references/components/studio-ease-editor.md +19 -0
- package/skills/g9-lynx-app/references/components/studio-filmstrip.md +19 -0
- package/skills/g9-lynx-app/references/components/studio-font-picker.md +19 -0
- package/skills/g9-lynx-app/references/components/studio-gradient-editor.md +19 -0
- package/skills/g9-lynx-app/references/components/studio-history-list.md +34 -0
- package/skills/g9-lynx-app/references/components/studio-media-slot.md +19 -0
- package/skills/g9-lynx-app/references/components/studio-option-form.md +19 -0
- package/skills/g9-lynx-app/references/components/studio-waveform.md +19 -0
package/dist/shell/shell.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/shell/shell.css"],"names":[],"mappings":"AACA;EAAE,sCAAsC;EACtC,OAAO;EACP,aAAa;EACb,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,kBAAkB;AACpB;;AAGA;EAAE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,aAAa;EACb,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,aAAa;AACf;;AAMA;EAHE,WAAW;EACX,sBAAsB;EACtB,yBAAyB;EACzB,oDAAoD;EACpD,aAAa;EACb,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,MAAM;AACR;;AAMA;EAHE,cAAc;AAChB;;AAQA;EALE,UAAU;EACV,oBAAoB;EACpB,SAAS;EACT,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;EACR,gBAAgB;AAClB;;AAQA;EALE,mCAAmC;EACnC,sBAAsB;EACtB,cAAc;EACd,oBAAoB;EACpB,aAAa;AACf;;AASA;EANE,yBAAyB;EACzB,uBAAuB;EACvB,qCAAqC;AACvC;;AASA;EANE,wBAAwB;EACxB,sBAAsB;EACtB,oCAAoC;AACtC;;AASA;EANE,sBAAsB;EACtB,sBAAsB;EACtB,aAAa;AACf;;AASA;EANE,sBAAsB;EACtB,mBAAmB;EACnB,aAAa;AACf;;AASA;EANE,OAAO;EACP,aAAa;AACf;;AASA;EANE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AASA;EANE,eAAe;EACf,oCAA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;AAaA;EAVE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;EACnC,WAAW;AACb","sourcesContent":["/* G9AppShell, G9SideNav, G9IconRail, G9TopBar, G9ConnectionBanner. */\n.g9-shell {\n display: flex;\n flex: 1;\n min-height: 0px;\n background-color: var(--g9-background);\n}\n\n.g9-shell--tabs {\n flex-direction: column;\n position: relative;\n}\n\n.g9-shell__main {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n min-height: 0px;\n}\n\n.g9-shell__content {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0px;\n}\n\n/* The phone tab bar's layer over the page, at its foot; the spacer in the flow keeps the content clear of the closed\n bar. While a sub-menu or the More column is open the layer takes the whole shell, so the menu and its backdrop float\n over the page and stay inside the layer's box (Lynx Android clips what overflows it; G9Hub 129, 2.6.12). */\n.g9-shell__tab-bar {\n position: absolute;\n left: 0px;\n right: 0px;\n bottom: 0px;\n z-index: 10;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n.g9-shell__tab-bar--open {\n top: 0px;\n}\n\n.g9-shell__tab-spacer {\n flex-shrink: 0;\n}\n\n/* Hidden without `display: none`: Lynx 4.2 on Android still painted a display-none bar's labels and icons at the view's\n top-start corner on every pushed page (A21s, G9Hub, 2.5.8). Out of the flow, no height, nothing seen or tapped. */\n.g9-shell__tab-bar--hidden {\n position: absolute;\n left: 0px;\n right: 0px;\n bottom: 0px;\n height: 0px;\n overflow: hidden;\n opacity: 0;\n pointer-events: none;\n}\n\n.g9-side-nav {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n padding-bottom: 12px;\n background-color: var(--g9-surface);\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-side-nav--ltr {\n border-right-width: 1px;\n border-right-style: solid;\n border-right-color: var(--g9-divider);\n}\n\n.g9-side-nav--rtl {\n border-left-width: 1px;\n border-left-style: solid;\n border-left-color: var(--g9-divider);\n}\n\n.g9-side-nav__header {\n display: flex;\n flex-direction: column;\n padding: 8px 16px 12px 16px;\n}\n\n.g9-side-nav__search {\n display: flex;\n flex-direction: column;\n padding: 0px 12px 8px 12px;\n}\n\n.g9-side-nav__list {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-side-nav__group {\n display: flex;\n flex-direction: column;\n padding: 0px 8px;\n}\n\n.g9-side-nav__heading {\n padding: 14px 12px 6px 12px;\n font-size: 11px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-tertiary);\n}\n\n.g9-side-nav__item {\n display: flex;\n align-items: center;\n height: 44px;\n padding: 0px 12px;\n column-gap: 12px;\n border-radius: 12px;\n}\n\n.g9-side-nav__item--on {\n background-color: var(--g9-primary-container);\n}\n\n.g9-side-nav__label {\n flex: 1;\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n /* a text-maxline text on Android draws its other lines out of the box unless it clips (2.5.8) */\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.g9-side-nav__label--on {\n font-weight: 700;\n color: var(--g9-on-primary-container);\n font-family: var(--g9-font-text-700);\n}\n\n.g9-side-nav__footer {\n display: flex;\n flex-direction: column;\n padding: 8px 12px 0px 12px;\n}\n\n.g9-rail {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-shrink: 0;\n padding-bottom: 12px;\n background-color: var(--g9-surface);\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-rail--ltr {\n border-right-width: 1px;\n border-right-style: solid;\n border-right-color: var(--g9-divider);\n}\n\n.g9-rail--rtl {\n border-left-width: 1px;\n border-left-style: solid;\n border-left-color: var(--g9-divider);\n}\n\n.g9-rail__header {\n display: flex;\n justify-content: center;\n padding: 4px 0px 12px 0px;\n}\n\n.g9-rail__list {\n flex: 1;\n min-height: 0px;\n width: 100%;\n}\n\n.g9-rail__item {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 6px 0px;\n row-gap: 4px;\n}\n\n.g9-rail__pill {\n display: flex;\n position: relative;\n align-items: center;\n justify-content: center;\n width: 52px;\n height: 32px;\n border-radius: 16px;\n}\n\n.g9-rail__pill--on {\n background-color: var(--g9-primary-container);\n}\n\n.g9-rail__badge {\n position: absolute;\n top: -3px;\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-rail__badge--ltr {\n right: 4px;\n}\n\n.g9-rail__badge--rtl {\n left: 4px;\n}\n\n.g9-rail__label {\n font-size: 11px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n /* a text-maxline text on Android draws its other lines out of the box unless it clips (2.5.8) */\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.g9-rail__label--on {\n font-weight: 700;\n color: var(--g9-text-primary);\n font-family: var(--g9-font-text-700);\n}\n\n.g9-rail__footer {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.g9-top-bar {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: 0px 20px;\n column-gap: 12px;\n background-color: var(--g9-surface);\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-top-bar__title {\n font-size: 17px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-primary);\n}\n\n.g9-top-bar__spacer {\n flex: 1;\n}\n\n.g9-top-bar__actions {\n display: flex;\n align-items: center;\n column-gap: 6px;\n}\n\n.g9-conn {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n min-height: 32px;\n padding: 4px 12px;\n column-gap: 8px;\n animation: g9-conn-in 200ms ease-out;\n}\n\n@keyframes g9-conn-in {\n from {\n transform: translateY(-100%);\n }\n to {\n transform: translateY(0px);\n }\n}\n\n.g9-conn--error {\n background-color: var(--g9-error-container);\n}\n\n.g9-conn--warning {\n background-color: var(--g9-warning-container);\n}\n\n.g9-conn--success {\n background-color: var(--g9-success-container);\n}\n\n.g9-conn__text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-primary);\n}\n\n.g9-conn__text--strong {\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n}\n\n.g9-conn__retry {\n display: flex;\n align-items: center;\n min-height: 28px;\n padding: 0px 6px;\n}\n\n.g9-conn__spinner {\n width: 12px;\n height: 12px;\n border-radius: 6px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--g9-outline);\n border-top-color: var(--g9-text-primary);\n animation: g9-conn-spin 800ms linear infinite;\n}\n\n@keyframes g9-conn-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n.g9-update-bar {\n position: absolute;\n left: 0px;\n right: 0px;\n top: 0px;\n display: flex;\n align-items: center;\n column-gap: 12px;\n padding: 6px 16px 10px 16px;\n background-color: var(--g9-inverse-surface);\n transform: translateY(-120%);\n transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);\n /* over the siblings drawn after it: without it a page body later in the tree took the bar's taps (SAC's «بعداً») */\n z-index: 20;\n}\n\n.g9-update-bar--shown {\n transform: translateY(0px);\n}\n\n/* In the flow (2.5.7): no slide, no overlay. */\n.g9-update-bar--inline {\n position: relative;\n transform: translateY(0px);\n z-index: 0;\n}\n\n.g9-update-bar__text {\n flex: 1;\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-inverse-on-surface);\n}\n\n.g9-update-bar__action {\n display: flex;\n padding: 6px 4px;\n}\n\n.g9-update-bar__action-text {\n font-size: 13px;\n font-family: var(--g9-font-text-800);\n font-weight: 800;\n color: var(--g9-inverse-primary);\n}\n\n.g9-update-bar__dismiss {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-inverse-on-surface);\n opacity: 0.8;\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://./src/shell/shell.css"],"names":[],"mappings":"AACA;EAAE,sCAAsC;EACtC,OAAO;EACP,aAAa;EACb,a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AChB,iBAAiB;EACjB,kCAAkC;EAClC,aAAa;AACf;;AAoBA;EAjBE;IACE,4BAA4B;EAC9B;;EAEA;IACE,wBAAwB;EAC1B;AACF;;AAmBA;EAhBE,2CAA2C;AAC7C;;AAmBA;EAhBE,6CAA6C;AAC/C;;AAmBA;EAhBE,6CAA6C;AAC/C;;AAmBA;EAhBE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;AAC/B;;AAmBA;EAhBE,gBAAgB;EAChB,oCAAoC;AACtC;;AAmBA;EAhBE,mBAAmB;EACnB,gBAAgB;EAChB,cAAc;EACd,aAAa;AACf;;AAmBA;EAhBE,mBAAmB;EACnB,iBAAiB;EACjB,+BAA+B;EAC/B,wCAAwC;EACxC,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,2CAA2C;AAC7C;;AAmBA;EAhBE;IACE,oBAAoB;EACtB;;EAEA;IACE,yBAAyB;EAC3B;AACF;;AAkBA;EAfE,2CAA2C;EAC3C,WAAW;EACX,mBAAmB;EACnB,gBAAgB;EAChB,sBAAsB;EACtB,sDAAsD;EACtD,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;EACR,4BAA4B;AAC9B;;AAmBA;EAhBE,wBAAwB;AAC1B;;AAoBA;EAjBE,UAAU;EACV,kBAAkB;EAClB,wBAAwB;AAC1B;;AAoBA;EAjBE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;EACnC,OAAO;AACT;;AAoBA;EAjBE,gBAAgB;EAChB,aAAa;AACf;;AAoBA;EAjBE,eAAe;EACf,oCAAoC;EACpC,gCAAgC;EAChC,gBAAgB;AAClB;;AAoBA;EAjBE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;EACnC,WAAW;AACb","sourcesContent":["/* G9AppShell, G9SideNav, G9IconRail, G9TopBar, G9ConnectionBanner. */\n.g9-shell {\n display: flex;\n flex: 1;\n min-height: 0px;\n background-color: var(--g9-background);\n}\n\n.g9-shell--tabs {\n flex-direction: column;\n position: relative;\n}\n\n.g9-shell__main {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n min-height: 0px;\n}\n\n.g9-shell__content {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0px;\n}\n\n/* The phone tab bar's layer over the page, at its foot; the spacer in the flow keeps the content clear of the closed\n bar. While a sub-menu or the More column is open the layer takes the whole shell, so the menu and its backdrop float\n over the page and stay inside the layer's box (Lynx Android clips what overflows it; G9Hub 129, 2.6.12). */\n.g9-shell__tab-bar {\n position: absolute;\n left: 0px;\n right: 0px;\n bottom: 0px;\n z-index: 10;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n.g9-shell__tab-bar--open {\n top: 0px;\n}\n\n.g9-shell__tab-spacer {\n flex-shrink: 0;\n}\n\n/* Hidden without `display: none`: Lynx 4.2 on Android still painted a display-none bar's labels and icons at the view's\n top-start corner on every pushed page (A21s, G9Hub, 2.5.8). Out of the flow, no height, nothing seen or tapped. */\n.g9-shell__tab-bar--hidden {\n position: absolute;\n left: 0px;\n right: 0px;\n bottom: 0px;\n height: 0px;\n overflow: hidden;\n opacity: 0;\n pointer-events: none;\n}\n\n.g9-side-nav {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n padding-bottom: 12px;\n background-color: var(--g9-surface);\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-side-nav--ltr {\n border-right-width: 1px;\n border-right-style: solid;\n border-right-color: var(--g9-divider);\n}\n\n.g9-side-nav--rtl {\n border-left-width: 1px;\n border-left-style: solid;\n border-left-color: var(--g9-divider);\n}\n\n.g9-side-nav__header {\n display: flex;\n flex-direction: column;\n padding: 8px 16px 12px 16px;\n}\n\n.g9-side-nav__search {\n display: flex;\n flex-direction: column;\n padding: 0px 12px 8px 12px;\n}\n\n.g9-side-nav__list {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-side-nav__group {\n display: flex;\n flex-direction: column;\n padding: 0px 8px;\n}\n\n.g9-side-nav__heading {\n padding: 14px 12px 6px 12px;\n font-size: 11px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-tertiary);\n}\n\n.g9-side-nav__item {\n display: flex;\n align-items: center;\n height: 44px;\n padding: 0px 12px;\n column-gap: 12px;\n border-radius: 12px;\n}\n\n.g9-side-nav__item--on {\n background-color: var(--g9-primary-container);\n}\n\n/* the pressed look on the touch's own frame (CSS :active, matched by the engine): the selection waits for the round trip\n to the background thread (75-155 ms at CPU x6 on the web; G9Studio's shell budget is 100 ms) */\n.g9-side-nav__item:active {\n background-color: var(--g9-primary-container);\n}\n\n.g9-side-nav__label {\n flex: 1;\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n /* a text-maxline text on Android draws its other lines out of the box unless it clips (2.5.8) */\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.g9-side-nav__label--on {\n font-weight: 700;\n color: var(--g9-on-primary-container);\n font-family: var(--g9-font-text-700);\n}\n\n.g9-side-nav__footer {\n display: flex;\n flex-direction: column;\n padding: 8px 12px 0px 12px;\n}\n\n.g9-rail {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-shrink: 0;\n padding-bottom: 12px;\n background-color: var(--g9-surface);\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-rail--ltr {\n border-right-width: 1px;\n border-right-style: solid;\n border-right-color: var(--g9-divider);\n}\n\n.g9-rail--rtl {\n border-left-width: 1px;\n border-left-style: solid;\n border-left-color: var(--g9-divider);\n}\n\n.g9-rail__header {\n display: flex;\n justify-content: center;\n padding: 4px 0px 12px 0px;\n}\n\n.g9-rail__list {\n flex: 1;\n min-height: 0px;\n width: 100%;\n}\n\n.g9-rail__item {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 6px 0px;\n row-gap: 4px;\n border-radius: 16px;\n}\n\n/* the pressed look at once (see .g9-side-nav__item:active) */\n.g9-rail__item:active {\n background-color: var(--g9-primary-container);\n}\n\n.g9-rail__pill {\n display: flex;\n position: relative;\n align-items: center;\n justify-content: center;\n width: 52px;\n height: 32px;\n border-radius: 16px;\n}\n\n.g9-rail__pill--on {\n background-color: var(--g9-primary-container);\n}\n\n.g9-rail__badge {\n position: absolute;\n top: -3px;\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-rail__badge--ltr {\n right: 4px;\n}\n\n.g9-rail__badge--rtl {\n left: 4px;\n}\n\n.g9-rail__label {\n font-size: 11px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n /* a text-maxline text on Android draws its other lines out of the box unless it clips (2.5.8) */\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.g9-rail__label--on {\n font-weight: 700;\n color: var(--g9-text-primary);\n font-family: var(--g9-font-text-700);\n}\n\n.g9-rail__footer {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.g9-top-bar {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: 0px 20px;\n column-gap: 12px;\n background-color: var(--g9-surface);\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-top-bar__title {\n font-size: 17px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-primary);\n}\n\n.g9-top-bar__spacer {\n flex: 1;\n}\n\n.g9-top-bar__actions {\n display: flex;\n align-items: center;\n column-gap: 6px;\n}\n\n.g9-conn {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n min-height: 32px;\n padding: 4px 12px;\n column-gap: 8px;\n animation: g9-conn-in 200ms ease-out;\n}\n\n@keyframes g9-conn-in {\n from {\n transform: translateY(-100%);\n }\n to {\n transform: translateY(0px);\n }\n}\n\n.g9-conn--error {\n background-color: var(--g9-error-container);\n}\n\n.g9-conn--warning {\n background-color: var(--g9-warning-container);\n}\n\n.g9-conn--success {\n background-color: var(--g9-success-container);\n}\n\n.g9-conn__text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-primary);\n}\n\n.g9-conn__text--strong {\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n}\n\n.g9-conn__retry {\n display: flex;\n align-items: center;\n min-height: 28px;\n padding: 0px 6px;\n}\n\n.g9-conn__spinner {\n width: 12px;\n height: 12px;\n border-radius: 6px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--g9-outline);\n border-top-color: var(--g9-text-primary);\n animation: g9-conn-spin 800ms linear infinite;\n}\n\n@keyframes g9-conn-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n.g9-update-bar {\n position: absolute;\n left: 0px;\n right: 0px;\n top: 0px;\n display: flex;\n align-items: center;\n column-gap: 12px;\n padding: 6px 16px 10px 16px;\n background-color: var(--g9-inverse-surface);\n transform: translateY(-120%);\n transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);\n /* over the siblings drawn after it: without it a page body later in the tree took the bar's taps (SAC's «بعداً») */\n z-index: 20;\n}\n\n.g9-update-bar--shown {\n transform: translateY(0px);\n}\n\n/* In the flow (2.5.7): no slide, no overlay. */\n.g9-update-bar--inline {\n position: relative;\n transform: translateY(0px);\n z-index: 0;\n}\n\n.g9-update-bar__text {\n flex: 1;\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-inverse-on-surface);\n}\n\n.g9-update-bar__action {\n display: flex;\n padding: 6px 4px;\n}\n\n.g9-update-bar__action-text {\n font-size: 13px;\n font-family: var(--g9-font-text-800);\n font-weight: 800;\n color: var(--g9-inverse-primary);\n}\n\n.g9-update-bar__dismiss {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-inverse-on-surface);\n opacity: 0.8;\n}\n"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/shell/shell.tsx"],"names":[],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AAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC3C;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,CAoC9D"}
|
package/dist/shell/shell.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./shell.css";
|
|
2
2
|
import { G9StringKey, g9Haptic } from "@g9tm/lynxcontrols-foundation";
|
|
3
3
|
import { memo, useEffect, useRef, useState } from "@lynx-js/react";
|
|
4
|
-
import { g9ChildId, g9IdProps, g9RowStyle, g9SelectedA11y, mergeStyle } from "../base/control.jsx";
|
|
4
|
+
import { g9ChildId, g9IdProps, g9KeyPressProps, g9RowStyle, g9SelectedA11y, mergeStyle } from "../base/control.jsx";
|
|
5
5
|
import { G9Badge } from "../display/status.jsx";
|
|
6
6
|
import { G9Icon } from "../icon/icon.jsx";
|
|
7
7
|
import { useG9Direction, useG9Keyboard, useG9Layout, useG9SafeInsets, useG9Strings } from "../provider/hooks.jsx";
|
|
@@ -28,7 +28,7 @@ function G9SideNav(props) {
|
|
|
28
28
|
const on = d.key === props.value;
|
|
29
29
|
return <view key={d.key} className="g9-side-nav__group">
|
|
30
30
|
{heading ? <text className="g9-side-nav__heading">{heading}</text> : null}
|
|
31
|
-
<view className={`g9-side-nav__item${on ? ' g9-side-nav__item--on' : ''}`} {...g9IdProps(g9ChildId(props.id, d.key))} style={g9RowStyle(dir)} accessibility-element={true} accessibility-traits="button" accessibility-label={d.label} {...g9SelectedA11y(on, selectedWord)} bindtap={()=>{
|
|
31
|
+
<view className={`g9-side-nav__item${on ? ' g9-side-nav__item--on' : ''}`} {...g9IdProps(g9ChildId(props.id, d.key))} {...g9KeyPressProps()} style={g9RowStyle(dir)} accessibility-element={true} accessibility-traits="button" accessibility-label={d.label} {...g9SelectedA11y(on, selectedWord)} bindtap={()=>{
|
|
32
32
|
if (on) return;
|
|
33
33
|
g9Haptic('select');
|
|
34
34
|
props.onChange(d.key);
|
|
@@ -63,7 +63,7 @@ function G9IconRail(props) {
|
|
|
63
63
|
{props.destinations.map((d)=>{
|
|
64
64
|
var _d_selectedIcon;
|
|
65
65
|
const on = d.key === props.value;
|
|
66
|
-
return <view key={d.key} className="g9-rail__item" {...g9IdProps(g9ChildId(props.id, d.key))} accessibility-element={true} accessibility-traits="button" accessibility-label={d.label} {...g9SelectedA11y(on, selectedWord)} bindtap={()=>{
|
|
66
|
+
return <view key={d.key} className="g9-rail__item" {...g9IdProps(g9ChildId(props.id, d.key))} {...g9KeyPressProps()} accessibility-element={true} accessibility-traits="button" accessibility-label={d.label} {...g9SelectedA11y(on, selectedWord)} bindtap={()=>{
|
|
67
67
|
if (on) return;
|
|
68
68
|
g9Haptic('select');
|
|
69
69
|
props.onChange(d.key);
|
|
@@ -127,7 +127,9 @@ function G9AppShell(props) {
|
|
|
127
127
|
...props.destinations.filter((d)=>d.phoneOverflow)
|
|
128
128
|
];
|
|
129
129
|
const index = tabs.findIndex((d)=>d.key === props.value);
|
|
130
|
-
const item = (d)=>
|
|
130
|
+
const item = (d)=>{
|
|
131
|
+
const automationId = g9ChildId(props.id ? `${props.id}_Tab` : void 0, d.key);
|
|
132
|
+
return {
|
|
131
133
|
text: d.label,
|
|
132
134
|
icon: d.icon,
|
|
133
135
|
...d.selectedIcon ? {
|
|
@@ -136,11 +138,13 @@ function G9AppShell(props) {
|
|
|
136
138
|
...void 0 !== d.badge ? {
|
|
137
139
|
badge: d.badge
|
|
138
140
|
} : {},
|
|
139
|
-
...
|
|
140
|
-
automationId
|
|
141
|
+
...automationId ? {
|
|
142
|
+
automationId
|
|
141
143
|
} : {},
|
|
142
144
|
onClick: ()=>props.onChange(d.key)
|
|
143
|
-
}
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
const overflowAutomationId = g9ChildId(props.id ? `${props.id}_Tab` : void 0, 'More');
|
|
144
148
|
const hidden = true === props.hideTabBar || keyboard.visible;
|
|
145
149
|
const bar = null != (_props_tabBar = props.tabBar) ? _props_tabBar : {};
|
|
146
150
|
const menuOpen = (null != (_bar_isFabOpen = bar.isFabOpen) ? _bar_isFabOpen : fabOpen) || (null != (_bar_isOverflowOpen = bar.isOverflowOpen) ? _bar_isOverflowOpen : moreOpen);
|
|
@@ -169,6 +173,8 @@ function G9AppShell(props) {
|
|
|
169
173
|
null == (_bar_onOverflowOpenChange = bar.onOverflowOpenChange) || _bar_onOverflowOpenChange.call(bar, open);
|
|
170
174
|
}} items={tabs.map(item)} {...props.moreText ? {
|
|
171
175
|
overflowText: props.moreText
|
|
176
|
+
} : {}} {...overflowAutomationId ? {
|
|
177
|
+
overflowAutomationId
|
|
172
178
|
} : {}} selectedIndex={index} onSelectedIndexChange={(i)=>{
|
|
173
179
|
const d = tabs[i];
|
|
174
180
|
if (d && d.key !== props.value) props.onChange(d.key);
|
|
@@ -34,6 +34,8 @@ export interface G9TabBarProps {
|
|
|
34
34
|
readonly resetCenterOnMenuSelection?: boolean;
|
|
35
35
|
/** Label of the More trigger (MAUI `OverflowText`). Default: the app's `More` string, else "More". */
|
|
36
36
|
readonly overflowText?: string | null;
|
|
37
|
+
/** The automation id (and element id) of the More trigger (2.10.0; G9AppShell gives `<id>_Tab_More`). */
|
|
38
|
+
readonly overflowAutomationId?: string;
|
|
37
39
|
/** A bar, overflow or sub-menu item was tapped (MAUI `ItemSelected`), after its own callbacks. */
|
|
38
40
|
readonly onItemSelected?: (args: G9TabBarSelectionChangedEventArgs) => void;
|
|
39
41
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-bar.d.ts","sourceRoot":"","sources":["../../src/tab-bar/tab-bar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@g9tm/lynxcontrols-foundation";
|
|
4
4
|
import { useEffect, useRef, useState } from "@lynx-js/react";
|
|
5
5
|
import { useG9Anchor } from "../anchor/hooks.jsx";
|
|
6
|
+
import { g9KeyPressProps } from "../base/control.jsx";
|
|
6
7
|
import { useG9PressFeedback, usePressVisual } from "../base/press.jsx";
|
|
7
8
|
import { startTimer, stopTimer } from "../base/timers.jsx";
|
|
8
9
|
import { useControllableState } from "../base/use-controllable-state.jsx";
|
|
@@ -204,7 +205,10 @@ function ChromeTabBar(props) {
|
|
|
204
205
|
const index = 'item' === slot.kind ? slot.index : -1;
|
|
205
206
|
const item = isOverflow ? {
|
|
206
207
|
text: overflowLabel,
|
|
207
|
-
icon: 'menu'
|
|
208
|
+
icon: 'menu',
|
|
209
|
+
...props.overflowAutomationId ? {
|
|
210
|
+
automationId: props.overflowAutomationId
|
|
211
|
+
} : {}
|
|
208
212
|
} : items[index];
|
|
209
213
|
const selected = isOverflow ? overflowSelected : index === selectedIndex;
|
|
210
214
|
const hiddenUnderFab = index === fab && floating;
|
|
@@ -388,7 +392,7 @@ function TabBarSlot(props) {
|
|
|
388
392
|
return <view className={`g9-tab-bar__slot${selected ? ' g9-tab-bar__slot--selected' : ''}${hidden ? ' g9-tab-bar__slot--hidden' : ''}${press.className}`} {...anchor.props} style={{
|
|
389
393
|
order: props.order,
|
|
390
394
|
width: `${props.share}%`
|
|
391
|
-
}} accessibility-element accessibility-traits="button" accessibility-label={item.badge && true !== item.badge ? `${null != (_item_text1 = item.text) ? _item_text1 : ''} (${item.badge})` : null != (_item_text2 = item.text) ? _item_text2 : ''} bindtap={hidden ? void 0 : props.onTap} {...press.props}>
|
|
395
|
+
}} accessibility-element accessibility-traits="button" accessibility-label={item.badge && true !== item.badge ? `${null != (_item_text1 = item.text) ? _item_text1 : ''} (${item.badge})` : null != (_item_text2 = item.text) ? _item_text2 : ''} {...hidden ? {} : g9KeyPressProps()} bindtap={hidden ? void 0 : props.onTap} {...press.props}>
|
|
392
396
|
<view className="g9-tab-bar__slot-body" style={{
|
|
393
397
|
...pose,
|
|
394
398
|
rowGap: `${metrics.bottomContentSpacing}px`,
|
|
@@ -441,7 +445,7 @@ function MenuCell(props) {
|
|
|
441
445
|
const bounce = easeOutBackCss(g9TabBarMetrics.fabPopBackCoefficient);
|
|
442
446
|
const color = props.selected ? 'var(--g9-on-primary)' : 'var(--g9-on-surface)';
|
|
443
447
|
const iconColor = props.onAccent ? 'var(--g9-on-primary)' : color;
|
|
444
|
-
return <view className={`${props.className}${press.className}${props.selected ? ` ${props.className}--selected` : ''}`} {...anchor.props} accessibility-element accessibility-traits="button" accessibility-label={null != (_props_item_text = props.item.text) ? _props_item_text : ''} style={{
|
|
448
|
+
return <view className={`${props.className}${press.className}${props.selected ? ` ${props.className}--selected` : ''}`} {...anchor.props} accessibility-element accessibility-traits="button" accessibility-label={null != (_props_item_text = props.item.text) ? _props_item_text : ''} {...g9KeyPressProps()} style={{
|
|
445
449
|
left: `${props.left}px`,
|
|
446
450
|
bottom: `${props.bottom}px`,
|
|
447
451
|
width: `${props.size}px`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"description": "ReactLynx controls and overlay infrastructure: provider/host, sheets, popups, toasts, fields, buttons, pickers, tab view, tab bar, edge panel, swipe rows.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
"build": "rslib build"
|
|
245
245
|
},
|
|
246
246
|
"dependencies": {
|
|
247
|
-
"@g9tm/lynxcontrols-foundation": "2.
|
|
247
|
+
"@g9tm/lynxcontrols-foundation": "2.10.1"
|
|
248
248
|
},
|
|
249
249
|
"peerDependencies": {
|
|
250
250
|
"@lynx-js/react": ">=0.129.3 <0.130.0",
|
|
@@ -53,7 +53,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
|
|
|
53
53
|
- `@g9tm/lynxcontrols/header`: G9AppBar → `components/header.md`
|
|
54
54
|
- `@g9tm/lynxcontrols/host`: G9CarryContexts, G9Host, G9PageLoadingOverlay → `components/host.md`
|
|
55
55
|
- `@g9tm/lynxcontrols/icon`: G9Art, G9Icon, G9IconSlot, G9Swatch → `components/icon.md`
|
|
56
|
-
- `@g9tm/lynxcontrols/layout`: G9ActionRow, G9Bento, G9Card, G9Columns, G9HScroll, G9Page, G9PlaceScroll, G9SaveBar, G9ScrollSpyBar, G9Section, G9SectionHeader, G9SplitPane, G9UnsavedBar → `components/layout-1.md`, `components/layout-2.md`
|
|
56
|
+
- `@g9tm/lynxcontrols/layout`: G9ActionRow, G9Bento, G9Card, G9Columns, G9DockLayout, G9HScroll, G9Page, G9PlaceScroll, G9SaveBar, G9ScrollSpyBar, G9Section, G9SectionHeader, G9SplitPane, G9UnsavedBar → `components/layout-1.md`, `components/layout-2.md`
|
|
57
57
|
- `@g9tm/lynxcontrols/list`: G9DragList, G9ListRow, G9Pager, G9PullToRefresh, G9SettingsGroup, G9SwitchRow, G9VirtualList → `components/list.md`
|
|
58
58
|
- `@g9tm/lynxcontrols/notifications`: G9NotificationCenter, G9NotificationCenterPanel → `components/notifications.md`
|
|
59
59
|
- `@g9tm/lynxcontrols/orb`: G9FloatingOrb, G9HoldButton → `components/orb.md`
|
|
@@ -63,7 +63,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
|
|
|
63
63
|
- `@g9tm/lynxcontrols/popover`: G9ActionSheet, G9ContextMenu, G9Menu, G9MenuList, G9OverlayRoot, G9Popover, G9Tooltip → `components/popover.md`
|
|
64
64
|
- `@g9tm/lynxcontrols/popup`: G9PopupDragHandle, G9PopupView, PopupFrame, PopupInputForm → `components/popup.md`
|
|
65
65
|
- `@g9tm/lynxcontrols/provider`: G9Activity, G9DirectionScope, G9KeepAlive, G9Provider → `components/provider.md`
|
|
66
|
-
- `@g9tm/lynxcontrols/range-slider`: G9RangeSlider, G9StepSlider → `components/range-slider.md`
|
|
66
|
+
- `@g9tm/lynxcontrols/range-slider`: G9KeyDiamond, G9KeySlider, G9RangeSlider, G9StepSlider → `components/range-slider.md`
|
|
67
67
|
- `@g9tm/lynxcontrols/reader`: G9ReaderSheet, G9ReaderView → `components/reader.md`
|
|
68
68
|
- `@g9tm/lynxcontrols/route`: G9PathNavigator, G9Place → `components/route.md`
|
|
69
69
|
- `@g9tm/lynxcontrols/sheet`: G9LoadableSheetContent, G9ProcessingSheetContent, G9Sheet, G9SheetBackdropScope, G9SheetFooter, G9SheetFooterBar, G9SheetFrame, G9SheetHeader, G9SheetScrollIndicator, G9SheetScrollRegion → `components/sheet.md`
|
|
@@ -117,6 +117,15 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
|
|
|
117
117
|
|
|
118
118
|
## @g9tm/lynxcontrols-studio
|
|
119
119
|
|
|
120
|
+
- `@g9tm/lynxcontrols-studio/color-picker`: G9ColorPicker → `components/studio-color-picker.md`
|
|
121
|
+
- `@g9tm/lynxcontrols-studio/ease-editor`: G9EaseEditor → `components/studio-ease-editor.md`
|
|
122
|
+
- `@g9tm/lynxcontrols-studio/filmstrip`: G9Filmstrip → `components/studio-filmstrip.md`
|
|
123
|
+
- `@g9tm/lynxcontrols-studio/font-picker`: G9FontPicker → `components/studio-font-picker.md`
|
|
124
|
+
- `@g9tm/lynxcontrols-studio/gradient-editor`: G9GradientEditor → `components/studio-gradient-editor.md`
|
|
125
|
+
- `@g9tm/lynxcontrols-studio/history-list`: G9HistoryList, G9JobQueue → `components/studio-history-list.md`
|
|
126
|
+
- `@g9tm/lynxcontrols-studio/media-slot`: G9MediaSlot → `components/studio-media-slot.md`
|
|
120
127
|
- `@g9tm/lynxcontrols-studio/nle-timeline`: G9NleTimeline → `components/studio-nle-timeline.md`
|
|
128
|
+
- `@g9tm/lynxcontrols-studio/option-form`: G9OptionForm → `components/studio-option-form.md`
|
|
121
129
|
- `@g9tm/lynxcontrols-studio/surface`: G9Surface → `components/studio-surface.md`
|
|
122
130
|
- `@g9tm/lynxcontrols-studio/transform-box`: G9TransformBox → `components/studio-transform-box.md`
|
|
131
|
+
- `@g9tm/lynxcontrols-studio/waveform`: G9Waveform → `components/studio-waveform.md`
|
|
@@ -10,10 +10,10 @@ Props:
|
|
|
10
10
|
- `columns`: object[]
|
|
11
11
|
- `data`: NonNullable<T>[]
|
|
12
12
|
- `getId`: (row: T) => void
|
|
13
|
+
- `selection?`: 'none' | 'single' | 'multiple' = "none"
|
|
14
|
+
- `onCellEdit?`: (rowId: string | number, columnId: string, text: string) => void
|
|
13
15
|
- `onEndReached?`: () => void
|
|
14
16
|
- `onRowPress?`: (row: T) => void
|
|
15
|
-
- `
|
|
16
|
-
- `totalsLabel?`: string
|
|
17
|
-
- `empty?`: ReactNode
|
|
17
|
+
- `onSelectionChange?`: (ids: readonly (string | number)[]) => void
|
|
18
18
|
|
|
19
19
|
Example: `<G9DataGrid columns={columns} data={data} getId={getId} />`
|
|
@@ -58,6 +58,24 @@ Props:
|
|
|
58
58
|
|
|
59
59
|
Example: `<G9Columns />`
|
|
60
60
|
|
|
61
|
+
# G9DockLayout
|
|
62
|
+
|
|
63
|
+
`import { G9DockLayout } from '@g9tm/lynxcontrols/layout';`
|
|
64
|
+
|
|
65
|
+
Panes in nested rows and columns (an editor's frame).
|
|
66
|
+
|
|
67
|
+
Props:
|
|
68
|
+
- `layout`: object | object
|
|
69
|
+
- `renderPane`: (id, api) => ReactNode
|
|
70
|
+
- `onChange?`: (sizes: Readonly<Record<string, readonly number[]>>) => void
|
|
71
|
+
- `onCollapsedChange?`: (collapsed: readonly string[]) => void
|
|
72
|
+
- `railLabel?`: string
|
|
73
|
+
- `splitterLabel?`: string
|
|
74
|
+
- `minSizes?`: object = 48
|
|
75
|
+
- `railSize?`: number = 40
|
|
76
|
+
|
|
77
|
+
Example: `<G9DockLayout layout={layout} renderPane={renderPane} />`
|
|
78
|
+
|
|
61
79
|
# G9HScroll
|
|
62
80
|
|
|
63
81
|
`import { G9HScroll } from '@g9tm/lynxcontrols/layout';`
|
|
@@ -168,21 +186,3 @@ Props:
|
|
|
168
186
|
- `action?`: object
|
|
169
187
|
|
|
170
188
|
Example: `<G9SectionHeader title="Label" />`
|
|
171
|
-
|
|
172
|
-
# G9SplitPane
|
|
173
|
-
|
|
174
|
-
`import { G9SplitPane } from '@g9tm/lynxcontrols/layout';`
|
|
175
|
-
|
|
176
|
-
A list beside its detail on wide windows, one of them on phones (G9Hub SplitPane + Navigator).
|
|
177
|
-
|
|
178
|
-
Props:
|
|
179
|
-
- `start`: ReactNode
|
|
180
|
-
- `children?`: ReactNode
|
|
181
|
-
- `size?`: number = 360
|
|
182
|
-
- `phonePane?`: 'start' | 'detail' = "start"
|
|
183
|
-
- `onResize?`: (size: number) => void
|
|
184
|
-
- `fixed?`: boolean
|
|
185
|
-
- `max?`: number
|
|
186
|
-
- `min?`: number
|
|
187
|
-
|
|
188
|
-
Example: `<G9SplitPane start={start} />`
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# `@g9tm/lynxcontrols/layout` (part 2 of 2) (generated)
|
|
2
2
|
|
|
3
|
+
# G9SplitPane
|
|
4
|
+
|
|
5
|
+
`import { G9SplitPane } from '@g9tm/lynxcontrols/layout';`
|
|
6
|
+
|
|
7
|
+
A list beside its detail on wide windows, one of them on phones (G9Hub SplitPane + Navigator).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `start`: ReactNode
|
|
11
|
+
- `children?`: ReactNode
|
|
12
|
+
- `size?`: number = 360
|
|
13
|
+
- `phonePane?`: 'start' | 'detail' = "start"
|
|
14
|
+
- `onResize?`: (size: number) => void
|
|
15
|
+
- `fixed?`: boolean
|
|
16
|
+
- `max?`: number
|
|
17
|
+
- `min?`: number
|
|
18
|
+
|
|
19
|
+
Example: `<G9SplitPane start={start} />`
|
|
20
|
+
|
|
3
21
|
# G9UnsavedBar
|
|
4
22
|
|
|
5
23
|
`import { G9UnsavedBar } from '@g9tm/lynxcontrols/layout';`
|
|
@@ -120,19 +120,19 @@ Example: `<G9Captcha labels={labels} onSolution={() => {}} solve={solve} />`
|
|
|
120
120
|
|
|
121
121
|
`import { G9ClipPlayer } from '@g9tm/lynxcontrols-media';`
|
|
122
122
|
|
|
123
|
-
An async video clip (G9Hub item 51, 2.5.8): the poster with its length and a play mark, the app's player in place.
|
|
123
|
+
An async video clip (G9Hub item 51, 2.5.8): the poster with its length and a play mark, the app's player in place; since 2.10.0 a looping muted preview over the poster (`src`) that plays while `playing` or hovered.
|
|
124
124
|
|
|
125
125
|
Props:
|
|
126
|
-
- `seconds`: number
|
|
127
126
|
- `label?`: string
|
|
128
127
|
- `onPlay?`: () => void
|
|
128
|
+
- `onReady?`: () => void
|
|
129
129
|
- `caption?`: string
|
|
130
130
|
- `radius?`: number = 16
|
|
131
131
|
- `player?`: ReactNode
|
|
132
132
|
- `aspect?`: number = 16
|
|
133
|
-
- `
|
|
133
|
+
- `fit?`: 'contain' | 'cover'
|
|
134
134
|
|
|
135
|
-
Example: `<G9ClipPlayer
|
|
135
|
+
Example: `<G9ClipPlayer />`
|
|
136
136
|
|
|
137
137
|
# G9DeviceSettings
|
|
138
138
|
|
|
@@ -163,10 +163,10 @@ Props:
|
|
|
163
163
|
- `onFiles`: (files: readonly G9FileRef[]) => void
|
|
164
164
|
- `children?`: ReactNode
|
|
165
165
|
- `disabled?`: boolean
|
|
166
|
+
- `onDragChange?`: (active: boolean) => void
|
|
167
|
+
- `onReject?`: (reason: G9DropRejectReason, files: readonly G9FileRef[]) => void
|
|
168
|
+
- `buttonLabel?`: string
|
|
166
169
|
- `hint?`: string
|
|
167
|
-
- `accept?`: string
|
|
168
|
-
- `multiple?`: boolean = true
|
|
169
|
-
- `tapToPick?`: boolean
|
|
170
170
|
|
|
171
171
|
Example: `<G9DropZone label="Label" onFiles={() => {}} />`
|
|
172
172
|
|
|
@@ -49,8 +49,8 @@ Props:
|
|
|
49
49
|
- `formatSize?`: (bytes: number) => void
|
|
50
50
|
- `menuFor?`: (item: G9FileEntry) => void
|
|
51
51
|
- `onCancelUpload?`: (id: string) => void
|
|
52
|
+
- `onFavoriteChange?`: (id: string, favorite: boolean) => void
|
|
52
53
|
- `onMenu?`: (key: string, item: G9FileEntry) => void
|
|
53
|
-
- `onNavigate?`: (folderId: string | null) => void
|
|
54
54
|
|
|
55
55
|
Example: `<G9FileBrowser items={items} />`
|
|
56
56
|
|
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# `@g9tm/lynxcontrols/range-slider` (generated)
|
|
2
2
|
|
|
3
|
+
# G9KeyDiamond
|
|
4
|
+
|
|
5
|
+
`import { G9KeyDiamond } from '@g9tm/lynxcontrols/range-slider';`
|
|
6
|
+
|
|
7
|
+
An editor's keyframe diamond: hollow and quiet with no keys, hollow with a dot in the primary colour when the value has keys elsewhere, solid primary with a key at the playhead.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `state`: 'none' | 'keys' | 'here'
|
|
11
|
+
- `size?`: number = 14
|
|
12
|
+
- `onPress?`: () => void
|
|
13
|
+
- `disabled?`: boolean
|
|
14
|
+
- `stateWords?`: object = "—"
|
|
15
|
+
- `accessibilityLabel?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9KeyDiamond state="none" />`
|
|
18
|
+
|
|
19
|
+
# G9KeySlider
|
|
20
|
+
|
|
21
|
+
`import { G9KeySlider } from '@g9tm/lynxcontrols/range-slider';`
|
|
22
|
+
|
|
23
|
+
A one-thumb slider with a keyframe diamond at its reading start and an optional second row (`below`, a modulator): the inspector's numeric property.
|
|
24
|
+
|
|
25
|
+
Props:
|
|
26
|
+
- `label?`: string
|
|
27
|
+
- `value?`: number
|
|
28
|
+
- `onChange?`: (value: number, phase: G9ValuePhase) => void
|
|
29
|
+
- `disabled?`: boolean
|
|
30
|
+
- `formatValue?`: (value: number) => void
|
|
31
|
+
- `onDiamond?`: () => void
|
|
32
|
+
- `onDragCompleted?`: (value: number) => void
|
|
33
|
+
- `onValueChanged?`: (value: number) => void
|
|
34
|
+
|
|
35
|
+
Example: `<G9KeySlider />`
|
|
36
|
+
|
|
3
37
|
# G9RangeSlider
|
|
4
38
|
|
|
5
39
|
`import { G9RangeSlider } from '@g9tm/lynxcontrols/range-slider';`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/color-picker` (generated)
|
|
2
|
+
|
|
3
|
+
# G9ColorPicker
|
|
4
|
+
|
|
5
|
+
`import { G9ColorPicker } from '@g9tm/lynxcontrols-studio/color-picker';`
|
|
6
|
+
|
|
7
|
+
A full colour picker: the spectrum (saturation across, value up), a hue bar, an alpha bar with `alpha`, the colour in hex / RGB / HSL fields, an eyedropper where the host has one, the app's palette and the recent colours
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `value`: string
|
|
11
|
+
- `onChange?`: (hex: string, phase: G9ColorPhase) => void
|
|
12
|
+
- `disabled?`: boolean
|
|
13
|
+
- `onCommit?`: (hex: string) => void
|
|
14
|
+
- `onModeChange?`: (mode: G9ColorMode) => void
|
|
15
|
+
- `onRecentChange?`: (recent: readonly string[]) => void
|
|
16
|
+
- `defaultMode?`: 'hex' | 'rgb' | 'hsl'
|
|
17
|
+
- `spectrumHeight?`: number = 160
|
|
18
|
+
|
|
19
|
+
Example: `<G9ColorPicker value="value" />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/ease-editor` (generated)
|
|
2
|
+
|
|
3
|
+
# G9EaseEditor
|
|
4
|
+
|
|
5
|
+
`import { G9EaseEditor } from '@g9tm/lynxcontrols-studio/ease-editor';`
|
|
6
|
+
|
|
7
|
+
An easing editor: the curve on a square (time across, progress up; a progress beyond 0–1 is an overshoot), two handles to drag (the nearer one to a press moves), preset chips and the `cubic-bezier(…)` text.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `value`: number[]
|
|
11
|
+
- `size?`: number = 200
|
|
12
|
+
- `onChange?`: (value: G9Bezier, phase: G9EasePhase) => void
|
|
13
|
+
- `disabled?`: boolean
|
|
14
|
+
- `onCommit?`: (value: G9Bezier) => void
|
|
15
|
+
- `showText?`: boolean = true
|
|
16
|
+
- `presets?`: object[]
|
|
17
|
+
- `words?`: object
|
|
18
|
+
|
|
19
|
+
Example: `<G9EaseEditor value={value} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/filmstrip` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Filmstrip
|
|
4
|
+
|
|
5
|
+
`import { G9Filmstrip } from '@g9tm/lynxcontrols-studio/filmstrip';`
|
|
6
|
+
|
|
7
|
+
A clip's frames in a horizontal virtual list: `duration × pixelsPerSecond` dp wide, a frame every `frameWidth` dp, each picture from `resolveFrame(clipKey, time)`.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `clipKey`: string
|
|
11
|
+
- `duration`: number
|
|
12
|
+
- `resolveFrame`: (clipKey: string, time: number) => void
|
|
13
|
+
- `onSeek?`: (time: number) => void
|
|
14
|
+
- `frameWidth?`: number = 16
|
|
15
|
+
- `height?`: number = 48
|
|
16
|
+
- `pixelsPerSecond?`: number
|
|
17
|
+
- `version?`: string | number
|
|
18
|
+
|
|
19
|
+
Example: `<G9Filmstrip clipKey="clipKey" duration={1} resolveFrame={resolveFrame} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/font-picker` (generated)
|
|
2
|
+
|
|
3
|
+
# G9FontPicker
|
|
4
|
+
|
|
5
|
+
`import { G9FontPicker } from '@g9tm/lynxcontrols-studio/font-picker';`
|
|
6
|
+
|
|
7
|
+
A font picker: a search, a script filter, the families in a virtual list — each name and sample drawn in its own face — and the chosen family's weights as chips.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `families`: object[]
|
|
11
|
+
- `onChange`: (value: G9FontChoice) => void
|
|
12
|
+
- `value?`: object
|
|
13
|
+
- `onScriptChange?`: (script: string | null) => void
|
|
14
|
+
- `rowHeight?`: number = 64
|
|
15
|
+
- `sampleSize?`: number = 20
|
|
16
|
+
- `height?`: number = 360
|
|
17
|
+
- `sample?`: string | object
|
|
18
|
+
|
|
19
|
+
Example: `<G9FontPicker families={families} onChange={() => {}} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/gradient-editor` (generated)
|
|
2
|
+
|
|
3
|
+
# G9GradientEditor
|
|
4
|
+
|
|
5
|
+
`import { G9GradientEditor } from '@g9tm/lynxcontrols-studio/gradient-editor';`
|
|
6
|
+
|
|
7
|
+
A gradient editor: the result, a bar with the stops (press empty bar to add one, drag a stop to move it), the selected stop's colour, a delete button, the angle as a dial and a field, linear or radial.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `value`: object
|
|
11
|
+
- `onChange?`: (gradient: G9Gradient, phase: G9GradientPhase) => void
|
|
12
|
+
- `disabled?`: boolean
|
|
13
|
+
- `onCommit?`: (gradient: G9Gradient) => void
|
|
14
|
+
- `onSelectStop?`: (id: string) => void
|
|
15
|
+
- `colorPicker?`: boolean | object
|
|
16
|
+
- `kinds?`: 'linear' | 'radial'[]
|
|
17
|
+
- `maxStops?`: number = 16
|
|
18
|
+
|
|
19
|
+
Example: `<G9GradientEditor value={value} />`
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/history-list` (generated)
|
|
2
|
+
|
|
3
|
+
# G9HistoryList
|
|
4
|
+
|
|
5
|
+
`import { G9HistoryList } from '@g9tm/lynxcontrols-studio/history-list';`
|
|
6
|
+
|
|
7
|
+
An undo history: each step's label and time, the current step marked (a filled node, bold), the undone steps after it quieter, a tap on any step jumps there (`onJump(index)`).
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `current`: number
|
|
11
|
+
- `steps`: object[]
|
|
12
|
+
- `onJump?`: (index: number) => void
|
|
13
|
+
- `height?`: number
|
|
14
|
+
- `newestFirst?`: boolean = false
|
|
15
|
+
- `utcOffsetMinutes?`: number = 0
|
|
16
|
+
- `words?`: object
|
|
17
|
+
|
|
18
|
+
Example: `<G9HistoryList current={1} steps={steps} />`
|
|
19
|
+
|
|
20
|
+
# G9JobQueue
|
|
21
|
+
|
|
22
|
+
`import { G9JobQueue } from '@g9tm/lynxcontrols-studio/history-list';`
|
|
23
|
+
|
|
24
|
+
A running job queue: each job's icon, label, state (or `detail`), progress (a bar; a moving one when the amount is unknown) and percent, with cancel and retry for the handlers given.
|
|
25
|
+
|
|
26
|
+
Props:
|
|
27
|
+
- `jobs`: object[]
|
|
28
|
+
- `onCancel?`: (id: string) => void
|
|
29
|
+
- `onOpen?`: (id: string) => void
|
|
30
|
+
- `onRetry?`: (id: string) => void
|
|
31
|
+
- `stateWords?`: object
|
|
32
|
+
- `words?`: object
|
|
33
|
+
|
|
34
|
+
Example: `<G9JobQueue jobs={jobs} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/media-slot` (generated)
|
|
2
|
+
|
|
3
|
+
# G9MediaSlot
|
|
4
|
+
|
|
5
|
+
`import { G9MediaSlot } from '@g9tm/lynxcontrols-studio/media-slot';`
|
|
6
|
+
|
|
7
|
+
One media place: empty it is a dashed box that asks (`onReplace`); filled it shows the picture or the poster (a sound: its name and length) with replace, crop (pictures and videos) and remove buttons for the handlers giv
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `kind`: 'image' | 'video' | 'audio'
|
|
11
|
+
- `value?`: object
|
|
12
|
+
- `disabled?`: boolean
|
|
13
|
+
- `onCrop?`: () => void
|
|
14
|
+
- `onRemove?`: () => void
|
|
15
|
+
- `onReplace?`: () => void
|
|
16
|
+
- `radius?`: number = 12
|
|
17
|
+
- `aspect?`: number = 16
|
|
18
|
+
|
|
19
|
+
Example: `<G9MediaSlot kind="image" />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/option-form` (generated)
|
|
2
|
+
|
|
3
|
+
# G9OptionForm
|
|
4
|
+
|
|
5
|
+
`import { G9OptionForm } from '@g9tm/lynxcontrols-studio/option-form';`
|
|
6
|
+
|
|
7
|
+
A form from a schema: groups (collapsible when titled) of slider, toggle, colour, select, text and media fields, words in each language (`{ fa, en }`), a keyframe diamond and a row below any slider, and fields shown only
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onChange`: (id: string, value: unknown, phase: G9OptionPhase) => void
|
|
11
|
+
- `schema`: object[]
|
|
12
|
+
- `values`: object
|
|
13
|
+
- `disabled?`: boolean
|
|
14
|
+
- `onCollapsedChange?`: (collapsed: readonly string[]) => void
|
|
15
|
+
- `onDiamond?`: (id: string) => void
|
|
16
|
+
- `onMedia?`: (id: string, action: G9OptionMediaAction) => void
|
|
17
|
+
- `renderBelow?`: (id) => ReactNode
|
|
18
|
+
|
|
19
|
+
Example: `<G9OptionForm onChange={() => {}} schema={schema} values={values} />`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-studio/waveform` (generated)
|
|
2
|
+
|
|
3
|
+
# G9Waveform
|
|
4
|
+
|
|
5
|
+
`import { G9Waveform } from '@g9tm/lynxcontrols-studio/waveform';`
|
|
6
|
+
|
|
7
|
+
A waveform: bars from the peaks (bucketed to the width), the played part in the primary colour up to the playhead, a tinted selection, and a window whose body moves it and whose edges resize it.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `peaks`: object
|
|
11
|
+
- `disabled?`: boolean
|
|
12
|
+
- `onSeek?`: (at: number, phase: G9WavePhase) => void
|
|
13
|
+
- `onWindow?`: (start: number, end: number, phase: G9WavePhase) => void
|
|
14
|
+
- `barGap?`: number
|
|
15
|
+
- `barWidth?`: number = 2
|
|
16
|
+
- `playedColor?`: color
|
|
17
|
+
- `color?`: color
|
|
18
|
+
|
|
19
|
+
Example: `<G9Waveform peaks={peaks} />`
|