@tamagui/react-native-web-internals 3.0.0-beta.807.1 → 3.0.0-beta.881.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/cjs/StyleSheet/compiler/index.cjs +2 -2
- package/dist/cjs/StyleSheet/preprocess.cjs +1 -1
- package/dist/cjs/modules/createDOMProps/index.cjs +5 -10
- package/dist/cjs/modules/pick/index.cjs +2 -4
- package/dist/cjs/modules/setValueForStyles/dangerousStyleValue.cjs +1 -1
- package/dist/cjs/modules/setValueForStyles/index.cjs +0 -3
- package/dist/esm/StyleSheet/compiler/index.mjs +2 -2
- package/dist/esm/StyleSheet/compiler/index.mjs.map +1 -1
- package/dist/esm/StyleSheet/preprocess.mjs +1 -1
- package/dist/esm/StyleSheet/preprocess.mjs.map +1 -1
- package/dist/esm/modules/createDOMProps/index.mjs +5 -10
- package/dist/esm/modules/createDOMProps/index.mjs.map +1 -1
- package/dist/esm/modules/pick/index.mjs +2 -4
- package/dist/esm/modules/pick/index.mjs.map +1 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs +1 -1
- package/dist/esm/modules/setValueForStyles/dangerousStyleValue.mjs.map +1 -1
- package/dist/esm/modules/setValueForStyles/index.mjs +0 -3
- package/dist/esm/modules/setValueForStyles/index.mjs.map +1 -1
- package/package.json +8 -8
- package/src/StyleSheet/compiler/index.tsx +2 -5
- package/src/StyleSheet/preprocess.tsx +1 -4
- package/src/modules/createDOMProps/index.tsx +5 -10
- package/src/modules/pick/index.tsx +2 -4
- package/src/modules/setValueForStyles/dangerousStyleValue.tsx +1 -1
- package/src/modules/setValueForStyles/index.tsx +0 -3
- package/types/StyleSheet/compiler/index.d.ts.map +1 -1
- package/types/StyleSheet/preprocess.d.ts.map +1 -1
- package/types/modules/UIManager/index.d.ts +1 -6
- package/types/modules/UIManager/index.d.ts.map +1 -1
- package/types/modules/createDOMProps/index.d.ts.map +1 -1
- package/types/modules/pick/index.d.ts.map +1 -1
- package/types/modules/setValueForStyles/index.d.ts.map +1 -1
|
@@ -211,7 +211,7 @@ function inline(originalStyle, isRTL) {
|
|
|
211
211
|
const originalValue = style[originalProp];
|
|
212
212
|
let prop = originalProp;
|
|
213
213
|
let value = originalValue;
|
|
214
|
-
if (
|
|
214
|
+
if (originalValue == null) {
|
|
215
215
|
continue;
|
|
216
216
|
}
|
|
217
217
|
if (PROPERTIES_VALUE.indexOf(originalProp) > -1) {
|
|
@@ -239,7 +239,7 @@ function inline(originalStyle, isRTL) {
|
|
|
239
239
|
if (!frozenProps[prop]) {
|
|
240
240
|
nextStyle[prop] = value;
|
|
241
241
|
}
|
|
242
|
-
if (PROPERTIES_I18N
|
|
242
|
+
if (originalProp in PROPERTIES_I18N) {
|
|
243
243
|
frozenProps[prop] = true;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -63,7 +63,7 @@ const preprocess = (originalStyle) => {
|
|
|
63
63
|
const originalValue = style[originalProp];
|
|
64
64
|
let prop = originalProp;
|
|
65
65
|
let value = originalValue;
|
|
66
|
-
if (
|
|
66
|
+
if (originalValue == null) {
|
|
67
67
|
continue;
|
|
68
68
|
}
|
|
69
69
|
if (prop === "shadowColor" || prop === "shadowOffset" || prop === "shadowOpacity" || prop === "shadowRadius") {
|
|
@@ -27,7 +27,6 @@ module.exports = __toCommonJS(createDOMProps_exports);
|
|
|
27
27
|
var import_web = require("@tamagui/web");
|
|
28
28
|
var import_AccessibilityUtil = require("../AccessibilityUtil/index.cjs");
|
|
29
29
|
const emptyObject = {};
|
|
30
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
31
30
|
const isArray = Array.isArray;
|
|
32
31
|
const reactNativeOnlyProps = {
|
|
33
32
|
collapsable: true,
|
|
@@ -94,9 +93,7 @@ function flattenStyle(style) {
|
|
|
94
93
|
const computedStyle = flattenStyle(style[i]);
|
|
95
94
|
if (computedStyle) {
|
|
96
95
|
for (const key in computedStyle) {
|
|
97
|
-
|
|
98
|
-
result[key] = computedStyle[key];
|
|
99
|
-
}
|
|
96
|
+
result[key] = computedStyle[key];
|
|
100
97
|
}
|
|
101
98
|
}
|
|
102
99
|
}
|
|
@@ -267,12 +264,10 @@ const createDOMProps = (elementType, props, options) => {
|
|
|
267
264
|
if (dataSet != null) {
|
|
268
265
|
for (const dataProp in dataSet) {
|
|
269
266
|
if (dataProp === "className" || dataProp === "id") continue;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
domProps[`data-${dataName}`] = dataValue;
|
|
275
|
-
}
|
|
267
|
+
const dataName = hyphenateString(dataProp);
|
|
268
|
+
const dataValue = dataSet[dataProp];
|
|
269
|
+
if (dataValue != null) {
|
|
270
|
+
domProps[`data-${dataName}`] = dataValue;
|
|
276
271
|
}
|
|
277
272
|
}
|
|
278
273
|
}
|
|
@@ -24,10 +24,8 @@ module.exports = __toCommonJS(pick_exports);
|
|
|
24
24
|
function pick(obj, list) {
|
|
25
25
|
const nextObj = {};
|
|
26
26
|
for (const key in obj) {
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
nextObj[key] = obj[key];
|
|
30
|
-
}
|
|
27
|
+
if (list[key] === true) {
|
|
28
|
+
nextObj[key] = obj[key];
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
return nextObj;
|
|
@@ -44,7 +44,7 @@ function dangerousStyleValue(name, value, isCustomProperty) {
|
|
|
44
44
|
return `${key}(${(0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key)})`;
|
|
45
45
|
}).join(" ");
|
|
46
46
|
}
|
|
47
|
-
if (!isCustomProperty && typeof value === "number" && value !== 0 && !
|
|
47
|
+
if (!isCustomProperty && typeof value === "number" && value !== 0 && !import_unitlessNumbers.unitlessNumbers[name]) {
|
|
48
48
|
return value + "px";
|
|
49
49
|
}
|
|
50
50
|
return ("" + value).trim();
|
|
@@ -25,9 +25,6 @@ var import_dangerousStyleValue = require("./dangerousStyleValue.cjs");
|
|
|
25
25
|
function setValueForStyles(node, styles) {
|
|
26
26
|
const style = node.style;
|
|
27
27
|
for (let styleName in styles) {
|
|
28
|
-
if (!styles.hasOwnProperty(styleName)) {
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
28
|
const isCustomProperty = styleName.indexOf("--") === 0;
|
|
32
29
|
const styleValue = (0, import_dangerousStyleValue.dangerousStyleValue)(styleName, styles[styleName], isCustomProperty);
|
|
33
30
|
if (styleName === "float") {
|
|
@@ -184,7 +184,7 @@ function inline(originalStyle, isRTL) {
|
|
|
184
184
|
const originalValue = style[originalProp];
|
|
185
185
|
let prop = originalProp;
|
|
186
186
|
let value = originalValue;
|
|
187
|
-
if (
|
|
187
|
+
if (originalValue == null) {
|
|
188
188
|
continue;
|
|
189
189
|
}
|
|
190
190
|
if (PROPERTIES_VALUE.indexOf(originalProp) > -1) {
|
|
@@ -212,7 +212,7 @@ function inline(originalStyle, isRTL) {
|
|
|
212
212
|
if (!frozenProps[prop]) {
|
|
213
213
|
nextStyle[prop] = value;
|
|
214
214
|
}
|
|
215
|
-
if (PROPERTIES_I18N
|
|
215
|
+
if (originalProp in PROPERTIES_I18N) {
|
|
216
216
|
frozenProps[prop] = true;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/StyleSheet/compiler/index.js"],"sourcesContent":["import { simpleHash } from \"@tamagui/simple-hash\";\nimport { createReactDOMStyle } from \"./createReactDOMStyle\";\nimport { hyphenateStyleName } from \"./hyphenateStyleName\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nconst cache = /* @__PURE__ */ new Map();\nconst emptyObject = {};\nconst classicGroup = 1;\nconst atomicGroup = 2.2;\nconst customGroup = {\n borderColor: 2,\n borderRadius: 2,\n borderStyle: 2,\n borderWidth: 2,\n display: 2,\n flex: 2,\n margin: 2,\n overflow: 2,\n overscrollBehavior: 2,\n padding: 2,\n marginHorizontal: 2.1,\n marginVertical: 2.1,\n paddingHorizontal: 2.1,\n paddingVertical: 2.1\n};\nconst borderTopLeftRadius = \"borderTopLeftRadius\";\nconst borderTopRightRadius = \"borderTopRightRadius\";\nconst borderBottomLeftRadius = \"borderBottomLeftRadius\";\nconst borderBottomRightRadius = \"borderBottomRightRadius\";\nconst borderLeftColor = \"borderLeftColor\";\nconst borderLeftStyle = \"borderLeftStyle\";\nconst borderLeftWidth = \"borderLeftWidth\";\nconst borderRightColor = \"borderRightColor\";\nconst borderRightStyle = \"borderRightStyle\";\nconst borderRightWidth = \"borderRightWidth\";\nconst right = \"right\";\nconst marginLeft = \"marginLeft\";\nconst marginRight = \"marginRight\";\nconst paddingLeft = \"paddingLeft\";\nconst paddingRight = \"paddingRight\";\nconst left = \"left\";\nconst PROPERTIES_FLIP = {\n [borderTopLeftRadius]: borderTopRightRadius,\n [borderTopRightRadius]: borderTopLeftRadius,\n [borderBottomLeftRadius]: borderBottomRightRadius,\n [borderBottomRightRadius]: borderBottomLeftRadius,\n [borderLeftColor]: borderRightColor,\n [borderLeftStyle]: borderRightStyle,\n [borderLeftWidth]: borderRightWidth,\n [borderRightColor]: borderLeftColor,\n [borderRightStyle]: borderLeftStyle,\n [borderRightWidth]: borderLeftWidth,\n [left]: right,\n [marginLeft]: marginRight,\n [marginRight]: marginLeft,\n [paddingLeft]: paddingRight,\n [paddingRight]: paddingLeft,\n [right]: left\n};\nconst PROPERTIES_I18N = {\n borderTopStartRadius: borderTopLeftRadius,\n borderTopEndRadius: borderTopRightRadius,\n borderBottomStartRadius: borderBottomLeftRadius,\n borderBottomEndRadius: borderBottomRightRadius,\n borderStartColor: borderLeftColor,\n borderStartStyle: borderLeftStyle,\n borderStartWidth: borderLeftWidth,\n borderEndColor: borderRightColor,\n borderEndStyle: borderRightStyle,\n borderEndWidth: borderRightWidth,\n end: right,\n marginStart: marginLeft,\n marginEnd: marginRight,\n paddingStart: paddingLeft,\n paddingEnd: paddingRight,\n start: left\n};\nconst PROPERTIES_VALUE = [\"clear\", \"float\", \"textAlign\"];\nfunction atomic(style) {\n const compiledStyle = { $$css: true };\n const compiledRules = [];\n function atomicCompile(prop, value) {\n const valueString = stringifyValueWithProperty(value, prop);\n const cacheKey = prop + valueString;\n const cachedResult = cache.get(cacheKey);\n let identifier;\n if (cachedResult != null) {\n identifier = cachedResult[0];\n compiledRules.push(cachedResult[1]);\n } else {\n identifier = createIdentifier(\"r\", prop, value);\n const order = customGroup[prop] || atomicGroup;\n const rules = createAtomicRules(identifier, prop, value);\n const orderedRules = [rules, order];\n compiledRules.push(orderedRules);\n cache.set(cacheKey, [identifier, orderedRules]);\n }\n return identifier;\n }\n Object.keys(style).sort().forEach((prop) => {\n const value = style[prop];\n if (value != null) {\n let localizeableValue;\n if (PROPERTIES_VALUE.indexOf(prop) > -1) {\n const left2 = atomicCompile(prop, \"left\");\n const right2 = atomicCompile(prop, \"right\");\n if (value === \"start\") {\n localizeableValue = [left2, right2];\n } else if (value === \"end\") {\n localizeableValue = [right2, left2];\n }\n }\n const propPolyfill = PROPERTIES_I18N[prop];\n if (propPolyfill != null) {\n const ltr = atomicCompile(propPolyfill, value);\n const rtl = atomicCompile(PROPERTIES_FLIP[propPolyfill], value);\n localizeableValue = [ltr, rtl];\n }\n if (prop === \"transitionProperty\") {\n const values = Array.isArray(value) ? value : [value];\n const polyfillIndices = [];\n for (let i = 0; i < values.length; i++) {\n const val = values[i];\n if (typeof val === \"string\" && PROPERTIES_I18N[val] != null) {\n polyfillIndices.push(i);\n }\n }\n if (polyfillIndices.length > 0) {\n const ltrPolyfillValues = [...values];\n const rtlPolyfillValues = [...values];\n polyfillIndices.forEach((i) => {\n const ltrVal = ltrPolyfillValues[i];\n if (typeof ltrVal === \"string\") {\n const ltrPolyfill = PROPERTIES_I18N[ltrVal];\n const rtlPolyfill = PROPERTIES_FLIP[ltrPolyfill];\n ltrPolyfillValues[i] = ltrPolyfill;\n rtlPolyfillValues[i] = rtlPolyfill;\n const ltr = atomicCompile(prop, ltrPolyfillValues);\n const rtl = atomicCompile(prop, rtlPolyfillValues);\n localizeableValue = [ltr, rtl];\n }\n });\n }\n }\n if (localizeableValue == null) {\n localizeableValue = atomicCompile(prop, value);\n } else {\n compiledStyle[\"$$css$localize\"] = true;\n }\n compiledStyle[prop] = localizeableValue;\n }\n });\n return [compiledStyle, compiledRules];\n}\nfunction classic(style, name) {\n const compiledStyle = { $$css: true };\n const compiledRules = [];\n const { animationKeyframes, ...rest } = style;\n const identifier = createIdentifier(\"css\", name, style);\n const selector = `.${identifier}`;\n let animationName;\n if (animationKeyframes != null) {\n const [animationNames, keyframesRules] = processKeyframesValue(animationKeyframes);\n animationName = animationNames.join(\",\");\n compiledRules.push(...keyframesRules);\n }\n const block = createDeclarationBlock({ ...rest, animationName });\n compiledRules.push(`${selector}${block}`);\n compiledStyle[identifier] = identifier;\n return [compiledStyle, [[compiledRules, classicGroup]]];\n}\nfunction inline(originalStyle, isRTL) {\n const style = originalStyle || emptyObject;\n const frozenProps = {};\n const nextStyle = {};\n for (const originalProp in style) {\n const originalValue = style[originalProp];\n let prop = originalProp;\n let value = originalValue;\n if (!Object.prototype.hasOwnProperty.call(style, originalProp) || originalValue == null) {\n continue;\n }\n if (PROPERTIES_VALUE.indexOf(originalProp) > -1) {\n if (originalValue === \"start\") {\n value = isRTL ? \"right\" : \"left\";\n } else if (originalValue === \"end\") {\n value = isRTL ? \"left\" : \"right\";\n }\n }\n const propPolyfill = PROPERTIES_I18N[originalProp];\n if (propPolyfill != null) {\n prop = isRTL ? PROPERTIES_FLIP[propPolyfill] : propPolyfill;\n }\n if (originalProp === \"transitionProperty\") {\n const originalValues = Array.isArray(originalValue) ? originalValue : [originalValue];\n originalValues.forEach((val, i) => {\n if (typeof val === \"string\") {\n const valuePolyfill = PROPERTIES_I18N[val];\n if (valuePolyfill != null) {\n originalValues[i] = isRTL ? PROPERTIES_FLIP[valuePolyfill] : valuePolyfill;\n }\n }\n });\n }\n if (!frozenProps[prop]) {\n nextStyle[prop] = value;\n }\n if (PROPERTIES_I18N.hasOwnProperty(originalProp)) {\n frozenProps[prop] = true;\n }\n }\n return createReactDOMStyle(nextStyle, true);\n}\nfunction stringifyValueWithProperty(value, property) {\n const normalizedValue = normalizeValueWithProperty(value, property);\n return typeof normalizedValue !== \"string\" ? JSON.stringify(normalizedValue || \"\") : normalizedValue;\n}\nfunction createAtomicRules(identifier, property, value) {\n const rules = [];\n const selector = `.${identifier}`;\n switch (property) {\n case \"animationKeyframes\": {\n const [animationNames, keyframesRules] = processKeyframesValue(value);\n const block = createDeclarationBlock({\n animationName: animationNames.join(\",\")\n });\n rules.push(`${selector}${block}`, ...keyframesRules);\n break;\n }\n // Equivalent to using '::placeholder'\n case \"placeholderTextColor\": {\n const block = createDeclarationBlock({ color: value, opacity: 1 });\n rules.push(\n `${selector}::-webkit-input-placeholder${block}`,\n `${selector}::-moz-placeholder${block}`,\n `${selector}:-ms-input-placeholder${block}`,\n `${selector}::placeholder${block}`\n );\n break;\n }\n // Polyfill for additional 'pointer-events' values\n // See d13f78622b233a0afc0c7a200c0a0792c8ca9e58\n case \"pointerEvents\": {\n let finalValue = value;\n if (value === \"auto\" || value === \"box-only\") {\n finalValue = \"auto!important\";\n if (value === \"box-only\") {\n const block2 = createDeclarationBlock({ pointerEvents: \"none\" });\n rules.push(`${selector}>*${block2}`);\n }\n } else if (value === \"none\" || value === \"box-none\") {\n finalValue = \"none!important\";\n if (value === \"box-none\") {\n const block2 = createDeclarationBlock({ pointerEvents: \"auto\" });\n rules.push(`${selector}>*${block2}`);\n }\n }\n const block = createDeclarationBlock({ pointerEvents: finalValue });\n rules.push(`${selector}${block}`);\n break;\n }\n // Polyfill for draft spec\n // https://drafts.csswg.org/css-scrollbars-1/\n case \"scrollbarWidth\": {\n if (value === \"none\") {\n rules.push(`${selector}::-webkit-scrollbar{display:none}`);\n }\n const block = createDeclarationBlock({ scrollbarWidth: value });\n rules.push(`${selector}${block}`);\n break;\n }\n default: {\n const block = createDeclarationBlock({ [property]: value });\n rules.push(`${selector}${block}`);\n break;\n }\n }\n return rules;\n}\nfunction createDeclarationBlock(style) {\n const domStyle = createReactDOMStyle(style);\n const declarationsString = Object.keys(domStyle).map((property) => {\n const value = domStyle[property];\n const prop = hyphenateStyleName(property);\n if (Array.isArray(value)) {\n return value.map((v) => `${prop}:${v}`).join(\";\");\n } else {\n return `${prop}:${value}`;\n }\n }).sort().join(\";\");\n return `{${declarationsString};}`;\n}\nfunction createIdentifier(prefix, name, value) {\n const hashedString = simpleHash(name + stringifyValueWithProperty(value, name));\n return process.env.NODE_ENV !== \"production\" ? `${prefix}-${name}-${hashedString}` : `${prefix}-${hashedString}`;\n}\nfunction createKeyframes(keyframes) {\n const prefixes = [\"-webkit-\", \"\"];\n const identifier = createIdentifier(\"r\", \"animation\", keyframes);\n const steps = \"{\" + Object.keys(keyframes).map((stepName) => {\n const rule = keyframes[stepName];\n const block = createDeclarationBlock(rule);\n return `${stepName}${block}`;\n }).join(\"\") + \"}\";\n const rules = prefixes.map((prefix) => {\n return `@${prefix}keyframes ${identifier}${steps}`;\n });\n return [identifier, rules];\n}\nfunction processKeyframesValue(keyframesValue) {\n if (typeof keyframesValue === \"number\") {\n throw new Error(`Invalid CSS keyframes type: ${typeof keyframesValue}`);\n }\n const animationNames = [];\n const rules = [];\n const value = Array.isArray(keyframesValue) ? keyframesValue : [keyframesValue];\n value.forEach((keyframes) => {\n if (typeof keyframes === \"string\") {\n animationNames.push(keyframes);\n } else {\n const [identifier, keyframesRules] = createKeyframes(keyframes);\n animationNames.push(identifier);\n rules.push(...keyframesRules);\n }\n });\n return [animationNames, rules];\n}\nexport {\n atomic,\n classic,\n inline,\n stringifyValueWithProperty\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;AAIA,MAAM,wBAAwB,IAAI,IAAI;AACtC,MAAM,cAAc,CAAC;AACrB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,cAAc;CAClB,aAAa;CACb,cAAc;CACd,aAAa;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,kBAAkB,gBAAgB,SAAS;GAC9D,eAAe,KAAK,UAAU;GAC9B,MAAM,KAAK,GAAG,cAAc;EAC9B;CACF,CAAC;CACD,OAAO,CAAC,gBAAgB,KAAK;AAC/B"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/StyleSheet/compiler/index.js"],"sourcesContent":["import { simpleHash } from \"@tamagui/simple-hash\";\nimport { createReactDOMStyle } from \"./createReactDOMStyle\";\nimport { hyphenateStyleName } from \"./hyphenateStyleName\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nconst cache = /* @__PURE__ */ new Map();\nconst emptyObject = {};\nconst classicGroup = 1;\nconst atomicGroup = 2.2;\nconst customGroup = {\n borderColor: 2,\n borderRadius: 2,\n borderStyle: 2,\n borderWidth: 2,\n display: 2,\n flex: 2,\n margin: 2,\n overflow: 2,\n overscrollBehavior: 2,\n padding: 2,\n marginHorizontal: 2.1,\n marginVertical: 2.1,\n paddingHorizontal: 2.1,\n paddingVertical: 2.1\n};\nconst borderTopLeftRadius = \"borderTopLeftRadius\";\nconst borderTopRightRadius = \"borderTopRightRadius\";\nconst borderBottomLeftRadius = \"borderBottomLeftRadius\";\nconst borderBottomRightRadius = \"borderBottomRightRadius\";\nconst borderLeftColor = \"borderLeftColor\";\nconst borderLeftStyle = \"borderLeftStyle\";\nconst borderLeftWidth = \"borderLeftWidth\";\nconst borderRightColor = \"borderRightColor\";\nconst borderRightStyle = \"borderRightStyle\";\nconst borderRightWidth = \"borderRightWidth\";\nconst right = \"right\";\nconst marginLeft = \"marginLeft\";\nconst marginRight = \"marginRight\";\nconst paddingLeft = \"paddingLeft\";\nconst paddingRight = \"paddingRight\";\nconst left = \"left\";\nconst PROPERTIES_FLIP = {\n [borderTopLeftRadius]: borderTopRightRadius,\n [borderTopRightRadius]: borderTopLeftRadius,\n [borderBottomLeftRadius]: borderBottomRightRadius,\n [borderBottomRightRadius]: borderBottomLeftRadius,\n [borderLeftColor]: borderRightColor,\n [borderLeftStyle]: borderRightStyle,\n [borderLeftWidth]: borderRightWidth,\n [borderRightColor]: borderLeftColor,\n [borderRightStyle]: borderLeftStyle,\n [borderRightWidth]: borderLeftWidth,\n [left]: right,\n [marginLeft]: marginRight,\n [marginRight]: marginLeft,\n [paddingLeft]: paddingRight,\n [paddingRight]: paddingLeft,\n [right]: left\n};\nconst PROPERTIES_I18N = {\n borderTopStartRadius: borderTopLeftRadius,\n borderTopEndRadius: borderTopRightRadius,\n borderBottomStartRadius: borderBottomLeftRadius,\n borderBottomEndRadius: borderBottomRightRadius,\n borderStartColor: borderLeftColor,\n borderStartStyle: borderLeftStyle,\n borderStartWidth: borderLeftWidth,\n borderEndColor: borderRightColor,\n borderEndStyle: borderRightStyle,\n borderEndWidth: borderRightWidth,\n end: right,\n marginStart: marginLeft,\n marginEnd: marginRight,\n paddingStart: paddingLeft,\n paddingEnd: paddingRight,\n start: left\n};\nconst PROPERTIES_VALUE = [\"clear\", \"float\", \"textAlign\"];\nfunction atomic(style) {\n const compiledStyle = { $$css: true };\n const compiledRules = [];\n function atomicCompile(prop, value) {\n const valueString = stringifyValueWithProperty(value, prop);\n const cacheKey = prop + valueString;\n const cachedResult = cache.get(cacheKey);\n let identifier;\n if (cachedResult != null) {\n identifier = cachedResult[0];\n compiledRules.push(cachedResult[1]);\n } else {\n identifier = createIdentifier(\"r\", prop, value);\n const order = customGroup[prop] || atomicGroup;\n const rules = createAtomicRules(identifier, prop, value);\n const orderedRules = [rules, order];\n compiledRules.push(orderedRules);\n cache.set(cacheKey, [identifier, orderedRules]);\n }\n return identifier;\n }\n Object.keys(style).sort().forEach((prop) => {\n const value = style[prop];\n if (value != null) {\n let localizeableValue;\n if (PROPERTIES_VALUE.indexOf(prop) > -1) {\n const left2 = atomicCompile(prop, \"left\");\n const right2 = atomicCompile(prop, \"right\");\n if (value === \"start\") {\n localizeableValue = [left2, right2];\n } else if (value === \"end\") {\n localizeableValue = [right2, left2];\n }\n }\n const propPolyfill = PROPERTIES_I18N[prop];\n if (propPolyfill != null) {\n const ltr = atomicCompile(propPolyfill, value);\n const rtl = atomicCompile(PROPERTIES_FLIP[propPolyfill], value);\n localizeableValue = [ltr, rtl];\n }\n if (prop === \"transitionProperty\") {\n const values = Array.isArray(value) ? value : [value];\n const polyfillIndices = [];\n for (let i = 0; i < values.length; i++) {\n const val = values[i];\n if (typeof val === \"string\" && PROPERTIES_I18N[val] != null) {\n polyfillIndices.push(i);\n }\n }\n if (polyfillIndices.length > 0) {\n const ltrPolyfillValues = [...values];\n const rtlPolyfillValues = [...values];\n polyfillIndices.forEach((i) => {\n const ltrVal = ltrPolyfillValues[i];\n if (typeof ltrVal === \"string\") {\n const ltrPolyfill = PROPERTIES_I18N[ltrVal];\n const rtlPolyfill = PROPERTIES_FLIP[ltrPolyfill];\n ltrPolyfillValues[i] = ltrPolyfill;\n rtlPolyfillValues[i] = rtlPolyfill;\n const ltr = atomicCompile(prop, ltrPolyfillValues);\n const rtl = atomicCompile(prop, rtlPolyfillValues);\n localizeableValue = [ltr, rtl];\n }\n });\n }\n }\n if (localizeableValue == null) {\n localizeableValue = atomicCompile(prop, value);\n } else {\n compiledStyle[\"$$css$localize\"] = true;\n }\n compiledStyle[prop] = localizeableValue;\n }\n });\n return [compiledStyle, compiledRules];\n}\nfunction classic(style, name) {\n const compiledStyle = { $$css: true };\n const compiledRules = [];\n const { animationKeyframes, ...rest } = style;\n const identifier = createIdentifier(\"css\", name, style);\n const selector = `.${identifier}`;\n let animationName;\n if (animationKeyframes != null) {\n const [animationNames, keyframesRules] = processKeyframesValue(animationKeyframes);\n animationName = animationNames.join(\",\");\n compiledRules.push(...keyframesRules);\n }\n const block = createDeclarationBlock({ ...rest, animationName });\n compiledRules.push(`${selector}${block}`);\n compiledStyle[identifier] = identifier;\n return [compiledStyle, [[compiledRules, classicGroup]]];\n}\nfunction inline(originalStyle, isRTL) {\n const style = originalStyle || emptyObject;\n const frozenProps = {};\n const nextStyle = {};\n for (const originalProp in style) {\n const originalValue = style[originalProp];\n let prop = originalProp;\n let value = originalValue;\n if (originalValue == null) {\n continue;\n }\n if (PROPERTIES_VALUE.indexOf(originalProp) > -1) {\n if (originalValue === \"start\") {\n value = isRTL ? \"right\" : \"left\";\n } else if (originalValue === \"end\") {\n value = isRTL ? \"left\" : \"right\";\n }\n }\n const propPolyfill = PROPERTIES_I18N[originalProp];\n if (propPolyfill != null) {\n prop = isRTL ? PROPERTIES_FLIP[propPolyfill] : propPolyfill;\n }\n if (originalProp === \"transitionProperty\") {\n const originalValues = Array.isArray(originalValue) ? originalValue : [originalValue];\n originalValues.forEach((val, i) => {\n if (typeof val === \"string\") {\n const valuePolyfill = PROPERTIES_I18N[val];\n if (valuePolyfill != null) {\n originalValues[i] = isRTL ? PROPERTIES_FLIP[valuePolyfill] : valuePolyfill;\n }\n }\n });\n }\n if (!frozenProps[prop]) {\n nextStyle[prop] = value;\n }\n if (originalProp in PROPERTIES_I18N) {\n frozenProps[prop] = true;\n }\n }\n return createReactDOMStyle(nextStyle, true);\n}\nfunction stringifyValueWithProperty(value, property) {\n const normalizedValue = normalizeValueWithProperty(value, property);\n return typeof normalizedValue !== \"string\" ? JSON.stringify(normalizedValue || \"\") : normalizedValue;\n}\nfunction createAtomicRules(identifier, property, value) {\n const rules = [];\n const selector = `.${identifier}`;\n switch (property) {\n case \"animationKeyframes\": {\n const [animationNames, keyframesRules] = processKeyframesValue(value);\n const block = createDeclarationBlock({\n animationName: animationNames.join(\",\")\n });\n rules.push(`${selector}${block}`, ...keyframesRules);\n break;\n }\n // Equivalent to using '::placeholder'\n case \"placeholderTextColor\": {\n const block = createDeclarationBlock({ color: value, opacity: 1 });\n rules.push(\n `${selector}::-webkit-input-placeholder${block}`,\n `${selector}::-moz-placeholder${block}`,\n `${selector}:-ms-input-placeholder${block}`,\n `${selector}::placeholder${block}`\n );\n break;\n }\n // Polyfill for additional 'pointer-events' values\n // See d13f78622b233a0afc0c7a200c0a0792c8ca9e58\n case \"pointerEvents\": {\n let finalValue = value;\n if (value === \"auto\" || value === \"box-only\") {\n finalValue = \"auto!important\";\n if (value === \"box-only\") {\n const block2 = createDeclarationBlock({ pointerEvents: \"none\" });\n rules.push(`${selector}>*${block2}`);\n }\n } else if (value === \"none\" || value === \"box-none\") {\n finalValue = \"none!important\";\n if (value === \"box-none\") {\n const block2 = createDeclarationBlock({ pointerEvents: \"auto\" });\n rules.push(`${selector}>*${block2}`);\n }\n }\n const block = createDeclarationBlock({ pointerEvents: finalValue });\n rules.push(`${selector}${block}`);\n break;\n }\n // Polyfill for draft spec\n // https://drafts.csswg.org/css-scrollbars-1/\n case \"scrollbarWidth\": {\n if (value === \"none\") {\n rules.push(`${selector}::-webkit-scrollbar{display:none}`);\n }\n const block = createDeclarationBlock({ scrollbarWidth: value });\n rules.push(`${selector}${block}`);\n break;\n }\n default: {\n const block = createDeclarationBlock({ [property]: value });\n rules.push(`${selector}${block}`);\n break;\n }\n }\n return rules;\n}\nfunction createDeclarationBlock(style) {\n const domStyle = createReactDOMStyle(style);\n const declarationsString = Object.keys(domStyle).map((property) => {\n const value = domStyle[property];\n const prop = hyphenateStyleName(property);\n if (Array.isArray(value)) {\n return value.map((v) => `${prop}:${v}`).join(\";\");\n } else {\n return `${prop}:${value}`;\n }\n }).sort().join(\";\");\n return `{${declarationsString};}`;\n}\nfunction createIdentifier(prefix, name, value) {\n const hashedString = simpleHash(name + stringifyValueWithProperty(value, name));\n return process.env.NODE_ENV !== \"production\" ? `${prefix}-${name}-${hashedString}` : `${prefix}-${hashedString}`;\n}\nfunction createKeyframes(keyframes) {\n const prefixes = [\"-webkit-\", \"\"];\n const identifier = createIdentifier(\"r\", \"animation\", keyframes);\n const steps = \"{\" + Object.keys(keyframes).map((stepName) => {\n const rule = keyframes[stepName];\n const block = createDeclarationBlock(rule);\n return `${stepName}${block}`;\n }).join(\"\") + \"}\";\n const rules = prefixes.map((prefix) => {\n return `@${prefix}keyframes ${identifier}${steps}`;\n });\n return [identifier, rules];\n}\nfunction processKeyframesValue(keyframesValue) {\n if (typeof keyframesValue === \"number\") {\n throw new Error(`Invalid CSS keyframes type: ${typeof keyframesValue}`);\n }\n const animationNames = [];\n const rules = [];\n const value = Array.isArray(keyframesValue) ? keyframesValue : [keyframesValue];\n value.forEach((keyframes) => {\n if (typeof keyframes === \"string\") {\n animationNames.push(keyframes);\n } else {\n const [identifier, keyframesRules] = createKeyframes(keyframes);\n animationNames.push(identifier);\n rules.push(...keyframesRules);\n }\n });\n return [animationNames, rules];\n}\nexport {\n atomic,\n classic,\n inline,\n stringifyValueWithProperty\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;AAIA,MAAM,wBAAwB,IAAI,IAAI;AACtC,MAAM,cAAc,CAAC;AACrB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,cAAc;CAClB,aAAa;CACb,cAAc;CACd,aAAa;CACb,aAAa;CACb,SAAS;CACT,MAAM;CACN,QAAQ;CACR,UAAU;CACV,oBAAoB;CACpB,SAAS;CACT,kBAAkB;CAClB,gBAAgB;CAChB,mBAAmB;CACnB,iBAAiB;AACnB;AACA,MAAM,sBAAsB;AAC5B,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,0BAA0B;AAChC,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,QAAQ;AACd,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,cAAc;AACpB,MAAM,eAAe;AACrB,MAAM,OAAO;AACb,MAAM,kBAAkB;EACrB,sBAAsB;EACtB,uBAAuB;EACvB,yBAAyB;EACzB,0BAA0B;EAC1B,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,OAAO;EACP,aAAa;EACb,cAAc;EACd,cAAc;EACd,eAAe;EACf,QAAQ;AACX;AAC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AAE,IAAI;CACd,MAAM,QAAQ,SAAS,KAAK,WAAW;EACrC,OAAO,IAAI,OAAO,YAAY,aAAa;CAC7C,CAAC;CACD,OAAO,CAAC,YAAY,KAAK;AAC3B;AACA,SAAS,sBAAsB,gBAAgB;CAC7C,IAAI,OAAO,mBAAmB,UAAU;EACtC,MAAM,IAAI,MAAM,+BAA+B,OAAO,gBAAgB;CACxE;CACA,MAAM,iBAAiB,CAAC;CACxB,MAAM,QAAQ,CAAC;CACf,MAAM,QAAQ,MAAM,QAAQ,cAAc,IAAI,iBAAiB,CAAC,cAAc;CAC9E,MAAM,SAAS,cAAc;EAC3B,IAAI,OAAO,cAAc,UAAU;GACjC,eAAe,KAAK,SAAS;EAC/B,OAAO;GACL,MAAM,CAAC,YAAY,kBAAkB,gBAAgB,SAAS;GAC9D,eAAe,KAAK,UAAU;GAC9B,MAAM,KAAK,GAAG,cAAc;EAC9B;CACF,CAAC;CACD,OAAO,CAAC,gBAAgB,KAAK;AAC/B"}
|
|
@@ -36,7 +36,7 @@ const preprocess = (originalStyle) => {
|
|
|
36
36
|
const originalValue = style[originalProp];
|
|
37
37
|
let prop = originalProp;
|
|
38
38
|
let value = originalValue;
|
|
39
|
-
if (
|
|
39
|
+
if (originalValue == null) {
|
|
40
40
|
continue;
|
|
41
41
|
}
|
|
42
42
|
if (prop === "shadowColor" || prop === "shadowOffset" || prop === "shadowOpacity" || prop === "shadowRadius") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preprocess.js","names":[],"sources":["esm/StyleSheet/preprocess.js"],"sourcesContent":["import { normalizeColor } from \"./compiler/normalizeColor\";\nimport { normalizeValueWithProperty } from \"./compiler/normalizeValueWithProperty\";\nconst emptyObject = {};\nconst defaultOffset = { height: 0, width: 0 };\nconst createBoxShadowValue = (style) => {\n const { shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style;\n const { height, width } = shadowOffset || defaultOffset;\n const offsetX = normalizeValueWithProperty(width);\n const offsetY = normalizeValueWithProperty(height);\n const blurRadius = normalizeValueWithProperty(shadowRadius || 0);\n const color = normalizeColor(shadowColor || \"black\", shadowOpacity);\n if (color != null && offsetX != null && offsetY != null && blurRadius != null) {\n return `${offsetX} ${offsetY} ${blurRadius} ${color}`;\n }\n};\nconst createTextShadowValue = (style) => {\n const { textShadowColor, textShadowOffset, textShadowRadius } = style;\n const { height, width } = textShadowOffset || defaultOffset;\n const radius = textShadowRadius || 0;\n const offsetX = normalizeValueWithProperty(width);\n const offsetY = normalizeValueWithProperty(height);\n const blurRadius = normalizeValueWithProperty(radius);\n const color = normalizeValueWithProperty(textShadowColor, \"textShadowColor\");\n if (color && (height !== 0 || width !== 0 || radius !== 0) && offsetX != null && offsetY != null && blurRadius != null) {\n return `${offsetX} ${offsetY} ${blurRadius} ${color}`;\n }\n};\nconst preprocess = (originalStyle) => {\n const style = originalStyle || emptyObject;\n const nextStyle = {};\n for (const originalProp in style) {\n const originalValue = style[originalProp];\n let prop = originalProp;\n let value = originalValue;\n if (
|
|
1
|
+
{"version":3,"file":"preprocess.js","names":[],"sources":["esm/StyleSheet/preprocess.js"],"sourcesContent":["import { normalizeColor } from \"./compiler/normalizeColor\";\nimport { normalizeValueWithProperty } from \"./compiler/normalizeValueWithProperty\";\nconst emptyObject = {};\nconst defaultOffset = { height: 0, width: 0 };\nconst createBoxShadowValue = (style) => {\n const { shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style;\n const { height, width } = shadowOffset || defaultOffset;\n const offsetX = normalizeValueWithProperty(width);\n const offsetY = normalizeValueWithProperty(height);\n const blurRadius = normalizeValueWithProperty(shadowRadius || 0);\n const color = normalizeColor(shadowColor || \"black\", shadowOpacity);\n if (color != null && offsetX != null && offsetY != null && blurRadius != null) {\n return `${offsetX} ${offsetY} ${blurRadius} ${color}`;\n }\n};\nconst createTextShadowValue = (style) => {\n const { textShadowColor, textShadowOffset, textShadowRadius } = style;\n const { height, width } = textShadowOffset || defaultOffset;\n const radius = textShadowRadius || 0;\n const offsetX = normalizeValueWithProperty(width);\n const offsetY = normalizeValueWithProperty(height);\n const blurRadius = normalizeValueWithProperty(radius);\n const color = normalizeValueWithProperty(textShadowColor, \"textShadowColor\");\n if (color && (height !== 0 || width !== 0 || radius !== 0) && offsetX != null && offsetY != null && blurRadius != null) {\n return `${offsetX} ${offsetY} ${blurRadius} ${color}`;\n }\n};\nconst preprocess = (originalStyle) => {\n const style = originalStyle || emptyObject;\n const nextStyle = {};\n for (const originalProp in style) {\n const originalValue = style[originalProp];\n let prop = originalProp;\n let value = originalValue;\n if (originalValue == null) {\n continue;\n }\n if (prop === \"shadowColor\" || prop === \"shadowOffset\" || prop === \"shadowOpacity\" || prop === \"shadowRadius\") {\n const boxShadowValue = createBoxShadowValue(style);\n if (boxShadowValue != null && nextStyle.boxShadow == null) {\n const { boxShadow } = style;\n prop = \"boxShadow\";\n value = boxShadow ? `${boxShadow}, ${boxShadowValue}` : boxShadowValue;\n } else {\n continue;\n }\n }\n if (prop === \"textShadowColor\" || prop === \"textShadowOffset\" || prop === \"textShadowRadius\") {\n const textShadowValue = createTextShadowValue(style);\n if (textShadowValue != null && nextStyle.textShadow == null) {\n const { textShadow } = style;\n prop = \"textShadow\";\n value = textShadow ? `${textShadow}, ${textShadowValue}` : textShadowValue;\n } else {\n continue;\n }\n }\n nextStyle[prop] = value;\n }\n return nextStyle;\n};\nconst processStyle = preprocess;\nexport {\n createBoxShadowValue,\n createTextShadowValue,\n preprocess,\n processStyle\n};\n//# sourceMappingURL=preprocess.js.map\n"],"mappings":";;;;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,gBAAgB;CAAE,QAAQ;CAAG,OAAO;AAAE;AAC5C,MAAM,wBAAwB,UAAU;CACtC,MAAM,EAAE,aAAa,cAAc,eAAe,iBAAiB;CACnE,MAAM,EAAE,QAAQ,UAAU,gBAAgB;CAC1C,MAAM,UAAU,2BAA2B,KAAK;CAChD,MAAM,UAAU,2BAA2B,MAAM;CACjD,MAAM,aAAa,2BAA2B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MAAM;IAC3D,MAAM,EAAE,eAAe;IACvB,OAAO;IACP,QAAQ,aAAa,GAAG,WAAW,IAAI,oBAAoB;GAC7D,OAAO;IACL;GACF;EACF;EACA,UAAU,QAAQ;CACpB;CACA,OAAO;AACT;AACA,MAAM,eAAe"}
|
|
@@ -2,7 +2,6 @@ import { getCSSStylesAtomic } from "@tamagui/web";
|
|
|
2
2
|
import { AccessibilityUtil } from "../AccessibilityUtil/index.mjs";
|
|
3
3
|
|
|
4
4
|
const emptyObject = {};
|
|
5
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6
5
|
const isArray = Array.isArray;
|
|
7
6
|
const reactNativeOnlyProps = {
|
|
8
7
|
collapsable: true,
|
|
@@ -69,9 +68,7 @@ function flattenStyle(style) {
|
|
|
69
68
|
const computedStyle = flattenStyle(style[i]);
|
|
70
69
|
if (computedStyle) {
|
|
71
70
|
for (const key in computedStyle) {
|
|
72
|
-
|
|
73
|
-
result[key] = computedStyle[key];
|
|
74
|
-
}
|
|
71
|
+
result[key] = computedStyle[key];
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
74
|
}
|
|
@@ -242,12 +239,10 @@ const createDOMProps = (elementType, props, options) => {
|
|
|
242
239
|
if (dataSet != null) {
|
|
243
240
|
for (const dataProp in dataSet) {
|
|
244
241
|
if (dataProp === "className" || dataProp === "id") continue;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
domProps[`data-${dataName}`] = dataValue;
|
|
250
|
-
}
|
|
242
|
+
const dataName = hyphenateString(dataProp);
|
|
243
|
+
const dataValue = dataSet[dataProp];
|
|
244
|
+
if (dataValue != null) {
|
|
245
|
+
domProps[`data-${dataName}`] = dataValue;
|
|
251
246
|
}
|
|
252
247
|
}
|
|
253
248
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/createDOMProps/index.js"],"sourcesContent":["import { getCSSStylesAtomic } from \"@tamagui/web\";\nimport { AccessibilityUtil } from \"../AccessibilityUtil/index\";\nconst emptyObject = {};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst isArray = Array.isArray;\nconst reactNativeOnlyProps = {\n collapsable: true,\n contentContainerStyle: true,\n contentOffset: true,\n decelerationRate: true,\n focusable: true,\n maintainVisibleContentPosition: true,\n onLayout: true,\n onMomentumScrollBegin: true,\n onMomentumScrollEnd: true,\n onMoveShouldSetResponder: true,\n onMoveShouldSetResponderCapture: true,\n onResponderEnd: true,\n onResponderGrant: true,\n onResponderMove: true,\n onResponderReject: true,\n onResponderRelease: true,\n onResponderStart: true,\n onResponderTerminate: true,\n onResponderTerminationRequest: true,\n onScrollBeginDrag: true,\n onScrollEndDrag: true,\n onScrollShouldSetResponder: true,\n onScrollShouldSetResponderCapture: true,\n onSelectionChangeShouldSetResponder: true,\n onSelectionChangeShouldSetResponderCapture: true,\n onStartShouldSetResponder: true,\n onStartShouldSetResponderCapture: true,\n refreshControl: true,\n removeClippedSubviews: true,\n scrollEnabled: true,\n scrollEventThrottle: true,\n scrollIndicatorInsets: true,\n showsHorizontalScrollIndicator: true,\n showsVerticalScrollIndicator: true,\n snapToAlignment: true,\n snapToEnd: true,\n snapToInterval: true,\n snapToOffsets: true,\n snapToStart: true,\n stickyHeaderIndices: true,\n ScrollComponent: true\n};\nconst uppercasePattern = /[A-Z]/g;\nfunction toHyphenLower(match) {\n return \"-\" + match.toLowerCase();\n}\nfunction hyphenateString(str) {\n return str.replace(uppercasePattern, toHyphenLower);\n}\nfunction processIDRefList(idRefList) {\n return isArray(idRefList) ? idRefList.join(\" \") : idRefList;\n}\nfunction flattenStyle(style) {\n if (style === null || typeof style !== \"object\") {\n return void 0;\n }\n if (!isArray(style)) {\n return style;\n }\n const result = {};\n for (let i = 0, styleLength = style.length; i < styleLength; ++i) {\n const computedStyle = flattenStyle(style[i]);\n if (computedStyle) {\n for (const key in computedStyle) {\n if (hasOwnProperty.call(computedStyle, key)) {\n result[key] = computedStyle[key];\n }\n }\n }\n }\n return result;\n}\nconst stylesFromProps = /* @__PURE__ */ new WeakMap();\nconst createDOMProps = (elementType, props, options) => {\n if (!props) {\n props = emptyObject;\n }\n const {\n accessibilityActiveDescendant,\n accessibilityAtomic,\n accessibilityAutoComplete,\n accessibilityBusy,\n accessibilityChecked,\n accessibilityColumnCount,\n accessibilityColumnIndex,\n accessibilityColumnSpan,\n accessibilityControls,\n accessibilityCurrent,\n accessibilityDescribedBy,\n accessibilityDetails,\n accessibilityDisabled,\n accessibilityErrorMessage,\n accessibilityExpanded,\n accessibilityFlowTo,\n accessibilityHasPopup,\n accessibilityHidden,\n accessibilityInvalid,\n accessibilityKeyShortcuts,\n accessibilityLabel,\n accessibilityLabelledBy,\n accessibilityLevel,\n accessibilityLiveRegion,\n accessibilityModal,\n accessibilityMultiline,\n accessibilityMultiSelectable,\n accessibilityOrientation,\n accessibilityOwns,\n accessibilityPlaceholder,\n accessibilityPosInSet,\n accessibilityPressed,\n accessibilityReadOnly,\n accessibilityRequired,\n /* eslint-disable */\n accessibilityRole,\n /* eslint-enable */\n accessibilityRoleDescription,\n accessibilityRowCount,\n accessibilityRowIndex,\n accessibilityRowSpan,\n accessibilitySelected,\n accessibilitySetSize,\n accessibilitySort,\n accessibilityValueMax,\n accessibilityValueMin,\n accessibilityValueNow,\n accessibilityValueText,\n dataSet,\n nativeID,\n pointerEvents,\n style,\n testID,\n id,\n // Rest\n ...domProps\n } = props;\n for (const key in domProps) {\n if (reactNativeOnlyProps[key]) {\n delete domProps[key];\n }\n }\n const disabled = accessibilityDisabled;\n const role = AccessibilityUtil.propsToAriaRole(props);\n if (accessibilityActiveDescendant != null) {\n domProps[\"aria-activedescendant\"] = accessibilityActiveDescendant;\n }\n if (accessibilityAtomic != null) {\n domProps[\"aria-atomic\"] = accessibilityAtomic;\n }\n if (accessibilityAutoComplete != null) {\n domProps[\"aria-autocomplete\"] = accessibilityAutoComplete;\n }\n if (accessibilityBusy != null) {\n domProps[\"aria-busy\"] = accessibilityBusy;\n }\n if (accessibilityChecked != null) {\n domProps[\"aria-checked\"] = accessibilityChecked;\n }\n if (accessibilityColumnCount != null) {\n domProps[\"aria-colcount\"] = accessibilityColumnCount;\n }\n if (accessibilityColumnIndex != null) {\n domProps[\"aria-colindex\"] = accessibilityColumnIndex;\n }\n if (accessibilityColumnSpan != null) {\n domProps[\"aria-colspan\"] = accessibilityColumnSpan;\n }\n if (accessibilityControls != null) {\n domProps[\"aria-controls\"] = processIDRefList(accessibilityControls);\n }\n if (accessibilityCurrent != null) {\n domProps[\"aria-current\"] = accessibilityCurrent;\n }\n if (accessibilityDescribedBy != null) {\n domProps[\"aria-describedby\"] = processIDRefList(accessibilityDescribedBy);\n }\n if (accessibilityDetails != null) {\n domProps[\"aria-details\"] = accessibilityDetails;\n }\n if (disabled === true) {\n domProps[\"aria-disabled\"] = true;\n if (elementType === \"button\" || elementType === \"form\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.disabled = true;\n }\n }\n if (accessibilityErrorMessage != null) {\n domProps[\"aria-errormessage\"] = accessibilityErrorMessage;\n }\n if (accessibilityExpanded != null) {\n domProps[\"aria-expanded\"] = accessibilityExpanded;\n }\n if (accessibilityFlowTo != null) {\n domProps[\"aria-flowto\"] = processIDRefList(accessibilityFlowTo);\n }\n if (accessibilityHasPopup != null) {\n domProps[\"aria-haspopup\"] = accessibilityHasPopup;\n }\n if (accessibilityHidden === true) {\n domProps[\"aria-hidden\"] = accessibilityHidden;\n }\n if (accessibilityInvalid != null) {\n domProps[\"aria-invalid\"] = accessibilityInvalid;\n }\n if (accessibilityKeyShortcuts != null && Array.isArray(accessibilityKeyShortcuts)) {\n domProps[\"aria-keyshortcuts\"] = accessibilityKeyShortcuts.join(\" \");\n }\n if (accessibilityLabel != null) {\n domProps[\"aria-label\"] = accessibilityLabel;\n }\n if (accessibilityLabelledBy != null) {\n domProps[\"aria-labelledby\"] = processIDRefList(accessibilityLabelledBy);\n }\n if (accessibilityLevel != null) {\n domProps[\"aria-level\"] = accessibilityLevel;\n }\n if (accessibilityLiveRegion != null) {\n domProps[\"aria-live\"] = accessibilityLiveRegion === \"none\" ? \"off\" : accessibilityLiveRegion;\n }\n if (accessibilityModal != null) {\n domProps[\"aria-modal\"] = accessibilityModal;\n }\n if (accessibilityMultiline != null) {\n domProps[\"aria-multiline\"] = accessibilityMultiline;\n }\n if (accessibilityMultiSelectable != null) {\n domProps[\"aria-multiselectable\"] = accessibilityMultiSelectable;\n }\n if (accessibilityOrientation != null) {\n domProps[\"aria-orientation\"] = accessibilityOrientation;\n }\n if (accessibilityOwns != null) {\n domProps[\"aria-owns\"] = processIDRefList(accessibilityOwns);\n }\n if (accessibilityPlaceholder != null) {\n domProps[\"aria-placeholder\"] = accessibilityPlaceholder;\n }\n if (accessibilityPosInSet != null) {\n domProps[\"aria-posinset\"] = accessibilityPosInSet;\n }\n if (accessibilityPressed != null) {\n domProps[\"aria-pressed\"] = accessibilityPressed;\n }\n if (accessibilityReadOnly != null) {\n domProps[\"aria-readonly\"] = accessibilityReadOnly;\n if (elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.readOnly = true;\n }\n }\n if (accessibilityRequired != null) {\n domProps[\"aria-required\"] = accessibilityRequired;\n if (elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.required = true;\n }\n }\n if (role != null) {\n domProps[\"role\"] = role === \"none\" ? \"presentation\" : role;\n }\n if (accessibilityRoleDescription != null) {\n domProps[\"aria-roledescription\"] = accessibilityRoleDescription;\n }\n if (accessibilityRowCount != null) {\n domProps[\"aria-rowcount\"] = accessibilityRowCount;\n }\n if (accessibilityRowIndex != null) {\n domProps[\"aria-rowindex\"] = accessibilityRowIndex;\n }\n if (accessibilityRowSpan != null) {\n domProps[\"aria-rowspan\"] = accessibilityRowSpan;\n }\n if (accessibilitySelected != null) {\n domProps[\"aria-selected\"] = accessibilitySelected;\n }\n if (accessibilitySetSize != null) {\n domProps[\"aria-setsize\"] = accessibilitySetSize;\n }\n if (accessibilitySort != null) {\n domProps[\"aria-sort\"] = accessibilitySort;\n }\n if (accessibilityValueMax != null) {\n domProps[\"aria-valuemax\"] = accessibilityValueMax;\n }\n if (accessibilityValueMin != null) {\n domProps[\"aria-valuemin\"] = accessibilityValueMin;\n }\n if (accessibilityValueNow != null) {\n domProps[\"aria-valuenow\"] = accessibilityValueNow;\n }\n if (accessibilityValueText != null) {\n domProps[\"aria-valuetext\"] = accessibilityValueText;\n }\n const tmgCN = dataSet ? dataSet.className : void 0;\n const tmgID = dataSet ? dataSet.id : void 0;\n if (dataSet != null) {\n for (const dataProp in dataSet) {\n if (dataProp === \"className\" || dataProp === \"id\") continue;\n if (hasOwnProperty.call(dataSet, dataProp)) {\n const dataName = hyphenateString(dataProp);\n const dataValue = dataSet[dataProp];\n if (dataValue != null) {\n domProps[`data-${dataName}`] = dataValue;\n }\n }\n }\n }\n if (\n // These native elements are keyboard focusable by default\n elementType === \"a\" || elementType === \"button\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\"\n ) {\n if (accessibilityDisabled === true) {\n domProps.tabIndex = \"-1\";\n }\n } else if (\n // These roles are made keyboard focusable by default\n role === \"button\" || role === \"checkbox\" || role === \"link\" || role === \"radio\" || role === \"textbox\" || role === \"switch\"\n ) {\n if (domProps.tabIndex == null) {\n domProps.tabIndex = \"0\";\n }\n }\n const flat = flattenStyle(style);\n let className = tmgCN || \"\";\n if (props.className) {\n className += ` ${props.className}`;\n }\n const stylesAtomic = flat ? getCSSStylesAtomic(flat) : [];\n stylesFromProps.set(domProps, stylesAtomic);\n domProps.style = stylesAtomic.reduce((acc, [key, value]) => {\n if (key[0] === \"_\" || key.startsWith(\"is_\") || key.startsWith(\"font_\")) {\n className += ` ${key}`;\n return acc;\n }\n if (key === \"$$css\" || key === \"\") {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n if (className) {\n domProps.className = className;\n }\n const _id = tmgID || id || nativeID;\n if (_id) {\n domProps.id = _id;\n }\n if (testID != null) {\n domProps[\"data-testid\"] = testID;\n }\n return domProps;\n};\nexport {\n createDOMProps,\n stylesFromProps\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,iBAAiB,OAAO,UAAU;AACxC,MAAM,UAAU,MAAM;AACtB,MAAM,uBAAuB;CAC3B,aAAa;CACb,uBAAuB;CACvB,eAAe;CACf,kBAAkB;CAClB,WAAW;CACX,gCAAgC;CAChC,UAAU;CACV,uBAAuB;CACvB,qBAAqB;CACrB,0BAA0B;CAC1B,iCAAiC;CACjC,gBAAgB;CAChB,kBAAkB;CAClB,iBAAiB;CACjB,mBAAmB;CACnB,oBAAoB;CACpB,kBAAkB;CAClB,sBAAsB;CACtB,+BAA+B;CAC/B,mBAAmB;CACnB,iBAAiB;CACjB,4BAA4B;CAC5B,mCAAmC;CACnC,qCAAqC;CACrC,4CAA4C;CAC5C,2BAA2B;CAC3B,kCAAkC;CAClC,gBAAgB;CAChB,uBAAuB;CACvB,eAAe;CACf,qBAAqB;CACrB,uBAAuB;CACvB,gCAAgC;CAChC,8BAA8B;CAC9B,iBAAiB;CACjB,WAAW;CACX,gBAAgB;CAChB,eAAe;CACf,aAAa;CACb,qBAAqB;CACrB,iBAAiB;AACnB;AACA,MAAM,mBAAmB;AACzB,SAAS,cAAc,OAAO;CAC5B,OAAO,MAAM,MAAM,YAAY;AACjC;AACA,SAAS,gBAAgB,KAAK;CAC5B,OAAO,IAAI,QAAQ,kBAAkB,aAAa;AACpD;AACA,SAAS,iBAAiB,WAAW;CACnC,OAAO,QAAQ,SAAS,IAAI,UAAU,KAAK,GAAG,IAAI;AACpD;AACA,SAAS,aAAa,OAAO;CAC3B,IAAI,UAAU,QAAQ,OAAO,UAAU,UAAU;EAC/C,OAAO,KAAK;CACd;CACA,IAAI,CAAC,QAAQ,KAAK,GAAG;EACnB,OAAO;CACT;CACA,MAAM,SAAS,CAAC;CAChB,KAAK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I,UAAU,MAAM;EAClB,SAAS,iBAAiB;CAC5B;CACA,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/createDOMProps/index.js"],"sourcesContent":["import { getCSSStylesAtomic } from \"@tamagui/web\";\nimport { AccessibilityUtil } from \"../AccessibilityUtil/index\";\nconst emptyObject = {};\nconst isArray = Array.isArray;\nconst reactNativeOnlyProps = {\n collapsable: true,\n contentContainerStyle: true,\n contentOffset: true,\n decelerationRate: true,\n focusable: true,\n maintainVisibleContentPosition: true,\n onLayout: true,\n onMomentumScrollBegin: true,\n onMomentumScrollEnd: true,\n onMoveShouldSetResponder: true,\n onMoveShouldSetResponderCapture: true,\n onResponderEnd: true,\n onResponderGrant: true,\n onResponderMove: true,\n onResponderReject: true,\n onResponderRelease: true,\n onResponderStart: true,\n onResponderTerminate: true,\n onResponderTerminationRequest: true,\n onScrollBeginDrag: true,\n onScrollEndDrag: true,\n onScrollShouldSetResponder: true,\n onScrollShouldSetResponderCapture: true,\n onSelectionChangeShouldSetResponder: true,\n onSelectionChangeShouldSetResponderCapture: true,\n onStartShouldSetResponder: true,\n onStartShouldSetResponderCapture: true,\n refreshControl: true,\n removeClippedSubviews: true,\n scrollEnabled: true,\n scrollEventThrottle: true,\n scrollIndicatorInsets: true,\n showsHorizontalScrollIndicator: true,\n showsVerticalScrollIndicator: true,\n snapToAlignment: true,\n snapToEnd: true,\n snapToInterval: true,\n snapToOffsets: true,\n snapToStart: true,\n stickyHeaderIndices: true,\n ScrollComponent: true\n};\nconst uppercasePattern = /[A-Z]/g;\nfunction toHyphenLower(match) {\n return \"-\" + match.toLowerCase();\n}\nfunction hyphenateString(str) {\n return str.replace(uppercasePattern, toHyphenLower);\n}\nfunction processIDRefList(idRefList) {\n return isArray(idRefList) ? idRefList.join(\" \") : idRefList;\n}\nfunction flattenStyle(style) {\n if (style === null || typeof style !== \"object\") {\n return void 0;\n }\n if (!isArray(style)) {\n return style;\n }\n const result = {};\n for (let i = 0, styleLength = style.length; i < styleLength; ++i) {\n const computedStyle = flattenStyle(style[i]);\n if (computedStyle) {\n for (const key in computedStyle) {\n result[key] = computedStyle[key];\n }\n }\n }\n return result;\n}\nconst stylesFromProps = /* @__PURE__ */ new WeakMap();\nconst createDOMProps = (elementType, props, options) => {\n if (!props) {\n props = emptyObject;\n }\n const {\n accessibilityActiveDescendant,\n accessibilityAtomic,\n accessibilityAutoComplete,\n accessibilityBusy,\n accessibilityChecked,\n accessibilityColumnCount,\n accessibilityColumnIndex,\n accessibilityColumnSpan,\n accessibilityControls,\n accessibilityCurrent,\n accessibilityDescribedBy,\n accessibilityDetails,\n accessibilityDisabled,\n accessibilityErrorMessage,\n accessibilityExpanded,\n accessibilityFlowTo,\n accessibilityHasPopup,\n accessibilityHidden,\n accessibilityInvalid,\n accessibilityKeyShortcuts,\n accessibilityLabel,\n accessibilityLabelledBy,\n accessibilityLevel,\n accessibilityLiveRegion,\n accessibilityModal,\n accessibilityMultiline,\n accessibilityMultiSelectable,\n accessibilityOrientation,\n accessibilityOwns,\n accessibilityPlaceholder,\n accessibilityPosInSet,\n accessibilityPressed,\n accessibilityReadOnly,\n accessibilityRequired,\n /* eslint-disable */\n accessibilityRole,\n /* eslint-enable */\n accessibilityRoleDescription,\n accessibilityRowCount,\n accessibilityRowIndex,\n accessibilityRowSpan,\n accessibilitySelected,\n accessibilitySetSize,\n accessibilitySort,\n accessibilityValueMax,\n accessibilityValueMin,\n accessibilityValueNow,\n accessibilityValueText,\n dataSet,\n nativeID,\n pointerEvents,\n style,\n testID,\n id,\n // Rest\n ...domProps\n } = props;\n for (const key in domProps) {\n if (reactNativeOnlyProps[key]) {\n delete domProps[key];\n }\n }\n const disabled = accessibilityDisabled;\n const role = AccessibilityUtil.propsToAriaRole(props);\n if (accessibilityActiveDescendant != null) {\n domProps[\"aria-activedescendant\"] = accessibilityActiveDescendant;\n }\n if (accessibilityAtomic != null) {\n domProps[\"aria-atomic\"] = accessibilityAtomic;\n }\n if (accessibilityAutoComplete != null) {\n domProps[\"aria-autocomplete\"] = accessibilityAutoComplete;\n }\n if (accessibilityBusy != null) {\n domProps[\"aria-busy\"] = accessibilityBusy;\n }\n if (accessibilityChecked != null) {\n domProps[\"aria-checked\"] = accessibilityChecked;\n }\n if (accessibilityColumnCount != null) {\n domProps[\"aria-colcount\"] = accessibilityColumnCount;\n }\n if (accessibilityColumnIndex != null) {\n domProps[\"aria-colindex\"] = accessibilityColumnIndex;\n }\n if (accessibilityColumnSpan != null) {\n domProps[\"aria-colspan\"] = accessibilityColumnSpan;\n }\n if (accessibilityControls != null) {\n domProps[\"aria-controls\"] = processIDRefList(accessibilityControls);\n }\n if (accessibilityCurrent != null) {\n domProps[\"aria-current\"] = accessibilityCurrent;\n }\n if (accessibilityDescribedBy != null) {\n domProps[\"aria-describedby\"] = processIDRefList(accessibilityDescribedBy);\n }\n if (accessibilityDetails != null) {\n domProps[\"aria-details\"] = accessibilityDetails;\n }\n if (disabled === true) {\n domProps[\"aria-disabled\"] = true;\n if (elementType === \"button\" || elementType === \"form\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.disabled = true;\n }\n }\n if (accessibilityErrorMessage != null) {\n domProps[\"aria-errormessage\"] = accessibilityErrorMessage;\n }\n if (accessibilityExpanded != null) {\n domProps[\"aria-expanded\"] = accessibilityExpanded;\n }\n if (accessibilityFlowTo != null) {\n domProps[\"aria-flowto\"] = processIDRefList(accessibilityFlowTo);\n }\n if (accessibilityHasPopup != null) {\n domProps[\"aria-haspopup\"] = accessibilityHasPopup;\n }\n if (accessibilityHidden === true) {\n domProps[\"aria-hidden\"] = accessibilityHidden;\n }\n if (accessibilityInvalid != null) {\n domProps[\"aria-invalid\"] = accessibilityInvalid;\n }\n if (accessibilityKeyShortcuts != null && Array.isArray(accessibilityKeyShortcuts)) {\n domProps[\"aria-keyshortcuts\"] = accessibilityKeyShortcuts.join(\" \");\n }\n if (accessibilityLabel != null) {\n domProps[\"aria-label\"] = accessibilityLabel;\n }\n if (accessibilityLabelledBy != null) {\n domProps[\"aria-labelledby\"] = processIDRefList(accessibilityLabelledBy);\n }\n if (accessibilityLevel != null) {\n domProps[\"aria-level\"] = accessibilityLevel;\n }\n if (accessibilityLiveRegion != null) {\n domProps[\"aria-live\"] = accessibilityLiveRegion === \"none\" ? \"off\" : accessibilityLiveRegion;\n }\n if (accessibilityModal != null) {\n domProps[\"aria-modal\"] = accessibilityModal;\n }\n if (accessibilityMultiline != null) {\n domProps[\"aria-multiline\"] = accessibilityMultiline;\n }\n if (accessibilityMultiSelectable != null) {\n domProps[\"aria-multiselectable\"] = accessibilityMultiSelectable;\n }\n if (accessibilityOrientation != null) {\n domProps[\"aria-orientation\"] = accessibilityOrientation;\n }\n if (accessibilityOwns != null) {\n domProps[\"aria-owns\"] = processIDRefList(accessibilityOwns);\n }\n if (accessibilityPlaceholder != null) {\n domProps[\"aria-placeholder\"] = accessibilityPlaceholder;\n }\n if (accessibilityPosInSet != null) {\n domProps[\"aria-posinset\"] = accessibilityPosInSet;\n }\n if (accessibilityPressed != null) {\n domProps[\"aria-pressed\"] = accessibilityPressed;\n }\n if (accessibilityReadOnly != null) {\n domProps[\"aria-readonly\"] = accessibilityReadOnly;\n if (elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.readOnly = true;\n }\n }\n if (accessibilityRequired != null) {\n domProps[\"aria-required\"] = accessibilityRequired;\n if (elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\") {\n domProps.required = true;\n }\n }\n if (role != null) {\n domProps[\"role\"] = role === \"none\" ? \"presentation\" : role;\n }\n if (accessibilityRoleDescription != null) {\n domProps[\"aria-roledescription\"] = accessibilityRoleDescription;\n }\n if (accessibilityRowCount != null) {\n domProps[\"aria-rowcount\"] = accessibilityRowCount;\n }\n if (accessibilityRowIndex != null) {\n domProps[\"aria-rowindex\"] = accessibilityRowIndex;\n }\n if (accessibilityRowSpan != null) {\n domProps[\"aria-rowspan\"] = accessibilityRowSpan;\n }\n if (accessibilitySelected != null) {\n domProps[\"aria-selected\"] = accessibilitySelected;\n }\n if (accessibilitySetSize != null) {\n domProps[\"aria-setsize\"] = accessibilitySetSize;\n }\n if (accessibilitySort != null) {\n domProps[\"aria-sort\"] = accessibilitySort;\n }\n if (accessibilityValueMax != null) {\n domProps[\"aria-valuemax\"] = accessibilityValueMax;\n }\n if (accessibilityValueMin != null) {\n domProps[\"aria-valuemin\"] = accessibilityValueMin;\n }\n if (accessibilityValueNow != null) {\n domProps[\"aria-valuenow\"] = accessibilityValueNow;\n }\n if (accessibilityValueText != null) {\n domProps[\"aria-valuetext\"] = accessibilityValueText;\n }\n const tmgCN = dataSet ? dataSet.className : void 0;\n const tmgID = dataSet ? dataSet.id : void 0;\n if (dataSet != null) {\n for (const dataProp in dataSet) {\n if (dataProp === \"className\" || dataProp === \"id\") continue;\n const dataName = hyphenateString(dataProp);\n const dataValue = dataSet[dataProp];\n if (dataValue != null) {\n domProps[`data-${dataName}`] = dataValue;\n }\n }\n }\n if (\n // These native elements are keyboard focusable by default\n elementType === \"a\" || elementType === \"button\" || elementType === \"input\" || elementType === \"select\" || elementType === \"textarea\"\n ) {\n if (accessibilityDisabled === true) {\n domProps.tabIndex = \"-1\";\n }\n } else if (\n // These roles are made keyboard focusable by default\n role === \"button\" || role === \"checkbox\" || role === \"link\" || role === \"radio\" || role === \"textbox\" || role === \"switch\"\n ) {\n if (domProps.tabIndex == null) {\n domProps.tabIndex = \"0\";\n }\n }\n const flat = flattenStyle(style);\n let className = tmgCN || \"\";\n if (props.className) {\n className += ` ${props.className}`;\n }\n const stylesAtomic = flat ? getCSSStylesAtomic(flat) : [];\n stylesFromProps.set(domProps, stylesAtomic);\n domProps.style = stylesAtomic.reduce((acc, [key, value]) => {\n if (key[0] === \"_\" || key.startsWith(\"is_\") || key.startsWith(\"font_\")) {\n className += ` ${key}`;\n return acc;\n }\n if (key === \"$$css\" || key === \"\") {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n if (className) {\n domProps.className = className;\n }\n const _id = tmgID || id || nativeID;\n if (_id) {\n domProps.id = _id;\n }\n if (testID != null) {\n domProps[\"data-testid\"] = testID;\n }\n return domProps;\n};\nexport {\n createDOMProps,\n stylesFromProps\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,UAAU,MAAM;AACtB,MAAM,uBAAuB;CAC3B,aAAa;CACb,uBAAuB;CACvB,eAAe;CACf,kBAAkB;CAClB,WAAW;CACX,gCAAgC;CAChC,UAAU;CACV,uBAAuB;CACvB,qBAAqB;CACrB,0BAA0B;CAC1B,iCAAiC;CACjC,gBAAgB;CAChB,kBAAkB;CAClB,iBAAiB;CACjB,mBAAmB;CACnB,oBAAoB;CACpB,kBAAkB;CAClB,sBAAsB;CACtB,+BAA+B;CAC/B,mBAAmB;CACnB,iBAAiB;CACjB,4BAA4B;CAC5B,mCAAmC;CACnC,qCAAqC;CACrC,4CAA4C;CAC5C,2BAA2B;CAC3B,kCAAkC;CAClC,gBAAgB;CAChB,uBAAuB;CACvB,eAAe;CACf,qBAAqB;CACrB,uBAAuB;CACvB,gCAAgC;CAChC,8BAA8B;CAC9B,iBAAiB;CACjB,WAAW;CACX,gBAAgB;CAChB,eAAe;CACf,aAAa;CACb,qBAAqB;CACrB,iBAAiB;AACnB;AACA,MAAM,mBAAmB;AACzB,SAAS,cAAc,OAAO;CAC5B,OAAO,MAAM,MAAM,YAAY;AACjC;AACA,SAAS,gBAAgB,KAAK;CAC5B,OAAO,IAAI,QAAQ,kBAAkB,aAAa;AACpD;AACA,SAAS,iBAAiB,WAAW;CACnC,OAAO,QAAQ,SAAS,IAAI,UAAU,KAAK,GAAG,IAAI;AACpD;AACA,SAAS,aAAa,OAAO;CAC3B,IAAI,UAAU,QAAQ,OAAO,UAAU,UAAU;EAC/C,OAAO,KAAK;CACd;CACA,IAAI,CAAC,QAAQ,KAAK,GAAG;EACnB,OAAO;CACT;CACA,MAAM,SAAS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|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/pick/index.js"],"sourcesContent":["function pick(obj, list) {\n const nextObj = {};\n for (const key in obj) {\n if (
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/pick/index.js"],"sourcesContent":["function pick(obj, list) {\n const nextObj = {};\n for (const key in obj) {\n if (list[key] === true) {\n nextObj[key] = obj[key];\n }\n }\n return nextObj;\n}\nexport {\n pick\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,SAAS,KAAK,KAAK,MAAM;CACvB,MAAM,UAAU,CAAC;CACjB,KAAK,MAAM,OAAO,KAAK;EACrB,IAAI,KAAK,SAAS,MAAM;GACtB,QAAQ,OAAO,IAAI;EACrB;CACF;CACA,OAAO;AACT"}
|
|
@@ -22,7 +22,7 @@ function dangerousStyleValue(name, value, isCustomProperty) {
|
|
|
22
22
|
return `${key}(${normalizeValueWithProperty(val, key)})`;
|
|
23
23
|
}).join(" ");
|
|
24
24
|
}
|
|
25
|
-
if (!isCustomProperty && typeof value === "number" && value !== 0 && !
|
|
25
|
+
if (!isCustomProperty && typeof value === "number" && value !== 0 && !unitlessNumbers[name]) {
|
|
26
26
|
return value + "px";
|
|
27
27
|
}
|
|
28
28
|
return ("" + value).trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dangerousStyleValue.js","names":["isUnitlessNumber"],"sources":["esm/modules/setValueForStyles/dangerousStyleValue.js"],"sourcesContent":["import { unitlessNumbers as isUnitlessNumber } from \"../unitlessNumbers/index\";\nimport { normalizeValueWithProperty } from \"../../StyleSheet/compiler/normalizeValueWithProperty\";\nfunction dangerousStyleValue(name, value, isCustomProperty) {\n var isEmpty = value == null || typeof value === \"boolean\" || value === \"\";\n if (isEmpty) {\n return \"\";\n }\n if (typeof value === \"object\" && typeof value.__getValue === \"function\") {\n value = value.__getValue();\n }\n if (name === \"transform\" && Array.isArray(value)) {\n return value.map((t) => {\n const key = Object.keys(t)[0];\n let val = t[key];\n if (typeof val === \"object\" && typeof val.__getValue === \"function\") {\n val = val.__getValue();\n }\n if (key === \"matrix\" || key === \"matrix3d\") {\n return `${key}(${val.join(\",\")})`;\n }\n return `${key}(${normalizeValueWithProperty(val, key)})`;\n }).join(\" \");\n }\n if (!isCustomProperty && typeof value === \"number\" && value !== 0 && !
|
|
1
|
+
{"version":3,"file":"dangerousStyleValue.js","names":["isUnitlessNumber"],"sources":["esm/modules/setValueForStyles/dangerousStyleValue.js"],"sourcesContent":["import { unitlessNumbers as isUnitlessNumber } from \"../unitlessNumbers/index\";\nimport { normalizeValueWithProperty } from \"../../StyleSheet/compiler/normalizeValueWithProperty\";\nfunction dangerousStyleValue(name, value, isCustomProperty) {\n var isEmpty = value == null || typeof value === \"boolean\" || value === \"\";\n if (isEmpty) {\n return \"\";\n }\n if (typeof value === \"object\" && typeof value.__getValue === \"function\") {\n value = value.__getValue();\n }\n if (name === \"transform\" && Array.isArray(value)) {\n return value.map((t) => {\n const key = Object.keys(t)[0];\n let val = t[key];\n if (typeof val === \"object\" && typeof val.__getValue === \"function\") {\n val = val.__getValue();\n }\n if (key === \"matrix\" || key === \"matrix3d\") {\n return `${key}(${val.join(\",\")})`;\n }\n return `${key}(${normalizeValueWithProperty(val, key)})`;\n }).join(\" \");\n }\n if (!isCustomProperty && typeof value === \"number\" && value !== 0 && !isUnitlessNumber[name]) {\n return value + \"px\";\n }\n return (\"\" + value).trim();\n}\nexport {\n dangerousStyleValue\n};\n//# sourceMappingURL=dangerousStyleValue.js.map\n"],"mappings":";;;;AAEA,SAAS,oBAAoB,MAAM,OAAO,kBAAkB;CAC1D,IAAI,UAAU,SAAS,QAAQ,OAAO,UAAU,aAAa,UAAU;CACvE,IAAI,SAAS;EACX,OAAO;CACT;CACA,IAAI,OAAO,UAAU,YAAY,OAAO,MAAM,eAAe,YAAY;EACvE,QAAQ,MAAM,WAAW;CAC3B;CACA,IAAI,SAAS,eAAe,MAAM,QAAQ,KAAK,GAAG;EAChD,OAAO,MAAM,KAAK,MAAM;GACtB,MAAM,MAAM,OAAO,KAAK,CAAC,CAAC,CAAC;GAC3B,IAAI,MAAM,EAAE;GACZ,IAAI,OAAO,QAAQ,YAAY,OAAO,IAAI,eAAe,YAAY;IACnE,MAAM,IAAI,WAAW;GACvB;GACA,IAAI,QAAQ,YAAY,QAAQ,YAAY;IAC1C,OAAO,GAAG,IAAI,GAAG,IAAI,KAAK,GAAG,EAAE;GACjC;GACA,OAAO,GAAG,IAAI,GAAG,2BAA2B,KAAK,GAAG,EAAE;EACxD,CAAC,CAAC,CAAC,KAAK,GAAG;CACb;CACA,IAAI,CAAC,oBAAoB,OAAO,UAAU,YAAY,UAAU,KAAK,CAACA,gBAAiB,OAAO;EAC5F,OAAO,QAAQ;CACjB;CACA,QAAQ,KAAK,MAAK,CAAE,KAAK;AAC3B"}
|
|
@@ -3,9 +3,6 @@ import { dangerousStyleValue } from "./dangerousStyleValue.mjs";
|
|
|
3
3
|
function setValueForStyles(node, styles) {
|
|
4
4
|
const style = node.style;
|
|
5
5
|
for (let styleName in styles) {
|
|
6
|
-
if (!styles.hasOwnProperty(styleName)) {
|
|
7
|
-
continue;
|
|
8
|
-
}
|
|
9
6
|
const isCustomProperty = styleName.indexOf("--") === 0;
|
|
10
7
|
const styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
|
|
11
8
|
if (styleName === "float") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/setValueForStyles/index.js"],"sourcesContent":["import { dangerousStyleValue } from \"./dangerousStyleValue\";\nfunction setValueForStyles(node, styles) {\n const style = node.style;\n for (let styleName in styles) {\n
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/modules/setValueForStyles/index.js"],"sourcesContent":["import { dangerousStyleValue } from \"./dangerousStyleValue\";\nfunction setValueForStyles(node, styles) {\n const style = node.style;\n for (let styleName in styles) {\n const isCustomProperty = styleName.indexOf(\"--\") === 0;\n const styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);\n if (styleName === \"float\") {\n styleName = \"cssFloat\";\n }\n if (isCustomProperty) {\n style.setProperty(styleName, styleValue);\n } else {\n style[styleName] = styleValue;\n }\n }\n}\nexport {\n setValueForStyles\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,SAAS,kBAAkB,MAAM,QAAQ;CACvC,MAAM,QAAQ,KAAK;CACnB,KAAK,IAAI,aAAa,QAAQ;EAC5B,MAAM,mBAAmB,UAAU,QAAQ,IAAI,MAAM;EACrD,MAAM,aAAa,oBAAoB,WAAW,OAAO,YAAY,gBAAgB;EACrF,IAAI,cAAc,SAAS;GACzB,YAAY;EACd;EACA,IAAI,kBAAkB;GACpB,MAAM,YAAY,WAAW,UAAU;EACzC,OAAO;GACL,MAAM,aAAa;EACrB;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/react-native-web-internals",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.881.1",
|
|
4
4
|
"description": "React Native for Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"clean:build": "tamagui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@tamagui/normalize-css-color": "3.0.0-beta.
|
|
40
|
-
"@tamagui/react-native-use-pressable": "3.0.0-beta.
|
|
41
|
-
"@tamagui/react-native-use-responder-events": "3.0.0-beta.
|
|
42
|
-
"@tamagui/simple-hash": "3.0.0-beta.
|
|
43
|
-
"@tamagui/use-element-layout": "3.0.0-beta.
|
|
44
|
-
"@tamagui/web": "3.0.0-beta.
|
|
39
|
+
"@tamagui/normalize-css-color": "3.0.0-beta.881.1",
|
|
40
|
+
"@tamagui/react-native-use-pressable": "3.0.0-beta.881.1",
|
|
41
|
+
"@tamagui/react-native-use-responder-events": "3.0.0-beta.881.1",
|
|
42
|
+
"@tamagui/simple-hash": "3.0.0-beta.881.1",
|
|
43
|
+
"@tamagui/use-element-layout": "3.0.0-beta.881.1",
|
|
44
|
+
"@tamagui/web": "3.0.0-beta.881.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@tamagui/build": "3.0.0-beta.
|
|
47
|
+
"@tamagui/build": "3.0.0-beta.881.1",
|
|
48
48
|
"react": "19.2.3",
|
|
49
49
|
"react-dom": "19.2.3"
|
|
50
50
|
},
|
|
@@ -249,10 +249,7 @@ export function inline(
|
|
|
249
249
|
let prop = originalProp
|
|
250
250
|
let value = originalValue
|
|
251
251
|
|
|
252
|
-
if (
|
|
253
|
-
!Object.prototype.hasOwnProperty.call(style, originalProp) ||
|
|
254
|
-
originalValue == null
|
|
255
|
-
) {
|
|
252
|
+
if (originalValue == null) {
|
|
256
253
|
continue
|
|
257
254
|
}
|
|
258
255
|
|
|
@@ -290,7 +287,7 @@ export function inline(
|
|
|
290
287
|
nextStyle[prop] = value
|
|
291
288
|
}
|
|
292
289
|
|
|
293
|
-
if (PROPERTIES_I18N
|
|
290
|
+
if (originalProp in PROPERTIES_I18N) {
|
|
294
291
|
frozenProps[prop] = true
|
|
295
292
|
}
|
|
296
293
|
}
|
|
@@ -11,7 +11,6 @@ import { getCSSStylesAtomic, type StyleObject } from '@tamagui/web'
|
|
|
11
11
|
import { AccessibilityUtil } from '../AccessibilityUtil/index'
|
|
12
12
|
|
|
13
13
|
const emptyObject = {}
|
|
14
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty
|
|
15
14
|
const isArray = Array.isArray
|
|
16
15
|
|
|
17
16
|
// react-native props that should be stripped before reaching the DOM
|
|
@@ -84,9 +83,7 @@ function flattenStyle(style: any): any {
|
|
|
84
83
|
const computedStyle = flattenStyle(style[i])
|
|
85
84
|
if (computedStyle) {
|
|
86
85
|
for (const key in computedStyle) {
|
|
87
|
-
|
|
88
|
-
result[key] = computedStyle[key]
|
|
89
|
-
}
|
|
86
|
+
result[key] = computedStyle[key]
|
|
90
87
|
}
|
|
91
88
|
}
|
|
92
89
|
}
|
|
@@ -347,12 +344,10 @@ export const createDOMProps = (elementType, props, options?) => {
|
|
|
347
344
|
if (dataSet != null) {
|
|
348
345
|
for (const dataProp in dataSet) {
|
|
349
346
|
if (dataProp === 'className' || dataProp === 'id') continue
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
domProps[`data-${dataName}`] = dataValue
|
|
355
|
-
}
|
|
347
|
+
const dataName = hyphenateString(dataProp)
|
|
348
|
+
const dataValue = dataSet[dataProp]
|
|
349
|
+
if (dataValue != null) {
|
|
350
|
+
domProps[`data-${dataName}`] = dataValue
|
|
356
351
|
}
|
|
357
352
|
}
|
|
358
353
|
}
|
|
@@ -15,10 +15,8 @@ export function pick(
|
|
|
15
15
|
): object {
|
|
16
16
|
const nextObj = {}
|
|
17
17
|
for (const key in obj) {
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
nextObj[key] = obj[key]
|
|
21
|
-
}
|
|
18
|
+
if (list[key] === true) {
|
|
19
|
+
nextObj[key] = obj[key]
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
22
|
return nextObj
|
|
@@ -65,7 +65,7 @@ export function dangerousStyleValue(name, value, isCustomProperty) {
|
|
|
65
65
|
!isCustomProperty &&
|
|
66
66
|
typeof value === 'number' &&
|
|
67
67
|
value !== 0 &&
|
|
68
|
-
!
|
|
68
|
+
!isUnitlessNumber[name]
|
|
69
69
|
) {
|
|
70
70
|
return value + 'px' // Presumes implicit 'px' suffix for unitless numbers
|
|
71
71
|
}
|
|
@@ -22,9 +22,6 @@ import { dangerousStyleValue } from './dangerousStyleValue'
|
|
|
22
22
|
export function setValueForStyles(node, styles) {
|
|
23
23
|
const style = node.style
|
|
24
24
|
for (let styleName in styles) {
|
|
25
|
-
if (!styles.hasOwnProperty(styleName)) {
|
|
26
|
-
continue
|
|
27
|
-
}
|
|
28
25
|
const isCustomProperty = styleName.indexOf('--') === 0
|
|
29
26
|
const styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty)
|
|
30
27
|
if (styleName === 'float') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAQH,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,MAAM,CAAA;AAElD,KAAK,KAAK,GAAG;KACV,CAAC,IAAI,MAAM,GAAG,KAAK;CACrB,CAAA;AAED,KAAK,IAAI,GAAG,MAAM,CAAA;AAClB,KAAK,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;AACxB,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;AAEhC,KAAK,aAAa,GAAG;KAClB,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;CACtC,CAAA;AAED,KAAK,cAAc,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAA;AAyFvD,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,CAuFnD;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAkBlE;AAED;;;GAGG;AACH,wBAAgB,MAAM,CACpB,aAAa,EAAE,KAAK,EACpB,KAAK,CAAC,EAAE,OAAO,GACd;KACA,CAAC,IAAI,MAAM,GAAG,OAAO;CACvB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StyleSheet/compiler/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAQH,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAA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,
|
|
1
|
+
{"version":3,"file":"preprocess.d.ts","sourceRoot":"","sources":["../../src/StyleSheet/preprocess.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAaH,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,IAAI,GAAG,MAU3D,CAAA;AAED,eAAO,MAAM,qBAAqB,UAAW,MAAM,KAAG,IAAI,GAAG,MAkB5D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,GACrB,CAAC,SAAS,GACP,CAAC,IAAI,MAAM,GAAG,GAAG,GACnB,iBAEc,CAAC,KACf,CAmDF,CAAA;AAED,eAAO,MAAM,YAAY,mBAAa,CAAA"}
|
|
@@ -10,12 +10,7 @@ export declare const UIManager: {
|
|
|
10
10
|
blur(node: any): void;
|
|
11
11
|
focus(node: any): void;
|
|
12
12
|
measure(node: any, callback: any): Promise<import("@tamagui/use-element-layout").LayoutValue | null>;
|
|
13
|
-
measureInWindow(node: any, callback: any): Promise<
|
|
14
|
-
pageX: number;
|
|
15
|
-
pageY: number;
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
} | null>;
|
|
13
|
+
measureInWindow(node: any, callback: any): Promise<import("@tamagui/use-element-layout").WindowLayout | null>;
|
|
19
14
|
measureLayout(node: HTMLElement, relativeToNativeNode: HTMLElement | undefined, onFail: () => void, onSuccess: (x: number, y: number, width: number, height: number) => void): Promise<any>;
|
|
20
15
|
configureNextLayoutAnimation(config: any, onAnimationDidEnd: any): void;
|
|
21
16
|
setLayoutAnimationEnabledExperimental(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/UIManager/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAWH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/UIManager/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAWH,eAAO,MAAM,SAAS;;;;;wBAkCZ,WAAW,wBACK,WAAW,GAAG,SAAS,UACrC,MAAM,IAAI,aACP,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI;;;CAW3E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/createDOMProps/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/createDOMProps/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAqFnE,eAAO,MAAM,eAAe,6BAAoC,CAAA;AAEhE,eAAO,MAAM,cAAc,sDAqU1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/pick/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,wBAAgB,IAAI,CAClB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;KACH,CAAC,IAAI,MAAM,GAAG,OAAO;CACvB,GACA,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/pick/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,wBAAgB,IAAI,CAClB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;KACH,CAAC,IAAI,MAAM,GAAG,OAAO;CACvB,GACA,MAAM,CAQR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/setValueForStyles/index.tsx"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,EAAE,MAAM,KAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/setValueForStyles/index.tsx"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,EAAE,MAAM,KAAA,QAc7C"}
|