@g9tm/lynxcontrols 2.5.3 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog/cards/G9AppShell.md +1 -1
- package/catalog/cards/G9Badge.md +1 -1
- package/catalog/cards/G9DirectionScope.md +10 -0
- package/catalog/cards/G9IconButton.md +1 -1
- package/catalog/cards/G9NumPad.md +5 -1
- package/catalog/cards/G9Photo.md +1 -1
- package/catalog/cards/G9PinEntry.md +2 -2
- package/catalog/cards/G9ProgressBar.md +1 -1
- package/catalog/cards/G9SafeIconButton.md +1 -1
- package/catalog/cards/G9ScrollSpyBar.md +1 -1
- package/catalog/cards/G9StatusPill.md +1 -1
- package/catalog/cards/G9Stepper.md +3 -3
- package/catalog/cards/G9Tag.md +1 -1
- package/catalog/catalog.json +793 -59
- package/catalog/index.md +3 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/anchor/context.d.ts +5 -0
- package/dist/anchor/context.d.ts.map +1 -1
- package/dist/anchor/context.jsx +2 -1
- package/dist/anchor/hooks.d.ts.map +1 -1
- package/dist/anchor/hooks.jsx +6 -1
- package/dist/anchor/index.d.ts +1 -1
- package/dist/anchor/index.d.ts.map +1 -1
- package/dist/anchor/index.jsx +1 -1
- package/dist/anchor/registry.d.ts +5 -0
- package/dist/anchor/registry.d.ts.map +1 -1
- package/dist/base/node-ref.d.ts +8 -0
- package/dist/base/node-ref.d.ts.map +1 -0
- package/dist/base/node-ref.jsx +11 -0
- package/dist/base/pressable.d.ts +5 -0
- package/dist/base/pressable.d.ts.map +1 -1
- package/dist/base/pressable.jsx +4 -1
- package/dist/base/sizing.d.ts +4 -0
- package/dist/base/sizing.d.ts.map +1 -0
- package/dist/base/sizing.jsx +6 -0
- package/dist/button/button.d.ts +6 -0
- package/dist/button/button.d.ts.map +1 -1
- package/dist/button/button.jsx +14 -3
- package/dist/button/icon-button.d.ts +14 -0
- package/dist/button/icon-button.d.ts.map +1 -1
- package/dist/button/icon-button.jsx +21 -7
- package/dist/display/display.css +1 -1
- package/dist/display/display.css.map +1 -1
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +7 -2
- package/dist/display/motion-figures.d.ts +7 -0
- package/dist/display/motion-figures.d.ts.map +1 -1
- package/dist/display/motion-figures.jsx +14 -5
- package/dist/display/progress-bar.d.ts +11 -1
- package/dist/display/progress-bar.d.ts.map +1 -1
- package/dist/display/progress-bar.jsx +18 -4
- package/dist/display/shimmer.jsx +1 -1
- package/dist/fields/extra-entries.css +13 -0
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/extra-entries.d.ts +25 -3
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +48 -9
- package/dist/fields/fields.css +18 -0
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/outlined-field.d.ts +15 -3
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +21 -5
- package/dist/fields/pin-entry.d.ts +21 -0
- package/dist/fields/pin-entry.d.ts.map +1 -1
- package/dist/fields/pin-entry.jsx +17 -8
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +7 -1
- package/dist/fields/use-text-input.d.ts +2 -0
- package/dist/fields/use-text-input.d.ts.map +1 -1
- package/dist/fields/use-text-input.jsx +3 -1
- package/dist/header/app-bar.d.ts.map +1 -1
- package/dist/header/app-bar.jsx +4 -4
- package/dist/host/bottom-overlays.d.ts +11 -0
- package/dist/host/bottom-overlays.d.ts.map +1 -0
- package/dist/host/bottom-overlays.jsx +18 -0
- package/dist/host/context.d.ts +4 -0
- package/dist/host/context.d.ts.map +1 -0
- package/dist/host/context.jsx +3 -0
- package/dist/host/host.d.ts +3 -3
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +1 -1
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +3 -1
- package/dist/layout/scroll-spy.d.ts +5 -0
- package/dist/layout/scroll-spy.d.ts.map +1 -1
- package/dist/layout/scroll-spy.jsx +14 -5
- package/dist/layout/scrollers.d.ts +5 -0
- package/dist/layout/scrollers.d.ts.map +1 -1
- package/dist/layout/scrollers.jsx +23 -3
- package/dist/provider/direction-scope.d.ts +13 -0
- package/dist/provider/direction-scope.d.ts.map +1 -0
- package/dist/provider/direction-scope.jsx +12 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.jsx +1 -0
- package/dist/provider/provider.css +1 -1
- package/dist/provider/provider.css.map +1 -1
- package/dist/range-slider/range-slider.css +14 -14
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/step-slider.jsx +8 -8
- package/dist/shell/shell.d.ts +5 -0
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +14 -10
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +15 -5
- package/dist/tabs/tab-view.d.ts.map +1 -1
- package/dist/tabs/tab-view.jsx +10 -3
- package/dist/toast/service.d.ts.map +1 -1
- package/dist/toast/service.jsx +7 -0
- package/dist/toggle/chip-group.d.ts.map +1 -1
- package/dist/toggle/chip-group.jsx +2 -1
- package/dist/toggle/choice.css +15 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +13 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +49 -21
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +1 -1
- package/skills/g9-lynx-app/references/components/button.md +2 -2
- package/skills/g9-lynx-app/references/components/charts.md +34 -28
- package/skills/g9-lynx-app/references/components/commerce.md +1 -0
- package/skills/g9-lynx-app/references/components/display-1.md +1 -1
- package/skills/g9-lynx-app/references/components/display-2.md +2 -2
- package/skills/g9-lynx-app/references/components/display-3.md +2 -2
- package/skills/g9-lynx-app/references/components/fields.md +7 -3
- package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
- package/skills/g9-lynx-app/references/components/provider.md +11 -0
- package/skills/g9-lynx-app/references/components/shell.md +1 -1
- package/skills/g9-lynx-app/references/components/toggle.md +3 -3
- package/skills/g9-lynx-app/references/localization-rtl.md +4 -0
- package/skills/g9-lynx-app/references/provider-and-host.md +3 -0
- package/skills/g9-lynx-app/references/theming.md +5 -2
|
@@ -140,6 +140,8 @@ export declare function useTextInput(props: G9TextInputProps, options: G9TextInp
|
|
|
140
140
|
inputType: G9InputType;
|
|
141
141
|
/** Element attributes and handlers shared by `<input>` and `<textarea>`. */
|
|
142
142
|
elementProps: {
|
|
143
|
+
'accessibility-element': boolean;
|
|
144
|
+
'accessibility-label': string;
|
|
143
145
|
'ignore-focus': boolean;
|
|
144
146
|
readonly: boolean;
|
|
145
147
|
disabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-text-input.d.ts","sourceRoot":"","sources":["../../src/fields/use-text-input.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,KAAK,cAAc,EACnB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAW/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,aAAa,CAAC;AAErE,yDAAyD;AACzD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,cAAc,CAAC;AAElF,kCAAkC;AAClC,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;CACtC;AAED,mHAAmH;AACnH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,sGAAsG;IACtG,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,CAAC,YAAY,CAAC,EAAE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CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC;IACpG,sEAAsE;IACtE,QAAQ,CAAC,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC5C,sEAAsE;IACtE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IACzC,iDAAiD;IACjD,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,sBAAsB;;;;;;;;;;;;;;;;IAgPjF,4EAA4E;;;;;;;;2BAnItD;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE;;;;;;;oBAnBnB,QAAQ,GAAG,IAAI;;;;;EA4K7C"}
|
|
@@ -47,7 +47,7 @@ function invokeNodeWhenReady(ref, method, params, attempts = 5) {
|
|
|
47
47
|
startTimer(()=>invokeNodeWhenReady(ref, method, params, attempts - 1), 0);
|
|
48
48
|
}
|
|
49
49
|
function useTextInput(props, options) {
|
|
50
|
-
var _props_inputType, _props_defaultValue, _props_voiceLocale, _props_inputTextDirection;
|
|
50
|
+
var _props_inputType, _props_defaultValue, _props_voiceLocale, _props_inputTextDirection, _ref, _ref1, _props_accessibilityLabel;
|
|
51
51
|
const culture = useG9Culture();
|
|
52
52
|
const strings = useG9Strings();
|
|
53
53
|
const keyboardAware = useContext(KeyboardAwareTriggerContext);
|
|
@@ -268,6 +268,8 @@ function useTextInput(props, options) {
|
|
|
268
268
|
...props.inputId ? {
|
|
269
269
|
id: props.inputId
|
|
270
270
|
} : {},
|
|
271
|
+
'accessibility-element': true,
|
|
272
|
+
'accessibility-label': null != (_ref = null != (_ref1 = null != (_props_accessibilityLabel = props.accessibilityLabel) ? _props_accessibilityLabel : props.label) ? _ref1 : props.placeholder) ? _ref : '',
|
|
271
273
|
'ignore-focus': true,
|
|
272
274
|
readonly: true === props.readOnly,
|
|
273
275
|
disabled: true === props.disabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bar.d.ts","sourceRoot":"","sources":["../../src/header/app-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,kBAAkB,EAAuC,MAAM,iBAAiB,CAAC;AAI/F,iCAAiC;AACjC,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,uGAAuG;IACvG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,kFAAkF;IAClF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACpC,sDAAsD;IACtD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,yDAAyD;IACzD,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,gDAAgD;IAChD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"app-bar.d.ts","sourceRoot":"","sources":["../../src/header/app-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,kBAAkB,EAAuC,MAAM,iBAAiB,CAAC;AAI/F,iCAAiC;AACjC,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,uGAAuG;IACvG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,kFAAkF;IAClF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,+CAA+C;IAC/C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACpC,sDAAsD;IACtD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,yDAAyD;IACzD,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,gDAAgD;IAChD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,qDA+FnB,CAAC"}
|
package/dist/header/app-bar.jsx
CHANGED
|
@@ -14,12 +14,12 @@ const G9AppBar = memo(function(props) {
|
|
|
14
14
|
const centered = 'center' === props.align;
|
|
15
15
|
const align = centered ? 'center' : 'rtl' === dir ? 'right' : 'left';
|
|
16
16
|
const title = props.title && !props.large ? <view className={`g9-app-bar__titles${centered ? ' g9-app-bar__titles--center' : ''}`}>
|
|
17
|
-
<text className="g9-app-bar__title" text-maxline="1" accessibility-element={true} accessibility-traits="header" style={{
|
|
17
|
+
<text className="g9-app-bar__title" text-maxline="1" accessibility-element={true} accessibility-traits="header" accessibility-label={props.title} style={{
|
|
18
18
|
textAlign: align
|
|
19
19
|
}}>
|
|
20
20
|
{props.title}
|
|
21
21
|
</text>
|
|
22
|
-
{props.subtitle ? <text className="g9-app-bar__subtitle" text-maxline="1" style={{
|
|
22
|
+
{props.subtitle ? <text className="g9-app-bar__subtitle" text-maxline="1" accessibility-element={true} accessibility-label={props.subtitle} style={{
|
|
23
23
|
textAlign: align
|
|
24
24
|
}}>
|
|
25
25
|
{props.subtitle}
|
|
@@ -47,12 +47,12 @@ const G9AppBar = memo(function(props) {
|
|
|
47
47
|
</view> : null}
|
|
48
48
|
</view>
|
|
49
49
|
{props.large && props.title ? <view className="g9-app-bar__large-block">
|
|
50
|
-
<text className="g9-app-bar__large" accessibility-element={true} accessibility-traits="header" style={{
|
|
50
|
+
<text className="g9-app-bar__large" accessibility-element={true} accessibility-traits="header" accessibility-label={props.title} style={{
|
|
51
51
|
textAlign: align
|
|
52
52
|
}}>
|
|
53
53
|
{props.title}
|
|
54
54
|
</text>
|
|
55
|
-
{props.subtitle ? <text className="g9-app-bar__large-subtitle" text-maxline="2" style={{
|
|
55
|
+
{props.subtitle ? <text className="g9-app-bar__large-subtitle" text-maxline="2" accessibility-element={true} accessibility-label={props.subtitle} style={{
|
|
56
56
|
textAlign: align
|
|
57
57
|
}}>
|
|
58
58
|
{props.subtitle}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { G9HostHandle } from './registry.js';
|
|
2
|
+
/** The heights by key and who hears a change (the host's toasts). */
|
|
3
|
+
export interface G9BottomOverlays {
|
|
4
|
+
readonly heights: Map<string, number>;
|
|
5
|
+
readonly listeners: Set<(key: string, height: number | null) => void>;
|
|
6
|
+
}
|
|
7
|
+
/** The host's bottom-overlay registry, created on first use. */
|
|
8
|
+
export declare function bottomOverlaysOf(host: G9HostHandle): G9BottomOverlays;
|
|
9
|
+
/** Sets (or clears with `null` / 0) one bottom overlay's height and tells every listener. */
|
|
10
|
+
export declare function setHostBottomOverlay(host: G9HostHandle, key: string, height: number | null): void;
|
|
11
|
+
//# sourceMappingURL=bottom-overlays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-overlays.d.ts","sourceRoot":"","sources":["../../src/host/bottom-overlays.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC;CACvE;AAED,gEAAgE;AAChE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,gBAAgB,CAMrE;AAED,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAKjG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const FEATURE = 'g9.bottom-overlays';
|
|
2
|
+
function bottomOverlaysOf(host) {
|
|
3
|
+
const existing = host.getFeature(FEATURE);
|
|
4
|
+
if (existing) return existing;
|
|
5
|
+
const created = {
|
|
6
|
+
heights: new Map(),
|
|
7
|
+
listeners: new Set()
|
|
8
|
+
};
|
|
9
|
+
host.attachFeature(FEATURE, created);
|
|
10
|
+
return created;
|
|
11
|
+
}
|
|
12
|
+
function setHostBottomOverlay(host, key, height) {
|
|
13
|
+
const overlays = bottomOverlaysOf(host);
|
|
14
|
+
if (null === height || height <= 0) overlays.heights.delete(key);
|
|
15
|
+
else overlays.heights.set(key, height);
|
|
16
|
+
for (const l of Array.from(overlays.listeners))l(key, null !== height && height > 0 ? height : null);
|
|
17
|
+
}
|
|
18
|
+
export { bottomOverlaysOf, setHostBottomOverlay };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/host/context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,mCAAmC;AACnC,eAAO,MAAM,aAAa,8CAA2C,CAAC"}
|
package/dist/host/host.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { type ReactNode } from '@lynx-js/react';
|
|
|
3
3
|
import { type G9BackResult } from './back.js';
|
|
4
4
|
import { type G9OverlayLayer } from './layers.js';
|
|
5
5
|
import { type G9HostReadinessController } from './readiness.js';
|
|
6
|
-
import { type
|
|
6
|
+
import { type G9HostInsets } from './registry.js';
|
|
7
7
|
import './host.css';
|
|
8
|
+
import { G9HostContext } from './context.js';
|
|
8
9
|
/** How a layer is mounted: in the page tree (default) or in a Lynx `<overlay>` above native views (maps, video). */
|
|
9
10
|
export type G9LayerContainer = 'tree' | 'overlay';
|
|
10
11
|
/** Props of {@link G9Host}. */
|
|
@@ -55,8 +56,7 @@ export interface G9HostProps {
|
|
|
55
56
|
/** How the router leaves the page (pop it). Without it the router cannot close the page. */
|
|
56
57
|
readonly routeClose?: () => void;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
export declare const G9HostContext: import("react").Context<G9HostHandle | null>;
|
|
59
|
+
export { G9HostContext };
|
|
60
60
|
/** The nearest host's insets. */
|
|
61
61
|
export declare const G9HostInsetsContext: import("react").Context<G9HostInsets | null>;
|
|
62
62
|
/** The nearest host's readiness controller. */
|
package/dist/host/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/host/host.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,KAAK,cAAc,EAAQ,MAAM,+BAA+B,CAAC;AAEvG,OAAO,EAIL,KAAK,SAAS,EAOf,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE5D,OAAO,EAAuC,KAAK,cAAc,EAAgB,MAAM,UAAU,CAAC;AAElG,OAAO,EAAuB,KAAK,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/host/host.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,KAAK,cAAc,EAAQ,MAAM,+BAA+B,CAAC;AAEvG,OAAO,EAIL,KAAK,SAAS,EAOf,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE5D,OAAO,EAAuC,KAAK,cAAc,EAAgB,MAAM,UAAU,CAAC;AAElG,OAAO,EAAuB,KAAK,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAA+C,KAAK,YAAY,EAAgB,MAAM,YAAY,CAAC;AAC1G,OAAO,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,oHAAoH;AACpH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,CAAC;AAElD,+BAA+B;AAC/B,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,sGAA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C,EAAE,cAAc,CAAC;IAChC,4FAA4F;IAC5F,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAGD,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,iCAAiC;AACjC,eAAO,MAAM,mBAAmB,8CAA2C,CAAC;AAC5E,+CAA+C;AAC/C,eAAO,MAAM,sBAAsB,2DAAwD,CAAC;AAoD5F;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,CA4OpD"}
|
package/dist/host/host.jsx
CHANGED
|
@@ -14,7 +14,7 @@ import { G9PageLoadingOverlay } from "./page-loading-overlay.jsx";
|
|
|
14
14
|
import { createHostReadiness } from "./readiness.jsx";
|
|
15
15
|
import { hostRegistry } from "./registry.jsx";
|
|
16
16
|
import "./host.css";
|
|
17
|
-
|
|
17
|
+
import { G9HostContext } from "./context.jsx";
|
|
18
18
|
const G9HostInsetsContext = createContext(null);
|
|
19
19
|
const G9HostReadinessContext = createContext(null);
|
|
20
20
|
const OVERLAY_LAYERS = g9LayerOrder.filter((layer)=>'content' !== layer);
|
package/dist/icon/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,MAAM,IAAI,WAAW,EAC1B,KAAK,aAAa,EAQnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAqD,MAAM,gBAAgB,CAAC;AASzG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,YAAY,CAAC;AAEpB,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C;;;G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iG;IACjG,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,8DAA8D;IAC9D,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAgBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,kBAAkB,GAAG,SAAS,EACxC,WAAW,CAAC,EAAE,aAAa,GAAG,IAAI,GACjC,WAAW,GAAG,IAAI,CAcpB;AA2CD,8BAA8B;AAC9B,MAAM,WAAW,UAAU;IACzB,wGAAwG;IACxG,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,gGAAgG;IAChG,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAiBhB,CAAC;AAEH,sHAAsH;AACtH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAWjF;AAED,sHAAsH;AACtH,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAED;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,mDA8EjB,CAAC"}
|
package/dist/icon/icon.jsx
CHANGED
|
@@ -152,7 +152,9 @@ const G9Icon = memo(function(props) {
|
|
|
152
152
|
fontFamily: icon.font,
|
|
153
153
|
fontSize: `${size}px`,
|
|
154
154
|
lineHeight: `${size}px`,
|
|
155
|
-
color
|
|
155
|
+
...void 0 !== props.color ? {
|
|
156
|
+
color: rawColor
|
|
157
|
+
} : {}
|
|
156
158
|
}}>
|
|
157
159
|
{fontIconText(icon)}
|
|
158
160
|
</text>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from '@lynx-js/react';
|
|
2
|
+
import type { G9IconInput } from '../icon/icon.js';
|
|
2
3
|
/** Props of {@link G9ScrollSpyBar}. */
|
|
3
4
|
export interface G9ScrollSpyBarProps<K extends string = string> {
|
|
4
5
|
readonly id?: string;
|
|
@@ -7,6 +8,10 @@ export interface G9ScrollSpyBarProps<K extends string = string> {
|
|
|
7
8
|
readonly key: K;
|
|
8
9
|
readonly label: string;
|
|
9
10
|
readonly count?: number;
|
|
11
|
+
/** The section's icon in its pill (a menu category's own). */
|
|
12
|
+
readonly icon?: G9IconInput;
|
|
13
|
+
/** The section reads muted (a category closed right now; SAC shows a clock icon with it). */
|
|
14
|
+
readonly muted?: boolean;
|
|
10
15
|
}[];
|
|
11
16
|
/** The section in view. */
|
|
12
17
|
readonly active: K | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-spy.d.ts","sourceRoot":"","sources":["../../src/layout/scroll-spy.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"scroll-spy.d.ts","sourceRoot":"","sources":["../../src/layout/scroll-spy.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAInE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,uCAAuC;AACvC,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC5D,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAC1B,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;QAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QACxB,8DAA8D;QAC9D,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;QAC5B,6FAA6F;QAC7F,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;KAC1B,EAAE,CAAC;IACJ,2BAA2B;IAC3B,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IAC1B,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;CACrC;AAED,0IAA0I;AAC1I,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,SAAS,CA2ClG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { g9Haptic } from "@g9tm/lynxcontrols-foundation";
|
|
2
2
|
import { useEffect, useRef } from "@lynx-js/react";
|
|
3
|
+
import { G9HorizontalStripContext } from "../anchor/context.jsx";
|
|
3
4
|
import { g9IdProps, g9RowStyle } from "../base/control.jsx";
|
|
4
5
|
import { invokeNode } from "../fields/use-text-input.jsx";
|
|
5
6
|
import { useG9Direction } from "../provider/hooks.jsx";
|
|
@@ -23,16 +24,24 @@ function G9ScrollSpyBar(props) {
|
|
|
23
24
|
props.active
|
|
24
25
|
]);
|
|
25
26
|
return <scroll-view className={`g9-spy${props.className ? ` ${props.className}` : ''}`} {...g9IdProps(props.id)} scroll-orientation="horizontal">
|
|
26
|
-
<
|
|
27
|
-
|
|
27
|
+
<G9HorizontalStripContext.Provider value={true}>
|
|
28
|
+
<view className="g9-spy__row" style={g9RowStyle(dir)}>
|
|
29
|
+
{props.sections.map((s)=><view key={s.key} ref={(r)=>{
|
|
28
30
|
pills.current.set(s.key, r);
|
|
29
31
|
}}>
|
|
30
|
-
|
|
32
|
+
<G9Chip text={void 0 !== s.count ? `${s.label} ${s.count}` : s.label} selected={s.key === props.active} appearance={s.key === props.active ? 'solid' : 'soft'} size="sm" {...s.icon ? {
|
|
33
|
+
icon: s.icon
|
|
34
|
+
} : {}} {...s.muted && s.key !== props.active ? {
|
|
35
|
+
style: {
|
|
36
|
+
opacity: 0.55
|
|
37
|
+
}
|
|
38
|
+
} : {}} onPress={()=>{
|
|
31
39
|
g9Haptic('select');
|
|
32
40
|
props.onSelect(s.key);
|
|
33
41
|
}}/>
|
|
34
|
-
|
|
35
|
-
|
|
42
|
+
</view>)}
|
|
43
|
+
</view>
|
|
44
|
+
</G9HorizontalStripContext.Provider>
|
|
36
45
|
</scroll-view>;
|
|
37
46
|
}
|
|
38
47
|
export { G9ScrollSpyBar };
|
|
@@ -96,6 +96,11 @@ export interface G9PageProps extends Common {
|
|
|
96
96
|
* e.g. a `G9Page` with a `G9TabBar` as its footer (LC-23). Default false.
|
|
97
97
|
*/
|
|
98
98
|
readonly safeBottom?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Bottom toasts sit above the footer: the page measures its footer and tells the nearest `G9Host`'s toasts (a bottom
|
|
101
|
+
* overlay, cleared when the page or its footer goes). Default true; false lets toasts cover the footer.
|
|
102
|
+
*/
|
|
103
|
+
readonly toastsAboveFooter?: boolean;
|
|
99
104
|
readonly children?: ReactNode;
|
|
100
105
|
}
|
|
101
106
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollers.d.ts","sourceRoot":"","sources":["../../src/layout/scrollers.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"scrollers.d.ts","sourceRoot":"","sources":["../../src/layout/scrollers.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,SAAS,EAAoD,MAAM,gBAAgB,CAAC;AAElG,OAAO,EAAE,KAAK,WAAW,EAA+C,MAAM,iBAAiB,CAAC;A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AQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3G,qDAAqD;IACrD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAID;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,CAuEpD"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import "./layout.css";
|
|
2
|
-
import { useEffect, useMemo, useRef, useState } from "@lynx-js/react";
|
|
2
|
+
import { useContext, useEffect, useMemo, useRef, useState } from "@lynx-js/react";
|
|
3
|
+
import { G9HorizontalStripContext } from "../anchor/context.jsx";
|
|
3
4
|
import { g9IdProps, g9RowStyle, g9SafeId, mergeStyle } from "../base/control.jsx";
|
|
5
|
+
import { setHostBottomOverlay } from "../host/bottom-overlays.jsx";
|
|
6
|
+
import { G9HostContext } from "../host/context.jsx";
|
|
4
7
|
import { useG9Core, useG9Direction, useG9Layout, useG9SafeInsets } from "../provider/hooks.jsx";
|
|
5
8
|
const cls = (base, extra)=>extra ? `${base} ${extra}` : base;
|
|
6
9
|
function G9HScroll(props) {
|
|
@@ -77,7 +80,7 @@ function G9HScroll(props) {
|
|
|
77
80
|
minWidth: `${box}px`
|
|
78
81
|
} : {}
|
|
79
82
|
}} bindlayoutchange={(e)=>measured('run', Math.round(e.detail.width))}>
|
|
80
|
-
{props.children}
|
|
83
|
+
<G9HorizontalStripContext.Provider value={true}>{props.children}</G9HorizontalStripContext.Provider>
|
|
81
84
|
</view>
|
|
82
85
|
</scroll-view>
|
|
83
86
|
{fade ? <view className="g9-hscroll__fade" user-interaction-enabled={false} style={{
|
|
@@ -207,6 +210,7 @@ function G9SplitPane(props) {
|
|
|
207
210
|
<view className="g9-split__detail">{props.children}</view>
|
|
208
211
|
</view>;
|
|
209
212
|
}
|
|
213
|
+
let pageSeq = 0;
|
|
210
214
|
function G9Page(props) {
|
|
211
215
|
var _props_gutter, _ref, _g_desktop, _g_tablet, _props_maxWidth;
|
|
212
216
|
const { layout } = useG9Layout();
|
|
@@ -219,6 +223,20 @@ function G9Page(props) {
|
|
|
219
223
|
const gutter = 'number' == typeof g ? g : 'desktop' === layout ? null != (_ref = null != (_g_desktop = g.desktop) ? _g_desktop : g.tablet) ? _ref : g.phone : 'tablet' === layout ? null != (_g_tablet = g.tablet) ? _g_tablet : g.phone : g.phone;
|
|
220
224
|
const maxWidth = null != (_props_maxWidth = props.maxWidth) ? _props_maxWidth : 1360;
|
|
221
225
|
const fixed = false === props.scroll;
|
|
226
|
+
const host = useContext(G9HostContext);
|
|
227
|
+
const overlayKey = useMemo(()=>`g9-page-footer-${++pageSeq}`, []);
|
|
228
|
+
const [footerHeight, setFooterHeight] = useState(0);
|
|
229
|
+
const clears = false !== props.toastsAboveFooter && void 0 !== props.footer && null !== props.footer;
|
|
230
|
+
useEffect(()=>{
|
|
231
|
+
if (!host || !clears || footerHeight <= 0) return;
|
|
232
|
+
setHostBottomOverlay(host, overlayKey, footerHeight);
|
|
233
|
+
return ()=>setHostBottomOverlay(host, overlayKey, null);
|
|
234
|
+
}, [
|
|
235
|
+
host,
|
|
236
|
+
clears,
|
|
237
|
+
footerHeight,
|
|
238
|
+
overlayKey
|
|
239
|
+
]);
|
|
222
240
|
const inner = <view className={fixed ? 'g9-page__content g9-page__content--fill' : 'g9-page__content'} style={{
|
|
223
241
|
paddingLeft: `${gutter}px`,
|
|
224
242
|
paddingRight: `${gutter}px`,
|
|
@@ -238,7 +256,9 @@ function G9Page(props) {
|
|
|
238
256
|
} : void 0, props.style)}>
|
|
239
257
|
{props.header}
|
|
240
258
|
{body}
|
|
241
|
-
{props.footer ? <view className="g9-page__footer"
|
|
259
|
+
{props.footer ? <view className="g9-page__footer" bindlayoutchange={(e)=>setFooterHeight(Math.round(e.detail.height))}>
|
|
260
|
+
{props.footer}
|
|
261
|
+
</view> : null}
|
|
242
262
|
{props.safeBottom && insets.bottom > 0 ? <view className="g9-page__safe-bottom" style={{
|
|
243
263
|
height: `${insets.bottom}px`
|
|
244
264
|
}}/> : null}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from '@lynx-js/react';
|
|
2
|
+
/** Props of {@link G9DirectionScope}. */
|
|
3
|
+
export interface G9DirectionScopeProps {
|
|
4
|
+
readonly className?: string;
|
|
5
|
+
readonly style?: Readonly<Record<string, string | number>>;
|
|
6
|
+
readonly children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A view in the culture's direction (`g9-dir-rtl` / `g9-dir-ltr`), for content an app puts in a G9 row's slot when the
|
|
10
|
+
* app inherits CSS direction. Its own layout is the app's (`className`, `style`).
|
|
11
|
+
*/
|
|
12
|
+
export declare function G9DirectionScope(props: G9DirectionScopeProps): ReactNode;
|
|
13
|
+
//# sourceMappingURL=direction-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction-scope.d.ts","sourceRoot":"","sources":["../../src/provider/direction-scope.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,CAUxE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useG9Direction } from "./hooks.jsx";
|
|
2
|
+
function G9DirectionScope(props) {
|
|
3
|
+
var _props_style;
|
|
4
|
+
const dir = useG9Direction();
|
|
5
|
+
return <view className={`g9-dir-${dir}${props.className ? ` ${props.className}` : ''}`} style={{
|
|
6
|
+
direction: dir,
|
|
7
|
+
...null != (_props_style = props.style) ? _props_style : {}
|
|
8
|
+
}}>
|
|
9
|
+
{props.children}
|
|
10
|
+
</view>;
|
|
11
|
+
}
|
|
12
|
+
export { G9DirectionScope };
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { G9Activity, type G9ActivityProps } from './activity.js';
|
|
2
2
|
export type { G9CultureContextValue, G9KeyboardState, G9LayoutInfo, G9ProviderCore, G9ShapeStore, G9WindowState, } from './contexts.js';
|
|
3
|
+
export { G9DirectionScope, type G9DirectionScopeProps } from './direction-scope.js';
|
|
3
4
|
export { type G9WindowInfo, useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window, } from './hooks.js';
|
|
4
5
|
export { G9KeepAlive, type G9KeepAliveProps } from './keep-alive.js';
|
|
5
6
|
export { type G9PreviewOverrides, G9Provider, type G9ProviderProps } from './provider.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,KAAK,YAAY,EACjB,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,GAChB,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,KAAK,YAAY,EACjB,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,GAChB,MAAM,YAAY,CAAC"}
|
package/dist/provider/index.jsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { G9Activity } from "./activity.jsx";
|
|
2
|
+
export { G9DirectionScope } from "./direction-scope.jsx";
|
|
2
3
|
export { useG9ActivityVisible, useG9Capability, useG9Core, useG9Culture, useG9CultureStore, useG9DesignRegistry, useG9Diagnostics, useG9Direction, useG9Executor, useG9Keyboard, useG9Layout, useG9OptionalService, useG9Preferences, useG9SafeInsets, useG9Service, useG9Settings, useG9Shape, useG9Strings, useG9Theme, useG9ThemeStore, useG9Window } from "./hooks.jsx";
|
|
3
4
|
export { G9KeepAlive } from "./keep-alive.jsx";
|
|
4
5
|
export { G9Provider } from "./provider.jsx";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
direction: rtl;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.g9-motion-off .g9-deferred__cover, .g9-motion-off .g9-progress__fill, .g9-motion-off .g9-expander__chevron, .g9-motion-off .g9-expander__clip, .g9-motion-off .g9-field__label, .g9-motion-off .g9-page-loading, .g9-motion-off .g9-toast__fill, .g9-motion-off .g9-switch__track, .g9-motion-off .g9-switch__thumb, .g9-motion-off .g9-chip, .g9-motion-off .g9-chip__check, .g9-motion-off .g9-press-s96, .g9-motion-off .g9-press-s96:active, .g9-motion-off .g9-press-s92, .g9-motion-off .g9-press-s92:active, .g9-motion-off .g9-press-s82, .g9-motion-off .g9-press-s82:active, .g9-motion-off .g9-press-s985, .g9-motion-off .g9-press-s985:active, .g9-motion-off .g9-press-s99, .g9-motion-off .g9-press-s99:active, .g9-motion-off .g9-press-o78, .g9-motion-off .g9-press-o78:active, .g9-motion-off .g9-press-o78b, .g9-motion-off .g9-press-o78b:active, .g9-motion-off .g9-press-card, .g9-motion-off .g9-press-card:active, .g9-motion-off .g9-card--down, .g9-motion-off .g9-list-row--pressable, .g9-motion-off .g9-
|
|
17
|
+
.g9-motion-off .g9-deferred__cover, .g9-motion-off .g9-progress__fill, .g9-motion-off .g9-expander__chevron, .g9-motion-off .g9-expander__clip, .g9-motion-off .g9-field__label, .g9-motion-off .g9-page-loading, .g9-motion-off .g9-toast__fill, .g9-motion-off .g9-switch__track, .g9-motion-off .g9-switch__thumb, .g9-motion-off .g9-chip, .g9-motion-off .g9-chip__check, .g9-motion-off .g9-press-s96, .g9-motion-off .g9-press-s96:active, .g9-motion-off .g9-press-s92, .g9-motion-off .g9-press-s92:active, .g9-motion-off .g9-press-s82, .g9-motion-off .g9-press-s82:active, .g9-motion-off .g9-press-s985, .g9-motion-off .g9-press-s985:active, .g9-motion-off .g9-press-s99, .g9-motion-off .g9-press-s99:active, .g9-motion-off .g9-press-o78, .g9-motion-off .g9-press-o78:active, .g9-motion-off .g9-press-o78b, .g9-motion-off .g9-press-o78b:active, .g9-motion-off .g9-press-card, .g9-motion-off .g9-press-card:active, .g9-motion-off .g9-card--down, .g9-motion-off .g9-list-row--pressable, .g9-motion-off .g9-step-slider__dot, .g9-motion-off .g9-shell__tab-bar, .g9-motion-off .g9-update-bar, .g9-motion-off .g9-scale__step, .g9-motion-off .g9-seg__indicator {
|
|
18
18
|
transition-duration: 0s;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/provider/provider.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,cAAc;AAChB;;AAMA;EAHE,cAAc;AAChB;;AASA;EANE,uBAAuB;AACzB","sourcesContent":["/* G9Provider root: fills the LynxView and carries the theme variables (set inline / with setProperty). */\n.g9-provider {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n}\n\n/* direction does not inherit in Lynx (plan/specs/02 §2): every G9 root sets it; these are the provider's.\n The theme's font per script (LC-07) is `--g9-font-text`, which the provider writes for its root's direction\n (toShapeCssVariables): every G9 text reads it; in the stock theme it is never set and the platform's font stays. */\n.g9-dir-ltr {\n direction: ltr;\n}\n\n.g9-dir-rtl {\n direction: rtl;\n}\n\n/* Reduced motion (setG9MotionScale(0), the provider's `g9-motion-off`): every CSS transition of the kit ends at once, as\n the JS-timed motion does. Listed one by one (no universal selector); a new transition in a component belongs here too\n (provider-motion.test.ts checks); another package lists its own in its own stylesheet (progress-overlay.css). The infinite spinners keep turning: they say «busy», they move nothing a test waits for. */\n.g9-motion-off .g9-deferred__cover,\n.g9-motion-off .g9-progress__fill,\n.g9-motion-off .g9-expander__chevron,\n.g9-motion-off .g9-expander__clip,\n.g9-motion-off .g9-field__label,\n.g9-motion-off .g9-page-loading,\n.g9-motion-off .g9-toast__fill,\n.g9-motion-off .g9-switch__track,\n.g9-motion-off .g9-switch__thumb,\n.g9-motion-off .g9-chip,\n.g9-motion-off .g9-chip__check,\n.g9-motion-off .g9-press-s96,\n.g9-motion-off .g9-press-s96:active,\n.g9-motion-off .g9-press-s92,\n.g9-motion-off .g9-press-s92:active,\n.g9-motion-off .g9-press-s82,\n.g9-motion-off .g9-press-s82:active,\n.g9-motion-off .g9-press-s985,\n.g9-motion-off .g9-press-s985:active,\n.g9-motion-off .g9-press-s99,\n.g9-motion-off .g9-press-s99:active,\n.g9-motion-off .g9-press-o78,\n.g9-motion-off .g9-press-o78:active,\n.g9-motion-off .g9-press-o78b,\n.g9-motion-off .g9-press-o78b:active,\n.g9-motion-off .g9-press-card,\n.g9-motion-off .g9-press-card:active,\n.g9-motion-off .g9-card--down,\n.g9-motion-off .g9-list-row--pressable,\n.g9-motion-off .g9-
|
|
1
|
+
{"version":3,"sources":["webpack://./src/provider/provider.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAMA;EAHE,cAAc;AAChB;;AAMA;EAHE,cAAc;AAChB;;AASA;EANE,uBAAuB;AACzB","sourcesContent":["/* G9Provider root: fills the LynxView and carries the theme variables (set inline / with setProperty). */\n.g9-provider {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n}\n\n/* direction does not inherit in Lynx (plan/specs/02 §2): every G9 root sets it; these are the provider's.\n The theme's font per script (LC-07) is `--g9-font-text`, which the provider writes for its root's direction\n (toShapeCssVariables): every G9 text reads it; in the stock theme it is never set and the platform's font stays. */\n.g9-dir-ltr {\n direction: ltr;\n}\n\n.g9-dir-rtl {\n direction: rtl;\n}\n\n/* Reduced motion (setG9MotionScale(0), the provider's `g9-motion-off`): every CSS transition of the kit ends at once, as\n the JS-timed motion does. Listed one by one (no universal selector); a new transition in a component belongs here too\n (provider-motion.test.ts checks); another package lists its own in its own stylesheet (progress-overlay.css). The infinite spinners keep turning: they say «busy», they move nothing a test waits for. */\n.g9-motion-off .g9-deferred__cover,\n.g9-motion-off .g9-progress__fill,\n.g9-motion-off .g9-expander__chevron,\n.g9-motion-off .g9-expander__clip,\n.g9-motion-off .g9-field__label,\n.g9-motion-off .g9-page-loading,\n.g9-motion-off .g9-toast__fill,\n.g9-motion-off .g9-switch__track,\n.g9-motion-off .g9-switch__thumb,\n.g9-motion-off .g9-chip,\n.g9-motion-off .g9-chip__check,\n.g9-motion-off .g9-press-s96,\n.g9-motion-off .g9-press-s96:active,\n.g9-motion-off .g9-press-s92,\n.g9-motion-off .g9-press-s92:active,\n.g9-motion-off .g9-press-s82,\n.g9-motion-off .g9-press-s82:active,\n.g9-motion-off .g9-press-s985,\n.g9-motion-off .g9-press-s985:active,\n.g9-motion-off .g9-press-s99,\n.g9-motion-off .g9-press-s99:active,\n.g9-motion-off .g9-press-o78,\n.g9-motion-off .g9-press-o78:active,\n.g9-motion-off .g9-press-o78b,\n.g9-motion-off .g9-press-o78b:active,\n.g9-motion-off .g9-press-card,\n.g9-motion-off .g9-press-card:active,\n.g9-motion-off .g9-card--down,\n.g9-motion-off .g9-list-row--pressable,\n.g9-motion-off .g9-step-slider__dot,\n.g9-motion-off .g9-shell__tab-bar,\n.g9-motion-off .g9-update-bar,\n.g9-motion-off .g9-scale__step,\n.g9-motion-off .g9-seg__indicator {\n transition-duration: 0ms;\n}\n"],"sourceRoot":""}
|
|
@@ -118,14 +118,14 @@
|
|
|
118
118
|
color: var(--g9-text-secondary);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.g9-
|
|
121
|
+
.g9-step-slider {
|
|
122
122
|
flex-direction: column;
|
|
123
123
|
align-self: stretch;
|
|
124
124
|
width: 100%;
|
|
125
125
|
display: flex;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
.g9-
|
|
128
|
+
.g9-step-slider__row {
|
|
129
129
|
align-items: center;
|
|
130
130
|
width: 100%;
|
|
131
131
|
height: 28px;
|
|
@@ -133,15 +133,15 @@
|
|
|
133
133
|
position: relative;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.g9-
|
|
136
|
+
.g9-step-slider__row--ltr {
|
|
137
137
|
flex-direction: row;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.g9-
|
|
140
|
+
.g9-step-slider__row--rtl {
|
|
141
141
|
flex-direction: row-reverse;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
.g9-
|
|
144
|
+
.g9-step-slider__rail {
|
|
145
145
|
background-color: var(--g9-surface-container-high);
|
|
146
146
|
border-radius: 3px;
|
|
147
147
|
height: 6px;
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
right: 11px;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
.g9-
|
|
154
|
+
.g9-step-slider__seg {
|
|
155
155
|
flex: 1 1 0;
|
|
156
156
|
justify-content: center;
|
|
157
157
|
align-items: center;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
display: flex;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
.g9-
|
|
162
|
+
.g9-step-slider__dot {
|
|
163
163
|
background-color: var(--g9-outline-variant);
|
|
164
164
|
border-radius: 7px;
|
|
165
165
|
width: 14px;
|
|
@@ -167,36 +167,36 @@
|
|
|
167
167
|
transition: transform .14s ease-out;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
.g9-
|
|
170
|
+
.g9-step-slider__dot--on {
|
|
171
171
|
background-color: var(--g9-primary);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
.g9-
|
|
174
|
+
.g9-step-slider__dot--current {
|
|
175
175
|
transform: scale(1.85);
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.g9-
|
|
178
|
+
.g9-step-slider__labels {
|
|
179
179
|
justify-content: space-between;
|
|
180
180
|
width: 100%;
|
|
181
181
|
margin-top: 2px;
|
|
182
182
|
display: flex;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
.g9-
|
|
185
|
+
.g9-step-slider__labels--ltr {
|
|
186
186
|
flex-direction: row;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
.g9-
|
|
189
|
+
.g9-step-slider__labels--rtl {
|
|
190
190
|
flex-direction: row-reverse;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
.g9-
|
|
193
|
+
.g9-step-slider__label {
|
|
194
194
|
font-size: 11px;
|
|
195
195
|
font-family: var(--g9-font-text);
|
|
196
196
|
color: var(--g9-text-tertiary);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.g9-
|
|
199
|
+
.g9-step-slider__label--current {
|
|
200
200
|
color: var(--g9-text-secondary);
|
|
201
201
|
font-weight: 700;
|
|
202
202
|
font-family: var(--g9-font-text-700);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/range-slider/range-slider.css"],"names":[],"mappings":"AAAA;EACE,sBAAsB;EACtB,uBAAuB;EACvB,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;AACpB;;AAKA;EAFE,2BAA2B;EAC3B,iBAAiB;AACnB;;AAKA;EAFE,YAAY;AACd;;AAKA;EAFE,uBAAuB;EACvB,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,2CAA2C;EAC3C,kBAAkB;EAClB,OAAO;EACP,WAAW;EACX,kBAAkB;AACpB;;AAOA;EAJE,mCAAmC;EACnC,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAQA;EALE,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;AACX;;AASA;EANE,WAAW;EACX,YAAY;AACd;;AASA;EANE,mBAAmB;EACnB,mBAAmB;EACnB,+BAA+B;EAC/B,mCAAmC;EACnC,mBAAmB;EACnB,WAAW;EACX,YAAY;AACd;;AASA;EANE,iBAAiB;AACnB;;AASA;EANE,2CAA2C;EAC3C,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,QAAQ;AACV;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;AACrC;;AAWA;EARE,uBAAuB;EACvB,qBAAqB;EACrB,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,QAAQ;AACV;;AAWA;EARE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,+BAA+B;AACjC;;AAWA;EARE,mBAAmB;EACnB,8BAA8B;EAC9B,gBAAgB;EAChB,aAAa;AACf;;AAWA;EARE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAYA;EATE,sBAAsB;EACtB,mBAAmB;EACnB,WAAW;EACX,aAAa;AACf;;AAYA;EATE,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAYA;EATE,mBAAmB;AACrB;;AAYA;EATE,2BAA2B;AAC7B;;AAYA;EATE,kDAAkD;EAClD,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,WAAW;AACb;;AAYA;EATE,WAAW;EACX,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AAcA;EAXE,2CAA2C;EAC3C,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,mCAAmC;AACrC;;AAcA;EAXE,mCAAmC;AACrC;;AAcA;EAXE,sBAAsB;AACxB;;AAcA;EAXE,8BAA8B;EAC9B,WAAW;EACX,eAAe;EACf,aAAa;AACf;;AAcA;EAXE,mBAAmB;AACrB;;AAcA;EAXE,2BAA2B;AAC7B;;AAcA;EAXE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;AAChC;;AAcA;EAXE,+BAA+B;EAC/B,gBAAgB;EAChB,oCAAoC;AACtC","sourcesContent":[".g9-slider {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding-left: 16px;\n padding-right: 16px;\n}\n\n/* MAUI G9RangeSliderDrawable with labels: the track's centre at SliderTrackY (52) of the 104 dp canvas — the room above\n is the drag tooltip's — and the end labels SliderLabelGap (18) under the thumb. Centring the column put the track at\n ~34 dp, 18 dp higher than MAUI's. */\n.g9-slider--labels {\n justify-content: flex-start;\n padding-top: 38px;\n}\n\n.g9-slider--disabled {\n opacity: 0.38;\n}\n\n.g9-slider__root {\n height: 28px;\n display: flex;\n justify-content: center;\n}\n\n/* lynx-ui SliderTrack: a 28 px flex row holding this view (the visible track) next to the fill and the thumbs, which\n position against the 28 px row. The track takes the row's width; the fill is the 8 px band at its centre. */\n.g9-slider__track {\n position: relative;\n flex: 1;\n height: 8px;\n border-radius: 4px;\n background-color: var(--g9-surface-variant);\n}\n\n.g9-slider__fill {\n position: absolute;\n top: 10px;\n left: 0px;\n right: 0px;\n height: 8px;\n border-radius: 4px;\n background-color: var(--g9-primary);\n}\n\n/* A `bands` stretch: the fill's band, under it. */\n.g9-slider__band {\n position: absolute;\n top: 10px;\n height: 8px;\n border-radius: 4px;\n}\n\n/* lynx-ui SliderThumb centres this view on the value (top 50 %, translate -50 %). */\n.g9-slider__thumb {\n width: 28px;\n height: 28px;\n}\n\n.g9-slider__thumb-dot {\n width: 28px;\n height: 28px;\n border-radius: 14px;\n border-width: 2.5px;\n border-style: solid;\n border-color: var(--g9-primary);\n background-color: var(--g9-surface);\n}\n\n.g9-slider__thumb-dot--active {\n border-width: 3px;\n}\n\n.g9-slider__tooltip {\n position: absolute;\n top: 4px;\n height: 26px;\n margin-left: -21px;\n min-width: 42px;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-inverse-surface);\n}\n\n.g9-slider__tooltip-text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-inverse-on-surface);\n}\n\n/* MAUI 1.4.9 ShowThumbValues: each value above its thumb, always — a 100 px box centred on the thumb, its text at the\n box's bottom 18 px above the thumb (track 52 − radius 14 − gap 18 − 18 = 2 from the top), 12 px TextSecondary. */\n.g9-slider__thumb-value {\n position: absolute;\n top: 2px;\n width: 100px;\n height: 18px;\n margin-left: -50px;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n}\n\n.g9-slider__thumb-value-text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-text-secondary);\n}\n\n.g9-slider__labels {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-top: 18px;\n}\n\n.g9-slider__label {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n/* G9StepSlider: dots on a rail, the chosen one larger */\n.g9-
|
|
1
|
+
{"version":3,"sources":["webpack://./src/range-slider/range-slider.css"],"names":[],"mappings":"AAAA;EACE,sBAAsB;EACtB,uBAAuB;EACvB,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;AACpB;;AAKA;EAFE,2BAA2B;EAC3B,iBAAiB;AACnB;;AAKA;EAFE,YAAY;AACd;;AAKA;EAFE,uBAAuB;EACvB,YAAY;EACZ,aAAa;AACf;;AAOA;EAJE,2CAA2C;EAC3C,kBAAkB;EAClB,OAAO;EACP,WAAW;EACX,kBAAkB;AACpB;;AAOA;EAJE,mCAAmC;EACnC,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAQA;EALE,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;AACX;;AASA;EANE,WAAW;EACX,YAAY;AACd;;AASA;EANE,mBAAmB;EACnB,mBAAmB;EACnB,+BAA+B;EAC/B,mCAAmC;EACnC,mBAAmB;EACnB,WAAW;EACX,YAAY;AACd;;AASA;EANE,iBAAiB;AACnB;;AASA;EANE,2CAA2C;EAC3C,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,QAAQ;AACV;;AASA;EANE,eAAe;EACf,gCAAgC;EAChC,mCAAmC;AACrC;;AAWA;EARE,uBAAuB;EACvB,qBAAqB;EACrB,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,QAAQ;AACV;;AAWA;EARE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,+BAA+B;AACjC;;AAWA;EARE,mBAAmB;EACnB,8BAA8B;EAC9B,gBAAgB;EAChB,aAAa;AACf;;AAWA;EARE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAYA;EATE,sBAAsB;EACtB,mBAAmB;EACnB,WAAW;EACX,aAAa;AACf;;AAYA;EATE,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAYA;EATE,mBAAmB;AACrB;;AAYA;EATE,2BAA2B;AAC7B;;AAYA;EATE,kDAAkD;EAClD,kBAAkB;EAClB,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,WAAW;AACb;;AAYA;EATE,WAAW;EACX,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,aAAa;AACf;;AAcA;EAXE,2CAA2C;EAC3C,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,mCAAmC;AACrC;;AAcA;EAXE,mCAAmC;AACrC;;AAcA;EAXE,sBAAsB;AACxB;;AAcA;EAXE,8BAA8B;EAC9B,WAAW;EACX,eAAe;EACf,aAAa;AACf;;AAcA;EAXE,mBAAmB;AACrB;;AAcA;EAXE,2BAA2B;AAC7B;;AAcA;EAXE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;AAChC;;AAcA;EAXE,+BAA+B;EAC/B,gBAAgB;EAChB,oCAAoC;AACtC","sourcesContent":[".g9-slider {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding-left: 16px;\n padding-right: 16px;\n}\n\n/* MAUI G9RangeSliderDrawable with labels: the track's centre at SliderTrackY (52) of the 104 dp canvas — the room above\n is the drag tooltip's — and the end labels SliderLabelGap (18) under the thumb. Centring the column put the track at\n ~34 dp, 18 dp higher than MAUI's. */\n.g9-slider--labels {\n justify-content: flex-start;\n padding-top: 38px;\n}\n\n.g9-slider--disabled {\n opacity: 0.38;\n}\n\n.g9-slider__root {\n height: 28px;\n display: flex;\n justify-content: center;\n}\n\n/* lynx-ui SliderTrack: a 28 px flex row holding this view (the visible track) next to the fill and the thumbs, which\n position against the 28 px row. The track takes the row's width; the fill is the 8 px band at its centre. */\n.g9-slider__track {\n position: relative;\n flex: 1;\n height: 8px;\n border-radius: 4px;\n background-color: var(--g9-surface-variant);\n}\n\n.g9-slider__fill {\n position: absolute;\n top: 10px;\n left: 0px;\n right: 0px;\n height: 8px;\n border-radius: 4px;\n background-color: var(--g9-primary);\n}\n\n/* A `bands` stretch: the fill's band, under it. */\n.g9-slider__band {\n position: absolute;\n top: 10px;\n height: 8px;\n border-radius: 4px;\n}\n\n/* lynx-ui SliderThumb centres this view on the value (top 50 %, translate -50 %). */\n.g9-slider__thumb {\n width: 28px;\n height: 28px;\n}\n\n.g9-slider__thumb-dot {\n width: 28px;\n height: 28px;\n border-radius: 14px;\n border-width: 2.5px;\n border-style: solid;\n border-color: var(--g9-primary);\n background-color: var(--g9-surface);\n}\n\n.g9-slider__thumb-dot--active {\n border-width: 3px;\n}\n\n.g9-slider__tooltip {\n position: absolute;\n top: 4px;\n height: 26px;\n margin-left: -21px;\n min-width: 42px;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-inverse-surface);\n}\n\n.g9-slider__tooltip-text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-inverse-on-surface);\n}\n\n/* MAUI 1.4.9 ShowThumbValues: each value above its thumb, always — a 100 px box centred on the thumb, its text at the\n box's bottom 18 px above the thumb (track 52 − radius 14 − gap 18 − 18 = 2 from the top), 12 px TextSecondary. */\n.g9-slider__thumb-value {\n position: absolute;\n top: 2px;\n width: 100px;\n height: 18px;\n margin-left: -50px;\n display: flex;\n align-items: flex-end;\n justify-content: center;\n}\n\n.g9-slider__thumb-value-text {\n font-size: 12px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-text-secondary);\n}\n\n.g9-slider__labels {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-top: 18px;\n}\n\n.g9-slider__label {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n/* G9StepSlider: dots on a rail, the chosen one larger */\n.g9-step-slider {\n display: flex;\n flex-direction: column;\n align-self: stretch;\n width: 100%;\n}\n\n.g9-step-slider__row {\n position: relative;\n display: flex;\n width: 100%;\n height: 28px;\n align-items: center;\n}\n\n.g9-step-slider__row--ltr {\n flex-direction: row;\n}\n\n.g9-step-slider__row--rtl {\n flex-direction: row-reverse;\n}\n\n.g9-step-slider__rail {\n position: absolute;\n left: 11px;\n right: 11px;\n top: 11px;\n height: 6px;\n border-radius: 3px;\n background-color: var(--g9-surface-container-high);\n}\n\n.g9-step-slider__seg {\n display: flex;\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0px;\n height: 28px;\n align-items: center;\n justify-content: center;\n}\n\n.g9-step-slider__dot {\n width: 14px;\n height: 14px;\n border-radius: 7px;\n background-color: var(--g9-outline-variant);\n transition: transform 140ms ease-out;\n}\n\n.g9-step-slider__dot--on {\n background-color: var(--g9-primary);\n}\n\n.g9-step-slider__dot--current {\n transform: scale(1.85);\n}\n\n.g9-step-slider__labels {\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin-top: 2px;\n}\n\n.g9-step-slider__labels--ltr {\n flex-direction: row;\n}\n\n.g9-step-slider__labels--rtl {\n flex-direction: row-reverse;\n}\n\n.g9-step-slider__label {\n font-size: 11px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-tertiary);\n}\n\n.g9-step-slider__label--current {\n font-weight: 700;\n color: var(--g9-text-secondary);\n font-family: var(--g9-font-text-700);\n}\n"],"sourceRoot":""}
|
|
@@ -22,7 +22,7 @@ function G9StepSlider(props) {
|
|
|
22
22
|
g9Haptic('tick');
|
|
23
23
|
setValue(i);
|
|
24
24
|
};
|
|
25
|
-
const control = useG9Control(props, 'g9-
|
|
25
|
+
const control = useG9Control(props, 'g9-step-slider', {
|
|
26
26
|
kind: 'picker',
|
|
27
27
|
label: ()=>props.accessibilityLabel,
|
|
28
28
|
capabilities: {
|
|
@@ -38,17 +38,17 @@ function G9StepSlider(props) {
|
|
|
38
38
|
return <view className={control.className} {...control.idProps} style={control.rootStyle()} accessibility-element={true} accessibility-traits="adjustable" {...props.accessibilityLabel ? {
|
|
39
39
|
'accessibility-label': props.accessibilityLabel
|
|
40
40
|
} : {}} accessibility-value={null != (_word = word(value)) ? _word : String(value)}>
|
|
41
|
-
<view className={`g9-
|
|
42
|
-
<view className="g9-
|
|
41
|
+
<view className={`g9-step-slider__row g9-step-slider__row--${side}`}>
|
|
42
|
+
<view className="g9-step-slider__rail"/>
|
|
43
43
|
{Array.from({
|
|
44
44
|
length: max + 1
|
|
45
|
-
}, (_, i)=><view key={i} className="g9-
|
|
46
|
-
<view className={i === value ? 'g9-
|
|
45
|
+
}, (_, i)=><view key={i} className="g9-step-slider__seg" bindtap={()=>pick(i)}>
|
|
46
|
+
<view className={i === value ? 'g9-step-slider__dot g9-step-slider__dot--on g9-step-slider__dot--current' : i < value ? 'g9-step-slider__dot g9-step-slider__dot--on' : 'g9-step-slider__dot'}/>
|
|
47
47
|
</view>)}
|
|
48
48
|
</view>
|
|
49
|
-
{(null == (_props_labels = props.labels) ? void 0 : _props_labels.length) ? <view className={`g9-
|
|
50
|
-
<text className="g9-
|
|
51
|
-
<text className="g9-
|
|
49
|
+
{(null == (_props_labels = props.labels) ? void 0 : _props_labels.length) ? <view className={`g9-step-slider__labels g9-step-slider__labels--${side}`}>
|
|
50
|
+
<text className="g9-step-slider__label">{word(0)}</text>
|
|
51
|
+
<text className="g9-step-slider__label g9-step-slider__label--current">{word(value)}</text>
|
|
52
52
|
</view> : null}
|
|
53
53
|
</view>;
|
|
54
54
|
}
|