@tamagui/core 1.79.18 → 1.79.19

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.
@@ -1231,7 +1231,7 @@ var require_config_native = __commonJS({
1231
1231
  });
1232
1232
  module2.exports = __toCommonJS2(config_exports);
1233
1233
  var import_constants3 = require_index_native3(), conf, setConfig = (next) => {
1234
- conf = next, configListeners.forEach((cb) => cb(next));
1234
+ conf = next;
1235
1235
  }, setConfigFont = (name, font, fontParsed) => {
1236
1236
  conf.fonts[name] = font, conf.fontsParsed[`$${name}`] = fontParsed;
1237
1237
  }, getConfig2 = () => {
@@ -4589,9 +4589,14 @@ var require_createComponent_native = __commonJS({
4589
4589
  var BaseText, BaseView, hasSetupBaseViews = !1;
4590
4590
  function createComponent(staticConfig) {
4591
4591
  var _a;
4592
- let config = null;
4592
+ let config = null, defaultProps = staticConfig.defaultProps;
4593
4593
  (0, import_config.onConfiguredOnce)((conf) => {
4594
- if (config = conf, !tamaguiConfig && (tamaguiConfig = conf, !initialTheme)) {
4594
+ var _a2;
4595
+ if (config = conf, staticConfig.componentName) {
4596
+ let defaultForComponent = (_a2 = conf.defaultProps) == null ? void 0 : _a2[staticConfig.componentName];
4597
+ defaultForComponent && (defaultProps = { ...defaultForComponent, ...defaultProps });
4598
+ }
4599
+ if (!tamaguiConfig && (tamaguiConfig = conf, !initialTheme)) {
4595
4600
  let next = conf.themes[Object.keys(conf.themes)[0]];
4596
4601
  initialTheme = (0, import_proxyThemeVariables.proxyThemeVariables)(next);
4597
4602
  }
@@ -4603,7 +4608,7 @@ var require_createComponent_native = __commonJS({
4603
4608
  isHOC,
4604
4609
  validStyles: validStyles2 = {},
4605
4610
  variants = {}
4606
- } = staticConfig, defaultComponentClassName = `is_${staticConfig.componentName}`, defaultProps = staticConfig.defaultProps, component = (0, import_react3.forwardRef)((propsIn, forwardedRef) => {
4611
+ } = staticConfig, defaultComponentClassName = `is_${staticConfig.componentName}`, component = (0, import_react3.forwardRef)((propsIn, forwardedRef) => {
4607
4612
  var _a2, _b, _c, _d, _e, _f, _i, _j, _k, _l, _m, _n;
4608
4613
  let internalID = "";
4609
4614
  if (!hasSetupBaseViews) {
@@ -5586,7 +5591,7 @@ ${runtimeStyles}`;
5586
5591
  // const tokens = [...getToken(tokens.size[0])]
5587
5592
  // .spacer-sm + ._dsp_contents._dsp-sm-hidden { margin-left: -var(--${}) }
5588
5593
  };
5589
- return (0, import_useMedia.configureMedia)(config), (0, import_config.setConfig)(config), import_config.configListeners.size && (import_config.configListeners.forEach((cb) => cb(config)), import_config.configListeners.clear()), createdConfigs.set(config, !0), config;
5594
+ return (0, import_useMedia.configureMedia)(config), (0, import_config.setConfig)(config), createdConfigs.set(config, !0), import_config.configListeners.size && (import_config.configListeners.forEach((cb) => cb(config)), import_config.configListeners.clear()), config;
5590
5595
  }
5591
5596
  function getThemesDeduped(themes) {
5592
5597
  let dedupedThemes = [], existing = /* @__PURE__ */ new Map();