tamagui 1.67.0 → 1.68.1

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/native.js CHANGED
@@ -4625,10 +4625,12 @@ var require_createComponent_native = __commonJS({
4625
4625
  delay: 800,
4626
4626
  ...typeof devVisualizerConfig == "object" ? devVisualizerConfig : {}
4627
4627
  };
4628
- document.addEventListener("keydown", ({ key, defaultPrevented }) => {
4629
- defaultPrevented || key === options.key && (clearTimeout(tm), tm = setTimeout(() => {
4628
+ document.addEventListener("blur", () => {
4629
+ clearTimeout(tm);
4630
+ }), document.addEventListener("keydown", ({ key, defaultPrevented }) => {
4631
+ defaultPrevented || (clearTimeout(tm), key === options.key && (tm = setTimeout(() => {
4630
4632
  isShowing = !0, debugKeyListeners == null || debugKeyListeners.forEach((l) => l(!0));
4631
- }, options.delay));
4633
+ }, options.delay)));
4632
4634
  }), document.addEventListener("keyup", ({ key, defaultPrevented }) => {
4633
4635
  defaultPrevented || key === options.key && (clearTimeout(tm), isShowing && (debugKeyListeners == null || debugKeyListeners.forEach((l) => l(!1))));
4634
4636
  });
@@ -4816,7 +4818,14 @@ var require_createComponent_native = __commonJS({
4816
4818
  keys: mediaListeningKeys
4817
4819
  });
4818
4820
  let isAnimatedReactNativeWeb = hasAnimationProp && isReactNative;
4819
- if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed(">>>"), console.log("props in", propsIn, "mapped to", props, "in order", Object.keys(props)), console.log("splitStyles", splitStyles), console.log("media", { shouldListenForMedia, isMediaArray, mediaListeningKeys }), console.log("className", Object.values(splitStyles.classNames)), import_constants.isClient && console.log("ref", hostRef, "(click to view)"), console.groupEnd(), debugProp === "break"))
4821
+ if (process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed(">>>"), console.log(
4822
+ "props in",
4823
+ propsIn,
4824
+ "mapped to",
4825
+ props,
4826
+ "in order",
4827
+ Object.keys(props)
4828
+ ), console.log("splitStyles", splitStyles), console.log("media", { shouldListenForMedia, isMediaArray, mediaListeningKeys }), console.log("className", Object.values(splitStyles.classNames)), import_constants.isClient && console.log("ref", hostRef, "(click to view)"), console.groupEnd(), debugProp === "break"))
4820
4829
  debugger;
4821
4830
  let {
4822
4831
  viewProps: viewPropsIn,
@@ -12333,6 +12342,24 @@ var require_Checkbox_native = __commonJS({
12333
12342
  }
12334
12343
  }
12335
12344
  },
12345
+ disabled: {
12346
+ true: {
12347
+ pointerEvents: "none",
12348
+ userSelect: "none",
12349
+ cursor: "not-allowed",
12350
+ hoverStyle: {
12351
+ borderColor: "$borderColor",
12352
+ backgroundColor: "$background"
12353
+ },
12354
+ pressStyle: {
12355
+ borderColor: "$borderColor",
12356
+ backgroundColor: "$backgroundColor"
12357
+ },
12358
+ focusStyle: {
12359
+ outlineWidth: 0
12360
+ }
12361
+ }
12362
+ },
12336
12363
  size: {
12337
12364
  "...size": (val, { tokens }) => ({
12338
12365
  borderRadius: (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 8
@@ -14457,6 +14484,24 @@ var require_RadioGroup_native = __commonJS({
14457
14484
  }
14458
14485
  }
14459
14486
  },
14487
+ disabled: {
14488
+ true: {
14489
+ pointerEvents: "none",
14490
+ userSelect: "none",
14491
+ cursor: "not-allowed",
14492
+ hoverStyle: {
14493
+ borderColor: "$borderColor",
14494
+ backgroundColor: "$background"
14495
+ },
14496
+ pressStyle: {
14497
+ borderColor: "$borderColor",
14498
+ backgroundColor: "$backgroundColor"
14499
+ },
14500
+ focusStyle: {
14501
+ outlineWidth: 0
14502
+ }
14503
+ }
14504
+ },
14460
14505
  size: {
14461
14506
  "...size": (value, { props }) => {
14462
14507
  let size = Math.floor(
@@ -16175,6 +16220,119 @@ var require_index_native60 = __commonJS({
16175
16220
  }
16176
16221
  });
16177
16222
 
16223
+ // ../switch/dist/cjs/SwitchContext.native.js
16224
+ var require_SwitchContext_native = __commonJS({
16225
+ "../switch/dist/cjs/SwitchContext.native.js"(exports, module2) {
16226
+ "use strict";
16227
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
16228
+ for (var name in all)
16229
+ __defProp2(target, name, { get: all[name], enumerable: !0 });
16230
+ }, __copyProps2 = (to, from, except, desc) => {
16231
+ if (from && typeof from == "object" || typeof from == "function")
16232
+ for (let key of __getOwnPropNames2(from))
16233
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
16234
+ return to;
16235
+ }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), SwitchContext_exports = {};
16236
+ __export2(SwitchContext_exports, {
16237
+ SwitchContext: () => SwitchContext
16238
+ });
16239
+ module2.exports = __toCommonJS2(SwitchContext_exports);
16240
+ var import_core12 = require_index_native10(), SwitchContext = (0, import_core12.createStyledContext)({
16241
+ checked: !1,
16242
+ disabled: !1,
16243
+ size: void 0,
16244
+ frameWidth: 0,
16245
+ unstyled: !1
16246
+ });
16247
+ }
16248
+ });
16249
+
16250
+ // ../switch/dist/cjs/Switch.native.js
16251
+ var require_Switch_native = __commonJS({
16252
+ "../switch/dist/cjs/Switch.native.js"(exports, module2) {
16253
+ "use strict";
16254
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
16255
+ for (var name in all)
16256
+ __defProp2(target, name, { get: all[name], enumerable: !0 });
16257
+ }, __copyProps2 = (to, from, except, desc) => {
16258
+ if (from && typeof from == "object" || typeof from == "function")
16259
+ for (let key of __getOwnPropNames2(from))
16260
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
16261
+ return to;
16262
+ }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), Switch_exports = {};
16263
+ __export2(Switch_exports, {
16264
+ SwitchFrame: () => SwitchFrame,
16265
+ SwitchThumb: () => SwitchThumb
16266
+ });
16267
+ module2.exports = __toCommonJS2(Switch_exports);
16268
+ var import_core12 = require_index_native10(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(), import_SwitchContext = require_SwitchContext_native(), SwitchThumb = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
16269
+ name: "SwitchThumb",
16270
+ context: import_SwitchContext.SwitchContext,
16271
+ variants: {
16272
+ unstyled: {
16273
+ false: {
16274
+ size: "$true",
16275
+ backgroundColor: "$background",
16276
+ borderRadius: 1e3
16277
+ }
16278
+ },
16279
+ size: {
16280
+ "...size": (val) => {
16281
+ let size = getSwitchHeight(val);
16282
+ return {
16283
+ height: size,
16284
+ width: size
16285
+ };
16286
+ }
16287
+ }
16288
+ },
16289
+ defaultVariants: {
16290
+ unstyled: !1
16291
+ }
16292
+ }), getSwitchHeight = (val) => Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.65), getSwitchWidth = (val) => getSwitchHeight(val) * 2, SwitchFrame = (0, import_core12.styled)(import_stacks3.YStack, {
16293
+ name: "Switch",
16294
+ tag: "button",
16295
+ context: import_SwitchContext.SwitchContext,
16296
+ variants: {
16297
+ unstyled: {
16298
+ false: {
16299
+ size: "$true",
16300
+ borderRadius: 1e3,
16301
+ borderWidth: 2,
16302
+ borderColor: "transparent",
16303
+ backgroundColor: "$background",
16304
+ focusStyle: {
16305
+ borderColor: "$borderColorFocus",
16306
+ outlineColor: "$borderColorFocus",
16307
+ outlineStyle: "solid",
16308
+ outlineWidth: 1
16309
+ }
16310
+ }
16311
+ },
16312
+ checked: {
16313
+ true: {}
16314
+ },
16315
+ frameWidth: {
16316
+ ":number": () => null
16317
+ },
16318
+ size: {
16319
+ "...size": (val) => {
16320
+ let height = getSwitchHeight(val) + 4, width = getSwitchWidth(val) + 4;
16321
+ return {
16322
+ height,
16323
+ minHeight: height,
16324
+ width
16325
+ };
16326
+ }
16327
+ }
16328
+ },
16329
+ defaultVariants: {
16330
+ unstyled: !1
16331
+ }
16332
+ });
16333
+ }
16334
+ });
16335
+
16178
16336
  // ../switch/dist/cjs/createSwitch.native.js
16179
16337
  var require_createSwitch_native = __commonJS({
16180
16338
  "../switch/dist/cjs/createSwitch.native.js"(exports, module2) {
@@ -16196,31 +16354,43 @@ var require_createSwitch_native = __commonJS({
16196
16354
  mod
16197
16355
  )), __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), createSwitch_exports = {};
16198
16356
  __export2(createSwitch_exports, {
16199
- SwitchContext: () => SwitchContext,
16200
16357
  createSwitch: () => createSwitch
16201
16358
  });
16202
16359
  module2.exports = __toCommonJS2(createSwitch_exports);
16203
- var import_compose_refs = require_index_native6(), import_core12 = require_index_native10(), import_focusable2 = require_index_native44(), import_get_token2 = require_index_native18(), import_label = require_index_native45(), import_use_controllable_state = require_index_native15(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_jsx_runtime6 = (
16360
+ var import_compose_refs = require_index_native6(), import_core12 = require_index_native10(), import_focusable2 = require_index_native44(), import_get_token2 = require_index_native18(), import_label = require_index_native45(), import_use_controllable_state = require_index_native15(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_Switch = require_Switch_native(), import_SwitchContext = require_SwitchContext_native(), import_jsx_runtime6 = (
16204
16361
  // @ts-ignore
16205
16362
  require("react/jsx-runtime")
16206
- ), SwitchContext = (0, import_core12.createStyledContext)({
16207
- checked: !1,
16208
- disabled: !1,
16209
- size: void 0,
16210
- frameWidth: 0,
16211
- unstyled: !1
16212
- });
16213
- function createSwitch({ Frame, Thumb, acceptsUnstyled }) {
16214
- let SwitchThumb = Thumb.styleable(function(props, forwardedRef) {
16215
- let { size: sizeProp, ...thumbProps } = props, { disabled, checked, unstyled, frameWidth } = React2.useContext(SwitchContext), [thumbWidth, setThumbWidth] = React2.useState(0), initialChecked = React2.useRef(checked).current, distance = frameWidth - thumbWidth;
16363
+ );
16364
+ function createSwitch({
16365
+ Frame = import_Switch.SwitchFrame,
16366
+ Thumb = import_Switch.SwitchThumb,
16367
+ acceptsUnstyled
16368
+ }) {
16369
+ process.env.NODE_ENV === "development" && (Frame !== import_Switch.SwitchFrame && Frame.staticConfig.context && console.warn(
16370
+ "Warning: createSwitch() needs to control context to pass checked state from Frame to Thumb, any custom context passed will be overridden."
16371
+ ), Thumb !== import_Switch.SwitchThumb && Thumb.staticConfig.context && console.warn(
16372
+ "Warning: createSwitch() needs to control context to pass checked state from Frame to Thumb, any custom context passed will be overridden."
16373
+ )), Frame.staticConfig.context = import_SwitchContext.SwitchContext, Thumb.staticConfig.context = import_SwitchContext.SwitchContext;
16374
+ let SwitchThumbComponent = Thumb.styleable(function(props, forwardedRef) {
16375
+ let { size: sizeProp, unstyled: unstyledProp, ...thumbProps } = props, context = React2.useContext(import_SwitchContext.SwitchContext), {
16376
+ disabled,
16377
+ checked,
16378
+ unstyled: unstyledContext,
16379
+ frameWidth,
16380
+ size: sizeContext
16381
+ } = context, [thumbWidth, setThumbWidth] = React2.useState(0), initialChecked = React2.useRef(checked).current, distance = frameWidth - thumbWidth, x = initialChecked ? checked ? 0 : -distance : checked ? distance : 0;
16216
16382
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
16217
16383
  Thumb,
16218
16384
  {
16219
- theme: unstyled === !1 && checked ? "active" : null,
16385
+ ...(unstyledProp ?? unstyledContext ?? !1) === !1 && {
16386
+ unstyled: !1,
16387
+ size: sizeProp ?? sizeContext ?? "$true",
16388
+ theme: checked ? "active" : null
16389
+ },
16220
16390
  "data-state": getState(checked),
16221
16391
  "data-disabled": disabled ? "" : void 0,
16222
16392
  alignSelf: initialChecked ? "flex-end" : "flex-start",
16223
- x: initialChecked ? checked ? 0 : -distance : checked ? distance : 0,
16393
+ x,
16224
16394
  ...thumbProps,
16225
16395
  onLayout: (0, import_core12.composeEventHandlers)(
16226
16396
  props.onLayout,
@@ -16233,8 +16403,8 @@ var require_createSwitch_native = __commonJS({
16233
16403
  }
16234
16404
  );
16235
16405
  }), SwitchComponent = Frame.extractable(
16236
- React2.forwardRef(function(propsIn, forwardedRef) {
16237
- let styledContext = React2.useContext(SwitchContext), props = (0, import_core12.useProps)(propsIn), {
16406
+ React2.forwardRef(function SwitchFrame2(propsIn, forwardedRef) {
16407
+ let styledContext = React2.useContext(import_SwitchContext.SwitchContext), props = (0, import_core12.useProps)(propsIn), {
16238
16408
  labeledBy: ariaLabelledby,
16239
16409
  name,
16240
16410
  checked: checkedProp,
@@ -16247,12 +16417,13 @@ var require_createSwitch_native = __commonJS({
16247
16417
  unstyled = styledContext.unstyled ?? !1,
16248
16418
  native: nativeProp,
16249
16419
  nativeProps,
16420
+ children,
16250
16421
  ...switchProps
16251
16422
  } = props, leftBorderWidth = (() => {
16252
16423
  let _;
16253
16424
  for (let key in switchProps)
16254
16425
  (key === "borderWidth" || key === "borderLeftWidth") && (_ = switchProps[key]);
16255
- return acceptsUnstyled && _ === void 0 && unstyled === !1 && (_ = 2), typeof _ == "string" && (_ = (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(_))), +_;
16426
+ return Frame === SwitchFrame2 && acceptsUnstyled && _ == null && unstyled === !1 && (_ = 2), typeof _ == "string" && (_ = (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(_))), typeof _ == "number" ? _ : 0;
16256
16427
  })(), native = Array.isArray(nativeProp) ? nativeProp : [nativeProp], shouldRenderMobileNative = !import_core12.isWeb && nativeProp === !0 || !import_core12.isWeb && native.includes("mobile") || native.includes("android") && import_react_native4.Platform.OS === "android" || native.includes("ios") && import_react_native4.Platform.OS === "ios", [button, setButton] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (node) => setButton(node)), labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId, hasConsumerStoppedPropagationRef = React2.useRef(!1), isFormControl = import_core12.isWeb ? button ? !!button.closest("form") : !0 : !1, [frameWidth, setFrameWidth] = React2.useState(0), [checked = !1, setChecked] = (0, import_use_controllable_state.useControllableState)({
16257
16428
  prop: checkedProp,
16258
16429
  defaultProp: defaultChecked || !1,
@@ -16298,12 +16469,13 @@ var require_createSwitch_native = __commonJS({
16298
16469
  setChecked((prevChecked) => !prevChecked), import_core12.isWeb && isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
16299
16470
  }),
16300
16471
  onLayout: (0, import_core12.composeEventHandlers)(
16472
+ // @ts-ignore
16301
16473
  props.onLayout,
16302
- (e) => (
16303
- // @ts-ignore
16304
- setFrameWidth(e.nativeEvent.layout.width)
16305
- )
16306
- )
16474
+ (e) => {
16475
+ setFrameWidth(e.nativeEvent.layout.width);
16476
+ }
16477
+ ),
16478
+ children: typeof children == "function" ? children(checked) : children
16307
16479
  }
16308
16480
  ),
16309
16481
  import_core12.isWeb && isFormControl && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
@@ -16357,15 +16529,15 @@ var require_createSwitch_native = __commonJS({
16357
16529
  return checked ? "checked" : "unchecked";
16358
16530
  }
16359
16531
  return (0, import_core12.withStaticProperties)(SwitchComponent, {
16360
- Thumb: SwitchThumb
16532
+ Thumb: SwitchThumbComponent
16361
16533
  });
16362
16534
  }
16363
16535
  }
16364
16536
  });
16365
16537
 
16366
- // ../switch/dist/cjs/Switch.native.js
16367
- var require_Switch_native = __commonJS({
16368
- "../switch/dist/cjs/Switch.native.js"(exports, module2) {
16538
+ // ../switch/dist/cjs/index.native.js
16539
+ var require_index_native61 = __commonJS({
16540
+ "../switch/dist/cjs/index.native.js"(exports, module2) {
16369
16541
  "use strict";
16370
16542
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
16371
16543
  for (var name in all)
@@ -16375,98 +16547,19 @@ var require_Switch_native = __commonJS({
16375
16547
  for (let key of __getOwnPropNames2(from))
16376
16548
  !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
16377
16549
  return to;
16378
- }, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), Switch_exports = {};
16379
- __export2(Switch_exports, {
16380
- Switch: () => Switch,
16381
- SwitchFrame: () => SwitchFrame,
16382
- SwitchThumb: () => SwitchThumb
16383
- });
16384
- module2.exports = __toCommonJS2(Switch_exports);
16385
- var import_core12 = require_index_native10(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(), import_createSwitch = require_createSwitch_native(), SwitchThumb = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
16386
- name: "SwitchThumb",
16387
- context: import_createSwitch.SwitchContext,
16388
- variants: {
16389
- unstyled: {
16390
- false: {
16391
- size: "$true",
16392
- backgroundColor: "$background",
16393
- borderRadius: 1e3
16394
- }
16395
- },
16396
- size: {
16397
- "...size": (val) => {
16398
- let size = getSwitchHeight(val);
16399
- return {
16400
- height: size,
16401
- width: size
16402
- };
16403
- }
16404
- }
16405
- },
16406
- defaultVariants: {
16407
- unstyled: !1
16408
- }
16409
- }), getSwitchHeight = (val) => Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.65), getSwitchWidth = (val) => getSwitchHeight(val) * 2, SwitchFrame = (0, import_core12.styled)(import_stacks3.YStack, {
16410
- name: "Switch",
16411
- tag: "button",
16412
- context: import_createSwitch.SwitchContext,
16413
- variants: {
16414
- unstyled: {
16415
- false: {
16416
- size: "$true",
16417
- borderRadius: 1e3,
16418
- borderWidth: 2,
16419
- borderColor: "transparent",
16420
- backgroundColor: "$background",
16421
- focusStyle: {
16422
- borderColor: "$borderColorFocus",
16423
- outlineColor: "$borderColorFocus",
16424
- outlineStyle: "solid",
16425
- outlineWidth: 1
16426
- }
16427
- }
16428
- },
16429
- checked: {
16430
- true: {}
16431
- },
16432
- frameWidth: {
16433
- ":number": () => null
16434
- },
16435
- size: {
16436
- "...size": (val) => {
16437
- let height = getSwitchHeight(val) + 4, width = getSwitchWidth(val) + 4;
16438
- return {
16439
- height,
16440
- minHeight: height,
16441
- width
16442
- };
16443
- }
16444
- }
16445
- },
16446
- defaultVariants: {
16447
- unstyled: !1
16448
- }
16449
- }), Switch = (0, import_createSwitch.createSwitch)({
16450
- Frame: SwitchFrame,
16451
- Thumb: SwitchThumb,
16452
- acceptsUnstyled: !0
16453
- });
16454
- }
16455
- });
16456
-
16457
- // ../switch/dist/cjs/index.native.js
16458
- var require_index_native61 = __commonJS({
16459
- "../switch/dist/cjs/index.native.js"(exports, module2) {
16460
- "use strict";
16461
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
16462
- if (from && typeof from == "object" || typeof from == "function")
16463
- for (let key of __getOwnPropNames2(from))
16464
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
16465
- return to;
16466
16550
  }, __reExport2 = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")), __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), src_exports2 = {};
16551
+ __export2(src_exports2, {
16552
+ Switch: () => Switch
16553
+ });
16467
16554
  module2.exports = __toCommonJS2(src_exports2);
16555
+ var import_createSwitch = require_createSwitch_native(), import_Switch = require_Switch_native();
16468
16556
  __reExport2(src_exports2, require_Switch_native(), module2.exports);
16469
16557
  __reExport2(src_exports2, require_createSwitch_native(), module2.exports);
16558
+ var Switch = (0, import_createSwitch.createSwitch)({
16559
+ Frame: import_Switch.SwitchFrame,
16560
+ Thumb: import_Switch.SwitchThumb,
16561
+ acceptsUnstyled: !0
16562
+ });
16470
16563
  }
16471
16564
  });
16472
16565