@ankhorage/zora 27.1.2 → 27.1.4
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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/package.json +3 -3
- package/web-dist/chunks/{Accordion-nj7k0m66.js → Accordion-109vh7aq.js} +1 -1
- package/web-dist/chunks/{Accordion-1fsrnq73.js → Accordion-2d49mqp7.js} +1 -1
- package/web-dist/chunks/{Accordion-43g7xsam.js → Accordion-2gx0rh1s.js} +3 -3
- package/web-dist/chunks/{Accordion-8f0nekwe.js → Accordion-3p43xhk7.js} +10 -14
- package/web-dist/chunks/{Accordion-xzgves7b.js → Accordion-55axaf49.js} +1 -1
- package/web-dist/chunks/{Accordion-nmxdqe80.js → Accordion-9j3x1ccv.js} +2 -2
- package/web-dist/chunks/{Accordion-yrrsqd5t.js → Accordion-aqqx878d.js} +1 -1
- package/web-dist/chunks/{Accordion-enn0479f.js → Accordion-bfszt9f0.js} +12 -15
- package/web-dist/chunks/{Accordion-221757sc.js → Accordion-bn0e6xt0.js} +2 -2
- package/web-dist/chunks/{Accordion-whk372cs.js → Accordion-dska91jj.js} +4 -4
- package/web-dist/chunks/{Accordion-xt8vafkn.js → Accordion-ecknv9v4.js} +2 -2
- package/web-dist/chunks/{Accordion-n1d0hvd6.js → Accordion-f2ce5m3x.js} +2 -2
- package/web-dist/chunks/{Accordion-qnd0dzk2.js → Accordion-k3mcnzzz.js} +1 -1
- package/web-dist/chunks/{Accordion-z43mw081.js → Accordion-pv1432kr.js} +41 -30
- package/web-dist/chunks/{Accordion-f5a0z9jh.js → Accordion-rwk4marz.js} +2 -2
- package/web-dist/chunks/{Accordion-k9bnymp0.js → Accordion-vmbaw3e9.js} +1 -1
- package/web-dist/chunks/{Accordion-2r2tm2nk.js → Accordion-xwg44t8y.js} +1 -1
- package/web-dist/chunks/{Accordion-pdgjv1pr.js → Accordion-xyx98xnk.js} +1 -1
- package/web-dist/chunks/{Accordion-1jxtw4vn.js → Accordion-y0kg8p9s.js} +1 -1
- package/web-dist/chunks/{Accordion-51pp6pn7.js → Accordion-z11jhrng.js} +2 -2
- package/web-dist/components/accordion/Accordion.js +3 -3
- package/web-dist/components/accordion-item/AccordionItem.js +3 -3
- package/web-dist/components/app-bar/AppBar.js +5 -5
- package/web-dist/components/app-header/AppHeader.js +5 -5
- package/web-dist/components/auth-screen/AuthScreen.js +5 -5
- package/web-dist/components/avatar/Avatar.js +3 -3
- package/web-dist/components/avatar-group/AvatarGroup.js +3 -3
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +7 -7
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +3 -3
- package/web-dist/components/button/Button.js +2 -2
- package/web-dist/components/button-group/ButtonGroup.js +2 -2
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +7 -7
- package/web-dist/components/card/Card.js +6 -6
- package/web-dist/components/chat-list-item/ChatListItem.js +4 -4
- package/web-dist/components/chip/Chip.js +3 -3
- package/web-dist/components/chip-group/ChipGroup.js +3 -3
- package/web-dist/components/collection-editor/CollectionEditor.js +6 -6
- package/web-dist/components/content-rail/ContentRail.js +2 -2
- package/web-dist/components/data-table/DataTable.js +9 -9
- package/web-dist/components/date-picker/DatePicker.js +2 -2
- package/web-dist/components/empty-state/EmptyState.js +7 -7
- package/web-dist/components/explorer/Explorer.js +4 -4
- package/web-dist/components/file-explorer/FileExplorer.js +4 -4
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +5 -5
- package/web-dist/components/form/Form.js +3 -3
- package/web-dist/components/form-actions/FormActions.js +3 -3
- package/web-dist/components/form-error/FormError.js +3 -3
- package/web-dist/components/game/Game.js +1 -1
- package/web-dist/components/game-entity/GameEntity.js +1 -1
- package/web-dist/components/game-field/GameField.js +1 -1
- package/web-dist/components/game-input-zone/GameInputZone.js +1 -1
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +1 -1
- package/web-dist/components/game-overlay/GameOverlay.js +1 -1
- package/web-dist/components/hero/Hero.js +6 -6
- package/web-dist/components/icon/Icon.js +2 -2
- package/web-dist/components/icon-button/IconButton.js +2 -2
- package/web-dist/components/image/Image.js +3 -3
- package/web-dist/components/media-card/MediaCard.js +6 -6
- package/web-dist/components/media-explorer/MediaExplorer.js +4 -4
- package/web-dist/components/message-bubble/MessageBubble.js +4 -4
- package/web-dist/components/metric-card/MetricCard.js +6 -6
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +5 -5
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +5 -5
- package/web-dist/components/otp-form/OtpForm.js +5 -5
- package/web-dist/components/pagination/Pagination.js +2 -2
- package/web-dist/components/palette-item/PaletteItem.js +6 -6
- package/web-dist/components/popover-menu/PopoverMenu.js +3 -3
- package/web-dist/components/post-card/PostCard.js +6 -6
- package/web-dist/components/product-card/ProductCard.js +6 -6
- package/web-dist/components/radio/Radio.js +3 -3
- package/web-dist/components/radio-group/RadioGroup.js +3 -3
- package/web-dist/components/rating/Rating.js +2 -2
- package/web-dist/components/reader/Reader.js +6 -6
- package/web-dist/components/scan-overlay/ScanOverlay.js +7 -7
- package/web-dist/components/search-input/SearchInput.js +3 -3
- package/web-dist/components/select/Select.js +2 -2
- package/web-dist/components/sign-in-form/SignInForm.js +5 -5
- package/web-dist/components/sign-up-form/SignUpForm.js +5 -5
- package/web-dist/components/skeleton/Skeleton.js +7 -7
- package/web-dist/components/skeleton-card/SkeletonCard.js +7 -7
- package/web-dist/components/skeleton-list/SkeletonList.js +7 -7
- package/web-dist/components/skeleton-text/SkeletonText.js +7 -7
- package/web-dist/components/text-input/TextInput.js +3 -3
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +2 -2
- package/web-dist/components/time-picker/TimePicker.js +2 -2
- package/web-dist/components/timeline/Timeline.js +2 -2
- package/web-dist/components/toolbar/Toolbar.js +6 -6
- package/web-dist/components/tree-item/TreeItem.js +3 -3
- package/web-dist/components/uploader/Uploader.js +6 -6
- package/web-dist/manifest.json +276 -276
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/zora
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "27.1.
|
|
4
|
+
"version": "27.1.4",
|
|
5
5
|
"description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/zora#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@ankhorage/game": "^0.1.3",
|
|
48
48
|
"@ankhorage/grid-view": "^0.5.0",
|
|
49
49
|
"@ankhorage/reader": "^0.1.2",
|
|
50
|
-
"@ankhorage/runtime": "^5.4.
|
|
51
|
-
"@ankhorage/surface": "^9.5.
|
|
50
|
+
"@ankhorage/runtime": "^5.4.1",
|
|
51
|
+
"@ankhorage/surface": "^9.5.4",
|
|
52
52
|
"@ankhorage/utility": "^1.10.0",
|
|
53
53
|
"expo-document-picker": "~57.0.3",
|
|
54
54
|
"expo-image-picker": "~57.0.20"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Button2
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pv1432kr.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-vj1m2wck.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
FormError2,
|
|
16
16
|
hasRequiredRule,
|
|
17
17
|
useFormController
|
|
18
|
-
} from "./Accordion-
|
|
18
|
+
} from "./Accordion-xwg44t8y.js";
|
|
19
19
|
import {
|
|
20
20
|
Text3
|
|
21
21
|
} from "./Accordion-37fyjrmm.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./Accordion-fvv1jb72.js";
|
|
25
25
|
import {
|
|
26
26
|
TextInput2
|
|
27
|
-
} from "./Accordion-
|
|
27
|
+
} from "./Accordion-9j3x1ccv.js";
|
|
28
28
|
import {
|
|
29
29
|
KeyboardAvoidingView2
|
|
30
30
|
} from "./Accordion-r2g18vxa.js";
|
|
@@ -13335,7 +13335,7 @@ var MaterialDesignIcons_default2 = {
|
|
|
13335
13335
|
};
|
|
13336
13336
|
|
|
13337
13337
|
// node_modules/@ankhorage/surface/src/features/icon/adapters/inbound/PortableIcon.web.tsx
|
|
13338
|
-
var import_react_native = __toESM(require_cjs());
|
|
13338
|
+
var import_react_native = __toESM(require_cjs(), 1);
|
|
13339
13339
|
import React from "react";
|
|
13340
13340
|
import { jsx } from "react/jsx-runtime";
|
|
13341
13341
|
var FONT_AWESOME_GLYPHS = new Map(Object.entries(FontAwesome_default2));
|
|
@@ -13383,18 +13383,14 @@ function WebFontIcon(props) {
|
|
|
13383
13383
|
}
|
|
13384
13384
|
function WebSvgIcon(props) {
|
|
13385
13385
|
const source = typeof props.source === "string" ? { uri: props.source } : props.source;
|
|
13386
|
-
return /* @__PURE__ */ jsx(import_react_native.
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
width: props.size
|
|
13395
|
-
}
|
|
13396
|
-
],
|
|
13397
|
-
testID: props.testID
|
|
13386
|
+
return /* @__PURE__ */ jsx(import_react_native.View, {
|
|
13387
|
+
style: [props.style, { height: props.size, width: props.size }],
|
|
13388
|
+
testID: props.testID,
|
|
13389
|
+
children: /* @__PURE__ */ jsx(import_react_native.Image, {
|
|
13390
|
+
accessibilityElementsHidden: true,
|
|
13391
|
+
source,
|
|
13392
|
+
style: { height: props.size, tintColor: props.color, width: props.size }
|
|
13393
|
+
})
|
|
13398
13394
|
});
|
|
13399
13395
|
}
|
|
13400
13396
|
function resolveFontDefinition(source) {
|
|
@@ -13495,7 +13491,7 @@ function createFontFaceCss(definition) {
|
|
|
13495
13491
|
return `@font-face{font-family:"${definition.family}";src:url("${definition.fontUrl}") format("truetype");font-style:normal;font-weight:${definition.weight ?? 400};font-display:block;}`;
|
|
13496
13492
|
}
|
|
13497
13493
|
|
|
13498
|
-
// node_modules/@ankhorage/surface/src/features/icon/adapters/inbound/Icon.tsx
|
|
13494
|
+
// node_modules/@ankhorage/surface/src/features/icon/adapters/inbound/Icon.web.tsx
|
|
13499
13495
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
13500
13496
|
function Icon3(props) {
|
|
13501
13497
|
const { theme } = useTheme();
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./Accordion-6wrr910w.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon3
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-3p43xhk7.js";
|
|
8
8
|
import {
|
|
9
9
|
IconButton2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-pv1432kr.js";
|
|
11
11
|
import {
|
|
12
12
|
withZoraThemeScope
|
|
13
13
|
} from "./Accordion-vj1m2wck.js";
|
|
@@ -59,8 +59,8 @@ var styles = import_react_native.StyleSheet.create({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
// node_modules/@ankhorage/runtime/dist/RuntimeRendererConfig.js
|
|
62
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
62
63
|
import React, { createContext, use } from "react";
|
|
63
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
64
64
|
var EMPTY_RUNTIME_RENDERER_CONFIG = {};
|
|
65
65
|
var RuntimeRendererConfigContext = createContext(EMPTY_RUNTIME_RENDERER_CONFIG);
|
|
66
66
|
function composeRuntimeRendererWrapNode(innerWrapNode, outerWrapNode) {
|
|
@@ -115,10 +115,7 @@ function RuntimeRendererConfigProvider(props) {
|
|
|
115
115
|
const { value, children } = props;
|
|
116
116
|
const inheritedConfig = use(RuntimeRendererConfigContext);
|
|
117
117
|
const mergedConfig = mergeRuntimeRendererConfig(value, inheritedConfig);
|
|
118
|
-
return
|
|
119
|
-
value: mergedConfig,
|
|
120
|
-
children
|
|
121
|
-
});
|
|
118
|
+
return _jsx(RuntimeRendererConfigContext, { value: mergedConfig, children });
|
|
122
119
|
}
|
|
123
120
|
function mergeRecordConfig(inherited, local) {
|
|
124
121
|
if (!inherited && !local)
|
|
@@ -946,18 +943,18 @@ function useLatestValue(value) {
|
|
|
946
943
|
}
|
|
947
944
|
|
|
948
945
|
// src/features/game/adapters/inbound/Game.tsx
|
|
949
|
-
import { jsx as
|
|
946
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
950
947
|
var Game2 = withZoraThemeScope(GameInner);
|
|
951
948
|
function GameInner(props) {
|
|
952
949
|
const runtime = useGameRuntime(props);
|
|
953
950
|
const [measurementRegistry] = React5.useState(createGameMeasurementRegistry);
|
|
954
951
|
const runtimeContext = React5.useMemo(() => ({ ...runtime, ...measurementRegistry, interactionPolicy: props.interactionPolicy }), [measurementRegistry, props.interactionPolicy, runtime]);
|
|
955
952
|
const runtimeBindingConfig = React5.useMemo(() => ({ bindingContext: createGameBindingContext(runtime.session) }), [runtime.session]);
|
|
956
|
-
return /* @__PURE__ */
|
|
953
|
+
return /* @__PURE__ */ jsx2(GameRuntimeContext.Provider, {
|
|
957
954
|
value: runtimeContext,
|
|
958
|
-
children: /* @__PURE__ */
|
|
955
|
+
children: /* @__PURE__ */ jsx2(RuntimeRendererConfigProvider, {
|
|
959
956
|
value: runtimeBindingConfig,
|
|
960
|
-
children: /* @__PURE__ */
|
|
957
|
+
children: /* @__PURE__ */ jsx2(GameField2, {
|
|
961
958
|
...props.aspectRatio === undefined ? {} : { aspectRatio: props.aspectRatio },
|
|
962
959
|
...props.minHeight === undefined ? {} : { minHeight: props.minHeight },
|
|
963
960
|
...props.fill === undefined ? {} : { fill: props.fill },
|
|
@@ -1215,13 +1212,13 @@ function useGameEntityMeasurement(elementRef, measurementId) {
|
|
|
1215
1212
|
}
|
|
1216
1213
|
|
|
1217
1214
|
// src/features/game/adapters/inbound/GameEntity.tsx
|
|
1218
|
-
import { jsx as
|
|
1215
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1219
1216
|
var GameEntity2 = withZoraThemeScope(GameEntityInner);
|
|
1220
1217
|
function GameEntityInner(props) {
|
|
1221
1218
|
const elementRef = React10.useRef(null);
|
|
1222
1219
|
const animatedStyle = useGameEntityAnimatedStyle(props);
|
|
1223
1220
|
useGameEntityMeasurement(elementRef, props.measurementId);
|
|
1224
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsx3(import_react_native6.Animated.View, {
|
|
1225
1222
|
ref: elementRef,
|
|
1226
1223
|
accessibilityLabel: props.accessibilityLabel,
|
|
1227
1224
|
testID: props.testID,
|
|
@@ -1355,7 +1352,7 @@ function useGameInputZoneResponder(props) {
|
|
|
1355
1352
|
}
|
|
1356
1353
|
|
|
1357
1354
|
// src/features/game/adapters/inbound/GameInputZone.tsx
|
|
1358
|
-
import { jsx as
|
|
1355
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1359
1356
|
var GameInputZone2 = withZoraThemeScope(GameInputZoneInner);
|
|
1360
1357
|
function GameInputZoneInner({
|
|
1361
1358
|
x = 0,
|
|
@@ -1387,7 +1384,7 @@ function GameInputZoneInner({
|
|
|
1387
1384
|
enabled: enabled && interactionPolicy !== "passive",
|
|
1388
1385
|
keyboardBindings
|
|
1389
1386
|
});
|
|
1390
|
-
return /* @__PURE__ */
|
|
1387
|
+
return /* @__PURE__ */ jsx4(import_react_native7.View, {
|
|
1391
1388
|
...keyboardProps,
|
|
1392
1389
|
...accessibilityLabel === undefined ? {} : { accessibilityLabel },
|
|
1393
1390
|
...testID === undefined ? {} : { testID },
|
|
@@ -1514,7 +1511,7 @@ async function dispatchGameMeasurement(input) {
|
|
|
1514
1511
|
|
|
1515
1512
|
// src/features/game/adapters/inbound/GameOverlay.tsx
|
|
1516
1513
|
var import_react_native8 = __toESM(require_cjs(), 1);
|
|
1517
|
-
import { jsx as
|
|
1514
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1518
1515
|
var GameOverlay2 = withZoraThemeScope(GameOverlayInner);
|
|
1519
1516
|
function GameOverlayInner({
|
|
1520
1517
|
children,
|
|
@@ -1525,7 +1522,7 @@ function GameOverlayInner({
|
|
|
1525
1522
|
interactionPolicy,
|
|
1526
1523
|
testID
|
|
1527
1524
|
}) {
|
|
1528
|
-
return /* @__PURE__ */
|
|
1525
|
+
return /* @__PURE__ */ jsx5(View2, {
|
|
1529
1526
|
...accessibilityLabel === undefined ? {} : { accessibilityLabel },
|
|
1530
1527
|
...testID === undefined ? {} : { testID },
|
|
1531
1528
|
pointerEvents: interactionPolicy === "passive" ? "none" : blocking ? "auto" : "box-none",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Button2
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pv1432kr.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-vj1m2wck.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./Accordion-0x8jncra.js";
|
|
11
11
|
import {
|
|
12
12
|
Card2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-dska91jj.js";
|
|
14
14
|
import {
|
|
15
15
|
Text3
|
|
16
16
|
} from "./Accordion-37fyjrmm.js";
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
} from "./Accordion-jz4j00nh.js";
|
|
26
26
|
import {
|
|
27
27
|
Icon2
|
|
28
|
-
} from "./Accordion-
|
|
28
|
+
} from "./Accordion-2d49mqp7.js";
|
|
29
29
|
import {
|
|
30
30
|
Avatar2
|
|
31
|
-
} from "./Accordion-
|
|
31
|
+
} from "./Accordion-y0kg8p9s.js";
|
|
32
32
|
import {
|
|
33
33
|
Button2
|
|
34
|
-
} from "./Accordion-
|
|
34
|
+
} from "./Accordion-pv1432kr.js";
|
|
35
35
|
import {
|
|
36
36
|
Image2
|
|
37
|
-
} from "./Accordion-
|
|
37
|
+
} from "./Accordion-xyx98xnk.js";
|
|
38
38
|
import {
|
|
39
39
|
resolveIconSize
|
|
40
40
|
} from "./Accordion-961ncx4e.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./Accordion-0x8jncra.js";
|
|
8
8
|
import {
|
|
9
9
|
ButtonGroup2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-pv1432kr.js";
|
|
11
11
|
import {
|
|
12
12
|
Card2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-dska91jj.js";
|
|
14
14
|
import {
|
|
15
15
|
List2
|
|
16
16
|
} from "./Accordion-rkg1y7x3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Button2
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pv1432kr.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-vj1m2wck.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./Accordion-0x8jncra.js";
|
|
11
11
|
import {
|
|
12
12
|
Card2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-dska91jj.js";
|
|
14
14
|
|
|
15
15
|
// src/features/empty-state/adapters/inbound/EmptyState.tsx
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./Accordion-6wrr910w.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon3
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-3p43xhk7.js";
|
|
8
8
|
import {
|
|
9
9
|
View3
|
|
10
10
|
} from "./Accordion-58yzdsab.js";
|
|
@@ -36,32 +36,34 @@ import {
|
|
|
36
36
|
__toESM
|
|
37
37
|
} from "./Accordion-nh0cs9hq.js";
|
|
38
38
|
|
|
39
|
-
// node_modules/@ankhorage/surface/src/features/button/adapters/inbound/
|
|
39
|
+
// node_modules/@ankhorage/surface/src/features/button/adapters/inbound/ButtonPresentation.tsx
|
|
40
40
|
var import_react_native = __toESM(require_cjs(), 1);
|
|
41
41
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
function ButtonPresentation({ Icon, ...props }) {
|
|
43
|
+
const {
|
|
44
|
+
children,
|
|
45
|
+
variant = "solid",
|
|
46
|
+
color = "primary",
|
|
47
|
+
size = "m",
|
|
48
|
+
disabled = false,
|
|
49
|
+
loading = false,
|
|
50
|
+
leadingIcon,
|
|
51
|
+
trailingIcon,
|
|
52
|
+
fullWidth = false,
|
|
53
|
+
onPress,
|
|
54
|
+
testID,
|
|
55
|
+
...pressableProps
|
|
56
|
+
} = props;
|
|
56
57
|
const { theme } = useTheme();
|
|
57
58
|
const controlSize = resolveControlSize(theme, size);
|
|
58
59
|
return /* @__PURE__ */ jsx(Pressable, {
|
|
59
|
-
...
|
|
60
|
+
...pressableProps,
|
|
60
61
|
disabled: disabled || loading,
|
|
61
62
|
onPress,
|
|
62
63
|
style: resolvePressableStyle(fullWidth),
|
|
63
64
|
testID,
|
|
64
65
|
children: (state) => /* @__PURE__ */ jsx(ButtonContent, {
|
|
66
|
+
Icon,
|
|
65
67
|
color,
|
|
66
68
|
controlSize,
|
|
67
69
|
fullWidth,
|
|
@@ -77,6 +79,7 @@ function Button({
|
|
|
77
79
|
});
|
|
78
80
|
}
|
|
79
81
|
function ButtonContent({
|
|
82
|
+
Icon,
|
|
80
83
|
children,
|
|
81
84
|
color,
|
|
82
85
|
controlSize,
|
|
@@ -103,7 +106,7 @@ function ButtonContent({
|
|
|
103
106
|
children: [
|
|
104
107
|
leadingIcon ? /* @__PURE__ */ jsx(import_react_native.View, {
|
|
105
108
|
style: resolveAccessoryStyle(theme.spacing.s, "leading"),
|
|
106
|
-
children: /* @__PURE__ */ jsx(
|
|
109
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
107
110
|
...leadingIcon,
|
|
108
111
|
color: colors.contentColor,
|
|
109
112
|
size: iconSize
|
|
@@ -117,7 +120,7 @@ function ButtonContent({
|
|
|
117
120
|
}),
|
|
118
121
|
trailingIcon ? /* @__PURE__ */ jsx(import_react_native.View, {
|
|
119
122
|
style: resolveAccessoryStyle(theme.spacing.s, "trailing"),
|
|
120
|
-
children: /* @__PURE__ */ jsx(
|
|
123
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
121
124
|
...trailingIcon,
|
|
122
125
|
color: colors.contentColor,
|
|
123
126
|
size: iconSize
|
|
@@ -147,6 +150,15 @@ function resolveAccessoryStyle(spacing, position) {
|
|
|
147
150
|
return position === "leading" ? { marginRight: spacing } : { marginLeft: spacing };
|
|
148
151
|
}
|
|
149
152
|
|
|
153
|
+
// node_modules/@ankhorage/surface/src/features/button/adapters/inbound/Button.web.tsx
|
|
154
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
155
|
+
function Button(props) {
|
|
156
|
+
return /* @__PURE__ */ jsx2(ButtonPresentation, {
|
|
157
|
+
...props,
|
|
158
|
+
Icon: Icon3
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
150
162
|
// src/features/button/utils/resolveButtonRecipe.ts
|
|
151
163
|
function resolveButtonRecipe({
|
|
152
164
|
color = "primary",
|
|
@@ -215,7 +227,7 @@ var buttonThemeRecipeMeta = {
|
|
|
215
227
|
};
|
|
216
228
|
|
|
217
229
|
// src/features/button/adapters/inbound/Button.tsx
|
|
218
|
-
import { jsx as
|
|
230
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
219
231
|
var Button2 = withZoraThemeScope(ButtonInner);
|
|
220
232
|
function ButtonInner({
|
|
221
233
|
themeId: _themeId,
|
|
@@ -228,7 +240,7 @@ function ButtonInner({
|
|
|
228
240
|
}) {
|
|
229
241
|
const themeFields = useZoraThemeRecipe(buttonThemeRecipeMeta);
|
|
230
242
|
const recipe = resolveButtonThemeRecipe({ color, variant, size, themeFields });
|
|
231
|
-
return /* @__PURE__ */
|
|
243
|
+
return /* @__PURE__ */ jsx3(Button, {
|
|
232
244
|
...props,
|
|
233
245
|
color: recipe.color,
|
|
234
246
|
size: recipe.size,
|
|
@@ -239,7 +251,7 @@ function ButtonInner({
|
|
|
239
251
|
|
|
240
252
|
// src/features/button/adapters/inbound/ButtonGroup.tsx
|
|
241
253
|
import React from "react";
|
|
242
|
-
import { jsx as
|
|
254
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
243
255
|
var ButtonGroup2 = withZoraThemeScope(ButtonGroupInner);
|
|
244
256
|
function resolveDirection(orientation) {
|
|
245
257
|
if (orientation === "vertical") {
|
|
@@ -315,7 +327,7 @@ function ButtonGroupInner({
|
|
|
315
327
|
}) {
|
|
316
328
|
const items = React.Children.toArray(children);
|
|
317
329
|
const orderedItems = reverse ? items.reverse() : items;
|
|
318
|
-
return /* @__PURE__ */
|
|
330
|
+
return /* @__PURE__ */ jsx4(View2, {
|
|
319
331
|
align: resolveStackAlign(align, orientation),
|
|
320
332
|
direction: resolveDirection(orientation),
|
|
321
333
|
gap,
|
|
@@ -324,9 +336,8 @@ function ButtonGroupInner({
|
|
|
324
336
|
children: orderedItems
|
|
325
337
|
});
|
|
326
338
|
}
|
|
327
|
-
|
|
328
339
|
// node_modules/@ankhorage/surface/src/features/button/adapters/inbound/IconButton.tsx
|
|
329
|
-
import { jsx as
|
|
340
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
330
341
|
function IconButton({
|
|
331
342
|
icon,
|
|
332
343
|
accessibilityLabel,
|
|
@@ -340,7 +351,7 @@ function IconButton({
|
|
|
340
351
|
}) {
|
|
341
352
|
const { theme } = useTheme();
|
|
342
353
|
const controlSize = resolveControlSize(theme, size);
|
|
343
|
-
return /* @__PURE__ */
|
|
354
|
+
return /* @__PURE__ */ jsx5(Pressable, {
|
|
344
355
|
...props,
|
|
345
356
|
accessibilityLabel,
|
|
346
357
|
disabled,
|
|
@@ -348,10 +359,10 @@ function IconButton({
|
|
|
348
359
|
testID,
|
|
349
360
|
children: (state) => {
|
|
350
361
|
const colors = resolveButtonColors(theme, { color, state, variant });
|
|
351
|
-
return /* @__PURE__ */
|
|
362
|
+
return /* @__PURE__ */ jsx5(View3, {
|
|
352
363
|
radius: controlSize.borderRadius,
|
|
353
364
|
style: resolveIconButtonStyle(controlSize, colors, variant),
|
|
354
|
-
children: /* @__PURE__ */
|
|
365
|
+
children: /* @__PURE__ */ jsx5(Icon3, {
|
|
355
366
|
...icon,
|
|
356
367
|
color: colors.contentColor,
|
|
357
368
|
size: resolveIconSize2(theme, size)
|
|
@@ -374,7 +385,7 @@ function resolveIconButtonStyle(controlSize, colors, variant) {
|
|
|
374
385
|
}
|
|
375
386
|
|
|
376
387
|
// src/features/button/adapters/inbound/IconButton.tsx
|
|
377
|
-
import { jsx as
|
|
388
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
378
389
|
var IconButton2 = withZoraThemeScope(IconButtonInner);
|
|
379
390
|
function IconButtonInner({
|
|
380
391
|
themeId: _themeId,
|
|
@@ -389,7 +400,7 @@ function IconButtonInner({
|
|
|
389
400
|
...props
|
|
390
401
|
}) {
|
|
391
402
|
const recipe = resolveButtonRecipe({ color, variant, size });
|
|
392
|
-
return /* @__PURE__ */
|
|
403
|
+
return /* @__PURE__ */ jsx6(IconButton, {
|
|
393
404
|
...props,
|
|
394
405
|
icon: icon ?? { name: iconName ?? "add" },
|
|
395
406
|
accessibilityLabel: label,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./Accordion-vj1m2wck.js";
|
|
8
8
|
import {
|
|
9
9
|
Icon2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-2d49mqp7.js";
|
|
11
11
|
import {
|
|
12
12
|
Image2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-xyx98xnk.js";
|
|
14
14
|
import {
|
|
15
15
|
Text3
|
|
16
16
|
} from "./Accordion-37fyjrmm.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./Accordion-6wrr910w.js";
|
|
9
9
|
import {
|
|
10
10
|
IconButton2
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-pv1432kr.js";
|
|
12
12
|
import {
|
|
13
13
|
withZoraThemeScope
|
|
14
14
|
} from "./Accordion-vj1m2wck.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./Accordion-0x8jncra.js";
|
|
18
18
|
import {
|
|
19
19
|
PopoverMenu2
|
|
20
|
-
} from "./Accordion-
|
|
20
|
+
} from "./Accordion-109vh7aq.js";
|
|
21
21
|
import {
|
|
22
22
|
Heading2,
|
|
23
23
|
Text3
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Accordion2,
|
|
4
4
|
AccordionItem2
|
|
5
|
-
} from "../../chunks/Accordion-
|
|
5
|
+
} from "../../chunks/Accordion-55axaf49.js";
|
|
6
6
|
import"../../chunks/Accordion-6wrr910w.js";
|
|
7
7
|
import"../../chunks/Accordion-vj1m2wck.js";
|
|
8
8
|
import"../../chunks/Accordion-bfzeab9x.js";
|
|
9
|
-
import"../../chunks/Accordion-
|
|
10
|
-
import"../../chunks/Accordion-
|
|
9
|
+
import"../../chunks/Accordion-3p43xhk7.js";
|
|
10
|
+
import"../../chunks/Accordion-2d49mqp7.js";
|
|
11
11
|
import"../../chunks/Accordion-zj4wnm3e.js";
|
|
12
12
|
import"../../chunks/Accordion-58yzdsab.js";
|
|
13
13
|
import"../../chunks/Accordion-0x8jncra.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Accordion2,
|
|
4
4
|
AccordionItem2
|
|
5
|
-
} from "../../chunks/Accordion-
|
|
5
|
+
} from "../../chunks/Accordion-55axaf49.js";
|
|
6
6
|
import"../../chunks/Accordion-6wrr910w.js";
|
|
7
7
|
import"../../chunks/Accordion-vj1m2wck.js";
|
|
8
8
|
import"../../chunks/Accordion-bfzeab9x.js";
|
|
9
|
-
import"../../chunks/Accordion-
|
|
10
|
-
import"../../chunks/Accordion-
|
|
9
|
+
import"../../chunks/Accordion-3p43xhk7.js";
|
|
10
|
+
import"../../chunks/Accordion-2d49mqp7.js";
|
|
11
11
|
import"../../chunks/Accordion-zj4wnm3e.js";
|
|
12
12
|
import"../../chunks/Accordion-58yzdsab.js";
|
|
13
13
|
import"../../chunks/Accordion-0x8jncra.js";
|