@xaui/native 0.9.1-beta.95 → 0.9.1-beta.97
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/dist/{chunk-AXKDHX5V.cjs → chunk-2IOL3VDP.cjs} +3 -3
- package/dist/{chunk-LUPU7FJK.js → chunk-356DND54.js} +1 -1
- package/dist/{chunk-B5DBFS6M.js → chunk-3BRVAMXQ.js} +1 -1
- package/dist/{chunk-YJIVPYMG.cjs → chunk-3CI4JGY4.cjs} +14 -14
- package/dist/{chunk-4LRVB6WR.cjs → chunk-3DQCHPB6.cjs} +12 -12
- package/dist/{chunk-X6GT4H4I.cjs → chunk-3TBT6ORW.cjs} +15 -15
- package/dist/{chunk-DN3X5WIB.js → chunk-3VMKOQXH.js} +1 -1
- package/dist/{chunk-WPYJW3WM.cjs → chunk-435MOVG2.cjs} +3 -3
- package/dist/{chunk-NGXLJ5ZF.cjs → chunk-4R4SIP22.cjs} +22 -22
- package/dist/{chunk-V4IFH65I.cjs → chunk-5CXOSDFI.cjs} +2 -2
- package/dist/{chunk-5XTF2JDK.js → chunk-5G36GMFS.js} +1 -1
- package/dist/{chunk-VBS6VWW4.cjs → chunk-5UT5I53X.cjs} +3 -3
- package/dist/{chunk-5O7E73QP.cjs → chunk-7CGF3Z5S.cjs} +6 -6
- package/dist/{chunk-7OVYYZ7H.js → chunk-7EPH24S2.js} +15 -15
- package/dist/{chunk-G2YHGLN3.cjs → chunk-7JWOAGB3.cjs} +9 -9
- package/dist/{chunk-6SRFQSPR.cjs → chunk-ADGHFLBJ.cjs} +1 -1
- package/dist/{chunk-E4FWGZH2.js → chunk-AMFGATFY.js} +2 -2
- package/dist/{chunk-X22PLAP6.cjs → chunk-BGBJTBFC.cjs} +1 -1
- package/dist/{chunk-33BA4LVN.js → chunk-BH4IN6H6.js} +1 -1
- package/dist/{chunk-WLWZG2PA.cjs → chunk-BKY5YQ7W.cjs} +1 -1
- package/dist/{chunk-AHJLQJOE.cjs → chunk-C2S6J27O.cjs} +1 -1
- package/dist/chunk-C6JO2RTV.cjs +752 -0
- package/dist/{chunk-53E2E7GS.cjs → chunk-CP6AB6N5.cjs} +15 -15
- package/dist/{chunk-WYRM77XM.cjs → chunk-ENZBKNFJ.cjs} +15 -15
- package/dist/{chunk-BYDGJU5A.js → chunk-ES7RME6G.js} +3 -3
- package/dist/{chunk-KFB24VYT.js → chunk-EXONAJUX.js} +15 -15
- package/dist/{chunk-ERIGD4SE.cjs → chunk-FWAP4WAJ.cjs} +18 -18
- package/dist/{chunk-KMK6FUTK.cjs → chunk-FZXWZNYY.cjs} +9 -9
- package/dist/{chunk-K7VDLVLE.js → chunk-GKXOHUEW.js} +3 -3
- package/dist/{chunk-6W45YHTF.js → chunk-HDERVGWZ.js} +1 -1
- package/dist/{chunk-KHPODIQV.cjs → chunk-IHRPAKCZ.cjs} +15 -15
- package/dist/{chunk-2XEQDQAN.js → chunk-IVELCJEN.js} +99 -99
- package/dist/{chunk-5YZUYSV7.js → chunk-JYV53WUN.js} +1 -1
- package/dist/{chunk-DE4RSR7Q.cjs → chunk-KAYZH7ZN.cjs} +1 -1
- package/dist/{chunk-IMIY34F4.cjs → chunk-KIXHSX3L.cjs} +1 -1
- package/dist/{chunk-7M6YKCHX.js → chunk-KZZWNDDO.js} +2 -2
- package/dist/{chunk-OZLOYXLW.js → chunk-L6EWRWTE.js} +2 -2
- package/dist/{chunk-EQUD3NHO.js → chunk-LYWXGEED.js} +43 -43
- package/dist/{chunk-XOZMGNVS.js → chunk-MXSIY6QQ.js} +3 -3
- package/dist/{chunk-3CPLJJWX.js → chunk-MZUYTCCB.js} +1 -1
- package/dist/{chunk-NADCILBL.cjs → chunk-NRU5APUE.cjs} +4 -4
- package/dist/{chunk-43S673KF.js → chunk-NTVPLDJC.js} +1 -1
- package/dist/{chunk-7AVZ2FST.cjs → chunk-NXVSNESK.cjs} +12 -12
- package/dist/{chunk-4AIIAF6U.js → chunk-SRY3HKSC.js} +16 -16
- package/dist/chunk-SVS726BW.js +822 -0
- package/dist/{chunk-YOPWQHNO.js → chunk-TNFLBURM.js} +1 -1
- package/dist/{chunk-YCQEX25B.cjs → chunk-U6YD3UBO.cjs} +7 -7
- package/dist/{chunk-GN7BWYXP.cjs → chunk-USQK6SFZ.cjs} +15 -15
- package/dist/{chunk-YGETADPV.js → chunk-V7YT4SDX.js} +2 -2
- package/dist/{chunk-DBP5CA5R.js → chunk-VL2ZT4BB.js} +3 -3
- package/dist/{chunk-E5E2QA4K.js → chunk-VQG7K5QE.js} +15 -15
- package/dist/{chunk-Q6OVVUAT.js → chunk-VTGWFZCA.js} +2 -2
- package/dist/{chunk-MNBEUNC5.cjs → chunk-WH7MFY3H.cjs} +18 -18
- package/dist/{chunk-OX23MW5E.js → chunk-WMTGDNXU.js} +44 -44
- package/dist/{chunk-2TLPFGGR.cjs → chunk-XCEDD7PE.cjs} +24 -24
- package/dist/{chunk-J5COSALO.cjs → chunk-XILRXEUL.cjs} +2 -2
- package/dist/{chunk-AIHKBSQ5.cjs → chunk-YUCK5VJO.cjs} +8 -8
- package/dist/{chunk-YI5D4QZP.js → chunk-Z2KK5W7P.js} +15 -15
- package/dist/{chunk-SX5U5UJQ.js → chunk-ZBY7Q7WJ.js} +2 -2
- package/dist/{chunk-U5CUBDJA.js → chunk-ZR5YOCOQ.js} +15 -15
- package/dist/components/accordion/accordion.animation.d.cts +1 -1
- package/dist/components/accordion/accordion.animation.d.ts +1 -1
- package/dist/components/accordion/accordion.type.d.cts +1 -1
- package/dist/components/accordion/accordion.type.d.ts +1 -1
- package/dist/components/accordion/index.cjs +2 -2
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/alert-icon.d.cts +2 -2
- package/dist/components/alert/alert-icon.d.ts +2 -2
- package/dist/components/alert/alert.type.d.cts +1 -1
- package/dist/components/alert/alert.type.d.ts +1 -1
- package/dist/components/alert/index.cjs +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/autocomplete/index.cjs +3 -3
- package/dist/components/autocomplete/index.js +2 -2
- package/dist/components/avatar/avatar-fallback.d.cts +1 -1
- package/dist/components/avatar/avatar-fallback.d.ts +1 -1
- package/dist/components/avatar/avatar.d.cts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.type.d.cts +1 -1
- package/dist/components/avatar/avatar.type.d.ts +1 -1
- package/dist/components/avatar/index.cjs +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.cts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +1 -1
- package/dist/components/bottom-sheet/index.cjs +2 -2
- package/dist/components/bottom-sheet/index.js +1 -1
- package/dist/components/card/card-background.d.cts +1 -1
- package/dist/components/card/card-background.d.ts +1 -1
- package/dist/components/card/card.utils.d.cts +1 -1
- package/dist/components/card/card.utils.d.ts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.cts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox/checkbox.type.d.cts +1 -1
- package/dist/components/checkbox/checkbox.type.d.ts +1 -1
- package/dist/components/checkbox/index.cjs +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/chip/chip.type.d.cts +1 -1
- package/dist/components/chip/chip.type.d.ts +1 -1
- package/dist/components/chip/index.cjs +2 -2
- package/dist/components/chip/index.js +1 -1
- package/dist/components/color-picker/index.cjs +7 -7
- package/dist/components/color-picker/index.js +6 -6
- package/dist/components/combobox/index.cjs +4 -4
- package/dist/components/combobox/index.js +3 -3
- package/dist/components/date-picker/index.cjs +4 -4
- package/dist/components/date-picker/index.js +3 -3
- package/dist/components/date-range-picker/index.cjs +4 -4
- package/dist/components/date-range-picker/index.js +3 -3
- package/dist/components/date-time-picker/index.cjs +5 -5
- package/dist/components/date-time-picker/index.js +4 -4
- package/dist/components/dialog/index.cjs +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dummy-field/index.cjs +5 -5
- package/dist/components/dummy-field/index.js +4 -4
- package/dist/components/field-group/field-group-icon.d.cts +1 -1
- package/dist/components/field-group/field-group-icon.d.ts +1 -1
- package/dist/components/field-group/index.cjs +4 -4
- package/dist/components/field-group/index.js +3 -3
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-otp/input-otp.type.d.cts +1 -1
- package/dist/components/input-otp/input-otp.type.d.ts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.cts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.ts +1 -1
- package/dist/components/mask-field/index.cjs +5 -5
- package/dist/components/mask-field/index.js +4 -4
- package/dist/components/menu/index.cjs +2 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/number-field/index.cjs +5 -5
- package/dist/components/number-field/index.js +4 -4
- package/dist/components/phone-number-field/index.cjs +37 -30
- package/dist/components/phone-number-field/index.js +13 -6
- package/dist/components/popover/index.cjs +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.recipe.d.cts +1 -1
- package/dist/components/popover/popover.recipe.d.ts +1 -1
- package/dist/components/search-field/index.cjs +5 -5
- package/dist/components/search-field/index.js +4 -4
- package/dist/components/select/index.cjs +3 -3
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/select-indicator.d.cts +1 -1
- package/dist/components/select/select-indicator.d.ts +1 -1
- package/dist/components/skeleton/skeleton.type.d.cts +1 -1
- package/dist/components/skeleton/skeleton.type.d.ts +1 -1
- package/dist/components/slide-button/index.cjs +30 -0
- package/dist/components/slide-button/index.d.cts +44 -0
- package/dist/components/slide-button/index.d.ts +44 -0
- package/dist/components/slide-button/index.js +30 -0
- package/dist/components/slide-button/slide-button-fill.d.cts +29 -0
- package/dist/components/slide-button/slide-button-fill.d.ts +29 -0
- package/dist/components/slide-button/slide-button-icon.d.cts +10 -0
- package/dist/components/slide-button/slide-button-icon.d.ts +10 -0
- package/dist/components/slide-button/slide-button-label.d.cts +20 -0
- package/dist/components/slide-button/slide-button-label.d.ts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.cts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.ts +20 -0
- package/dist/components/slide-button/slide-button.animation.d.cts +33 -0
- package/dist/components/slide-button/slide-button.animation.d.ts +33 -0
- package/dist/components/slide-button/slide-button.context.d.cts +7 -0
- package/dist/components/slide-button/slide-button.context.d.ts +7 -0
- package/dist/components/slide-button/slide-button.d.cts +56 -0
- package/dist/components/slide-button/slide-button.d.ts +56 -0
- package/dist/components/slide-button/slide-button.recipe.d.cts +31 -0
- package/dist/components/slide-button/slide-button.recipe.d.ts +31 -0
- package/dist/components/slide-button/slide-button.type.d.cts +79 -0
- package/dist/components/slide-button/slide-button.type.d.ts +79 -0
- package/dist/components/slider/slider-thumb.d.cts +1 -1
- package/dist/components/slider/slider-thumb.d.ts +1 -1
- package/dist/components/slider/slider.recipe.d.cts +1 -1
- package/dist/components/slider/slider.recipe.d.ts +1 -1
- package/dist/components/spinner/spinner.d.cts +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/switch/switch.style.d.cts +1 -1
- package/dist/components/switch/switch.style.d.ts +1 -1
- package/dist/components/table/index.cjs +3 -3
- package/dist/components/table/index.js +2 -2
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/text-area/text-area.d.cts +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-field/index.cjs +3 -3
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/text-field/text-field.type.d.cts +4 -4
- package/dist/components/text-field/text-field.type.d.ts +4 -4
- package/dist/components/time-picker/index.cjs +4 -4
- package/dist/components/time-picker/index.js +3 -3
- package/dist/components/toast/index.cjs +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast.animation.d.cts +2 -2
- package/dist/components/toast/toast.animation.d.ts +2 -2
- package/dist/components/toast/toast.utils.d.cts +1 -1
- package/dist/components/toast/toast.utils.d.ts +1 -1
- package/dist/components/typography/typography.type.d.cts +1 -1
- package/dist/components/typography/typography.type.d.ts +1 -1
- package/dist/hooks/use-rotation.d.cts +1 -1
- package/dist/hooks/use-rotation.d.ts +1 -1
- package/dist/index.cjs +56 -38
- package/dist/index.js +64 -46
- package/dist/system/anchored/indicator-spring.d.cts +2 -2
- package/dist/system/anchored/indicator-spring.d.ts +2 -2
- package/dist/theme/derive-colors.d.cts +1 -1
- package/dist/theme/derive-colors.d.ts +1 -1
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +1 -1
- package/package.json +11 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkNRU5APUEcjs = require('./chunk-NRU5APUE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2IOL3VDPcjs = require('./chunk-2IOL3VDP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
@@ -140,9 +140,9 @@ var DummyFieldField = _react.forwardRef.call(void 0,
|
|
|
140
140
|
descriptionId,
|
|
141
141
|
onPress: rootOnPress
|
|
142
142
|
} = useDummyField();
|
|
143
|
-
const group =
|
|
143
|
+
const group = _chunkNRU5APUEcjs.useOptionalFieldGroup.call(void 0, );
|
|
144
144
|
const padding = _react.useMemo.call(void 0,
|
|
145
|
-
() =>
|
|
145
|
+
() => _chunkNRU5APUEcjs.decoratorPadding.call(void 0, _nullishCoalesce(_optionalChain([group, 'optionalAccess', _ => _.prefixWidth]), () => ( 0)), _nullishCoalesce(_optionalChain([group, 'optionalAccess', _2 => _2.suffixWidth]), () => ( 0))),
|
|
146
146
|
[_optionalChain([group, 'optionalAccess', _3 => _3.prefixWidth]), _optionalChain([group, 'optionalAccess', _4 => _4.suffixWidth])]
|
|
147
147
|
);
|
|
148
148
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
@@ -422,8 +422,8 @@ var dummyFieldRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
422
422
|
fontFamily: theme.fontFamilies.body,
|
|
423
423
|
color: theme.colors.danger
|
|
424
424
|
},
|
|
425
|
-
prefix: { ...
|
|
426
|
-
suffix: { ...
|
|
425
|
+
prefix: { ..._chunkBKY5YQ7Wcjs.decoratorBox.call(void 0, theme), start: 0 },
|
|
426
|
+
suffix: { ..._chunkBKY5YQ7Wcjs.decoratorBox.call(void 0, theme), end: 0 },
|
|
427
427
|
icon: { color: theme.colors.fieldPlaceholder }
|
|
428
428
|
}),
|
|
429
429
|
variantTokens: VARIANT_TOKENS,
|
|
@@ -572,7 +572,7 @@ var DummyFieldRoot = _react.forwardRef.call(void 0, function DummyField({
|
|
|
572
572
|
}, [styles, labelId, descriptionId, isDisabled, isInvalid]);
|
|
573
573
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _7 => _7.root]), styleProps, style];
|
|
574
574
|
const surface = asChild ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCDRGTUYFcjs.Slot, { ref, ...rest, style: rootStyle, children }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: rootStyle, children });
|
|
575
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
575
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextFieldProvider, { value: textFieldContext, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DummyFieldProvider, { value: context, children: surface }) });
|
|
576
576
|
});
|
|
577
577
|
DummyFieldRoot.displayName = "XAUI.DummyField.Root";
|
|
578
578
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { collectItemLabels, useLabelRegistry } from "./chunk-4WCBZFAK.js";
|
|
2
2
|
import { useAnchoredPosition } from "./chunk-Z6FRP4EV.js";
|
|
3
|
-
import { selectRecipe } from "./chunk-
|
|
3
|
+
import { selectRecipe } from "./chunk-AMFGATFY.js";
|
|
4
4
|
import { Portal } from "./chunk-2PMXMKS5.js";
|
|
5
5
|
import { INDICATOR_ROTATION, INDICATOR_SPRING, anchoredEntering, anchoredExiting, overlayEntering, overlayExiting } from "./chunk-64MXEVT3.js";
|
|
6
6
|
import { useMergedRef } from "./chunk-NCTOTTVW.js";
|
|
@@ -214,10 +214,10 @@ SelectContent.displayName = "XAUI.Select.Content";
|
|
|
214
214
|
import { useEffect as useEffect3 } from "react";
|
|
215
215
|
import Animated2, { interpolate, useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated";
|
|
216
216
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
217
|
-
const
|
|
218
|
-
code: "function
|
|
219
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
220
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
217
|
+
const _worklet_5921002532733_init_data = {
|
|
218
|
+
code: "function chunkZ2KK5W7PJs1(){const{interpolate,progress,INDICATOR_ROTATION}=this.__closure;return{transform:[{rotate:interpolate(progress.get(),[0,1],[INDICATOR_ROTATION[0],INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
219
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-Z2KK5W7P.js",
|
|
220
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZ2KK5W7PJs1\",\"interpolate\",\"progress\",\"INDICATOR_ROTATION\",\"__closure\",\"transform\",\"rotate\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-Z2KK5W7P.js\"],\"mappings\":\"AAmQoC,SAAAA,gBAAMA,CAAA,QAAAC,WAAA,CAAAC,QAAA,CAAAC,kBAAA,OAAAC,SAAA,CAEtC,MAAO,CACLC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,WAAW,CAACC,QAAQ,CAACK,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACJ,kBAAkB,CAAC,CAAC,CAAC,CAAEA,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MAChG,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
|
|
221
221
|
};
|
|
222
222
|
function SelectIndicator({
|
|
223
223
|
as = ChevronDownIcon,
|
|
@@ -231,32 +231,32 @@ function SelectIndicator({
|
|
|
231
231
|
useEffect3(() => {
|
|
232
232
|
progress.set(withSpring(isOpen ? 1 : 0, INDICATOR_SPRING));
|
|
233
233
|
}, [isOpen, progress]);
|
|
234
|
-
const rotation = useAnimatedStyle(function
|
|
235
|
-
|
|
234
|
+
const rotation = useAnimatedStyle(function chunkZ2KK5W7PJs1Factory({
|
|
235
|
+
_worklet_5921002532733_init_data,
|
|
236
236
|
interpolate,
|
|
237
237
|
progress,
|
|
238
238
|
INDICATOR_ROTATION
|
|
239
239
|
}) {
|
|
240
240
|
const _e = [new global.Error(), -4, -27];
|
|
241
|
-
const
|
|
241
|
+
const chunkZ2KK5W7PJs1 = function () {
|
|
242
242
|
return {
|
|
243
243
|
transform: [{
|
|
244
244
|
rotate: `${interpolate(progress.get(), [0, 1], [INDICATOR_ROTATION[0], INDICATOR_ROTATION[1]])}deg`
|
|
245
245
|
}]
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
|
-
|
|
248
|
+
chunkZ2KK5W7PJs1.__closure = {
|
|
249
249
|
interpolate,
|
|
250
250
|
progress,
|
|
251
251
|
INDICATOR_ROTATION
|
|
252
252
|
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return
|
|
253
|
+
chunkZ2KK5W7PJs1.__workletHash = 5921002532733;
|
|
254
|
+
chunkZ2KK5W7PJs1.__pluginVersion = "0.7.4";
|
|
255
|
+
chunkZ2KK5W7PJs1.__initData = _worklet_5921002532733_init_data;
|
|
256
|
+
chunkZ2KK5W7PJs1.__stackDetails = _e;
|
|
257
|
+
return chunkZ2KK5W7PJs1;
|
|
258
258
|
}({
|
|
259
|
-
|
|
259
|
+
_worklet_5921002532733_init_data,
|
|
260
260
|
interpolate,
|
|
261
261
|
progress,
|
|
262
262
|
INDICATOR_ROTATION
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
DummyFieldField,
|
|
5
5
|
DummyFieldLabel,
|
|
6
6
|
DummyFieldRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MXSIY6QQ.js";
|
|
8
8
|
import {
|
|
9
9
|
Dialog,
|
|
10
10
|
DialogClose,
|
|
11
11
|
DialogContent,
|
|
12
12
|
DialogOverlay,
|
|
13
13
|
DialogTitle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5G36GMFS.js";
|
|
15
15
|
import {
|
|
16
16
|
useControllableState
|
|
17
17
|
} from "./chunk-F6W3JQ7K.js";
|
|
@@ -106,10 +106,10 @@ var AvatarImage = forwardRef3(function AvatarImage2({
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
AvatarImage.displayName = "XAUI.Avatar.Image";
|
|
109
|
-
const
|
|
110
|
-
code: "function
|
|
111
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
112
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
109
|
+
const _worklet_3214403523242_init_data = {
|
|
110
|
+
code: "function chunkZR5YOCOQJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
111
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZR5YOCOQ.js",
|
|
112
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkZR5YOCOQJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ZR5YOCOQ.js\"],\"mappings\":\"AAsG2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
113
113
|
};
|
|
114
114
|
var FadingImage = forwardRef3(function FadingImage2({
|
|
115
115
|
onLoad,
|
|
@@ -123,26 +123,26 @@ var FadingImage = forwardRef3(function FadingImage2({
|
|
|
123
123
|
});
|
|
124
124
|
onLoad?.(event);
|
|
125
125
|
}, [opacity, onLoad]);
|
|
126
|
-
const animatedStyle = useAnimatedStyle(function
|
|
127
|
-
|
|
126
|
+
const animatedStyle = useAnimatedStyle(function chunkZR5YOCOQJs1Factory({
|
|
127
|
+
_worklet_3214403523242_init_data,
|
|
128
128
|
opacity
|
|
129
129
|
}) {
|
|
130
130
|
const _e = [new global.Error(), -2, -27];
|
|
131
|
-
const
|
|
131
|
+
const chunkZR5YOCOQJs1 = function () {
|
|
132
132
|
return {
|
|
133
133
|
opacity: opacity.value
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
chunkZR5YOCOQJs1.__closure = {
|
|
137
137
|
opacity
|
|
138
138
|
};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
return
|
|
139
|
+
chunkZR5YOCOQJs1.__workletHash = 3214403523242;
|
|
140
|
+
chunkZR5YOCOQJs1.__pluginVersion = "0.7.4";
|
|
141
|
+
chunkZR5YOCOQJs1.__initData = _worklet_3214403523242_init_data;
|
|
142
|
+
chunkZR5YOCOQJs1.__stackDetails = _e;
|
|
143
|
+
return chunkZR5YOCOQJs1;
|
|
144
144
|
}({
|
|
145
|
-
|
|
145
|
+
_worklet_3214403523242_init_data,
|
|
146
146
|
opacity
|
|
147
147
|
}), [opacity]);
|
|
148
148
|
return /* @__PURE__ */jsx3(Animated.Image, {
|
|
@@ -303,7 +303,7 @@ var avatarRecipe = createRecipe({
|
|
|
303
303
|
radius: radiusAxis("root")
|
|
304
304
|
},
|
|
305
305
|
/**
|
|
306
|
-
* A circle at every size, where
|
|
306
|
+
* A circle at every size, where the reference implementation fixes one large radius for all three — which
|
|
307
307
|
* makes their small avatars round and their large ones squircles. `full` says the shape
|
|
308
308
|
* the name means once, and `radius` is still there for the logo that wants a square.
|
|
309
309
|
*/
|
|
@@ -8,7 +8,7 @@ import { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
|
8
8
|
* content grows afterwards — an image loading, a list filling — would be stuck at the
|
|
9
9
|
* height it had when it was measured.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* The reference implementation's spring, and stiffer than the chevron's: 1600 against 1000. A height is a
|
|
12
12
|
* bigger distance than a rotation, and at the chevron's stiffness the same damping makes
|
|
13
13
|
* a long panel take almost half a second to settle.
|
|
14
14
|
*/
|
|
@@ -8,7 +8,7 @@ import { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
|
8
8
|
* content grows afterwards — an image loading, a list filling — would be stuck at the
|
|
9
9
|
* height it had when it was measured.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* The reference implementation's spring, and stiffer than the chevron's: 1600 against 1000. A height is a
|
|
12
12
|
* bigger distance than a rotation, and at the chevron's stiffness the same damping makes
|
|
13
13
|
* a long panel take almost half a second to settle.
|
|
14
14
|
*/
|
|
@@ -15,7 +15,7 @@ export type AccordionSlot = 'root'
|
|
|
15
15
|
* the `Button`'s five nor the `Card`'s four read that cleanly — both put `default`
|
|
16
16
|
* somewhere in the middle of an order it does not name a position in.
|
|
17
17
|
*
|
|
18
|
-
* `ghost` is the default here, and it is
|
|
18
|
+
* `ghost` is the default here, and it is the reference implementation's own `default`: rows separated by
|
|
19
19
|
* hairlines, on whatever page they sit on. `primary` is their `surface`.
|
|
20
20
|
*/
|
|
21
21
|
export type AccordionVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
@@ -15,7 +15,7 @@ export type AccordionSlot = 'root'
|
|
|
15
15
|
* the `Button`'s five nor the `Card`'s four read that cleanly — both put `default`
|
|
16
16
|
* somewhere in the middle of an order it does not name a position in.
|
|
17
17
|
*
|
|
18
|
-
* `ghost` is the default here, and it is
|
|
18
|
+
* `ghost` is the default here, and it is the reference implementation's own `default`: rows separated by
|
|
19
19
|
* hairlines, on whatever page they sit on. `primary` is their `surface`.
|
|
20
20
|
*/
|
|
21
21
|
export type AccordionVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkUSQK6SFZcjs = require('../../chunk-USQK6SFZ.cjs');
|
|
13
13
|
require('../../chunk-EKS3W46M.cjs');
|
|
14
14
|
require('../../chunk-7EIHHOHP.cjs');
|
|
15
15
|
require('../../chunk-HBYT7B47.cjs');
|
|
@@ -34,4 +34,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
exports.Accordion =
|
|
37
|
+
exports.Accordion = _chunkUSQK6SFZcjs.Accordion; exports.AccordionContent = _chunkUSQK6SFZcjs.AccordionContent; exports.AccordionIndicator = _chunkUSQK6SFZcjs.AccordionIndicator; exports.AccordionItem = _chunkUSQK6SFZcjs.AccordionItem; exports.AccordionRoot = _chunkUSQK6SFZcjs.AccordionRoot; exports.AccordionTrigger = _chunkUSQK6SFZcjs.AccordionTrigger; exports.accordionLayoutTransition = _chunkUSQK6SFZcjs.LAYOUT; exports.accordionRecipe = _chunkUSQK6SFZcjs.accordionRecipe; exports.useAccordion = _chunkUSQK6SFZcjs.useAccordion; exports.useAccordionItem = _chunkUSQK6SFZcjs.useAccordionItem;
|
|
@@ -13,7 +13,7 @@ import type { AlertIconProps } from './alert.type';
|
|
|
13
13
|
* The size and the colour come from the root, which resolved them once; an explicit `size`
|
|
14
14
|
* or `color` still wins, and that is the escape hatch for the alert whose icon has to
|
|
15
15
|
* disagree with its variant — a neutral `default` surface with a green check, which is how
|
|
16
|
-
*
|
|
16
|
+
* The reference implementation colours its own.
|
|
17
17
|
*
|
|
18
18
|
* **This slot renders a box**, unlike `Button.Icon` and `Chip.Icon`, which hand their
|
|
19
19
|
* props straight to a third-party component. It has to: an alert's icon sits beside a
|
|
@@ -21,7 +21,7 @@ import type { AlertIconProps } from './alert.type';
|
|
|
21
21
|
* line's cap-height means offsetting it by half the leading. That is a style, and a style
|
|
22
22
|
* needs a node — which is also what lets this slot carry style props at all.
|
|
23
23
|
*
|
|
24
|
-
* **No default glyph**, where
|
|
24
|
+
* **No default glyph**, where the reference implementation ships three. XAUI publishes no icon set — `@xaui/icons`
|
|
25
25
|
* was deleted in P0 — so an icon here is always the caller's, and the alert's job is to
|
|
26
26
|
* size and colour it rather than to choose it.
|
|
27
27
|
*/
|
|
@@ -13,7 +13,7 @@ import type { AlertIconProps } from './alert.type';
|
|
|
13
13
|
* The size and the colour come from the root, which resolved them once; an explicit `size`
|
|
14
14
|
* or `color` still wins, and that is the escape hatch for the alert whose icon has to
|
|
15
15
|
* disagree with its variant — a neutral `default` surface with a green check, which is how
|
|
16
|
-
*
|
|
16
|
+
* The reference implementation colours its own.
|
|
17
17
|
*
|
|
18
18
|
* **This slot renders a box**, unlike `Button.Icon` and `Chip.Icon`, which hand their
|
|
19
19
|
* props straight to a third-party component. It has to: an alert's icon sits beside a
|
|
@@ -21,7 +21,7 @@ import type { AlertIconProps } from './alert.type';
|
|
|
21
21
|
* line's cap-height means offsetting it by half the leading. That is a style, and a style
|
|
22
22
|
* needs a node — which is also what lets this slot carry style props at all.
|
|
23
23
|
*
|
|
24
|
-
* **No default glyph**, where
|
|
24
|
+
* **No default glyph**, where the reference implementation ships three. XAUI publishes no icon set — `@xaui/icons`
|
|
25
25
|
* was deleted in P0 — so an icon here is always the caller's, and the alert's job is to
|
|
26
26
|
* size and colour it rather than to choose it.
|
|
27
27
|
*/
|
|
@@ -12,7 +12,7 @@ export type AlertSlot = 'root' | 'icon' | 'iconGlyph' | 'content' | 'title' | 'd
|
|
|
12
12
|
* status vocabulary of the `Chip` for the rest.
|
|
13
13
|
*
|
|
14
14
|
* - **`default`** — the `surface` fill and the surface shadow, exactly the `Card`'s
|
|
15
|
-
* `default`. This is
|
|
15
|
+
* `default`. This is the reference implementation's alert: a neutral card, with the status carried by the icon
|
|
16
16
|
* rather than by the background.
|
|
17
17
|
* - **`primary` / `secondary`** — the full accent and its soft slice, for the
|
|
18
18
|
* informational alert that is not an outcome.
|
|
@@ -12,7 +12,7 @@ export type AlertSlot = 'root' | 'icon' | 'iconGlyph' | 'content' | 'title' | 'd
|
|
|
12
12
|
* status vocabulary of the `Chip` for the rest.
|
|
13
13
|
*
|
|
14
14
|
* - **`default`** — the `surface` fill and the surface shadow, exactly the `Card`'s
|
|
15
|
-
* `default`. This is
|
|
15
|
+
* `default`. This is the reference implementation's alert: a neutral card, with the status carried by the icon
|
|
16
16
|
* rather than by the background.
|
|
17
17
|
* - **`primary` / `secondary`** — the full accent and its soft slice, for the
|
|
18
18
|
* informational alert that is not an outcome.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKIXHSX3Lcjs = require('../../chunk-KIXHSX3L.cjs');
|
|
6
6
|
require('../../chunk-WNEDQTH6.cjs');
|
|
7
7
|
require('../../chunk-HBYT7B47.cjs');
|
|
8
8
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
@@ -19,4 +19,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.Alert =
|
|
22
|
+
exports.Alert = _chunkKIXHSX3Lcjs.Alert; exports.alertRecipe = _chunkKIXHSX3Lcjs.alertRecipe; exports.useAlert = _chunkKIXHSX3Lcjs.useAlert;
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWH7MFY3Hcjs = require('../../chunk-WH7MFY3H.cjs');
|
|
17
17
|
require('../../chunk-FJGPDWMS.cjs');
|
|
18
18
|
require('../../chunk-YVYYONTP.cjs');
|
|
19
|
-
require('../../chunk-
|
|
19
|
+
require('../../chunk-XILRXEUL.cjs');
|
|
20
20
|
require('../../chunk-WDDXU3OH.cjs');
|
|
21
21
|
require('../../chunk-EKS3W46M.cjs');
|
|
22
22
|
require('../../chunk-WFEMJCXO.cjs');
|
|
@@ -47,4 +47,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
exports.Autocomplete =
|
|
50
|
+
exports.Autocomplete = _chunkWH7MFY3Hcjs.Autocomplete2; exports.AutocompleteContent = _chunkWH7MFY3Hcjs.AutocompleteContent; exports.AutocompleteEmpty = _chunkWH7MFY3Hcjs.AutocompleteEmpty; exports.AutocompleteIndicator = _chunkWH7MFY3Hcjs.AutocompleteIndicator; exports.AutocompleteItem = _chunkWH7MFY3Hcjs.AutocompleteItem; exports.AutocompleteItemLabel = _chunkWH7MFY3Hcjs.AutocompleteItemLabel; exports.AutocompleteOverlay = _chunkWH7MFY3Hcjs.AutocompleteOverlay; exports.AutocompleteRoot = _chunkWH7MFY3Hcjs.Autocomplete; exports.AutocompleteSearch = _chunkWH7MFY3Hcjs.AutocompleteSearch; exports.AutocompleteTrigger = _chunkWH7MFY3Hcjs.AutocompleteTrigger; exports.AutocompleteValue = _chunkWH7MFY3Hcjs.AutocompleteValue; exports.autocompleteRecipe = _chunkWH7MFY3Hcjs.autocompleteRecipe; exports.useAutocomplete = _chunkWH7MFY3Hcjs.useAutocomplete; exports.useAutocompleteItem = _chunkWH7MFY3Hcjs.useAutocompleteItem;
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
autocompleteRecipe,
|
|
14
14
|
useAutocomplete,
|
|
15
15
|
useAutocompleteItem
|
|
16
|
-
} from "../../chunk-
|
|
16
|
+
} from "../../chunk-VQG7K5QE.js";
|
|
17
17
|
import "../../chunk-4WCBZFAK.js";
|
|
18
18
|
import "../../chunk-Z6FRP4EV.js";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-AMFGATFY.js";
|
|
20
20
|
import "../../chunk-2PMXMKS5.js";
|
|
21
21
|
import "../../chunk-64MXEVT3.js";
|
|
22
22
|
import "../../chunk-NCTOTTVW.js";
|
|
@@ -14,7 +14,7 @@ import { View } from 'react-native';
|
|
|
14
14
|
* It is a layer rather than a state: `Avatar.Image` is absolutely positioned over it, so
|
|
15
15
|
* this slot is simply always there. Nothing here knows whether an image exists.
|
|
16
16
|
*
|
|
17
|
-
* **No default glyph**, where
|
|
17
|
+
* **No default glyph**, where the reference implementation ships a person icon. XAUI publishes no icon set —
|
|
18
18
|
* `@xaui/icons` was deleted in P0 — so the mark is always the caller's. What this slot does
|
|
19
19
|
* instead is publish the frame's resolved size and colour to `IconContext`, so an `Icon`
|
|
20
20
|
* written inside it needs no props at all.
|
|
@@ -14,7 +14,7 @@ import { View } from 'react-native';
|
|
|
14
14
|
* It is a layer rather than a state: `Avatar.Image` is absolutely positioned over it, so
|
|
15
15
|
* this slot is simply always there. Nothing here knows whether an image exists.
|
|
16
16
|
*
|
|
17
|
-
* **No default glyph**, where
|
|
17
|
+
* **No default glyph**, where the reference implementation ships a person icon. XAUI publishes no icon set —
|
|
18
18
|
* `@xaui/icons` was deleted in P0 — so the mark is always the caller's. What this slot does
|
|
19
19
|
* instead is publish the frame's resolved size and colour to `IconContext`, so an `Icon`
|
|
20
20
|
* written inside it needs no props at all.
|
|
@@ -20,7 +20,7 @@ import { View } from 'react-native';
|
|
|
20
20
|
* **The fallback is not a state, it is the layer underneath.** `Avatar.Image` is absolutely
|
|
21
21
|
* positioned over `Avatar.Fallback`, so the fallback is what shows before the image decodes
|
|
22
22
|
* and what shows again if the URL is wrong — with no load-state machine, no `onError` to
|
|
23
|
-
* remember, and nothing to get out of sync.
|
|
23
|
+
* remember, and nothing to get out of sync. The reference implementation runs a status enum for this; a stacking
|
|
24
24
|
* order says the same thing and cannot disagree with itself.
|
|
25
25
|
*
|
|
26
26
|
* R3 — a stringifiable tree becomes the initials, which is the majority case:
|
|
@@ -20,7 +20,7 @@ import { View } from 'react-native';
|
|
|
20
20
|
* **The fallback is not a state, it is the layer underneath.** `Avatar.Image` is absolutely
|
|
21
21
|
* positioned over `Avatar.Fallback`, so the fallback is what shows before the image decodes
|
|
22
22
|
* and what shows again if the URL is wrong — with no load-state machine, no `onError` to
|
|
23
|
-
* remember, and nothing to get out of sync.
|
|
23
|
+
* remember, and nothing to get out of sync. The reference implementation runs a status enum for this; a stacking
|
|
24
24
|
* order says the same thing and cannot disagree with itself.
|
|
25
25
|
*
|
|
26
26
|
* R3 — a stringifiable tree becomes the initials, which is the majority case:
|
|
@@ -15,7 +15,7 @@ export type AvatarSlot = 'root' | 'fallback' | 'initials' | 'icon';
|
|
|
15
15
|
* often as it identifies — a red frame for the account that failed to sync, a green one for
|
|
16
16
|
* the person who is online.
|
|
17
17
|
*
|
|
18
|
-
* It is
|
|
18
|
+
* It is the reference implementation's `variant × color` matrix said once: their `default` is this `default`, and
|
|
19
19
|
* their `soft` crossed with five colours is `secondary` plus the five `-soft` names.
|
|
20
20
|
*/
|
|
21
21
|
export type AvatarVariant = 'primary' | 'secondary' | 'default' | 'tertiary' | 'ghost' | 'success' | 'success-soft' | 'warning' | 'warning-soft' | 'danger' | 'danger-soft';
|
|
@@ -15,7 +15,7 @@ export type AvatarSlot = 'root' | 'fallback' | 'initials' | 'icon';
|
|
|
15
15
|
* often as it identifies — a red frame for the account that failed to sync, a green one for
|
|
16
16
|
* the person who is online.
|
|
17
17
|
*
|
|
18
|
-
* It is
|
|
18
|
+
* It is the reference implementation's `variant × color` matrix said once: their `default` is this `default`, and
|
|
19
19
|
* their `soft` crossed with five colours is `secondary` plus the five `-soft` names.
|
|
20
20
|
*/
|
|
21
21
|
export type AvatarVariant = 'primary' | 'secondary' | 'default' | 'tertiary' | 'ghost' | 'success' | 'success-soft' | 'warning' | 'warning-soft' | 'danger' | 'danger-soft';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkENZBKNFJcjs = require('../../chunk-ENZBKNFJ.cjs');
|
|
6
6
|
require('../../chunk-GSZDN6EZ.cjs');
|
|
7
7
|
require('../../chunk-FHNIGHN5.cjs');
|
|
8
8
|
require('../../chunk-SL3V7R2Y.cjs');
|
|
@@ -16,4 +16,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.Avatar =
|
|
19
|
+
exports.Avatar = _chunkENZBKNFJcjs.Avatar; exports.avatarRecipe = _chunkENZBKNFJcjs.avatarRecipe; exports.useAvatar = _chunkENZBKNFJcjs.useAvatar;
|
|
@@ -18,7 +18,7 @@ import type { BottomSheetProps } from './bottom-sheet.type';
|
|
|
18
18
|
* **The root renders no node.** It holds one piece of state and the styles the slots read.
|
|
19
19
|
*
|
|
20
20
|
* It is built on this library's own peers rather than on `@gorhom/bottom-sheet`, which is
|
|
21
|
-
* what
|
|
21
|
+
* what the reference implementation wraps. A sheet that slides, springs and dismisses is a pan gesture and a
|
|
22
22
|
* shared value; taking a dependency for that would put a second animation library in every
|
|
23
23
|
* app that installs one component.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ import type { BottomSheetProps } from './bottom-sheet.type';
|
|
|
18
18
|
* **The root renders no node.** It holds one piece of state and the styles the slots read.
|
|
19
19
|
*
|
|
20
20
|
* It is built on this library's own peers rather than on `@gorhom/bottom-sheet`, which is
|
|
21
|
-
* what
|
|
21
|
+
* what the reference implementation wraps. A sheet that slides, springs and dismisses is a pan gesture and a
|
|
22
22
|
* shared value; taking a dependency for that would put a second animation library in every
|
|
23
23
|
* app that installs one component.
|
|
24
24
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk3TBT6ORWcjs = require('../../chunk-3TBT6ORW.cjs');
|
|
15
15
|
require('../../chunk-WDDXU3OH.cjs');
|
|
16
16
|
require('../../chunk-EKS3W46M.cjs');
|
|
17
17
|
require('../../chunk-7EIHHOHP.cjs');
|
|
@@ -38,4 +38,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
exports.BottomSheet =
|
|
41
|
+
exports.BottomSheet = _chunk3TBT6ORWcjs.BottomSheet2; exports.BottomSheetClose = _chunk3TBT6ORWcjs.BottomSheetClose; exports.BottomSheetContent = _chunk3TBT6ORWcjs.BottomSheetContent; exports.BottomSheetDescription = _chunk3TBT6ORWcjs.BottomSheetDescription; exports.BottomSheetHandle = _chunk3TBT6ORWcjs.BottomSheetHandle; exports.BottomSheetOverlay = _chunk3TBT6ORWcjs.BottomSheetOverlay; exports.BottomSheetRoot = _chunk3TBT6ORWcjs.BottomSheet; exports.BottomSheetSummary = _chunk3TBT6ORWcjs.BottomSheetSummary; exports.BottomSheetTitle = _chunk3TBT6ORWcjs.BottomSheetTitle; exports.BottomSheetTrigger = _chunk3TBT6ORWcjs.BottomSheetTrigger; exports.bottomSheetRecipe = _chunk3TBT6ORWcjs.bottomSheetRecipe; exports.useBottomSheet = _chunk3TBT6ORWcjs.useBottomSheet;
|
|
@@ -19,7 +19,7 @@ import { View } from 'react-native';
|
|
|
19
19
|
* **The clip lives here, not on the root.** React Native's `overflow: 'hidden'` cuts the
|
|
20
20
|
* node's own shadow on iOS, so putting it on the card would cost a `default` card the
|
|
21
21
|
* elevation its variant just gave it. This layer carries its own `overflow` and the card's
|
|
22
|
-
* radius, which rounds the image without touching the shadow — where
|
|
22
|
+
* radius, which rounds the image without touching the shadow — where the reference implementation clips on both
|
|
23
23
|
* and loses it.
|
|
24
24
|
*
|
|
25
25
|
* Two forms, like `Icon`: `source` renders the image, and anything else is a layer of the
|
|
@@ -19,7 +19,7 @@ import { View } from 'react-native';
|
|
|
19
19
|
* **The clip lives here, not on the root.** React Native's `overflow: 'hidden'` cuts the
|
|
20
20
|
* node's own shadow on iOS, so putting it on the card would cost a `default` card the
|
|
21
21
|
* elevation its variant just gave it. This layer carries its own `overflow` and the card's
|
|
22
|
-
* radius, which rounds the image without touching the shadow — where
|
|
22
|
+
* radius, which rounds the image without touching the shadow — where the reference implementation clips on both
|
|
23
23
|
* and loses it.
|
|
24
24
|
*
|
|
25
25
|
* Two forms, like `Icon`: `source` renders the image, and anything else is a layer of the
|
|
@@ -17,7 +17,7 @@ export declare function markBackground<T extends object>(component: T): T;
|
|
|
17
17
|
*
|
|
18
18
|
* Without this, source order would decide the stacking: a `Card.Background` written after
|
|
19
19
|
* the header would sit over it and hide the card's own content, which is exactly the
|
|
20
|
-
* invisible ordering rule composition should not carry.
|
|
20
|
+
* invisible ordering rule composition should not carry. The reference implementation avoids the same trap by
|
|
21
21
|
* making the background a **prop** rather than a child; hoisting keeps it a child, which
|
|
22
22
|
* is what R1 asks for.
|
|
23
23
|
*
|
|
@@ -17,7 +17,7 @@ export declare function markBackground<T extends object>(component: T): T;
|
|
|
17
17
|
*
|
|
18
18
|
* Without this, source order would decide the stacking: a `Card.Background` written after
|
|
19
19
|
* the header would sit over it and hide the card's own content, which is exactly the
|
|
20
|
-
* invisible ordering rule composition should not carry.
|
|
20
|
+
* invisible ordering rule composition should not carry. The reference implementation avoids the same trap by
|
|
21
21
|
* making the background a **prop** rather than a child; hoisting keeps it a child, which
|
|
22
22
|
* is what R1 asks for.
|
|
23
23
|
*
|
|
@@ -12,7 +12,7 @@ export declare const checkboxRecipe: import("../..").Recipe<"label" | "fill" | "
|
|
|
12
12
|
* Declared after `size` so its border wins. The resting fill is dropped rather than
|
|
13
13
|
* repainted — `undefined` over a colour is what RN reads as "no background" — because
|
|
14
14
|
* a box that is wrong should read as an outline, not as a filled control that happens
|
|
15
|
-
* to be red at the edge.
|
|
15
|
+
* to be red at the edge. The reference implementation reaches the same shape with a compound.
|
|
16
16
|
*/
|
|
17
17
|
readonly isInvalid: {
|
|
18
18
|
readonly true: (theme: XAUITheme) => {
|
|
@@ -12,7 +12,7 @@ export declare const checkboxRecipe: import("../..").Recipe<"label" | "fill" | "
|
|
|
12
12
|
* Declared after `size` so its border wins. The resting fill is dropped rather than
|
|
13
13
|
* repainted — `undefined` over a colour is what RN reads as "no background" — because
|
|
14
14
|
* a box that is wrong should read as an outline, not as a filled control that happens
|
|
15
|
-
* to be red at the edge.
|
|
15
|
+
* to be red at the edge. The reference implementation reaches the same shape with a compound.
|
|
16
16
|
*/
|
|
17
17
|
readonly isInvalid: {
|
|
18
18
|
readonly true: (theme: XAUITheme) => {
|
|
@@ -8,7 +8,7 @@ export type CheckboxSlot = 'root' | 'indicator' | 'fill' | 'check' | 'dash' | 'l
|
|
|
8
8
|
* Three of the `Input`'s four levels, and they mean here what they mean there — this is
|
|
9
9
|
* the `field*` family again, on a box 24pt wide instead of a field 48pt tall.
|
|
10
10
|
*
|
|
11
|
-
* - **`primary`** — the `fieldBackground` fill plus the theme's `field` shadow.
|
|
11
|
+
* - **`primary`** — the `fieldBackground` fill plus the theme's `field` shadow. The reference implementation's
|
|
12
12
|
* `primary`, with the elevation their flat token only implies.
|
|
13
13
|
* - **`secondary`** — the neutral `default` fill, and the default here for the reason it
|
|
14
14
|
* is the `Input`'s: on a plain background a white box is its border and nothing else,
|
|
@@ -8,7 +8,7 @@ export type CheckboxSlot = 'root' | 'indicator' | 'fill' | 'check' | 'dash' | 'l
|
|
|
8
8
|
* Three of the `Input`'s four levels, and they mean here what they mean there — this is
|
|
9
9
|
* the `field*` family again, on a box 24pt wide instead of a field 48pt tall.
|
|
10
10
|
*
|
|
11
|
-
* - **`primary`** — the `fieldBackground` fill plus the theme's `field` shadow.
|
|
11
|
+
* - **`primary`** — the `fieldBackground` fill plus the theme's `field` shadow. The reference implementation's
|
|
12
12
|
* `primary`, with the elevation their flat token only implies.
|
|
13
13
|
* - **`secondary`** — the neutral `default` fill, and the default here for the reason it
|
|
14
14
|
* is the `Input`'s: on a plain background a white box is its border and nothing else,
|