@g9tm/lynxcontrols 2.5.6 → 2.5.7
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/G9AppBar.md +1 -1
- package/catalog/cards/G9CarryContexts.md +10 -0
- package/catalog/cards/G9CheckBox.md +1 -1
- package/catalog/cards/G9FormField.md +2 -2
- package/catalog/cards/G9ListRow.md +1 -1
- package/catalog/cards/G9RangeSlider.md +2 -2
- package/catalog/cards/G9Stepper.md +1 -1
- package/catalog/cards/G9SwitchRow.md +1 -1
- package/catalog/cards/G9UpdateBar.md +2 -1
- package/catalog/catalog.json +879 -42
- package/catalog/index.md +3 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/base/selection-item.d.ts +5 -0
- package/dist/base/selection-item.d.ts.map +1 -1
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +10 -2
- package/dist/display/status.d.ts +1 -1
- package/dist/display/status.d.ts.map +1 -1
- package/dist/display/status.jsx +15 -3
- package/dist/effects/effects.d.ts.map +1 -1
- package/dist/effects/effects.jsx +8 -1
- package/dist/fields/extra-entries.d.ts +2 -1
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +51 -17
- package/dist/fields/fields.css +21 -0
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/outlined-field.d.ts +9 -0
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +6 -1
- package/dist/fields/pin-entry.d.ts.map +1 -1
- package/dist/fields/pin-entry.jsx +36 -3
- package/dist/fields/text-entry.d.ts +4 -0
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +32 -25
- package/dist/fields/use-text-input.d.ts +3 -2
- package/dist/fields/use-text-input.d.ts.map +1 -1
- package/dist/fields/use-text-input.jsx +3 -0
- package/dist/header/app-bar.d.ts +6 -0
- package/dist/header/app-bar.d.ts.map +1 -1
- package/dist/header/app-bar.jsx +22 -8
- package/dist/header/header.css +12 -0
- package/dist/header/header.css.map +1 -1
- package/dist/host/bottom-overlays.d.ts +5 -0
- package/dist/host/bottom-overlays.d.ts.map +1 -1
- package/dist/host/bottom-overlays.jsx +17 -1
- package/dist/host/carry-contexts.d.ts +28 -0
- package/dist/host/carry-contexts.d.ts.map +1 -0
- package/dist/host/carry-contexts.jsx +62 -0
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +5 -1
- package/dist/host/index.d.ts +2 -0
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.jsx +2 -0
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +13 -9
- package/dist/layout/containers.d.ts.map +1 -1
- package/dist/layout/containers.jsx +2 -1
- package/dist/layout/layout.css +5 -0
- package/dist/layout/layout.css.map +1 -1
- package/dist/list/list.css +22 -0
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts +13 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +39 -20
- package/dist/provider/direction-scope.d.ts +8 -0
- package/dist/provider/direction-scope.d.ts.map +1 -1
- package/dist/provider/direction-scope.jsx +13 -2
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css +7 -0
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/settings.d.ts +14 -0
- package/dist/provider/settings.d.ts.map +1 -1
- package/dist/provider/settings.jsx +4 -1
- package/dist/range-slider/index.d.ts +1 -1
- package/dist/range-slider/index.d.ts.map +1 -1
- package/dist/range-slider/range-slider.css +69 -0
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/range-slider.d.ts +22 -0
- package/dist/range-slider/range-slider.d.ts.map +1 -1
- package/dist/range-slider/range-slider.jsx +34 -5
- package/dist/selection/selection-sheet.d.ts.map +1 -1
- package/dist/selection/selection-sheet.jsx +23 -10
- package/dist/selection/selection.css +16 -1
- package/dist/selection/selection.css.map +1 -1
- package/dist/shell/shell.css +6 -0
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts +10 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +6 -4
- package/dist/survey/survey.css +15 -0
- package/dist/survey/survey.css.map +1 -1
- package/dist/survey/survey.d.ts +6 -0
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +17 -2
- package/dist/tab-bar/flat.d.ts.map +1 -1
- package/dist/tab-bar/flat.jsx +49 -35
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +28 -6
- package/dist/tabs/tab-view.jsx +10 -3
- package/dist/tabs/tabs.css +5 -0
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toggle/checkbox.d.ts +5 -0
- package/dist/toggle/checkbox.d.ts.map +1 -1
- package/dist/toggle/checkbox.jsx +7 -2
- package/dist/toggle/choice.css +8 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +9 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +24 -14
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +2 -2
- package/skills/g9-lynx-app/references/components/commerce.md +1 -1
- package/skills/g9-lynx-app/references/components/fields.md +2 -2
- package/skills/g9-lynx-app/references/components/header.md +1 -1
- package/skills/g9-lynx-app/references/components/host.md +11 -0
- package/skills/g9-lynx-app/references/components/list.md +2 -2
- package/skills/g9-lynx-app/references/components/map.md +19 -1
- package/skills/g9-lynx-app/references/components/range-slider.md +2 -2
- package/skills/g9-lynx-app/references/components/shell.md +2 -1
- package/skills/g9-lynx-app/references/components/toggle.md +2 -2
- package/skills/g9-lynx-app/references/provider-and-host.md +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/layout/layout.css"],"names":[],"mappings":"AAEA;EADE,oCAAoC;EACpC,sBAAsB;EACtB,aAAa;EACb,k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B,cAAc;EACd,aAAa;EACb,aAAa;AACf;;AAKA;EAFE,mCAAmC;EACnC,UAAU;AACZ;;AAKA;EAFE,UAAU;EACV,uBAAuB;EACvB,mBAAmB;EACnB,UAAU;EACV,cAAc;EACd,aAAa;AACf;;AAKA;EAFE,mCAAmC;EACnC,UAAU;EACV,YAAY;AACd;;AAKA;EAFE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,aAAa;EACb,aAAa;AACf;;AAKA;EAFE,sCAAsC;EACtC,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,aAAa;EACb,kBAAkB;AACpB;;AAKA;EAFE,OAAO;EACP,aAAa;AACf;;AAKA;EAFE,sBAAsB;EACtB,kBAAkB;EAClB,WAAW;EACX,aAAa;AACf;;AAMA;EAHE,sBAAsB;EACtB,aAAa;AACf;;AAMA;EAHE,OAAO;EACP,aAAa;AACf;;AAMA;EAHE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAOA;EAJE,cAAc;AAChB;;AAQA;EALE,cAAc;EACd,WAAW;AACb;;AAQA;EALE,eAAe;EACf,iBAAiB;EACjB,aAAa;AACf","sourcesContent":["/* Layout: G9Card, G9Section(Header), G9Columns, G9Bento, G9ActionRow, G9UnsavedBar, G9HScroll, G9PlaceScroll,\n G9SplitPane, G9Page. Single-class selectors only; display: flex written out (Lynx). */\n.g9-card {\n display: flex;\n flex-direction: column;\n position: relative;\n border-radius: var(--g9-radius-card);\n overflow: hidden;\n}\n\n.g9-card--outlined {\n background-color: var(--g9-card-background);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-card-border);\n}\n\n.g9-card--filled {\n background-color: var(--g9-surface-container);\n}\n\n.g9-card--elevated {\n background-color: var(--g9-card-elevated);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-card--glass {\n background-color: var(--g9-overlay-light);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-card--down {\n transform: scale(0.985);\n opacity: 0.92;\n transition:\n transform 90ms ease-out,\n opacity 90ms ease-out;\n}\n\n.g9-card--enter {\n animation: g9-card-rise 320ms cubic-bezier(0.22, 1, 0.36, 1) both;\n}\n\n@keyframes g9-card-rise {\n from {\n opacity: 0;\n transform: translateY(10px);\n }\n to {\n opacity: 1;\n transform: translateY(0px);\n }\n}\n\n.g9-card__edge {\n position: absolute;\n top: 0px;\n bottom: 0px;\n width: 3px;\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-card__edge--ltr {\n left: 0px;\n}\n\n.g9-card__edge--rtl {\n right: 0px;\n}\n\n.g9-section {\n display: flex;\n flex-direction: column;\n row-gap: 12px;\n}\n\n.g9-section--card {\n border-radius: var(--g9-radius-card);\n background-color: var(--g9-card-background);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-card-border);\n}\n\n.g9-section__body {\n display: flex;\n flex-direction: column;\n}\n\n.g9-section-header {\n display: flex;\n align-items: center;\n column-gap: 10px;\n min-height: 32px;\n}\n\n.g9-section-header__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 10px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-section-header__text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-section-header__title {\n font-size: var(--g9-type-section-size);\n font-family: var(--g9-font-text-700);\n line-height: var(--g9-type-section-line);\n font-weight: 700;\n color: var(--g9-text-primary);\n}\n\n.g9-section-header__subtitle {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-section-header__action {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 32px;\n padding: 0px 6px;\n}\n\n.g9-section-header__action-text {\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-primary);\n}\n\n.g9-columns {\n display: flex;\n flex-direction: column;\n}\n\n.g9-columns__cell {\n display: flex;\n flex-direction: column;\n min-width: 0px;\n}\n\n.g9-bento {\n display: flex;\n flex-direction: column;\n}\n\n.g9-bento__cell {\n display: flex;\n flex-direction: column;\n min-width: 0px;\n}\n\n.g9-action-row {\n display: flex;\n justify-content: flex-start;\n column-gap: 10px;\n}\n\n.g9-action-row--phone {\n flex-direction: column;\n align-items: stretch;\n row-gap: 10px;\n}\n\n.g9-unsaved {\n display: flex;\n align-items: center;\n column-gap: 10px;\n padding: 10px 14px;\n border-radius: 16px;\n background-color: var(--g9-inverse-surface);\n animation: g9-unsaved-in 240ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n@keyframes g9-unsaved-in {\n from {\n transform: translateY(24px);\n opacity: 0;\n }\n to {\n transform: translateY(0px);\n opacity: 1;\n }\n}\n\n.g9-unsaved__message {\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-unsaved__discard {\n display: flex;\n align-items: center;\n min-height: 36px;\n padding: 0px 8px;\n}\n\n.g9-unsaved__discard-text {\n font-size: 13px;\n font-family: var(--g9-font-text-600);\n font-weight: 600;\n color: var(--g9-inverse-on-surface);\n}\n\n.g9-unsaved__save {\n display: flex;\n align-items: center;\n min-height: 36px;\n padding: 0px 14px;\n border-radius: 12px;\n background-color: var(--g9-inverse-primary);\n}\n\n.g9-unsaved__save--busy {\n opacity: 0.6;\n}\n\n.g9-unsaved__save-text {\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-inverse-surface);\n}\n\n.g9-hscroll {\n display: flex;\n position: relative;\n}\n\n.g9-hscroll-wrap {\n display: flex;\n flex-wrap: wrap;\n}\n\n.g9-hscroll__row {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n}\n\n.g9-hscroll__fade {\n position: absolute;\n top: 0px;\n bottom: 0px;\n width: 32px;\n}\n\n.g9-place-scroll {\n flex: 1;\n}\n\n.g9-place-scroll__content {\n display: flex;\n flex-direction: column;\n}\n\n.g9-split {\n display: flex;\n flex: 1;\n min-height: 0px;\n}\n\n.g9-split--single {\n flex-direction: column;\n}\n\n.g9-split__start {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n min-height: 0px;\n}\n\n.g9-split__divider {\n width: 1px;\n background-color: var(--g9-divider);\n}\n\n.g9-split__handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 9px;\n margin: 0px -4px;\n z-index: 2;\n}\n\n.g9-split__grip {\n width: 1px;\n height: 100%;\n background-color: var(--g9-divider);\n}\n\n.g9-split__detail {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n min-height: 0px;\n}\n\n.g9-page {\n display: flex;\n flex-direction: column;\n flex: 1;\n position: relative;\n min-height: 0px;\n background-color: var(--g9-background);\n}\n\n.g9-page__body {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-page__content {\n display: flex;\n flex-direction: column;\n align-self: center;\n width: 100%;\n}\n\n/* a page that does not scroll gives its height to its content (a list, a map, a chat fills it) */\n.g9-page__body--fixed {\n display: flex;\n flex-direction: column;\n}\n\n.g9-page__content--fill {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-page__footer {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n}\n\n/* G9Page safeBottom: the bottom safe-area inset under the footer (its height inline) */\n.g9-page__safe-bottom {\n flex-shrink: 0;\n}\n\n/* G9ScrollSpyBar */\n.g9-spy {\n width: 100%;\n flex-shrink: 0;\n}\n\n.g9-spy__row {\n display: flex;\n column-gap: 6px;\n padding: 8px 12px;\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://./src/layout/layout.css"],"names":[],"mappings":"AAEA;EADE,oCAAoC;EACpC,sBAAsB;EACtB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAIA;EADE,2CAA2C;EAC3C,sDAAsD;EACtD,mBAAmB;EACnB,iBAAiB;EACjB,mCAAmC;AACrC;;AAKA;EAFE,6CAA6C;EAC7C,wDAAwD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aAAa;AACf;;AAUA;EAPE,sBAAsB;EACtB,aAAa;AACf;;AAUA;EAPE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAUA;EAPE,2BAA2B;EAC3B,gBAAgB;EAChB,aAAa;AACf;;AAUA;EAPE,sBAAsB;EACtB,oBAAoB;EACpB,aAAa;AACf;;AAUA;EAPE,2CAA2C;EAC3C,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,kBAAkB;EAClB,uDAAuD;EACvD,aAAa;AACf;;AAUA;EAPE;IACE,UAAU;IACV,2BAA2B;EAC7B;;EAEA;IACE,UAAU;IACV,wBAAwB;EAC1B;AACF;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;EACnC,OAAO;AACT;;AASA;EANE,mBAAmB;EACnB,gBAAgB;EAChB,cAAc;EACd,aAAa;AACf;;AASA;EANE,eAAe;EACf,oCAAoC;EACpC,mCAAmC;EACnC,gBAAgB;AAClB;;AASA;EANE,2CAA2C;EAC3C,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,aAAa;AACf;;AASA;EANE,WAAW;AACb;;AASA;EANE,eAAe;EACf,oCAAoC;EACpC,gCAAgC;EAChC,gBAAgB;AAClB;;AASA;EANE,aAAa;EACb,kBAAkB;AACpB;;AASA;EANE,eAAe;EACf,aAAa;AACf;;AASA;EANE,cAAc;EACd,mBAAmB;EACnB,aAAa;AACf;;AASA;EANE,WAAW;EACX,kBAAkB;EAClB,MAAM;EACN,SAAS;AACX;;AASA;EANE,OAAO;AACT;;AASA;EANE,sBAAsB;EACtB,aAAa;AACf;;AASA;EANE,OAAO;EACP,aAAa;EACb,aAAa;AACf;;AASA;EANE,sBAAsB;AACxB;;AASA;EANE,sBAAsB;EACtB,cAAc;EACd,aAAa;EACb,aAAa;AACf;;AASA;EANE,mCAAmC;EACnC,UAAU;AACZ;;AASA;EANE,UAAU;EACV,uBAAuB;EACvB,mBAAmB;EACnB,UAAU;EACV,cAAc;EACd,aAAa;AACf;;AASA;EANE,mCAAmC;EACnC,UAAU;EACV,YAAY;AACd;;AASA;EANE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,aAAa;EACb,aAAa;AACf;;AASA;EANE,sCAAsC;EACtC,iDAAiD;EACjD,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,aAAa;EACb,kBAAkB;AACpB;;AAUA;EAPE,OAAO;EACP,aAAa;AACf;;AAUA;EAPE,sBAAsB;EACtB,kBAAkB;EAClB,WAAW;EACX,aAAa;AACf;;AAWA;EARE,sBAAsB;EACtB,aAAa;AACf;;AAWA;EARE,OAAO;EACP,aAAa;AACf;;AAWA;EARE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAYA;EATE,cAAc;AAChB;;AAaA;EAVE,cAAc;EACd,WAAW;AACb;;AAaA;EAVE,eAAe;EACf,iBAAiB;EACjB,aAAa;AACf","sourcesContent":["/* Layout: G9Card, G9Section(Header), G9Columns, G9Bento, G9ActionRow, G9UnsavedBar, G9HScroll, G9PlaceScroll,\n G9SplitPane, G9Page. Single-class selectors only; display: flex written out (Lynx). */\n.g9-card {\n display: flex;\n flex-direction: column;\n position: relative;\n border-radius: var(--g9-radius-card);\n overflow: hidden;\n}\n\n.g9-card--outlined {\n background-color: var(--g9-card-background);\n /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: var(--g9-card-background);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-card-border);\n}\n\n.g9-card--filled {\n background-color: var(--g9-surface-container);\n /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: var(--g9-surface-container);\n}\n\n.g9-card--elevated {\n background-color: var(--g9-card-elevated);\n /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: var(--g9-card-elevated);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-card--glass {\n background-color: var(--g9-overlay-light);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-card--down {\n transform: scale(0.985);\n opacity: 0.92;\n transition:\n transform 90ms ease-out,\n opacity 90ms ease-out;\n}\n\n.g9-card--enter {\n animation: g9-card-rise 320ms cubic-bezier(0.22, 1, 0.36, 1) both;\n}\n\n@keyframes g9-card-rise {\n from {\n opacity: 0;\n transform: translateY(10px);\n }\n to {\n opacity: 1;\n transform: translateY(0px);\n }\n}\n\n.g9-card__edge {\n position: absolute;\n top: 0px;\n bottom: 0px;\n width: 3px;\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-card__edge--ltr {\n left: 0px;\n}\n\n.g9-card__edge--rtl {\n right: 0px;\n}\n\n.g9-section {\n display: flex;\n flex-direction: column;\n row-gap: 12px;\n}\n\n.g9-section--card {\n border-radius: var(--g9-radius-card);\n background-color: var(--g9-card-background);\n /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: var(--g9-card-background);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-card-border);\n}\n\n.g9-section__body {\n display: flex;\n flex-direction: column;\n}\n\n.g9-section-header {\n display: flex;\n align-items: center;\n column-gap: 10px;\n min-height: 32px;\n}\n\n.g9-section-header__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 10px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-section-header__text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-section-header__title {\n font-size: var(--g9-type-section-size);\n font-family: var(--g9-font-text-700);\n line-height: var(--g9-type-section-line);\n font-weight: 700;\n color: var(--g9-text-primary);\n}\n\n.g9-section-header__subtitle {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-section-header__action {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 32px;\n padding: 0px 6px;\n}\n\n.g9-section-header__action-text {\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-primary);\n}\n\n.g9-columns {\n display: flex;\n flex-direction: column;\n}\n\n.g9-columns__cell {\n display: flex;\n flex-direction: column;\n min-width: 0px;\n}\n\n.g9-bento {\n display: flex;\n flex-direction: column;\n}\n\n.g9-bento__cell {\n display: flex;\n flex-direction: column;\n min-width: 0px;\n}\n\n.g9-action-row {\n display: flex;\n justify-content: flex-start;\n column-gap: 10px;\n}\n\n.g9-action-row--phone {\n flex-direction: column;\n align-items: stretch;\n row-gap: 10px;\n}\n\n.g9-unsaved {\n display: flex;\n align-items: center;\n column-gap: 10px;\n padding: 10px 14px;\n border-radius: 16px;\n background-color: var(--g9-inverse-surface);\n animation: g9-unsaved-in 240ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n@keyframes g9-unsaved-in {\n from {\n transform: translateY(24px);\n opacity: 0;\n }\n to {\n transform: translateY(0px);\n opacity: 1;\n }\n}\n\n.g9-unsaved__message {\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-unsaved__discard {\n display: flex;\n align-items: center;\n min-height: 36px;\n padding: 0px 8px;\n}\n\n.g9-unsaved__discard-text {\n font-size: 13px;\n font-family: var(--g9-font-text-600);\n font-weight: 600;\n color: var(--g9-inverse-on-surface);\n}\n\n.g9-unsaved__save {\n display: flex;\n align-items: center;\n min-height: 36px;\n padding: 0px 14px;\n border-radius: 12px;\n background-color: var(--g9-inverse-primary);\n}\n\n.g9-unsaved__save--busy {\n opacity: 0.6;\n}\n\n.g9-unsaved__save-text {\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-inverse-surface);\n}\n\n.g9-hscroll {\n display: flex;\n position: relative;\n}\n\n.g9-hscroll-wrap {\n display: flex;\n flex-wrap: wrap;\n}\n\n.g9-hscroll__row {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n}\n\n.g9-hscroll__fade {\n position: absolute;\n top: 0px;\n bottom: 0px;\n width: 32px;\n}\n\n.g9-place-scroll {\n flex: 1;\n}\n\n.g9-place-scroll__content {\n display: flex;\n flex-direction: column;\n}\n\n.g9-split {\n display: flex;\n flex: 1;\n min-height: 0px;\n}\n\n.g9-split--single {\n flex-direction: column;\n}\n\n.g9-split__start {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n min-height: 0px;\n}\n\n.g9-split__divider {\n width: 1px;\n background-color: var(--g9-divider);\n}\n\n.g9-split__handle {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 9px;\n margin: 0px -4px;\n z-index: 2;\n}\n\n.g9-split__grip {\n width: 1px;\n height: 100%;\n background-color: var(--g9-divider);\n}\n\n.g9-split__detail {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n min-height: 0px;\n}\n\n.g9-page {\n display: flex;\n flex-direction: column;\n flex: 1;\n position: relative;\n min-height: 0px;\n background-color: var(--g9-background);\n /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: var(--g9-background);\n}\n\n.g9-page__body {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-page__content {\n display: flex;\n flex-direction: column;\n align-self: center;\n width: 100%;\n}\n\n/* a page that does not scroll gives its height to its content (a list, a map, a chat fills it) */\n.g9-page__body--fixed {\n display: flex;\n flex-direction: column;\n}\n\n.g9-page__content--fill {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-page__footer {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n}\n\n/* G9Page safeBottom: the bottom safe-area inset under the footer (its height inline) */\n.g9-page__safe-bottom {\n flex-shrink: 0;\n}\n\n/* G9ScrollSpyBar */\n.g9-spy {\n width: 100%;\n flex-shrink: 0;\n}\n\n.g9-spy__row {\n display: flex;\n column-gap: 6px;\n padding: 8px 12px;\n}\n"],"sourceRoot":""}
|
package/dist/list/list.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.g9-list-row {
|
|
2
2
|
background-color: var(--g9-surface);
|
|
3
|
+
--g9-field-notch-background: var(--g9-surface);
|
|
3
4
|
align-items: center;
|
|
4
5
|
column-gap: 12px;
|
|
5
6
|
padding: 8px 16px;
|
|
@@ -17,6 +18,26 @@
|
|
|
17
18
|
transition: background-color .12s ease-out;
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
.g9-list-row--tint:active {
|
|
22
|
+
background-color: var(--g9-default-pressed);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.g9-list-row--stacked {
|
|
26
|
+
align-items: stretch;
|
|
27
|
+
row-gap: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.g9-list-row__main {
|
|
31
|
+
align-items: center;
|
|
32
|
+
column-gap: 12px;
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.g9-list-row__below {
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
display: flex;
|
|
39
|
+
}
|
|
40
|
+
|
|
20
41
|
.g9-list-row__edge {
|
|
21
42
|
width: 3px;
|
|
22
43
|
position: absolute;
|
|
@@ -126,6 +147,7 @@
|
|
|
126
147
|
border-width: 1px;
|
|
127
148
|
border-color: var(--g9-card-border);
|
|
128
149
|
background-color: var(--g9-surface);
|
|
150
|
+
--g9-field-notch-background: var(--g9-surface);
|
|
129
151
|
flex-direction: column;
|
|
130
152
|
display: flex;
|
|
131
153
|
overflow: hidden;
|
package/dist/list/list.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/list/list.css"],"names":[],"mappings":"AACA;EAAE,mCAAmC;EACnC,mBAAmB;EACnB,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,kBAAkB;AACpB;;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/list/list.css"],"names":[],"mappings":"AACA;EAAE,mCAAmC;EACnC,8CAA8C;EAC9C,mBAAmB;EACnB,gBAAgB;EACh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AACnB;;AAOA;EAJE,oCAAoC;EACpC,mBAAmB;EACnB,iBAAiB;EACjB,mCAAmC;EACnC,mCAAmC;EACnC,8CAA8C;EAC9C,sBAAsB;EACtB,aAAa;EACb,gBAAgB;AAClB;;AAQA;EALE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAQA;EALE,uBAAuB;EACvB,mBAAmB;EACnB,gBAAgB;EAChB,cAAc;EACd,aAAa;AACf;;AAQA;EALE,kDAAkD;EAClD,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAQA;EALE,YAAY;AACd;;AAQA;EALE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAQA;EALE,OAAO;EACP,aAAa;AACf;;AAQA;EALE,sBAAsB;EACtB,aAAa;AACf;;AASA;EANE,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AASA;EANE,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;AACV;;AASA;EANE,OAAO;EACP,aAAa;AACf;;AAUA;EAPE,kBAAkB;AACpB;;AAUA;EAPE,sBAAsB;EACtB,aAAa;EACb,kBAAkB;EAClB,OAAO;EACP,QAAQ;AACV;;AAUA;EAPE,UAAU;EACV,YAAY;EACZ,mCAAmC;EACnC,gCAAgC;AAClC;;AAWA;EARE,sBAAsB;EACtB,WAAW;EACX,aAAa;AACf","sourcesContent":["/* G9ListRow, G9SettingsGroup, G9Pager, G9VirtualList. */\n.g9-list-row {\n display: flex;\n align-items: center;\n position: relative;\n column-gap: 12px;\n padding: 8px 16px;\n background-color: var(--g9-surface);\n /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: var(--g9-surface);\n}\n\n.g9-list-row--divider {\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-list-row--pressable {\n transition: background-color 120ms ease-out;\n}\n\n/* pressFeedback 'tint' (2.5.7): the state layer while the finger is down, drawn natively. */\n.g9-list-row--tint:active {\n background-color: var(--g9-default-pressed);\n}\n\n/* `below` (2.5.7): the row over full-width content, one block. */\n.g9-list-row--stacked {\n align-items: stretch;\n row-gap: 8px;\n}\n\n.g9-list-row__main {\n display: flex;\n align-items: center;\n column-gap: 12px;\n}\n\n.g9-list-row__below {\n display: flex;\n flex-direction: column;\n}\n\n.g9-list-row__edge {\n position: absolute;\n top: 0px;\n bottom: 0px;\n width: 3px;\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-list-row__edge--ltr {\n left: 0px;\n}\n\n.g9-list-row__edge--rtl {\n right: 0px;\n}\n\n.g9-list-row__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 36px;\n border-radius: 11px;\n flex-shrink: 0;\n}\n\n.g9-list-row__text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-list-row__title {\n font-size: 15px;\n font-family: var(--g9-font-text);\n line-height: 24px;\n color: var(--g9-text-primary);\n}\n\n.g9-list-row__title--plain {\n font-size: 14px;\n font-family: var(--g9-font-text);\n line-height: 20px;\n color: var(--g9-text-secondary);\n}\n\n.g9-list-row__title--strong {\n font-size: 14px;\n font-family: var(--g9-font-text-700);\n line-height: 21px;\n font-weight: bold;\n}\n\n.g9-list-row__hint {\n font-size: 11px;\n font-family: var(--g9-font-text);\n line-height: 16px;\n color: var(--g9-text-tertiary);\n margin-top: 2px;\n}\n\n.g9-list-row__title--danger {\n color: var(--g9-error);\n font-family: var(--g9-font-text);\n}\n\n.g9-list-row__subtitle {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 19px;\n color: var(--g9-text-secondary);\n}\n\n.g9-list-row__value {\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n flex-shrink: 0;\n max-width: 45%;\n}\n\n.g9-settings {\n display: flex;\n flex-direction: column;\n row-gap: 6px;\n}\n\n.g9-settings__title {\n padding: 0px 4px;\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-secondary);\n}\n\n.g9-settings__description {\n padding: 0px 4px;\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 19px;\n color: var(--g9-text-tertiary);\n}\n\n.g9-settings__card {\n display: flex;\n flex-direction: column;\n border-radius: var(--g9-radius-card);\n overflow: hidden;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-card-border);\n background-color: var(--g9-surface);\n /* a floated field label on this surface notches in its colour (G9Hub, 2.5.7) */\n --g9-field-notch-background: var(--g9-surface);\n}\n\n.g9-settings__footer {\n display: flex;\n flex-direction: column;\n padding: 0px 4px;\n}\n\n.g9-pager {\n display: flex;\n align-items: center;\n justify-content: center;\n column-gap: 12px;\n padding: 8px 0px;\n}\n\n.g9-pager__btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 20px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-pager__btn--off {\n opacity: 0.35;\n}\n\n.g9-pager__label {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n.g9-vlist {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-vlist--empty {\n display: flex;\n flex-direction: column;\n}\n\n/* G9PullToRefresh */\n.g9-ptr {\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0px;\n overflow: hidden;\n}\n\n.g9-ptr__indicator {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-ptr__scroll {\n flex: 1;\n min-height: 0px;\n}\n\n/* G9DragList */\n.g9-drag-list {\n position: relative;\n}\n\n.g9-drag-list__row {\n position: absolute;\n left: 0px;\n right: 0px;\n display: flex;\n flex-direction: column;\n}\n\n.g9-drag-list__row--lifted {\n z-index: 2;\n opacity: 0.95;\n box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.22);\n background-color: var(--g9-surface);\n}\n\n/* A readable list's last row is measured through this wrapper (its height decides how it lands). */\n.g9-vlist__measure {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n"],"sourceRoot":""}
|
package/dist/list/rows.d.ts
CHANGED
|
@@ -44,6 +44,15 @@ export interface G9ListRowProps extends G9ControlBaseProps {
|
|
|
44
44
|
readonly strongTitle?: boolean;
|
|
45
45
|
/** Double-tap guard in ms (see `useG9Press`); 0 = every tap counts (a hidden tap-counting target). */
|
|
46
46
|
readonly pressGuardMs?: number;
|
|
47
|
+
/** Lines the subtitle may take. Default 2 (G9Hub, 2.5.7). */
|
|
48
|
+
readonly subtitleLines?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Content under the row at its full width (a stacked setting's control: a slider, a segmented choice; G9Hub, 2.5.7).
|
|
51
|
+
* The row then stands over it in one block, one divider under both.
|
|
52
|
+
*/
|
|
53
|
+
readonly below?: ReactNode;
|
|
54
|
+
/** `'tint'`: a pressable row's background darkens while pressed (`--g9-default-pressed`). Default `'none'`. */
|
|
55
|
+
readonly pressFeedback?: 'none' | 'tint';
|
|
47
56
|
}
|
|
48
57
|
/**
|
|
49
58
|
* One line of a list (SAC kit ListRow, ShopManager Row, G9Hub SettingsRow): icon or avatar at the start, title and a
|
|
@@ -68,7 +77,10 @@ export interface G9SettingsGroupProps {
|
|
|
68
77
|
readonly footer?: ReactNode;
|
|
69
78
|
readonly children?: ReactNode;
|
|
70
79
|
}
|
|
71
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Rows grouped in a card with a title and a note (G9Hub SettingsGroup, iOS grouped lists). A last `G9ListRow` (or
|
|
82
|
+
* `G9SwitchRow`) without its own `divider` draws none — the card's edge closes it.
|
|
83
|
+
*/
|
|
72
84
|
export declare function G9SettingsGroup(props: G9SettingsGroupProps): ReactNode;
|
|
73
85
|
/** Props of {@link G9Pager}. */
|
|
74
86
|
export interface G9PagerProps extends G9ControlBaseProps {
|
package/dist/list/rows.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../src/list/rows.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AAEpB,OAAO,
|
|
1
|
+
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../src/list/rows.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AAEpB,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAOjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,cAAc,CAAC;AACvD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAOxD,kCAAkC;AAClC,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B,wDAAwD;IACxD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B,8GAA8G;IAC9G,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,sCAAsC;IACtC,QAAQ,CA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foundation";
|
|
3
|
-
import { Children, memo } from "@lynx-js/react";
|
|
3
|
+
import { Children, cloneElement, isValidElement, memo } from "@lynx-js/react";
|
|
4
4
|
import { g9ChildId, g9IdProps, g9RowStyle, g9TextStart, mergeStyle, useG9Control } from "../base/control.jsx";
|
|
5
5
|
import { useG9Press } from "../base/press.jsx";
|
|
6
6
|
import { toneColors } from "../base/tone.jsx";
|
|
7
7
|
import { G9Icon } from "../icon/icon.jsx";
|
|
8
|
+
import { G9Slot } from "../provider/direction-scope.jsx";
|
|
8
9
|
import { useG9Direction } from "../provider/hooks.jsx";
|
|
9
10
|
import { G9Switch } from "../toggle/switch.jsx";
|
|
10
11
|
const G9ListRow = memo(function(props) {
|
|
11
|
-
var _props_iconTone, _props_chevron,
|
|
12
|
+
var _props_iconTone, _props_chevron, _props_iconSize, _props_iconColor, _props_iconSize1, _props_iconColor1, _props_titleLines, _props_subtitleLines, _props_minHeight, _props_minHeight1, _props_accessibilityLabel;
|
|
12
13
|
const control = useG9Control(props, 'g9-list-row', props.onPress ? {
|
|
13
14
|
kind: 'button',
|
|
14
15
|
label: ()=>{
|
|
@@ -29,28 +30,18 @@ const G9ListRow = memo(function(props) {
|
|
|
29
30
|
const plainIcon = 'plain' === props.iconAppearance;
|
|
30
31
|
const icon = toneColors(props.danger ? 'error' : null != (_props_iconTone = props.iconTone) ? _props_iconTone : 'neutral', 'soft');
|
|
31
32
|
const chevron = null != (_props_chevron = props.chevron) ? _props_chevron : void 0 !== props.onPress && !props.trailing && !props.value;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})} {...props.onPress ? {
|
|
36
|
-
bindtap: press,
|
|
37
|
-
'accessibility-element': true,
|
|
38
|
-
'accessibility-traits': 'button',
|
|
39
|
-
'accessibility-label': null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : props.title
|
|
40
|
-
} : {}}>
|
|
41
|
-
{props.edge ? <view className={`g9-list-row__edge g9-list-row__edge--${control.direction}`} style={{
|
|
42
|
-
backgroundColor: props.edge
|
|
43
|
-
}}/> : null}
|
|
44
|
-
{null != (_props_leading = props.leading) ? _props_leading : props.icon ? plainIcon ? <G9Icon icon={props.icon} size={null != (_props_iconSize = props.iconSize) ? _props_iconSize : 22} color={null != (_props_iconColor = props.iconColor) ? _props_iconColor : props.danger ? icon.foreground : 'var(--g9-primary)'}/> : <view className="g9-list-row__icon" style={{
|
|
33
|
+
const stacked = void 0 !== props.below && null !== props.below && false !== props.below;
|
|
34
|
+
const main = <>
|
|
35
|
+
{null != props.leading ? <G9Slot>{props.leading}</G9Slot> : props.icon ? plainIcon ? <G9Icon icon={props.icon} size={null != (_props_iconSize = props.iconSize) ? _props_iconSize : 22} color={null != (_props_iconColor = props.iconColor) ? _props_iconColor : props.danger ? icon.foreground : 'var(--g9-primary)'}/> : <view className="g9-list-row__icon" style={{
|
|
45
36
|
backgroundColor: icon.background
|
|
46
37
|
}}>
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
<G9Icon icon={props.icon} size={null != (_props_iconSize1 = props.iconSize) ? _props_iconSize1 : 18} color={null != (_props_iconColor1 = props.iconColor) ? _props_iconColor1 : icon.foreground}/>
|
|
39
|
+
</view> : null}
|
|
49
40
|
<view className="g9-list-row__text">
|
|
50
41
|
<text className={`g9-list-row__title${props.plainTitle ? ' g9-list-row__title--plain' : props.strongTitle ? ' g9-list-row__title--strong' : ''}${props.danger ? ' g9-list-row__title--danger' : ''}`} text-maxline={String(null != (_props_titleLines = props.titleLines) ? _props_titleLines : 1)} style={g9TextStart(control.direction)}>
|
|
51
42
|
{props.title}
|
|
52
43
|
</text>
|
|
53
|
-
{props.subtitle ? <text className="g9-list-row__subtitle" text-maxline=
|
|
44
|
+
{props.subtitle ? <text className="g9-list-row__subtitle" text-maxline={String(null != (_props_subtitleLines = props.subtitleLines) ? _props_subtitleLines : 2)} style={g9TextStart(control.direction)}>
|
|
54
45
|
{props.subtitle}
|
|
55
46
|
</text> : null}
|
|
56
47
|
{props.hint ? <text className="g9-list-row__hint" style={g9TextStart(control.direction)}>
|
|
@@ -60,8 +51,30 @@ const G9ListRow = memo(function(props) {
|
|
|
60
51
|
{props.value ? <text className="g9-list-row__value" text-maxline="1">
|
|
61
52
|
{props.value}
|
|
62
53
|
</text> : null}
|
|
63
|
-
{props.trailing}
|
|
54
|
+
<G9Slot>{props.trailing}</G9Slot>
|
|
64
55
|
{chevron ? <G9Icon icon={'rtl' === control.direction ? G9Glyph.ChevronLeft : G9Glyph.ChevronRight} size={18} color="var(--g9-text-tertiary)"/> : null}
|
|
56
|
+
</>;
|
|
57
|
+
return <view className={`${control.className}${false === props.divider ? '' : ' g9-list-row--divider'}${props.onPress ? ' g9-list-row--pressable' : ''}${props.onPress && 'tint' === props.pressFeedback ? ' g9-list-row--tint' : ''}${stacked ? ' g9-list-row--stacked' : ''}`} {...control.idProps} style={control.rootStyle(stacked ? {
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
minHeight: `${null != (_props_minHeight = props.minHeight) ? _props_minHeight : 56}px`
|
|
60
|
+
} : {
|
|
61
|
+
...g9RowStyle(control.direction),
|
|
62
|
+
minHeight: `${null != (_props_minHeight1 = props.minHeight) ? _props_minHeight1 : 56}px`
|
|
63
|
+
})} {...props.onPress ? {
|
|
64
|
+
bindtap: press,
|
|
65
|
+
'accessibility-element': true,
|
|
66
|
+
'accessibility-traits': 'button',
|
|
67
|
+
'accessibility-label': null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : props.title
|
|
68
|
+
} : {}}>
|
|
69
|
+
{props.edge ? <view className={`g9-list-row__edge g9-list-row__edge--${control.direction}`} style={{
|
|
70
|
+
backgroundColor: props.edge
|
|
71
|
+
}}/> : null}
|
|
72
|
+
{stacked ? <>
|
|
73
|
+
<view className="g9-list-row__main" style={g9RowStyle(control.direction)}>
|
|
74
|
+
{main}
|
|
75
|
+
</view>
|
|
76
|
+
<view className="g9-list-row__below">{props.below}</view>
|
|
77
|
+
</> : main}
|
|
65
78
|
</view>;
|
|
66
79
|
});
|
|
67
80
|
function G9SwitchRow(props) {
|
|
@@ -71,7 +84,13 @@ function G9SwitchRow(props) {
|
|
|
71
84
|
} : {}} checked={checked} onCheckedChange={onCheckedChange}/>} chevron={false}/>;
|
|
72
85
|
}
|
|
73
86
|
function G9SettingsGroup(props) {
|
|
74
|
-
const rows =
|
|
87
|
+
const rows = [
|
|
88
|
+
...Children.toArray(props.children)
|
|
89
|
+
];
|
|
90
|
+
const last = rows[rows.length - 1];
|
|
91
|
+
if (isValidElement(last) && (last.type === G9ListRow || last.type === G9SwitchRow) && void 0 === last.props.divider) rows[rows.length - 1] = cloneElement(last, {
|
|
92
|
+
divider: false
|
|
93
|
+
});
|
|
75
94
|
return <view className={`g9-settings${props.className ? ` ${props.className}` : ''}`} {...g9IdProps(props.id)} style={mergeStyle(void 0, props.style)}>
|
|
76
95
|
{props.title ? <text className="g9-settings__title" accessibility-element={true} accessibility-traits="header">
|
|
77
96
|
{props.title}
|
|
@@ -10,4 +10,12 @@ export interface G9DirectionScopeProps {
|
|
|
10
10
|
* app inherits CSS direction. Its own layout is the app's (`className`, `style`).
|
|
11
11
|
*/
|
|
12
12
|
export declare function G9DirectionScope(props: G9DirectionScopeProps): ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* A slot of a G9 row that holds the app's content (internal): the content as it is, or — under
|
|
15
|
+
* `settings.layout.inheritedDirection` — in a `.g9-slot` row view in the culture's direction.
|
|
16
|
+
*/
|
|
17
|
+
export declare function G9Slot(props: {
|
|
18
|
+
readonly children?: ReactNode;
|
|
19
|
+
readonly className?: string;
|
|
20
|
+
}): ReactNode;
|
|
13
21
|
//# sourceMappingURL=direction-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direction-scope.d.ts","sourceRoot":"","sources":["../../src/provider/direction-scope.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,CAUxE"}
|
|
1
|
+
{"version":3,"file":"direction-scope.d.ts","sourceRoot":"","sources":["../../src/provider/direction-scope.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,CAUxE;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAUvG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useG9Direction } from "./hooks.jsx";
|
|
1
|
+
import { useG9Direction, useG9Settings } from "./hooks.jsx";
|
|
2
2
|
function G9DirectionScope(props) {
|
|
3
3
|
var _props_style;
|
|
4
4
|
const dir = useG9Direction();
|
|
@@ -9,4 +9,15 @@ function G9DirectionScope(props) {
|
|
|
9
9
|
{props.children}
|
|
10
10
|
</view>;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
function G9Slot(props) {
|
|
13
|
+
const scoped = useG9Settings().layout.inheritedDirection;
|
|
14
|
+
const dir = useG9Direction();
|
|
15
|
+
if (void 0 === props.children || null === props.children || false === props.children) return null;
|
|
16
|
+
if (!scoped) return props.children;
|
|
17
|
+
return <view className={`g9-slot g9-dir-${dir}${props.className ? ` ${props.className}` : ''}`} style={{
|
|
18
|
+
direction: dir
|
|
19
|
+
}}>
|
|
20
|
+
{props.children}
|
|
21
|
+
</view>;
|
|
22
|
+
}
|
|
23
|
+
export { G9DirectionScope, G9Slot };
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export { G9DirectionScope, type G9DirectionScopeProps } from './direction-scope.
|
|
|
4
4
|
export { type G9WindowInfo, useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window, } from './hooks.js';
|
|
5
5
|
export { G9KeepAlive, type G9KeepAliveProps } from './keep-alive.js';
|
|
6
6
|
export { type G9PreviewOverrides, G9Provider, type G9ProviderProps } from './provider.js';
|
|
7
|
-
export { type G9ExecutorSettings, type G9FieldSettings, type G9ImageRenderer, type G9PageLoadingSettings, type G9ResolvedSettings, type G9Settings, g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings, } from './settings.js';
|
|
7
|
+
export { type G9ExecutorSettings, type G9FieldSettings, type G9ImageRenderer, type G9LayoutSettings, type G9PageLoadingSettings, type G9ResolvedSettings, type G9Settings, g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings, } from './settings.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,KAAK,YAAY,EACjB,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,GAChB,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,KAAK,YAAY,EACjB,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,GAChB,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/provider/provider.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,cAAc;AAChB;;AAMA;EAHE,cAAc;AAChB;;AASA;EANE,uBAAuB;AACzB","sourcesContent":["/* G9Provider root: fills the LynxView and carries the theme variables (set inline / with setProperty). */\n.g9-provider {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n}\n\n/* direction does not inherit in Lynx (plan/specs/02 §2): every G9 root sets it; these are the provider's.\n The theme's font per script (LC-07) is `--g9-font-text`, which the provider writes for its root's direction\n (toShapeCssVariables): every G9 text reads it; in the stock theme it is never set and the platform's font stays. */\n.g9-dir-ltr {\n direction: ltr;\n}\n\n.g9-dir-rtl {\n direction: rtl;\n}\n\n/* Reduced motion (setG9MotionScale(0), the provider's `g9-motion-off`): every CSS transition of the kit ends at once, as\n the JS-timed motion does. Listed one by one (no universal selector); a new transition in a component belongs here too\n (provider-motion.test.ts checks); another package lists its own in its own stylesheet (progress-overlay.css). The infinite spinners keep turning: they say «busy», they move nothing a test waits for. */\n.g9-motion-off .g9-deferred__cover,\n.g9-motion-off .g9-progress__fill,\n.g9-motion-off .g9-expander__chevron,\n.g9-motion-off .g9-expander__clip,\n.g9-motion-off .g9-field__label,\n.g9-motion-off .g9-page-loading,\n.g9-motion-off .g9-toast__fill,\n.g9-motion-off .g9-switch__track,\n.g9-motion-off .g9-switch__thumb,\n.g9-motion-off .g9-chip,\n.g9-motion-off .g9-chip__check,\n.g9-motion-off .g9-press-s96,\n.g9-motion-off .g9-press-s96:active,\n.g9-motion-off .g9-press-s92,\n.g9-motion-off .g9-press-s92:active,\n.g9-motion-off .g9-press-s82,\n.g9-motion-off .g9-press-s82:active,\n.g9-motion-off .g9-press-s985,\n.g9-motion-off .g9-press-s985:active,\n.g9-motion-off .g9-press-s99,\n.g9-motion-off .g9-press-s99:active,\n.g9-motion-off .g9-press-o78,\n.g9-motion-off .g9-press-o78:active,\n.g9-motion-off .g9-press-o78b,\n.g9-motion-off .g9-press-o78b:active,\n.g9-motion-off .g9-press-card,\n.g9-motion-off .g9-press-card:active,\n.g9-motion-off .g9-card--down,\n.g9-motion-off .g9-list-row--pressable,\n.g9-motion-off .g9-step-slider__dot,\n.g9-motion-off .g9-shell__tab-bar,\n.g9-motion-off .g9-update-bar,\n.g9-motion-off .g9-scale__step,\n.g9-motion-off .g9-seg__indicator {\n transition-duration: 0ms;\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://./src/provider/provider.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,cAAc;AAChB;;AAMA;EAHE,cAAc;AAChB;;AASA;EANE,uBAAuB;AACzB;;AA4CA;EAzCE,mBAAmB;EACnB,cAAc;EACd,mBAAmB;EACnB,aAAa;AACf","sourcesContent":["/* G9Provider root: fills the LynxView and carries the theme variables (set inline / with setProperty). */\n.g9-provider {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n}\n\n/* direction does not inherit in Lynx (plan/specs/02 §2): every G9 root sets it; these are the provider's.\n The theme's font per script (LC-07) is `--g9-font-text`, which the provider writes for its root's direction\n (toShapeCssVariables): every G9 text reads it; in the stock theme it is never set and the platform's font stays. */\n.g9-dir-ltr {\n direction: ltr;\n}\n\n.g9-dir-rtl {\n direction: rtl;\n}\n\n/* Reduced motion (setG9MotionScale(0), the provider's `g9-motion-off`): every CSS transition of the kit ends at once, as\n the JS-timed motion does. Listed one by one (no universal selector); a new transition in a component belongs here too\n (provider-motion.test.ts checks); another package lists its own in its own stylesheet (progress-overlay.css). The infinite spinners keep turning: they say «busy», they move nothing a test waits for. */\n.g9-motion-off .g9-deferred__cover,\n.g9-motion-off .g9-progress__fill,\n.g9-motion-off .g9-expander__chevron,\n.g9-motion-off .g9-expander__clip,\n.g9-motion-off .g9-field__label,\n.g9-motion-off .g9-page-loading,\n.g9-motion-off .g9-toast__fill,\n.g9-motion-off .g9-switch__track,\n.g9-motion-off .g9-switch__thumb,\n.g9-motion-off .g9-chip,\n.g9-motion-off .g9-chip__check,\n.g9-motion-off .g9-press-s96,\n.g9-motion-off .g9-press-s96:active,\n.g9-motion-off .g9-press-s92,\n.g9-motion-off .g9-press-s92:active,\n.g9-motion-off .g9-press-s82,\n.g9-motion-off .g9-press-s82:active,\n.g9-motion-off .g9-press-s985,\n.g9-motion-off .g9-press-s985:active,\n.g9-motion-off .g9-press-s99,\n.g9-motion-off .g9-press-s99:active,\n.g9-motion-off .g9-press-o78,\n.g9-motion-off .g9-press-o78:active,\n.g9-motion-off .g9-press-o78b,\n.g9-motion-off .g9-press-o78b:active,\n.g9-motion-off .g9-press-card,\n.g9-motion-off .g9-press-card:active,\n.g9-motion-off .g9-card--down,\n.g9-motion-off .g9-list-row--pressable,\n.g9-motion-off .g9-step-slider__dot,\n.g9-motion-off .g9-shell__tab-bar,\n.g9-motion-off .g9-update-bar,\n.g9-motion-off .g9-scale__step,\n.g9-motion-off .g9-seg__indicator {\n transition-duration: 0ms;\n}\n\n/* A slot of a G9 row holding the app's content under `settings.layout.inheritedDirection` (2.5.7): a row in the\n culture's direction (set inline), sized by its content. */\n.g9-slot {\n display: flex;\n flex-direction: row;\n align-items: center;\n flex-shrink: 0;\n}\n"],"sourceRoot":""}
|
|
@@ -71,6 +71,19 @@ export interface G9Settings {
|
|
|
71
71
|
readonly guide?: G9GuideSettings;
|
|
72
72
|
/** Where toasts stand and how they look (SAC: ink toasts, 420 wide and at the bottom on a desk). */
|
|
73
73
|
readonly toasts?: G9ToastSettings;
|
|
74
|
+
/** How the library's rows meet the app's CSS (2.5.7). */
|
|
75
|
+
readonly layout?: G9LayoutSettings;
|
|
76
|
+
}
|
|
77
|
+
/** App-wide layout settings. */
|
|
78
|
+
export interface G9LayoutSettings {
|
|
79
|
+
/**
|
|
80
|
+
* The app inherits CSS `direction` (`enableCSSInheritance` with direction in its list: G9Hub, SAC, Riskara). The
|
|
81
|
+
* library pins its own rows to `direction: ltr` (it orders them itself); with this on, every slot that holds the app's
|
|
82
|
+
* content inside such a row (a top bar's `start` and `actions`, a list row's `leading` and `trailing`, a section's
|
|
83
|
+
* `actions`, a form field's `aside`) gets the culture's direction back, in a row view (`.g9-slot`) — what
|
|
84
|
+
* `G9DirectionScope` does by hand. Default `false` (no extra view).
|
|
85
|
+
*/
|
|
86
|
+
readonly inheritedDirection?: boolean;
|
|
74
87
|
}
|
|
75
88
|
/** App-wide toast settings. */
|
|
76
89
|
export interface G9ToastSettings {
|
|
@@ -125,6 +138,7 @@ export interface G9ResolvedSettings {
|
|
|
125
138
|
readonly toggles: Required<G9ToggleSettings>;
|
|
126
139
|
readonly guide: G9GuideSettings;
|
|
127
140
|
readonly toasts: G9ToastSettings;
|
|
141
|
+
readonly layout: Required<G9LayoutSettings>;
|
|
128
142
|
}
|
|
129
143
|
/** MAUI `G9PageBase.PageLoadingDismissDelayMs` default. */
|
|
130
144
|
export declare const g9PageLoadingDismissDelayMs = 369;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/provider/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EAExB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EAEtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAA8B,KAAK,eAAe,EAAsB,MAAM,gBAAgB,CAAC;AACtG,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,kBAAkB,CAAC;AAE9E,qGAAqG;AACrG,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAEhD,iHAAiH;AACjH,MAAM,WAAW,qBAAqB;IACpC,2GAA2G;IAC3G,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,sFAAsF;IACtF,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,yGAAyG;IACzG,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,8FAA8F;IAC9F,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAED;;;GAGG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AAM,4BAA4B,OAAO,CAAC;AAajD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,UAAU,GAAG,SAAS,EAChC,iBAAiB,CAAC,EAAE,kBAAkB,GACrC,kBAAkB,CAiCpB"}
|
|
@@ -14,7 +14,7 @@ function nonNegative(name, value, fallback) {
|
|
|
14
14
|
}
|
|
15
15
|
function resolveSettings(settings, fallbackIconFonts) {
|
|
16
16
|
var _s_backEventName, _s_pageLoading, _s_strings, _ref, _s_iconFonts, _loading_backgroundColor, _loading_spinnerColor, _s_executor, _ref1, _ref2, _s_guide, _s_toasts;
|
|
17
|
-
var _s_fields, _s_toggles;
|
|
17
|
+
var _s_fields, _s_toggles, _s_layout;
|
|
18
18
|
const s = null != settings ? settings : {};
|
|
19
19
|
const backEventName = null != (_s_backEventName = s.backEventName) ? _s_backEventName : g9DefaultBackEventName;
|
|
20
20
|
if ('string' != typeof backEventName || '' === backEventName.trim()) throw new G9Error('settings-invalid', 'backEventName must be a non-blank string.');
|
|
@@ -44,6 +44,9 @@ function resolveSettings(settings, fallbackIconFonts) {
|
|
|
44
44
|
guide: null != (_s_guide = s.guide) ? _s_guide : {},
|
|
45
45
|
toasts: Object.freeze({
|
|
46
46
|
...null != (_s_toasts = s.toasts) ? _s_toasts : {}
|
|
47
|
+
}),
|
|
48
|
+
layout: Object.freeze({
|
|
49
|
+
inheritedDirection: (null == (_s_layout = s.layout) ? void 0 : _s_layout.inheritedDirection) === true
|
|
47
50
|
})
|
|
48
51
|
});
|
|
49
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { coerceSliderRange, formatSliderValue, roundHalfEven, sliderBounds, sliderRatio, sliderValueAt, snapSliderValue, } from './math.js';
|
|
2
|
-
export { G9RangeSlider, type G9RangeSliderProps, type G9SliderBand, g9SliderMetrics, sliderKeyStep, } from './range-slider.js';
|
|
2
|
+
export { G9RangeSlider, type G9RangeSliderProps, type G9SliderBand, type G9SliderMark, g9SliderMetrics, sliderKeyStep, } from './range-slider.js';
|
|
3
3
|
export { G9StepSlider, type G9StepSliderProps } from './step-slider.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/range-slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,eAAe,GAChB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,eAAe,EACf,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/range-slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,eAAe,GAChB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,eAAe,EACf,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -118,6 +118,75 @@
|
|
|
118
118
|
color: var(--g9-text-secondary);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
.g9-slider__tick {
|
|
122
|
+
background-color: var(--g9-on-surface-variant);
|
|
123
|
+
opacity: .6;
|
|
124
|
+
border-radius: 2px;
|
|
125
|
+
width: 4px;
|
|
126
|
+
height: 4px;
|
|
127
|
+
margin-left: -2px;
|
|
128
|
+
position: absolute;
|
|
129
|
+
top: 12px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.g9-slider__tick--on {
|
|
133
|
+
background-color: var(--g9-on-primary);
|
|
134
|
+
opacity: .85;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.g9-slider__marks {
|
|
138
|
+
height: 16px;
|
|
139
|
+
margin-top: 18px;
|
|
140
|
+
position: relative;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.g9-slider__mark {
|
|
144
|
+
justify-content: center;
|
|
145
|
+
width: 96px;
|
|
146
|
+
margin-left: -48px;
|
|
147
|
+
display: flex;
|
|
148
|
+
position: absolute;
|
|
149
|
+
top: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.g9-slider__mark-text {
|
|
153
|
+
text-align: center;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.g9-slider-field {
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
display: flex;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.g9-slider-field__head {
|
|
162
|
+
align-items: center;
|
|
163
|
+
column-gap: 8px;
|
|
164
|
+
padding: 0 16px;
|
|
165
|
+
display: flex;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.g9-slider-field__label {
|
|
169
|
+
min-width: 0;
|
|
170
|
+
font-size: 14px;
|
|
171
|
+
font-family: var(--g9-font-text);
|
|
172
|
+
color: var(--g9-text-primary);
|
|
173
|
+
flex: auto;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.g9-slider-field__value {
|
|
177
|
+
font-size: 14px;
|
|
178
|
+
font-family: var(--g9-font-text);
|
|
179
|
+
color: var(--g9-primary);
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.g9-slider-field__helper {
|
|
184
|
+
font-size: 12px;
|
|
185
|
+
font-family: var(--g9-font-text);
|
|
186
|
+
color: var(--g9-text-secondary);
|
|
187
|
+
padding: 0 16px;
|
|
188
|
+
}
|
|
189
|
+
|
|
121
190
|
.g9-step-slider {
|
|
122
191
|
flex-direction: column;
|
|
123
192
|
align-self: stretch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/range-slider/range-slider.css"],"names":[],"mappings":"AAAA;EACE,sBAAsB;EACtB,uBAAuB;EACvB,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;AACpB;;AAKA;EAFE,2BAA2B;EAC3B,iBAAiB;AACnB;;AAKA;EAFE,YAAY;AACd;;AAKA;EAFE,uBAAuB;EACvB,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,2CAA2C;EAC3C,kBAAkB;EAClB,OAAO;EACP,WAAW;EACX,kBAAkB;AACpB;;AAOA;EAJE,mCAAmC;EACnC,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAQA;EALE,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;AACX;;AASA;EANE,WAAW;EACX,YAAY;AACd;;AASA;EANE,mBAAmB;EACnB,mBAAmB;EACnB,+BAA+B;EAC/B,mCAAmC;EACnC,mBAAmB;EACnB,WAAW;EACX,YAAY;AACd;;AASA;EANE,iBAAiB;AACnB;;AASA;EANE,2CAA2C;EAC3C,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,QAAQ;AACV;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;AACrC;;AAWA;EARE,uBAAuB;EACvB,qBAAqB;EACrB,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,QAAQ;AACV;;AAWA;EARE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,+BAA+B;AACjC;;AAWA;EARE,mBAAmB;EACnB,8BAA8B;EAC9B,gBAAgB;EAChB,aAAa;AACf;;AAWA;EARE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAYA;EATE,sBAAsB;EACtB,mBAAmB;EACnB,WAAW;EACX,aAAa;AACf;;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/range-slider/range-slider.css"],"names":[],"mappings":"AAAA;EACE,sBAAsB;EACtB,uBAAuB;EACvB,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;AACpB;;AAKA;EAFE,2BAA2B;EAC3B,iBAAiB;AACnB;;AAKA;EAFE,YAAY;AACd;;AAKA;EAFE,uBAAuB;EACvB,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,2CAA2C;EAC3C,kBAAkB;EAClB,OAAO;EACP,WAAW;EACX,kBAAkB;AACpB;;AAOA;EAJE,mCAAmC;EACnC,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAQA;EALE,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;AACX;;AASA;EANE,WAAW;EACX,YAAY;AACd;;AASA;EANE,mBAAmB;EACnB,mBAAmB;EACnB,+BAA+B;EAC/B,mCAAmC;EACnC,mBAAmB;EACnB,WAAW;EACX,YAAY;AACd;;AASA;EANE,iBAAiB;AACnB;;AASA;EANE,2CAA2C;EAC3C,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,QAAQ;AACV;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;AACrC;;AAWA;EARE,uBAAuB;EACvB,qBAAqB;EACrB,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,QAAQ;AACV;;AAWA;EARE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,+BAA+B;AACjC;;AAWA;EARE,mBAAmB;EACnB,8BAA8B;EAC9B,gBAA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A8B;EAC9B,WAAW;EACX,eAAe;EACf,aAAa;AACf;;AAiBA;EAdE,mBAAmB;AACrB;;AAiBA;EAdE,2BAA2B;AAC7B;;AAiBA;EAdE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;AAChC;;AAiBA;EAdE,+BAA+B;EAC/B,gBAAgB;EAChB,oCAAoC;AACtC","sourcesContent":[".g9-slider {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding-left: 16px;\n padding-right: 16px;\n}\n\n/* MAUI G9RangeSliderDrawable with labels: the track's centre at SliderTrackY (52) of the 104 dp canvas — the room above\n is the drag tooltip's — and the end labels SliderLabelGap (18) under the thumb. Centring the column put the track at\n ~34 dp, 18 dp higher than MAUI's. */\n.g9-slider--labels {\n justify-content: flex-start;\n padding-top: 38px;\n}\n\n.g9-slider--disabled {\n opacity: 0.38;\n}\n\n.g9-slider__root {\n height: 28px;\n display: flex;\n justify-content: center;\n}\n\n/* lynx-ui SliderTrack: a 28 px flex row holding this view (the visible track) next to the fill and the thumbs, which\n position against the 28 px row. The track takes the row's width; the fill is the 8 px band at its centre. */\n.g9-slider__track {\n position: relative;\n flex: 1;\n height: 8px;\n border-radius: 4px;\n background-color: var(--g9-surface-variant);\n}\n\n.g9-slider__fill {\n position: absolute;\n top: 10px;\n left: 0px;\n right: 0px;\n height: 8px;\n border-radius: 4px;\n background-color: var(--g9-primary);\n}\n\n/* A `bands` stretch: the fill's band, under it. */\n.g9-slider__band {\n position: absolute;\n top: 10px;\n height: 8px;\n border-radius: 4px;\n}\n\n/* lynx-ui SliderThumb centres this view on the value (top 50 %, translate -50 %). */\n.g9-slider__thumb {\n width: 28px;\n height: 28px;\n}\n\n.g9-slider__thumb-dot {\n width: 28px;\n height: 28px;\n border-radius: 14px;\n border-width: 2.5px;\n border-style: solid;\n border-color: var(--g9-primary);\n background-color: var(--g9-surface);\n}\n\n.g9-slider__thumb-dot--active {\n border-width: 3px;\n}\n\n.g9-slider__tooltip {\n position: absolute;\n top: 4px;\n height: 26px;\n margin-left: -21px;\n min-width: 42px;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-inverse-surface);\n}\n\n.g9-slider__tooltip-text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-inverse-on-surface);\n}\n\n/* MAUI 1.4.9 ShowThumbValues: each value above its thumb, always — a 100 px box centred on the thumb, its text at the\n box's bottom 18 px above the thumb (track 52 − radius 14 − gap 18 − 18 = 2 from the top), 12 px TextSecondary. */\n.g9-slider__thumb-value {\n position: absolute;\n top: 2px;\n width: 100px;\n height: 18px;\n margin-left: -50px;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n}\n\n.g9-slider__thumb-value-text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-text-secondary);\n}\n\n.g9-slider__labels {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-top: 18px;\n}\n\n.g9-slider__label {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n/* `marks` (2.5.7): a 4 dp tick on the track's band at each point, on-primary over the chosen part. */\n.g9-slider__tick {\n position: absolute;\n top: 12px;\n width: 4px;\n height: 4px;\n margin-left: -2px;\n border-radius: 2px;\n background-color: var(--g9-on-surface-variant);\n opacity: 0.6;\n}\n\n.g9-slider__tick--on {\n background-color: var(--g9-on-primary);\n opacity: 0.85;\n}\n\n/* The marks' words, where the edge labels were: each in a 96 dp box centred on its point of the track's width. */\n.g9-slider__marks {\n position: relative;\n height: 16px;\n margin-top: 18px;\n}\n\n.g9-slider__mark {\n position: absolute;\n top: 0px;\n width: 96px;\n margin-left: -48px;\n display: flex;\n justify-content: center;\n}\n\n.g9-slider__mark-text {\n text-align: center;\n}\n\n/* `label` / `helperText` (2.5.7): the title row and the line under it, level with the track's ends. */\n.g9-slider-field {\n display: flex;\n flex-direction: column;\n}\n\n.g9-slider-field__head {\n display: flex;\n align-items: center;\n column-gap: 8px;\n padding: 0px 16px;\n}\n\n.g9-slider-field__label {\n flex: 1 1 auto;\n min-width: 0px;\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-primary);\n}\n\n.g9-slider-field__value {\n flex-shrink: 0;\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-primary);\n}\n\n.g9-slider-field__helper {\n padding: 0px 16px;\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n/* G9StepSlider: dots on a rail, the chosen one larger */\n.g9-step-slider {\n display: flex;\n flex-direction: column;\n align-self: stretch;\n width: 100%;\n}\n\n.g9-step-slider__row {\n position: relative;\n display: flex;\n width: 100%;\n height: 28px;\n align-items: center;\n}\n\n.g9-step-slider__row--ltr {\n flex-direction: row;\n}\n\n.g9-step-slider__row--rtl {\n flex-direction: row-reverse;\n}\n\n.g9-step-slider__rail {\n position: absolute;\n left: 11px;\n right: 11px;\n top: 11px;\n height: 6px;\n border-radius: 3px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-step-slider__seg {\n display: flex;\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n height: 28px;\n align-items: center;\n justify-content: center;\n}\n\n.g9-step-slider__dot {\n width: 14px;\n height: 14px;\n border-radius: 7px;\n background-color: var(--g9-outline-variant);\n transition: transform 140ms ease-out;\n}\n\n.g9-step-slider__dot--on {\n background-color: var(--g9-primary);\n}\n\n.g9-step-slider__dot--current {\n transform: scale(1.85);\n}\n\n.g9-step-slider__labels {\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin-top: 2px;\n}\n\n.g9-step-slider__labels--ltr {\n flex-direction: row;\n}\n\n.g9-step-slider__labels--rtl {\n flex-direction: row-reverse;\n}\n\n.g9-step-slider__label {\n font-size: 11px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-tertiary);\n}\n\n.g9-step-slider__label--current {\n font-weight: 700;\n color: var(--g9-text-secondary);\n font-family: var(--g9-font-text-700);\n}\n"],"sourceRoot":""}
|
|
@@ -59,6 +59,28 @@ export interface G9RangeSliderProps {
|
|
|
59
59
|
* it stops there — the stored part of a range is shown but not chosen again.
|
|
60
60
|
*/
|
|
61
61
|
readonly minimumStart?: number;
|
|
62
|
+
/** A title above the slider at the reading start (G9Hub, 2.5.7); the slider's spoken name unless `accessibilityLabel`. */
|
|
63
|
+
readonly label?: string;
|
|
64
|
+
/** The current value (or range) at the reading end of the `label` row. Default false. */
|
|
65
|
+
readonly showValueInLabel?: boolean;
|
|
66
|
+
/** A line under the slider (what the value means, a limit). */
|
|
67
|
+
readonly helperText?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The words of a value: the labels, the tooltip, the thumb values and the spoken value (`(v) => v + " km"`,
|
|
70
|
+
* «۵ بار»). Wins over `valueFormat`; return culture digits yourself.
|
|
71
|
+
*/
|
|
72
|
+
readonly formatValue?: (value: number) => string;
|
|
73
|
+
/**
|
|
74
|
+
* Points of the scale: a tick on the track at each, and its `label` under the track (in place of the min / max edge
|
|
75
|
+
* labels when any mark has one; shown only with `showLabels`).
|
|
76
|
+
*/
|
|
77
|
+
readonly marks?: readonly G9SliderMark[];
|
|
78
|
+
}
|
|
79
|
+
/** A point of a {@link G9RangeSlider}'s scale (`marks`). */
|
|
80
|
+
export interface G9SliderMark {
|
|
81
|
+
readonly value: number;
|
|
82
|
+
/** Words under the track at the point; none: a tick only. */
|
|
83
|
+
readonly label?: string;
|
|
62
84
|
}
|
|
63
85
|
/** A coloured stretch of a {@link G9RangeSlider}'s track (`bands`). */
|
|
64
86
|
export interface G9SliderBand {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range-slider.d.ts","sourceRoot":"","sources":["../../src/range-slider/range-slider.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAe,iBAAiB,EAAW,MAAM,+BAA+B,CAAC;AAExF,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,g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