@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,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -158,8 +158,8 @@ var TextFieldRoot = _react.forwardRef.call(void 0, function TextField({
|
|
|
158
158
|
isInvalid: isInvalid ? "true" : void 0
|
|
159
159
|
};
|
|
160
160
|
const states = { focused: isFocused && !isInvalid, disabled: isDisabled };
|
|
161
|
-
const styles =
|
|
162
|
-
const tint = color ?
|
|
161
|
+
const styles = _chunkBKY5YQ7Wcjs.textFieldRecipe.resolve({ theme, selection, states });
|
|
162
|
+
const tint = color ? _chunkBKY5YQ7Wcjs.textFieldRecipe.tint({ theme, color, selection, states }) : void 0;
|
|
163
163
|
const context = _react.useMemo.call(void 0, () => {
|
|
164
164
|
const placeholder = _reactnative.StyleSheet.flatten(styles.placeholder);
|
|
165
165
|
const icon = _reactnative.StyleSheet.flatten(styles.icon);
|
|
@@ -185,7 +185,7 @@ var checkboxRecipe = createRecipe({
|
|
|
185
185
|
* Declared after `size` so its border wins. The resting fill is dropped rather than
|
|
186
186
|
* repainted — `undefined` over a colour is what RN reads as "no background" — because
|
|
187
187
|
* a box that is wrong should read as an outline, not as a filled control that happens
|
|
188
|
-
* to be red at the edge.
|
|
188
|
+
* to be red at the edge. The reference implementation reaches the same shape with a compound.
|
|
189
189
|
*/
|
|
190
190
|
isInvalid: {
|
|
191
191
|
true: (theme) => ({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNRU5APUEcjs = require('./chunk-NRU5APUE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,10 +11,10 @@ var _chunkNADCILBLcjs = require('./chunk-NADCILBL.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2IOL3VDPcjs = require('./chunk-2IOL3VDP.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -43,7 +43,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
43
43
|
var SearchFieldClear = _react.forwardRef.call(void 0,
|
|
44
44
|
function SearchFieldClear2({ onPress, ...props }, ref) {
|
|
45
45
|
const { query, clear, clearStyle, clearGlyphStyle } = useSearchField();
|
|
46
|
-
const { isDisabled } =
|
|
46
|
+
const { isDisabled } = _chunk2IOL3VDPcjs.useTextField.call(void 0, );
|
|
47
47
|
const handlePress = _react.useCallback.call(void 0,
|
|
48
48
|
(event) => {
|
|
49
49
|
clear();
|
|
@@ -52,7 +52,7 @@ var SearchFieldClear = _react.forwardRef.call(void 0,
|
|
|
52
52
|
[clear, onPress]
|
|
53
53
|
);
|
|
54
54
|
if (query.length === 0) return null;
|
|
55
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNRU5APUEcjs.FieldGroupSuffix, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
56
|
_chunkWNEDQTH6cjs.CloseButtonBase,
|
|
57
57
|
{
|
|
58
58
|
ref,
|
|
@@ -75,13 +75,13 @@ var SearchFieldField = _react.forwardRef.call(void 0,
|
|
|
75
75
|
function SearchFieldField2({ style, ...props }, ref) {
|
|
76
76
|
const { query, onType, submit, boxStyle } = useSearchField();
|
|
77
77
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
78
|
-
const group =
|
|
78
|
+
const group = _chunkNRU5APUEcjs.useOptionalFieldGroup.call(void 0, );
|
|
79
79
|
const padding = _react.useMemo.call(void 0,
|
|
80
|
-
() =>
|
|
80
|
+
() => _chunkNRU5APUEcjs.decoratorPadding.call(void 0, _nullishCoalesce(_optionalChain([group, 'optionalAccess', _2 => _2.prefixWidth]), () => ( 0)), _nullishCoalesce(_optionalChain([group, 'optionalAccess', _3 => _3.suffixWidth]), () => ( 0))),
|
|
81
81
|
[_optionalChain([group, 'optionalAccess', _4 => _4.prefixWidth]), _optionalChain([group, 'optionalAccess', _5 => _5.suffixWidth])]
|
|
82
82
|
);
|
|
83
83
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_chunk2IOL3VDPcjs.TextFieldField,
|
|
85
85
|
{
|
|
86
86
|
ref,
|
|
87
87
|
accessibilityRole: "search",
|
|
@@ -128,7 +128,7 @@ function SearchFieldIcon({
|
|
|
128
128
|
size,
|
|
129
129
|
color
|
|
130
130
|
}) {
|
|
131
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
131
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNRU5APUEcjs.FieldGroupIcon, { as, size, color });
|
|
132
132
|
}
|
|
133
133
|
SearchFieldIcon.displayName = "XAUI.SearchField.Icon";
|
|
134
134
|
|
|
@@ -144,7 +144,7 @@ var VARIANT_TOKENS = {
|
|
|
144
144
|
var BAR_RATIO = 16 / 32;
|
|
145
145
|
function sizeAxis(size) {
|
|
146
146
|
return (theme) => {
|
|
147
|
-
const side = theme.fontSizes[
|
|
147
|
+
const side = theme.fontSizes[_chunkBKY5YQ7Wcjs.FIELD_GLYPH_SIZES[size]];
|
|
148
148
|
return {
|
|
149
149
|
clear: { width: side, height: side },
|
|
150
150
|
clearGlyph: { width: Math.round(side * BAR_RATIO) }
|
|
@@ -229,19 +229,19 @@ var SearchFieldRoot = _react.forwardRef.call(void 0,
|
|
|
229
229
|
}),
|
|
230
230
|
[query, report, clear, submit, styles, tint]
|
|
231
231
|
);
|
|
232
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SearchFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
232
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SearchFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextFieldRoot, { ref, variant: "tertiary", size, ...props, children }) });
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
SearchFieldRoot.displayName = "XAUI.SearchField.Root";
|
|
236
236
|
|
|
237
237
|
// src/components/search-field/index.ts
|
|
238
238
|
var SearchField2 = Object.assign(SearchFieldRoot, {
|
|
239
|
-
Label:
|
|
239
|
+
Label: _chunk2IOL3VDPcjs.TextFieldLabel,
|
|
240
240
|
Icon: SearchFieldIcon,
|
|
241
241
|
Field: SearchFieldField,
|
|
242
242
|
Clear: SearchFieldClear,
|
|
243
|
-
Description:
|
|
244
|
-
Error:
|
|
243
|
+
Description: _chunk2IOL3VDPcjs.TextFieldDescription,
|
|
244
|
+
Error: _chunk2IOL3VDPcjs.TextFieldError
|
|
245
245
|
});
|
|
246
246
|
|
|
247
247
|
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYUCK5VJOcjs = require('./chunk-YUCK5VJO.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkC2S6J27Ocjs = require('./chunk-C2S6J27O.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
@@ -206,7 +206,7 @@ var ColorPickerContent = _react.forwardRef.call(void 0,
|
|
|
206
206
|
const context = useColorPicker();
|
|
207
207
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
208
208
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
209
|
-
|
|
209
|
+
_chunkC2S6J27Ocjs.DialogContent,
|
|
210
210
|
{
|
|
211
211
|
ref,
|
|
212
212
|
...rest,
|
|
@@ -224,7 +224,7 @@ ColorPickerContent.displayName = "XAUI.ColorPicker.Content";
|
|
|
224
224
|
var ColorPickerField = _react.forwardRef.call(void 0,
|
|
225
225
|
function ColorPickerField2({ value, ...props }, ref) {
|
|
226
226
|
const { value: chosen } = useColorPicker();
|
|
227
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
227
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYUCK5VJOcjs.DummyFieldField, { ref, value: _nullishCoalesce(value, () => ( _optionalChain([chosen, 'optionalAccess', _2 => _2.toUpperCase, 'call', _3 => _3()]))), ...props });
|
|
228
228
|
}
|
|
229
229
|
);
|
|
230
230
|
ColorPickerField.displayName = "XAUI.ColorPicker.Field";
|
|
@@ -708,8 +708,8 @@ var ColorPickerRoot = _react.forwardRef.call(void 0,
|
|
|
708
708
|
}),
|
|
709
709
|
[value, select, colors, layout, isDisabled, styles, tint]
|
|
710
710
|
);
|
|
711
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ColorPickerProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
712
|
-
|
|
711
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ColorPickerProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC2S6J27Ocjs.Dialog, { isOpen, onOpenChange: setOpen, isDisabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
712
|
+
_chunkYUCK5VJOcjs.DummyFieldRoot,
|
|
713
713
|
{
|
|
714
714
|
ref,
|
|
715
715
|
variant,
|
|
@@ -731,15 +731,15 @@ ColorPickerRoot.displayName = "XAUI.ColorPicker.Root";
|
|
|
731
731
|
|
|
732
732
|
// src/components/color-picker/index.ts
|
|
733
733
|
var ColorPicker2 = Object.assign(ColorPickerRoot, {
|
|
734
|
-
Label:
|
|
734
|
+
Label: _chunkYUCK5VJOcjs.DummyFieldLabel,
|
|
735
735
|
Preview: ColorPickerPreview,
|
|
736
736
|
Field: ColorPickerField,
|
|
737
|
-
Description:
|
|
738
|
-
Error:
|
|
739
|
-
Overlay:
|
|
737
|
+
Description: _chunkYUCK5VJOcjs.DummyFieldDescription,
|
|
738
|
+
Error: _chunkYUCK5VJOcjs.DummyFieldError,
|
|
739
|
+
Overlay: _chunkC2S6J27Ocjs.DialogOverlay,
|
|
740
740
|
Content: ColorPickerContent,
|
|
741
|
-
Title:
|
|
742
|
-
Close:
|
|
741
|
+
Title: _chunkC2S6J27Ocjs.DialogTitle,
|
|
742
|
+
Close: _chunkC2S6J27Ocjs.DialogClose,
|
|
743
743
|
Grid: ColorPickerGrid,
|
|
744
744
|
Group: ColorPickerGroup,
|
|
745
745
|
Swatch: ColorPickerSwatch
|
|
@@ -152,10 +152,10 @@ function nextSheetState(release, geometry) {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
// src/components/bottom-sheet/bottom-sheet-content.tsx
|
|
155
|
-
const
|
|
156
|
-
code: "function
|
|
157
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
158
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
155
|
+
const _worklet_1588711504510_init_data = {
|
|
156
|
+
code: "function chunk3TBT6ORWCjs1(){const{offset}=this.__closure;return{transform:[{translateY:offset.get()}]};}",
|
|
157
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-3TBT6ORW.cjs",
|
|
158
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk3TBT6ORWCjs1\",\"offset\",\"__closure\",\"transform\",\"translateY\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-3TBT6ORW.cjs\"],\"mappings\":\"AAuNqE,SAAAA,iBAAMA,CAAA,QAAAC,MAAA,OAAAC,SAAA,CAEvE,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEH,MAAM,CAACI,GAAG,CAAC,CAAE,CAAC,CAAE,CAAC,CACtD\",\"ignoreList\":[]}"
|
|
159
159
|
};
|
|
160
160
|
function BottomSheetContent({
|
|
161
161
|
children,
|
|
@@ -220,28 +220,28 @@ function BottomSheetContent({
|
|
|
220
220
|
}).onEnd(event => {
|
|
221
221
|
_reactnativereanimated.runOnJS.call(void 0, release)(event.translationY, event.velocityY);
|
|
222
222
|
});
|
|
223
|
-
const slide = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
224
|
-
|
|
223
|
+
const slide = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk3TBT6ORWCjs1Factory({
|
|
224
|
+
_worklet_1588711504510_init_data,
|
|
225
225
|
offset
|
|
226
226
|
}) {
|
|
227
227
|
const _e = [new global.Error(), -2, -27];
|
|
228
|
-
const
|
|
228
|
+
const chunk3TBT6ORWCjs1 = function () {
|
|
229
229
|
return {
|
|
230
230
|
transform: [{
|
|
231
231
|
translateY: offset.get()
|
|
232
232
|
}]
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
chunk3TBT6ORWCjs1.__closure = {
|
|
236
236
|
offset
|
|
237
237
|
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
return
|
|
238
|
+
chunk3TBT6ORWCjs1.__workletHash = 1588711504510;
|
|
239
|
+
chunk3TBT6ORWCjs1.__pluginVersion = "0.7.4";
|
|
240
|
+
chunk3TBT6ORWCjs1.__initData = _worklet_1588711504510_init_data;
|
|
241
|
+
chunk3TBT6ORWCjs1.__stackDetails = _e;
|
|
242
|
+
return chunk3TBT6ORWCjs1;
|
|
243
243
|
}({
|
|
244
|
-
|
|
244
|
+
_worklet_1588711504510_init_data,
|
|
245
245
|
offset
|
|
246
246
|
}), [offset]);
|
|
247
247
|
if (!isOpen) return null;
|
|
@@ -515,7 +515,7 @@ var bottomSheetRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
515
515
|
backgroundColor: theme.colors.overlay,
|
|
516
516
|
padding: theme.spacing(5),
|
|
517
517
|
gap: theme.spacing(2),
|
|
518
|
-
//
|
|
518
|
+
// The reference implementation's `--radius-4xl` on a base of 8 is 32 points; the nearest on our base of 12
|
|
519
519
|
// is `3xl` at 36. A sheet's corner is the largest in the library because it is the
|
|
520
520
|
// only edge of it you can see.
|
|
521
521
|
borderTopStartRadius: theme.radius["3xl"],
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkBGBJTBFCcjs = require('./chunk-BGBJTBFC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
@@ -651,7 +651,7 @@ var TableSelectAllCell = _react.forwardRef.call(void 0,
|
|
|
651
651
|
...rest,
|
|
652
652
|
style: [cellStyle, { width: selectionWidth }, styleProps, style],
|
|
653
653
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
654
|
-
|
|
654
|
+
_chunkBGBJTBFCcjs.Checkbox,
|
|
655
655
|
{
|
|
656
656
|
isSelected: isAll,
|
|
657
657
|
isIndeterminate: isSome,
|
|
@@ -678,7 +678,7 @@ var TableSelectionCell = _react.forwardRef.call(void 0,
|
|
|
678
678
|
...rest,
|
|
679
679
|
style: [cellStyle, { width: selectionWidth }, styleProps, style],
|
|
680
680
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
681
|
-
|
|
681
|
+
_chunkBGBJTBFCcjs.Checkbox,
|
|
682
682
|
{
|
|
683
683
|
isSelected,
|
|
684
684
|
isDisabled,
|
|
@@ -37,8 +37,8 @@ function _optionalChain(ops) {
|
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
39
|
var _chunkLCGJA37Lcjs = require('./chunk-LCGJA37L.cjs');
|
|
40
|
-
var
|
|
41
|
-
var
|
|
40
|
+
var _chunk3TBT6ORWcjs = require('./chunk-3TBT6ORW.cjs');
|
|
41
|
+
var _chunkXILRXEULcjs = require('./chunk-XILRXEUL.cjs');
|
|
42
42
|
var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
43
43
|
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
44
44
|
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
@@ -102,21 +102,21 @@ function DateRangePicker({
|
|
|
102
102
|
isOpen: isOpen ? "true" : void 0,
|
|
103
103
|
isInvalid: isInvalid ? "true" : void 0
|
|
104
104
|
};
|
|
105
|
-
const field =
|
|
105
|
+
const field = _chunkXILRXEULcjs.selectRecipe.resolve({
|
|
106
106
|
theme,
|
|
107
107
|
selection,
|
|
108
108
|
states: {
|
|
109
109
|
disabled: isDisabled
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
|
-
const fieldPressed =
|
|
112
|
+
const fieldPressed = _chunkXILRXEULcjs.selectRecipe.resolve({
|
|
113
113
|
theme,
|
|
114
114
|
selection,
|
|
115
115
|
states: {
|
|
116
116
|
pressed: true
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const tint = color ?
|
|
119
|
+
const tint = color ? _chunkXILRXEULcjs.selectRecipe.tint({
|
|
120
120
|
theme,
|
|
121
121
|
color,
|
|
122
122
|
selection
|
|
@@ -185,15 +185,15 @@ function DateRangePickerSheet({
|
|
|
185
185
|
...props
|
|
186
186
|
}) {
|
|
187
187
|
const picker = useDateRangePicker();
|
|
188
|
-
return /* @__PURE__ */_jsxruntime.jsxs.call(void 0,
|
|
188
|
+
return /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2, {
|
|
189
189
|
isOpen: picker.isOpen,
|
|
190
190
|
onOpenChange: picker.setOpen,
|
|
191
191
|
...props,
|
|
192
|
-
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
192
|
+
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Overlay, {}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Content, {
|
|
193
193
|
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, DateRangePickerProvider, {
|
|
194
194
|
value: picker,
|
|
195
195
|
children: _nullishCoalesce(children, () => (/* @__PURE__ */_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, {
|
|
196
|
-
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
196
|
+
children: [/* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunk3TBT6ORWcjs.BottomSheet2.Handle, {}), /* @__PURE__ */_jsxruntime.jsx.call(void 0, DateRangePickerCalendar, {
|
|
197
197
|
previousLabel,
|
|
198
198
|
nextLabel
|
|
199
199
|
})]
|
|
@@ -239,10 +239,10 @@ DateRangePickerCalendar.displayName = "XAUI.DateRangePicker.Calendar";
|
|
|
239
239
|
|
|
240
240
|
var _reactnativereanimated = require('react-native-reanimated');
|
|
241
241
|
var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
242
|
-
const
|
|
243
|
-
code: "function
|
|
244
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
245
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
242
|
+
const _worklet_2098526603492_init_data = {
|
|
243
|
+
code: "function chunk4R4SIP22Cjs1(){const{_reactnativereanimated,progress,_chunkEKS3W46Mcjs}=this.__closure;return{transform:[{rotate:_reactnativereanimated.interpolate.call(void 0,progress.get(),[0,1],[_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0],_chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
244
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-4R4SIP22.cjs",
|
|
245
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk4R4SIP22Cjs1\",\"_reactnativereanimated\",\"progress\",\"_chunkEKS3W46Mcjs\",\"__closure\",\"transform\",\"rotate\",\"interpolate\",\"call\",\"get\",\"INDICATOR_ROTATION\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-4R4SIP22.cjs\"],\"mappings\":\"AA6PwE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,iBAAA,OAAAC,SAAA,CAE1E,MAAO,CACLC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,sBAAsB,CAACM,WAAW,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEN,QAAQ,CAACO,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACN,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAEP,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MACxK,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
|
|
246
246
|
};
|
|
247
247
|
function DateRangePickerIndicator(props) {
|
|
248
248
|
const {
|
|
@@ -256,32 +256,32 @@ function DateRangePickerIndicator(props) {
|
|
|
256
256
|
_react.useEffect.call(void 0, () => {
|
|
257
257
|
progress.set(_reactnativereanimated.withSpring.call(void 0, isOpen ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
258
258
|
}, [isOpen, progress]);
|
|
259
|
-
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
260
|
-
|
|
259
|
+
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunk4R4SIP22Cjs1Factory({
|
|
260
|
+
_worklet_2098526603492_init_data,
|
|
261
261
|
_reactnativereanimated,
|
|
262
262
|
progress,
|
|
263
263
|
_chunkEKS3W46Mcjs
|
|
264
264
|
}) {
|
|
265
265
|
const _e = [new global.Error(), -4, -27];
|
|
266
|
-
const
|
|
266
|
+
const chunk4R4SIP22Cjs1 = function () {
|
|
267
267
|
return {
|
|
268
268
|
transform: [{
|
|
269
269
|
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
270
270
|
}]
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
|
-
|
|
273
|
+
chunk4R4SIP22Cjs1.__closure = {
|
|
274
274
|
_reactnativereanimated,
|
|
275
275
|
progress,
|
|
276
276
|
_chunkEKS3W46Mcjs
|
|
277
277
|
};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
return
|
|
278
|
+
chunk4R4SIP22Cjs1.__workletHash = 2098526603492;
|
|
279
|
+
chunk4R4SIP22Cjs1.__pluginVersion = "0.7.4";
|
|
280
|
+
chunk4R4SIP22Cjs1.__initData = _worklet_2098526603492_init_data;
|
|
281
|
+
chunk4R4SIP22Cjs1.__stackDetails = _e;
|
|
282
|
+
return chunk4R4SIP22Cjs1;
|
|
283
283
|
}({
|
|
284
|
-
|
|
284
|
+
_worklet_2098526603492_init_data,
|
|
285
285
|
_reactnativereanimated,
|
|
286
286
|
progress,
|
|
287
287
|
_chunkEKS3W46Mcjs
|
|
@@ -66,7 +66,7 @@ function buildRadius(base) {
|
|
|
66
66
|
"3xl": base * 3,
|
|
67
67
|
"4xl": base * 4,
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* The reference implementation's value, reached from the other side of the scale: their `--radius-field` is
|
|
70
70
|
* an alias of their `--radius-xl`, and their base is 8 where ours is 12 — so their
|
|
71
71
|
* field corner is 12 points and, at our default base, so is this.
|
|
72
72
|
*
|
|
@@ -115,7 +115,7 @@ var fontFamilies = {
|
|
|
115
115
|
heading: "System",
|
|
116
116
|
// `'monospace'` is an Android family name, not a generic one: iOS does not resolve it and
|
|
117
117
|
// silently falls back to the system face, so code set with it is not monospaced there.
|
|
118
|
-
// Menlo is the face iOS ships, and it is what
|
|
118
|
+
// Menlo is the face iOS ships, and it is what the reference implementation selects for the same reason.
|
|
119
119
|
mono: _reactnative.Platform.OS === "ios" ? "Menlo" : "monospace"
|
|
120
120
|
};
|
|
121
121
|
var borderWidth = { default: 1, field: 1 };
|
|
@@ -279,7 +279,7 @@ var dialogRecipe = createRecipe({
|
|
|
279
279
|
content: {
|
|
280
280
|
backgroundColor: theme.colors.overlay,
|
|
281
281
|
padding: theme.spacing(5),
|
|
282
|
-
//
|
|
282
|
+
// The reference implementation's `--radius-3xl` on a base of 8 is 24 points; our base is 12, so the same
|
|
283
283
|
// 24 is `2xl`. Reading their key rather than their number puts a pill on it.
|
|
284
284
|
borderRadius: theme.radius["2xl"],
|
|
285
285
|
borderCurve: "continuous",
|
|
@@ -249,19 +249,19 @@ var chipRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
249
249
|
// A chip hugs its content where a `Button` fills its column. The difference is what
|
|
250
250
|
// the two are: a button is a control the layout sizes, a chip is a token *about*
|
|
251
251
|
// something, and a tag stretched across a screen has stopped being one. It is also
|
|
252
|
-
// the one line of
|
|
252
|
+
// the one line of the reference implementation's chip that is not a measurement.
|
|
253
253
|
alignSelf: "flex-start",
|
|
254
254
|
flexDirection: "row",
|
|
255
255
|
alignItems: "center",
|
|
256
256
|
justifyContent: "center",
|
|
257
257
|
borderWidth: 0,
|
|
258
|
-
// The capsule the name means, at every size.
|
|
258
|
+
// The capsule the name means, at every size. The reference implementation reaches it through a radius
|
|
259
259
|
// ladder that React Native would clamp to the same pill anyway; saying `full` says
|
|
260
260
|
// it once, and `radius` is still there for the tag that wants square corners.
|
|
261
261
|
borderRadius: theme.radius.full,
|
|
262
262
|
// Squircle corners for when `radius` overrides the pill. Free on Android.
|
|
263
263
|
borderCurve: "continuous"
|
|
264
|
-
// Deliberately no `overflow: 'hidden'`, where
|
|
264
|
+
// Deliberately no `overflow: 'hidden'`, where the reference implementation clips: the press overlays
|
|
265
265
|
// carry their own corners (`system/pressable-feedback/`), so nothing needs the clip
|
|
266
266
|
// — and clipping here would cut a badge or a shadow a caller hangs off the chip.
|
|
267
267
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
|
-
var
|
|
3
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ var _chunkISHMSP6Pcjs = require('./chunk-ISHMSP6P.cjs');
|
|
|
13
13
|
var _chunkYVYYONTPcjs = require('./chunk-YVYYONTP.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXILRXEULcjs = require('./chunk-XILRXEUL.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
|
|
@@ -131,21 +131,21 @@ var DatePicker = _react.forwardRef.call(void 0, function DatePicker2({
|
|
|
131
131
|
isOpen: isOpen ? "true" : void 0,
|
|
132
132
|
isInvalid: isInvalid ? "true" : void 0
|
|
133
133
|
};
|
|
134
|
-
const styles =
|
|
134
|
+
const styles = _chunkXILRXEULcjs.selectRecipe.resolve({
|
|
135
135
|
theme,
|
|
136
136
|
selection,
|
|
137
137
|
states: { disabled: isDisabled }
|
|
138
138
|
});
|
|
139
|
-
const pressed =
|
|
139
|
+
const pressed = _chunkXILRXEULcjs.selectRecipe.resolve({
|
|
140
140
|
theme,
|
|
141
141
|
selection,
|
|
142
142
|
states: { pressed: true }
|
|
143
143
|
});
|
|
144
|
-
const tint = color ?
|
|
144
|
+
const tint = color ? _chunkXILRXEULcjs.selectRecipe.tint({ theme, color, selection }) : void 0;
|
|
145
145
|
const own = datePickerRecipe.resolve({ theme, selection: { size } });
|
|
146
146
|
const flatField = _reactnative.StyleSheet.flatten(own.field);
|
|
147
147
|
const panelPad = typeof flatField.padding === "number" ? flatField.padding : 0;
|
|
148
|
-
const labelled =
|
|
148
|
+
const labelled = _chunkBKY5YQ7Wcjs.textFieldRecipe.resolve({
|
|
149
149
|
theme,
|
|
150
150
|
selection: { size, isInvalid: isInvalid ? "true" : void 0 },
|
|
151
151
|
states: { disabled: isDisabled }
|
|
@@ -53,10 +53,10 @@ AccordionContent.displayName = "XAUI.Accordion.Content";
|
|
|
53
53
|
import { useEffect } from "react";
|
|
54
54
|
import Animated2, { interpolate, useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated";
|
|
55
55
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
56
|
-
const
|
|
57
|
-
code: "function
|
|
58
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
59
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
56
|
+
const _worklet_6059148933693_init_data = {
|
|
57
|
+
code: "function chunk7EPH24S2Js1(){const{interpolate,progress,INDICATOR_ROTATION}=this.__closure;return{transform:[{rotate:interpolate(progress.get(),[0,1],[INDICATOR_ROTATION[0],INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
58
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-7EPH24S2.js",
|
|
59
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk7EPH24S2Js1\",\"interpolate\",\"progress\",\"INDICATOR_ROTATION\",\"__closure\",\"transform\",\"rotate\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-7EPH24S2.js\"],\"mappings\":\"AA8FoC,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\":[]}"
|
|
60
60
|
};
|
|
61
61
|
function AccordionIndicator({
|
|
62
62
|
as = ChevronDownIcon,
|
|
@@ -72,32 +72,32 @@ function AccordionIndicator({
|
|
|
72
72
|
useEffect(() => {
|
|
73
73
|
progress.set(withSpring(isExpanded ? 1 : 0, INDICATOR_SPRING));
|
|
74
74
|
}, [isExpanded, progress]);
|
|
75
|
-
const rotation = useAnimatedStyle(function
|
|
76
|
-
|
|
75
|
+
const rotation = useAnimatedStyle(function chunk7EPH24S2Js1Factory({
|
|
76
|
+
_worklet_6059148933693_init_data,
|
|
77
77
|
interpolate,
|
|
78
78
|
progress,
|
|
79
79
|
INDICATOR_ROTATION
|
|
80
80
|
}) {
|
|
81
81
|
const _e = [new global.Error(), -4, -27];
|
|
82
|
-
const
|
|
82
|
+
const chunk7EPH24S2Js1 = function () {
|
|
83
83
|
return {
|
|
84
84
|
transform: [{
|
|
85
85
|
rotate: `${interpolate(progress.get(), [0, 1], [INDICATOR_ROTATION[0], INDICATOR_ROTATION[1]])}deg`
|
|
86
86
|
}]
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
chunk7EPH24S2Js1.__closure = {
|
|
90
90
|
interpolate,
|
|
91
91
|
progress,
|
|
92
92
|
INDICATOR_ROTATION
|
|
93
93
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return
|
|
94
|
+
chunk7EPH24S2Js1.__workletHash = 6059148933693;
|
|
95
|
+
chunk7EPH24S2Js1.__pluginVersion = "0.7.4";
|
|
96
|
+
chunk7EPH24S2Js1.__initData = _worklet_6059148933693_init_data;
|
|
97
|
+
chunk7EPH24S2Js1.__stackDetails = _e;
|
|
98
|
+
return chunk7EPH24S2Js1;
|
|
99
99
|
}({
|
|
100
|
-
|
|
100
|
+
_worklet_6059148933693_init_data,
|
|
101
101
|
interpolate,
|
|
102
102
|
progress,
|
|
103
103
|
INDICATOR_ROTATION
|
|
@@ -413,7 +413,7 @@ var accordionRecipe = createRecipe({
|
|
|
413
413
|
* edge to be inset from, so its rows run the full width and the hairline runs with them
|
|
414
414
|
* — which is the difference between a list on a page and a list in a box.
|
|
415
415
|
*
|
|
416
|
-
* `primary` is the only one lifted. It is the one that reads as a card, and
|
|
416
|
+
* `primary` is the only one lifted. It is the one that reads as a card, and the reference implementation puts
|
|
417
417
|
* their `--shadow-surface` on exactly that variant. `secondary` and `tertiary` have too
|
|
418
418
|
* little fill to lift — a shadow under either would read as dirt rather than as height
|
|
419
419
|
* — and in dark mode the theme's surface shadow is already nothing (§4), which is why
|