@tamagui/themes 1.110.5 → 1.111.0

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.
Files changed (85) hide show
  1. package/dist/cjs/componentThemeDefinitions.native.js +77 -78
  2. package/dist/cjs/componentThemeDefinitions.native.js.map +1 -1
  3. package/dist/cjs/generated-new.native.js +1 -42
  4. package/dist/cjs/generated-new.native.js.map +1 -1
  5. package/dist/cjs/generated-v2.native.js +1 -42
  6. package/dist/cjs/generated-v2.native.js.map +1 -1
  7. package/dist/cjs/generated-v3.native.js +1 -42
  8. package/dist/cjs/generated-v3.native.js.map +1 -1
  9. package/dist/cjs/masks.native.js +16 -46
  10. package/dist/cjs/masks.native.js.map +1 -1
  11. package/dist/cjs/palettes.native.js +18 -58
  12. package/dist/cjs/palettes.native.js.map +2 -2
  13. package/dist/cjs/templates.native.js +26 -50
  14. package/dist/cjs/templates.native.js.map +1 -1
  15. package/dist/cjs/themes-new.native.js +17 -29
  16. package/dist/cjs/themes-new.native.js.map +1 -1
  17. package/dist/cjs/themes-old.native.js +76 -136
  18. package/dist/cjs/themes-old.native.js.map +2 -2
  19. package/dist/cjs/tokens.native.js +32 -69
  20. package/dist/cjs/tokens.native.js.map +1 -1
  21. package/dist/cjs/v2-themes.native.js +166 -187
  22. package/dist/cjs/v2-themes.native.js.map +2 -2
  23. package/dist/cjs/v3-themes.native.js +75 -125
  24. package/dist/cjs/v3-themes.native.js.map +1 -1
  25. package/dist/esm/componentThemeDefinitions.native.js +76 -76
  26. package/dist/esm/componentThemeDefinitions.native.js.map +1 -1
  27. package/dist/esm/componentThemeDefinitions.native.mjs +100 -0
  28. package/dist/esm/componentThemeDefinitions.native.mjs.map +1 -0
  29. package/dist/esm/generated-new.native.js +1 -42
  30. package/dist/esm/generated-new.native.js.map +1 -1
  31. package/dist/esm/generated-new.native.mjs +2011 -0
  32. package/dist/esm/generated-new.native.mjs.map +1 -0
  33. package/dist/esm/generated-v2.native.js +1 -42
  34. package/dist/esm/generated-v2.native.js.map +1 -1
  35. package/dist/esm/generated-v2.native.mjs +1935 -0
  36. package/dist/esm/generated-v2.native.mjs.map +1 -0
  37. package/dist/esm/generated-v3.native.js +1 -42
  38. package/dist/esm/generated-v3.native.js.map +1 -1
  39. package/dist/esm/generated-v3.native.mjs +1089 -0
  40. package/dist/esm/generated-v3.native.mjs.map +1 -0
  41. package/dist/esm/helpers.native.mjs +11 -0
  42. package/dist/esm/helpers.native.mjs.map +1 -0
  43. package/dist/esm/index.native.mjs +9 -0
  44. package/dist/esm/index.native.mjs.map +1 -0
  45. package/dist/esm/masks.native.js +15 -44
  46. package/dist/esm/masks.native.js.map +1 -1
  47. package/dist/esm/masks.native.mjs +92 -0
  48. package/dist/esm/masks.native.mjs.map +1 -0
  49. package/dist/esm/palettes.native.js +17 -56
  50. package/dist/esm/palettes.native.js.map +2 -2
  51. package/dist/esm/palettes.native.mjs +37 -0
  52. package/dist/esm/palettes.native.mjs.map +1 -0
  53. package/dist/esm/shadows.native.mjs +20 -0
  54. package/dist/esm/shadows.native.mjs.map +1 -0
  55. package/dist/esm/templates.native.js +25 -48
  56. package/dist/esm/templates.native.js.map +1 -1
  57. package/dist/esm/templates.native.mjs +94 -0
  58. package/dist/esm/templates.native.mjs.map +1 -0
  59. package/dist/esm/themes-new.native.js +16 -27
  60. package/dist/esm/themes-new.native.js.map +1 -1
  61. package/dist/esm/themes-new.native.mjs +62 -0
  62. package/dist/esm/themes-new.native.mjs.map +1 -0
  63. package/dist/esm/themes-old.native.js +75 -134
  64. package/dist/esm/themes-old.native.js.map +2 -2
  65. package/dist/esm/themes-old.native.mjs +277 -0
  66. package/dist/esm/themes-old.native.mjs.map +1 -0
  67. package/dist/esm/themes.native.mjs +3 -0
  68. package/dist/esm/themes.native.mjs.map +1 -0
  69. package/dist/esm/tokens.native.js +31 -67
  70. package/dist/esm/tokens.native.js.map +1 -1
  71. package/dist/esm/tokens.native.mjs +133 -0
  72. package/dist/esm/tokens.native.mjs.map +1 -0
  73. package/dist/esm/v2-themes.native.js +165 -185
  74. package/dist/esm/v2-themes.native.js.map +2 -2
  75. package/dist/esm/v2-themes.native.mjs +454 -0
  76. package/dist/esm/v2-themes.native.mjs.map +1 -0
  77. package/dist/esm/v2.native.mjs +13 -0
  78. package/dist/esm/v2.native.mjs.map +1 -0
  79. package/dist/esm/v3-themes.native.js +74 -123
  80. package/dist/esm/v3-themes.native.js.map +1 -1
  81. package/dist/esm/v3-themes.native.mjs +539 -0
  82. package/dist/esm/v3-themes.native.mjs.map +1 -0
  83. package/dist/esm/v3.native.mjs +13 -0
  84. package/dist/esm/v3.native.mjs.map +1 -0
  85. package/package.json +7 -7
@@ -19,27 +19,7 @@ __export(componentThemeDefinitions_exports, {
19
19
  overlayThemeDefinitions: () => overlayThemeDefinitions
20
20
  });
21
21
  module.exports = __toCommonJS(componentThemeDefinitions_exports);
22
- var import_templates = require("./templates");
23
- function _define_property(obj, key, value) {
24
- return key in obj ? Object.defineProperty(obj, key, {
25
- value,
26
- enumerable: !0,
27
- configurable: !0,
28
- writable: !0
29
- }) : obj[key] = value, obj;
30
- }
31
- function _object_spread(target) {
32
- for (var i = 1; i < arguments.length; i++) {
33
- var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
34
- typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
36
- }))), ownKeys.forEach(function(key) {
37
- _define_property(target, key, source[key]);
38
- });
39
- }
40
- return target;
41
- }
42
- var overlayThemes = {
22
+ var import_templates = require("./templates"), overlayThemes = {
43
23
  light: {
44
24
  background: "rgba(0,0,0,0.5)"
45
25
  },
@@ -57,69 +37,88 @@ var overlayThemes = {
57
37
  }
58
38
  ], componentThemeDefinitions = {
59
39
  ListItem: [
60
- _object_spread({
40
+ {
61
41
  parent: "light",
62
- mask: "strengthen"
63
- }, import_templates.maskOptions.component),
64
- _object_spread({
42
+ mask: "strengthen",
43
+ ...import_templates.maskOptions.component
44
+ },
45
+ {
65
46
  parent: "dark",
66
- mask: "identity"
67
- }, import_templates.maskOptions.component)
47
+ mask: "identity",
48
+ ...import_templates.maskOptions.component
49
+ }
68
50
  ],
69
- Card: _object_spread({
70
- mask: "soften"
71
- }, import_templates.maskOptions.component),
72
- Button: _object_spread({
73
- mask: "soften2"
74
- }, import_templates.maskOptions.button),
75
- Checkbox: _object_spread({
76
- mask: "softenBorder2"
77
- }, import_templates.maskOptions.component),
78
- Switch: _object_spread({
79
- mask: "soften2"
80
- }, import_templates.maskOptions.component),
81
- SwitchThumb: _object_spread({
82
- mask: "inverseStrengthen2"
83
- }, import_templates.maskOptions.component),
84
- TooltipContent: _object_spread({
85
- mask: "soften2"
86
- }, import_templates.maskOptions.component),
87
- DrawerFrame: _object_spread({
88
- mask: "soften"
89
- }, import_templates.maskOptions.component),
90
- Progress: _object_spread({
91
- mask: "soften"
92
- }, import_templates.maskOptions.component),
93
- RadioGroupItem: _object_spread({
94
- mask: "softenBorder2"
95
- }, import_templates.maskOptions.component),
96
- TooltipArrow: _object_spread({
97
- mask: "soften"
98
- }, import_templates.maskOptions.component),
99
- SliderTrackActive: _object_spread({
100
- mask: "inverseSoften"
101
- }, import_templates.maskOptions.component),
102
- SliderTrack: _object_spread({
103
- mask: "soften2"
104
- }, import_templates.maskOptions.component),
105
- SliderThumb: _object_spread({
106
- mask: "inverse"
107
- }, import_templates.maskOptions.component),
108
- Tooltip: _object_spread({
109
- mask: "inverse"
110
- }, import_templates.maskOptions.component),
111
- ProgressIndicator: _object_spread({
112
- mask: "inverse"
113
- }, import_templates.maskOptions.component),
51
+ Card: {
52
+ mask: "soften",
53
+ ...import_templates.maskOptions.component
54
+ },
55
+ Button: {
56
+ mask: "soften2",
57
+ ...import_templates.maskOptions.button
58
+ },
59
+ Checkbox: {
60
+ mask: "softenBorder2",
61
+ ...import_templates.maskOptions.component
62
+ },
63
+ Switch: {
64
+ mask: "soften2",
65
+ ...import_templates.maskOptions.component
66
+ },
67
+ SwitchThumb: {
68
+ mask: "inverseStrengthen2",
69
+ ...import_templates.maskOptions.component
70
+ },
71
+ TooltipContent: {
72
+ mask: "soften2",
73
+ ...import_templates.maskOptions.component
74
+ },
75
+ DrawerFrame: {
76
+ mask: "soften",
77
+ ...import_templates.maskOptions.component
78
+ },
79
+ Progress: {
80
+ mask: "soften",
81
+ ...import_templates.maskOptions.component
82
+ },
83
+ RadioGroupItem: {
84
+ mask: "softenBorder2",
85
+ ...import_templates.maskOptions.component
86
+ },
87
+ TooltipArrow: {
88
+ mask: "soften",
89
+ ...import_templates.maskOptions.component
90
+ },
91
+ SliderTrackActive: {
92
+ mask: "inverseSoften",
93
+ ...import_templates.maskOptions.component
94
+ },
95
+ SliderTrack: {
96
+ mask: "soften2",
97
+ ...import_templates.maskOptions.component
98
+ },
99
+ SliderThumb: {
100
+ mask: "inverse",
101
+ ...import_templates.maskOptions.component
102
+ },
103
+ Tooltip: {
104
+ mask: "inverse",
105
+ ...import_templates.maskOptions.component
106
+ },
107
+ ProgressIndicator: {
108
+ mask: "inverse",
109
+ ...import_templates.maskOptions.component
110
+ },
114
111
  SheetOverlay: overlayThemeDefinitions,
115
112
  DialogOverlay: overlayThemeDefinitions,
116
113
  ModalOverlay: overlayThemeDefinitions,
117
- Input: _object_spread({
118
- mask: "softenBorder2"
119
- }, import_templates.maskOptions.component),
120
- TextArea: _object_spread({
121
- mask: "softenBorder2"
122
- }, import_templates.maskOptions.component)
114
+ Input: {
115
+ mask: "softenBorder2",
116
+ ...import_templates.maskOptions.component
117
+ },
118
+ TextArea: {
119
+ mask: "softenBorder2",
120
+ ...import_templates.maskOptions.component
121
+ }
123
122
  };
124
123
  // Annotate the CommonJS export names for ESM import in node:
125
124
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/core/themes/src/componentThemeDefinitions.tsx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;EAEAe,SAAS;IACPjB,MAAM;IACN,GAAGC,6BAAYC;EACjB;EAEAgB,mBAAmB;IACjBlB,MAAM;IACN,GAAGC,6BAAYC;EACjB;EAEAiB,cAAcxB;EACdyB,eAAezB;EACf0B,cAAc1B;EAEd2B,OAAO;IACLtB,MAAM;IACN,GAAGC,6BAAYC;EACjB;EAEAqB,UAAU;IACRvB,MAAM;IACN,GAAGC,6BAAYC;EACjB;AACF;",
5
5
  "names": ["overlayThemes", "light", "background", "dark", "overlayThemeDefinitions", "parent", "theme", "componentThemeDefinitions", "ListItem", "mask", "maskOptions", "component", "Card", "Button", "button", "Checkbox", "Switch", "SwitchThumb", "TooltipContent", "DrawerFrame", "Progress", "RadioGroupItem", "TooltipArrow", "SliderTrackActive", "SliderTrack", "SliderThumb", "Tooltip", "ProgressIndicator", "SheetOverlay", "DialogOverlay", "ModalOverlay", "Input", "TextArea"]
6
6
  }
@@ -1425,52 +1425,11 @@ __export(generated_new_exports, {
1425
1425
  light_yellow_alt2_TooltipContent: () => light_yellow_alt2_TooltipContent
1426
1426
  });
1427
1427
  module.exports = __toCommonJS(generated_new_exports);
1428
- function _array_like_to_array(arr, len) {
1429
- (len == null || len > arr.length) && (len = arr.length);
1430
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1431
- return arr2;
1432
- }
1433
- function _array_with_holes(arr) {
1434
- if (Array.isArray(arr)) return arr;
1435
- }
1436
- function _iterable_to_array_limit(arr, i) {
1437
- var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
1438
- if (_i != null) {
1439
- var _arr = [], _n = !0, _d = !1, _s, _e;
1440
- try {
1441
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
1442
- ;
1443
- } catch (err) {
1444
- _d = !0, _e = err;
1445
- } finally {
1446
- try {
1447
- !_n && _i.return != null && _i.return();
1448
- } finally {
1449
- if (_d) throw _e;
1450
- }
1451
- }
1452
- return _arr;
1453
- }
1454
- }
1455
- function _non_iterable_rest() {
1456
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1457
- }
1458
- function _sliced_to_array(arr, i) {
1459
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
1460
- }
1461
- function _unsupported_iterable_to_array(o, minLen) {
1462
- if (o) {
1463
- if (typeof o == "string") return _array_like_to_array(o, minLen);
1464
- var n = Object.prototype.toString.call(o).slice(8, -1);
1465
- if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
1466
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
1467
- }
1468
- }
1469
1428
  function t(a) {
1470
1429
  var res = {}, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
1471
1430
  try {
1472
1431
  for (var _iterator = a[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
1473
- var _step_value = _sliced_to_array(_step.value, 2), ki = _step_value[0], vi = _step_value[1];
1432
+ var [ki, vi] = _step.value;
1474
1433
  res[ks[ki]] = vs[vi];
1475
1434
  }
1476
1435
  } catch (err) {