@g9tm/lynxcontrols 2.2.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/bin/g9lynx.mjs +103 -0
- package/bin/g9lynx.test.mjs +80 -0
- package/catalog/cards/DateTimeSheetBody.md +17 -0
- package/catalog/cards/G9ActionRow.md +11 -0
- package/catalog/cards/G9ActionSheet.md +14 -0
- package/catalog/cards/G9Activity.md +11 -0
- package/catalog/cards/G9ActivityIndicator.md +14 -0
- package/catalog/cards/G9AllocationInput.md +17 -0
- package/catalog/cards/G9Anchor.md +17 -0
- package/catalog/cards/G9AnimatedCheck.md +13 -0
- package/catalog/cards/G9AppBar.md +17 -0
- package/catalog/cards/G9AppShell.md +17 -0
- package/catalog/cards/G9Art.md +13 -0
- package/catalog/cards/G9Avatar.md +16 -0
- package/catalog/cards/G9Badge.md +15 -0
- package/catalog/cards/G9Bento.md +13 -0
- package/catalog/cards/G9Button.md +17 -0
- package/catalog/cards/G9CameFromMark.md +9 -0
- package/catalog/cards/G9Card.md +17 -0
- package/catalog/cards/G9CascadePanel.md +17 -0
- package/catalog/cards/G9CheckBox.md +17 -0
- package/catalog/cards/G9Chip.md +17 -0
- package/catalog/cards/G9ChipGroup.md +17 -0
- package/catalog/cards/G9ChoiceList.md +17 -0
- package/catalog/cards/G9Columns.md +13 -0
- package/catalog/cards/G9ComboBox.md +17 -0
- package/catalog/cards/G9CommandPalette.md +15 -0
- package/catalog/cards/G9Confetti.md +15 -0
- package/catalog/cards/G9ConnectionBanner.md +15 -0
- package/catalog/cards/G9ContextMenu.md +15 -0
- package/catalog/cards/G9CornerBadge.md +15 -0
- package/catalog/cards/G9CultureDateTimeLabel.md +16 -0
- package/catalog/cards/G9DateTimePicker.md +17 -0
- package/catalog/cards/G9DayStepper.md +17 -0
- package/catalog/cards/G9DeferredContent.md +17 -0
- package/catalog/cards/G9Delta.md +17 -0
- package/catalog/cards/G9DesignNode.md +13 -0
- package/catalog/cards/G9DesignScope.md +11 -0
- package/catalog/cards/G9DragList.md +15 -0
- package/catalog/cards/G9EdgePanel.md +17 -0
- package/catalog/cards/G9Editor.md +17 -0
- package/catalog/cards/G9EmptyState.md +17 -0
- package/catalog/cards/G9ErrorBoundary.md +13 -0
- package/catalog/cards/G9Expander.md +17 -0
- package/catalog/cards/G9FloatingOrb.md +17 -0
- package/catalog/cards/G9FormField.md +15 -0
- package/catalog/cards/G9HScroll.md +16 -0
- package/catalog/cards/G9HeaderActionButton.md +17 -0
- package/catalog/cards/G9HoldButton.md +17 -0
- package/catalog/cards/G9Host.md +17 -0
- package/catalog/cards/G9Icon.md +16 -0
- package/catalog/cards/G9IconButton.md +17 -0
- package/catalog/cards/G9IconRail.md +15 -0
- package/catalog/cards/G9IconSlot.md +17 -0
- package/catalog/cards/G9Image.md +17 -0
- package/catalog/cards/G9InlineMessage.md +16 -0
- package/catalog/cards/G9KeepAlive.md +11 -0
- package/catalog/cards/G9Keycap.md +13 -0
- package/catalog/cards/G9Kpi.md +17 -0
- package/catalog/cards/G9KpiGrid.md +12 -0
- package/catalog/cards/G9ListRow.md +17 -0
- package/catalog/cards/G9LiveBadge.md +11 -0
- package/catalog/cards/G9LiveDot.md +12 -0
- package/catalog/cards/G9LoadState.md +13 -0
- package/catalog/cards/G9LoadableSheetContent.md +17 -0
- package/catalog/cards/G9LockOverlay.md +15 -0
- package/catalog/cards/G9Menu.md +17 -0
- package/catalog/cards/G9MenuList.md +12 -0
- package/catalog/cards/G9NavCard.md +17 -0
- package/catalog/cards/G9NumPad.md +13 -0
- package/catalog/cards/G9NumberEntry.md +17 -0
- package/catalog/cards/G9OutlinedField.md +17 -0
- package/catalog/cards/G9OverlayRoot.md +12 -0
- package/catalog/cards/G9Page.md +17 -0
- package/catalog/cards/G9PageLoadingOverlay.md +12 -0
- package/catalog/cards/G9Pager.md +16 -0
- package/catalog/cards/G9Photo.md +17 -0
- package/catalog/cards/G9Picker.md +17 -0
- package/catalog/cards/G9PinEntry.md +17 -0
- package/catalog/cards/G9Place.md +17 -0
- package/catalog/cards/G9PlaceScroll.md +13 -0
- package/catalog/cards/G9PlusButton.md +17 -0
- package/catalog/cards/G9Popover.md +17 -0
- package/catalog/cards/G9PopupDragHandle.md +10 -0
- package/catalog/cards/G9PopupView.md +15 -0
- package/catalog/cards/G9Pressable.md +17 -0
- package/catalog/cards/G9ProcessingSheetContent.md +13 -0
- package/catalog/cards/G9ProgressBar.md +17 -0
- package/catalog/cards/G9ProgressRing.md +17 -0
- package/catalog/cards/G9Provider.md +17 -0
- package/catalog/cards/G9PullToRefresh.md +13 -0
- package/catalog/cards/G9RadioGroup.md +17 -0
- package/catalog/cards/G9RangeSlider.md +17 -0
- package/catalog/cards/G9RatingInput.md +17 -0
- package/catalog/cards/G9RevealText.md +15 -0
- package/catalog/cards/G9SafeButton.md +17 -0
- package/catalog/cards/G9SafeIconButton.md +17 -0
- package/catalog/cards/G9SaveBar.md +16 -0
- package/catalog/cards/G9ScaleInput.md +17 -0
- package/catalog/cards/G9ScrollSpyBar.md +12 -0
- package/catalog/cards/G9ScrollerScope.md +10 -0
- package/catalog/cards/G9SearchEntry.md +17 -0
- package/catalog/cards/G9Section.md +16 -0
- package/catalog/cards/G9SectionHeader.md +14 -0
- package/catalog/cards/G9Segmented.md +17 -0
- package/catalog/cards/G9Separator.md +17 -0
- package/catalog/cards/G9SettingsGroup.md +13 -0
- package/catalog/cards/G9Sheet.md +13 -0
- package/catalog/cards/G9SheetBackdropScope.md +10 -0
- package/catalog/cards/G9SheetFooter.md +10 -0
- package/catalog/cards/G9SheetFooterBar.md +11 -0
- package/catalog/cards/G9SheetFrame.md +17 -0
- package/catalog/cards/G9SheetHeader.md +11 -0
- package/catalog/cards/G9SheetScrollIndicator.md +10 -0
- package/catalog/cards/G9SheetScrollRegion.md +11 -0
- package/catalog/cards/G9SheetSkeleton.md +13 -0
- package/catalog/cards/G9ShimmerBand.md +10 -0
- package/catalog/cards/G9ShortcutList.md +11 -0
- package/catalog/cards/G9ShortcutsSheet.md +15 -0
- package/catalog/cards/G9SideNav.md +16 -0
- package/catalog/cards/G9Skeleton.md +13 -0
- package/catalog/cards/G9SkeletonPage.md +13 -0
- package/catalog/cards/G9SkeletonRows.md +13 -0
- package/catalog/cards/G9SplitPane.md +17 -0
- package/catalog/cards/G9StatusPill.md +17 -0
- package/catalog/cards/G9StepSlider.md +16 -0
- package/catalog/cards/G9StepTracker.md +13 -0
- package/catalog/cards/G9Stepper.md +17 -0
- package/catalog/cards/G9SuccessHeader.md +14 -0
- package/catalog/cards/G9Swatch.md +13 -0
- package/catalog/cards/G9SwipeGroup.md +11 -0
- package/catalog/cards/G9SwipeView.md +17 -0
- package/catalog/cards/G9Switch.md +17 -0
- package/catalog/cards/G9SwitchGroup.md +15 -0
- package/catalog/cards/G9SwitchRow.md +17 -0
- package/catalog/cards/G9TabBar.md +17 -0
- package/catalog/cards/G9TabView.md +17 -0
- package/catalog/cards/G9Tag.md +14 -0
- package/catalog/cards/G9TagEntry.md +16 -0
- package/catalog/cards/G9TextEntry.md +17 -0
- package/catalog/cards/G9ThemePreviewCard.md +15 -0
- package/catalog/cards/G9TimeEntry.md +17 -0
- package/catalog/cards/G9TimeSpanPicker.md +17 -0
- package/catalog/cards/G9TitleWithLine.md +13 -0
- package/catalog/cards/G9TopBar.md +13 -0
- package/catalog/cards/G9UnsavedBar.md +16 -0
- package/catalog/cards/G9UpdateBar.md +15 -0
- package/catalog/cards/G9VerticalIconTextButton.md +15 -0
- package/catalog/cards/G9VirtualList.md +17 -0
- package/catalog/cards/G9Wave.md +15 -0
- package/catalog/cards/G9WheelColumn.md +17 -0
- package/catalog/cards/PickerField.md +14 -0
- package/catalog/cards/PickerSheetHeader.md +12 -0
- package/catalog/cards/PopupFrame.md +15 -0
- package/catalog/cards/PopupInputForm.md +11 -0
- package/catalog/cards/SelectionValueIcon.md +12 -0
- package/catalog/cards/TimeSpanSheetBody.md +16 -0
- package/catalog/catalog.json +47916 -0
- package/catalog/index.md +159 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/anchor/index.d.ts +1 -1
- package/dist/anchor/index.d.ts.map +1 -1
- package/dist/anchor/registry.d.ts +5 -0
- package/dist/anchor/registry.d.ts.map +1 -1
- package/dist/base/base.css +1 -0
- package/dist/base/base.css.map +1 -1
- package/dist/button/button-variants.css +4 -0
- package/dist/button/button-variants.css.map +1 -1
- package/dist/button/button.css +12 -5
- package/dist/button/button.css.map +1 -1
- package/dist/button/variant-css.d.ts.map +1 -1
- package/dist/button/variant-css.jsx +2 -1
- package/dist/cascade/cascade.css +2 -1
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +12 -6
- package/dist/commands/commands.css.map +1 -1
- package/dist/design/design.d.ts +39 -0
- package/dist/design/design.d.ts.map +1 -0
- package/dist/design/design.jsx +54 -0
- package/dist/design/index.d.ts +3 -0
- package/dist/design/index.d.ts.map +1 -0
- package/dist/design/index.jsx +2 -0
- package/dist/design/probe.d.ts +62 -0
- package/dist/design/probe.d.ts.map +1 -0
- package/dist/design/probe.jsx +141 -0
- package/dist/display/data-uri.d.ts +9 -0
- package/dist/display/data-uri.d.ts.map +1 -0
- package/dist/display/data-uri.jsx +56 -0
- package/dist/display/display.css +10 -3
- package/dist/display/display.css.map +1 -1
- package/dist/display/extras.css +8 -2
- package/dist/display/extras.css.map +1 -1
- package/dist/display/figures.css +28 -7
- package/dist/display/figures.css.map +1 -1
- package/dist/display/figures.d.ts +10 -0
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +28 -5
- package/dist/display/image.d.ts +9 -2
- package/dist/display/image.d.ts.map +1 -1
- package/dist/display/image.jsx +20 -6
- package/dist/display/keycap.css +1 -0
- package/dist/display/keycap.css.map +1 -1
- package/dist/display/motion-figures.css +4 -1
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/separator.d.ts.map +1 -1
- package/dist/display/separator.jsx +1 -1
- package/dist/display/status.css +5 -0
- package/dist/display/status.css.map +1 -1
- package/dist/display/status.d.ts +9 -0
- package/dist/display/status.d.ts.map +1 -1
- package/dist/display/status.jsx +14 -2
- package/dist/display/theme-preview.css +6 -3
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/edge-panel/edge-panel.css +6 -3
- package/dist/edge-panel/edge-panel.css.map +1 -1
- package/dist/effects/effects.css +4 -2
- package/dist/effects/effects.css.map +1 -1
- package/dist/expander/expander.css +2 -1
- package/dist/expander/expander.css.map +1 -1
- package/dist/fields/extra-entries.css +14 -6
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/fields.css +21 -10
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +3 -0
- package/dist/guide/guide.css +17 -5
- package/dist/guide/guide.css.map +1 -1
- package/dist/header/header.css +6 -2
- package/dist/header/header.css.map +1 -1
- package/dist/icon/icon.d.ts +9 -2
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +26 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/layout.css +15 -5
- package/dist/layout/layout.css.map +1 -1
- package/dist/layout/scrollers.d.ts +16 -5
- package/dist/layout/scrollers.d.ts.map +1 -1
- package/dist/layout/scrollers.jsx +54 -13
- package/dist/list/list.css +35 -6
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts +16 -0
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +13 -6
- package/dist/orb/orb.css +2 -1
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/day-stepper.css +2 -1
- package/dist/pickers/day-stepper.css.map +1 -1
- package/dist/pickers/pickers.css +19 -9
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -1
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/popover/popover.css +9 -4
- package/dist/popover/popover.css.map +1 -1
- package/dist/popup/popup.css +11 -5
- package/dist/popup/popup.css.map +1 -1
- package/dist/popup/service.d.ts.map +1 -1
- package/dist/popup/service.jsx +5 -1
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/provider.d.ts +25 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +48 -12
- package/dist/range-slider/range-slider.css +9 -4
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/selection/selection.css +10 -5
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts +6 -0
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +5 -1
- package/dist/sheet/header.d.ts.map +1 -1
- package/dist/sheet/header.jsx +5 -2
- package/dist/sheet/service.d.ts +5 -0
- package/dist/sheet/service.d.ts.map +1 -1
- package/dist/sheet/service.jsx +9 -6
- package/dist/sheet/sheet.css +1 -0
- package/dist/sheet/sheet.css.map +1 -1
- package/dist/shell/shell.css +19 -8
- package/dist/shell/shell.css.map +1 -1
- package/dist/survey/survey.css +15 -7
- package/dist/survey/survey.css.map +1 -1
- package/dist/swipe/swipe.css +1 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/index.d.ts +1 -1
- package/dist/tab-bar/index.d.ts.map +1 -1
- package/dist/tab-bar/index.jsx +1 -1
- package/dist/tab-bar/model.d.ts +14 -0
- package/dist/tab-bar/model.d.ts.map +1 -1
- package/dist/tab-bar/model.jsx +19 -1
- package/dist/tab-bar/tab-bar.css +4 -1
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +12 -8
- package/dist/tabs/tabs.css +3 -1
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toast/toast.css +9 -4
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/choice.css +15 -6
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/toggle.css +12 -6
- package/dist/toggle/toggle.css.map +1 -1
- package/package.json +16 -4
- package/skills/g9-lynx-app/SKILL.md +42 -0
- package/skills/g9-lynx-app/references/adaptive-layout.md +10 -0
- package/skills/g9-lynx-app/references/anchors-guide.md +9 -0
- package/skills/g9-lynx-app/references/catalog-index.md +80 -0
- package/skills/g9-lynx-app/references/common-mistakes.md +12 -0
- package/skills/g9-lynx-app/references/components/anchor.md +30 -0
- package/skills/g9-lynx-app/references/components/barcode-qr.md +19 -0
- package/skills/g9-lynx-app/references/components/barcode.md +37 -0
- package/skills/g9-lynx-app/references/components/base.md +35 -0
- package/skills/g9-lynx-app/references/components/button.md +125 -0
- package/skills/g9-lynx-app/references/components/calendar.md +128 -0
- package/skills/g9-lynx-app/references/components/cascade.md +19 -0
- package/skills/g9-lynx-app/references/components/charts.md +193 -0
- package/skills/g9-lynx-app/references/components/chat.md +98 -0
- package/skills/g9-lynx-app/references/components/commands.md +45 -0
- package/skills/g9-lynx-app/references/components/commerce.md +69 -0
- package/skills/g9-lynx-app/references/components/datagrid.md +19 -0
- package/skills/g9-lynx-app/references/components/deferred.md +19 -0
- package/skills/g9-lynx-app/references/components/design.md +27 -0
- package/skills/g9-lynx-app/references/components/display-1.md +193 -0
- package/skills/g9-lynx-app/references/components/display-2.md +196 -0
- package/skills/g9-lynx-app/references/components/display-3.md +122 -0
- package/skills/g9-lynx-app/references/components/edge-panel.md +19 -0
- package/skills/g9-lynx-app/references/components/effects.md +46 -0
- package/skills/g9-lynx-app/references/components/expander.md +19 -0
- package/skills/g9-lynx-app/references/components/fields.md +174 -0
- package/skills/g9-lynx-app/references/components/header.md +19 -0
- package/skills/g9-lynx-app/references/components/host.md +32 -0
- package/skills/g9-lynx-app/references/components/icon.md +64 -0
- package/skills/g9-lynx-app/references/components/intro-carousel.md +19 -0
- package/skills/g9-lynx-app/references/components/layout-1.md +188 -0
- package/skills/g9-lynx-app/references/components/layout-2.md +18 -0
- package/skills/g9-lynx-app/references/components/list.md +116 -0
- package/skills/g9-lynx-app/references/components/map.md +19 -0
- package/skills/g9-lynx-app/references/components/media.md +115 -0
- package/skills/g9-lynx-app/references/components/orb.md +37 -0
- package/skills/g9-lynx-app/references/components/pickers.md +185 -0
- package/skills/g9-lynx-app/references/components/pilot.md +40 -0
- package/skills/g9-lynx-app/references/components/plus-button.md +19 -0
- package/skills/g9-lynx-app/references/components/popover.md +94 -0
- package/skills/g9-lynx-app/references/components/popup.md +56 -0
- package/skills/g9-lynx-app/references/components/provider.md +43 -0
- package/skills/g9-lynx-app/references/components/range-slider.md +36 -0
- package/skills/g9-lynx-app/references/components/route.md +19 -0
- package/skills/g9-lynx-app/references/components/sheet.md +134 -0
- package/skills/g9-lynx-app/references/components/shell.md +98 -0
- package/skills/g9-lynx-app/references/components/survey.md +55 -0
- package/skills/g9-lynx-app/references/components/swipe.md +31 -0
- package/skills/g9-lynx-app/references/components/tab-bar.md +19 -0
- package/skills/g9-lynx-app/references/components/tabs.md +19 -0
- package/skills/g9-lynx-app/references/components/toggle.md +161 -0
- package/skills/g9-lynx-app/references/lists.md +13 -0
- package/skills/g9-lynx-app/references/localization-rtl.md +13 -0
- package/skills/g9-lynx-app/references/navigation-route.md +21 -0
- package/skills/g9-lynx-app/references/overlays.md +27 -0
- package/skills/g9-lynx-app/references/pilot.md +10 -0
- package/skills/g9-lynx-app/references/platform-rules.md +42 -0
- package/skills/g9-lynx-app/references/provider-and-host.md +37 -0
- package/skills/g9-lynx-app/references/theming.md +18 -0
package/dist/popup/popup.css
CHANGED
|
@@ -74,9 +74,10 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.g9-popup__title {
|
|
77
|
+
font-size: 17px;
|
|
78
|
+
font-family: var(--g9-font-text);
|
|
77
79
|
text-overflow: ellipsis;
|
|
78
80
|
flex: 1 1 0;
|
|
79
|
-
font-size: 17px;
|
|
80
81
|
font-weight: 700;
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -89,8 +90,9 @@
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
.g9-popup__message {
|
|
92
|
-
padding: 12px 0;
|
|
93
93
|
font-size: 15px;
|
|
94
|
+
font-family: var(--g9-font-text);
|
|
95
|
+
padding: 12px 0;
|
|
94
96
|
line-height: 22px;
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -139,6 +141,7 @@
|
|
|
139
141
|
|
|
140
142
|
.g9-popup__button-text {
|
|
141
143
|
font-size: 15px;
|
|
144
|
+
font-family: var(--g9-font-text);
|
|
142
145
|
font-weight: 700;
|
|
143
146
|
}
|
|
144
147
|
|
|
@@ -154,15 +157,17 @@
|
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
.g9-popup-input__label {
|
|
160
|
+
font-size: 14px;
|
|
161
|
+
font-family: var(--g9-font-text);
|
|
157
162
|
color: var(--g9-text-secondary);
|
|
158
163
|
margin-bottom: 6px;
|
|
159
|
-
font-size: 14px;
|
|
160
164
|
}
|
|
161
165
|
|
|
162
166
|
.g9-popup-input__error {
|
|
167
|
+
font-size: 13px;
|
|
168
|
+
font-family: var(--g9-font-text);
|
|
163
169
|
color: var(--g9-error);
|
|
164
170
|
margin-top: 4px;
|
|
165
|
-
font-size: 13px;
|
|
166
171
|
}
|
|
167
172
|
|
|
168
173
|
.g9-popup-input__radio {
|
|
@@ -202,8 +207,9 @@
|
|
|
202
207
|
}
|
|
203
208
|
|
|
204
209
|
.g9-popup-input__option-text {
|
|
205
|
-
color: var(--g9-on-surface);
|
|
206
210
|
font-size: 15px;
|
|
211
|
+
font-family: var(--g9-font-text);
|
|
212
|
+
color: var(--g9-on-surface);
|
|
207
213
|
}
|
|
208
214
|
|
|
209
215
|
|
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;;AAKA;EAFE,cAAc;AAChB;;AAKA;EAFE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAKA;EAFE,mBAAmB;EACnB,iBAAiB;EACjB,sBAAsB;EACtB,eAAe;EACf,aAAa;AACf;;AAKA;EAFE,sBAAsB;EACtB,aAAa;AACf;;AAMA;EAHE,mBAAmB;EACnB,mBAAmB;EACnB,oBAAoB;EACpB,aAAa;AACf;;AAMA;EAHE,2CAA2C;EAC3C,WAAW;EACX,WAAW;AACb;;AAOA;EAJE,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,aAAa;EACb,kBAAkB;AACpB;;AAOA;EAJE,iBAAiB;EACjB,eAAe;AACjB;;AAOA;EAJE,YAAY;EACZ,kBAAkB;EAClB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAOA;EAJE,uBAAuB;EACvB,WAAW;EACX,
|
|
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;;AAKA;EAFE,cAAc;AAChB;;AAKA;EAFE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAKA;EAFE,mBAAmB;EACnB,iBAAiB;EACjB,sBAAsB;EACtB,eAAe;EACf,aAAa;AACf;;AAKA;EAFE,sBAAsB;EACtB,aAAa;AACf;;AAMA;EAHE,mBAAmB;EACnB,mBAAmB;EACnB,oBAAoB;EACpB,aAAa;AACf;;AAMA;EAHE,2CAA2C;EAC3C,WAAW;EACX,WAAW;AACb;;AAOA;EAJE,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,kBAAkB;EA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kBAAkB;EAClB,aAAa;AACf;;AAeA;EAZE,iBAAiB;EACjB,eAAe;AACjB;;AAeA;EAZE,+BAA+B;AACjC;;AAeA;EAZE,mCAAmC;EACnC,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;;AAeA;EAZE,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}\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}\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}\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);\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);\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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/popup/service.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAAqD,MAAM,gBAAgB,CAAC;AAMnG,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,kBAAkB,CAAC;AAK9D,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAC;AAEhG,OAAO,EAAqB,KAAK,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,WAAW,EAKjB,MAAM,SAAS,CAAC;AAEjB,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,0DAA0D;AAC1D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;I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AAe,GAAG,IAAI,EACjC,SAAS,CAAC,EAAE,oBAAoB,GAAG,IAAI,GACtC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC1B,6CAA6C;IAC7C,cAAc,CAAC,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACvE,uDAAuD;IACvD,SAAS,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrE,4FAA4F;IAC5F,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3E,kGAAkG;IAClG,kBAAkB,IAAI,OAAO,CAAC;IAC9B,kCAAkC;IAClC,WAAW,IAAI,IAAI,CAAC;IACpB,qDAAqD;IACrD,UAAU,IAAI,IAAI,CAAC;IACnB,yBAAyB;IACzB,UAAU,IAAI,IAAI,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;CAC9B;AA8VD,oEAAoE;AACpE,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAGjE;AAED,kHAAkH;AAClH,wBAAgB,WAAW,IAAI,cAAc,CAE5C;AAED,wGAAwG;AACxG,wBAAgB,QAAQ,IAAI,cAAc,CAEzC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAWzF"}
|
package/dist/popup/service.jsx
CHANGED
|
@@ -43,6 +43,10 @@ function PopupButtonView(props) {
|
|
|
43
43
|
</text>
|
|
44
44
|
</view>;
|
|
45
45
|
}
|
|
46
|
+
const FOOTER_ROW = {
|
|
47
|
+
flexDirection: 'row',
|
|
48
|
+
direction: 'ltr'
|
|
49
|
+
};
|
|
46
50
|
function PopupCardContent(props) {
|
|
47
51
|
var _d_title;
|
|
48
52
|
const { entry, settings, profile, state } = props;
|
|
@@ -92,7 +96,7 @@ function PopupCardContent(props) {
|
|
|
92
96
|
{d.message}
|
|
93
97
|
</text> : null}
|
|
94
98
|
{null != content ? <view className="g9-popup__body">{content}</view> : null}
|
|
95
|
-
{false !== settings.showFooter ? <view className={`g9-popup__footer${stacked ? ' g9-popup__footer--stacked' : ''}`} style={stacked ? {} :
|
|
99
|
+
{false !== settings.showFooter ? <view className={`g9-popup__footer${stacked ? ' g9-popup__footer--stacked' : ''}`} style={stacked ? {} : FOOTER_ROW}>
|
|
96
100
|
{shown.map((button, i)=><PopupButtonView key={i} id={button.testId ? g9SafeId(button.testId) : `G9Popup_Button_${i}`} button={button} profile={profile} busy={entry.busy} stacked={stacked} onPress={()=>void state.service.queue.press(entry.id, i)}/>)}
|
|
97
101
|
{entry.busy ? <G9ActivityIndicator running size={18}/> : null}
|
|
98
102
|
</view> : null}
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { G9Activity, type G9ActivityProps } from './activity.js';
|
|
|
2
2
|
export type { G9CultureContextValue, G9KeyboardState, G9LayoutInfo, G9ProviderCore, G9ShapeStore, G9WindowState, } from './contexts.js';
|
|
3
3
|
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';
|
|
4
4
|
export { G9KeepAlive, type G9KeepAliveProps } from './keep-alive.js';
|
|
5
|
-
export { G9Provider, type G9ProviderProps } from './provider.js';
|
|
5
|
+
export { type G9PreviewOverrides, G9Provider, type G9ProviderProps } from './provider.js';
|
|
6
6
|
export { type G9ExecutorSettings, type G9FieldSettings, type G9ImageRenderer, type G9PageLoadingSettings, type G9ResolvedSettings, type G9Settings, g9DefaultBackEventName, g9PageLoadingDismissDelayMs, g9PageLoadingSafetyTimeoutMs, resolveSettings, } from './settings.js';
|
|
7
7
|
//# 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,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,UAAU,EAAE,KAAK,eAAe,EAAE,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,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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/provider/provider.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;
|
|
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-steps__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,8 +1,27 @@
|
|
|
1
|
-
import { type G9Breakpoints, type G9Capabilities, type G9ColorScheme, type G9Culture, type G9CultureStore, type G9Diagnostics, 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 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';
|
|
5
5
|
import './theme.css';
|
|
6
|
+
/**
|
|
7
|
+
* Values a design tool forces on ONE provider (a preview: the same screen as phone, tablet and desktop side by side),
|
|
8
|
+
* each in place of what the platform reports, for as long as it is set. See `provider-and-host.md` § Previews.
|
|
9
|
+
*/
|
|
10
|
+
export interface G9PreviewOverrides {
|
|
11
|
+
/** The layout class whatever the window (a tablet layout in a narrow frame). `wide` follows it unless set. */
|
|
12
|
+
readonly layout?: G9LayoutClass;
|
|
13
|
+
/** Overlays present as dialogs / side panels (`true`) or from the edge (`false`). Default: from `layout`, else the window. */
|
|
14
|
+
readonly wide?: boolean;
|
|
15
|
+
/** The window (dp) the provider lays out by, in place of `SystemInfo` and `onWindowResize`. */
|
|
16
|
+
readonly window?: {
|
|
17
|
+
readonly width: number;
|
|
18
|
+
readonly height: number;
|
|
19
|
+
};
|
|
20
|
+
/** Safe-area insets (dp) in place of the host's: a notch, a home indicator. */
|
|
21
|
+
readonly insets?: G9SafeInsets;
|
|
22
|
+
/** A soft keyboard open at this height (dp), `0` closed, in place of the host's keyboard events. */
|
|
23
|
+
readonly keyboardHeight?: number;
|
|
24
|
+
}
|
|
6
25
|
/** Props of {@link G9Provider}. */
|
|
7
26
|
export interface G9ProviderProps {
|
|
8
27
|
/**
|
|
@@ -43,6 +62,11 @@ export interface G9ProviderProps {
|
|
|
43
62
|
};
|
|
44
63
|
/** The diagnostics hub. Default: a hub the provider creates. */
|
|
45
64
|
readonly diagnostics?: G9Diagnostics;
|
|
65
|
+
/**
|
|
66
|
+
* Preview overrides (a design tool): a forced layout class, window, safe-area insets or keyboard height for this
|
|
67
|
+
* provider only. Each is live; removing one gives the platform's value back.
|
|
68
|
+
*/
|
|
69
|
+
readonly preview?: G9PreviewOverrides;
|
|
46
70
|
readonly className?: string;
|
|
47
71
|
readonly children?: ReactNode;
|
|
48
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/provider/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/provider/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAElB,KAAK,YAAY,EACjB,KAAK,UAAU,EAEf,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,eAAe,EAWrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAA8D,MAAM,gBAAgB,CAAC;AAqB5G,OAAO,EAAE,KAAK,UAAU,EAA4C,MAAM,YAAY,CAAC;AAEvF,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,8GAA8G;IAC9G,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;IAChC,8HAA8H;IAC9H,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,+FAA+F;IAC/F,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IAC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asCssVariables, assertRequiredCapabilities, createCultureStore, createDiagnostics, createIconFontRegistry, createPreferences, createSafeExecutor, createStrings, createThemeStore, g9Breakpoints, g9MotionScale, resolveLayout, resolveShape, setG9Feedback, subscribeG9Motion, toCssVariables, toDerivedCssVariables,
|
|
1
|
+
import { aliasCssVariables, assertRequiredCapabilities, createCultureStore, createDiagnostics, createIconFontRegistry, createPreferences, createSafeExecutor, createStrings, createThemeStore, g9Breakpoints, g9MotionScale, resolveLayout, resolveShape, setG9Feedback, subscribeG9Motion, toCssVariables, toDerivedCssVariables, toRootCssVariables, toShapeCssVariables } from "@g9tm/lynxcontrols-foundation";
|
|
2
2
|
import { useEffect, useMemo, useRef, useState, useSyncExternalStore } from "@lynx-js/react";
|
|
3
3
|
import { G9AnchorRegistryContext } from "../anchor/context.jsx";
|
|
4
4
|
import { createAnchorRegistry } from "../anchor/registry.jsx";
|
|
@@ -73,7 +73,7 @@ function themeVariables(theme) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
function G9Provider(props) {
|
|
76
|
-
var _props_diagnostics, _props_culture, _props_shape, _props_breakpoints;
|
|
76
|
+
var _props_diagnostics, _props_culture, _props_shape, _props_breakpoints, _ref;
|
|
77
77
|
const { services, persistTheme = true } = props;
|
|
78
78
|
assertRequiredCapabilities(services);
|
|
79
79
|
const [ownDiagnostics] = useState(createDiagnostics);
|
|
@@ -251,11 +251,8 @@ function G9Provider(props) {
|
|
|
251
251
|
aliasKey
|
|
252
252
|
]);
|
|
253
253
|
const [initialVariables] = useState(()=>({
|
|
254
|
-
...toMetricCssVariables(),
|
|
255
|
-
...toLayoutCssVariables(),
|
|
256
|
-
...toShapeCssVariables(shapeStore.get()),
|
|
257
254
|
...aliasVariables,
|
|
258
|
-
...
|
|
255
|
+
...toRootCssVariables(themeStore.getSnapshot(), shapeStore.get(), culture.direction)
|
|
259
256
|
}));
|
|
260
257
|
const [initialScheme] = useState(()=>themeStore.getSnapshot().scheme);
|
|
261
258
|
const applied = useRef({});
|
|
@@ -283,7 +280,7 @@ function G9Provider(props) {
|
|
|
283
280
|
const apply = ()=>{
|
|
284
281
|
const next = {
|
|
285
282
|
...applied.current,
|
|
286
|
-
...toShapeCssVariables(shapeStore.get()),
|
|
283
|
+
...toShapeCssVariables(shapeStore.get(), culture.direction),
|
|
287
284
|
...aliasVariables
|
|
288
285
|
};
|
|
289
286
|
const diff = changedVariables(applied.current, next);
|
|
@@ -295,7 +292,8 @@ function G9Provider(props) {
|
|
|
295
292
|
}, [
|
|
296
293
|
shapeStore,
|
|
297
294
|
aliasVariables,
|
|
298
|
-
rootId
|
|
295
|
+
rootId,
|
|
296
|
+
culture.direction
|
|
299
297
|
]);
|
|
300
298
|
useEffect(()=>{
|
|
301
299
|
if (!persistTheme) return;
|
|
@@ -362,8 +360,24 @@ function G9Provider(props) {
|
|
|
362
360
|
}), [
|
|
363
361
|
breakpointsKey
|
|
364
362
|
]);
|
|
363
|
+
const preview = props.preview;
|
|
364
|
+
const forcedWindow = null == preview ? void 0 : preview.window;
|
|
365
|
+
const viewWindow = useMemo(()=>forcedWindow ? Object.freeze({
|
|
366
|
+
width: Math.max(0, forcedWindow.width),
|
|
367
|
+
height: Math.max(0, forcedWindow.height)
|
|
368
|
+
}) : windowState, [
|
|
369
|
+
null == forcedWindow ? void 0 : forcedWindow.width,
|
|
370
|
+
null == forcedWindow ? void 0 : forcedWindow.height,
|
|
371
|
+
windowState
|
|
372
|
+
]);
|
|
365
373
|
const layoutRef = useRef(null);
|
|
366
|
-
const
|
|
374
|
+
const measuredLayout = layoutInfo(viewWindow.width, viewWindow.height, breakpoints);
|
|
375
|
+
const forcedClass = null == preview ? void 0 : preview.layout;
|
|
376
|
+
const nextLayout = void 0 !== forcedClass || (null == preview ? void 0 : preview.wide) !== void 0 ? Object.freeze({
|
|
377
|
+
...measuredLayout,
|
|
378
|
+
layout: null != forcedClass ? forcedClass : measuredLayout.layout,
|
|
379
|
+
wide: null != (_ref = null == preview ? void 0 : preview.wide) ? _ref : void 0 !== forcedClass ? 'phone' !== forcedClass : measuredLayout.wide
|
|
380
|
+
}) : measuredLayout;
|
|
367
381
|
const prevLayout = layoutRef.current;
|
|
368
382
|
const layout = prevLayout && prevLayout.layout === nextLayout.layout && prevLayout.wide === nextLayout.wide && prevLayout.landscape === nextLayout.landscape && prevLayout.breakpoints === nextLayout.breakpoints ? prevLayout : nextLayout;
|
|
369
383
|
layoutRef.current = layout;
|
|
@@ -374,6 +388,28 @@ function G9Provider(props) {
|
|
|
374
388
|
}, [
|
|
375
389
|
services.host
|
|
376
390
|
]);
|
|
391
|
+
const fi = null == preview ? void 0 : preview.insets;
|
|
392
|
+
const viewInsets = useMemo(()=>fi ? Object.freeze({
|
|
393
|
+
top: fi.top,
|
|
394
|
+
end: fi.end,
|
|
395
|
+
bottom: fi.bottom,
|
|
396
|
+
start: fi.start
|
|
397
|
+
}) : insets, [
|
|
398
|
+
null == fi ? void 0 : fi.top,
|
|
399
|
+
null == fi ? void 0 : fi.end,
|
|
400
|
+
null == fi ? void 0 : fi.bottom,
|
|
401
|
+
null == fi ? void 0 : fi.start,
|
|
402
|
+
insets
|
|
403
|
+
]);
|
|
404
|
+
const forcedKeyboard = null == preview ? void 0 : preview.keyboardHeight;
|
|
405
|
+
const viewKeyboard = useMemo(()=>void 0 === forcedKeyboard ? keyboard : forcedKeyboard > 0 ? Object.freeze({
|
|
406
|
+
visible: true,
|
|
407
|
+
height: forcedKeyboard,
|
|
408
|
+
compatHeight: forcedKeyboard
|
|
409
|
+
}) : HIDDEN_KEYBOARD, [
|
|
410
|
+
forcedKeyboard,
|
|
411
|
+
keyboard
|
|
412
|
+
]);
|
|
377
413
|
const onBack = useStableCallback(()=>{
|
|
378
414
|
const host = g9Hosts.active();
|
|
379
415
|
if (host && host.services === services && 'handled' === host.back.dispatch()) return;
|
|
@@ -392,10 +428,10 @@ function G9Provider(props) {
|
|
|
392
428
|
<G9DiagnosticsContext.Provider value={diagnostics}>
|
|
393
429
|
<G9SettingsContext.Provider value={settings}>
|
|
394
430
|
<G9CultureContext.Provider value={cultureValue}>
|
|
395
|
-
<G9KeyboardContext.Provider value={
|
|
396
|
-
<G9WindowContext.Provider value={
|
|
431
|
+
<G9KeyboardContext.Provider value={viewKeyboard}>
|
|
432
|
+
<G9WindowContext.Provider value={viewWindow}>
|
|
397
433
|
<G9LayoutContext.Provider value={layout}>
|
|
398
|
-
<G9InsetsContext.Provider value={
|
|
434
|
+
<G9InsetsContext.Provider value={viewInsets}>
|
|
399
435
|
<view id={rootId} className={`g9-provider g9-theme-${initialScheme} ${directionClass}${motionOff ? ' g9-motion-off' : ''}${props.className ? ` ${props.className}` : ''}`} style={rootStyle}>
|
|
400
436
|
{props.children}
|
|
401
437
|
</view>
|
|
@@ -82,8 +82,9 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.g9-slider__tooltip-text {
|
|
85
|
-
color: var(--g9-inverse-on-surface);
|
|
86
85
|
font-size: 12px;
|
|
86
|
+
font-family: var(--g9-font-text);
|
|
87
|
+
color: var(--g9-inverse-on-surface);
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
.g9-slider__thumb-value {
|
|
@@ -98,9 +99,10 @@
|
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
.g9-slider__thumb-value-text {
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
font-family: var(--g9-font-text);
|
|
101
104
|
text-align: center;
|
|
102
105
|
color: var(--g9-text-secondary);
|
|
103
|
-
font-size: 12px;
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
.g9-slider__labels {
|
|
@@ -111,8 +113,9 @@
|
|
|
111
113
|
}
|
|
112
114
|
|
|
113
115
|
.g9-slider__label {
|
|
114
|
-
color: var(--g9-text-secondary);
|
|
115
116
|
font-size: 12px;
|
|
117
|
+
font-family: var(--g9-font-text);
|
|
118
|
+
color: var(--g9-text-secondary);
|
|
116
119
|
}
|
|
117
120
|
|
|
118
121
|
.g9-steps {
|
|
@@ -188,13 +191,15 @@
|
|
|
188
191
|
}
|
|
189
192
|
|
|
190
193
|
.g9-steps__label {
|
|
191
|
-
color: var(--g9-text-tertiary);
|
|
192
194
|
font-size: 11px;
|
|
195
|
+
font-family: var(--g9-font-text);
|
|
196
|
+
color: var(--g9-text-tertiary);
|
|
193
197
|
}
|
|
194
198
|
|
|
195
199
|
.g9-steps__label--current {
|
|
196
200
|
color: var(--g9-text-secondary);
|
|
197
201
|
font-weight: 700;
|
|
202
|
+
font-family: var(--g9-font-text);
|
|
198
203
|
}
|
|
199
204
|
|
|
200
205
|
|
|
@@ -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,
|
|
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;;AAYA;EATE,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAYA;EATE,mBAAmB;AACrB;;AAYA;EATE,2BAA2B;AAC7B;;AAYA;EATE,kDAAkD;EAClD,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,WAAW;AACb;;AAYA;EATE,WAAW;EACX,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AAcA;EAXE,2CAA2C;EAC3C,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,mCAAmC;AACrC;;AAcA;EAXE,mCAAmC;AACrC;;AAcA;EAXE,sBAAsB;AACxB;;AAcA;EAXE,8BAA8B;EAC9B,WAAW;EACX,eAAe;EACf,aAAa;AACf;;AAcA;EAXE,mBAAmB;AACrB;;AAcA;EAXE,2BAA2B;AAC7B;;AAcA;EAXE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;AAChC;;AAcA;EAXE,+BAA+B;EAC/B,gBAAgB;EAChB,gCAAgC;AAClC","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/* G9StepSlider: dots on a rail, the chosen one larger */\n.g9-steps {\n display: flex;\n flex-direction: column;\n align-self: stretch;\n width: 100%;\n}\n\n.g9-steps__row {\n position: relative;\n display: flex;\n width: 100%;\n height: 28px;\n align-items: center;\n}\n\n.g9-steps__row--ltr {\n flex-direction: row;\n}\n\n.g9-steps__row--rtl {\n flex-direction: row-reverse;\n}\n\n.g9-steps__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-steps__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-steps__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-steps__dot--on {\n background-color: var(--g9-primary);\n}\n\n.g9-steps__dot--current {\n transform: scale(1.85);\n}\n\n.g9-steps__labels {\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin-top: 2px;\n}\n\n.g9-steps__labels--ltr {\n flex-direction: row;\n}\n\n.g9-steps__labels--rtl {\n flex-direction: row-reverse;\n}\n\n.g9-steps__label {\n font-size: 11px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-tertiary);\n}\n\n.g9-steps__label--current {\n font-weight: 700;\n color: var(--g9-text-secondary);\n font-family: var(--g9-font-text);\n}\n"],"sourceRoot":""}
|
|
@@ -38,23 +38,26 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.g9-selection-row__text {
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
font-family: var(--g9-font-text);
|
|
41
43
|
text-overflow: ellipsis;
|
|
42
44
|
flex: 1;
|
|
43
|
-
font-size: 14px;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.g9-selection__empty {
|
|
48
|
+
font-size: 13px;
|
|
49
|
+
font-family: var(--g9-font-text);
|
|
47
50
|
text-align: center;
|
|
48
51
|
color: var(--g9-text-tertiary);
|
|
49
52
|
padding: 28px 16px;
|
|
50
|
-
font-size: 13px;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
.g9-selection__more {
|
|
56
|
+
font-size: 12px;
|
|
57
|
+
font-family: var(--g9-font-text);
|
|
54
58
|
text-align: center;
|
|
55
59
|
color: var(--g9-text-tertiary);
|
|
56
60
|
padding: 14px 16px;
|
|
57
|
-
font-size: 12px;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
.g9-selection__actions {
|
|
@@ -71,8 +74,9 @@
|
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
.g9-selection__count-text {
|
|
74
|
-
color: var(--g9-on-primary-container);
|
|
75
77
|
font-size: 12px;
|
|
78
|
+
font-family: var(--g9-font-text);
|
|
79
|
+
color: var(--g9-on-primary-container);
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
.g9-list-picker__row {
|
|
@@ -85,9 +89,10 @@
|
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
.g9-list-picker__text {
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
font-family: var(--g9-font-text);
|
|
88
94
|
color: var(--g9-text-primary);
|
|
89
95
|
flex: 1;
|
|
90
|
-
font-size: 14px;
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
.g9-list-picker__apply {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/selection/selection.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,aAAa;AACf;;AAMA;EAHE,mBAAmB;AACrB;;AAMA;EAHE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAMA;EAHE,iBAAiB;AACnB;;AAQA;EALE,sBAAsB;EACtB,uBAAuB;EACvB,gBAAgB;EAChB,aAAa;AACf;;AAQA;EALE,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,aAAa;AACf;;AAQA;EALE,QAAQ;EACR,WAAW;AACb;;AAQA;EALE,uBAAuB;EACvB,OAAO;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/selection/selection.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,aAAa;AACf;;AAMA;EAHE,mBAAmB;AACrB;;AAMA;EAHE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAMA;EAHE,iBAAiB;AACnB;;AAQA;EALE,sBAAsB;EACtB,uBAAuB;EACvB,gBAAgB;EAChB,aAAa;AACf;;AAQA;EALE,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;EACf,aAAa;AACf;;AAQA;EALE,QAAQ;EACR,WAAW;AACb;;AAQA;EALE,eAAe;EACf,gCAAgC;EAChC,uBAAuB;EACvB,OAAO;AACT;;AAQA;EALE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,8BAA8B;EAC9B,kBAAkB;AACpB;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,8BAA8B;EAC9B,kBAAkB;AACpB;;AASA;EANE,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AASA;EANE,6CAA6C;EAC7C,mBAAmB;EACnB,gBAAgB;AAClB;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,qCAAqC;AACvC;;AASA;EANE,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,gBAAgB;EAChB,eAAe;EACf,aAAa;AACf;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,6BAA6B;EAC7B,OAAO;AACT;;AASA;EANE,kBAAkB;AACpB","sourcesContent":["/* Selection sheet and list picker (MAUI G9SelectionSheet, G9BottomSheetListPickerModal). */\n.g9-selection,\n.g9-list-picker {\n display: flex;\n flex-direction: column;\n}\n\n/* MAUI G9SelectionSheet: the sheet's Padding (0, 0, 0, 4) and the rows host's Padding (0, 4, 0, 4) — 4 dp between the\n header and the first row, 8 dp under the last. */\n.g9-selection {\n padding-bottom: 4px;\n}\n\n.g9-selection__items {\n display: flex;\n flex-direction: column;\n padding: 4px 0px;\n}\n\n.g9-selection__search {\n padding: 8px 12px;\n}\n\n/* A column: the inner row stretches to the full width and is centred VERTICALLY (as a row container, the inner row\n was centred horizontally — icon, text and check bunched in the middle of the sheet). */\n.g9-selection-row {\n min-height: 52px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.g9-selection-row__inner {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 12px;\n padding: 0px 16px;\n}\n\n.g9-selection-row__icon-gap {\n width: 0px;\n height: 1px;\n}\n\n.g9-selection-row__text {\n flex: 1;\n font-size: 14px;\n font-family: var(--g9-font-text);\n text-overflow: ellipsis;\n}\n\n.g9-selection__empty {\n padding: 28px 16px;\n font-size: 13px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-text-tertiary);\n}\n\n/* The «N more — search» footer of a long list (MAUI 1.4.8): TextTertiary 12, centred, 16 / 14 padding. */\n.g9-selection__more {\n padding: 14px 16px;\n font-size: 12px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-text-tertiary);\n}\n\n.g9-selection__actions {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 8px;\n}\n\n.g9-selection__count {\n padding: 2px 8px;\n border-radius: 10px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-selection__count-text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-on-primary-container);\n}\n\n.g9-list-picker__row {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 10px;\n min-height: 52px;\n padding: 0px 16px;\n}\n\n.g9-list-picker__text {\n flex: 1;\n font-size: 14px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-primary);\n}\n\n.g9-list-picker__apply {\n padding: 12px 16px;\n}\n"],"sourceRoot":""}
|
package/dist/sheet/frame.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ export interface G9SheetFrameProps {
|
|
|
14
14
|
readonly topInset: number;
|
|
15
15
|
/** The host's bottom safe inset (a visible navigation bar); the surface pads by it. Default 0. */
|
|
16
16
|
readonly bottomInset?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The keyboard's lift (px, settings.avoidKeyboard): the sheet's VIEW ends this far above the screen's bottom. lynx-ui's
|
|
19
|
+
* SheetView is `position: fixed` against the viewport, so lifting the stack around it moved nothing: on a host that
|
|
20
|
+
* does not pad the page for the IME (iOS) no sheet ever rose above the keyboard (AgriPad P-13). Default 0.
|
|
21
|
+
*/
|
|
22
|
+
readonly keyboardLift?: number;
|
|
17
23
|
readonly settings: Required<G9SheetSettings>;
|
|
18
24
|
readonly memo: G9SheetHeightMemo | null;
|
|
19
25
|
/** Culture tag of the memo key. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../src/sheet/frame.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAYrB,OAAO,EAAiB,KAAK,SAAS,EAAoD,MAAM,gBAAgB,CAAC;AAajH,OAAO,EAAE,KAAK,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAgBhE,OAAO,KAAK,EAAE,YAAY,EAAiB,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE,qCAAqC;AACrC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,wEAAwE;IACxE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,kGAAkG;IAClG,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,QAAQ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AAM,CAAC;IAC1B,kGAAkG;IAClG,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC7C,QAAQ,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACxC,mCAAmC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,qFAAqF;IACrF,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAwBD,wHAAwH;AACxH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,aAAa,GAAG,KAAK,EAC9B,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,SAAS,aAAa,EAAE,GAChC,MAAM,CAGR;AAUD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,CA4dhE"}
|
package/dist/sheet/frame.jsx
CHANGED
|
@@ -269,7 +269,11 @@ function G9SheetFrame(props) {
|
|
|
269
269
|
{}
|
|
270
270
|
<SheetView className={`g9-sheet__view${modal ? '' : ' g9-sheet__view--passthrough'}`} nativeProps={{
|
|
271
271
|
'event-through': modal
|
|
272
|
-
}}
|
|
272
|
+
}} {...props.keyboardLift ? {
|
|
273
|
+
style: {
|
|
274
|
+
bottom: `${props.keyboardLift}px`
|
|
275
|
+
}
|
|
276
|
+
} : {}}>
|
|
273
277
|
{modal && entry.inheritsDim && 'opening' === entry.status ? <view className="g9-sheet__scrim" style={{
|
|
274
278
|
backgroundColor: scrimColor(entry, settings, opacity)
|
|
275
279
|
}} bindtap={noop}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../src/sheet/header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,gBAAgB,CAAC;AAM1D,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,WAAW,CAAC;AAEpE,mEAAmE;AACnE,eAAO,MAAM,oBAAoB;;;;;;;;;EAS/B,CAAC;AAmCH,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAgIlE;AAED,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;CAClC;
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../src/sheet/header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,gBAAgB,CAAC;AAM1D,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,WAAW,CAAC;AAEpE,mEAAmE;AACnE,eAAO,MAAM,oBAAoB;;;;;;;;;EAS/B,CAAC;AAmCH,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAgIlE;AAED,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;CAClC;AAKD,mGAAmG;AACnG,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAK9E;AAED,mJAAmJ;AACnJ,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAUlE;AAED,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAC3C,iBAAiB;IACjB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,CAkBxE"}
|
package/dist/sheet/header.jsx
CHANGED
|
@@ -130,6 +130,10 @@ function G9SheetHeader(props) {
|
|
|
130
130
|
{slots}
|
|
131
131
|
</view>;
|
|
132
132
|
}
|
|
133
|
+
const FOOTER_ROW = {
|
|
134
|
+
flexDirection: 'row',
|
|
135
|
+
direction: 'ltr'
|
|
136
|
+
};
|
|
133
137
|
function footerRows(buttons, perRow) {
|
|
134
138
|
const n = Math.max(1, Math.floor(perRow));
|
|
135
139
|
const rows = [];
|
|
@@ -147,10 +151,9 @@ function G9SheetFooter(props) {
|
|
|
147
151
|
}
|
|
148
152
|
function G9SheetFooterBar(props) {
|
|
149
153
|
var _props_maxButtonsPerRow;
|
|
150
|
-
const direction = useG9Direction();
|
|
151
154
|
if (0 === props.buttons.length) return null;
|
|
152
155
|
return <view className="g9-sheet-footer">
|
|
153
|
-
{footerRows(props.buttons, null != (_props_maxButtonsPerRow = props.maxButtonsPerRow) ? _props_maxButtonsPerRow : g9SheetHeaderMetrics.footerMaxButtonsPerRow).map((row, r)=><view key={r} className="g9-sheet-footer__row" style={
|
|
156
|
+
{footerRows(props.buttons, null != (_props_maxButtonsPerRow = props.maxButtonsPerRow) ? _props_maxButtonsPerRow : g9SheetHeaderMetrics.footerMaxButtonsPerRow).map((row, r)=><view key={r} className="g9-sheet-footer__row" style={FOOTER_ROW}>
|
|
154
157
|
{row.map((button, i)=><view key={i} className="g9-sheet-footer__cell">
|
|
155
158
|
{button}
|
|
156
159
|
</view>)}
|
package/dist/sheet/service.d.ts
CHANGED
|
@@ -40,6 +40,11 @@ export interface G9SheetService {
|
|
|
40
40
|
/** The stack (advanced: rendering, tests). */
|
|
41
41
|
readonly stack: G9SheetStack;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* The sheet layer's measured height after its probe reports a layout: a finite, positive height that moved by half a dp
|
|
45
|
+
* or more; anything else keeps the current one (a relayout at the same height re-snaps nothing).
|
|
46
|
+
*/
|
|
47
|
+
export declare function nextStackHeight(current: number, height: unknown): number;
|
|
43
48
|
/**
|
|
44
49
|
* The height the sheets lay out in: the layer's measured box once it has one (it already excludes the lift, and a host's
|
|
45
50
|
* IME padding), else the window less the lift (the first frame).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/sheet/service.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,kBAAkB,CAAC;AAW9D,OAAO,EAAyB,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC3G,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EAErB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,wBAAwB,EAA4B,MAAM,cAAc,CAAC;AAE/G,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhF,0FAA0F;AAC1F,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,IAAI,CAAC;IAC9E,iGAAiG;IACjG,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,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;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAIxE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5F;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAChE,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,GACnB,MAAM,CAIR;AAkED,yDAAyD;AACzD,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,EACpC,WAAW,CAAC,EAAE,sBAAsB,GACnC,cAAc,CAIhB;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,cAAc,CAI5C;AAED;;;GAGG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CAEzC"}
|
package/dist/sheet/service.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolvePresentation } from "@g9tm/lynxcontrols-foundation";
|
|
2
|
-
import { useEffect, useRef, useState, useSyncExternalStore } from "@lynx-js/react";
|
|
2
|
+
import { useCallback, useEffect, useRef, useState, useSyncExternalStore } from "@lynx-js/react";
|
|
3
3
|
import { startTimer, stopTimer } from "../base/timers.jsx";
|
|
4
4
|
import { useG9Host, useG9HostInsets } from "../host/hooks.jsx";
|
|
5
5
|
import { g9Hosts } from "../host/registry.jsx";
|
|
@@ -24,11 +24,11 @@ function StackView(props) {
|
|
|
24
24
|
if (!keyboard.visible) baseline.current = win.height;
|
|
25
25
|
const lift = state.settings.avoidKeyboard ? keyboardLift(keyboard, baseline.current, win.height) : 0;
|
|
26
26
|
const [measured, setMeasured] = useState(0);
|
|
27
|
-
const onStackLayout = (e)=>{
|
|
27
|
+
const onStackLayout = useCallback((e)=>{
|
|
28
28
|
var _e_detail;
|
|
29
29
|
const h = null == (_e_detail = e.detail) ? void 0 : _e_detail.height;
|
|
30
|
-
|
|
31
|
-
};
|
|
30
|
+
setMeasured((current)=>nextStackHeight(current, h));
|
|
31
|
+
}, []);
|
|
32
32
|
const hostHeight = sheetHostHeight(measured, win.height, lift);
|
|
33
33
|
const hostShrunk = measured > 0 && measured < win.height - lift - 1;
|
|
34
34
|
const stack = state.service.stack;
|
|
@@ -82,13 +82,16 @@ function StackView(props) {
|
|
|
82
82
|
var _entry_options_presentation;
|
|
83
83
|
const pref = null != (_entry_options_presentation = entry.options.presentation) ? _entry_options_presentation : 'auto';
|
|
84
84
|
const presentation = 'bottom' === pref ? 'bottom' : resolvePresentation(wide, 'auto' === pref ? 'auto' : pref);
|
|
85
|
-
return 'bottom' !== presentation ? <G9SheetPanelFrame key={entry.frameKey} entry={entry} stack={stack} presentation={presentation} hostWidth={win.width} hostHeight={hostHeight} settings={state.settings} isTop={entry === top}/> : <G9SheetFrame key={entry.frameKey} entry={entry} stack={stack} hostHeight={hostHeight} hostWidth={win.width} topInset={insets.top} bottomInset={lift > 0 || hostShrunk ? 0 : insets.bottom} settings={state.settings} memo={state.service.heightMemo} culture={culture.locale} isTop={entry === top} onRest={(heightPx)=>setRest({
|
|
85
|
+
return 'bottom' !== presentation ? <G9SheetPanelFrame key={entry.frameKey} entry={entry} stack={stack} presentation={presentation} hostWidth={win.width} hostHeight={hostHeight} settings={state.settings} isTop={entry === top}/> : <G9SheetFrame key={entry.frameKey} entry={entry} stack={stack} hostHeight={hostHeight} hostWidth={win.width} topInset={insets.top} bottomInset={lift > 0 || hostShrunk ? 0 : insets.bottom} keyboardLift={lift} settings={state.settings} memo={state.service.heightMemo} culture={culture.locale} isTop={entry === top} onRest={(heightPx)=>setRest({
|
|
86
86
|
id: entry.id,
|
|
87
87
|
heightPx
|
|
88
88
|
})}/>;
|
|
89
89
|
})}
|
|
90
90
|
</view>;
|
|
91
91
|
}
|
|
92
|
+
function nextStackHeight(current, height) {
|
|
93
|
+
return 'number' == typeof height && Number.isFinite(height) && height > 0 && Math.abs(current - height) >= 0.5 ? height : current;
|
|
94
|
+
}
|
|
92
95
|
function sheetHostHeight(measured, windowHeight, lift) {
|
|
93
96
|
return measured > 0 ? measured : Math.max(0, windowHeight - lift);
|
|
94
97
|
}
|
|
@@ -177,4 +180,4 @@ function useG9Sheets() {
|
|
|
177
180
|
function g9Sheets() {
|
|
178
181
|
return sheetServiceOf(g9Hosts.require());
|
|
179
182
|
}
|
|
180
|
-
export { g9Sheets, keyboardLift, sheetHostHeight, sheetServiceOf, useG9Sheets };
|
|
183
|
+
export { g9Sheets, keyboardLift, nextStackHeight, sheetHostHeight, sheetServiceOf, useG9Sheets };
|