@xaui/native 0.9.1-alpha.94 → 0.9.1-beta.100
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-4LRVB6WR.cjs → chunk-3DQCHPB6.cjs} +12 -12
- package/dist/{chunk-5O7E73QP.cjs → chunk-3MMOZP4Y.cjs} +8 -8
- 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-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-4AIIAF6U.js → chunk-73EVNWZI.js} +16 -16
- 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-OZLOYXLW.js → chunk-BBQQIO6L.js} +4 -4
- 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-2TLPFGGR.cjs → chunk-CS6CYB4I.cjs} +34 -25
- package/dist/{chunk-WYRM77XM.cjs → chunk-ENZBKNFJ.cjs} +15 -15
- package/dist/{chunk-ERIGD4SE.cjs → chunk-ETY5PM3E.cjs} +150 -39
- package/dist/{chunk-YJIVPYMG.cjs → chunk-FLKTJ46K.cjs} +15 -15
- package/dist/{chunk-OX23MW5E.js → chunk-FSVZXWLZ.js} +44 -44
- package/dist/{chunk-E5E2QA4K.js → chunk-GVZJNIHN.js} +176 -62
- 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-J5COSALO.cjs → chunk-L4B6Z45Q.cjs} +5 -5
- package/dist/{chunk-KFB24VYT.js → chunk-LMMHAGOM.js} +26 -17
- package/dist/{chunk-EQUD3NHO.js → chunk-LYWXGEED.js} +43 -43
- package/dist/{chunk-BYDGJU5A.js → chunk-M352N6PQ.js} +5 -5
- package/dist/{chunk-XOZMGNVS.js → chunk-MXSIY6QQ.js} +3 -3
- package/dist/{chunk-3CPLJJWX.js → chunk-MZUYTCCB.js} +1 -1
- package/dist/{chunk-K7VDLVLE.js → chunk-NQDTGYHC.js} +3 -3
- 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-E4FWGZH2.js → chunk-OUNTRW6E.js} +5 -5
- package/dist/{chunk-MNBEUNC5.cjs → chunk-QRH45OO3.cjs} +144 -33
- 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-QT7KLGO3.js → chunk-V5FYHQKQ.js} +102 -87
- package/dist/{chunk-KMK6FUTK.cjs → chunk-V5V2QYFH.cjs} +9 -9
- package/dist/{chunk-YGETADPV.js → chunk-V7YT4SDX.js} +2 -2
- package/dist/{chunk-DBP5CA5R.js → chunk-VL2ZT4BB.js} +3 -3
- package/dist/{chunk-Q6OVVUAT.js → chunk-VTGWFZCA.js} +2 -2
- package/dist/{chunk-YI5D4QZP.js → chunk-WIGDDZHO.js} +190 -76
- package/dist/{chunk-NGXLJ5ZF.cjs → chunk-WSDDUVF6.cjs} +22 -22
- package/dist/{chunk-AIHKBSQ5.cjs → chunk-YUCK5VJO.cjs} +8 -8
- package/dist/{chunk-SIOSYITD.cjs → chunk-ZBFBF7S4.cjs} +60 -45
- package/dist/{chunk-SX5U5UJQ.js → chunk-ZBY7Q7WJ.js} +2 -2
- package/dist/{chunk-53E2E7GS.cjs → chunk-ZNKHL5O6.cjs} +15 -15
- 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/agenda-calendar/agenda-calendar-today-button.d.cts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.ts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.cts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.ts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.cts +4 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.ts +4 -1
- package/dist/components/agenda-calendar/index.cjs +2 -2
- package/dist/components/agenda-calendar/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/autocomplete-description.d.cts +14 -0
- package/dist/components/autocomplete/autocomplete-description.d.ts +14 -0
- package/dist/components/autocomplete/autocomplete-error.d.cts +12 -0
- package/dist/components/autocomplete/autocomplete-error.d.ts +12 -0
- package/dist/components/autocomplete/autocomplete-label.d.cts +15 -0
- package/dist/components/autocomplete/autocomplete-label.d.ts +15 -0
- package/dist/components/autocomplete/autocomplete.d.cts +50 -7
- package/dist/components/autocomplete/autocomplete.d.ts +50 -7
- package/dist/components/autocomplete/autocomplete.type.d.cts +21 -4
- package/dist/components/autocomplete/autocomplete.type.d.ts +21 -4
- package/dist/components/autocomplete/index.cjs +10 -3
- package/dist/components/autocomplete/index.d.cts +50 -3
- package/dist/components/autocomplete/index.d.ts +50 -3
- package/dist/components/autocomplete/index.js +9 -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/combobox.type.d.cts +5 -1
- package/dist/components/combobox/combobox.type.d.ts +5 -1
- package/dist/components/combobox/index.cjs +5 -4
- package/dist/components/combobox/index.d.cts +15 -1
- package/dist/components/combobox/index.d.ts +15 -1
- package/dist/components/combobox/index.js +4 -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 +10 -3
- package/dist/components/select/index.d.cts +45 -4
- package/dist/components/select/index.d.ts +45 -4
- package/dist/components/select/index.js +9 -2
- package/dist/components/select/select-description.d.cts +14 -0
- package/dist/components/select/select-description.d.ts +14 -0
- package/dist/components/select/select-error.d.cts +13 -0
- package/dist/components/select/select-error.d.ts +13 -0
- package/dist/components/select/select-group-label.d.cts +11 -0
- package/dist/components/select/select-group-label.d.ts +11 -0
- package/dist/components/select/select-indicator.d.cts +1 -1
- package/dist/components/select/select-indicator.d.ts +1 -1
- package/dist/components/select/select-label.d.cts +11 -2
- package/dist/components/select/select-label.d.ts +11 -2
- package/dist/components/select/select.d.cts +49 -9
- package/dist/components/select/select.d.ts +49 -9
- package/dist/components/select/select.recipe.d.cts +1 -1
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.type.d.cts +33 -9
- package/dist/components/select/select.type.d.ts +33 -9
- 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 +66 -42
- package/dist/index.js +74 -50
- 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) => ({
|
|
@@ -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
|
|
@@ -1,8 +1,5 @@
|
|
|
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 _chunkWLWZG2PAcjs = require('./chunk-WLWZG2PA.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
|
|
7
4
|
var _chunk6ZWQDTGQcjs = require('./chunk-6ZWQDTGQ.cjs');
|
|
8
5
|
|
|
@@ -13,7 +10,10 @@ var _chunkISHMSP6Pcjs = require('./chunk-ISHMSP6P.cjs');
|
|
|
13
10
|
var _chunkYVYYONTPcjs = require('./chunk-YVYYONTP.cjs');
|
|
14
11
|
|
|
15
12
|
|
|
16
|
-
var
|
|
13
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _chunkL4B6Z45Qcjs = require('./chunk-L4B6Z45Q.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 = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
135
135
|
theme,
|
|
136
136
|
selection,
|
|
137
137
|
states: { disabled: isDisabled }
|
|
138
138
|
});
|
|
139
|
-
const pressed =
|
|
139
|
+
const pressed = _chunkL4B6Z45Qcjs.selectRecipe.resolve({
|
|
140
140
|
theme,
|
|
141
141
|
selection,
|
|
142
142
|
states: { pressed: true }
|
|
143
143
|
});
|
|
144
|
-
const tint = color ?
|
|
144
|
+
const tint = color ? _chunkL4B6Z45Qcjs.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 }
|
|
@@ -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,
|
|
@@ -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
|
import { EMPTY_RANGE, RangeCalendar } from "./chunk-IAWLQN2W.js";
|
|
2
|
-
import { BottomSheet2 as BottomSheet } from "./chunk-
|
|
3
|
-
import { selectRecipe } from "./chunk-
|
|
2
|
+
import { BottomSheet2 as BottomSheet } from "./chunk-LYWXGEED.js";
|
|
3
|
+
import { selectRecipe } from "./chunk-OUNTRW6E.js";
|
|
4
4
|
import { INDICATOR_ROTATION, INDICATOR_SPRING } from "./chunk-64MXEVT3.js";
|
|
5
5
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
6
6
|
import { PressableFeedback } from "./chunk-KQW25RCC.js";
|
|
@@ -201,10 +201,10 @@ DateRangePickerCalendar.displayName = "XAUI.DateRangePicker.Calendar";
|
|
|
201
201
|
import { useEffect } from "react";
|
|
202
202
|
import Animated, { interpolate, useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated";
|
|
203
203
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
204
|
-
const
|
|
205
|
-
code: "function
|
|
206
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
207
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
204
|
+
const _worklet_13369666099501_init_data = {
|
|
205
|
+
code: "function chunk73EVNWZIJs1(){const{interpolate,progress,INDICATOR_ROTATION}=this.__closure;return{transform:[{rotate:interpolate(progress.get(),[0,1],[INDICATOR_ROTATION[0],INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
206
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-73EVNWZI.js",
|
|
207
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk73EVNWZIJs1\",\"interpolate\",\"progress\",\"INDICATOR_ROTATION\",\"__closure\",\"transform\",\"rotate\",\"get\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-73EVNWZI.js\"],\"mappings\":\"AA6PoC,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\":[]}"
|
|
208
208
|
};
|
|
209
209
|
function DateRangePickerIndicator(props) {
|
|
210
210
|
const {
|
|
@@ -218,32 +218,32 @@ function DateRangePickerIndicator(props) {
|
|
|
218
218
|
useEffect(() => {
|
|
219
219
|
progress.set(withSpring(isOpen ? 1 : 0, INDICATOR_SPRING));
|
|
220
220
|
}, [isOpen, progress]);
|
|
221
|
-
const rotation = useAnimatedStyle(function
|
|
222
|
-
|
|
221
|
+
const rotation = useAnimatedStyle(function chunk73EVNWZIJs1Factory({
|
|
222
|
+
_worklet_13369666099501_init_data,
|
|
223
223
|
interpolate,
|
|
224
224
|
progress,
|
|
225
225
|
INDICATOR_ROTATION
|
|
226
226
|
}) {
|
|
227
227
|
const _e = [new global.Error(), -4, -27];
|
|
228
|
-
const
|
|
228
|
+
const chunk73EVNWZIJs1 = function () {
|
|
229
229
|
return {
|
|
230
230
|
transform: [{
|
|
231
231
|
rotate: `${interpolate(progress.get(), [0, 1], [INDICATOR_ROTATION[0], INDICATOR_ROTATION[1]])}deg`
|
|
232
232
|
}]
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
chunk73EVNWZIJs1.__closure = {
|
|
236
236
|
interpolate,
|
|
237
237
|
progress,
|
|
238
238
|
INDICATOR_ROTATION
|
|
239
239
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
return
|
|
240
|
+
chunk73EVNWZIJs1.__workletHash = 13369666099501;
|
|
241
|
+
chunk73EVNWZIJs1.__pluginVersion = "0.7.4";
|
|
242
|
+
chunk73EVNWZIJs1.__initData = _worklet_13369666099501_init_data;
|
|
243
|
+
chunk73EVNWZIJs1.__stackDetails = _e;
|
|
244
|
+
return chunk73EVNWZIJs1;
|
|
245
245
|
}({
|
|
246
|
-
|
|
246
|
+
_worklet_13369666099501_init_data,
|
|
247
247
|
interpolate,
|
|
248
248
|
progress,
|
|
249
249
|
INDICATOR_ROTATION
|
|
@@ -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
|
|
@@ -1,14 +1,14 @@
|
|
|
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
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk2IOL3VDPcjs = require('./chunk-2IOL3VDP.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkISHMSP6Pcjs = require('./chunk-ISHMSP6P.cjs');
|
|
@@ -27,13 +27,13 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
27
27
|
var MaskFieldField = _react.forwardRef.call(void 0,
|
|
28
28
|
function MaskFieldField2({ placeholder, style, ...props }, ref) {
|
|
29
29
|
const { text, onType, placeholder: shape, keyboard, length } = useMaskField();
|
|
30
|
-
const group =
|
|
30
|
+
const group = _chunkNRU5APUEcjs.useOptionalFieldGroup.call(void 0, );
|
|
31
31
|
const padding = _react.useMemo.call(void 0,
|
|
32
|
-
() =>
|
|
32
|
+
() => _chunkNRU5APUEcjs.decoratorPadding.call(void 0, _nullishCoalesce(_optionalChain([group, 'optionalAccess', _ => _.prefixWidth]), () => ( 0)), _nullishCoalesce(_optionalChain([group, 'optionalAccess', _2 => _2.suffixWidth]), () => ( 0))),
|
|
33
33
|
[_optionalChain([group, 'optionalAccess', _3 => _3.prefixWidth]), _optionalChain([group, 'optionalAccess', _4 => _4.suffixWidth])]
|
|
34
34
|
);
|
|
35
35
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36
|
-
|
|
36
|
+
_chunk2IOL3VDPcjs.TextFieldField,
|
|
37
37
|
{
|
|
38
38
|
ref,
|
|
39
39
|
keyboardType: keyboard,
|
|
@@ -327,16 +327,16 @@ var MaskFieldRoot = _react.forwardRef.call(void 0, function MaskField({
|
|
|
327
327
|
}),
|
|
328
328
|
[text, onType, mask]
|
|
329
329
|
);
|
|
330
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaskFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
330
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaskFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextFieldRoot, { ref, ...props, children }) });
|
|
331
331
|
});
|
|
332
332
|
MaskFieldRoot.displayName = "XAUI.MaskField.Root";
|
|
333
333
|
|
|
334
334
|
// src/components/mask-field/index.ts
|
|
335
335
|
var MaskField2 = Object.assign(MaskFieldRoot, {
|
|
336
|
-
Label:
|
|
336
|
+
Label: _chunk2IOL3VDPcjs.TextFieldLabel,
|
|
337
337
|
Field: MaskFieldField,
|
|
338
|
-
Description:
|
|
339
|
-
Error:
|
|
338
|
+
Description: _chunk2IOL3VDPcjs.TextFieldDescription,
|
|
339
|
+
Error: _chunk2IOL3VDPcjs.TextFieldError
|
|
340
340
|
});
|
|
341
341
|
|
|
342
342
|
|
|
@@ -136,7 +136,7 @@ var menuRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
136
136
|
// `flex: 1` is `flexBasis: 0`, and the panel is measured before it has a width: with
|
|
137
137
|
// a basis of zero and no definite width to grow into, the row's content size is
|
|
138
138
|
// nothing and the title collapses. The whole menu measured as a 70-point capsule
|
|
139
|
-
// with no text in it.
|
|
139
|
+
// with no text in it. The reference implementation writes `flex: 1` here and gets away with it because
|
|
140
140
|
// their measuring pass hands the panel a definite width; ours asks the panel how
|
|
141
141
|
// wide it wants to be, which is a question a zero basis cannot answer.
|
|
142
142
|
flexGrow: 1,
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
textFieldRecipe
|
|
3
|
-
} from "./chunk-43S673KF.js";
|
|
4
1
|
import {
|
|
5
2
|
Calendar,
|
|
6
3
|
SIZES
|
|
@@ -11,9 +8,12 @@ import {
|
|
|
11
8
|
import {
|
|
12
9
|
useAnchoredPosition
|
|
13
10
|
} from "./chunk-Z6FRP4EV.js";
|
|
11
|
+
import {
|
|
12
|
+
textFieldRecipe
|
|
13
|
+
} from "./chunk-NTVPLDJC.js";
|
|
14
14
|
import {
|
|
15
15
|
selectRecipe
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OUNTRW6E.js";
|
|
17
17
|
import {
|
|
18
18
|
Portal
|
|
19
19
|
} from "./chunk-2PMXMKS5.js";
|
|
@@ -185,7 +185,7 @@ var checkboxRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
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) => ({
|
|
@@ -106,7 +106,7 @@ var popoverRecipe = createRecipe({
|
|
|
106
106
|
content: {
|
|
107
107
|
position: "absolute",
|
|
108
108
|
backgroundColor: theme.colors.overlay,
|
|
109
|
-
//
|
|
109
|
+
// The reference implementation's twelve by sixteen: a panel is read, not scanned, so it is wider-padded
|
|
110
110
|
// than it is tall-padded.
|
|
111
111
|
paddingVertical: theme.spacing(3),
|
|
112
112
|
paddingHorizontal: theme.spacing(4),
|
|
@@ -196,7 +196,7 @@ var textFieldRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
196
196
|
borderWidth: theme.borderWidth.field,
|
|
197
197
|
// The theme has a radius named for this component, so every size uses it and the
|
|
198
198
|
// `radius` axis is what overrides it — the same shape a `Chip` takes from `full`.
|
|
199
|
-
// It is
|
|
199
|
+
// It is the reference implementation's twelve points since the scale was aligned on theirs; it was 21,
|
|
200
200
|
// which put a 48-tall field at 87% of its geometric maximum.
|
|
201
201
|
borderRadius: theme.radius.field,
|
|
202
202
|
borderCurve: "continuous",
|
|
@@ -279,7 +279,7 @@ var dialogRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
|
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",
|