@g9tm/lynxcontrols 1.7.3 → 2.2.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 +12 -5
- package/dist/.tsbuildinfo +1 -1
- package/dist/anchor/context.jsx +0 -2
- package/dist/anchor/hooks.d.ts.map +1 -1
- package/dist/anchor/hooks.jsx +6 -4
- package/dist/anchor/measure.jsx +0 -2
- package/dist/anchor/registry.d.ts +12 -2
- package/dist/anchor/registry.d.ts.map +1 -1
- package/dist/anchor/registry.jsx +11 -3
- package/dist/anchor/scroll.jsx +0 -2
- package/dist/base/control.d.ts +18 -2
- package/dist/base/control.d.ts.map +1 -1
- package/dist/base/control.jsx +16 -9
- package/dist/base/corner-badge.jsx +0 -2
- package/dist/base/disposer.jsx +0 -2
- package/dist/base/index.d.ts +3 -2
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.jsx +3 -2
- package/dist/base/press.css +83 -0
- package/dist/base/press.css.map +1 -0
- package/dist/base/press.d.ts +13 -2
- package/dist/base/press.d.ts.map +1 -1
- package/dist/base/press.jsx +49 -5
- package/dist/base/pressable.d.ts +10 -1
- package/dist/base/pressable.d.ts.map +1 -1
- package/dist/base/pressable.jsx +13 -8
- package/dist/base/selection-item.jsx +0 -2
- package/dist/base/timers.jsx +0 -2
- package/dist/base/tone.d.ts +15 -0
- package/dist/base/tone.d.ts.map +1 -0
- package/dist/base/tone.jsx +71 -0
- package/dist/base/use-controllable-state.jsx +0 -2
- package/dist/base/use-stable-callback.jsx +0 -2
- package/dist/button/button-variants.css +236 -0
- package/dist/button/button-variants.css.map +1 -0
- package/dist/button/button.css +21 -0
- package/dist/button/button.css.map +1 -1
- package/dist/button/button.d.ts +13 -1
- package/dist/button/button.d.ts.map +1 -1
- package/dist/button/button.jsx +51 -38
- package/dist/button/header-action-button.d.ts +1 -0
- package/dist/button/header-action-button.d.ts.map +1 -1
- package/dist/button/header-action-button.jsx +6 -7
- package/dist/button/icon-button.d.ts +11 -1
- package/dist/button/icon-button.d.ts.map +1 -1
- package/dist/button/icon-button.jsx +21 -17
- package/dist/button/nav-card.d.ts +1 -0
- package/dist/button/nav-card.d.ts.map +1 -1
- package/dist/button/nav-card.jsx +6 -7
- package/dist/button/safe-tap.jsx +0 -2
- package/dist/button/safe.jsx +3 -5
- package/dist/button/variant-css.d.ts +8 -0
- package/dist/button/variant-css.d.ts.map +1 -0
- package/dist/button/variant-css.jsx +47 -0
- package/dist/button/vertical-icon-text-button.d.ts.map +1 -1
- package/dist/button/vertical-icon-text-button.jsx +1 -3
- package/dist/button/visuals.d.ts +7 -1
- package/dist/button/visuals.d.ts.map +1 -1
- package/dist/button/visuals.jsx +5 -5
- package/dist/cascade/cascade-panel.jsx +0 -2
- package/dist/cascade/model.jsx +0 -2
- package/dist/commands/commands.css +167 -0
- package/dist/commands/commands.css.map +1 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.jsx +2 -0
- package/dist/commands/keys.d.ts +22 -0
- package/dist/commands/keys.d.ts.map +1 -0
- package/dist/commands/keys.jsx +119 -0
- package/dist/commands/palette.d.ts +62 -0
- package/dist/commands/palette.d.ts.map +1 -0
- package/dist/commands/palette.jsx +175 -0
- package/dist/deferred/deferred-content.jsx +2 -4
- package/dist/deferred/readiness-signal.jsx +0 -2
- package/dist/display/activity-indicator.jsx +0 -2
- package/dist/display/culture-date-time-label.jsx +1 -3
- package/dist/display/extras.css +117 -0
- package/dist/display/extras.css.map +1 -0
- package/dist/display/extras.d.ts +65 -0
- package/dist/display/extras.d.ts.map +1 -0
- package/dist/display/extras.jsx +118 -0
- package/dist/display/figures-index.d.ts +3 -0
- package/dist/display/figures-index.d.ts.map +1 -0
- package/dist/display/figures-index.jsx +2 -0
- package/dist/display/figures.css +249 -0
- package/dist/display/figures.css.map +1 -0
- package/dist/display/figures.d.ts +132 -0
- package/dist/display/figures.d.ts.map +1 -0
- package/dist/display/figures.jsx +223 -0
- package/dist/display/image.css +46 -0
- package/dist/display/image.css.map +1 -0
- package/dist/display/image.d.ts +32 -0
- package/dist/display/image.d.ts.map +1 -0
- package/dist/display/image.jsx +49 -0
- package/dist/display/index.d.ts +6 -0
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.jsx +6 -0
- package/dist/display/keycap.css +32 -0
- package/dist/display/keycap.css.map +1 -0
- package/dist/display/keycap.d.ts +20 -0
- package/dist/display/keycap.d.ts.map +1 -0
- package/dist/display/keycap.jsx +17 -0
- package/dist/display/motion-figures.css +168 -0
- package/dist/display/motion-figures.css.map +1 -0
- package/dist/display/motion-figures.d.ts +155 -0
- package/dist/display/motion-figures.d.ts.map +1 -0
- package/dist/display/motion-figures.jsx +246 -0
- package/dist/display/progress-bar.jsx +1 -3
- package/dist/display/separator.d.ts.map +1 -1
- package/dist/display/separator.jsx +2 -4
- package/dist/display/shimmer.jsx +0 -2
- package/dist/display/skeleton.css +72 -0
- package/dist/display/skeleton.css.map +1 -0
- package/dist/display/status.css +111 -0
- package/dist/display/status.css.map +1 -0
- package/dist/display/status.d.ts +67 -0
- package/dist/display/status.d.ts.map +1 -0
- package/dist/display/status.jsx +117 -0
- package/dist/display/theme-preview.css +244 -0
- package/dist/display/theme-preview.css.map +1 -0
- package/dist/display/theme-preview.d.ts +19 -0
- package/dist/display/theme-preview.d.ts.map +1 -0
- package/dist/display/theme-preview.jsx +89 -0
- package/dist/display/title-with-line.d.ts.map +1 -1
- package/dist/display/title-with-line.jsx +2 -4
- package/dist/edge-panel/edge-panel.jsx +0 -2
- package/dist/edge-panel/helper.jsx +0 -2
- package/dist/edge-panel/types.jsx +0 -2
- package/dist/effects/countdown.d.ts +36 -0
- package/dist/effects/countdown.d.ts.map +1 -0
- package/dist/effects/countdown.jsx +93 -0
- package/dist/effects/effects.css +94 -0
- package/dist/effects/effects.css.map +1 -0
- package/dist/effects/effects.d.ts +83 -0
- package/dist/effects/effects.d.ts.map +1 -0
- package/dist/effects/effects.jsx +183 -0
- package/dist/effects/index.d.ts +3 -0
- package/dist/effects/index.d.ts.map +1 -0
- package/dist/effects/index.jsx +2 -0
- package/dist/expander/expander.d.ts +1 -0
- package/dist/expander/expander.d.ts.map +1 -1
- package/dist/expander/expander.jsx +22 -23
- package/dist/fields/dictation.jsx +0 -2
- package/dist/fields/editor.jsx +2 -4
- package/dist/fields/extra-entries.css +133 -0
- package/dist/fields/extra-entries.css.map +1 -0
- package/dist/fields/extra-entries.d.ts +98 -0
- package/dist/fields/extra-entries.d.ts.map +1 -0
- package/dist/fields/extra-entries.jsx +323 -0
- package/dist/fields/fields.css +4 -0
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/index.d.ts +4 -3
- package/dist/fields/index.d.ts.map +1 -1
- package/dist/fields/index.jsx +1 -0
- package/dist/fields/input-policy.jsx +0 -2
- package/dist/fields/notch.jsx +0 -2
- package/dist/fields/outlined-field.d.ts +9 -0
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +10 -8
- package/dist/fields/pin-entry.d.ts.map +1 -1
- package/dist/fields/pin-entry.jsx +11 -13
- package/dist/fields/search-entry.jsx +2 -4
- package/dist/fields/slot-layout.jsx +0 -2
- package/dist/fields/text-entry.jsx +2 -4
- package/dist/fields/use-dictation.jsx +0 -2
- package/dist/fields/use-text-input.d.ts +1 -1
- package/dist/fields/use-text-input.jsx +0 -2
- package/dist/fields/validator.jsx +0 -2
- package/dist/guide/confirm-sheet.d.ts +1 -1
- package/dist/guide/confirm-sheet.d.ts.map +1 -1
- package/dist/guide/confirm-sheet.jsx +6 -26
- package/dist/guide/journey.jsx +0 -2
- package/dist/guide/placement.jsx +0 -2
- package/dist/guide/service.jsx +0 -2
- package/dist/guide/settings.jsx +0 -2
- package/dist/header/app-bar.d.ts +35 -0
- package/dist/header/app-bar.d.ts.map +1 -0
- package/dist/header/app-bar.jsx +64 -0
- package/dist/header/header.css +79 -0
- package/dist/header/header.css.map +1 -0
- package/dist/header/index.d.ts +2 -0
- package/dist/header/index.d.ts.map +1 -0
- package/dist/header/index.jsx +1 -0
- package/dist/host/back.jsx +0 -2
- package/dist/host/hooks.jsx +0 -2
- package/dist/host/host.css +1 -0
- package/dist/host/host.css.map +1 -1
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +50 -17
- package/dist/host/keyboard.jsx +0 -2
- package/dist/host/layers.jsx +0 -2
- package/dist/host/page-loading-overlay.jsx +0 -2
- package/dist/host/readiness.jsx +0 -2
- package/dist/host/registry.d.ts +9 -0
- package/dist/host/registry.d.ts.map +1 -1
- package/dist/host/registry.jsx +0 -2
- package/dist/icon/icon.d.ts +16 -0
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +53 -14
- package/dist/icon/index.d.ts +1 -1
- package/dist/icon/index.d.ts.map +1 -1
- package/dist/icon/index.jsx +1 -1
- package/dist/icon/slot.jsx +0 -2
- package/dist/icon/swatch.jsx +0 -2
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/containers.d.ts +113 -0
- package/dist/layout/containers.d.ts.map +1 -0
- package/dist/layout/containers.jsx +195 -0
- package/dist/layout/index.d.ts +4 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/index.jsx +3 -0
- package/dist/layout/layout.css +361 -0
- package/dist/layout/layout.css.map +1 -0
- package/dist/layout/scroll-spy.d.ts +18 -0
- package/dist/layout/scroll-spy.d.ts.map +1 -0
- package/dist/layout/scroll-spy.jsx +38 -0
- package/dist/layout/scrollers.d.ts +96 -0
- package/dist/layout/scrollers.d.ts.map +1 -0
- package/dist/layout/scrollers.jsx +208 -0
- package/dist/list/gestures.d.ts +40 -0
- package/dist/list/gestures.d.ts.map +1 -0
- package/dist/list/gestures.jsx +142 -0
- package/dist/list/index.d.ts +4 -0
- package/dist/list/index.d.ts.map +1 -0
- package/dist/list/index.jsx +3 -0
- package/dist/list/list.css +194 -0
- package/dist/list/list.css.map +1 -0
- package/dist/list/rows.d.ts +69 -0
- package/dist/list/rows.d.ts.map +1 -0
- package/dist/list/rows.jsx +105 -0
- package/dist/list/virtual-list.d.ts +94 -0
- package/dist/list/virtual-list.d.ts.map +1 -0
- package/dist/list/virtual-list.jsx +159 -0
- package/dist/orb/hold-button.d.ts +26 -0
- package/dist/orb/hold-button.d.ts.map +1 -0
- package/dist/orb/hold-button.jsx +33 -0
- package/dist/orb/hold.d.ts +36 -0
- package/dist/orb/hold.d.ts.map +1 -0
- package/dist/orb/hold.jsx +76 -0
- package/dist/orb/index.d.ts +5 -0
- package/dist/orb/index.d.ts.map +1 -0
- package/dist/orb/index.jsx +4 -0
- package/dist/orb/model.d.ts +42 -0
- package/dist/orb/model.d.ts.map +1 -0
- package/dist/orb/model.jsx +42 -0
- package/dist/orb/orb.css +81 -0
- package/dist/orb/orb.css.map +1 -0
- package/dist/orb/orb.d.ts +66 -0
- package/dist/orb/orb.d.ts.map +1 -0
- package/dist/orb/orb.jsx +189 -0
- package/dist/pickers/combo-box.jsx +0 -2
- package/dist/pickers/date-time-picker.jsx +0 -2
- package/dist/pickers/date-time.jsx +0 -2
- package/dist/pickers/day-stepper.css +43 -0
- package/dist/pickers/day-stepper.css.map +1 -0
- package/dist/pickers/day-stepper.d.ts +31 -0
- package/dist/pickers/day-stepper.d.ts.map +1 -0
- package/dist/pickers/day-stepper.jsx +60 -0
- package/dist/pickers/index.d.ts +1 -0
- package/dist/pickers/index.d.ts.map +1 -1
- package/dist/pickers/index.jsx +1 -0
- package/dist/pickers/picker-sheet.jsx +0 -2
- package/dist/pickers/picker.d.ts +11 -0
- package/dist/pickers/picker.d.ts.map +1 -1
- package/dist/pickers/picker.jsx +53 -9
- package/dist/pickers/timespan-picker.jsx +0 -2
- package/dist/pickers/timespan.jsx +0 -2
- package/dist/pickers/trigger.jsx +0 -2
- package/dist/pickers/wheel-column.jsx +0 -2
- package/dist/plus-button/model.jsx +0 -2
- package/dist/plus-button/plus-button.jsx +0 -2
- package/dist/popover/index.d.ts +3 -0
- package/dist/popover/index.d.ts.map +1 -0
- package/dist/popover/index.jsx +2 -0
- package/dist/popover/popover.css +183 -0
- package/dist/popover/popover.css.map +1 -0
- package/dist/popover/popover.d.ts +139 -0
- package/dist/popover/popover.d.ts.map +1 -0
- package/dist/popover/popover.jsx +291 -0
- package/dist/popover/position.d.ts +35 -0
- package/dist/popover/position.d.ts.map +1 -0
- package/dist/popover/position.jsx +53 -0
- package/dist/popup/frame.jsx +0 -2
- package/dist/popup/input-form.jsx +0 -2
- package/dist/popup/input.jsx +0 -2
- package/dist/popup/popup-view.jsx +0 -2
- package/dist/popup/queue.jsx +0 -2
- package/dist/popup/service.jsx +0 -2
- package/dist/popup/types.jsx +0 -2
- package/dist/provider/activity.d.ts +13 -0
- package/dist/provider/activity.d.ts.map +1 -0
- package/dist/provider/activity.jsx +55 -0
- package/dist/provider/contexts.d.ts +32 -1
- package/dist/provider/contexts.d.ts.map +1 -1
- package/dist/provider/contexts.jsx +7 -3
- package/dist/provider/global-events.jsx +0 -2
- package/dist/provider/hooks.d.ts +16 -2
- package/dist/provider/hooks.d.ts.map +1 -1
- package/dist/provider/hooks.jsx +35 -7
- package/dist/provider/index.d.ts +4 -2
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.jsx +3 -1
- package/dist/provider/keep-alive.css +19 -0
- package/dist/provider/keep-alive.css.map +1 -0
- package/dist/provider/keep-alive.d.ts +23 -0
- package/dist/provider/keep-alive.d.ts.map +1 -0
- package/dist/provider/keep-alive.jsx +9 -0
- package/dist/provider/provider.css +1 -1
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/provider.d.ts +13 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +128 -15
- package/dist/provider/settings.d.ts +23 -0
- package/dist/provider/settings.d.ts.map +1 -1
- package/dist/provider/settings.jsx +5 -4
- package/dist/provider/theme-css.d.ts +1 -1
- package/dist/provider/theme-css.d.ts.map +1 -1
- package/dist/provider/theme-css.jsx +21 -10
- package/dist/provider/theme-root.d.ts.map +1 -1
- package/dist/provider/theme-root.jsx +7 -5
- package/dist/provider/theme.css +72 -0
- package/dist/provider/theme.css.map +1 -1
- package/dist/range-slider/index.d.ts +1 -0
- package/dist/range-slider/index.d.ts.map +1 -1
- package/dist/range-slider/index.jsx +1 -0
- package/dist/range-slider/math.jsx +0 -2
- package/dist/range-slider/range-slider.css +82 -0
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/range-slider.jsx +0 -2
- package/dist/range-slider/step-slider.d.ts +18 -0
- package/dist/range-slider/step-slider.d.ts.map +1 -0
- package/dist/range-slider/step-slider.jsx +55 -0
- package/dist/route/hooks.jsx +0 -2
- package/dist/route/router.jsx +0 -2
- package/dist/selection/model.jsx +0 -2
- package/dist/selection/selection-sheet.d.ts.map +1 -1
- package/dist/selection/selection-sheet.jsx +31 -4
- package/dist/selection/use-selection-model.jsx +0 -2
- package/dist/selection/window.jsx +0 -2
- package/dist/sheet/backdrop-scope.d.ts +14 -0
- package/dist/sheet/backdrop-scope.d.ts.map +1 -0
- package/dist/sheet/backdrop-scope.jsx +25 -0
- package/dist/sheet/context.d.ts +22 -0
- package/dist/sheet/context.d.ts.map +1 -0
- package/dist/sheet/context.jsx +7 -0
- package/dist/sheet/frame.d.ts +2 -17
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +23 -19
- package/dist/sheet/gesture.jsx +1 -3
- package/dist/sheet/handoff.jsx +0 -2
- package/dist/sheet/header.jsx +3 -3
- package/dist/sheet/height-memo.jsx +0 -2
- package/dist/sheet/index.d.ts +2 -0
- package/dist/sheet/index.d.ts.map +1 -1
- package/dist/sheet/index.jsx +2 -0
- package/dist/sheet/loadable.jsx +0 -2
- package/dist/sheet/motion.jsx +0 -2
- package/dist/sheet/options.d.ts +17 -0
- package/dist/sheet/options.d.ts.map +1 -1
- package/dist/sheet/options.jsx +2 -3
- package/dist/sheet/panel-frame.css +204 -0
- package/dist/sheet/panel-frame.css.map +1 -0
- package/dist/sheet/panel-frame.d.ts +16 -0
- package/dist/sheet/panel-frame.d.ts.map +1 -0
- package/dist/sheet/panel-frame.jsx +103 -0
- package/dist/sheet/processing.jsx +0 -2
- package/dist/sheet/scroll-indicator.jsx +0 -2
- package/dist/sheet/scroll-region.d.ts +19 -0
- package/dist/sheet/scroll-region.d.ts.map +1 -0
- package/dist/sheet/scroll-region.jsx +58 -0
- package/dist/sheet/service.d.ts.map +1 -1
- package/dist/sheet/service.jsx +23 -9
- package/dist/sheet/sheet.css +33 -0
- package/dist/sheet/sheet.css.map +1 -1
- package/dist/sheet/sheet.jsx +0 -2
- package/dist/sheet/sizing.d.ts +3 -3
- package/dist/sheet/sizing.jsx +0 -2
- package/dist/sheet/stack.jsx +0 -2
- package/dist/shell/index.d.ts +2 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.jsx +1 -0
- package/dist/shell/shell.css +342 -0
- package/dist/shell/shell.css.map +1 -0
- package/dist/shell/shell.d.ts +121 -0
- package/dist/shell/shell.d.ts.map +1 -0
- package/dist/shell/shell.jsx +214 -0
- package/dist/survey/index.d.ts +2 -0
- package/dist/survey/index.d.ts.map +1 -0
- package/dist/survey/index.jsx +1 -0
- package/dist/survey/survey.css +204 -0
- package/dist/survey/survey.css.map +1 -0
- package/dist/survey/survey.d.ts +76 -0
- package/dist/survey/survey.d.ts.map +1 -0
- package/dist/survey/survey.jsx +205 -0
- package/dist/swipe/model.jsx +0 -2
- package/dist/swipe/swipe-view.jsx +0 -2
- package/dist/tab-bar/metrics.jsx +20 -22
- package/dist/tab-bar/model.d.ts +2 -0
- package/dist/tab-bar/model.d.ts.map +1 -1
- package/dist/tab-bar/model.jsx +10 -6
- package/dist/tab-bar/tab-bar.css +74 -0
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts +7 -0
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +51 -17
- package/dist/tabs/model.jsx +0 -2
- package/dist/tabs/tab-view.d.ts +1 -0
- package/dist/tabs/tab-view.d.ts.map +1 -1
- package/dist/tabs/tab-view.jsx +6 -5
- package/dist/tabs/tabs.css +1 -0
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toast/service.d.ts.map +1 -1
- package/dist/toast/service.jsx +34 -16
- package/dist/toast/store.jsx +0 -2
- package/dist/toggle/checkbox-math.jsx +0 -2
- package/dist/toggle/checkbox.d.ts.map +1 -1
- package/dist/toggle/checkbox.jsx +10 -12
- package/dist/toggle/chip-group.d.ts.map +1 -1
- package/dist/toggle/chip-group.jsx +8 -7
- package/dist/toggle/choice.css +254 -0
- package/dist/toggle/choice.css.map +1 -0
- package/dist/toggle/choice.d.ts +125 -0
- package/dist/toggle/choice.d.ts.map +1 -0
- package/dist/toggle/choice.jsx +367 -0
- package/dist/toggle/index.d.ts +2 -1
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/toggle/index.jsx +1 -0
- package/dist/toggle/switch.d.ts.map +1 -1
- package/dist/toggle/switch.jsx +8 -11
- package/package.json +126 -16
- package/tailwind/index.d.ts +13 -0
- package/tailwind/index.mjs +87 -0
- package/tailwind/index.test.mjs +24 -0
- package/tailwind/tokens.mjs +98 -0
- package/dist/anchor/context.jsx.map +0 -1
- package/dist/anchor/hooks.jsx.map +0 -1
- package/dist/anchor/measure.jsx.map +0 -1
- package/dist/anchor/registry.jsx.map +0 -1
- package/dist/anchor/scroll.jsx.map +0 -1
- package/dist/base/control.jsx.map +0 -1
- package/dist/base/corner-badge.jsx.map +0 -1
- package/dist/base/disposer.jsx.map +0 -1
- package/dist/base/press.jsx.map +0 -1
- package/dist/base/pressable.jsx.map +0 -1
- package/dist/base/selection-item.jsx.map +0 -1
- package/dist/base/timers.jsx.map +0 -1
- package/dist/base/use-controllable-state.jsx.map +0 -1
- package/dist/base/use-stable-callback.jsx.map +0 -1
- package/dist/button/button.jsx.map +0 -1
- package/dist/button/header-action-button.jsx.map +0 -1
- package/dist/button/icon-button.jsx.map +0 -1
- package/dist/button/nav-card.jsx.map +0 -1
- package/dist/button/safe-tap.jsx.map +0 -1
- package/dist/button/safe.jsx.map +0 -1
- package/dist/button/vertical-icon-text-button.jsx.map +0 -1
- package/dist/button/visuals.jsx.map +0 -1
- package/dist/cascade/cascade-panel.jsx.map +0 -1
- package/dist/cascade/model.jsx.map +0 -1
- package/dist/deferred/deferred-content.jsx.map +0 -1
- package/dist/deferred/readiness-signal.jsx.map +0 -1
- package/dist/display/activity-indicator.jsx.map +0 -1
- package/dist/display/culture-date-time-label.jsx.map +0 -1
- package/dist/display/progress-bar.jsx.map +0 -1
- package/dist/display/separator.jsx.map +0 -1
- package/dist/display/shimmer.jsx.map +0 -1
- package/dist/display/title-with-line.jsx.map +0 -1
- package/dist/edge-panel/edge-panel.jsx.map +0 -1
- package/dist/edge-panel/helper.jsx.map +0 -1
- package/dist/edge-panel/types.jsx.map +0 -1
- package/dist/expander/expander.jsx.map +0 -1
- package/dist/fields/dictation.jsx.map +0 -1
- package/dist/fields/editor.jsx.map +0 -1
- package/dist/fields/input-policy.jsx.map +0 -1
- package/dist/fields/notch.jsx.map +0 -1
- package/dist/fields/outlined-field.jsx.map +0 -1
- package/dist/fields/pin-entry.jsx.map +0 -1
- package/dist/fields/search-entry.jsx.map +0 -1
- package/dist/fields/slot-layout.jsx.map +0 -1
- package/dist/fields/text-entry.jsx.map +0 -1
- package/dist/fields/use-dictation.jsx.map +0 -1
- package/dist/fields/use-text-input.jsx.map +0 -1
- package/dist/fields/validator.jsx.map +0 -1
- package/dist/guide/confirm-sheet.jsx.map +0 -1
- package/dist/guide/journey.jsx.map +0 -1
- package/dist/guide/placement.jsx.map +0 -1
- package/dist/guide/service.jsx.map +0 -1
- package/dist/guide/settings.jsx.map +0 -1
- package/dist/host/back.jsx.map +0 -1
- package/dist/host/hooks.jsx.map +0 -1
- package/dist/host/host.jsx.map +0 -1
- package/dist/host/keyboard.jsx.map +0 -1
- package/dist/host/layers.jsx.map +0 -1
- package/dist/host/page-loading-overlay.jsx.map +0 -1
- package/dist/host/readiness.jsx.map +0 -1
- package/dist/host/registry.jsx.map +0 -1
- package/dist/icon/icon.jsx.map +0 -1
- package/dist/icon/slot.jsx.map +0 -1
- package/dist/icon/swatch.jsx.map +0 -1
- package/dist/pickers/combo-box.jsx.map +0 -1
- package/dist/pickers/date-time-picker.jsx.map +0 -1
- package/dist/pickers/date-time.jsx.map +0 -1
- package/dist/pickers/picker-sheet.jsx.map +0 -1
- package/dist/pickers/picker.jsx.map +0 -1
- package/dist/pickers/timespan-picker.jsx.map +0 -1
- package/dist/pickers/timespan.jsx.map +0 -1
- package/dist/pickers/trigger.jsx.map +0 -1
- package/dist/pickers/wheel-column.jsx.map +0 -1
- package/dist/plus-button/model.jsx.map +0 -1
- package/dist/plus-button/plus-button.jsx.map +0 -1
- package/dist/popup/frame.jsx.map +0 -1
- package/dist/popup/input-form.jsx.map +0 -1
- package/dist/popup/input.jsx.map +0 -1
- package/dist/popup/popup-view.jsx.map +0 -1
- package/dist/popup/queue.jsx.map +0 -1
- package/dist/popup/service.jsx.map +0 -1
- package/dist/popup/types.jsx.map +0 -1
- package/dist/provider/contexts.jsx.map +0 -1
- package/dist/provider/global-events.jsx.map +0 -1
- package/dist/provider/hooks.jsx.map +0 -1
- package/dist/provider/provider.jsx.map +0 -1
- package/dist/provider/settings.jsx.map +0 -1
- package/dist/provider/theme-css.jsx.map +0 -1
- package/dist/provider/theme-root.jsx.map +0 -1
- package/dist/range-slider/math.jsx.map +0 -1
- package/dist/range-slider/range-slider.jsx.map +0 -1
- package/dist/route/hooks.jsx.map +0 -1
- package/dist/route/router.jsx.map +0 -1
- package/dist/selection/model.jsx.map +0 -1
- package/dist/selection/selection-sheet.jsx.map +0 -1
- package/dist/selection/use-selection-model.jsx.map +0 -1
- package/dist/selection/window.jsx.map +0 -1
- package/dist/sheet/frame.jsx.map +0 -1
- package/dist/sheet/gesture.jsx.map +0 -1
- package/dist/sheet/handoff.jsx.map +0 -1
- package/dist/sheet/header.jsx.map +0 -1
- package/dist/sheet/height-memo.jsx.map +0 -1
- package/dist/sheet/loadable.jsx.map +0 -1
- package/dist/sheet/motion.jsx.map +0 -1
- package/dist/sheet/options.jsx.map +0 -1
- package/dist/sheet/processing.jsx.map +0 -1
- package/dist/sheet/scroll-indicator.jsx.map +0 -1
- package/dist/sheet/service.jsx.map +0 -1
- package/dist/sheet/sheet.jsx.map +0 -1
- package/dist/sheet/sizing.jsx.map +0 -1
- package/dist/sheet/stack.jsx.map +0 -1
- package/dist/swipe/model.jsx.map +0 -1
- package/dist/swipe/swipe-view.jsx.map +0 -1
- package/dist/tab-bar/metrics.jsx.map +0 -1
- package/dist/tab-bar/model.jsx.map +0 -1
- package/dist/tab-bar/tab-bar.jsx.map +0 -1
- package/dist/tabs/model.jsx.map +0 -1
- package/dist/tabs/tab-view.jsx.map +0 -1
- package/dist/toast/service.jsx.map +0 -1
- package/dist/toast/store.jsx.map +0 -1
- package/dist/toggle/checkbox-math.jsx.map +0 -1
- package/dist/toggle/checkbox.jsx.map +0 -1
- package/dist/toggle/chip-group.jsx.map +0 -1
- package/dist/toggle/switch.jsx.map +0 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
.g9-sheet-panel-layer {
|
|
2
|
+
flex-direction: row;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.g9-sheet-panel__scrim {
|
|
14
|
+
background-color: var(--g9-scrim-light);
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
right: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.g9-sheet-panel__scrim--in {
|
|
23
|
+
animation-name: g9-panel-fade-in;
|
|
24
|
+
animation-fill-mode: both;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.g9-sheet-panel__scrim--out {
|
|
28
|
+
animation-name: g9-panel-fade-out;
|
|
29
|
+
animation-fill-mode: both;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@keyframes g9-panel-fade-in {
|
|
33
|
+
from {
|
|
34
|
+
opacity: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
to {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@keyframes g9-panel-fade-out {
|
|
43
|
+
from {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
to {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.g9-sheet-panel {
|
|
53
|
+
border-style: solid;
|
|
54
|
+
border-width: 1px;
|
|
55
|
+
border-color: var(--g9-outline-variant);
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
display: flex;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.g9-sheet-panel--dialog-in {
|
|
62
|
+
animation-name: g9-dialog-in;
|
|
63
|
+
animation-timing-function: cubic-bezier(.2, 0, 0, 1);
|
|
64
|
+
animation-fill-mode: both;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.g9-sheet-panel--dialog-out {
|
|
68
|
+
animation-name: g9-dialog-out;
|
|
69
|
+
animation-timing-function: ease-in;
|
|
70
|
+
animation-fill-mode: both;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes g9-dialog-in {
|
|
74
|
+
from {
|
|
75
|
+
opacity: 0;
|
|
76
|
+
transform: translateY(16px) scale(.97);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
to {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
transform: translateY(0) scale(1);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes g9-dialog-out {
|
|
86
|
+
from {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
transform: scale(1);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
to {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
transform: scale(.97);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.g9-sheet-panel--side {
|
|
98
|
+
border-top-width: 0;
|
|
99
|
+
border-bottom-width: 0;
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: 0;
|
|
102
|
+
bottom: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.g9-sheet-panel--side--ltr {
|
|
106
|
+
right: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.g9-sheet-panel--side--rtl {
|
|
110
|
+
left: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.g9-sheet-panel--side-in {
|
|
114
|
+
animation-name: g9-side-in;
|
|
115
|
+
animation-timing-function: cubic-bezier(.32, .72, 0, 1);
|
|
116
|
+
animation-fill-mode: both;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.g9-sheet-panel--side-out {
|
|
120
|
+
animation-name: g9-side-out;
|
|
121
|
+
animation-timing-function: ease-in;
|
|
122
|
+
animation-fill-mode: both;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@keyframes g9-side-in {
|
|
126
|
+
from {
|
|
127
|
+
opacity: .6;
|
|
128
|
+
transform: translateX(40px);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
to {
|
|
132
|
+
opacity: 1;
|
|
133
|
+
transform: translateX(0);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@keyframes g9-side-out {
|
|
138
|
+
from {
|
|
139
|
+
opacity: 1;
|
|
140
|
+
transform: translateX(0);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
to {
|
|
144
|
+
opacity: 0;
|
|
145
|
+
transform: translateX(40px);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.g9-sheet-panel--side-in-rtl {
|
|
150
|
+
animation-name: g9-side-in-rtl;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.g9-sheet-panel--side-out-rtl {
|
|
154
|
+
animation-name: g9-side-out-rtl;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@keyframes g9-side-in-rtl {
|
|
158
|
+
from {
|
|
159
|
+
opacity: .6;
|
|
160
|
+
transform: translateX(-40px);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
to {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
transform: translateX(0);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@keyframes g9-side-out-rtl {
|
|
170
|
+
from {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
transform: translateX(0);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
to {
|
|
176
|
+
opacity: 0;
|
|
177
|
+
transform: translateX(-40px);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.g9-sheet-panel__chrome {
|
|
182
|
+
flex-direction: column;
|
|
183
|
+
flex-shrink: 0;
|
|
184
|
+
display: flex;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.g9-sheet-panel__body {
|
|
188
|
+
flex: 1;
|
|
189
|
+
min-height: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.g9-sheet-panel__body--static {
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
display: flex;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.g9-sheet-panel__footer {
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
flex-shrink: 0;
|
|
200
|
+
display: flex;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
/*# sourceMappingURL=panel-frame.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://./src/sheet/panel-frame.css"],"names":[],"mappings":"AACA;EAAE,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAGA;EAAE,uCAAuC;EACvC,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAGA;EAAE,gCAAgC;EAChC,yBAAyB;AAC3B;;AAGA;EAAE,iCAAiC;EACjC,yBAAyB;AAC3B;;AAGA;EAAE;IACE,UAAU;EACZ;;EAEA;IACE,UAAU;EACZ;AACF;;AAEA;EACE;IACE,UAAU;EACZ;;EAEA;IACE,UAAU;EACZ;AACF;;AACA;EAEE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,sBAAsB;EACtB,aAAa;EACb,gBAAgB;AAClB;;AACA;EAEE,4BAA4B;EAC5B,oDAAoD;EACpD,yBAAyB;AAC3B;;AACA;EAEE,6BAA6B;EAC7B,kCAAkC;EAClC,yBAAyB;AAC3B;;AACA;EAEE;IACE,UAAU;IACV,sCAAsC;EACxC;;EAEA;IACE,UAAU;IACV,iCAAiC;EACnC;AACF;;AAAA;EAGE;IACE,UAAU;IACV,mBAAmB;EACrB;;EAEA;IACE,UAAU;IACV,qBAAqB;EACvB;AACF;;AADA;EAIE,mBAAmB;EACnB,sBAAsB;EACtB,kBAAkB;EAClB,MAAM;EACN,SAAS;AACX;;AAAA;EAGE,QAAQ;AACV;;AAAA;EAGE,OAAO;AACT;;AAAA;EAGE,0BAA0B;EAC1B,uDAAuD;EACvD,yBAAyB;AAC3B;;AAAA;EAGE,2BAA2B;EAC3B,kCAAkC;EAClC,yBAAyB;AAC3B;;AAAA;EAGE;IACE,WAAW;IACX,2BAA2B;EAC7B;;EAEA;IACE,UAAU;IACV,wBAAwB;EAC1B;AACF;;AADA;EAIE;IACE,UAAU;IACV,wBAAwB;EAC1B;;EAEA;IACE,UAAU;IACV,2BAA2B;EAC7B;AACF;;AADA;EAIE,8BAA8B;AAChC;;AADA;EAIE,+BAA+B;AACjC;;AADA;EAIE;IACE,WAAW;IACX,4BAA4B;EAC9B;;EAEA;IACE,UAAU;IACV,wBAAwB;EAC1B;AACF;;AAFA;EAKE;IACE,UAAU;IACV,wBAAwB;EAC1B;;EAEA;IACE,UAAU;IACV,4BAA4B;EAC9B;AACF;;AAHA;EAME,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAHA;EAME,OAAO;EACP,aAAa;AACf;;AAHA;EAME,sBAAsB;EACtB,aAAa;AACf;;AAHA;EAME,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf","sourcesContent":["/* Wide-window sheets: a centred dialog or a side panel (transform/opacity motion only). */\n.g9-sheet-panel-layer {\n position: absolute;\n left: 0px;\n top: 0px;\n right: 0px;\n bottom: 0px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n}\n\n.g9-sheet-panel__scrim {\n position: absolute;\n left: 0px;\n top: 0px;\n right: 0px;\n bottom: 0px;\n background-color: var(--g9-scrim-light);\n}\n\n.g9-sheet-panel__scrim--in {\n animation-name: g9-panel-fade-in;\n animation-fill-mode: both;\n}\n\n.g9-sheet-panel__scrim--out {\n animation-name: g9-panel-fade-out;\n animation-fill-mode: both;\n}\n\n@keyframes g9-panel-fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes g9-panel-fade-out {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.g9-sheet-panel {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n}\n\n.g9-sheet-panel--dialog-in {\n animation-name: g9-dialog-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0, 1);\n animation-fill-mode: both;\n}\n\n.g9-sheet-panel--dialog-out {\n animation-name: g9-dialog-out;\n animation-timing-function: ease-in;\n animation-fill-mode: both;\n}\n\n@keyframes g9-dialog-in {\n from {\n opacity: 0;\n transform: translateY(16px) scale(0.97);\n }\n to {\n opacity: 1;\n transform: translateY(0px) scale(1);\n }\n}\n\n@keyframes g9-dialog-out {\n from {\n opacity: 1;\n transform: scale(1);\n }\n to {\n opacity: 0;\n transform: scale(0.97);\n }\n}\n\n.g9-sheet-panel--side {\n position: absolute;\n top: 0px;\n bottom: 0px;\n border-top-width: 0px;\n border-bottom-width: 0px;\n}\n\n/* the reading direction, explicit: Lynx does not inherit `direction`, so a logical property inside a page reads LTR */\n.g9-sheet-panel--side--ltr {\n right: 0px;\n}\n\n.g9-sheet-panel--side--rtl {\n left: 0px;\n}\n\n.g9-sheet-panel--side-in {\n animation-name: g9-side-in;\n animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);\n animation-fill-mode: both;\n}\n\n.g9-sheet-panel--side-out {\n animation-name: g9-side-out;\n animation-timing-function: ease-in;\n animation-fill-mode: both;\n}\n\n@keyframes g9-side-in {\n from {\n opacity: 0.6;\n transform: translateX(40px);\n }\n to {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n@keyframes g9-side-out {\n from {\n opacity: 1;\n transform: translateX(0px);\n }\n to {\n opacity: 0;\n transform: translateX(40px);\n }\n}\n\n/* right to left: the panel sits on the left and slides in from there */\n.g9-sheet-panel--side-in-rtl {\n animation-name: g9-side-in-rtl;\n}\n\n.g9-sheet-panel--side-out-rtl {\n animation-name: g9-side-out-rtl;\n}\n\n@keyframes g9-side-in-rtl {\n from {\n opacity: 0.6;\n transform: translateX(-40px);\n }\n to {\n opacity: 1;\n transform: translateX(0px);\n }\n}\n\n@keyframes g9-side-out-rtl {\n from {\n opacity: 1;\n transform: translateX(0px);\n }\n to {\n opacity: 0;\n transform: translateX(-40px);\n }\n}\n\n.g9-sheet-panel__chrome {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n}\n\n.g9-sheet-panel__body {\n flex: 1;\n min-height: 0px;\n}\n\n.g9-sheet-panel__body--static {\n display: flex;\n flex-direction: column;\n}\n\n.g9-sheet-panel__footer {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './panel-frame.css';
|
|
2
|
+
import { type G9Presentation } from '@g9tm/lynxcontrols-foundation';
|
|
3
|
+
import { type ReactNode } from '@lynx-js/react';
|
|
4
|
+
import type { G9SheetSettings } from './options.js';
|
|
5
|
+
import type { G9SheetEntry, G9SheetStack } from './stack.js';
|
|
6
|
+
export interface G9SheetPanelFrameProps {
|
|
7
|
+
readonly entry: G9SheetEntry;
|
|
8
|
+
readonly stack: G9SheetStack;
|
|
9
|
+
readonly presentation: Exclude<G9Presentation, 'bottom'>;
|
|
10
|
+
readonly hostWidth: number;
|
|
11
|
+
readonly hostHeight: number;
|
|
12
|
+
readonly settings: Required<G9SheetSettings>;
|
|
13
|
+
readonly isTop: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function G9SheetPanelFrame(props: G9SheetPanelFrameProps): ReactNode;
|
|
16
|
+
//# sourceMappingURL=panel-frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panel-frame.d.ts","sourceRoot":"","sources":["../../src/sheet/panel-frame.tsx"],"names":[],"mappings":"AAIA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,gBAAgB,CAAC;AAO5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAiB,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACzD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC7C,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAID,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,CAgG1E"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import "./panel-frame.css";
|
|
2
|
+
import { createAbortController, g9Ms } from "@g9tm/lynxcontrols-foundation";
|
|
3
|
+
import { useEffect, useMemo, useRef } from "@lynx-js/react";
|
|
4
|
+
import { G9AnchorLayerContext } from "../anchor/context.jsx";
|
|
5
|
+
import { g9IdProps } from "../base/control.jsx";
|
|
6
|
+
import { startTimer, stopTimer } from "../base/timers.jsx";
|
|
7
|
+
import { useG9Direction } from "../provider/hooks.jsx";
|
|
8
|
+
import { G9SheetContextProvider } from "./context.jsx";
|
|
9
|
+
import { G9SheetFooter, G9SheetHeader } from "./header.jsx";
|
|
10
|
+
const noop = ()=>{};
|
|
11
|
+
function G9SheetPanelFrame(props) {
|
|
12
|
+
var _o_openAnimationDurationMs, _o_closeAnimationDurationMs, _o_contentWidth, _o_backgroundColor, _o_cornerRadius, _o_padding, _o_padding1;
|
|
13
|
+
const { entry, stack } = props;
|
|
14
|
+
const o = entry.options;
|
|
15
|
+
const closing = 'closing' === entry.status;
|
|
16
|
+
const handle = stack.handleOf(entry.id);
|
|
17
|
+
const controller = useRef(null);
|
|
18
|
+
if (null === controller.current) controller.current = createAbortController();
|
|
19
|
+
const openMs = g9Ms(null != (_o_openAnimationDurationMs = o.openAnimationDurationMs) ? _o_openAnimationDurationMs : Math.min(260, props.settings.openAnimationDurationMs));
|
|
20
|
+
const closeMs = g9Ms(null != (_o_closeAnimationDurationMs = o.closeAnimationDurationMs) ? _o_closeAnimationDurationMs : Math.min(200, props.settings.closeAnimationDurationMs));
|
|
21
|
+
useEffect(()=>{
|
|
22
|
+
let t = null;
|
|
23
|
+
if ('opening' === entry.status) t = startTimer(()=>stack.markOpened(entry.id), openMs);
|
|
24
|
+
else if ('closing' === entry.status) {
|
|
25
|
+
var _controller_current;
|
|
26
|
+
null == (_controller_current = controller.current) || _controller_current.abort();
|
|
27
|
+
t = startTimer(()=>stack.markClosed(entry.id), closeMs);
|
|
28
|
+
}
|
|
29
|
+
return ()=>{
|
|
30
|
+
if (null !== t) stopTimer(t);
|
|
31
|
+
};
|
|
32
|
+
}, [
|
|
33
|
+
entry.status
|
|
34
|
+
]);
|
|
35
|
+
useEffect(()=>()=>{
|
|
36
|
+
var _controller_current;
|
|
37
|
+
return null == (_controller_current = controller.current) ? void 0 : _controller_current.abort();
|
|
38
|
+
}, []);
|
|
39
|
+
const anchorLayer = useMemo(()=>({
|
|
40
|
+
layer: 'sheet',
|
|
41
|
+
sheetId: entry.id
|
|
42
|
+
}), [
|
|
43
|
+
entry.id
|
|
44
|
+
]);
|
|
45
|
+
const body = 'function' == typeof entry.content ? entry.content() : entry.content;
|
|
46
|
+
const modal = false !== o.isModal;
|
|
47
|
+
const side = 'side' === props.presentation;
|
|
48
|
+
const dir = useG9Direction();
|
|
49
|
+
const width = Math.min(null != (_o_contentWidth = o.contentWidth) ? _o_contentWidth : side ? 420 : 560, props.hostWidth - (side ? 0 : 48));
|
|
50
|
+
const maxHeight = side ? props.hostHeight : Math.round(0.9 * props.hostHeight);
|
|
51
|
+
const surface = null != (_o_backgroundColor = o.backgroundColor) ? _o_backgroundColor : 'var(--g9-surface-container)';
|
|
52
|
+
const phase = closing ? 'out' : 'in';
|
|
53
|
+
return <view className="g9-sheet-panel-layer" style={{
|
|
54
|
+
zIndex: 10 + entry.id
|
|
55
|
+
}}>
|
|
56
|
+
{modal ? <view className={`g9-sheet-panel__scrim g9-sheet-panel__scrim--${phase}`} style={{
|
|
57
|
+
animationDuration: `${closing ? closeMs : openMs}ms`
|
|
58
|
+
}} consume-slide-event={[
|
|
59
|
+
[
|
|
60
|
+
-180,
|
|
61
|
+
180
|
|
62
|
+
]
|
|
63
|
+
]} catchtouchmove={noop} bindtap={()=>{
|
|
64
|
+
if ('open' !== entry.status || false === o.isCancelable) return;
|
|
65
|
+
stack.requestBack(entry.id, 'overlayTap');
|
|
66
|
+
}}/> : null}
|
|
67
|
+
<view className={`g9-sheet-panel g9-sheet-panel--${side ? 'side' : 'dialog'} g9-sheet-panel--${side ? 'side' : 'dialog'}-${phase}${side ? ` g9-sheet-panel--side--${dir}${'rtl' === dir ? ` g9-sheet-panel--side-${phase}-rtl` : ''}` : ''}`} event-through={false} {...g9IdProps(o.automationId)} style={{
|
|
68
|
+
width: `${width}px`,
|
|
69
|
+
maxHeight: `${maxHeight}px`,
|
|
70
|
+
backgroundColor: surface,
|
|
71
|
+
borderRadius: side ? '0px' : `${null != (_o_cornerRadius = o.cornerRadius) ? _o_cornerRadius : 20}px`,
|
|
72
|
+
animationDuration: `${closing ? closeMs : openMs}ms`
|
|
73
|
+
}}>
|
|
74
|
+
<G9SheetContextProvider value={{
|
|
75
|
+
handle,
|
|
76
|
+
signal: controller.current.signal,
|
|
77
|
+
opened: 'open' === entry.status,
|
|
78
|
+
closing,
|
|
79
|
+
maxBodyHeight: null,
|
|
80
|
+
bodyHeight: 0
|
|
81
|
+
}}>
|
|
82
|
+
<G9AnchorLayerContext.Provider value={anchorLayer}>
|
|
83
|
+
<view className="g9-sheet-panel__chrome">
|
|
84
|
+
<G9SheetHeader options={o} onBack={()=>void stack.requestBack(entry.id, 'toolbarButton')}/>
|
|
85
|
+
</view>
|
|
86
|
+
{false === o.scrollBody ? <view className="g9-sheet-panel__body g9-sheet-panel__body--static" style={{
|
|
87
|
+
padding: `${null != (_o_padding = o.padding) ? _o_padding : 0}px`
|
|
88
|
+
}}>
|
|
89
|
+
{body}
|
|
90
|
+
</view> : <scroll-view className="g9-sheet-panel__body" scroll-orientation="vertical" style={{
|
|
91
|
+
padding: `${null != (_o_padding1 = o.padding) ? _o_padding1 : 0}px`
|
|
92
|
+
}}>
|
|
93
|
+
{body}
|
|
94
|
+
</scroll-view>}
|
|
95
|
+
<view className="g9-sheet-panel__footer">
|
|
96
|
+
<G9SheetFooter options={o}/>
|
|
97
|
+
</view>
|
|
98
|
+
</G9AnchorLayerContext.Provider>
|
|
99
|
+
</G9SheetContextProvider>
|
|
100
|
+
</view>
|
|
101
|
+
</view>;
|
|
102
|
+
}
|
|
103
|
+
export { G9SheetPanelFrame };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import './sheet.css';
|
|
2
|
+
import { type ReactNode } from '@lynx-js/react';
|
|
3
|
+
/** The least height a region keeps on a short window (the sheet itself is capped; it never squeezes the list away). */
|
|
4
|
+
export declare const g9SheetScrollRegionMin = 120;
|
|
5
|
+
/** Props of {@link G9SheetScrollRegion}. */
|
|
6
|
+
export interface G9SheetScrollRegionProps {
|
|
7
|
+
readonly id?: string;
|
|
8
|
+
/** A further limit (px). Outside a sheet (a side panel) it is the height, default 420. */
|
|
9
|
+
readonly max?: number;
|
|
10
|
+
readonly className?: string;
|
|
11
|
+
readonly children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A vertical scroller as tall as its content, up to what the sheet's other parts leave free under its cap — measured,
|
|
15
|
+
* never estimated, however they change (a discount panel opening above, the keyboard shrinking the window). Use it in
|
|
16
|
+
* a fit sheet with `scrollBody: false`; with the default scrolling body the whole body already scrolls.
|
|
17
|
+
*/
|
|
18
|
+
export declare function G9SheetScrollRegion(props: G9SheetScrollRegionProps): ReactNode;
|
|
19
|
+
//# sourceMappingURL=scroll-region.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-region.d.ts","sourceRoot":"","sources":["../../src/sheet/scroll-region.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,gBAAgB,CAAC;AAK7E,uHAAuH;AACvH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,4CAA4C;AAC5C,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,0FAA0F;IAC1F,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,SAAS,CA6D9E"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import "./sheet.css";
|
|
2
|
+
import { useEffect, useRef, useState } from "@lynx-js/react";
|
|
3
|
+
import { g9IdProps } from "../base/control.jsx";
|
|
4
|
+
import { startTimer, stopTimer } from "../base/timers.jsx";
|
|
5
|
+
import { useG9SheetContext } from "./context.jsx";
|
|
6
|
+
const g9SheetScrollRegionMin = 120;
|
|
7
|
+
function G9SheetScrollRegion(props) {
|
|
8
|
+
var _ref, _props_max, _props_max1;
|
|
9
|
+
const sheet = useG9SheetContext();
|
|
10
|
+
const [inner, setInner] = useState(0);
|
|
11
|
+
const [others, setOthers] = useState(0);
|
|
12
|
+
const own = useRef(0);
|
|
13
|
+
const body = useRef(0);
|
|
14
|
+
const shown = useRef(0);
|
|
15
|
+
const quiet = useRef(null);
|
|
16
|
+
const sample = ()=>{
|
|
17
|
+
if (null !== quiet.current) stopTimer(quiet.current);
|
|
18
|
+
quiet.current = startTimer(()=>{
|
|
19
|
+
quiet.current = null;
|
|
20
|
+
if (!own.current || !body.current) return;
|
|
21
|
+
const next = Math.max(0, body.current - own.current);
|
|
22
|
+
setOthers((was)=>Math.abs(was - next) < 2 ? was : next);
|
|
23
|
+
}, 16);
|
|
24
|
+
};
|
|
25
|
+
const cap = null != (_ref = null == sheet ? void 0 : sheet.maxBodyHeight) ? _ref : null;
|
|
26
|
+
useEffect(()=>{
|
|
27
|
+
var _ref;
|
|
28
|
+
body.current = null != (_ref = null == sheet ? void 0 : sheet.bodyHeight) ? _ref : 0;
|
|
29
|
+
if (null !== cap) sample();
|
|
30
|
+
}, [
|
|
31
|
+
null == sheet ? void 0 : sheet.bodyHeight,
|
|
32
|
+
cap
|
|
33
|
+
]);
|
|
34
|
+
useEffect(()=>()=>{
|
|
35
|
+
if (null !== quiet.current) stopTimer(quiet.current);
|
|
36
|
+
}, []);
|
|
37
|
+
const limit = null !== cap ? Math.max(g9SheetScrollRegionMin, Math.min(cap - others, null != (_props_max = props.max) ? _props_max : 1 / 0)) : null != (_props_max1 = props.max) ? _props_max1 : 420;
|
|
38
|
+
const want = Math.max(0, Math.min(limit, inner || limit));
|
|
39
|
+
if (Math.abs(want - shown.current) >= 2 || !shown.current) shown.current = want;
|
|
40
|
+
return <view className={`g9-sheet-region${props.className ? ` ${props.className}` : ''}`} {...g9IdProps(props.id)} bindlayoutchange={(e)=>{
|
|
41
|
+
var _ref;
|
|
42
|
+
var _e_detail;
|
|
43
|
+
own.current = Math.ceil(null != (_ref = null == (_e_detail = e.detail) ? void 0 : _e_detail.height) ? _ref : 0);
|
|
44
|
+
if (null !== cap) sample();
|
|
45
|
+
}}>
|
|
46
|
+
<scroll-view className="g9-sheet-region__scroll" scroll-orientation="vertical" style={{
|
|
47
|
+
height: `${shown.current}px`
|
|
48
|
+
}}>
|
|
49
|
+
<view className="g9-sheet-region__content" bindlayoutchange={(e)=>{
|
|
50
|
+
var _e_detail;
|
|
51
|
+
return (null == (_e_detail = e.detail) ? void 0 : _e_detail.height) && setInner(Math.ceil(e.detail.height));
|
|
52
|
+
}}>
|
|
53
|
+
{props.children}
|
|
54
|
+
</view>
|
|
55
|
+
</scroll-view>
|
|
56
|
+
</view>;
|
|
57
|
+
}
|
|
58
|
+
export { G9SheetScrollRegion, g9SheetScrollRegionMin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/sheet/service.tsx"],"names":[],"mappings":"
|
|
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,GAAG,IAAI,CAAC,CAAC;IAC5F,uHAAuH;IACvH,OAAO,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,IAAI,CAAC;IACjF;;;;OAIG;IACH,cAAc,CACZ,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,wBAAwB,EAClC,aAAa,CAAC,EAAE,MAAM,GACrB,aAAa,GAAG,IAAI,CAAC;IACxB,2EAA2E;IAC3E,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa,CAAC;IACjF,gEAAgE;IAChE,QAAQ,IAAI,IAAI,CAAC;IACjB,sDAAsD;IACtD,QAAQ,IAAI,IAAI,CAAC;IACjB,8CAA8C;IAC9C,YAAY,IAAI,MAAM,CAAC;IACvB,2GAA2G;IAC3G,kBAAkB,IAAI,OAAO,CAAC;IAC9B,0FAA0F;IAC1F,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC;IACnE,2EAA2E;IAC3E,oBAAoB,IAAI,MAAM,CAAC;IAC/B,+CAA+C;IAC/C,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;CAC9B;AAmID;;;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,17 +1,19 @@
|
|
|
1
|
+
import { resolvePresentation } from "@g9tm/lynxcontrols-foundation";
|
|
1
2
|
import { useEffect, useRef, useState, useSyncExternalStore } from "@lynx-js/react";
|
|
2
3
|
import { startTimer, stopTimer } from "../base/timers.jsx";
|
|
3
4
|
import { useG9Host, useG9HostInsets } from "../host/hooks.jsx";
|
|
4
5
|
import { g9Hosts } from "../host/registry.jsx";
|
|
5
|
-
import { useG9Culture, useG9Keyboard, useG9Preferences, useG9Settings, useG9Theme, useG9Window } from "../provider/hooks.jsx";
|
|
6
|
+
import { useG9Culture, useG9Keyboard, useG9Layout, useG9Preferences, useG9Settings, useG9Theme, useG9Window } from "../provider/hooks.jsx";
|
|
6
7
|
import { G9SheetFrame } from "./frame.jsx";
|
|
7
8
|
import { createSheetHeightMemo } from "./height-memo.jsx";
|
|
8
9
|
import { fitToContentSheetOptions, fullScreenModalSheetOptions, resolveSheetSettings } from "./options.jsx";
|
|
10
|
+
import { G9SheetPanelFrame } from "./panel-frame.jsx";
|
|
9
11
|
import { G9ProcessingSheetContent } from "./processing.jsx";
|
|
10
12
|
import { backdropCardTransform, sheetVisibleRatio } from "./sizing.jsx";
|
|
11
13
|
import { G9SheetStack } from "./stack.jsx";
|
|
12
14
|
const FEATURE = 'g9.sheets';
|
|
13
15
|
function StackView(props) {
|
|
14
|
-
var _primary_options_backdropCardEffectThreshold;
|
|
16
|
+
var _primary_options_presentation, _primary_options_presentation1, _primary_options_backdropCardEffectThreshold, _effect_radius;
|
|
15
17
|
const { state } = props;
|
|
16
18
|
state.settings = useG9Settings().sheets;
|
|
17
19
|
const win = useG9Window();
|
|
@@ -34,15 +36,24 @@ function StackView(props) {
|
|
|
34
36
|
const host = useG9Host();
|
|
35
37
|
const [rest, setRest] = useState(null);
|
|
36
38
|
const primary = entries.find((e)=>'opening' === e.status || 'open' === e.status);
|
|
37
|
-
const
|
|
39
|
+
const { wide } = useG9Layout();
|
|
40
|
+
const every = 'every' === state.settings.backdropCardMode;
|
|
41
|
+
const primaryBottom = void 0 !== primary && ((null != (_primary_options_presentation = primary.options.presentation) ? _primary_options_presentation : 'auto') === 'bottom' || 'bottom' === resolvePresentation(wide, (null != (_primary_options_presentation1 = primary.options.presentation) ? _primary_options_presentation1 : 'auto') === 'auto' ? 'auto' : primary.options.presentation));
|
|
42
|
+
const card = state.settings.enableBackdropCardEffect && void 0 !== primary && false !== primary.options.enableBackdropCardEffect && (every ? primaryBottom && {
|
|
43
|
+
scale: 0.94,
|
|
44
|
+
translateY: 10
|
|
45
|
+
} : 'fitToContent' !== primary.options.sizeMode && backdropCardTransform(sheetVisibleRatio(primary.options, win.height, (null == rest ? void 0 : rest.id) === primary.id ? rest.heightPx : null), Math.min(0.99, Math.max(0.1, null != (_primary_options_backdropCardEffectThreshold = primary.options.backdropCardEffectThreshold) ? _primary_options_backdropCardEffectThreshold : 0.75))));
|
|
38
46
|
const effectOn = card && card.scale < 1 ? card : null;
|
|
39
47
|
const effect = effectOn ? {
|
|
40
48
|
scale: Math.round(1000 * effectOn.scale) / 1000,
|
|
41
49
|
translateY: Math.round(10 * effectOn.translateY) / 10,
|
|
42
50
|
durationMs: state.settings.openAnimationDurationMs,
|
|
43
|
-
backdropColor: state.settings.backdropCardColor
|
|
51
|
+
backdropColor: state.settings.backdropCardColor,
|
|
52
|
+
...every ? {
|
|
53
|
+
radius: 14
|
|
54
|
+
} : {}
|
|
44
55
|
} : null;
|
|
45
|
-
const effectKey = effect ? `${effect.scale}|${effect.translateY}|${effect.durationMs}|${effect.backdropColor}` : '';
|
|
56
|
+
const effectKey = effect ? `${effect.scale}|${effect.translateY}|${effect.durationMs}|${effect.backdropColor}|${null != (_effect_radius = effect.radius) ? _effect_radius : 0}` : '';
|
|
46
57
|
useEffect(()=>{
|
|
47
58
|
host.setContentEffect(effect);
|
|
48
59
|
}, [
|
|
@@ -67,10 +78,15 @@ function StackView(props) {
|
|
|
67
78
|
bottom: `${lift}px`
|
|
68
79
|
}}>
|
|
69
80
|
<view className="g9-sheet-stack__probe" bindlayoutchange={onStackLayout}/>
|
|
70
|
-
{entries.map((entry)
|
|
81
|
+
{entries.map((entry)=>{
|
|
82
|
+
var _entry_options_presentation;
|
|
83
|
+
const pref = null != (_entry_options_presentation = entry.options.presentation) ? _entry_options_presentation : 'auto';
|
|
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({
|
|
71
86
|
id: entry.id,
|
|
72
87
|
heightPx
|
|
73
|
-
})}
|
|
88
|
+
})}/>;
|
|
89
|
+
})}
|
|
74
90
|
</view>;
|
|
75
91
|
}
|
|
76
92
|
function sheetHostHeight(measured, windowHeight, lift) {
|
|
@@ -162,5 +178,3 @@ function g9Sheets() {
|
|
|
162
178
|
return sheetServiceOf(g9Hosts.require());
|
|
163
179
|
}
|
|
164
180
|
export { g9Sheets, keyboardLift, sheetHostHeight, sheetServiceOf, useG9Sheets };
|
|
165
|
-
|
|
166
|
-
//# sourceMappingURL=service.jsx.map
|
package/dist/sheet/sheet.css
CHANGED
|
@@ -147,6 +147,12 @@
|
|
|
147
147
|
overflow: hidden;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
.g9-sheet__body--static-fit {
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
display: flex;
|
|
154
|
+
}
|
|
155
|
+
|
|
150
156
|
.g9-sheet__content--fill {
|
|
151
157
|
flex: 1 1 0;
|
|
152
158
|
}
|
|
@@ -287,5 +293,32 @@
|
|
|
287
293
|
display: flex;
|
|
288
294
|
}
|
|
289
295
|
|
|
296
|
+
.g9-sheet-region {
|
|
297
|
+
flex-direction: column;
|
|
298
|
+
flex-shrink: 0;
|
|
299
|
+
display: flex;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.g9-sheet-region__content {
|
|
303
|
+
flex-direction: column;
|
|
304
|
+
display: flex;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.g9-backdrop-scope {
|
|
308
|
+
flex-direction: column;
|
|
309
|
+
flex: 1;
|
|
310
|
+
min-height: 0;
|
|
311
|
+
display: flex;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.g9-backdrop-scope__content {
|
|
315
|
+
background-color: var(--g9-background);
|
|
316
|
+
flex-direction: column;
|
|
317
|
+
flex: 1;
|
|
318
|
+
min-height: 0;
|
|
319
|
+
display: flex;
|
|
320
|
+
overflow: hidden;
|
|
321
|
+
}
|
|
322
|
+
|
|
290
323
|
|
|
291
324
|
/*# sourceMappingURL=sheet.css.map */
|
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;EACZ,cAAc;EACd,aAAa;EACb,gBAAgB;AAClB;;AAQA;EALE,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAQA;EALE,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAQA;EALE,oBAAoB;AACtB;;AASA;EANE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AASA;EANE,oBAAoB;AACtB;;AASA;EANE,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AASA;EANE,2CAA2C;EAC3C,mBAAmB;EACnB,WAAW;EACX,WAAW;AACb;;AAUA;EAPE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAWA;EARE,wDAAwD;AAC1D;;AAWA;EARE,cAAc;AAChB;;AAWA;EARE,OAAO;AACT;;AAYA;EATE,sBAAsB;EACtB,cAAc;EACd,aAAa;EACb,kBAAkB;AACpB;;AAYA;EATE,8CAA8C;EAC9C,YAAY;EACZ,oBAAoB;EACpB,kBAAkB;AACpB;;AAYA;EATE,sBAAsB;EACtB,aAAa;EACb,kBAAkB;AACpB;;AAaA;EAVE,sBAAsB;EACtB,WAAW;EACX,aAAa;EACb,gBAAgB;AAClB;;
|
|
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,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAQA;EALE,oBAAoB;AACtB;;AASA;EANE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AASA;EANE,oBAAoB;AACtB;;AASA;EANE,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AASA;EANE,2CAA2C;EAC3C,mBAAmB;EACnB,WAAW;EACX,WAAW;AACb;;AAUA;EAPE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAWA;EARE,wDAAwD;AAC1D;;AAWA;EARE,cAAc;AAChB;;AAWA;EARE,OAAO;AACT;;AAYA;EATE,sBAAsB;EACtB,cAAc;EACd,aAAa;EACb,kBAAkB;AACpB;;AAYA;EATE,8CAA8C;EAC9C,YAAY;EACZ,oBAAoB;EACpB,kBAAkB;AACpB;;AAYA;EATE,sBAAsB;EACtB,aAAa;EACb,kBAAkB;AACpB;;AAaA;EAVE,sBAAsB;EACtB,WAAW;EACX,aAAa;EACb,gBAAgB;AAClB;;AAgBA;EAbE,sBAAsB;EACtB,cAAc;EACd,aAAa;AACf;;AAgBA;EAbE,WAAW;AACb;;AAkBA;EAfE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;AACpB;;AAkBA;EAfE,6CAA6C;EAC7C,oDAAoD;EACpD,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;AACV;;AAkBA;EAfE;IACE,UAAU;EACZ;;EAEA;IACE,UAAU;EACZ;AACF;;AAiBA;EAdE,2CAA2C;AAC7C;;AAiBA;EAdE;IACE,UAAU;EACZ;;EAEA;IACE,UAAU;EACZ;AACF;;AAgBA;EAbE,uBAAuB;EACvB,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;AACnB;;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}\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/sheet/sheet.jsx
CHANGED
package/dist/sheet/sizing.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface G9SheetLayout {
|
|
|
50
50
|
* detent from `currentState`. The MAUI quirks (a hidden 100 dp detent under `[medium, large]`, a peek-only sheet that
|
|
51
51
|
* may expand) are not carried over: the detents are exactly `states` (docs/sheets.md "deliberate differences").
|
|
52
52
|
*/
|
|
53
|
-
export declare function resolveSheetLayout(options: G9SheetOptions, hostHeight: number, platform?: "
|
|
53
|
+
export declare function resolveSheetLayout(options: G9SheetOptions, hostHeight: number, platform?: "windows" | "android" | "ios" | "macos" | "unknown"): G9SheetLayout;
|
|
54
54
|
/** Clamps a measured fit body height: `[80, cap]`, or `[180, cap]` while loading (MAUI fit engine). */
|
|
55
55
|
export declare function clampFitHeight(natural: number, cap: number, loading: boolean): number;
|
|
56
56
|
/**
|
|
@@ -67,7 +67,7 @@ export declare function backdropCardTransform(visibleRatio: number, threshold?:
|
|
|
67
67
|
* The visible share of the host a detent sheet covers: its resting height when known, else its opening detent
|
|
68
68
|
* (peek = peek height, medium = half ratio, large = full ratio; `expandedFitsContent` large counts as the fit cap).
|
|
69
69
|
*/
|
|
70
|
-
export declare function sheetVisibleRatio(options: G9SheetOptions, hostHeight: number, restingHeightPx: number | null, platform?: "
|
|
70
|
+
export declare function sheetVisibleRatio(options: G9SheetOptions, hostHeight: number, restingHeightPx: number | null, platform?: "windows" | "android" | "ios" | "macos" | "unknown"): number;
|
|
71
71
|
/** How far a receded parent sheet sinks: `max(24, visible × 0.25)` (MAUI stack recede). */
|
|
72
72
|
export declare function parentRecedeOffset(visibleHeight: number): number;
|
|
73
73
|
/** Top padding of a full-screen sheet (MAUI safe-area rule). */
|
|
@@ -91,5 +91,5 @@ export declare function sheetSurfaceBottomPadding(options: G9SheetOptions, botto
|
|
|
91
91
|
*/
|
|
92
92
|
export declare function scaledSheetDuration(durationMs: number, traversedRatio: number, sizeScaled: boolean): number;
|
|
93
93
|
/** Platform size constraints of the sheet surface (MAUI Android/Windows options, applied where they belong). */
|
|
94
|
-
export declare function platformSheetConstraints(options: G9SheetOptions, platform?: "
|
|
94
|
+
export declare function platformSheetConstraints(options: G9SheetOptions, platform?: "windows" | "android" | "ios" | "macos" | "unknown"): Record<string, string>;
|
|
95
95
|
//# sourceMappingURL=sizing.d.ts.map
|
package/dist/sheet/sizing.jsx
CHANGED
|
@@ -158,5 +158,3 @@ function platformSheetConstraints(options, platform = currentPlatform()) {
|
|
|
158
158
|
return style;
|
|
159
159
|
}
|
|
160
160
|
export { backdropCardTransform, clampFitHeight, currentPlatform, g9SheetDefaultPeekHeight, g9SheetDragCloseThreshold, g9SheetFitLoadingMinHeight, g9SheetFitMinHeight, g9SheetScrollToEndThreshold, g9SheetTopSafeAreaBaseGap, parentRecedeOffset, platformSheetConstraints, resolveSheetLayout, scaledSheetDuration, sheetOverlayOpacity, sheetSurfaceBottomPadding, sheetSurfaceTopPadding, sheetTopPadding, sheetVisibleRatio };
|
|
161
|
-
|
|
162
|
-
//# sourceMappingURL=sizing.jsx.map
|