@octane-xplat/ui 0.4.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/{ui56.js → Heading.native.tsrx.js} +2 -2
- package/dist/native/{ui55.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/{ui48.js → KeyboardAvoiding.native.tsrx.js} +1 -1
- package/dist/native/{ui17.js → Link.native.tsrx.js} +1 -1
- package/dist/native/{ui52.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} +21 -15
- 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/{ui47.js → SafeArea.native.tsrx.js} +2 -2
- package/dist/native/{ui43.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/{ui60.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} +19 -3
- package/dist/native/{ui24.js → TextArea.native.tsrx.js} +19 -17
- 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/{ui6.js → View.native.tsrx.js} +39 -25
- 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/{ui49.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/{ui3.js → escape-props.native.js} +22 -1
- 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/{ui50.js → ios/UIActivityIndicatorView.ios.tsrx.js} +5 -5
- package/dist/native/{ui32.js → ios/UIModal.ios.tsrx.js} +10 -6
- package/dist/native/{ui53.js → ios/UISlider.ios.tsrx.js} +5 -5
- package/dist/native/{ui45.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/pan.native.tsrx.js +66 -0
- 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/{ui61.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/theme/status-bar-scheme.native.js +17 -0
- package/dist/{web/ui29.js → native/theme/theme-scheme.js} +2 -2
- package/dist/native/toast-anchor.native.tsrx.js +185 -0
- package/dist/native/translate.native.js +11 -0
- package/dist/native/ui.js +93 -52
- package/dist/native/use-back.native.tsrx.js +9 -0
- package/dist/native/useMeasure.native.tsrx.js +64 -0
- 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/{ui46.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/{ui44.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/{ui52.js → Heading.web.tsrx.js} +2 -2
- package/dist/web/Icon.web.tsrx.js +273 -0
- 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/{ui48.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/{ui42.js → SafeArea.web.tsrx.js} +1 -1
- package/dist/web/{ui38.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/{ui39.js → Tabs.web.tsrx.js} +33 -16
- package/dist/web/{ui13.js → Text.web.tsrx.js} +79 -46
- 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/{ui35.js → anim.web.tsrx.js} +3 -2
- 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/{ui58.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/toast-anchor.web.tsrx.js +142 -0
- package/dist/web/transform.web.js +43 -0
- package/dist/web/translate.web.js +13 -0
- package/dist/web/ui.js +91 -51
- package/dist/web/use-back.web.tsrx.js +9 -0
- package/dist/web/useMeasure.web.tsrx.js +50 -0
- package/dist/web/video-chrome.web.tsrx.js +207 -0
- package/dist/web/web/Hoverable.web.tsrx.js +150 -0
- package/dist/web/web/Tooltip.web.tsrx.js +183 -0
- package/dist/web/web/index.js +3 -0
- package/package.json +34 -3
- package/src/theme/tokens.css +1599 -194
- package/types/android.d.ts +53 -0
- package/types/index.d.ts +39 -14
- 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 +989 -44
- 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 -105
- package/dist/native/ui4.js +0 -24
- package/dist/native/ui44.js +0 -267
- package/dist/native/ui54.js +0 -17
- package/dist/native/ui57.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/ui34.js +0 -70
- package/dist/web/ui40.js +0 -43
- package/dist/web/ui43.js +0 -42
- package/dist/web/ui49.js +0 -47
- package/dist/web/ui5.js +0 -168
- package/dist/web/ui50.js +0 -17
- package/dist/web/ui51.js +0 -149
- package/dist/web/ui53.js +0 -17
- package/dist/web/ui57.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/{ui40.js → anim.native.tsrx.js} +0 -0
- /package/dist/native/{ui2.js → cx.js} +0 -0
- /package/dist/native/{ui5.js → layout-child.native.js} +0 -0
- /package/dist/native/{ui51.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/{ui46.js → safeAreaInsets.native.tsrx.js} +0 -0
- /package/dist/native/{ui18.js → stacks.native.js} +0 -0
- /package/dist/native/{ui58.js → store.js} +0 -0
- /package/dist/native/{ui41.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/{ui59.js → use-store.native.tsrx.js} +0 -0
- /package/dist/native/{ui42.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/{ui47.js → meter-math.js} +0 -0
- /package/dist/web/{ui45.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/{ui41.js → safeAreaInsets.web.tsrx.js} +0 -0
- /package/dist/web/{ui54.js → stacks.web.js} +0 -0
- /package/dist/web/{ui55.js → store.js} +0 -0
- /package/dist/web/{ui36.js → styled.web.tsrx.js} +0 -0
- /package/dist/web/{ui27.js → theme/colorScheme.web.js} +0 -0
- /package/dist/web/{ui56.js → use-store.web.tsrx.js} +0 -0
- /package/dist/web/{ui37.js → windows.web.js} +0 -0
package/dist/web/ui5.js
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { applyEscapeProps } from "./ui2.js";
|
|
2
|
-
import { glassClassOf, glassStyleOf } from "./ui3.js";
|
|
3
|
-
import { layoutChildProps } from "./ui4.js";
|
|
4
|
-
import { __s, bag8, clone, hookSlots, snapshotSpread, template, useEffect, useRef } from "octane";
|
|
5
|
-
import { bindSignalChild, bindSignalHostPropSources, enableSignalBindings } from "octane/internal/client";
|
|
6
|
-
//#region src/View.web.tsrx
|
|
7
|
-
enableSignalBindings(1, true);
|
|
8
|
-
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
9
|
-
var _hs$ = /* @__PURE__ */ hookSlots(2);
|
|
10
|
-
var _rm$1 = [
|
|
11
|
-
"s",
|
|
12
|
-
"f",
|
|
13
|
-
"e"
|
|
14
|
-
];
|
|
15
|
-
var View = /* @__PURE__ */ __s(function View(props, __s, __extra) {
|
|
16
|
-
const el = useRef(null, _hs$ + 0);
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
const node = el.current;
|
|
19
|
-
const cb = props.onPan;
|
|
20
|
-
if (!node || !cb) return;
|
|
21
|
-
let sx = 0, sy = 0, active = false, last = 0, lx = 0, t0 = 0;
|
|
22
|
-
const emit = (e, state) => {
|
|
23
|
-
const now = performance.now();
|
|
24
|
-
const dt = Math.max(now - t0, 1) / 1e3;
|
|
25
|
-
const vx = (e.clientX - lx) / dt;
|
|
26
|
-
const vy = (e.clientY - last) / dt;
|
|
27
|
-
lx = e.clientX;
|
|
28
|
-
last = e.clientY;
|
|
29
|
-
t0 = now;
|
|
30
|
-
cb({
|
|
31
|
-
x: e.clientX - sx,
|
|
32
|
-
y: e.clientY - sy,
|
|
33
|
-
dx: e.clientX - sx,
|
|
34
|
-
dy: e.clientY - sy,
|
|
35
|
-
vx,
|
|
36
|
-
vy,
|
|
37
|
-
state,
|
|
38
|
-
target: node
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
const down = (e) => {
|
|
42
|
-
active = true;
|
|
43
|
-
sx = e.clientX;
|
|
44
|
-
sy = e.clientY;
|
|
45
|
-
t0 = performance.now();
|
|
46
|
-
lx = sx;
|
|
47
|
-
last = sy;
|
|
48
|
-
node.setPointerCapture?.(e.pointerId);
|
|
49
|
-
emit(e, "began");
|
|
50
|
-
};
|
|
51
|
-
const move = (e) => {
|
|
52
|
-
if (active) emit(e, "moved");
|
|
53
|
-
};
|
|
54
|
-
const up = (e) => {
|
|
55
|
-
if (active) {
|
|
56
|
-
active = false;
|
|
57
|
-
emit(e, "ended");
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const cancel = (e) => {
|
|
61
|
-
if (active) {
|
|
62
|
-
active = false;
|
|
63
|
-
emit(e, "cancelled");
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
node.addEventListener("pointerdown", down);
|
|
67
|
-
node.addEventListener("pointermove", move);
|
|
68
|
-
node.addEventListener("pointerup", up);
|
|
69
|
-
node.addEventListener("pointercancel", cancel);
|
|
70
|
-
return () => {
|
|
71
|
-
node.removeEventListener("pointerdown", down);
|
|
72
|
-
node.removeEventListener("pointermove", move);
|
|
73
|
-
node.removeEventListener("pointerup", up);
|
|
74
|
-
node.removeEventListener("pointercancel", cancel);
|
|
75
|
-
};
|
|
76
|
-
}, [props.onPan], _hs$ + 1);
|
|
77
|
-
let _b = __s.slots[0];
|
|
78
|
-
if (_b === void 0) {
|
|
79
|
-
let _m0, _m1, _m2, _m3, _m4, _m5;
|
|
80
|
-
const _root = clone(_t$0);
|
|
81
|
-
_m0 = props.id;
|
|
82
|
-
_m1 = (e) => {
|
|
83
|
-
el.current = e;
|
|
84
|
-
if (e) {
|
|
85
|
-
applyEscapeProps(e, props);
|
|
86
|
-
props.bind?.(e);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
_m2 = [
|
|
90
|
-
"vx-view",
|
|
91
|
-
glassClassOf(props.glass),
|
|
92
|
-
props.className
|
|
93
|
-
];
|
|
94
|
-
_m3 = snapshotSpread(layoutChildProps(props, {
|
|
95
|
-
...glassStyleOf(props.glass),
|
|
96
|
-
...props.style
|
|
97
|
-
}));
|
|
98
|
-
_m4 = _root;
|
|
99
|
-
_m5 = bindSignalHostPropSources(__s, void 0, _root, [
|
|
100
|
-
[
|
|
101
|
-
false,
|
|
102
|
-
"id",
|
|
103
|
-
_m0
|
|
104
|
-
],
|
|
105
|
-
[
|
|
106
|
-
false,
|
|
107
|
-
"ref",
|
|
108
|
-
_m1
|
|
109
|
-
],
|
|
110
|
-
[
|
|
111
|
-
false,
|
|
112
|
-
"className",
|
|
113
|
-
_m2
|
|
114
|
-
],
|
|
115
|
-
[true, _m3]
|
|
116
|
-
], "b:e20c8de1", true);
|
|
117
|
-
_b = bag8(__s, _root, _m0, _m1, _m2, _m3, _m4, _m5, null, void 0);
|
|
118
|
-
__s.refFields = _rm$1;
|
|
119
|
-
} else {
|
|
120
|
-
{
|
|
121
|
-
const _v = props.id;
|
|
122
|
-
if (_b.a !== _v) _b.a = _v;
|
|
123
|
-
}
|
|
124
|
-
{
|
|
125
|
-
const _v = (e) => {
|
|
126
|
-
el.current = e;
|
|
127
|
-
if (e) {
|
|
128
|
-
applyEscapeProps(e, props);
|
|
129
|
-
props.bind?.(e);
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
if (_b.b !== _v) _b.b = _v;
|
|
133
|
-
}
|
|
134
|
-
{
|
|
135
|
-
const _v = [
|
|
136
|
-
"vx-view",
|
|
137
|
-
glassClassOf(props.glass),
|
|
138
|
-
props.className
|
|
139
|
-
];
|
|
140
|
-
if (_b.c !== _v) _b.c = _v;
|
|
141
|
-
}
|
|
142
|
-
_b.d = snapshotSpread(layoutChildProps(props, {
|
|
143
|
-
...glassStyleOf(props.glass),
|
|
144
|
-
...props.style
|
|
145
|
-
}));
|
|
146
|
-
_b.f = bindSignalHostPropSources(__s, _b.f, _b.e, [
|
|
147
|
-
[
|
|
148
|
-
false,
|
|
149
|
-
"id",
|
|
150
|
-
_b.a
|
|
151
|
-
],
|
|
152
|
-
[
|
|
153
|
-
false,
|
|
154
|
-
"ref",
|
|
155
|
-
_b.b
|
|
156
|
-
],
|
|
157
|
-
[
|
|
158
|
-
false,
|
|
159
|
-
"className",
|
|
160
|
-
_b.c
|
|
161
|
-
],
|
|
162
|
-
[true, _b.d]
|
|
163
|
-
], "b:e20c8de1", true);
|
|
164
|
-
}
|
|
165
|
-
_b.i = bindSignalChild(__s, _b.i, 1, _b.e, props.children, "b:13e02afa", null, void 0, void 0, void 0, true);
|
|
166
|
-
});
|
|
167
|
-
//#endregion
|
|
168
|
-
export { View };
|
package/dist/web/ui50.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region src/icons.ts
|
|
2
|
-
/**
|
|
3
|
-
* App-owned icon registry. `svg` is SVG path `d` data (not a full SVG
|
|
4
|
-
* markup string). Native `font` glyphs render only when the app ships that font.
|
|
5
|
-
*/
|
|
6
|
-
var icons = /* @__PURE__ */ new Map();
|
|
7
|
-
function registerIcon(name, glyph) {
|
|
8
|
-
icons.set(name, glyph);
|
|
9
|
-
}
|
|
10
|
-
function registerIcons(record) {
|
|
11
|
-
for (const [name, glyph] of Object.entries(record)) icons.set(name, glyph);
|
|
12
|
-
}
|
|
13
|
-
function getIcon(name) {
|
|
14
|
-
return icons.get(name);
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { getIcon, registerIcon, registerIcons };
|
package/dist/web/ui51.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { applyWebProps } from "./ui45.js";
|
|
2
|
-
import { getIcon } from "./ui50.js";
|
|
3
|
-
import { bag8, bag9, clone, hookSlots, ifBlock, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
|
|
4
|
-
import { bindSignalAttribute, compilerMemoRegion, createElementFromConfig, enableSignalBindings, hookMemoCreate, hookMemoEqual, hookMemoPublish1, replaceRef, setPlainAttribute, setURLAttribute, updateFreshClassAttr, updateFreshClassName } from "octane/internal/client";
|
|
5
|
-
//#region src/Icon.web.tsrx
|
|
6
|
-
enableSignalBindings(1, true);
|
|
7
|
-
var _t$0 = /* @__PURE__ */ template("<svg aria-hidden=\"true\"></svg>", 1);
|
|
8
|
-
var _t$1 = /* @__PURE__ */ template("<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path></path></svg>", 1);
|
|
9
|
-
var _t$2 = /* @__PURE__ */ template("<img/>");
|
|
10
|
-
var _rm$1 = [
|
|
11
|
-
"r",
|
|
12
|
-
"h",
|
|
13
|
-
"b"
|
|
14
|
-
];
|
|
15
|
-
function __then$0(__props, __s, __extra) {
|
|
16
|
-
const glyph = __extra[0];
|
|
17
|
-
const props = __extra[1];
|
|
18
|
-
const size = __extra[2];
|
|
19
|
-
let _b = __s.slots[0];
|
|
20
|
-
if (_b === void 0) {
|
|
21
|
-
let _m1, _m7;
|
|
22
|
-
const _root = clone(_t$0);
|
|
23
|
-
_m1 = _root;
|
|
24
|
-
queueRefAttach(__s, _m7 = (el) => {
|
|
25
|
-
if (el) el.innerHTML = glyph.markup;
|
|
26
|
-
applyWebProps(el, props.web);
|
|
27
|
-
}, _m1);
|
|
28
|
-
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.h, _b.b));
|
|
29
|
-
_b = bag8(__s, _root, void 0, _m1, void 0, void 0, void 0, void 0, void 0, _m7);
|
|
30
|
-
__s.refFields = _rm$1;
|
|
31
|
-
} else {
|
|
32
|
-
const _r = (el) => {
|
|
33
|
-
if (el) el.innerHTML = glyph.markup;
|
|
34
|
-
applyWebProps(el, props.web);
|
|
35
|
-
};
|
|
36
|
-
if (_r !== _b.h) _b.h = replaceRef(__s, _b.h, _r, _b.b);
|
|
37
|
-
}
|
|
38
|
-
_b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:3add0cdf", setPlainAttribute);
|
|
39
|
-
_b.c = updateFreshClassAttr(["vx-icon", props.className], _b.c, _b.b);
|
|
40
|
-
_b.d = bindSignalAttribute(__s, _b.d, _b.b, "viewBox", glyph.viewBox ?? "0 0 24 24", "b:c67a6a16", setPlainAttribute);
|
|
41
|
-
_b.e = bindSignalAttribute(__s, _b.e, _b.b, "width", size, "b:fb23295c", setPlainAttribute);
|
|
42
|
-
_b.f = bindSignalAttribute(__s, _b.f, _b.b, "height", size, "b:8d1adcef", setPlainAttribute);
|
|
43
|
-
{
|
|
44
|
-
const _v = props.color ? { color: props.color } : void 0;
|
|
45
|
-
if (_b.g !== _v) {
|
|
46
|
-
setStyle(_b.b, _v, _b.g);
|
|
47
|
-
_b.g = _v;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
var _rm$4 = [
|
|
52
|
-
"r",
|
|
53
|
-
"f",
|
|
54
|
-
"b"
|
|
55
|
-
];
|
|
56
|
-
function __then$3(__props, __s, __extra) {
|
|
57
|
-
const glyph = __extra[0];
|
|
58
|
-
const props = __extra[1];
|
|
59
|
-
const size = __extra[2];
|
|
60
|
-
let _b = __s.slots[0];
|
|
61
|
-
if (_b === void 0) {
|
|
62
|
-
let _m1, _m5, _m7;
|
|
63
|
-
const _root = clone(_t$1);
|
|
64
|
-
_m1 = _root;
|
|
65
|
-
queueRefAttach(__s, _m5 = (el) => applyWebProps(el, props.web), _m1);
|
|
66
|
-
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.f, _b.b));
|
|
67
|
-
_m7 = _root.firstChild;
|
|
68
|
-
_b = bag9(__s, _root, void 0, _m1, void 0, void 0, void 0, _m5, void 0, _m7, void 0);
|
|
69
|
-
__s.refFields = _rm$4;
|
|
70
|
-
} else {
|
|
71
|
-
const _r = (el) => applyWebProps(el, props.web);
|
|
72
|
-
if (_r !== _b.f) _b.f = replaceRef(__s, _b.f, _r, _b.b);
|
|
73
|
-
}
|
|
74
|
-
_b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:9e8c5282", setPlainAttribute);
|
|
75
|
-
_b.c = updateFreshClassAttr(["vx-icon", props.className], _b.c, _b.b);
|
|
76
|
-
_b.d = bindSignalAttribute(__s, _b.d, _b.b, "width", size, "b:3b5779f4", setPlainAttribute);
|
|
77
|
-
_b.e = bindSignalAttribute(__s, _b.e, _b.b, "height", size, "b:13d0b8b1", setPlainAttribute);
|
|
78
|
-
_b.g = bindSignalAttribute(__s, _b.g, _b.h, "d", glyph.svg, "b:5d6c1e35", setPlainAttribute);
|
|
79
|
-
_b.i = bindSignalAttribute(__s, _b.i, _b.h, "fill", props.color ?? "currentColor", "b:b6d02800", setPlainAttribute);
|
|
80
|
-
}
|
|
81
|
-
var _rm$7 = [
|
|
82
|
-
"r",
|
|
83
|
-
"h",
|
|
84
|
-
"b"
|
|
85
|
-
];
|
|
86
|
-
function __then$6(__props, __s, __extra) {
|
|
87
|
-
const glyph = __extra[0];
|
|
88
|
-
const props = __extra[1];
|
|
89
|
-
const size = __extra[2];
|
|
90
|
-
let _b = __s.slots[0];
|
|
91
|
-
if (_b === void 0) {
|
|
92
|
-
let _m1, _m7;
|
|
93
|
-
const _root = clone(_t$2);
|
|
94
|
-
_m1 = _root;
|
|
95
|
-
queueRefAttach(__s, _m7 = (el) => applyWebProps(el, props.web), _m1);
|
|
96
|
-
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.h, _b.b));
|
|
97
|
-
_b = bag8(__s, _root, void 0, _m1, void 0, void 0, void 0, void 0, void 0, _m7);
|
|
98
|
-
__s.refFields = _rm$7;
|
|
99
|
-
} else {
|
|
100
|
-
const _r = (el) => applyWebProps(el, props.web);
|
|
101
|
-
if (_r !== _b.h) _b.h = replaceRef(__s, _b.h, _r, _b.b);
|
|
102
|
-
}
|
|
103
|
-
_b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:1374b84a", setPlainAttribute);
|
|
104
|
-
_b.c = updateFreshClassName(["vx-icon", props.className], _b.c, _b.b);
|
|
105
|
-
_b.d = bindSignalAttribute(__s, _b.d, _b.b, "src", glyph.src, "b:fdaa8e12", setURLAttribute);
|
|
106
|
-
_b.e = bindSignalAttribute(__s, _b.e, _b.b, "width", size, "b:a4c78316", setPlainAttribute);
|
|
107
|
-
_b.f = bindSignalAttribute(__s, _b.f, _b.b, "height", size, "b:2ca071e0", setPlainAttribute);
|
|
108
|
-
_b.g = bindSignalAttribute(__s, _b.g, _b.b, "alt", props.name, "b:731bb804", setPlainAttribute);
|
|
109
|
-
}
|
|
110
|
-
function __else$5(__props, __s, __extra) {
|
|
111
|
-
const __block = __s.block;
|
|
112
|
-
const glyph = __extra[0];
|
|
113
|
-
__extra[1];
|
|
114
|
-
__extra[2];
|
|
115
|
-
ifBlock(__s, 0, __block.parentNode, glyph.src, __then$6, null, __block.endMarker, __extra);
|
|
116
|
-
}
|
|
117
|
-
function __else$2(__props, __s, __extra) {
|
|
118
|
-
const __block = __s.block;
|
|
119
|
-
const glyph = __extra[0];
|
|
120
|
-
__extra[1];
|
|
121
|
-
__extra[2];
|
|
122
|
-
ifBlock(__s, 0, __block.parentNode, glyph.svg, __then$3, __else$5, __block.endMarker, __extra);
|
|
123
|
-
}
|
|
124
|
-
function _frag$0(props, __s, __extra) {
|
|
125
|
-
const __block = __s.block;
|
|
126
|
-
ifBlock(__s, 0, __block.parentNode, props.h0, props.h1, props.h2, __block.endMarker, props.h3);
|
|
127
|
-
}
|
|
128
|
-
var _hs$ = /* @__PURE__ */ hookSlots(7);
|
|
129
|
-
var Icon = function Icon(props, __s, __extra) {
|
|
130
|
-
const __memoRegion = compilerMemoRegion(__s, _hs$ + 0);
|
|
131
|
-
let __hk = __memoRegion.hooks;
|
|
132
|
-
if (__hk === void 0) __memoRegion.hooks = __hk = hookMemoCreate(3);
|
|
133
|
-
let __hkd0;
|
|
134
|
-
const glyph = (__hkd0 = props, __hk[0] !== true || !hookMemoEqual(__hk[1], __hkd0) ? hookMemoPublish1(__hk, 0, getIcon(props.name), __hkd0) : __hk[2]);
|
|
135
|
-
if (!glyph) return null;
|
|
136
|
-
const size = props.size ?? 24;
|
|
137
|
-
return createElementFromConfig("c:3275b5a7", _frag$0, {
|
|
138
|
-
h0: glyph.markup,
|
|
139
|
-
h1: __then$0,
|
|
140
|
-
h2: __else$2,
|
|
141
|
-
h3: [
|
|
142
|
-
glyph,
|
|
143
|
-
props,
|
|
144
|
-
size
|
|
145
|
-
]
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
//#endregion
|
|
149
|
-
export { Icon };
|
package/dist/web/ui53.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { __s, bag2, clone, template } from "octane";
|
|
2
|
-
import { bindSignalAttribute, enableSignalBindings } from "octane/internal/client";
|
|
3
|
-
//#region src/PlatformBadge.web.tsrx
|
|
4
|
-
enableSignalBindings(1, true);
|
|
5
|
-
var _t$0 = /* @__PURE__ */ template("<span>web</span>");
|
|
6
|
-
var PlatformBadge = /* @__PURE__ */ __s(function PlatformBadge(props, __s, __extra) {
|
|
7
|
-
let _b = __s.slots[0];
|
|
8
|
-
if (_b === void 0) {
|
|
9
|
-
let _m1;
|
|
10
|
-
const _root = clone(_t$0);
|
|
11
|
-
_m1 = _root;
|
|
12
|
-
_b = bag2(__s, _root, void 0, _m1);
|
|
13
|
-
}
|
|
14
|
-
_b.a = bindSignalAttribute(__s, _b.a, _b.b, "class", props.className, "b:f3cb9a4b", "class");
|
|
15
|
-
});
|
|
16
|
-
//#endregion
|
|
17
|
-
export { PlatformBadge };
|
package/dist/web/ui57.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { cx } from "./ui28.js";
|
|
2
|
-
import { useThemeScheme } from "./ui29.js";
|
|
3
|
-
import { bag4, child, clone, createElement, createPortal, createScopedElement, createScopedValue, drainFrag, hookSlots, ifBlock, positionalChildren, template, withSlot } from "octane";
|
|
4
|
-
import { textHoleUpdate } from "octane/internal/client";
|
|
5
|
-
//#region src/Sheet.web.tsrx
|
|
6
|
-
var _t$0 = /* @__PURE__ */ template("<!>", 0, 1);
|
|
7
|
-
var _h$0 = /* @__PURE__ */ Symbol(/* @__PURE__ */ hookSlots(2));
|
|
8
|
-
function __then$0(__props, __s, __extra) {
|
|
9
|
-
const __block = __s.block;
|
|
10
|
-
const dark = __extra[0];
|
|
11
|
-
const props = __extra[1];
|
|
12
|
-
let _b = __s.slots[0];
|
|
13
|
-
if (_b === void 0) {
|
|
14
|
-
let _m0, _m1;
|
|
15
|
-
const _root = clone(_t$0);
|
|
16
|
-
_m0 = __block.parentNode;
|
|
17
|
-
_m1 = child(_root);
|
|
18
|
-
drainFrag(_root, __block.parentNode, __block.endMarker);
|
|
19
|
-
_b = bag4(__s, null, _m0, _m1, null, void 0);
|
|
20
|
-
}
|
|
21
|
-
{
|
|
22
|
-
const _v = /* @__PURE__ */ createPortal(createScopedValue(() => createScopedElement("div", { className: cx("vx-sheet-layer", dark && "dark") }, () => positionalChildren([(props.shadeCover ?? true) && createScopedValue(() => createElement("div", {
|
|
23
|
-
className: "vx-sheet-backdrop",
|
|
24
|
-
onClick: props.onDismiss
|
|
25
|
-
})), createScopedValue(() => createScopedElement("div", {
|
|
26
|
-
className: cx("vx-sheet", props.className),
|
|
27
|
-
style: { ...props.style },
|
|
28
|
-
...props.web
|
|
29
|
-
}, () => props.children))]))), document.body);
|
|
30
|
-
_b.c = textHoleUpdate(__s, 1, _b.a, _v, _b.c, _b.d, _b.b, true, true);
|
|
31
|
-
_b.d = _v;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
var Sheet = function Sheet(props, __s, __extra) {
|
|
35
|
-
const __block = __s.block;
|
|
36
|
-
const dark = withSlot(_h$0, useThemeScheme) === "dark";
|
|
37
|
-
if (__s.block.pending && !__s.block.crossRenderUpdate) return;
|
|
38
|
-
{
|
|
39
|
-
const __ifCondition = props.open;
|
|
40
|
-
ifBlock(__s, 0, __block.parentNode, __ifCondition, __then$0, null, __block.endMarker, __ifCondition ? [dark, props] : void 0);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
//#endregion
|
|
44
|
-
export { Sheet };
|
package/dist/web/ui6.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { applyEscapeProps } from "./ui2.js";
|
|
2
|
-
import { glassClassOf, glassStyleOf } from "./ui3.js";
|
|
3
|
-
import { layoutChildProps } from "./ui4.js";
|
|
4
|
-
import { __s, bag8, clone, snapshotSpread, template } from "octane";
|
|
5
|
-
import { bindSignalChild, bindSignalHostPropSources, enableSignalBindings } from "octane/internal/client";
|
|
6
|
-
//#region src/Row.web.tsrx
|
|
7
|
-
enableSignalBindings(1, true);
|
|
8
|
-
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
9
|
-
var _rm$1 = [
|
|
10
|
-
"s",
|
|
11
|
-
"f",
|
|
12
|
-
"e"
|
|
13
|
-
];
|
|
14
|
-
var Row = /* @__PURE__ */ __s(function Row(props, __s, __extra) {
|
|
15
|
-
let _b = __s.slots[0];
|
|
16
|
-
if (_b === void 0) {
|
|
17
|
-
let _m0, _m1, _m2, _m3, _m4, _m5;
|
|
18
|
-
const _root = clone(_t$0);
|
|
19
|
-
_m0 = props.id;
|
|
20
|
-
_m1 = (e) => applyEscapeProps(e, props);
|
|
21
|
-
_m2 = [
|
|
22
|
-
"vx-row",
|
|
23
|
-
glassClassOf(props.glass),
|
|
24
|
-
props.className
|
|
25
|
-
];
|
|
26
|
-
_m3 = snapshotSpread(layoutChildProps(props, {
|
|
27
|
-
...glassStyleOf(props.glass),
|
|
28
|
-
...props.style
|
|
29
|
-
}));
|
|
30
|
-
_m4 = _root;
|
|
31
|
-
_m5 = bindSignalHostPropSources(__s, void 0, _root, [
|
|
32
|
-
[
|
|
33
|
-
false,
|
|
34
|
-
"id",
|
|
35
|
-
_m0
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
false,
|
|
39
|
-
"ref",
|
|
40
|
-
_m1
|
|
41
|
-
],
|
|
42
|
-
[
|
|
43
|
-
false,
|
|
44
|
-
"className",
|
|
45
|
-
_m2
|
|
46
|
-
],
|
|
47
|
-
[true, _m3]
|
|
48
|
-
], "b:3863ef97", true);
|
|
49
|
-
_b = bag8(__s, _root, _m0, _m1, _m2, _m3, _m4, _m5, null, void 0);
|
|
50
|
-
__s.refFields = _rm$1;
|
|
51
|
-
} else {
|
|
52
|
-
{
|
|
53
|
-
const _v = props.id;
|
|
54
|
-
if (_b.a !== _v) _b.a = _v;
|
|
55
|
-
}
|
|
56
|
-
{
|
|
57
|
-
const _v = (e) => applyEscapeProps(e, props);
|
|
58
|
-
if (_b.b !== _v) _b.b = _v;
|
|
59
|
-
}
|
|
60
|
-
{
|
|
61
|
-
const _v = [
|
|
62
|
-
"vx-row",
|
|
63
|
-
glassClassOf(props.glass),
|
|
64
|
-
props.className
|
|
65
|
-
];
|
|
66
|
-
if (_b.c !== _v) _b.c = _v;
|
|
67
|
-
}
|
|
68
|
-
_b.d = snapshotSpread(layoutChildProps(props, {
|
|
69
|
-
...glassStyleOf(props.glass),
|
|
70
|
-
...props.style
|
|
71
|
-
}));
|
|
72
|
-
_b.f = bindSignalHostPropSources(__s, _b.f, _b.e, [
|
|
73
|
-
[
|
|
74
|
-
false,
|
|
75
|
-
"id",
|
|
76
|
-
_b.a
|
|
77
|
-
],
|
|
78
|
-
[
|
|
79
|
-
false,
|
|
80
|
-
"ref",
|
|
81
|
-
_b.b
|
|
82
|
-
],
|
|
83
|
-
[
|
|
84
|
-
false,
|
|
85
|
-
"className",
|
|
86
|
-
_b.c
|
|
87
|
-
],
|
|
88
|
-
[true, _b.d]
|
|
89
|
-
], "b:3863ef97", true);
|
|
90
|
-
}
|
|
91
|
-
_b.i = bindSignalChild(__s, _b.i, 1, _b.e, props.children, "b:24a4d1fc", null, void 0, void 0, void 0, true);
|
|
92
|
-
});
|
|
93
|
-
//#endregion
|
|
94
|
-
export { Row };
|
package/dist/web/ui7.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { applyEscapeProps } from "./ui2.js";
|
|
2
|
-
import { glassClassOf, glassStyleOf } from "./ui3.js";
|
|
3
|
-
import { __s, bag7, clone, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
|
|
4
|
-
import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
|
|
5
|
-
//#region src/Grid.web.tsrx
|
|
6
|
-
enableSignalBindings(1, true);
|
|
7
|
-
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
8
|
-
var _rm$1 = [
|
|
9
|
-
"r",
|
|
10
|
-
"e",
|
|
11
|
-
"b"
|
|
12
|
-
];
|
|
13
|
-
function parseTracks(spec) {
|
|
14
|
-
return spec?.split(",").map((part) => {
|
|
15
|
-
const track = part.trim();
|
|
16
|
-
if (track === "auto") return "auto";
|
|
17
|
-
if (track.endsWith("*")) return `${track.slice(0, -1) || "1"}fr`;
|
|
18
|
-
return /^\d+(?:\.\d+)?$/.test(track) ? `${track}px` : track;
|
|
19
|
-
}).join(" ");
|
|
20
|
-
}
|
|
21
|
-
var warnedAboutGap = false;
|
|
22
|
-
var Grid = /* @__PURE__ */ __s(function Grid(props, __s, __extra) {
|
|
23
|
-
if (props.gap != null && !warnedAboutGap) {
|
|
24
|
-
warnedAboutGap = true;
|
|
25
|
-
console.warn("[Grid] gap is not supported; use child margins instead.");
|
|
26
|
-
}
|
|
27
|
-
if (__s.block.pending && !__s.block.crossRenderUpdate) return;
|
|
28
|
-
let _b = __s.slots[0];
|
|
29
|
-
if (_b === void 0) {
|
|
30
|
-
let _m1, _m4;
|
|
31
|
-
const _root = clone(_t$0);
|
|
32
|
-
_m1 = _root;
|
|
33
|
-
queueRefAttach(__s, _m4 = (el) => applyEscapeProps(el, props), _m1);
|
|
34
|
-
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.e, _b.b));
|
|
35
|
-
_b = bag7(__s, _root, void 0, _m1, void 0, void 0, _m4, null, void 0);
|
|
36
|
-
__s.refFields = _rm$1;
|
|
37
|
-
} else {
|
|
38
|
-
const _r = (el) => applyEscapeProps(el, props);
|
|
39
|
-
if (_r !== _b.e) _b.e = replaceRef(__s, _b.e, _r, _b.b);
|
|
40
|
-
}
|
|
41
|
-
_b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:8088bcf9", setPlainAttribute);
|
|
42
|
-
_b.c = updateFreshClassName([
|
|
43
|
-
"vx-grid",
|
|
44
|
-
glassClassOf(props.glass),
|
|
45
|
-
props.className
|
|
46
|
-
], _b.c, _b.b);
|
|
47
|
-
{
|
|
48
|
-
const _v = {
|
|
49
|
-
...glassStyleOf(props.glass),
|
|
50
|
-
...props.style,
|
|
51
|
-
...props.rows ? { gridTemplateRows: parseTracks(props.rows) } : {},
|
|
52
|
-
...props.columns ? { gridTemplateColumns: parseTracks(props.columns) } : {}
|
|
53
|
-
};
|
|
54
|
-
if (_b.d !== _v) {
|
|
55
|
-
setStyle(_b.b, _v, _b.d);
|
|
56
|
-
_b.d = _v;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
_b.h = bindSignalChild(__s, _b.h, 1, _b.b, props.children, "b:2e517120", null, void 0, void 0, void 0, true);
|
|
60
|
-
});
|
|
61
|
-
//#endregion
|
|
62
|
-
export { Grid };
|
package/dist/web/ui8.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { applyEscapeProps } from "./ui2.js";
|
|
2
|
-
import { glassClassOf, glassStyleOf } from "./ui3.js";
|
|
3
|
-
import { __s, bag7, clone, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
|
|
4
|
-
import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
|
|
5
|
-
//#region src/Stack.web.tsrx
|
|
6
|
-
enableSignalBindings(1, true);
|
|
7
|
-
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
8
|
-
var _rm$1 = [
|
|
9
|
-
"r",
|
|
10
|
-
"e",
|
|
11
|
-
"b"
|
|
12
|
-
];
|
|
13
|
-
var Stack = /* @__PURE__ */ __s(function Stack(props, __s, __extra) {
|
|
14
|
-
let _b = __s.slots[0];
|
|
15
|
-
if (_b === void 0) {
|
|
16
|
-
let _m1, _m4;
|
|
17
|
-
const _root = clone(_t$0);
|
|
18
|
-
_m1 = _root;
|
|
19
|
-
queueRefAttach(__s, _m4 = (el) => applyEscapeProps(el, props), _m1);
|
|
20
|
-
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.e, _b.b));
|
|
21
|
-
_b = bag7(__s, _root, void 0, _m1, void 0, void 0, _m4, null, void 0);
|
|
22
|
-
__s.refFields = _rm$1;
|
|
23
|
-
} else {
|
|
24
|
-
const _r = (el) => applyEscapeProps(el, props);
|
|
25
|
-
if (_r !== _b.e) _b.e = replaceRef(__s, _b.e, _r, _b.b);
|
|
26
|
-
}
|
|
27
|
-
_b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:c5a2da88", setPlainAttribute);
|
|
28
|
-
_b.c = updateFreshClassName([
|
|
29
|
-
"vx-stack",
|
|
30
|
-
glassClassOf(props.glass),
|
|
31
|
-
props.className
|
|
32
|
-
], _b.c, _b.b);
|
|
33
|
-
{
|
|
34
|
-
const _v = {
|
|
35
|
-
...glassStyleOf(props.glass),
|
|
36
|
-
...props.style
|
|
37
|
-
};
|
|
38
|
-
if (_b.d !== _v) {
|
|
39
|
-
setStyle(_b.b, _v, _b.d);
|
|
40
|
-
_b.d = _v;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
_b.h = bindSignalChild(__s, _b.h, 1, _b.b, props.children, "b:3a94ba9c", null, void 0, void 0, void 0, true);
|
|
44
|
-
});
|
|
45
|
-
//#endregion
|
|
46
|
-
export { Stack };
|
package/dist/web/ui9.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { applyEscapeProps } from "./ui2.js";
|
|
2
|
-
import { glassClassOf, glassStyleOf } from "./ui3.js";
|
|
3
|
-
import { __s, bag7, clone, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
|
|
4
|
-
import { bindSignalAttribute, bindSignalChild, enableSignalBindings, replaceRef, setPlainAttribute, updateFreshClassName } from "octane/internal/client";
|
|
5
|
-
//#region src/Absolute.web.tsrx
|
|
6
|
-
enableSignalBindings(1, true);
|
|
7
|
-
var _t$0 = /* @__PURE__ */ template("<div></div>");
|
|
8
|
-
var _rm$1 = [
|
|
9
|
-
"r",
|
|
10
|
-
"e",
|
|
11
|
-
"b"
|
|
12
|
-
];
|
|
13
|
-
var Absolute = /* @__PURE__ */ __s(function Absolute(props, __s, __extra) {
|
|
14
|
-
let _b = __s.slots[0];
|
|
15
|
-
if (_b === void 0) {
|
|
16
|
-
let _m1, _m4;
|
|
17
|
-
const _root = clone(_t$0);
|
|
18
|
-
_m1 = _root;
|
|
19
|
-
queueRefAttach(__s, _m4 = (el) => applyEscapeProps(el, props), _m1);
|
|
20
|
-
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.e, _b.b));
|
|
21
|
-
_b = bag7(__s, _root, void 0, _m1, void 0, void 0, _m4, null, void 0);
|
|
22
|
-
__s.refFields = _rm$1;
|
|
23
|
-
} else {
|
|
24
|
-
const _r = (el) => applyEscapeProps(el, props);
|
|
25
|
-
if (_r !== _b.e) _b.e = replaceRef(__s, _b.e, _r, _b.b);
|
|
26
|
-
}
|
|
27
|
-
_b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:f8caef47", setPlainAttribute);
|
|
28
|
-
_b.c = updateFreshClassName([
|
|
29
|
-
"vx-absolute",
|
|
30
|
-
glassClassOf(props.glass),
|
|
31
|
-
props.className
|
|
32
|
-
], _b.c, _b.b);
|
|
33
|
-
{
|
|
34
|
-
const _v = {
|
|
35
|
-
...glassStyleOf(props.glass),
|
|
36
|
-
...props.style
|
|
37
|
-
};
|
|
38
|
-
if (_b.d !== _v) {
|
|
39
|
-
setStyle(_b.b, _v, _b.d);
|
|
40
|
-
_b.d = _v;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
_b.h = bindSignalChild(__s, _b.h, 1, _b.b, props.children, "b:55e1bd7a", null, void 0, void 0, void 0, true);
|
|
44
|
-
});
|
|
45
|
-
//#endregion
|
|
46
|
-
export { Absolute };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|