@g9tm/lynxcontrols 2.5.7 → 2.5.8
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/G9AppearancePage.md +17 -0
- package/catalog/cards/G9Badge.md +1 -1
- package/catalog/cards/G9Button.md +2 -2
- package/catalog/cards/G9Card.md +1 -1
- package/catalog/cards/G9Chip.md +1 -1
- package/catalog/cards/G9ChipStrip.md +16 -0
- package/catalog/cards/G9CodeBlock.md +17 -0
- package/catalog/cards/G9CommandPalette.md +3 -1
- package/catalog/cards/G9ConnectionBanner.md +1 -1
- package/catalog/cards/G9ContrastPanel.md +15 -0
- package/catalog/cards/G9DashboardCustomizeSheet.md +17 -0
- package/catalog/cards/G9DashboardGrid.md +17 -0
- package/catalog/cards/G9DragList.md +4 -2
- package/catalog/cards/G9Editor.md +1 -1
- package/catalog/cards/G9ErrorBoundary.md +3 -2
- package/catalog/cards/G9Menu.md +1 -1
- package/catalog/cards/G9MenuList.md +2 -0
- package/catalog/cards/G9NotificationCenter.md +17 -0
- package/catalog/cards/G9NotificationCenterPanel.md +17 -0
- package/catalog/cards/G9PathNavigator.md +13 -0
- package/catalog/cards/G9PersonalThemeSheet.md +17 -0
- package/catalog/cards/G9Popover.md +1 -1
- package/catalog/cards/G9Provider.md +1 -1
- package/catalog/cards/G9ReaderSheet.md +17 -0
- package/catalog/cards/G9ReaderView.md +17 -0
- package/catalog/cards/G9SafeButton.md +2 -2
- package/catalog/cards/G9SearchEntry.md +1 -1
- package/catalog/cards/G9SecretValue.md +17 -0
- package/catalog/cards/G9ShortcutList.md +4 -0
- package/catalog/cards/G9ShortcutsSheet.md +3 -1
- package/catalog/cards/G9StatusPill.md +1 -1
- package/catalog/cards/G9Tag.md +1 -1
- package/catalog/cards/G9TextEntry.md +1 -1
- package/catalog/cards/G9VirtualList.md +1 -1
- package/catalog/cards/G9WallpaperSwatch.md +16 -0
- package/catalog/cards/G9WidgetSkeleton.md +9 -0
- package/catalog/cards/G9WidgetSlot.md +13 -0
- package/catalog/cards/PopupFrame.md +2 -2
- package/catalog/catalog.json +6947 -479
- package/catalog/index.md +18 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/appearance/appearance.css +264 -0
- package/dist/appearance/appearance.css.map +1 -0
- package/dist/appearance/appearance.d.ts +148 -0
- package/dist/appearance/appearance.d.ts.map +1 -0
- package/dist/appearance/appearance.jsx +604 -0
- package/dist/appearance/index.d.ts +2 -0
- package/dist/appearance/index.d.ts.map +1 -0
- package/dist/appearance/index.jsx +1 -0
- package/dist/base/control.d.ts +15 -0
- package/dist/base/control.d.ts.map +1 -1
- package/dist/base/control.jsx +13 -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/button/button.css +4 -0
- package/dist/button/button.css.map +1 -1
- package/dist/cascade/cascade.css +2 -0
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +46 -0
- package/dist/commands/commands.css.map +1 -1
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.jsx +2 -2
- package/dist/commands/keys.d.ts +15 -1
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.jsx +20 -1
- package/dist/commands/palette.d.ts +73 -7
- package/dist/commands/palette.d.ts.map +1 -1
- package/dist/commands/palette.jsx +174 -20
- package/dist/dashboard/dashboard.css +101 -0
- package/dist/dashboard/dashboard.css.map +1 -0
- package/dist/dashboard/dashboard.d.ts +73 -0
- package/dist/dashboard/dashboard.d.ts.map +1 -0
- package/dist/dashboard/dashboard.jsx +297 -0
- package/dist/dashboard/index.d.ts +3 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.jsx +2 -0
- package/dist/dashboard/model.d.ts +53 -0
- package/dist/dashboard/model.d.ts.map +1 -0
- package/dist/dashboard/model.jsx +76 -0
- package/dist/display/code.css +109 -0
- package/dist/display/code.css.map +1 -0
- package/dist/display/code.d.ts +43 -0
- package/dist/display/code.d.ts.map +1 -0
- package/dist/display/code.jsx +101 -0
- package/dist/display/extras.d.ts +7 -2
- package/dist/display/extras.d.ts.map +1 -1
- package/dist/display/extras.jsx +13 -4
- package/dist/display/index.d.ts +1 -0
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.jsx +1 -0
- package/dist/display/motion-figures.css +2 -0
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/motion-figures.d.ts.map +1 -1
- package/dist/display/motion-figures.jsx +14 -7
- package/dist/display/theme-preview.css +4 -0
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/fields/extra-entries.css +1 -0
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/extra-entries.d.ts +2 -0
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +3 -2
- package/dist/header/header.css +2 -0
- package/dist/header/header.css.map +1 -1
- package/dist/host/carry-contexts.d.ts.map +1 -1
- package/dist/host/carry-contexts.jsx +22 -8
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/layout.css +2 -0
- package/dist/layout/layout.css.map +1 -1
- package/dist/list/gestures.d.ts +39 -6
- package/dist/list/gestures.d.ts.map +1 -1
- package/dist/list/gestures.jsx +284 -89
- package/dist/list/index.d.ts +3 -2
- package/dist/list/index.d.ts.map +1 -1
- package/dist/list/index.jsx +2 -1
- package/dist/list/keyboard.d.ts +50 -0
- package/dist/list/keyboard.d.ts.map +1 -0
- package/dist/list/keyboard.jsx +117 -0
- package/dist/list/list.css +28 -5
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +3 -3
- package/dist/list/virtual-list.d.ts +27 -1
- package/dist/list/virtual-list.d.ts.map +1 -1
- package/dist/list/virtual-list.jsx +49 -4
- package/dist/notifications/index.d.ts +3 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.jsx +2 -0
- package/dist/notifications/model.d.ts +47 -0
- package/dist/notifications/model.d.ts.map +1 -0
- package/dist/notifications/model.jsx +51 -0
- package/dist/notifications/notification-center.d.ts +98 -0
- package/dist/notifications/notification-center.d.ts.map +1 -0
- package/dist/notifications/notification-center.jsx +424 -0
- package/dist/notifications/notifications.css +266 -0
- package/dist/notifications/notifications.css.map +1 -0
- package/dist/orb/orb.css +2 -0
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/pickers.css +15 -0
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -0
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/plus-button/plus-button.d.ts.map +1 -1
- package/dist/plus-button/plus-button.jsx +2 -1
- package/dist/popover/popover.css +23 -1
- package/dist/popover/popover.css.map +1 -1
- package/dist/popover/popover.d.ts +14 -0
- package/dist/popover/popover.d.ts.map +1 -1
- package/dist/popover/popover.jsx +73 -12
- package/dist/popover/position.d.ts +6 -2
- package/dist/popover/position.d.ts.map +1 -1
- package/dist/popover/position.jsx +15 -4
- package/dist/popup/popup.css +3 -0
- package/dist/popup/popup.css.map +1 -1
- package/dist/provider/provider.d.ts +6 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +22 -2
- package/dist/reader/index.d.ts +2 -0
- package/dist/reader/index.d.ts.map +1 -0
- package/dist/reader/index.jsx +1 -0
- package/dist/reader/reader.css +74 -0
- package/dist/reader/reader.css.map +1 -0
- package/dist/reader/reader.d.ts +76 -0
- package/dist/reader/reader.d.ts.map +1 -0
- package/dist/reader/reader.jsx +149 -0
- package/dist/route/index.d.ts +2 -0
- package/dist/route/index.d.ts.map +1 -1
- package/dist/route/index.jsx +2 -0
- package/dist/route/path-navigator.css +42 -0
- package/dist/route/path-navigator.css.map +1 -0
- package/dist/route/path-navigator.d.ts +25 -0
- package/dist/route/path-navigator.d.ts.map +1 -0
- package/dist/route/path-navigator.jsx +98 -0
- package/dist/route/path-router.d.ts +162 -0
- package/dist/route/path-router.d.ts.map +1 -0
- package/dist/route/path-router.jsx +327 -0
- package/dist/selection/selection.css +2 -0
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +9 -8
- package/dist/sheet/options.d.ts +6 -1
- package/dist/sheet/options.d.ts.map +1 -1
- package/dist/sheet/options.jsx +2 -1
- package/dist/sheet/panel-frame.d.ts.map +1 -1
- package/dist/sheet/panel-frame.jsx +5 -4
- package/dist/sheet/sizing.d.ts +3 -3
- package/dist/sheet/sizing.d.ts.map +1 -1
- package/dist/sheet/sizing.jsx +1 -0
- package/dist/shell/shell.css +12 -1
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +7 -5
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +9 -6
- package/dist/swipe/swipe.css +2 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/flat.jsx +5 -4
- package/dist/tab-bar/tab-bar.css +2 -0
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/service.d.ts.map +1 -1
- package/dist/toast/service.jsx +18 -5
- package/dist/toast/store.d.ts +22 -0
- package/dist/toast/store.d.ts.map +1 -1
- package/dist/toast/store.jsx +35 -3
- package/dist/toast/toast.css +22 -0
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/choice.css +27 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +36 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +77 -13
- package/dist/toggle/index.d.ts +1 -1
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/toggle/index.jsx +1 -1
- package/package.json +22 -2
- package/skills/g9-lynx-app/references/catalog-index.md +22 -6
- package/skills/g9-lynx-app/references/components/appearance.md +70 -0
- package/skills/g9-lynx-app/references/components/barcode.md +1 -1
- package/skills/g9-lynx-app/references/components/button.md +4 -4
- package/skills/g9-lynx-app/references/components/calendar-1.md +205 -0
- package/skills/g9-lynx-app/references/components/calendar-2.md +36 -0
- package/skills/g9-lynx-app/references/components/canvas.md +33 -0
- package/skills/g9-lynx-app/references/components/chat-1.md +199 -0
- package/skills/g9-lynx-app/references/components/chat-2.md +119 -0
- package/skills/g9-lynx-app/references/components/commands.md +10 -2
- package/skills/g9-lynx-app/references/components/dashboard.md +61 -0
- package/skills/g9-lynx-app/references/components/display-1.md +22 -21
- package/skills/g9-lynx-app/references/components/display-2.md +36 -39
- package/skills/g9-lynx-app/references/components/display-3.md +41 -2
- package/skills/g9-lynx-app/references/components/fields.md +3 -3
- package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
- package/skills/g9-lynx-app/references/components/list.md +5 -3
- package/skills/g9-lynx-app/references/components/media-1.md +203 -0
- package/skills/g9-lynx-app/references/components/media-2.md +66 -0
- package/skills/g9-lynx-app/references/components/notifications.md +37 -0
- package/skills/g9-lynx-app/references/components/popover.md +4 -2
- package/skills/g9-lynx-app/references/components/popup.md +2 -2
- package/skills/g9-lynx-app/references/components/projects.md +73 -0
- package/skills/g9-lynx-app/references/components/provider.md +1 -1
- package/skills/g9-lynx-app/references/components/reader.md +37 -0
- package/skills/g9-lynx-app/references/components/richtext.md +54 -0
- package/skills/g9-lynx-app/references/components/route.md +14 -0
- package/skills/g9-lynx-app/references/components/shell.md +1 -1
- package/skills/g9-lynx-app/references/components/toggle.md +18 -1
- package/skills/g9-lynx-app/references/components/calendar.md +0 -128
- package/skills/g9-lynx-app/references/components/chat.md +0 -98
- package/skills/g9-lynx-app/references/components/media.md +0 -115
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://./src/notifications/notifications.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,aAAa;EACb,aAAa;AACf;;AAGA;EAAE,mBAAmB;EACnB,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a;AACf;;AAQA;EALE,6CAA6C;AAC/C;;AAQA;EALE,OAAO;EACP,uBAAuB;EACvB,gBAAgB;EAChB,YAAY;EACZ,2BAA2B;EAC3B,aAAa;AACf;;AAQA;EALE,6CAA6C;EAC7C,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAQA;EALE,6CAA6C;AAC/C;;AAQA;EALE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,YAAY;EACZ,aAAa;AACf;;AAQA;EALE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAQA;EALE,gBAAgB;EAChB,oCAAoC;EACpC,6BAA6B;AAC/B;;AAQA;EALE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;AAChC;;AAQA;EALE,mCAAmC;EACnC,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,eAAe;AACjB;;AAQA;EALE,mBAAmB;EACnB,eAAe;EACf,qBAAqB;EACrB,aAAa;AACf;;AAQA;EALE,eAAe;EACf,gBAAgB;EAChB,oCAAoC;EACpC,wBAAwB;AAC1B;;AAQA;EALE,sBAAsB;EACtB,mBAAmB;EACnB,YAAY;EACZ,kBAAkB;EAClB,aAAa;AACf;;AAQA;EALE,eAAe;EACf,gBAAgB;EAChB,oCAAoC;EACpC,6BAA6B;EAC7B,kBAAkB;AACpB;;AAQA;EALE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;EAC9B,kBAAkB;AACpB;;AAQA;EALE,uBAAuB;EACvB,qBAAqB;EACrB,mCAAmC;EACnC,sBAAsB;EACtB,aAAa;AACf;;AAQA;EALE,mBAAmB;EACnB,eAAe;EACf,kBAAkB;EAClB,aAAa;AACf;;AAQA;EALE,mBAAmB;EACnB,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;AACf;;AAQA;EALE,kBAAkB;EAClB,gBAAgB;AAClB","sourcesContent":["/* G9NotificationCenter (2.5.8). */\n.g9-ntf {\n display: flex;\n flex-direction: column;\n min-height: 0px;\n}\n\n.g9-ntf__header {\n display: flex;\n align-items: center;\n padding: 12px 8px 8px 16px;\n}\n\n.g9-ntf__title {\n flex: 1;\n font-size: 14px;\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n color: var(--g9-text-primary);\n}\n\n.g9-ntf__filters-row {\n display: flex;\n align-items: center;\n}\n\n.g9-ntf__filters {\n flex: 1;\n min-width: 0px;\n height: 40px;\n}\n\n.g9-ntf__chips {\n display: flex;\n align-items: center;\n column-gap: 6px;\n padding-left: 16px;\n padding-right: 16px;\n}\n\n.g9-ntf__chip {\n display: flex;\n align-items: center;\n column-gap: 4px;\n height: 32px;\n padding-left: 12px;\n padding-right: 12px;\n border-radius: 16px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-ntf__chip--on {\n border-color: rgba(0, 0, 0, 0);\n background-color: var(--g9-primary-container);\n}\n\n.g9-ntf__chip-text {\n font-size: 12px;\n font-weight: 600;\n font-family: var(--g9-font-text-600);\n color: var(--g9-text-secondary);\n}\n\n.g9-ntf__chip-text--on {\n color: var(--g9-on-primary-container);\n}\n\n.g9-ntf__chip-count--on {\n color: var(--g9-on-primary-container);\n}\n\n.g9-ntf__chip-count {\n font-size: 11px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n.g9-ntf__extra {\n display: flex;\n flex-direction: column;\n padding: 12px 16px;\n background-color: var(--g9-surface-container);\n}\n\n.g9-ntf__list {\n flex: 1;\n min-height: 0px;\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: var(--g9-divider);\n}\n\n.g9-ntf__group {\n display: flex;\n flex-direction: column;\n}\n\n.g9-ntf__group--line {\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: var(--g9-divider);\n}\n\n.g9-ntf__group-head {\n display: flex;\n align-items: center;\n column-gap: 6px;\n padding: 10px 8px 0px 16px;\n}\n\n.g9-ntf__group-title {\n flex: 1;\n min-width: 0px;\n font-size: 12px;\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n color: var(--g9-text-secondary);\n}\n\n.g9-ntf__badge {\n padding-left: 6px;\n padding-right: 6px;\n border-radius: 8px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-ntf__badge-text {\n font-size: 11px;\n font-weight: 700;\n font-family: var(--g9-font-text-700);\n color: var(--g9-on-primary-container);\n}\n\n.g9-ntf__entry {\n display: flex;\n align-items: flex-start;\n /* the whole width: it covers the swipe actions behind it (an app whose default display is flex would size it to its content) */\n width: 100%;\n padding-left: 4px;\n padding-right: 4px;\n background-color: var(--g9-surface);\n}\n\n.g9-ntf__entry--active {\n background-color: var(--g9-primary-container);\n}\n\n.g9-ntf__body {\n display: flex;\n align-items: flex-start;\n flex: 1;\n min-width: 0px;\n column-gap: 12px;\n padding: 10px 4px 10px 12px;\n}\n\n.g9-ntf__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 16px;\n background-color: var(--g9-surface-container);\n}\n\n.g9-ntf__icon--unread {\n background-color: var(--g9-primary-container);\n}\n\n.g9-ntf__texts {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n row-gap: 2px;\n}\n\n.g9-ntf__text {\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n.g9-ntf__text--unread {\n font-weight: 500;\n font-family: var(--g9-font-text-500);\n color: var(--g9-text-primary);\n}\n\n.g9-ntf__time {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-tertiary);\n}\n\n.g9-ntf__dot {\n width: 8px;\n height: 8px;\n margin-top: 8px;\n border-radius: 4px;\n background-color: var(--g9-primary);\n}\n\n.g9-ntf__toggle {\n display: flex;\n align-items: center;\n column-gap: 4px;\n padding: 4px 16px 8px 16px;\n}\n\n.g9-ntf__toggle-text {\n font-size: 12px;\n font-weight: 600;\n font-family: var(--g9-font-text-600);\n color: var(--g9-primary);\n}\n\n.g9-ntf__empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: 4px;\n padding: 40px 24px;\n}\n\n.g9-ntf__empty-title {\n font-size: 14px;\n font-weight: 600;\n font-family: var(--g9-font-text-600);\n color: var(--g9-text-primary);\n text-align: center;\n}\n\n.g9-ntf__empty-hint {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-tertiary);\n text-align: center;\n}\n\n.g9-ntf__snoozed {\n display: flex;\n flex-direction: column;\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: var(--g9-divider);\n}\n\n.g9-ntf__snoozed-head {\n display: flex;\n align-items: center;\n column-gap: 8px;\n padding: 10px 16px;\n}\n\n.g9-ntf__snoozed-row {\n display: flex;\n align-items: center;\n column-gap: 12px;\n padding: 8px 16px;\n}\n\n.g9-ntf__unsnooze {\n padding: 4px 8px;\n border-radius: 6px;\n}\n"],"sourceRoot":""}
|
package/dist/orb/orb.css
CHANGED
package/dist/orb/orb.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/orb/orb.css"],"names":[],"mappings":"AACA;EAAE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,iBAAiB;AACnB;;AAGA;EAAE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAIA;EADE,oBAAoB;EACpB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAIA;EADE,YAAY;EACZ,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAIA;EADE,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,SAAS;AACX;;AAKA;EAFE,kDAAkD;EAClD,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAKA;EAFE,YAAY;AACd;;AAKA;EAFE,YAAY;EACZ,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAKA;EAFE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;EACnB,gBAAgB;AAClB","sourcesContent":["/* G9FloatingOrb: positioned by its transform only (one compositor property while it settles or is dragged). */\n.g9-orb {\n position: absolute;\n left: 0;\n top: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: visible;\n}\n\n.g9-orb__face {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* The hold's liquid, clipped to the disc; it rises by its transform (a CSS transition, no frame loop). */\n.g9-orb__liquid-mask {\n position: absolute;\n overflow: hidden;\n display: flex;\n pointer-events: none;\n}\n\n.g9-orb__liquid {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n opacity: 0.82;\n}\n\n.g9-orb__accessory {\n position: absolute;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n}\n\n/* G9HoldButton: neutral at rest; a light fill grows from the leading edge only under a finger. */\n.g9-hold-button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n background-color: var(--g9-surface-container-high);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-hold-button--disabled {\n opacity: 0.38;\n}\n\n.g9-hold-button__fill {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n opacity: 0.28;\n}\n\n.g9-hold-button__text {\n font-size: 15px;\n font-family: var(--g9-font-text-600);\n font-weight: 600;\n color: var(--g9-on-surface);\n padding-left: 16px;\n padding-right: 16px;\n text-align: center;\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://./src/orb/orb.css"],"names":[],"mappings":"AACA;EAAE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,iBAAiB;AACnB;;AAGA;EAAE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAIA;EADE,oBAAoB;EACpB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAIA;EADE,YAAY;EACZ,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAIA;EADE,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,SAAS;AACX;;AAKA;EAFE,kDAAkD;EAClD,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAKA;EAFE,YAAY;AACd;;AAKA;EAFE,YAAY;EACZ,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAKA;EAFE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,kBAAkB;EAClB,uBAAuB;EACvB,kBAAkB;EAClB,mBAAmB;EACnB,gBAAgB;EAChB,gBAAgB;AAClB","sourcesContent":["/* G9FloatingOrb: positioned by its transform only (one compositor property while it settles or is dragged). */\n.g9-orb {\n position: absolute;\n left: 0;\n top: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: visible;\n}\n\n.g9-orb__face {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* The hold's liquid, clipped to the disc; it rises by its transform (a CSS transition, no frame loop). */\n.g9-orb__liquid-mask {\n position: absolute;\n overflow: hidden;\n display: flex;\n pointer-events: none;\n}\n\n.g9-orb__liquid {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n opacity: 0.82;\n}\n\n.g9-orb__accessory {\n position: absolute;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n}\n\n/* G9HoldButton: neutral at rest; a light fill grows from the leading edge only under a finger. */\n.g9-hold-button {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n background-color: var(--g9-surface-container-high);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-hold-button--disabled {\n opacity: 0.38;\n}\n\n.g9-hold-button__fill {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n opacity: 0.28;\n}\n\n.g9-hold-button__text {\n font-size: 15px;\n font-family: var(--g9-font-text-600);\n font-weight: 600;\n color: var(--g9-on-surface);\n padding-left: 16px;\n padding-right: 16px;\n text-align: center;\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"],"sourceRoot":""}
|
package/dist/pickers/pickers.css
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
.g9-picker__value {
|
|
2
2
|
flex-direction: row;
|
|
3
3
|
align-items: center;
|
|
4
|
+
min-width: 0;
|
|
4
5
|
height: 100%;
|
|
5
6
|
display: flex;
|
|
7
|
+
overflow: hidden;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
.g9-picker__text {
|
|
9
11
|
font-size: 15px;
|
|
10
12
|
font-family: var(--g9-font-text);
|
|
11
13
|
color: var(--g9-text-primary);
|
|
14
|
+
text-overflow: ellipsis;
|
|
12
15
|
flex-shrink: 1;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
overflow: hidden;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
.g9-picker__text--placeholder {
|
|
@@ -114,7 +119,9 @@
|
|
|
114
119
|
font-size: 13px;
|
|
115
120
|
font-family: var(--g9-font-text-700);
|
|
116
121
|
color: var(--g9-on-primary);
|
|
122
|
+
text-overflow: ellipsis;
|
|
117
123
|
font-weight: 700;
|
|
124
|
+
overflow: hidden;
|
|
118
125
|
}
|
|
119
126
|
|
|
120
127
|
.g9-combo__chip--more .g9-combo__chip-text {
|
|
@@ -140,8 +147,10 @@
|
|
|
140
147
|
font-size: 15px;
|
|
141
148
|
font-family: var(--g9-font-text-700);
|
|
142
149
|
color: var(--g9-text-primary);
|
|
150
|
+
text-overflow: ellipsis;
|
|
143
151
|
flex: 1;
|
|
144
152
|
font-weight: 700;
|
|
153
|
+
overflow: hidden;
|
|
145
154
|
}
|
|
146
155
|
|
|
147
156
|
.g9-picker-sheet__preview {
|
|
@@ -149,8 +158,10 @@
|
|
|
149
158
|
font-size: 13px;
|
|
150
159
|
font-family: var(--g9-font-text-700);
|
|
151
160
|
color: var(--g9-primary);
|
|
161
|
+
text-overflow: ellipsis;
|
|
152
162
|
padding: 4px 16px 8px;
|
|
153
163
|
font-weight: 700;
|
|
164
|
+
overflow: hidden;
|
|
154
165
|
}
|
|
155
166
|
|
|
156
167
|
.g9-picker-sheet__today {
|
|
@@ -196,8 +207,10 @@
|
|
|
196
207
|
font-size: 10px;
|
|
197
208
|
font-family: var(--g9-font-text-700);
|
|
198
209
|
color: var(--g9-text-tertiary);
|
|
210
|
+
text-overflow: ellipsis;
|
|
199
211
|
margin-bottom: 4px;
|
|
200
212
|
font-weight: 700;
|
|
213
|
+
overflow: hidden;
|
|
201
214
|
}
|
|
202
215
|
|
|
203
216
|
.g9-wheel__viewport {
|
|
@@ -232,6 +245,8 @@
|
|
|
232
245
|
font-size: 16px;
|
|
233
246
|
font-family: var(--g9-font-text);
|
|
234
247
|
color: var(--g9-text-tertiary);
|
|
248
|
+
text-overflow: ellipsis;
|
|
249
|
+
overflow: hidden;
|
|
235
250
|
}
|
|
236
251
|
|
|
237
252
|
.g9-wheel__row--selected .g9-wheel__text {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/pickers/pickers.css"],"names":[],"mappings":"AAAA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,aAAa;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/pickers/pickers.css"],"names":[],"mappings":"AAAA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;EAC7B,uBAAuB;EACvB,cAAc;EACd,YAAY;EACZ,gBAAgB;AAClB;;AAIA;EADE,8BAA8B;EAC9B,gCAAgC;AAClC;;AAKA;EAFE,iBAAiB;AACnB;;AAKA;EAFE,gBAAgB;EAChB,eAAe;AACjB;;AAKA;EAFE,iBAAiB;EACjB,aAAa;AACf;;AAKA;EAFE,gBAAgB;EAChB,eAAe;AACjB;;AAKA;EAFE,iBAAiB;AACnB;;AAKA;EAFE,gBAAgB;EAChB,eAAe;AACjB;;AAKA;EAFE,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,iDAAiD;EACjD,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;EAC7B,uBAAuB;AACzB;;AAMA;EAHE,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,mBAAmB;EACnB,mBAAmB;EACnB,aAAa;AACf;;AAMA;EAHE,mCAAmC;EACnC,kBAAkB;EAClB,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;AACf;;AAMA;EAHE,gBAAgB;EAChB,eAAe;AACjB;;AAMA;EAHE,qCAAqC;EACrC,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;AACzC;;AAMA;EAHE,eAA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;EACnB,aAAa;AACf;;AAiBA;EAdE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;EAC9B,uBAAuB;EACvB,gBAAgB;AAClB;;AAkBA;EAfE,eAAe;EACf,oCAAoC;EACpC,6BAA6B;EAC7B,gBAAgB;AAClB","sourcesContent":[".g9-picker__value {\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 100%;\n min-width: 0px;\n overflow: hidden;\n}\n\n.g9-picker__text {\n font-size: 15px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-primary);\n flex-shrink: 1;\n /* one line with «…» on Android too: a text-maxline text there drew its other lines out of the box (a Persian zone\n name with a Latin one in brackets wrapped over the outline; G9Hub, A21s, 2.5.8) */\n min-width: 0px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.g9-picker__text--placeholder {\n color: var(--g9-text-tertiary);\n font-family: var(--g9-font-text);\n}\n\n/* Gap after the swatch on the reading side (logical margins are dropped by the Lynx encoder, specs/02 §7). */\n.g9-picker__swatch {\n margin-right: 8px;\n}\n\n.g9-dir-rtl .g9-picker__swatch {\n margin-right: 0px;\n margin-left: 8px;\n}\n\n.g9-picker__icon {\n display: flex;\n margin-right: 8px;\n}\n\n.g9-dir-rtl .g9-picker__icon {\n margin-right: 0px;\n margin-left: 8px;\n}\n\n.g9-combo__chip .g9-picker__icon {\n margin-right: 6px;\n}\n\n.g9-dir-rtl .g9-combo__chip .g9-picker__icon {\n margin-right: 0px;\n margin-left: 6px;\n}\n\n.g9-combo__value {\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 100%;\n}\n\n/* MAUI 1.4.10 ChipStyle.Tonal: a light pill per chosen item with its own close mark. */\n.g9-combo__tonal {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 8px;\n height: 34px;\n border-radius: 17px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface-container-low);\n}\n\n.g9-combo__tonal-text {\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-primary);\n text-overflow: ellipsis;\n}\n\n.g9-combo__tonal-close {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n}\n\n.g9-combo__chips {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.g9-combo__chip {\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 28px;\n padding-left: 9px;\n padding-right: 9px;\n margin-right: 6px;\n border-radius: 6px;\n background-color: var(--g9-primary);\n}\n\n.g9-dir-rtl .g9-combo__chip {\n margin-right: 0px;\n margin-left: 6px;\n}\n\n.g9-combo__chip--more {\n background: var(--g9-surface-variant);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-combo__chip-text {\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary);\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-combo__chip--more .g9-combo__chip-text {\n color: var(--g9-text-secondary);\n}\n\n.g9-picker-sheet {\n display: flex;\n flex-direction: column;\n padding-bottom: 10px;\n background-color: var(--g9-surface);\n}\n\n.g9-picker-sheet__header {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 10px 16px;\n}\n\n.g9-picker-sheet__title {\n flex: 1;\n text-align: center;\n font-size: 15px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-primary);\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/* MAUI: the live preview 13 bold Primary, Padding (16, 4, 16, 8). */\n.g9-picker-sheet__preview {\n text-align: center;\n font-size: 13px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-primary);\n padding: 4px 16px 8px 16px;\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/* Colours inline (Primary at 8 % / 30 %). */\n.g9-picker-sheet__today {\n align-self: center;\n padding: 6px 12px;\n column-gap: 6px;\n border-radius: 16px;\n border-width: 1px;\n border-style: solid;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 2px 0px 6px 0px;\n}\n\n.g9-picker-sheet__today-text {\n font-size: 12px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-primary);\n}\n\n.g9-picker-sheet__wheels {\n display: flex;\n flex-direction: row;\n padding-left: 8px;\n padding-right: 8px;\n}\n\n/* Mirrored explicitly; the row's own direction stays ltr so an engine that honours `direction` does not reverse it\n again (Lynxtron ignores `direction`, E22). */\n.g9-picker-sheet__wheels.g9-dir-rtl {\n direction: ltr;\n flex-direction: row-reverse;\n}\n\n.g9-wheel {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n\n/* MAUI DrumLabelFontSize 10, bold, TextTertiary. */\n.g9-wheel__label {\n text-align: center;\n font-size: 10px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-tertiary);\n margin-bottom: 4px;\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-wheel__viewport {\n position: relative;\n overflow: hidden;\n}\n\n/* Colours set inline from the palette (Primary at 6 % / 55 %): CSS cannot take an alpha off a colour variable. */\n.g9-wheel__band {\n position: absolute;\n left: 8px;\n right: 8px;\n border-radius: 12px;\n border-width: 1.2px;\n border-style: solid;\n}\n\n.g9-wheel__fade {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n}\n\n.g9-wheel__row {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* MAUI G9DrumColumn.Apply: 16 TextTertiary; the selected row 17 bold TextPrimary. */\n.g9-wheel__text {\n font-size: 16px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-tertiary);\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-wheel__row--selected .g9-wheel__text {\n font-size: 17px;\n font-family: var(--g9-font-text-700);\n color: var(--g9-text-primary);\n font-weight: 700;\n}\n"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/plus-button/plus-button.css"],"names":[],"mappings":"AACA;EAAE,kBAAkB;EAClB,iBAAiB;AACnB;;AAGA;EAAE,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,iBAAiB;AACnB;;AAGA;EAAE,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,YAAY;AACd;;AAGA;EAAE,mCAAmC;EACnC,0CAA0C;EAC1C,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,gBAAgB;AAClB;;AAGA;EAAE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,gBAAgB;AAClB;;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/plus-button/plus-button.css"],"names":[],"mappings":"AACA;EAAE,kBAAkB;EAClB,iBAAiB;AACnB;;AAGA;EAAE,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,iBAAiB;AACnB;;AAGA;EAAE,mBAAmB;EACnB,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,YAAY;AACd;;AAGA;EAAE,mCAAmC;EACnC,0CAA0C;EAC1C,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,gBAAgB;AAClB;;AAGA;EAAE,eAAe;EACf,oCAAoC;EACpC,2BAA2B;EAC3B,uBAAuB;EACvB,gBAAgB;EAChB,gBAAgB;AAClB;;AAIA;EADE,0CAA0C;EAC1C,mCAAmC;EACnC,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,cAAc;EACd,aAAa;AACf;;AAIA;EADE,mCAAmC;EACnC,4CAA4C;EAC5C,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,SAAS;AACX;;AAIA;EADE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf","sourcesContent":["/* G9PlusButton (MAUI G9PlusButton + G9G9PlusButtonItemView): a round add button unfolding labelled actions. */\n.g9-plus-button {\n position: relative;\n overflow: visible;\n}\n\n.g9-plus-button__items {\n position: absolute;\n bottom: 0;\n width: 179px;\n height: 69px;\n overflow: visible;\n}\n\n.g9-plus-button__item {\n position: absolute;\n bottom: 11px;\n width: 179px;\n height: 46px;\n display: flex;\n align-items: center;\n}\n\n.g9-plus-button__pill {\n position: absolute;\n top: 4px;\n bottom: 4px;\n display: flex;\n align-items: center;\n overflow: hidden;\n background-color: var(--g9-primary);\n border: 1px solid var(--g9-primary-border);\n}\n\n.g9-plus-button__label {\n font-size: 16px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-on-primary);\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-plus-button__item-icon {\n padding: 2.9px;\n border-radius: 99px;\n border: 5px solid var(--g9-primary-border);\n background-color: var(--g9-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-plus-button__main {\n position: absolute;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-primary);\n border: 6.9px solid var(--g9-primary-border);\n}\n\n.g9-plus-button__main-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plus-button.d.ts","sourceRoot":"","sources":["../../src/plus-button/plus-button.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAKnE,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAk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ticalOffset * (i + 1) : 0}px)`,
|
|
114
114
|
transition: `transform ${s.slide.duration}ms ${CUBIC_OUT} ${s.slide.delay}ms`,
|
|
115
|
-
flexDirection: rtl ? 'row-reverse' : 'row'
|
|
115
|
+
flexDirection: rtl ? 'row-reverse' : 'row',
|
|
116
|
+
direction: 'ltr'
|
|
116
117
|
}} accessibility-element={expanded} accessibility-traits="button" accessibility-label={item.text} bindtap={expanded ? ()=>select(item) : void 0}>
|
|
117
118
|
<view className="g9-plus-button__pill" style={{
|
|
118
119
|
width: `${expanded ? timing.textBorderTargetWidth : 0}px`,
|
package/dist/popover/popover.css
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
.g9-popover-layer
|
|
1
|
+
.g9-popover-layer {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 0;
|
|
4
|
+
bottom: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.g9-popover-backdrop {
|
|
10
|
+
pointer-events: auto;
|
|
2
11
|
position: absolute;
|
|
3
12
|
top: 0;
|
|
4
13
|
bottom: 0;
|
|
@@ -12,6 +21,7 @@
|
|
|
12
21
|
border-style: solid;
|
|
13
22
|
border-width: 1px;
|
|
14
23
|
border-color: var(--g9-outline-variant);
|
|
24
|
+
pointer-events: auto;
|
|
15
25
|
border-radius: 14px;
|
|
16
26
|
flex-direction: column;
|
|
17
27
|
min-width: 160px;
|
|
@@ -98,6 +108,7 @@
|
|
|
98
108
|
|
|
99
109
|
.g9-action-sheet__scrim {
|
|
100
110
|
background-color: var(--g9-scrim-light);
|
|
111
|
+
pointer-events: auto;
|
|
101
112
|
animation: .18s ease-out g9-scrim-in;
|
|
102
113
|
position: absolute;
|
|
103
114
|
top: 0;
|
|
@@ -118,6 +129,7 @@
|
|
|
118
129
|
|
|
119
130
|
.g9-action-sheet {
|
|
120
131
|
background-color: var(--g9-surface);
|
|
132
|
+
pointer-events: auto;
|
|
121
133
|
border-radius: 22px;
|
|
122
134
|
flex-direction: column;
|
|
123
135
|
max-height: 80%;
|
|
@@ -180,9 +192,19 @@
|
|
|
180
192
|
}
|
|
181
193
|
|
|
182
194
|
.g9-context-menu {
|
|
195
|
+
pointer-events: auto;
|
|
183
196
|
flex-direction: column;
|
|
184
197
|
display: flex;
|
|
185
198
|
}
|
|
186
199
|
|
|
200
|
+
.g9-menu-item__label--back {
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
font-family: var(--g9-font-text-600);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.g9-menu-item--active {
|
|
206
|
+
background-color: var(--g9-default-pressed);
|
|
207
|
+
}
|
|
208
|
+
|
|
187
209
|
|
|
188
210
|
/*# sourceMappingURL=popover.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/popover/popover.css"],"names":[],"mappings":"AACA;EAAE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/popover/popover.css"],"names":[],"mappings":"AACA;EAAE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAGA;EAAE,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAIA;EADE,UAAU;EACV,mCAAmC;EACnC,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,oBAAoB;EACpB,mBAAmB;EACnB,sBAAsB;EACtB,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,gBAAgB;AAClB;;AAKA;EAFE,UAAU;EACV,uDAAuD;AACzD;;AAKA;EAFE;IACE,UAAU;IACV,qBAAqB;EACvB;;EAEA;IACE,UAAU;IACV,mBAAmB;EACrB;AACF;;AAIA;EADE,sBAAsB;EACtB,aAAa;AACf;;AAIA;EADE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAIA;E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B,aAAa;AACf;;AAMA;EAHE,gBAAgB;EAChB,oCAAoC;AACtC;;AAOA;EAJE,2CAA2C;AAC7C","sourcesContent":["/* G9Popover, G9MenuList, G9ActionSheet, G9ContextMenu. Motion: transform + opacity only. */\n.g9-popover-layer {\n position: absolute;\n left: 0px;\n top: 0px;\n right: 0px;\n bottom: 0px;\n}\n\n.g9-popover-backdrop {\n position: absolute;\n left: 0px;\n top: 0px;\n right: 0px;\n bottom: 0px;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-popover {\n display: flex;\n flex-direction: column;\n position: absolute;\n opacity: 0;\n min-width: 160px;\n border-radius: 14px;\n background-color: var(--g9-surface);\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n overflow: hidden;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-popover--shown {\n opacity: 1;\n animation: g9-popover-in 140ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n@keyframes g9-popover-in {\n from {\n opacity: 0;\n transform: scale(0.96);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n.g9-popover__scroll {\n display: flex;\n flex-direction: column;\n}\n\n.g9-menu-list {\n display: flex;\n flex-direction: column;\n padding: 6px 0px;\n}\n\n.g9-menu-list__group {\n display: flex;\n flex-direction: column;\n}\n\n.g9-menu-list__separator {\n height: 1px;\n margin: 6px 0px;\n background-color: var(--g9-divider);\n}\n\n.g9-menu-item {\n display: flex;\n align-items: center;\n padding: 0px 14px;\n column-gap: 12px;\n}\n\n.g9-menu-item--disabled {\n opacity: 0.38;\n}\n\n.g9-menu-item__text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-menu-item__label {\n font-size: 14px;\n font-family: var(--g9-font-text);\n line-height: 22px;\n color: var(--g9-text-primary);\n}\n\n.g9-menu-item__label--danger {\n color: var(--g9-error);\n font-family: var(--g9-font-text);\n}\n\n.g9-menu-item__description {\n font-size: 12px;\n font-family: var(--g9-font-text);\n line-height: 18px;\n color: var(--g9-text-secondary);\n}\n\n.g9-action-sheet__scrim {\n position: absolute;\n left: 0px;\n top: 0px;\n right: 0px;\n bottom: 0px;\n background-color: var(--g9-scrim-light);\n animation: g9-scrim-in 180ms ease-out;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n@keyframes g9-scrim-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.g9-action-sheet {\n display: flex;\n flex-direction: column;\n position: absolute;\n left: 8px;\n right: 8px;\n bottom: 8px;\n max-height: 80%;\n padding-bottom: 8px;\n border-radius: 22px;\n background-color: var(--g9-surface);\n animation: g9-action-sheet-in 260ms cubic-bezier(0.32, 0.72, 0, 1);\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n@keyframes g9-action-sheet-in {\n from {\n transform: translateY(110%);\n }\n to {\n transform: translateY(0px);\n }\n}\n\n.g9-action-sheet__grab {\n width: 36px;\n height: 4px;\n margin: 8px 0px 4px 0px;\n align-self: center;\n border-radius: 2px;\n background-color: var(--g9-outline-variant);\n}\n\n.g9-action-sheet__title {\n padding: 6px 18px 4px 18px;\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-action-sheet__body {\n display: flex;\n flex-direction: column;\n}\n\n.g9-action-sheet__cancel {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 52px;\n margin: 6px 8px 0px 8px;\n border-radius: 14px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-action-sheet__cancel-text {\n font-size: 15px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n color: var(--g9-text-primary);\n}\n\n.g9-context-menu {\n display: flex;\n flex-direction: column;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n/* A submenu's back row (2.5.8): the parent entry's label, bold. */\n.g9-menu-item__label--back {\n font-weight: 600;\n font-family: var(--g9-font-text-600);\n}\n\n/* The keyboard's active entry (2.5.8). */\n.g9-menu-item--active {\n background-color: var(--g9-default-pressed);\n}\n"],"sourceRoot":""}
|
|
@@ -86,6 +86,11 @@ export interface G9MenuItem {
|
|
|
86
86
|
readonly description?: string;
|
|
87
87
|
/** A divider before this item. */
|
|
88
88
|
readonly separatorBefore?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* A submenu (G9Hub: «mute for…», «delete for me / for everyone»): pressing this entry shows these in its place, under
|
|
91
|
+
* a back row, and closes nothing; the menu's `onSelect` hears the chosen sub-entry's key (2.5.8).
|
|
92
|
+
*/
|
|
93
|
+
readonly items?: readonly G9MenuItem[];
|
|
89
94
|
}
|
|
90
95
|
/** Props of {@link G9MenuList}. */
|
|
91
96
|
export interface G9MenuListProps {
|
|
@@ -94,7 +99,16 @@ export interface G9MenuListProps {
|
|
|
94
99
|
readonly id?: string;
|
|
95
100
|
/** `'popover'` compact rows, `'sheet'` 52 dp rows for thumbs. */
|
|
96
101
|
readonly density?: 'popover' | 'sheet';
|
|
102
|
+
/** What the back row of a submenu says (the app's language). Default the strings table's `back`. */
|
|
103
|
+
readonly backLabel?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Arrows / J K move an active entry, Enter takes it, a letter jumps to it, Escape or Left (Right in RTL) leaves a
|
|
106
|
+
* submenu (2.5.8). Default false; G9Menu turns it on while open.
|
|
107
|
+
*/
|
|
108
|
+
readonly keyboard?: boolean;
|
|
97
109
|
}
|
|
110
|
+
/** The entries shown after drilling through `path` (the keys of the entries with a submenu, outermost first). */
|
|
111
|
+
export declare function menuLevel(items: readonly G9MenuItem[], path: readonly string[]): readonly G9MenuItem[];
|
|
98
112
|
/** The entries of a menu (G9Hub MenuList): icon, label, shortcut, check; destructive entries in red. */
|
|
99
113
|
export declare const G9MenuList: import("react").NamedExoticComponent<G9MenuListProps>;
|
|
100
114
|
/** Props of {@link G9Menu}. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAQ,KAAK,SAAS,EAAwC,MAAM,gBAAgB,CAAC;AAC5F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,KAAK,WAAW,EAAoC,MAAM,iBAAiB,CAAC;AAIrF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAQ,KAAK,SAAS,EAAwC,MAAM,gBAAgB,CAAC;AAC5F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,KAAK,WAAW,EAAoC,MAAM,iBAAiB,CAAC;AAIrF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAA0B,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAItE,qGAAqG;AACrG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACvF,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EA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M,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAqClE;AAID,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED,wHAAwH;AACxH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAoClE"}
|
package/dist/popover/popover.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./popover.css";
|
|
2
|
-
import { g9Haptic } from "@g9tm/lynxcontrols-foundation";
|
|
2
|
+
import { G9StringKey, g9Haptic } from "@g9tm/lynxcontrols-foundation";
|
|
3
3
|
import { memo, useEffect, useMemo, useRef, useState } from "@lynx-js/react";
|
|
4
4
|
import { useG9Anchor } from "../anchor/hooks.jsx";
|
|
5
5
|
import { anchorRect, measureNode, windowRect } from "../anchor/measure.jsx";
|
|
@@ -8,7 +8,8 @@ import { useG9Keys } from "../commands/keys.jsx";
|
|
|
8
8
|
import { G9Keycap } from "../display/keycap.jsx";
|
|
9
9
|
import { useG9Back, useG9LayerItem } from "../host/hooks.jsx";
|
|
10
10
|
import { G9Icon } from "../icon/icon.jsx";
|
|
11
|
-
import {
|
|
11
|
+
import { useG9ListKeyboard } from "../list/keyboard.jsx";
|
|
12
|
+
import { useG9Core, useG9Direction, useG9Layout, useG9Strings } from "../provider/hooks.jsx";
|
|
12
13
|
import { computePopoverPosition } from "./position.jsx";
|
|
13
14
|
function G9OverlayRoot(props) {
|
|
14
15
|
const anchor = useG9Anchor(props.id, {
|
|
@@ -172,22 +173,81 @@ function G9Popover(props) {
|
|
|
172
173
|
});
|
|
173
174
|
return null;
|
|
174
175
|
}
|
|
176
|
+
function menuLevel(items, path) {
|
|
177
|
+
let level = items;
|
|
178
|
+
for (const key of path){
|
|
179
|
+
var _level_find;
|
|
180
|
+
const next = null == (_level_find = level.find((i)=>i.key === key)) ? void 0 : _level_find.items;
|
|
181
|
+
if (!next) break;
|
|
182
|
+
level = next;
|
|
183
|
+
}
|
|
184
|
+
return level;
|
|
185
|
+
}
|
|
175
186
|
const G9MenuList = memo(function(props) {
|
|
187
|
+
var _props_backLabel;
|
|
176
188
|
const dir = useG9Direction();
|
|
189
|
+
const strings = useG9Strings();
|
|
177
190
|
const tall = 'sheet' === props.density;
|
|
191
|
+
const [path, setPath] = useState([]);
|
|
192
|
+
const items = menuLevel(props.items, path);
|
|
193
|
+
const parent = path.length ? menuLevel(props.items, path.slice(0, -1)).find((i)=>i.key === path[path.length - 1]) : null;
|
|
194
|
+
const press = (item)=>{
|
|
195
|
+
g9Haptic('select');
|
|
196
|
+
if (item.items && item.items.length > 0) {
|
|
197
|
+
setPath([
|
|
198
|
+
...path,
|
|
199
|
+
item.key
|
|
200
|
+
]);
|
|
201
|
+
nav.setActive(0);
|
|
202
|
+
} else props.onSelect(item.key);
|
|
203
|
+
};
|
|
204
|
+
const nav = useG9ListKeyboard({
|
|
205
|
+
count: items.length,
|
|
206
|
+
enabled: true === props.keyboard,
|
|
207
|
+
wrap: true,
|
|
208
|
+
skip: (i)=>{
|
|
209
|
+
var _items_i;
|
|
210
|
+
return (null == (_items_i = items[i]) ? void 0 : _items_i.disabled) === true;
|
|
211
|
+
},
|
|
212
|
+
labelOf: (i)=>{
|
|
213
|
+
var _ref;
|
|
214
|
+
var _items_i;
|
|
215
|
+
return null != (_ref = null == (_items_i = items[i]) ? void 0 : _items_i.label) ? _ref : '';
|
|
216
|
+
},
|
|
217
|
+
onActivate: (i)=>{
|
|
218
|
+
const item = items[i];
|
|
219
|
+
if (item && !item.disabled) press(item);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
useG9Keys((e)=>{
|
|
223
|
+
if (!parent) return false;
|
|
224
|
+
const back = 'rtl' === dir ? 'ArrowRight' : 'ArrowLeft';
|
|
225
|
+
if (e.key !== back && 'Backspace' !== e.key) return false;
|
|
226
|
+
setPath(path.slice(0, -1));
|
|
227
|
+
nav.setActive(-1);
|
|
228
|
+
return true;
|
|
229
|
+
}, {
|
|
230
|
+
enabled: true === props.keyboard && null !== parent
|
|
231
|
+
});
|
|
178
232
|
return <view className="g9-menu-list" {...g9IdProps(props.id)}>
|
|
179
|
-
{
|
|
233
|
+
{parent ? <view className="g9-menu-item g9-menu-item--back" {...g9IdProps(g9ChildId(props.id, 'Back'))} style={{
|
|
234
|
+
...g9RowStyle(dir),
|
|
235
|
+
minHeight: `${tall ? 52 : 40}px`
|
|
236
|
+
}} accessibility-element={true} accessibility-traits="button" accessibility-label={null != (_props_backLabel = props.backLabel) ? _props_backLabel : strings.get(G9StringKey.Back)} bindtap={()=>setPath(path.slice(0, -1))}>
|
|
237
|
+
<G9Icon icon="arrowBack" size={18} color="var(--g9-text-secondary)"/>
|
|
238
|
+
<view className="g9-menu-item__text">
|
|
239
|
+
<text className="g9-menu-item__label g9-menu-item__label--back">{parent.label}</text>
|
|
240
|
+
</view>
|
|
241
|
+
</view> : null}
|
|
242
|
+
{items.map((item, index)=><view key={item.key} className="g9-menu-list__group">
|
|
180
243
|
{item.separatorBefore ? <view className="g9-menu-list__separator"/> : null}
|
|
181
|
-
<view className={`g9-menu-item${item.disabled ? ' g9-menu-item--disabled' : ''}`} {...g9IdProps(g9ChildId(props.id, item.key))} style={{
|
|
244
|
+
<view className={`g9-menu-item${item.disabled ? ' g9-menu-item--disabled' : ''}${index === nav.active ? ' g9-menu-item--active' : ''}`} {...g9IdProps(g9ChildId(props.id, item.key))} style={{
|
|
182
245
|
...g9RowStyle(dir),
|
|
183
246
|
minHeight: `${tall ? 52 : 40}px`
|
|
184
247
|
}} accessibility-element={true} accessibility-traits="button" accessibility-label={item.label} {...item.checked ? {
|
|
185
248
|
'accessibility-status': 'selected'
|
|
186
249
|
} : {}} {...item.disabled ? {} : {
|
|
187
|
-
bindtap: ()=>
|
|
188
|
-
g9Haptic('select');
|
|
189
|
-
props.onSelect(item.key);
|
|
190
|
-
}
|
|
250
|
+
bindtap: ()=>press(item)
|
|
191
251
|
}}>
|
|
192
252
|
{item.icon ? <G9Icon icon={item.icon} size={18} color={item.danger ? 'var(--g9-error)' : 'var(--g9-text-secondary)'}/> : null}
|
|
193
253
|
<view className="g9-menu-item__text">
|
|
@@ -198,6 +258,7 @@ const G9MenuList = memo(function(props) {
|
|
|
198
258
|
</view>
|
|
199
259
|
{item.shortcut ? <G9Keycap combo={item.shortcut}/> : null}
|
|
200
260
|
{item.checked ? <G9Icon icon="check" size={16} color="var(--g9-primary)"/> : null}
|
|
261
|
+
{item.items && item.items.length > 0 ? <G9Icon icon={'rtl' === dir ? 'chevronBack' : 'chevronForward'} size={16} color="var(--g9-text-tertiary)"/> : null}
|
|
201
262
|
</view>
|
|
202
263
|
</view>)}
|
|
203
264
|
</view>;
|
|
@@ -206,8 +267,8 @@ function G9Menu(props) {
|
|
|
206
267
|
const { wide } = useG9Layout();
|
|
207
268
|
const sheet = 'sheet' === props.mode || 'popover' !== props.mode && !wide;
|
|
208
269
|
const select = (k)=>{
|
|
209
|
-
props.onClose();
|
|
210
270
|
props.onSelect(k);
|
|
271
|
+
props.onClose();
|
|
211
272
|
};
|
|
212
273
|
if (sheet) return <G9ActionSheet open={props.open} onClose={props.onClose} {...props.title ? {
|
|
213
274
|
title: props.title
|
|
@@ -216,13 +277,13 @@ function G9Menu(props) {
|
|
|
216
277
|
} : {}} {...props.id ? {
|
|
217
278
|
id: props.id
|
|
218
279
|
} : {}}>
|
|
219
|
-
<G9MenuList items={props.items} onSelect={select} density="sheet" {...props.id ? {
|
|
280
|
+
<G9MenuList items={props.items} onSelect={select} keyboard={props.open} density="sheet" {...props.id ? {
|
|
220
281
|
id: `${props.id}_List`
|
|
221
282
|
} : {}}/>
|
|
222
283
|
</G9ActionSheet>;
|
|
223
284
|
const { items: _i, onSelect: _s, title: _t, mode: _m, cancelText: _c, ...pop } = props;
|
|
224
285
|
return <G9Popover {...pop} kind="menu">
|
|
225
|
-
<G9MenuList items={props.items} onSelect={select} {...props.id ? {
|
|
286
|
+
<G9MenuList items={props.items} onSelect={select} keyboard={props.open} {...props.id ? {
|
|
226
287
|
id: `${props.id}_List`
|
|
227
288
|
} : {}}/>
|
|
228
289
|
</G9Popover>;
|
|
@@ -288,4 +349,4 @@ function G9ContextMenu(props) {
|
|
|
288
349
|
} : {}}/>
|
|
289
350
|
</view>;
|
|
290
351
|
}
|
|
291
|
-
export { G9ActionSheet, G9ContextMenu, G9Menu, G9MenuList, G9OverlayRoot, G9Popover, g9Popovers, useG9OpenOverlay };
|
|
352
|
+
export { G9ActionSheet, G9ContextMenu, G9Menu, G9MenuList, G9OverlayRoot, G9Popover, g9Popovers, menuLevel, useG9OpenOverlay };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { G9AnchorRect } from '../anchor/registry.js';
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The side and the alignment along it. `start`/`end` follow the reading direction. On a side (`start`, `end`) the
|
|
4
|
+
* alignment is vertical: `-start` lines the panel's top up with the anchor's top, `-end` its bottom with the anchor's
|
|
5
|
+
* bottom (G9Hub's notification centre beside the rail bell, 2.5.8); no suffix centres it.
|
|
6
|
+
*/
|
|
7
|
+
export type G9Placement = 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end' | 'start' | 'start-start' | 'start-end' | 'end' | 'end-start' | 'end-end';
|
|
4
8
|
/** What {@link computePopoverPosition} needs: the anchor rectangle, the panel size, the window and the wished placement. */
|
|
5
9
|
export interface G9PopoverPositionInput {
|
|
6
10
|
readonly anchor: G9AnchorRect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../src/popover/position.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../src/popover/position.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,KAAK,GACL,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,KAAK,GACL,WAAW,GACX,SAAS,CAAC;AAEd,4HAA4H;AAC5H,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,+CAA+C;IAC/C,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC;IACjC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,wHAAwH;AACxH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gGAAgG;IAChG,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;CACjC;AAiBD,wCAAwC;AACxC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,sBAAsB,GAAG,iBAAiB,CAyCvF"}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
const OPPOSITE = {
|
|
2
|
+
top: 'bottom',
|
|
3
|
+
bottom: 'top',
|
|
4
|
+
start: 'end',
|
|
5
|
+
end: 'start'
|
|
6
|
+
};
|
|
1
7
|
function side(p) {
|
|
2
|
-
return p.
|
|
8
|
+
return p.split('-')[0];
|
|
3
9
|
}
|
|
4
10
|
function align(p) {
|
|
5
|
-
|
|
11
|
+
const a = p.split('-')[1];
|
|
12
|
+
return 'start' === a ? 'start' : 'end' === a ? 'end' : 'center';
|
|
6
13
|
}
|
|
7
|
-
const flip = (p)=>
|
|
14
|
+
const flip = (p)=>{
|
|
15
|
+
const [s, a] = p.split('-');
|
|
16
|
+
return a ? `${OPPOSITE[s]}-${a}` : OPPOSITE[s];
|
|
17
|
+
};
|
|
8
18
|
const clamp = (v, lo, hi)=>Math.max(lo, Math.min(hi, v));
|
|
9
19
|
function computePopoverPosition(input) {
|
|
10
20
|
var _input_offset, _input_margin, _input_placement;
|
|
@@ -38,7 +48,8 @@ function computePopoverPosition(input) {
|
|
|
38
48
|
} else {
|
|
39
49
|
const toRight = 'end' === finalSide !== rtl;
|
|
40
50
|
x = toRight ? a.x + a.width + offset : a.x - offset - width;
|
|
41
|
-
|
|
51
|
+
const al = align(placement);
|
|
52
|
+
y = 'start' === al ? a.y : 'end' === al ? a.y + a.height - h : a.y + a.height / 2 - h / 2;
|
|
42
53
|
}
|
|
43
54
|
x = clamp(x, vp.x + margin, vp.x + vp.width - margin - width);
|
|
44
55
|
y = clamp(y, vp.y + margin, vp.y + vp.height - margin - Math.min(h, maxHeight));
|
package/dist/popup/popup.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.g9-popup {
|
|
2
|
+
pointer-events: auto;
|
|
2
3
|
justify-content: center;
|
|
3
4
|
align-items: center;
|
|
4
5
|
display: flex;
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.g9-popup__scrim {
|
|
18
|
+
pointer-events: auto;
|
|
17
19
|
position: absolute;
|
|
18
20
|
top: 0;
|
|
19
21
|
bottom: 0;
|
|
@@ -22,6 +24,7 @@
|
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.g9-popup__card {
|
|
27
|
+
pointer-events: auto;
|
|
25
28
|
border-style: solid;
|
|
26
29
|
border-width: 1px;
|
|
27
30
|
flex-direction: column;
|
package/dist/popup/popup.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/popup/popup.css"],"names":[],"mappings":"AAGA;EAFE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,eAAe;EACf,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/popup/popup.css"],"names":[],"mappings":"AAGA;EAFE,oBAAoB;EACpB,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,eAAe;EACf,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,cAAc;AAChB;;AAMA;EAHE,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAOA;EAJE,oBAAoB;EACpB,mBAAmB;EACnB,i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EACf,gCAAgC;EAChC,+BAA+B;EAC/B,kBAAkB;AACpB;;AAkBA;EAfE,eAAe;EACf,gCAAgC;EAChC,sBAAsB;EACtB,eAAe;AACjB;;AAkBA;EAfE,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AAkBA;EAfE,mBAAmB;EACnB,iBAAiB;EACjB,+BAA+B;EAC/B,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,aAAa;AACf;;AAkBA;EAfE,iBAAiB;EACjB,eAAe;AACjB;;AAkBA;EAfE,+BAA+B;AACjC;;AAkBA;EAfE,mCAAmC;EACnC,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;;AAkBA;EAfE,eAAe;EACf,gCAAgC;EAChC,2BAA2B;AAC7B","sourcesContent":["/* Fixed, not absolute: a G9 sheet is lynx-ui's `position: fixed` SheetView, which Lynx paints and hit-tests above\n every in-flow node, so an absolute popup over an open sheet was hidden and its buttons unreachable. The popup root\n is created per show, after the sheet, so it lands above it (2026-10-10). */\n.g9-popup {\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-popup--placed {\n display: block;\n}\n\n.g9-popup__scrim {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-popup__card {\n display: flex;\n flex-direction: column;\n border-width: 1px;\n border-style: solid;\n max-height: 90%;\n /* an interactive surface in a pass-through layer (a browser inherits `none`; G9Hub, 2.5.8) */\n pointer-events: auto;\n}\n\n.g9-popup__content {\n display: flex;\n flex-direction: column;\n}\n\n/* MAUI BuildG9PopupHeader: a row (icon tile, title; ColumnSpacing 10, 10 under it), then a 1 dp divider. */\n.g9-popup__header {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-bottom: 10px;\n}\n\n.g9-popup__divider {\n height: 1px;\n background-color: var(--g9-outline-variant);\n opacity: 0.5;\n}\n\n/* MAUI: a 30 dp tile, corner 8, the accent at 18 % behind a 17 dp icon. */\n.g9-popup__badge {\n width: 30px;\n height: 30px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n position: relative;\n}\n\n.g9-dir-rtl .g9-popup__badge {\n margin-right: 0px;\n margin-left: 10px;\n}\n\n.g9-popup__badge-tint {\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n border-radius: 8px;\n opacity: 0.18;\n}\n\n.g9-popup__title {\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n font-size: 17px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n text-overflow: ellipsis;\n}\n\n.g9-popup__close {\n width: 32px;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* MAUI BuildG9PopupBody: the message (or a custom body) inside Padding (0, 12, 0, 12). */\n.g9-popup__message {\n font-size: 15px;\n font-family: var(--g9-font-text);\n line-height: 22px;\n padding: 12px 0px;\n}\n\n.g9-popup__body {\n padding: 12px 0px;\n}\n\n/* MAUI BuildG9PopupFooter: Padding (0, 8, 0, 0), ColumnSpacing 8 (stacked: Spacing 8), buttons flush with the card. */\n.g9-popup__footer {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-top: 8px;\n column-gap: 8px;\n}\n\n.g9-popup__footer--stacked {\n flex-direction: column;\n align-items: stretch;\n column-gap: 0px;\n row-gap: 8px;\n}\n\n/* MAUI CreateFooterButton: MinimumHeightRequest 48, corner 12. */\n.g9-popup__button {\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n min-height: 48px;\n border-radius: 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n}\n\n.g9-popup__button--stacked {\n flex-grow: 0;\n flex-basis: auto;\n}\n\n.g9-popup__button--outline {\n border-width: 1.5px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-popup__button--busy {\n opacity: 0.7;\n}\n\n.g9-popup__button-text {\n font-size: 15px;\n font-family: var(--g9-font-text-700);\n font-weight: 700;\n}\n\n.g9-popup-input {\n display: flex;\n flex-direction: column;\n}\n\n.g9-popup-input__group {\n display: flex;\n flex-direction: column;\n margin-bottom: 10px;\n}\n\n.g9-popup-input__label {\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n margin-bottom: 6px;\n}\n\n.g9-popup-input__error {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-error);\n margin-top: 4px;\n}\n\n.g9-popup-input__radio {\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 40px;\n}\n\n.g9-popup-input__radio-ring {\n width: 20px;\n height: 20px;\n border-radius: 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--g9-outline);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n}\n\n.g9-dir-rtl .g9-popup-input__radio-ring {\n margin-right: 0px;\n margin-left: 10px;\n}\n\n.g9-popup-input__radio--selected .g9-popup-input__radio-ring {\n border-color: var(--g9-primary);\n}\n\n.g9-popup-input__radio-dot {\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: var(--g9-primary);\n}\n\n.g9-popup-input__option-text {\n font-size: 15px;\n font-family: var(--g9-font-text);\n color: var(--g9-on-surface);\n}\n"],"sourceRoot":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type G9Breakpoints, type G9Capabilities, type G9ColorScheme, type G9Culture, type G9CultureStore, type G9Diagnostics, type G9LayoutClass, type G9SafeInsets, type G9ShapeSet, type G9ThemeOptions, type G9ThemeStore, type G9TokenAliasMap } from '@g9tm/lynxcontrols-foundation';
|
|
1
|
+
import { type G9Breakpoints, type G9Capabilities, type G9ColorScheme, type G9Culture, type G9CultureStore, type G9Diagnostics, type G9LayoutClass, type G9ResolvedTheme, type G9SafeInsets, type G9ShapeSet, type G9ThemeOptions, type G9ThemeStore, type G9TokenAliasMap } from '@g9tm/lynxcontrols-foundation';
|
|
2
2
|
import { type ReactNode } from '@lynx-js/react';
|
|
3
3
|
import { type G9Settings } from './settings.js';
|
|
4
4
|
import './provider.css';
|
|
@@ -60,6 +60,11 @@ export interface G9ProviderProps {
|
|
|
60
60
|
readonly map: G9TokenAliasMap;
|
|
61
61
|
readonly prefix?: string;
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* More CSS variables computed from each theme the store paints (2.5.8: G9Hub's bubbles, glass, presence colours —
|
|
65
|
+
* `g9AppTokenVariables`), repainted with it the same way (only what changed, no render).
|
|
66
|
+
*/
|
|
67
|
+
readonly themeExtras?: (theme: G9ResolvedTheme) => Readonly<Record<string, string>>;
|
|
63
68
|
/** The diagnostics hub. Default: a hub the provider creates. */
|
|
64
69
|
readonly diagnostics?: G9Diagnostics;
|
|
65
70
|
/**
|