@multiplatform.one/theme 7.90.6 → 8.0.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 (179) hide show
  1. package/dist/cjs/index.gnome.cjs +432 -0
  2. package/dist/cjs/index.gnome.native.js +435 -0
  3. package/dist/cjs/index.gnome.native.js.map +1 -0
  4. package/dist/cjs/{theme/useColorScale.native.js → nativeTwins.cjs} +11 -10
  5. package/dist/cjs/{theme/useColorScale.cjs → nativeTwins.native.js} +14 -24
  6. package/dist/cjs/nativeTwins.native.js.map +1 -0
  7. package/dist/cjs/theme/Surface.cjs +2 -10
  8. package/dist/cjs/theme/Surface.native.js +3 -12
  9. package/dist/cjs/theme/Surface.native.js.map +1 -1
  10. package/dist/cjs/theme/devtools/ColorLineVisualizer.cjs +91 -89
  11. package/dist/cjs/theme/devtools/ColorLineVisualizer.native.js +79 -88
  12. package/dist/cjs/theme/devtools/ColorLineVisualizer.native.js.map +1 -1
  13. package/dist/cjs/theme/devtools/index.cjs +25 -0
  14. package/dist/cjs/theme/devtools/index.native.js +28 -0
  15. package/dist/cjs/theme/devtools/index.native.js.map +1 -0
  16. package/dist/cjs/theme/devtools/knobIcons.cjs +147 -149
  17. package/dist/cjs/theme/devtools/knobIcons.native.js +135 -149
  18. package/dist/cjs/theme/devtools/knobIcons.native.js.map +1 -1
  19. package/dist/cjs/theme/nativePresetSwitch.cjs +45 -0
  20. package/dist/cjs/theme/nativePresetSwitch.native.js +50 -0
  21. package/dist/cjs/theme/nativePresetSwitch.native.js.map +1 -0
  22. package/dist/cjs/theme/nativeSchemePreference.cjs +72 -0
  23. package/dist/cjs/theme/nativeSchemePreference.native.js +80 -0
  24. package/dist/cjs/theme/nativeSchemePreference.native.js.map +1 -0
  25. package/dist/cjs/theme/nativeTheme.cjs +107 -0
  26. package/dist/cjs/theme/nativeTheme.native.js +115 -0
  27. package/dist/cjs/theme/nativeTheme.native.js.map +1 -0
  28. package/dist/cjs/theme/nativeTransitionProps.cjs +69 -0
  29. package/dist/cjs/theme/nativeTransitionProps.native.js +81 -0
  30. package/dist/cjs/theme/nativeTransitionProps.native.js.map +1 -0
  31. package/dist/cjs/theme/recipeInputs.native.js.map +1 -1
  32. package/dist/cjs/theme/resolveKnobs.cjs +0 -5
  33. package/dist/cjs/theme/resolveKnobs.native.js +0 -5
  34. package/dist/cjs/theme/resolveKnobs.native.js.map +1 -1
  35. package/dist/cjs/theme/sizeRecipes.cjs +3 -13
  36. package/dist/cjs/theme/sizeRecipes.native.js +3 -13
  37. package/dist/cjs/theme/sizeRecipes.native.js.map +1 -1
  38. package/dist/cjs/theme/theme.native.js +2 -94
  39. package/dist/cjs/theme/theme.native.js.map +1 -1
  40. package/dist/cjs/theme/transitionProps.native.js +2 -60
  41. package/dist/cjs/theme/transitionProps.native.js.map +1 -1
  42. package/dist/cjs/theme/usePresetSwitch.native.js +2 -29
  43. package/dist/cjs/theme/usePresetSwitch.native.js.map +1 -1
  44. package/dist/cjs/theme/useSchemePreference.native.js +2 -59
  45. package/dist/cjs/theme/useSchemePreference.native.js.map +1 -1
  46. package/dist/esm/index.gnome.mjs +48 -0
  47. package/dist/esm/index.gnome.mjs.map +1 -0
  48. package/dist/esm/index.gnome.native.js +48 -0
  49. package/dist/esm/index.gnome.native.js.map +1 -0
  50. package/dist/esm/nativeTwins.mjs +6 -0
  51. package/dist/esm/nativeTwins.mjs.map +1 -0
  52. package/dist/esm/nativeTwins.native.js +6 -0
  53. package/dist/esm/nativeTwins.native.js.map +1 -0
  54. package/dist/esm/theme/Surface.mjs +2 -9
  55. package/dist/esm/theme/Surface.mjs.map +1 -1
  56. package/dist/esm/theme/Surface.native.js +3 -11
  57. package/dist/esm/theme/Surface.native.js.map +1 -1
  58. package/dist/esm/theme/devtools/ColorLineVisualizer.mjs +80 -89
  59. package/dist/esm/theme/devtools/ColorLineVisualizer.mjs.map +1 -1
  60. package/dist/esm/theme/devtools/ColorLineVisualizer.native.js +79 -88
  61. package/dist/esm/theme/devtools/ColorLineVisualizer.native.js.map +1 -1
  62. package/dist/esm/theme/devtools/index.mjs +7 -0
  63. package/dist/esm/theme/devtools/index.mjs.map +1 -0
  64. package/dist/esm/theme/devtools/index.native.js +7 -0
  65. package/dist/esm/theme/devtools/index.native.js.map +1 -0
  66. package/dist/esm/theme/devtools/knobIcons.mjs +136 -149
  67. package/dist/esm/theme/devtools/knobIcons.mjs.map +1 -1
  68. package/dist/esm/theme/devtools/knobIcons.native.js +135 -149
  69. package/dist/esm/theme/devtools/knobIcons.native.js.map +1 -1
  70. package/dist/esm/theme/nativePresetSwitch.mjs +20 -0
  71. package/dist/esm/theme/nativePresetSwitch.mjs.map +1 -0
  72. package/dist/esm/theme/nativePresetSwitch.native.js +22 -0
  73. package/dist/esm/theme/nativePresetSwitch.native.js.map +1 -0
  74. package/dist/esm/theme/nativeSchemePreference.mjs +47 -0
  75. package/dist/esm/theme/nativeSchemePreference.mjs.map +1 -0
  76. package/dist/esm/theme/nativeSchemePreference.native.js +52 -0
  77. package/dist/esm/theme/nativeSchemePreference.native.js.map +1 -0
  78. package/dist/esm/theme/nativeTheme.mjs +82 -0
  79. package/dist/esm/theme/nativeTheme.mjs.map +1 -0
  80. package/dist/esm/theme/nativeTheme.native.js +87 -0
  81. package/dist/esm/theme/nativeTheme.native.js.map +1 -0
  82. package/dist/esm/theme/nativeTransitionProps.mjs +44 -0
  83. package/dist/esm/theme/nativeTransitionProps.mjs.map +1 -0
  84. package/dist/esm/theme/nativeTransitionProps.native.js +53 -0
  85. package/dist/esm/theme/nativeTransitionProps.native.js.map +1 -0
  86. package/dist/esm/theme/recipeInputs.mjs.map +1 -1
  87. package/dist/esm/theme/recipeInputs.native.js.map +1 -1
  88. package/dist/esm/theme/resolveKnobs.mjs +0 -5
  89. package/dist/esm/theme/resolveKnobs.mjs.map +1 -1
  90. package/dist/esm/theme/resolveKnobs.native.js +0 -5
  91. package/dist/esm/theme/resolveKnobs.native.js.map +1 -1
  92. package/dist/esm/theme/sizeRecipes.mjs +4 -9
  93. package/dist/esm/theme/sizeRecipes.mjs.map +1 -1
  94. package/dist/esm/theme/sizeRecipes.native.js +4 -9
  95. package/dist/esm/theme/sizeRecipes.native.js.map +1 -1
  96. package/dist/esm/theme/theme.native.js +1 -86
  97. package/dist/esm/theme/theme.native.js.map +1 -1
  98. package/dist/esm/theme/transitionProps.native.js +1 -52
  99. package/dist/esm/theme/transitionProps.native.js.map +1 -1
  100. package/dist/esm/theme/usePresetSwitch.native.js +1 -21
  101. package/dist/esm/theme/usePresetSwitch.native.js.map +1 -1
  102. package/dist/esm/theme/useSchemePreference.native.js +1 -51
  103. package/dist/esm/theme/useSchemePreference.native.js.map +1 -1
  104. package/package.json +54 -6
  105. package/src/index.gnome.ts +544 -0
  106. package/src/nativeTwins.ts +11 -0
  107. package/src/theme/Surface.spec.tsx +0 -34
  108. package/src/theme/Surface.tsx +1 -20
  109. package/src/theme/devtools/ColorLineVisualizer.tsx +1 -0
  110. package/src/theme/devtools/index.ts +14 -0
  111. package/src/theme/devtools/knobIcons.tsx +1 -0
  112. package/src/theme/mpo19Proof.spec.ts +0 -5
  113. package/src/theme/nativePresetSwitch.ts +32 -0
  114. package/src/theme/nativeSchemePreference.ts +58 -0
  115. package/src/theme/nativeTheme.tsx +113 -0
  116. package/src/theme/nativeTransitionProps.ts +74 -0
  117. package/src/theme/recipeInputs.ts +0 -5
  118. package/src/theme/recipes.ts +1 -7
  119. package/src/theme/resolveKnobs.spec.ts +4 -7
  120. package/src/theme/resolveKnobs.ts +0 -5
  121. package/src/theme/shared.tsx +4 -4
  122. package/src/theme/sizeLadder.spec.ts +4 -5
  123. package/src/theme/sizeRecipes.spec.ts +11 -16
  124. package/src/theme/sizeRecipes.ts +12 -19
  125. package/src/theme/theme.native.tsx +1 -113
  126. package/src/theme/theme.provider.spec.ts +1 -1
  127. package/src/theme/transitionProps.native.ts +1 -74
  128. package/src/theme/usePresetSwitch.native.ts +1 -32
  129. package/src/theme/useResolvedKnobs.hydration.spec.tsx +1 -1
  130. package/src/theme/useResolvedKnobsBehavior.spec.tsx +3 -3
  131. package/src/theme/useSchemePreference.native.ts +1 -58
  132. package/types/index.gnome.d.ts +84 -0
  133. package/types/index.gnome.d.ts.map +1 -0
  134. package/types/nativeTwins.d.ts +11 -0
  135. package/types/nativeTwins.d.ts.map +1 -0
  136. package/types/theme/Surface.d.ts +2 -13
  137. package/types/theme/Surface.d.ts.map +1 -1
  138. package/types/theme/devtools/ColorLineVisualizer.d.ts +3 -1
  139. package/types/theme/devtools/ColorLineVisualizer.d.ts.map +1 -1
  140. package/types/theme/devtools/index.d.ts +14 -0
  141. package/types/theme/devtools/index.d.ts.map +1 -0
  142. package/types/theme/devtools/knobIcons.d.ts +1 -0
  143. package/types/theme/devtools/knobIcons.d.ts.map +1 -1
  144. package/types/theme/nativePresetSwitch.d.ts +10 -0
  145. package/types/theme/nativePresetSwitch.d.ts.map +1 -0
  146. package/types/theme/nativeSchemePreference.d.ts +8 -0
  147. package/types/theme/nativeSchemePreference.d.ts.map +1 -0
  148. package/types/theme/nativeTheme.d.ts +19 -0
  149. package/types/theme/nativeTheme.d.ts.map +1 -0
  150. package/types/theme/nativeTransitionProps.d.ts +15 -0
  151. package/types/theme/nativeTransitionProps.d.ts.map +1 -0
  152. package/types/theme/recipeInputs.d.ts +0 -4
  153. package/types/theme/recipeInputs.d.ts.map +1 -1
  154. package/types/theme/recipes.d.ts +2 -9
  155. package/types/theme/recipes.d.ts.map +1 -1
  156. package/types/theme/resolveKnobs.d.ts.map +1 -1
  157. package/types/theme/shared.d.ts +4 -4
  158. package/types/theme/shared.d.ts.map +1 -1
  159. package/types/theme/sizeRecipes.d.ts +8 -13
  160. package/types/theme/sizeRecipes.d.ts.map +1 -1
  161. package/types/theme/theme.native.d.ts +1 -18
  162. package/types/theme/theme.native.d.ts.map +1 -1
  163. package/types/theme/transitionProps.native.d.ts +1 -14
  164. package/types/theme/transitionProps.native.d.ts.map +1 -1
  165. package/types/theme/usePresetSwitch.native.d.ts +1 -9
  166. package/types/theme/usePresetSwitch.native.d.ts.map +1 -1
  167. package/types/theme/useSchemePreference.native.d.ts +1 -7
  168. package/types/theme/useSchemePreference.native.d.ts.map +1 -1
  169. package/dist/cjs/theme/useColorScale.native.js.map +0 -1
  170. package/dist/esm/theme/useColorScale.mjs +0 -22
  171. package/dist/esm/theme/useColorScale.mjs.map +0 -1
  172. package/dist/esm/theme/useColorScale.native.js +0 -5
  173. package/dist/esm/theme/useColorScale.native.js.map +0 -1
  174. package/src/theme/useColorScale.native.ts +0 -7
  175. package/src/theme/useColorScale.ts +0 -29
  176. package/types/theme/useColorScale.d.ts +0 -7
  177. package/types/theme/useColorScale.d.ts.map +0 -1
  178. package/types/theme/useColorScale.native.d.ts +0 -6
  179. package/types/theme/useColorScale.native.d.ts.map +0 -1
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
+ value: true
19
+ }), mod);
20
+ var devtools_exports = {};
21
+ module.exports = __toCommonJS(devtools_exports);
22
+ __reExport(devtools_exports, require("../knobs.native.js"), module.exports);
23
+ __reExport(devtools_exports, require("../motionStops.native.js"), module.exports);
24
+ __reExport(devtools_exports, require("./knobIcons.native.js"), module.exports);
25
+ __reExport(devtools_exports, require("./buildSnapshot.native.js"), module.exports);
26
+ __reExport(devtools_exports, require("./ColorLineVisualizer.native.js"), module.exports);
27
+ __reExport(devtools_exports, require("./vizConstants.native.js"), module.exports);
28
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","devtools_exports","module","exports","__reExport","require"],"sources":["../../../../src/theme/devtools/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAQAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,gBAAA;AACdG,UAAA,CAAAH,gBAAA,EAAcI,OAAA,wBAAAH,MATd,CAAAC,OAAA;AAUAC,UAAA,CAAAH,gBAAA,EAAcI,OAAA,2BAVd,GAAAH,MAAA,CAAAC,OAAA;AAWAC,UAAA,CAAAH,gBAAA,EAAcI,OAAA,2BAAAH,MAXd,CAAAC,OAAA;AAYAC,UAAA,CAAAH,gBAAA,EAAcI,OAAA,+BAAAH,MAZd,CAAAC,OAAA;AAaAC,UAAA,CAAAH,gBAAA,EAAcI,OAAA,kCAbd,GAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all) __defProp(target, name, {
@@ -17,6 +19,15 @@ var __copyProps = (to, from, except, desc) => {
17
19
  }
18
20
  return to;
19
21
  };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
20
31
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
32
  value: true
22
33
  }), mod);
@@ -42,10 +53,10 @@ __export(knobIcons_exports, {
42
53
  timestampStyleIcon: () => timestampStyleIcon
43
54
  });
44
55
  module.exports = __toCommonJS(knobIcons_exports);
45
- var import_jsx_runtime = require("react/jsx-runtime");
56
+ var import_react = __toESM(require("react"));
46
57
  function fillIcon(value, color) {
47
58
  if (value === "filled") {
48
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
59
+ return /* @__PURE__ */import_react.default.createElement("div", {
49
60
  style: {
50
61
  width: 14,
51
62
  height: 14,
@@ -54,7 +65,7 @@ function fillIcon(value, color) {
54
65
  }
55
66
  });
56
67
  }
57
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
68
+ return /* @__PURE__ */import_react.default.createElement("div", {
58
69
  style: {
59
70
  width: 14,
60
71
  height: 14,
@@ -71,7 +82,7 @@ function borderRadiusIcon(value, color) {
71
82
  large: 7,
72
83
  full: 10
73
84
  }[value] ?? 0;
74
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
85
+ return /* @__PURE__ */import_react.default.createElement("div", {
75
86
  style: {
76
87
  width: 14,
77
88
  height: 14,
@@ -82,33 +93,30 @@ function borderRadiusIcon(value, color) {
82
93
  }
83
94
  function cornerSmoothingIcon(value, color) {
84
95
  const smooth = value === "smooth";
85
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)("svg", {
96
+ return /* @__PURE__ */import_react.default.createElement("svg", {
86
97
  width: "14",
87
98
  height: "14",
88
99
  viewBox: "0 0 14 14",
89
100
  fill: "none",
90
101
  role: "img",
91
- "aria-label": value,
92
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("title", {
93
- children: value
94
- }), smooth ? /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
95
- d: "M7 1 C2.8 1 1 2.8 1 7 C1 11.2 2.8 13 7 13 C11.2 13 13 11.2 13 7 C13 2.8 11.2 1 7 1 Z",
96
- stroke: color,
97
- strokeWidth: "1.5"
98
- }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)("rect", {
99
- x: "1",
100
- y: "1",
101
- width: "12",
102
- height: "12",
103
- rx: "4",
104
- stroke: color,
105
- strokeWidth: "1.5"
106
- })]
107
- });
102
+ "aria-label": value
103
+ }, /* @__PURE__ */import_react.default.createElement("title", null, value), smooth ? /* @__PURE__ */import_react.default.createElement("path", {
104
+ d: "M7 1 C2.8 1 1 2.8 1 7 C1 11.2 2.8 13 7 13 C11.2 13 13 11.2 13 7 C13 2.8 11.2 1 7 1 Z",
105
+ stroke: color,
106
+ strokeWidth: "1.5"
107
+ }) : /* @__PURE__ */import_react.default.createElement("rect", {
108
+ x: "1",
109
+ y: "1",
110
+ width: "12",
111
+ height: "12",
112
+ rx: "4",
113
+ stroke: color,
114
+ strokeWidth: "1.5"
115
+ }));
108
116
  }
109
117
  function borderWidthIcon(value, color) {
110
118
  if (value === "none") {
111
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
119
+ return /* @__PURE__ */import_react.default.createElement("div", {
112
120
  style: {
113
121
  width: 14,
114
122
  height: 14,
@@ -123,7 +131,7 @@ function borderWidthIcon(value, color) {
123
131
  medium: 1.5,
124
132
  large: 2
125
133
  }[value] ?? 1;
126
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
134
+ return /* @__PURE__ */import_react.default.createElement("div", {
127
135
  style: {
128
136
  width: 14,
129
137
  height: 14,
@@ -149,7 +157,7 @@ function elevationIcon(value, color, _isDark) {
149
157
  const squareSize = 10;
150
158
  const total = squareSize + offset * 2 + 1;
151
159
  if (offset === 0) {
152
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
160
+ return /* @__PURE__ */import_react.default.createElement("div", {
153
161
  style: {
154
162
  width: squareSize,
155
163
  height: squareSize,
@@ -158,39 +166,38 @@ function elevationIcon(value, color, _isDark) {
158
166
  }
159
167
  });
160
168
  }
161
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)("div", {
169
+ return /* @__PURE__ */import_react.default.createElement("div", {
162
170
  style: {
163
171
  position: "relative",
164
172
  width: total,
165
173
  height: total
166
- },
167
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
168
- style: {
169
- position: "absolute",
170
- bottom: 0,
171
- right: 0,
172
- width: shadowSize,
173
- height: shadowSize,
174
- background: shadowColor,
175
- borderRadius: 1
176
- }
177
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
178
- style: {
179
- position: "absolute",
180
- top: 0,
181
- left: 0,
182
- width: squareSize,
183
- height: squareSize,
184
- border: `1px solid ${color}`,
185
- borderRadius: 1
186
- }
187
- })]
188
- });
174
+ }
175
+ }, /* @__PURE__ */import_react.default.createElement("div", {
176
+ style: {
177
+ position: "absolute",
178
+ bottom: 0,
179
+ right: 0,
180
+ width: shadowSize,
181
+ height: shadowSize,
182
+ background: shadowColor,
183
+ borderRadius: 1
184
+ }
185
+ }), /* @__PURE__ */import_react.default.createElement("div", {
186
+ style: {
187
+ position: "absolute",
188
+ top: 0,
189
+ left: 0,
190
+ width: squareSize,
191
+ height: squareSize,
192
+ border: `1px solid ${color}`,
193
+ borderRadius: 1
194
+ }
195
+ }));
189
196
  }
190
197
  function textAccentIcon(value, color) {
191
198
  const weight = value === "low" ? 300 : value === "medium" ? 500 : 700;
192
199
  const opacity = value === "low" ? 0.35 : value === "medium" ? 0.7 : 1;
193
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("span", {
200
+ return /* @__PURE__ */import_react.default.createElement("span", {
194
201
  style: {
195
202
  fontSize: 12,
196
203
  fontWeight: weight,
@@ -198,9 +205,8 @@ function textAccentIcon(value, color) {
198
205
  opacity,
199
206
  fontFamily: "system-ui, sans-serif",
200
207
  lineHeight: 1
201
- },
202
- children: "Aa"
203
- });
208
+ }
209
+ }, "Aa");
204
210
  }
205
211
  const fontCategoryStyles = {
206
212
  "sans-serif": {
@@ -256,7 +262,7 @@ function headingFontIcon(value, color) {
256
262
  family: "inherit",
257
263
  label: "Aa"
258
264
  };
259
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("span", {
265
+ return /* @__PURE__ */import_react.default.createElement("span", {
260
266
  style: {
261
267
  fontSize: 13,
262
268
  fontWeight: 700,
@@ -265,16 +271,15 @@ function headingFontIcon(value, color) {
265
271
  fontStyle: s.style,
266
272
  lineHeight: 1,
267
273
  letterSpacing: s.letterSpacing
268
- },
269
- children: s.label
270
- });
274
+ }
275
+ }, s.label);
271
276
  }
272
277
  function bodyFontIcon(value, color) {
273
278
  const s = fontCategoryStyles[value] ?? {
274
279
  family: "inherit",
275
280
  label: "Aa"
276
281
  };
277
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("span", {
282
+ return /* @__PURE__ */import_react.default.createElement("span", {
278
283
  style: {
279
284
  fontSize: 13,
280
285
  fontWeight: 400,
@@ -283,9 +288,8 @@ function bodyFontIcon(value, color) {
283
288
  fontStyle: s.style,
284
289
  lineHeight: 1,
285
290
  letterSpacing: s.letterSpacing
286
- },
287
- children: s.label
288
- });
291
+ }
292
+ }, s.label);
289
293
  }
290
294
  function fontWeightIcon(value, color) {
291
295
  const weight = {
@@ -293,16 +297,15 @@ function fontWeightIcon(value, color) {
293
297
  regular: 400,
294
298
  bold: 700
295
299
  }[value] ?? 400;
296
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("span", {
300
+ return /* @__PURE__ */import_react.default.createElement("span", {
297
301
  style: {
298
302
  fontSize: 12,
299
303
  fontWeight: weight,
300
304
  color,
301
305
  fontFamily: "system-ui, sans-serif",
302
306
  lineHeight: 1
303
- },
304
- children: "W"
305
- });
307
+ }
308
+ }, "W");
306
309
  }
307
310
  function modeIcon(value, color) {
308
311
  const base = {
@@ -311,7 +314,7 @@ function modeIcon(value, color) {
311
314
  borderRadius: "50%"
312
315
  };
313
316
  if (value === "system") {
314
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
317
+ return /* @__PURE__ */import_react.default.createElement("div", {
315
318
  style: {
316
319
  ...base,
317
320
  border: `1.5px solid ${color}`,
@@ -320,14 +323,14 @@ function modeIcon(value, color) {
320
323
  });
321
324
  }
322
325
  if (value === "light") {
323
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
326
+ return /* @__PURE__ */import_react.default.createElement("div", {
324
327
  style: {
325
328
  ...base,
326
329
  border: `1.5px solid ${color}`
327
330
  }
328
331
  });
329
332
  }
330
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
333
+ return /* @__PURE__ */import_react.default.createElement("div", {
331
334
  style: {
332
335
  ...base,
333
336
  background: color
@@ -335,7 +338,7 @@ function modeIcon(value, color) {
335
338
  });
336
339
  }
337
340
  function glyph(label, color, size = 9) {
338
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("span", {
341
+ return /* @__PURE__ */import_react.default.createElement("span", {
339
342
  style: {
340
343
  fontSize: size,
341
344
  fontWeight: 600,
@@ -343,9 +346,8 @@ function glyph(label, color, size = 9) {
343
346
  fontFamily: "system-ui, sans-serif",
344
347
  lineHeight: 1,
345
348
  letterSpacing: "-0.02em"
346
- },
347
- children: label
348
- });
349
+ }
350
+ }, label);
349
351
  }
350
352
  function fieldLabelPlacementIcon(value, color) {
351
353
  if (value === "side") return glyph("\u229F", color, 12);
@@ -359,40 +361,39 @@ function requiredMarkingIcon(value, color) {
359
361
  }
360
362
  function tableZebraIcon(value, color) {
361
363
  const on = value === "on";
362
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)("div", {
364
+ return /* @__PURE__ */import_react.default.createElement("div", {
363
365
  style: {
364
366
  display: "flex",
365
367
  flexDirection: "column",
366
368
  gap: 1,
367
369
  width: 14
368
- },
369
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
370
- style: {
371
- height: 3,
372
- background: color,
373
- borderRadius: 1,
374
- opacity: on ? 1 : 0.35
375
- }
376
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
377
- style: {
378
- height: 3,
379
- background: color,
380
- borderRadius: 1,
381
- opacity: on ? 0.35 : 0.35
382
- }
383
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
384
- style: {
385
- height: 3,
386
- background: color,
387
- borderRadius: 1,
388
- opacity: on ? 1 : 0.35
389
- }
390
- })]
391
- });
370
+ }
371
+ }, /* @__PURE__ */import_react.default.createElement("div", {
372
+ style: {
373
+ height: 3,
374
+ background: color,
375
+ borderRadius: 1,
376
+ opacity: on ? 1 : 0.35
377
+ }
378
+ }), /* @__PURE__ */import_react.default.createElement("div", {
379
+ style: {
380
+ height: 3,
381
+ background: color,
382
+ borderRadius: 1,
383
+ opacity: on ? 0.35 : 0.35
384
+ }
385
+ }), /* @__PURE__ */import_react.default.createElement("div", {
386
+ style: {
387
+ height: 3,
388
+ background: color,
389
+ borderRadius: 1,
390
+ opacity: on ? 1 : 0.35
391
+ }
392
+ }));
392
393
  }
393
394
  function bulkBarPlacementIcon(value, color) {
394
395
  const top = value !== "bottom";
395
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
396
+ return /* @__PURE__ */import_react.default.createElement("div", {
396
397
  style: {
397
398
  width: 14,
398
399
  height: 14,
@@ -402,53 +403,51 @@ function bulkBarPlacementIcon(value, color) {
402
403
  flexDirection: "column",
403
404
  justifyContent: top ? "flex-start" : "flex-end",
404
405
  padding: 1
405
- },
406
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
407
- style: {
408
- height: 3,
409
- background: color,
410
- borderRadius: 1
411
- }
412
- })
413
- });
406
+ }
407
+ }, /* @__PURE__ */import_react.default.createElement("div", {
408
+ style: {
409
+ height: 3,
410
+ background: color,
411
+ borderRadius: 1
412
+ }
413
+ }));
414
414
  }
415
415
  function selectAllScopeIcon(value, color) {
416
416
  const filtered = value === "filtered";
417
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)("div", {
417
+ return /* @__PURE__ */import_react.default.createElement("div", {
418
418
  style: {
419
419
  display: "flex",
420
420
  flexDirection: "column",
421
421
  gap: 1,
422
422
  width: 14
423
- },
424
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
425
- style: {
426
- height: 3,
427
- background: color,
428
- borderRadius: 1
429
- }
430
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
431
- style: {
432
- height: 3,
433
- background: color,
434
- borderRadius: 1
435
- }
436
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
437
- style: {
438
- height: 3,
439
- background: color,
440
- borderRadius: 1,
441
- opacity: filtered ? 1 : 0.3
442
- }
443
- })]
444
- });
423
+ }
424
+ }, /* @__PURE__ */import_react.default.createElement("div", {
425
+ style: {
426
+ height: 3,
427
+ background: color,
428
+ borderRadius: 1
429
+ }
430
+ }), /* @__PURE__ */import_react.default.createElement("div", {
431
+ style: {
432
+ height: 3,
433
+ background: color,
434
+ borderRadius: 1
435
+ }
436
+ }), /* @__PURE__ */import_react.default.createElement("div", {
437
+ style: {
438
+ height: 3,
439
+ background: color,
440
+ borderRadius: 1,
441
+ opacity: filtered ? 1 : 0.3
442
+ }
443
+ }));
445
444
  }
446
445
  function timestampStyleIcon(value, color) {
447
446
  return glyph(value === "relative" ? "~t" : "12:00", color, value === "relative" ? 10 : 7);
448
447
  }
449
448
  function disabledStyleIcon(value, color) {
450
449
  if (value === "dimWhole") {
451
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
450
+ return /* @__PURE__ */import_react.default.createElement("div", {
452
451
  style: {
453
452
  width: 14,
454
453
  height: 14,
@@ -458,31 +457,30 @@ function disabledStyleIcon(value, color) {
458
457
  }
459
458
  });
460
459
  }
461
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)("div", {
460
+ return /* @__PURE__ */import_react.default.createElement("div", {
462
461
  style: {
463
462
  display: "flex",
464
463
  flexDirection: "column",
465
464
  gap: 2,
466
465
  width: 14
467
- },
468
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
469
- style: {
470
- height: 3,
471
- background: color,
472
- borderRadius: 1
473
- }
474
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
475
- style: {
476
- height: 7,
477
- background: color,
478
- borderRadius: 1,
479
- opacity: 0.3
480
- }
481
- })]
482
- });
466
+ }
467
+ }, /* @__PURE__ */import_react.default.createElement("div", {
468
+ style: {
469
+ height: 3,
470
+ background: color,
471
+ borderRadius: 1
472
+ }
473
+ }), /* @__PURE__ */import_react.default.createElement("div", {
474
+ style: {
475
+ height: 7,
476
+ background: color,
477
+ borderRadius: 1,
478
+ opacity: 0.3
479
+ }
480
+ }));
483
481
  }
484
482
  function formAutofocusIcon(value, color) {
485
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
483
+ return /* @__PURE__ */import_react.default.createElement("div", {
486
484
  style: {
487
485
  width: 14,
488
486
  height: 14,