@g9tm/lynxcontrols 2.3.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +47936 -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/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 +6 -0
- package/dist/layout/scrollers.d.ts.map +1 -1
- package/dist/layout/scrollers.jsx +5 -1
- package/dist/list/list.css +18 -8
- package/dist/list/list.css.map +1 -1
- package/dist/orb/orb.css +2 -1
- package/dist/orb/orb.css.map +1 -1
- package/dist/orb/orb.d.ts.map +1 -1
- package/dist/orb/orb.jsx +9 -4
- 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 +15 -0
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +18 -6
- 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 +16 -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 +25 -1
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts +6 -0
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +61 -11
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aliasCssVariables, 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,OA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Y;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. */
|
|
@@ -25,6 +31,15 @@ export interface G9SheetFrameProps {
|
|
|
25
31
|
}
|
|
26
32
|
/** The lynx-ui snap index of where a sheet rests: 0 for a fit sheet, else its detent's place (0 when it is unknown). */
|
|
27
33
|
export declare function restingSnapIndex(resting: G9SheetDetent | 'fit', fit: boolean, detents: readonly G9SheetDetent[]): number;
|
|
34
|
+
/**
|
|
35
|
+
* `steady`: the tallest body height seen so far while the sheet is open — a taller report grows it, a shorter one (the
|
|
36
|
+
* content shrinking) never does, and nothing is kept before the sheet is open or without `steady`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function steadyTallest(tallest: number, height: number, steady: boolean, open: boolean): number;
|
|
39
|
+
/** The body's style for `steady`: a minimum height of the tallest body plus its padding, capped by the sheet's room. */
|
|
40
|
+
export declare function steadyBodyStyle(steady: boolean, tallest: number, padding: number, maxBody: number | null | undefined): {
|
|
41
|
+
minHeight?: string;
|
|
42
|
+
};
|
|
28
43
|
/**
|
|
29
44
|
* One sheet of the stack on lynx-ui `SheetRoot` (motion, drag, snap points from lynx-ui; G9 adds detent mapping,
|
|
30
45
|
* scrim, header/footer, deferred content, recede and results). Rendered by the sheet service in the host's sheets
|
|
@@ -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,MAA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AE,OAAO,EACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACjC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAIxB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,CA6dhE"}
|
package/dist/sheet/frame.jsx
CHANGED
|
@@ -50,6 +50,14 @@ function initialDetent(o, fit) {
|
|
|
50
50
|
const current = null != (_o_currentState = o.currentState) ? _o_currentState : 'medium';
|
|
51
51
|
return ordered.includes(current) ? current : null != (_ordered_ = ordered[0]) ? _ordered_ : 'medium';
|
|
52
52
|
}
|
|
53
|
+
function steadyTallest(tallest, height, steady, open) {
|
|
54
|
+
return steady && open && height > tallest ? height : tallest;
|
|
55
|
+
}
|
|
56
|
+
function steadyBodyStyle(steady, tallest, padding, maxBody) {
|
|
57
|
+
return steady && tallest > 0 ? {
|
|
58
|
+
minHeight: `${Math.min(tallest + 2 * padding, null != maxBody ? maxBody : 1 / 0)}px`
|
|
59
|
+
} : {};
|
|
60
|
+
}
|
|
53
61
|
function G9SheetFrame(props) {
|
|
54
62
|
var _o_route, _ref, _ref1, _o_deferredLoadingPlaceholderHeight, _o_loadingSkeletonRowCount, _ratios_layout_initialSnap, _props_bottomInset, _o_padding, _o_scrollToEndThreshold, _o_openAnimationDurationMs, _o_closeAnimationDurationMs, _o_cornerRadius, _o_backgroundColor, _ratios_restIndex, _o_padding1, _o_padding2, _o_padding3;
|
|
55
63
|
var _o_route1, _o_route2, _props_memo;
|
|
@@ -140,7 +148,9 @@ function G9SheetFrame(props) {
|
|
|
140
148
|
var _ref, _o_padding;
|
|
141
149
|
var _e_detail, _indicator_current, _props_memo;
|
|
142
150
|
const h = null != (_ref = null == (_e_detail = e.detail) ? void 0 : _e_detail.height) ? _ref : 0;
|
|
143
|
-
|
|
151
|
+
const steady = true === o.steady;
|
|
152
|
+
const open = 'open' === entry.status;
|
|
153
|
+
setTallest((current)=>steadyTallest(current, h, steady, open));
|
|
144
154
|
null == (_indicator_current = indicator.current) || _indicator_current.setContent(h > 0 ? h + 2 * (null != (_o_padding = o.padding) ? _o_padding : 0) : 0);
|
|
145
155
|
if (h <= 0) return;
|
|
146
156
|
setBodyHeight(h);
|
|
@@ -218,9 +228,7 @@ function G9SheetFrame(props) {
|
|
|
218
228
|
maxBodyHeight: maxBody,
|
|
219
229
|
bodyHeight
|
|
220
230
|
};
|
|
221
|
-
const steadyStyle = o.steady
|
|
222
|
-
minHeight: `${Math.min(tallest + 2 * (null != (_o_padding = o.padding) ? _o_padding : 0), null != maxBody ? maxBody : 1 / 0)}px`
|
|
223
|
-
} : {};
|
|
231
|
+
const steadyStyle = steadyBodyStyle(true === o.steady, tallest, null != (_o_padding = o.padding) ? _o_padding : 0, maxBody);
|
|
224
232
|
const platform = currentPlatform();
|
|
225
233
|
const phone = 'android' === platform || 'ios' === platform;
|
|
226
234
|
const endProps = o.onScrollToEnd ? {
|
|
@@ -269,7 +277,11 @@ function G9SheetFrame(props) {
|
|
|
269
277
|
{}
|
|
270
278
|
<SheetView className={`g9-sheet__view${modal ? '' : ' g9-sheet__view--passthrough'}`} nativeProps={{
|
|
271
279
|
'event-through': modal
|
|
272
|
-
}}
|
|
280
|
+
}} {...props.keyboardLift ? {
|
|
281
|
+
style: {
|
|
282
|
+
bottom: `${props.keyboardLift}px`
|
|
283
|
+
}
|
|
284
|
+
} : {}}>
|
|
273
285
|
{modal && entry.inheritsDim && 'opening' === entry.status ? <view className="g9-sheet__scrim" style={{
|
|
274
286
|
backgroundColor: scrimColor(entry, settings, opacity)
|
|
275
287
|
}} bindtap={noop}>
|
|
@@ -377,4 +389,4 @@ function G9SheetFrame(props) {
|
|
|
377
389
|
</SheetView>
|
|
378
390
|
</SheetRoot>;
|
|
379
391
|
}
|
|
380
|
-
export { G9SheetFrame, restingSnapIndex, useG9SheetContext };
|
|
392
|
+
export { G9SheetFrame, restingSnapIndex, steadyBodyStyle, steadyTallest, useG9SheetContext };
|
|
@@ -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,CAA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C,UAAU,EAAE,iBAAiB,CAAC;IACvC,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;CAC9B;AAoID;;;GAGG;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 };
|
package/dist/sheet/sheet.css
CHANGED
package/dist/sheet/sheet.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/sheet/sheet.css"],"names":[],"mappings":"AACA;EAAE,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAIA;EADE,oBAAoB;EACpB,QAAQ;EACR,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;AACT;;AAKA;EAFE,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,oBAAoB;AACtB;;AAMA;EAHE,oBAAoB;AACtB;;AAMA;EAHE,oBAAoB;EACpB,sBAAsB;EACtB,aAAa;EACb,gBAAgB;AAClB;;AAOA;EAJE,sBAAsB;EACtB,YAAY;EACZ,cAAc;EACd,aAAa;EACb,kBAAkB;EAClB,iBAAiB;AACnB;;AAOA;EAJE,sBAAsB;EACtB,YAAY;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,mBAAmB;EACnB,aAAa;EACb,kBAAkB;AACpB;;AAiBA;EAdE,kCAAkC;EAClC,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClB,aAAa;AACf;;AAmBA;EAhBE,mBAAmB;EACnB,OAAO;EACP,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,mBAAmB;EACnB,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,mBAAmB;EACnB,yBAAyB;EACzB,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,yBAAyB;AAC3B;;AAmBA;EAhBE,mBAAmB;EACnB,OAAO;EACP,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,cAAc;AAChB;;AAmBA;EAhBE,2BAA2B;EAC3B,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,0BAA0B;EAC1B,uBAAuB;EACvB,iBAAiB;
|
|
1
|
+
{"version":3,"sources":["webpack://./src/sheet/sheet.css"],"names":[],"mappings":"AACA;EAAE,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAIA;EADE,oBAAoB;EACpB,QAAQ;EACR,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;AACT;;AAKA;EAFE,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,oBAAoB;AACtB;;AAMA;EAHE,oBAAoB;AACtB;;AAMA;EAHE,oBAAoB;EACpB,sBAAsB;EACtB,aAAa;EACb,gBAAgB;AAClB;;AAOA;EAJE,sBAAsB;EACtB,YAAY;EACZ,cAAc;EACd,aAAa;EACb,kBAAkB;EAClB,iBAAiB;AACnB;;AAOA;EAJE,sBAAsB;EACtB,YAAY;EACZ,cAAc;EACd,aAAa;EACb,gBAAgB;AAClB;;AAQA;EALE,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAQA;EALE,oBAAoB;EACpB,kBAA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B;EACnB,OAAO;EACP,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,mBAAmB;EACnB,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,mBAAmB;EACnB,yBAAyB;EACzB,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,yBAAyB;AAC3B;;AAmBA;EAhBE,mBAAmB;EACnB,OAAO;EACP,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,cAAc;AAChB;;AAmBA;EAhBE,2BAA2B;EAC3B,mBAAmB;EACnB,aAAa;AACf;;AAmBA;EAhBE,0BAA0B;EAC1B,uBAAuB;EACvB,iBAAiB;EACjB,gCAAgC;AAClC;;AAmBA;EAhBE,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAoBA;EAjBE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAoBA;EAjBE,uBAAuB;EACvB,qBAAqB;EACrB,2CAA2C;EAC3C,sBAAsB;EACtB,YAAY;EACZ,kBAAkB;EAClB,aAAa;AACf;;AAoBA;EAjBE,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAsBA;EAnBE,sBAAsB;EACtB,OAAO;EACP,aAAa;AACf;;AAuBA;EApBE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAuBA;EApBE,sBAAsB;EACtB,aAAa;AACf;;AAwBA;EArBE,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,aAAa;AACf;;AAwBA;EArBE,sCAAsC;EACtC,sBAAsB;EACtB,OAAO;EACP,aAAa;EACb,aAAa;EACb,gBAAgB;AAClB","sourcesContent":["/* G9 sheets on lynx-ui Sheet (MAUI G9SheetView / header template). No shadows. */\n.g9-sheet-stack {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n}\n\n/* The layer's height, measured (service.tsx): a childless, zero-width, full-height box no sheet event passes through. */\n.g9-sheet-stack__probe {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 0;\n pointer-events: none;\n}\n\n/* lynx-ui SheetView (position: fixed): the whole viewport, so the sheet rises from the bottom edge. */\n.g9-sheet__view {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n\n/* A non-modal sheet's view lets every touch it does not cover through to the page, native views included. */\n.g9-sheet__view--passthrough {\n pointer-events: none;\n}\n\n.g9-sheet__view--passthrough .g9-sheet {\n pointer-events: auto;\n}\n\n.g9-sheet {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n pointer-events: auto;\n}\n\n/* G9's own views inside lynx-ui's SheetContent (whose style a worklet owns): the frame recedes, the surface paints. */\n.g9-sheet__frame {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n flex-shrink: 0;\n position: relative;\n overflow: visible;\n}\n\n.g9-sheet__surface {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n flex-shrink: 0;\n overflow: hidden;\n}\n\n/* Paints below the surface for a drag past the top detent; outside the layout, so fit heights ignore it. */\n.g9-sheet__skirt {\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n height: 50vh;\n}\n\n.g9-sheet__scrim {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: auto;\n}\n\n.g9-sheet__scrim--covered {\n pointer-events: none;\n}\n\n/* The drag-catcher inside the dim (frame.tsx): fills it, takes the slides the platform would hand to the page behind. */\n.g9-sheet__scrim-catch {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n\n.g9-sheet__scrim--covered .g9-sheet__scrim-catch {\n pointer-events: none;\n}\n\n.g9-sheet__grabber-area {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 30px;\n}\n\n.g9-sheet__grabber {\n width: 32px;\n height: 4px;\n border-radius: 12px;\n background-color: var(--g9-outline-variant);\n}\n\n/* The grabber, header and body gap, measured as one: a fit sheet's cap includes them (MAUI). */\n.g9-sheet__chrome-top {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n}\n\n/* MAUI UseStandardBodyTopGap: SheetHeaderVerticalGap under the header (10, or the app's scaled value). */\n.g9-sheet__body-gap {\n height: var(--g9-layout-sheet-header-vertical-gap, 10px);\n}\n\n.g9-sheet__body {\n flex-shrink: 1;\n}\n\n.g9-sheet__body--fill {\n flex: 1;\n}\n\n/* scrollIndicator: 'always' — the scroller and its thumb (scroll-indicator.tsx). The frame takes the body's place. */\n.g9-sheet__body-frame {\n display: flex;\n flex-direction: column;\n flex-shrink: 1;\n position: relative;\n}\n\n.g9-sheet__scroll-thumb {\n position: absolute;\n background-color: var(--g9-on-surface-variant);\n opacity: 0.45;\n pointer-events: none;\n}\n\n.g9-sheet__content {\n display: flex;\n flex-direction: column;\n position: relative;\n}\n\n/* scrollBody: false — the content scrolls itself and fills the body (longhands: a definite basis for its children). */\n.g9-sheet__body--static {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n overflow: hidden;\n}\n\n/* scrollBody: false in a fit sheet — as tall as the content (which sizes its own scrolling part: G9SheetScrollRegion) */\n.g9-sheet__body--static-fit {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n}\n\n.g9-sheet__content--fill {\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n}\n\n.g9-sheet__placeholder {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-sheet__cover {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n background-color: var(--g9-surface-container);\n animation: g9-sheet-cover-out 220ms ease-out forwards;\n}\n\n@keyframes g9-sheet-cover-out {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.g9-sheet-reveal {\n animation: g9-sheet-reveal-in 140ms ease-out;\n}\n\n@keyframes g9-sheet-reveal-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.g9-sheet-loading,\n.g9-processing-sheet__loading {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.g9-sheet-header {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 10px 16px;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: rgba(121, 116, 126, 0.35);\n}\n\n.g9-sheet-header__side {\n display: flex;\n flex-direction: row;\n flex: 1;\n align-items: center;\n}\n\n.g9-sheet-header__start {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.g9-sheet-header__end {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-end;\n}\n\n.g9-sheet-header__side.g9-sheet-header__end {\n justify-content: flex-end;\n}\n\n.g9-sheet-header__grow {\n display: flex;\n flex-direction: row;\n flex: 1;\n align-items: center;\n}\n\n.g9-sheet-header__title-near {\n padding: 0px 8px;\n}\n\n.g9-sheet-header__back {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n}\n\n.g9-sheet-header__title {\n font-weight: bold;\n color: var(--g9-secondary);\n text-overflow: ellipsis;\n font-family: var(--g9-font-text);\n}\n\n.g9-sheet-header__items {\n display: flex;\n flex-direction: row;\n column-gap: 8px;\n}\n\n/* Holds the footer (or nothing) so its height is measured with the body's for a fit sheet. */\n.g9-sheet__footer-slot {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n}\n\n.g9-sheet-footer {\n display: flex;\n flex-direction: column;\n row-gap: 8px;\n padding: 12px 16px;\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: var(--g9-outline-variant);\n}\n\n.g9-sheet-footer__row {\n display: flex;\n flex-direction: row;\n column-gap: 8px;\n}\n\n/* A column: whatever a cell holds (a button, a wrapper around one) stretches to the cell's width, as MAUI's footer\n buttons fill their cell. */\n.g9-sheet-footer__cell {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n/* G9SheetScrollRegion: never shrinks under its siblings (native Lynx has no min-height:auto) */\n.g9-sheet-region {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n}\n\n.g9-sheet-region__content {\n display: flex;\n flex-direction: column;\n}\n\n/* G9SheetBackdropScope: the region that recedes behind a sheet */\n.g9-backdrop-scope {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0px;\n}\n\n.g9-backdrop-scope__content {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0px;\n overflow: hidden;\n background-color: var(--g9-background);\n}\n"],"sourceRoot":""}
|
package/dist/shell/shell.css
CHANGED
|
@@ -79,9 +79,10 @@
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.g9-side-nav__heading {
|
|
82
|
+
font-size: 11px;
|
|
83
|
+
font-family: var(--g9-font-text);
|
|
82
84
|
color: var(--g9-text-tertiary);
|
|
83
85
|
padding: 14px 12px 6px;
|
|
84
|
-
font-size: 11px;
|
|
85
86
|
font-weight: 700;
|
|
86
87
|
}
|
|
87
88
|
|
|
@@ -99,14 +100,16 @@
|
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
.g9-side-nav__label {
|
|
103
|
+
font-size: 14px;
|
|
104
|
+
font-family: var(--g9-font-text);
|
|
102
105
|
color: var(--g9-text-secondary);
|
|
103
106
|
flex: 1;
|
|
104
|
-
font-size: 14px;
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
.g9-side-nav__label--on {
|
|
108
110
|
color: var(--g9-on-primary-container);
|
|
109
111
|
font-weight: 700;
|
|
112
|
+
font-family: var(--g9-font-text);
|
|
110
113
|
}
|
|
111
114
|
|
|
112
115
|
.g9-side-nav__footer {
|
|
@@ -184,13 +187,15 @@
|
|
|
184
187
|
}
|
|
185
188
|
|
|
186
189
|
.g9-rail__label {
|
|
187
|
-
color: var(--g9-text-secondary);
|
|
188
190
|
font-size: 11px;
|
|
191
|
+
font-family: var(--g9-font-text);
|
|
192
|
+
color: var(--g9-text-secondary);
|
|
189
193
|
}
|
|
190
194
|
|
|
191
195
|
.g9-rail__label--on {
|
|
192
196
|
color: var(--g9-text-primary);
|
|
193
197
|
font-weight: 700;
|
|
198
|
+
font-family: var(--g9-font-text);
|
|
194
199
|
}
|
|
195
200
|
|
|
196
201
|
.g9-rail__footer {
|
|
@@ -212,8 +217,9 @@
|
|
|
212
217
|
}
|
|
213
218
|
|
|
214
219
|
.g9-top-bar__title {
|
|
215
|
-
color: var(--g9-text-primary);
|
|
216
220
|
font-size: 17px;
|
|
221
|
+
font-family: var(--g9-font-text);
|
|
222
|
+
color: var(--g9-text-primary);
|
|
217
223
|
font-weight: 700;
|
|
218
224
|
}
|
|
219
225
|
|
|
@@ -261,12 +267,14 @@
|
|
|
261
267
|
}
|
|
262
268
|
|
|
263
269
|
.g9-conn__text {
|
|
264
|
-
color: var(--g9-text-primary);
|
|
265
270
|
font-size: 12px;
|
|
271
|
+
font-family: var(--g9-font-text);
|
|
272
|
+
color: var(--g9-text-primary);
|
|
266
273
|
}
|
|
267
274
|
|
|
268
275
|
.g9-conn__text--strong {
|
|
269
276
|
font-weight: 700;
|
|
277
|
+
font-family: var(--g9-font-text);
|
|
270
278
|
}
|
|
271
279
|
|
|
272
280
|
.g9-conn__retry {
|
|
@@ -316,9 +324,10 @@
|
|
|
316
324
|
}
|
|
317
325
|
|
|
318
326
|
.g9-update-bar__text {
|
|
327
|
+
font-size: 13px;
|
|
328
|
+
font-family: var(--g9-font-text);
|
|
319
329
|
color: var(--g9-inverse-on-surface);
|
|
320
330
|
flex: 1;
|
|
321
|
-
font-size: 13px;
|
|
322
331
|
}
|
|
323
332
|
|
|
324
333
|
.g9-update-bar__action {
|
|
@@ -327,15 +336,17 @@
|
|
|
327
336
|
}
|
|
328
337
|
|
|
329
338
|
.g9-update-bar__action-text {
|
|
330
|
-
color: var(--g9-inverse-primary);
|
|
331
339
|
font-size: 13px;
|
|
340
|
+
font-family: var(--g9-font-text);
|
|
341
|
+
color: var(--g9-inverse-primary);
|
|
332
342
|
font-weight: 800;
|
|
333
343
|
}
|
|
334
344
|
|
|
335
345
|
.g9-update-bar__dismiss {
|
|
346
|
+
font-size: 13px;
|
|
347
|
+
font-family: var(--g9-font-text);
|
|
336
348
|
color: var(--g9-inverse-on-surface);
|
|
337
349
|
opacity: .8;
|
|
338
|
-
font-size: 13px;
|
|
339
350
|
}
|
|
340
351
|
|
|
341
352
|
|