@octane-xplat/ui 0.5.0 → 0.6.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 +3 -0
- package/dist/native/Absolute.native.tsrx.js +43 -0
- package/dist/native/Accordion.native.tsrx.js +75 -0
- package/dist/native/ActivityIndicator.native.tsrx.js +35 -0
- package/dist/native/Alert.native.tsrx.js +74 -0
- package/dist/native/Avatar.native.tsrx.js +76 -0
- package/dist/native/AvatarGroup.native.tsrx.js +84 -0
- package/dist/native/Badge.native.tsrx.js +29 -0
- package/dist/native/Banner.native.tsrx.js +80 -0
- package/dist/native/Breadcrumb.native.tsrx.js +66 -0
- package/dist/native/Button.native.tsrx.js +62 -0
- package/dist/native/CameraView.native.tsrx.js +165 -0
- package/dist/native/Card.native.tsrx.js +64 -0
- package/dist/native/Checkbox.native.tsrx.js +58 -0
- package/dist/native/CheckboxGroup.native.tsrx.js +70 -0
- package/dist/native/Chip.native.tsrx.js +83 -0
- package/dist/native/Collapsible.native.tsrx.js +74 -0
- package/dist/native/CommandPalette.native.tsrx.js +143 -0
- package/dist/native/ContextMenu.native.tsrx.js +140 -0
- package/dist/native/Drawer.native.tsrx.js +60 -0
- package/dist/native/DropdownMenu.native.tsrx.js +155 -0
- package/dist/native/Empty.native.tsrx.js +82 -0
- package/dist/native/FieldGroup.native.tsrx.js +39 -0
- package/dist/native/FormField.native.tsrx.js +53 -0
- package/dist/native/{ui8.js → Grid.native.tsrx.js} +19 -8
- package/dist/native/{ui59.js → Heading.native.tsrx.js} +2 -2
- package/dist/native/{ui58.js → Icon.native.tsrx.js} +4 -4
- package/dist/native/{ui29.js → Image.native.tsrx.js} +4 -4
- package/dist/native/InputNumber.native.tsrx.js +146 -0
- package/dist/native/InputRating.native.tsrx.js +74 -0
- package/dist/native/InputTags.native.tsrx.js +131 -0
- package/dist/native/Kbd.native.tsrx.js +29 -0
- package/dist/native/{ui50.js → KeyboardAvoiding.native.tsrx.js} +1 -1
- package/dist/native/{ui17.js → Link.native.tsrx.js} +1 -1
- package/dist/native/{ui55.js → Meter.native.tsrx.js} +2 -2
- package/dist/native/{ui22.js → NavLink.native.tsrx.js} +3 -3
- package/dist/native/NavigationMenu.native.tsrx.js +67 -0
- package/dist/native/{ui35.js → Overlay.native.tsrx.js} +3 -3
- package/dist/native/Pager.native.tsrx.js +282 -0
- package/dist/native/Pagination.native.tsrx.js +107 -0
- package/dist/native/PinInput.native.tsrx.js +94 -0
- package/dist/native/{ui38.js → Popover.native.tsrx.js} +5 -5
- package/dist/native/{ui16.js → Pressable.native.tsrx.js} +20 -14
- package/dist/native/ProgressGroup.native.tsrx.js +66 -0
- package/dist/native/RadioGroup.native.tsrx.js +85 -0
- package/dist/native/{ui15.js → RichText.native.tsrx.js} +15 -22
- package/dist/native/Row.native.tsrx.js +98 -0
- package/dist/native/{ui49.js → SafeArea.native.tsrx.js} +2 -2
- package/dist/native/{ui45.js → Screen.native.tsrx.js} +3 -3
- package/dist/native/{ui26.js → ScrollBox.native.tsrx.js} +1 -1
- package/dist/native/ScrollView.native.tsrx.js +233 -0
- package/dist/native/SearchInput.native.tsrx.js +151 -0
- package/dist/native/SegmentedControl.native.tsrx.js +75 -0
- package/dist/native/Select.native.tsrx.js +202 -0
- package/dist/native/Separator.native.tsrx.js +25 -0
- package/dist/native/{ui63.js → Sheet.native.tsrx.js} +15 -7
- package/dist/native/Skeleton.native.tsrx.js +28 -0
- package/dist/native/Slider.native.tsrx.js +98 -0
- package/dist/native/{ui13.js → Spacer.native.tsrx.js} +2 -2
- package/dist/native/{ui9.js → Stack.native.tsrx.js} +20 -9
- package/dist/native/Stepper.native.tsrx.js +75 -0
- package/dist/native/Switch.native.tsrx.js +33 -0
- package/dist/native/Table.native.tsrx.js +103 -0
- package/dist/native/Tabs.native.tsrx.js +163 -0
- package/dist/native/{ui14.js → Text.native.tsrx.js} +4 -3
- package/dist/native/{ui24.js → TextArea.native.tsrx.js} +17 -16
- package/dist/native/{ui23.js → TextInput.native.tsrx.js} +21 -16
- package/dist/native/Timeline.native.tsrx.js +112 -0
- package/dist/native/Tree.native.tsrx.js +140 -0
- package/dist/native/User.native.tsrx.js +95 -0
- package/dist/native/Video.native.tsrx.js +248 -0
- package/dist/native/View.native.tsrx.js +98 -0
- package/dist/native/WebView.native.tsrx.js +110 -0
- package/dist/native/aliases.native.tsrx.js +38 -0
- package/dist/native/android/BottomNavigationView.android.tsrx.js +171 -0
- package/dist/native/android/CircularProgressIndicator.android.tsrx.js +27 -0
- package/dist/native/{ui51.js → android/DrawerLayout.android.tsrx.js} +5 -7
- package/dist/native/android/MaterialDialog.android.tsrx.js +62 -0
- package/dist/native/android/MaterialSwitch.android.tsrx.js +28 -0
- package/dist/native/android/RecyclerView.android.tsrx.js +248 -0
- package/dist/native/android/SeekBar.android.tsrx.js +34 -0
- package/dist/native/android/index.js +9 -0
- package/dist/native/android/openModal.android.js +39 -0
- package/dist/native/camera-permission.native.js +47 -0
- package/dist/native/child-array.js +15 -0
- package/dist/native/icons.js +25 -0
- package/dist/native/{ui11.js → ios/LiquidGlass.ios.tsrx.js} +4 -4
- package/dist/native/{ui12.js → ios/LiquidGlassContainer.ios.tsrx.js} +4 -4
- package/dist/native/ios/SideDrawer.ios.tsrx.js +64 -0
- package/dist/native/{ui53.js → ios/UIActivityIndicatorView.ios.tsrx.js} +5 -5
- package/dist/native/{ui32.js → ios/UIModal.ios.tsrx.js} +10 -6
- package/dist/native/{ui56.js → ios/UISlider.ios.tsrx.js} +5 -5
- package/dist/native/{ui47.js → ios/UISwitch.ios.tsrx.js} +5 -5
- package/dist/native/ios/UITabBar.ios.tsrx.js +166 -0
- package/dist/native/ios/UITableView.ios.tsrx.js +270 -0
- package/dist/native/ios/index.js +11 -0
- package/dist/native/{ui33.js → ios/openModal.ios.js} +5 -4
- package/dist/native/modal-presenter.native.js +19 -0
- package/dist/native/native/index.js +4 -0
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/{ui6.js → pan.native.tsrx.js} +9 -69
- package/dist/native/platform.native.js +10 -0
- package/dist/native/refresh-metrics.js +9 -0
- package/dist/native/refresh.native.js +177 -0
- package/dist/native/{ui34.js → root-layout.native.js} +6 -1
- package/dist/native/{ui21.js → route.native.js} +96 -12
- package/dist/native/sheet-detents.native.js +102 -0
- package/dist/native/{ui64.js → sheet-service.native.js} +19 -9
- package/dist/native/sheet-snap.js +35 -0
- package/dist/native/text-write.native.js +27 -0
- package/dist/native/{ui42.js → theme/status-bar-scheme.native.js} +2 -2
- package/dist/{web/ui29.js → native/theme/theme-scheme.js} +2 -2
- package/dist/native/{ui40.js → toast-anchor.native.tsrx.js} +3 -3
- package/dist/native/translate.native.js +11 -0
- package/dist/native/ui.js +93 -55
- package/dist/native/use-back.native.tsrx.js +9 -0
- package/dist/native/{ui52.js → useMeasure.native.tsrx.js} +1 -1
- package/dist/native/video-chrome.native.tsrx.js +365 -0
- package/dist/web/Absolute.web.tsrx.js +47 -0
- package/dist/web/Accordion.web.tsrx.js +85 -0
- package/dist/web/{ui48.js → ActivityIndicator.web.tsrx.js} +1 -1
- package/dist/web/Alert.web.tsrx.js +79 -0
- package/dist/web/Avatar.web.tsrx.js +106 -0
- package/dist/web/AvatarGroup.web.tsrx.js +108 -0
- package/dist/web/Badge.web.tsrx.js +37 -0
- package/dist/web/Banner.web.tsrx.js +79 -0
- package/dist/web/Breadcrumb.web.tsrx.js +135 -0
- package/dist/web/Button.web.tsrx.js +45 -0
- package/dist/web/CameraView.web.tsrx.js +310 -0
- package/dist/web/Card.web.tsrx.js +73 -0
- package/dist/web/Checkbox.web.tsrx.js +89 -0
- package/dist/web/CheckboxGroup.web.tsrx.js +79 -0
- package/dist/web/Chip.web.tsrx.js +64 -0
- package/dist/web/Collapsible.web.tsrx.js +94 -0
- package/dist/web/CommandPalette.web.tsrx.js +125 -0
- package/dist/web/ContextMenu.web.tsrx.js +154 -0
- package/dist/web/{ui45.js → Drawer.web.tsrx.js} +13 -9
- package/dist/web/DropdownMenu.web.tsrx.js +162 -0
- package/dist/web/Empty.web.tsrx.js +89 -0
- package/dist/web/FieldGroup.web.tsrx.js +57 -0
- package/dist/web/FormField.web.tsrx.js +92 -0
- package/dist/web/Grid.web.tsrx.js +65 -0
- package/dist/web/{ui54.js → Heading.web.tsrx.js} +2 -2
- package/dist/web/{ui53.js → Icon.web.tsrx.js} +2 -2
- package/dist/web/{ui25.js → Image.web.tsrx.js} +2 -2
- package/dist/web/InputNumber.web.tsrx.js +99 -0
- package/dist/web/InputRating.web.tsrx.js +72 -0
- package/dist/web/InputTags.web.tsrx.js +122 -0
- package/dist/web/Kbd.web.tsrx.js +37 -0
- package/dist/web/{ui50.js → Meter.web.tsrx.js} +1 -1
- package/dist/web/{ui19.js → NavLink.web.tsrx.js} +1 -1
- package/dist/web/NavigationMenu.web.tsrx.js +118 -0
- package/dist/web/{ui31.js → Overlay.web.tsrx.js} +2 -2
- package/dist/web/Pager.web.tsrx.js +337 -0
- package/dist/web/Pagination.web.tsrx.js +80 -0
- package/dist/web/PinInput.web.tsrx.js +72 -0
- package/dist/web/{ui33.js → Popover.web.tsrx.js} +3 -3
- package/dist/web/{ui15.js → Pressable.web.tsrx.js} +68 -95
- package/dist/web/ProgressGroup.web.tsrx.js +109 -0
- package/dist/web/RadioGroup.web.tsrx.js +69 -0
- package/dist/web/{ui14.js → RichText.web.tsrx.js} +2 -2
- package/dist/web/Row.web.tsrx.js +250 -0
- package/dist/web/{ui43.js → SafeArea.web.tsrx.js} +1 -1
- package/dist/web/{ui39.js → Screen.web.tsrx.js} +1 -1
- package/dist/web/{ui24.js → ScrollBox.web.tsrx.js} +1 -1
- package/dist/web/ScrollView.web.tsrx.js +388 -0
- package/dist/web/SearchInput.web.tsrx.js +137 -0
- package/dist/web/SegmentedControl.web.tsrx.js +75 -0
- package/dist/web/Select.web.tsrx.js +149 -0
- package/dist/web/Separator.web.tsrx.js +42 -0
- package/dist/web/Sheet.web.tsrx.js +81 -0
- package/dist/web/Skeleton.web.tsrx.js +56 -0
- package/dist/web/Slider.web.tsrx.js +97 -0
- package/dist/web/{ui12.js → Spacer.web.tsrx.js} +1 -1
- package/dist/web/Stack.web.tsrx.js +47 -0
- package/dist/web/Stepper.web.tsrx.js +65 -0
- package/dist/web/Switch.web.tsrx.js +59 -0
- package/dist/web/Table.web.tsrx.js +161 -0
- package/dist/web/{ui40.js → Tabs.web.tsrx.js} +33 -16
- package/dist/web/{ui13.js → Text.web.tsrx.js} +18 -50
- package/dist/web/{ui21.js → TextArea.web.tsrx.js} +4 -4
- package/dist/web/{ui20.js → TextInput.web.tsrx.js} +8 -8
- package/dist/web/Timeline.web.tsrx.js +172 -0
- package/dist/web/Tree.web.tsrx.js +146 -0
- package/dist/web/User.web.tsrx.js +116 -0
- package/dist/web/Video.web.tsrx.js +400 -0
- package/dist/web/View.web.tsrx.js +250 -0
- package/dist/web/WebView.web.tsrx.js +235 -0
- package/dist/web/aliases.web.tsrx.js +24 -0
- package/dist/web/{ui36.js → anim.web.tsrx.js} +3 -35
- package/dist/web/child-array.js +15 -0
- package/dist/web/icons.js +25 -0
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/pan.web.tsrx.js +66 -0
- package/dist/web/platform.web.js +9 -0
- package/dist/web/refresh-metrics.js +9 -0
- package/dist/web/refresh.web.js +133 -0
- package/dist/web/{ui18.js → route.web.js} +14 -2
- package/dist/web/sheet-detents.web.js +103 -0
- package/dist/web/{ui60.js → sheet-service.web.js} +5 -1
- package/dist/web/sheet-snap.js +35 -0
- package/dist/{native/ui31.js → web/theme/theme-scheme.js} +2 -2
- package/dist/web/{ui35.js → toast-anchor.web.tsrx.js} +3 -3
- package/dist/web/transform.web.js +43 -0
- package/dist/web/translate.web.js +13 -0
- package/dist/web/ui.js +91 -53
- package/dist/web/use-back.web.tsrx.js +9 -0
- package/dist/web/video-chrome.web.tsrx.js +207 -0
- package/dist/web/{ui34.js → web/Hoverable.web.tsrx.js} +6 -6
- package/dist/web/web/Tooltip.web.tsrx.js +183 -0
- package/dist/web/web/index.js +3 -0
- package/package.json +30 -3
- package/src/theme/tokens.css +1380 -200
- package/types/android.d.ts +53 -0
- package/types/index.d.ts +32 -17
- package/types/index.native.d.ts +273 -0
- package/types/index.web.d.ts +272 -0
- package/types/ios.d.ts +59 -0
- package/types/native.d.ts +5 -0
- package/types/props.d.ts +930 -40
- package/types/web.d.ts +17 -0
- package/dist/native/ui10.js +0 -32
- package/dist/native/ui25.js +0 -141
- package/dist/native/ui27.js +0 -61
- package/dist/native/ui39.js +0 -103
- package/dist/native/ui4.js +0 -24
- package/dist/native/ui46.js +0 -267
- package/dist/native/ui57.js +0 -19
- package/dist/native/ui60.js +0 -14
- package/dist/native/ui7.js +0 -52
- package/dist/web/ui10.js +0 -46
- package/dist/web/ui11.js +0 -42
- package/dist/web/ui22.js +0 -108
- package/dist/web/ui23.js +0 -96
- package/dist/web/ui26.js +0 -45
- package/dist/web/ui3.js +0 -31
- package/dist/web/ui30.js +0 -34
- package/dist/web/ui41.js +0 -43
- package/dist/web/ui44.js +0 -42
- package/dist/web/ui5.js +0 -168
- package/dist/web/ui51.js +0 -47
- package/dist/web/ui52.js +0 -19
- package/dist/web/ui55.js +0 -17
- package/dist/web/ui59.js +0 -44
- package/dist/web/ui6.js +0 -94
- package/dist/web/ui7.js +0 -62
- package/dist/web/ui8.js +0 -46
- package/dist/web/ui9.js +0 -46
- /package/dist/native/{ui20.js → RouteHost.native.tsrx.js} +0 -0
- /package/dist/native/{ui41.js → anim.native.tsrx.js} +0 -0
- /package/dist/native/{ui2.js → cx.js} +0 -0
- /package/dist/native/{ui3.js → escape-props.native.js} +0 -0
- /package/dist/native/{ui5.js → layout-child.native.js} +0 -0
- /package/dist/native/{ui54.js → meter-math.js} +0 -0
- /package/dist/native/{ui36.js → platformProps.native.js} +0 -0
- /package/dist/native/{ui37.js → popover-position.js} +0 -0
- /package/dist/native/{ui19.js → route-table.js} +0 -0
- /package/dist/native/{ui48.js → safeAreaInsets.native.tsrx.js} +0 -0
- /package/dist/native/{ui18.js → stacks.native.js} +0 -0
- /package/dist/native/{ui61.js → store.js} +0 -0
- /package/dist/native/{ui43.js → styled.native.tsrx.js} +0 -0
- /package/dist/native/{ui28.js → svg.native.js} +0 -0
- /package/dist/native/{ui30.js → theme/colorScheme.native.js} +0 -0
- /package/dist/native/{ui62.js → use-store.native.tsrx.js} +0 -0
- /package/dist/native/{ui44.js → windows.native.js} +0 -0
- /package/dist/web/{ui16.js → Link.web.tsrx.js} +0 -0
- /package/dist/web/{ui28.js → cx.js} +0 -0
- /package/dist/web/{ui2.js → escape-props.web.js} +0 -0
- /package/dist/web/{ui4.js → layout-child.web.js} +0 -0
- /package/dist/web/{ui49.js → meter-math.js} +0 -0
- /package/dist/web/{ui47.js → platformProps.web.js} +0 -0
- /package/dist/web/{ui32.js → popover-position.js} +0 -0
- /package/dist/web/{ui17.js → route-table.js} +0 -0
- /package/dist/web/{ui42.js → safeAreaInsets.web.tsrx.js} +0 -0
- /package/dist/web/{ui56.js → stacks.web.js} +0 -0
- /package/dist/web/{ui57.js → store.js} +0 -0
- /package/dist/web/{ui37.js → styled.web.tsrx.js} +0 -0
- /package/dist/web/{ui27.js → theme/colorScheme.web.js} +0 -0
- /package/dist/web/{ui58.js → use-store.web.tsrx.js} +0 -0
- /package/dist/web/{ui46.js → useMeasure.web.tsrx.js} +0 -0
- /package/dist/web/{ui38.js → windows.web.js} +0 -0
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import { applyEscapeProps } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { __s, bagOf, clone, snapshotSpread, template } from "octane";
|
|
1
|
+
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
|
+
import { layoutChildProps } from "./layout-child.web.js";
|
|
3
|
+
import { usePan } from "./pan.web.tsrx.js";
|
|
4
|
+
import { __s, bagOf, clone, hookSlots, snapshotSpread, template, useRef, withSlot } from "octane";
|
|
5
5
|
import { bindSignalChild, bindSignalHostPropSources, enableSignalBindings } from "octane/internal/client";
|
|
6
6
|
//#region src/Pressable.web.tsrx
|
|
7
7
|
enableSignalBindings(1, true);
|
|
8
8
|
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
9
|
+
var _hs$ = /* @__PURE__ */ hookSlots(2);
|
|
10
|
+
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
9
11
|
var _rm$1 = [
|
|
10
12
|
"s",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
+
"u",
|
|
14
|
+
"t"
|
|
13
15
|
];
|
|
14
16
|
var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
17
|
+
const el = useRef(null, _hs$ + 0);
|
|
15
18
|
let timer = null;
|
|
19
|
+
withSlot(_h$1, usePan, el, props.disabled ? void 0 : props.onPan);
|
|
16
20
|
const cancel = () => {
|
|
17
21
|
if (timer !== null) {
|
|
18
22
|
clearTimeout(timer);
|
|
@@ -27,20 +31,21 @@ var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
|
27
31
|
props.onLongPress?.();
|
|
28
32
|
}, 500);
|
|
29
33
|
};
|
|
34
|
+
if (__s.block.pending && !__s.block.crossRenderUpdate) return;
|
|
30
35
|
let _b = __s.slots[0];
|
|
31
36
|
if (_b === void 0) {
|
|
32
|
-
let _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _m12, _m13, _m14, _m15, _m16, _m17, _m18, _m19, _m20
|
|
37
|
+
let _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _m12, _m13, _m14, _m15, _m16, _m17, _m18, _m19, _m20;
|
|
33
38
|
const _root = clone(_t$0);
|
|
34
|
-
_m0 = (
|
|
39
|
+
_m0 = (e) => {
|
|
40
|
+
el.current = e;
|
|
41
|
+
if (e) {
|
|
42
|
+
applyEscapeProps(e, props);
|
|
43
|
+
props.bind?.(e);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
35
46
|
_m1 = props.id;
|
|
36
|
-
_m2 = [
|
|
37
|
-
"vx-pressable",
|
|
38
|
-
props.ignoreTouchAnimation ? "vx-pressable-no-feedback" : "",
|
|
39
|
-
glassClassOf(props.glass),
|
|
40
|
-
props.className
|
|
41
|
-
];
|
|
47
|
+
_m2 = ["vx-pressable", props.className];
|
|
42
48
|
_m3 = snapshotSpread(layoutChildProps(props, {
|
|
43
|
-
...glassStyleOf(props.glass),
|
|
44
49
|
...props.style,
|
|
45
50
|
...props.hitSlop ? {
|
|
46
51
|
margin: -props.hitSlop,
|
|
@@ -54,32 +59,30 @@ var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
|
54
59
|
_m8 = props.accessibilityState?.disabled ?? props.disabled ?? void 0;
|
|
55
60
|
_m9 = props.accessibilityState?.selected;
|
|
56
61
|
_m10 = props.accessibilityState?.checked;
|
|
57
|
-
_m11 = props.
|
|
58
|
-
_m12 = props.
|
|
59
|
-
_m13 = props.
|
|
60
|
-
_m14 = props.
|
|
61
|
-
_m15 =
|
|
62
|
-
_m16 = props.disabled ? void 0 : props.onDoublePress;
|
|
63
|
-
_m17 = (e) => {
|
|
62
|
+
_m11 = props.accessibilityLiveRegion === "none" ? "off" : props.accessibilityLiveRegion;
|
|
63
|
+
_m12 = props.accessible === false ? true : void 0;
|
|
64
|
+
_m13 = props.disabled ? void 0 : props.onPress;
|
|
65
|
+
_m14 = props.disabled ? void 0 : props.onDoublePress;
|
|
66
|
+
_m15 = (e) => {
|
|
64
67
|
if (!props.disabled) {
|
|
65
68
|
props.onPressIn?.();
|
|
66
69
|
down();
|
|
67
70
|
}
|
|
68
71
|
};
|
|
69
|
-
|
|
72
|
+
_m16 = () => {
|
|
70
73
|
if (!props.disabled) props.onPressOut?.();
|
|
71
74
|
cancel();
|
|
72
75
|
};
|
|
73
|
-
|
|
76
|
+
_m17 = () => {
|
|
74
77
|
if (!props.disabled) props.onPressOut?.();
|
|
75
78
|
cancel();
|
|
76
79
|
};
|
|
77
|
-
|
|
80
|
+
_m18 = () => {
|
|
78
81
|
if (!props.disabled) props.onPressOut?.();
|
|
79
82
|
cancel();
|
|
80
83
|
};
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
_m19 = _root;
|
|
85
|
+
_m20 = bindSignalHostPropSources(__s, void 0, _root, [
|
|
83
86
|
[
|
|
84
87
|
false,
|
|
85
88
|
"ref",
|
|
@@ -131,57 +134,47 @@ var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
|
131
134
|
"aria-checked",
|
|
132
135
|
_m10
|
|
133
136
|
],
|
|
134
|
-
[
|
|
135
|
-
false,
|
|
136
|
-
"aria-busy",
|
|
137
|
-
_m11
|
|
138
|
-
],
|
|
139
|
-
[
|
|
140
|
-
false,
|
|
141
|
-
"aria-expanded",
|
|
142
|
-
_m12
|
|
143
|
-
],
|
|
144
137
|
[
|
|
145
138
|
false,
|
|
146
139
|
"aria-live",
|
|
147
|
-
|
|
140
|
+
_m11
|
|
148
141
|
],
|
|
149
142
|
[
|
|
150
143
|
false,
|
|
151
144
|
"aria-hidden",
|
|
152
|
-
|
|
145
|
+
_m12
|
|
153
146
|
],
|
|
154
147
|
[
|
|
155
148
|
false,
|
|
156
149
|
"onClick",
|
|
157
|
-
|
|
150
|
+
_m13
|
|
158
151
|
],
|
|
159
152
|
[
|
|
160
153
|
false,
|
|
161
154
|
"onDoubleClick",
|
|
162
|
-
|
|
155
|
+
_m14
|
|
163
156
|
],
|
|
164
157
|
[
|
|
165
158
|
false,
|
|
166
159
|
"onPointerDown",
|
|
167
|
-
|
|
160
|
+
_m15
|
|
168
161
|
],
|
|
169
162
|
[
|
|
170
163
|
false,
|
|
171
164
|
"onPointerUp",
|
|
172
|
-
|
|
165
|
+
_m16
|
|
173
166
|
],
|
|
174
167
|
[
|
|
175
168
|
false,
|
|
176
169
|
"onPointerLeave",
|
|
177
|
-
|
|
170
|
+
_m17
|
|
178
171
|
],
|
|
179
172
|
[
|
|
180
173
|
false,
|
|
181
174
|
"onPointerCancel",
|
|
182
|
-
|
|
175
|
+
_m18
|
|
183
176
|
]
|
|
184
|
-
], "b:
|
|
177
|
+
], "b:85f49247", true);
|
|
185
178
|
_b = bagOf(__s, _root, {
|
|
186
179
|
a: _m0,
|
|
187
180
|
b: _m1,
|
|
@@ -204,15 +197,19 @@ var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
|
204
197
|
s: _m18,
|
|
205
198
|
t: _m19,
|
|
206
199
|
u: _m20,
|
|
207
|
-
v:
|
|
208
|
-
w:
|
|
209
|
-
x: null,
|
|
210
|
-
y: void 0
|
|
200
|
+
v: null,
|
|
201
|
+
w: void 0
|
|
211
202
|
});
|
|
212
203
|
__s.refFields = _rm$1;
|
|
213
204
|
} else {
|
|
214
205
|
{
|
|
215
|
-
const _v = (
|
|
206
|
+
const _v = (e) => {
|
|
207
|
+
el.current = e;
|
|
208
|
+
if (e) {
|
|
209
|
+
applyEscapeProps(e, props);
|
|
210
|
+
props.bind?.(e);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
216
213
|
if (_b.a !== _v) _b.a = _v;
|
|
217
214
|
}
|
|
218
215
|
{
|
|
@@ -220,16 +217,10 @@ var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
|
220
217
|
if (_b.b !== _v) _b.b = _v;
|
|
221
218
|
}
|
|
222
219
|
{
|
|
223
|
-
const _v = [
|
|
224
|
-
"vx-pressable",
|
|
225
|
-
props.ignoreTouchAnimation ? "vx-pressable-no-feedback" : "",
|
|
226
|
-
glassClassOf(props.glass),
|
|
227
|
-
props.className
|
|
228
|
-
];
|
|
220
|
+
const _v = ["vx-pressable", props.className];
|
|
229
221
|
if (_b.c !== _v) _b.c = _v;
|
|
230
222
|
}
|
|
231
223
|
_b.d = snapshotSpread(layoutChildProps(props, {
|
|
232
|
-
...glassStyleOf(props.glass),
|
|
233
224
|
...props.style,
|
|
234
225
|
...props.hitSlop ? {
|
|
235
226
|
margin: -props.hitSlop,
|
|
@@ -264,29 +255,21 @@ var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
|
264
255
|
const _v = props.accessibilityState?.checked;
|
|
265
256
|
if (_b.k !== _v) _b.k = _v;
|
|
266
257
|
}
|
|
267
|
-
{
|
|
268
|
-
const _v = props.accessibilityState?.busy;
|
|
269
|
-
if (_b.l !== _v) _b.l = _v;
|
|
270
|
-
}
|
|
271
|
-
{
|
|
272
|
-
const _v = props.accessibilityState?.expanded;
|
|
273
|
-
if (_b.m !== _v) _b.m = _v;
|
|
274
|
-
}
|
|
275
258
|
{
|
|
276
259
|
const _v = props.accessibilityLiveRegion === "none" ? "off" : props.accessibilityLiveRegion;
|
|
277
|
-
if (_b.
|
|
260
|
+
if (_b.l !== _v) _b.l = _v;
|
|
278
261
|
}
|
|
279
262
|
{
|
|
280
263
|
const _v = props.accessible === false ? true : void 0;
|
|
281
|
-
if (_b.
|
|
264
|
+
if (_b.m !== _v) _b.m = _v;
|
|
282
265
|
}
|
|
283
266
|
{
|
|
284
267
|
const _v = props.disabled ? void 0 : props.onPress;
|
|
285
|
-
if (_b.
|
|
268
|
+
if (_b.n !== _v) _b.n = _v;
|
|
286
269
|
}
|
|
287
270
|
{
|
|
288
271
|
const _v = props.disabled ? void 0 : props.onDoublePress;
|
|
289
|
-
if (_b.
|
|
272
|
+
if (_b.o !== _v) _b.o = _v;
|
|
290
273
|
}
|
|
291
274
|
{
|
|
292
275
|
const _v = (e) => {
|
|
@@ -295,30 +278,30 @@ var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
|
295
278
|
down();
|
|
296
279
|
}
|
|
297
280
|
};
|
|
298
|
-
if (_b.
|
|
281
|
+
if (_b.p !== _v) _b.p = _v;
|
|
299
282
|
}
|
|
300
283
|
{
|
|
301
284
|
const _v = () => {
|
|
302
285
|
if (!props.disabled) props.onPressOut?.();
|
|
303
286
|
cancel();
|
|
304
287
|
};
|
|
305
|
-
if (_b.
|
|
288
|
+
if (_b.q !== _v) _b.q = _v;
|
|
306
289
|
}
|
|
307
290
|
{
|
|
308
291
|
const _v = () => {
|
|
309
292
|
if (!props.disabled) props.onPressOut?.();
|
|
310
293
|
cancel();
|
|
311
294
|
};
|
|
312
|
-
if (_b.
|
|
295
|
+
if (_b.r !== _v) _b.r = _v;
|
|
313
296
|
}
|
|
314
297
|
{
|
|
315
298
|
const _v = () => {
|
|
316
299
|
if (!props.disabled) props.onPressOut?.();
|
|
317
300
|
cancel();
|
|
318
301
|
};
|
|
319
|
-
if (_b.
|
|
302
|
+
if (_b.s !== _v) _b.s = _v;
|
|
320
303
|
}
|
|
321
|
-
_b.
|
|
304
|
+
_b.u = bindSignalHostPropSources(__s, _b.u, _b.t, [
|
|
322
305
|
[
|
|
323
306
|
false,
|
|
324
307
|
"ref",
|
|
@@ -370,59 +353,49 @@ var Pressable = /* @__PURE__ */ __s(function Pressable(props, __s, __extra) {
|
|
|
370
353
|
"aria-checked",
|
|
371
354
|
_b.k
|
|
372
355
|
],
|
|
373
|
-
[
|
|
374
|
-
false,
|
|
375
|
-
"aria-busy",
|
|
376
|
-
_b.l
|
|
377
|
-
],
|
|
378
|
-
[
|
|
379
|
-
false,
|
|
380
|
-
"aria-expanded",
|
|
381
|
-
_b.m
|
|
382
|
-
],
|
|
383
356
|
[
|
|
384
357
|
false,
|
|
385
358
|
"aria-live",
|
|
386
|
-
_b.
|
|
359
|
+
_b.l
|
|
387
360
|
],
|
|
388
361
|
[
|
|
389
362
|
false,
|
|
390
363
|
"aria-hidden",
|
|
391
|
-
_b.
|
|
364
|
+
_b.m
|
|
392
365
|
],
|
|
393
366
|
[
|
|
394
367
|
false,
|
|
395
368
|
"onClick",
|
|
396
|
-
_b.
|
|
369
|
+
_b.n
|
|
397
370
|
],
|
|
398
371
|
[
|
|
399
372
|
false,
|
|
400
373
|
"onDoubleClick",
|
|
401
|
-
_b.
|
|
374
|
+
_b.o
|
|
402
375
|
],
|
|
403
376
|
[
|
|
404
377
|
false,
|
|
405
378
|
"onPointerDown",
|
|
406
|
-
_b.
|
|
379
|
+
_b.p
|
|
407
380
|
],
|
|
408
381
|
[
|
|
409
382
|
false,
|
|
410
383
|
"onPointerUp",
|
|
411
|
-
_b.
|
|
384
|
+
_b.q
|
|
412
385
|
],
|
|
413
386
|
[
|
|
414
387
|
false,
|
|
415
388
|
"onPointerLeave",
|
|
416
|
-
_b.
|
|
389
|
+
_b.r
|
|
417
390
|
],
|
|
418
391
|
[
|
|
419
392
|
false,
|
|
420
393
|
"onPointerCancel",
|
|
421
|
-
_b.
|
|
394
|
+
_b.s
|
|
422
395
|
]
|
|
423
|
-
], "b:
|
|
396
|
+
], "b:85f49247", true);
|
|
424
397
|
}
|
|
425
|
-
_b.
|
|
398
|
+
_b.x = bindSignalChild(__s, _b.x, 1, _b.t, props.children, "b:7567c2fe", null, void 0, void 0, void 0, true);
|
|
426
399
|
});
|
|
427
400
|
//#endregion
|
|
428
401
|
export { Pressable };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
|
+
import { Meter } from "./Meter.web.tsrx.js";
|
|
3
|
+
import { __s, bag3, bag6, child, clone, compilerCacheContext, componentSlotVoid, createScopedElement, createScopedValue, hookSlots, ifBlock, mapSlot, positionalChildren, queueRefAttach, queueRefDetach, setStyle, sibling, template } from "octane";
|
|
4
|
+
import { bindSignalAttribute, bindSignalChild, compilerMemoRegion, createElementFromConfig, enableSignalBindings, hookMemoEqual, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
|
|
5
|
+
//#region src/ProgressGroup.web.tsrx
|
|
6
|
+
enableSignalBindings(1, true);
|
|
7
|
+
var _t$0 = /* @__PURE__ */ template("<span class=\"vx-progressgroup-label\"></span>");
|
|
8
|
+
var _t$1 = /* @__PURE__ */ template("<div class=\"vx-progressgroup-row\"><!><!></div>");
|
|
9
|
+
var _t$2 = /* @__PURE__ */ template("<div role=\"group\"><!></div>");
|
|
10
|
+
var _key$0 = (item) => item.key;
|
|
11
|
+
function __then$3(__props, __s, __extra) {
|
|
12
|
+
const item = __extra[0];
|
|
13
|
+
let _b = __s.slots[0];
|
|
14
|
+
if (_b === void 0) {
|
|
15
|
+
let _m0;
|
|
16
|
+
const _root = clone(_t$0);
|
|
17
|
+
_m0 = _root;
|
|
18
|
+
_b = bag3(__s, _root, _m0, null, void 0);
|
|
19
|
+
}
|
|
20
|
+
_b.d = bindSignalChild(__s, _b.d, 1, _b.a, item.label, "b:3825d7ed", null, void 0, void 0, void 0, true);
|
|
21
|
+
}
|
|
22
|
+
function __item$1(item, __s, __extra) {
|
|
23
|
+
let _b = __s.slots[0];
|
|
24
|
+
if (_b === void 0) {
|
|
25
|
+
let _m0, _m1, _m2;
|
|
26
|
+
const _root = clone(_t$1);
|
|
27
|
+
_m0 = _root;
|
|
28
|
+
_m1 = sibling(child(_root), 1);
|
|
29
|
+
_m2 = child(_root);
|
|
30
|
+
_b = bag3(__s, _root, _m0, _m1, _m2);
|
|
31
|
+
}
|
|
32
|
+
componentSlotVoid(__s, 1, _b.a, Meter, {
|
|
33
|
+
"value": item.value,
|
|
34
|
+
"max": item.max,
|
|
35
|
+
"accessibilityLabel": item.label
|
|
36
|
+
}, _b.c, void 0, 2, void 0, void 0, "c:a026e418");
|
|
37
|
+
{
|
|
38
|
+
const __ifCondition = item.label != null;
|
|
39
|
+
ifBlock(__s, 2, _b.a, __ifCondition, __then$3, null, _b.b, __ifCondition ? [item] : void 0);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
var _rm$7 = [
|
|
43
|
+
"r",
|
|
44
|
+
"b",
|
|
45
|
+
"a"
|
|
46
|
+
];
|
|
47
|
+
var _hs$ = /* @__PURE__ */ hookSlots(3);
|
|
48
|
+
var ProgressGroup = /* @__PURE__ */ __s(function ProgressGroup(props, __s, __extra) {
|
|
49
|
+
const __memoRegion = compilerMemoRegion(__s, _hs$ + 0);
|
|
50
|
+
const __memoCommitted = __memoRegion.auto;
|
|
51
|
+
let __memoCache = __memoCommitted === void 0 ? [] : __memoCommitted;
|
|
52
|
+
let __mapItems;
|
|
53
|
+
let __mapMethod;
|
|
54
|
+
let _b = __s.slots[0];
|
|
55
|
+
if (_b === void 0) {
|
|
56
|
+
let _m0, _m1, _m5;
|
|
57
|
+
const _root = clone(_t$2);
|
|
58
|
+
queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _m0 = _root);
|
|
59
|
+
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
|
|
60
|
+
_m5 = child(_root);
|
|
61
|
+
_b = bag6(__s, _root, _m0, _m1, void 0, void 0, void 0, _m5);
|
|
62
|
+
__s.refFields = _rm$7;
|
|
63
|
+
} else {
|
|
64
|
+
const _r = (e) => applyEscapeProps(e, props);
|
|
65
|
+
if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
|
|
66
|
+
}
|
|
67
|
+
_b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:703e6aff", setPlainAttribute);
|
|
68
|
+
_b.d = updateFreshClassName(["vx-progressgroup", props.className], _b.d, _b.a);
|
|
69
|
+
{
|
|
70
|
+
const _v = props.style;
|
|
71
|
+
if (_b.e !== _v) {
|
|
72
|
+
setStyle(_b.a, _v, _b.e);
|
|
73
|
+
_b.e = _v;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
{
|
|
77
|
+
const _v = (__mapItems = props.items, __mapMethod = __mapItems.map, __mapItems);
|
|
78
|
+
const __mapNative = mapSlot(_v, __mapMethod);
|
|
79
|
+
{
|
|
80
|
+
const __memoDep = _v;
|
|
81
|
+
const __memoDep$ = Meter;
|
|
82
|
+
if (__s.slots[1] === void 0 || !__mapNative || Meter.__memo !== true || Meter.__compare !== void 0 || __memoCache[3] !== true || !hookMemoEqual(__memoCache[0], __memoDep) || !hookMemoEqual(__memoCache[1], __memoDep$)) {
|
|
83
|
+
mapSlot(__s, 1, _b.a, _v, __mapMethod, __mapNative, (item) => createScopedElement("div", {
|
|
84
|
+
key: item.key,
|
|
85
|
+
className: "vx-progressgroup-row"
|
|
86
|
+
}, () => positionalChildren([createScopedValue(() => createElementFromConfig("c:4716bfa1", Meter, {
|
|
87
|
+
value: item.value,
|
|
88
|
+
max: item.max,
|
|
89
|
+
accessibilityLabel: item.label
|
|
90
|
+
})), item.label != null ? createScopedElement("span", { className: "vx-progressgroup-label" }, () => item.label) : null])), _key$0, __item$1, 26 | (Meter.__memo === true && Meter.__compare === void 0 ? 4 : 0), [Meter], _b.f, 1);
|
|
91
|
+
const _c = compilerCacheContext(__s, 1, __memoCache[2]);
|
|
92
|
+
if (__memoCache === __memoCommitted) __memoCache = __memoCache.slice();
|
|
93
|
+
__memoCache[0] = __memoDep;
|
|
94
|
+
__memoCache[1] = __memoDep$;
|
|
95
|
+
__memoCache[2] = _c;
|
|
96
|
+
__memoCache[3] = __mapNative;
|
|
97
|
+
} else {
|
|
98
|
+
const _c = compilerCacheContext(__s, 1, __memoCache[2]);
|
|
99
|
+
if (_c !== __memoCache[2]) {
|
|
100
|
+
if (__memoCache === __memoCommitted) __memoCache = __memoCache.slice();
|
|
101
|
+
__memoCache[2] = _c;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (__memoCache !== __memoCommitted) __memoRegion.auto = __memoCache;
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
export { ProgressGroup };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
|
+
import { __s, bag9, child, clone, createElement, createScopedElement, positionalChildren, queueRefAttach, queueRefDetach, setAriaAttribute, setStyle, template } from "octane";
|
|
3
|
+
import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
|
|
4
|
+
//#region src/RadioGroup.web.tsrx
|
|
5
|
+
enableSignalBindings(1, true);
|
|
6
|
+
var _t$0 = /* @__PURE__ */ template("<div role=\"radiogroup\"><!></div>");
|
|
7
|
+
var _rm$1 = [
|
|
8
|
+
"r",
|
|
9
|
+
"b",
|
|
10
|
+
"a"
|
|
11
|
+
];
|
|
12
|
+
var RadioGroup = /* @__PURE__ */ __s(function RadioGroup(props, __s, __extra) {
|
|
13
|
+
let _b = __s.slots[0];
|
|
14
|
+
if (_b === void 0) {
|
|
15
|
+
let _m0, _m1, _m6;
|
|
16
|
+
const _root = clone(_t$0);
|
|
17
|
+
queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _m0 = _root);
|
|
18
|
+
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
|
|
19
|
+
_m6 = child(_root);
|
|
20
|
+
_b = bag9(__s, _root, _m0, _m1, void 0, void 0, void 0, void 0, _m6, null, void 0);
|
|
21
|
+
__s.refFields = _rm$1;
|
|
22
|
+
} else {
|
|
23
|
+
const _r = (e) => applyEscapeProps(e, props);
|
|
24
|
+
if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
|
|
25
|
+
}
|
|
26
|
+
_b.c = bindSignalAttribute(__s, _b.c, _b.a, "id", props.id, "b:e305e177", setPlainAttribute);
|
|
27
|
+
_b.d = bindSignalAttribute(__s, _b.d, _b.a, "aria-label", props.accessibilityLabel, "b:2387e038", setAriaAttribute);
|
|
28
|
+
_b.e = updateFreshClassName([
|
|
29
|
+
"vx-radio-group",
|
|
30
|
+
props.horizontal ? "vx-radio-group--row" : void 0,
|
|
31
|
+
props.className
|
|
32
|
+
], _b.e, _b.a);
|
|
33
|
+
{
|
|
34
|
+
const _v = props.style;
|
|
35
|
+
if (_b.f !== _v) {
|
|
36
|
+
setStyle(_b.a, _v, _b.f);
|
|
37
|
+
_b.f = _v;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
_b.j = bindSignalChild(__s, _b.j, 1, _b.a, props.options.map((opt) => {
|
|
41
|
+
const selected = props.value === opt.value;
|
|
42
|
+
const disabled = props.disabled || opt.disabled;
|
|
43
|
+
return createScopedElement("div", {
|
|
44
|
+
key: opt.value,
|
|
45
|
+
role: "radio",
|
|
46
|
+
"aria-checked": selected,
|
|
47
|
+
"aria-disabled": disabled || void 0,
|
|
48
|
+
tabIndex: disabled ? void 0 : 0,
|
|
49
|
+
className: [
|
|
50
|
+
"vx-radio-row",
|
|
51
|
+
selected ? "vx-radio--on" : void 0,
|
|
52
|
+
disabled ? "vx-radio--disabled" : void 0
|
|
53
|
+
],
|
|
54
|
+
onClick: disabled ? void 0 : () => props.onValueChange?.(opt.value),
|
|
55
|
+
onKeyDown: (e) => {
|
|
56
|
+
if (disabled) return;
|
|
57
|
+
if (e.key === " " || e.key === "Enter") {
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
props.onValueChange?.(opt.value);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, () => positionalChildren([createScopedElement("div", {
|
|
63
|
+
className: "vx-radio",
|
|
64
|
+
"aria-hidden": "true"
|
|
65
|
+
}, () => selected ? createElement("div", { className: "vx-radio-dot" }) : null), opt.label != null ? createScopedElement("span", { className: "vx-radio-label" }, () => opt.label) : null]));
|
|
66
|
+
}), "b:acc26df6", _b.g, true, void 0, void 0, void 0);
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { RadioGroup };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { applyEscapeProps } from "./
|
|
2
|
-
import { layoutChildProps } from "./
|
|
1
|
+
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
|
+
import { layoutChildProps } from "./layout-child.web.js";
|
|
3
3
|
import { __s, bag5, bag8, clone, delegateEvents, setEventHandler, setStyle, snapshotSpread, template } from "octane";
|
|
4
4
|
import { bindSignalAttribute, bindSignalChild, bindSignalHostPropSources, enableSignalBindings } from "octane/internal/client";
|
|
5
5
|
//#region src/RichText.web.tsrx
|