@yamada-ui/react 2.2.3-dev-20260622131221 → 2.2.3-dev-20260622141401
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/core/components/props.cjs +5 -1
- package/dist/cjs/core/components/props.cjs.map +1 -1
- package/dist/cjs/core/css/index.cjs +1 -0
- package/dist/cjs/core/css/styles.cjs +253 -0
- package/dist/cjs/core/css/styles.cjs.map +1 -1
- package/dist/cjs/core/index.cjs +1 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/esm/core/components/props.js +6 -2
- package/dist/esm/core/components/props.js.map +1 -1
- package/dist/esm/core/css/index.js +2 -2
- package/dist/esm/core/css/styles.js +253 -1
- package/dist/esm/core/css/styles.js.map +1 -1
- package/dist/esm/core/index.js +2 -2
- package/dist/esm/index.js +3 -2
- package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
- package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
- package/dist/types/components/calendar/calendar.style.d.ts +2 -2
- package/dist/types/components/carousel/carousel.style.d.ts +2 -2
- package/dist/types/components/date-picker/date-picker.style.d.ts +1 -1
- package/dist/types/components/field/use-field-props.d.ts +1 -1
- package/dist/types/components/file-button/use-file-button.d.ts +2 -2
- package/dist/types/components/file-input/use-file-input.d.ts +2 -2
- package/dist/types/components/menu/menu.style.d.ts +2 -2
- package/dist/types/components/progress/use-progress.d.ts +6 -6
- package/dist/types/components/rating/rating.style.d.ts +2 -2
- package/dist/types/components/select/select.style.d.ts +1 -1
- package/dist/types/components/steps/steps.style.d.ts +1 -1
- package/dist/types/components/tabs/tabs.style.d.ts +1 -1
- package/dist/types/components/tree/tree.style.d.ts +1 -1
- package/dist/types/components/tree/use-tree.d.ts +2 -2
- package/dist/types/core/css/index.d.ts +2 -2
- package/dist/types/core/css/styles.d.ts +3 -1
- package/dist/types/core/index.d.ts +2 -2
- package/dist/types/hooks/use-clickable/index.d.ts +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/core/index.cjs
CHANGED
|
@@ -163,4 +163,5 @@ exports.useTheme = require_theme_provider.useTheme;
|
|
|
163
163
|
exports.varAttr = require_var.varAttr;
|
|
164
164
|
exports.varToValue = require_utils.varToValue;
|
|
165
165
|
exports.variableLengthProperties = require_styles.variableLengthProperties;
|
|
166
|
+
exports.vendorProperties = require_styles.vendorProperties;
|
|
166
167
|
exports.zIndexProperties = require_styles.zIndexProperties;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -5248,6 +5248,7 @@ var src_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
5248
5248
|
varAttr: () => require_var.varAttr,
|
|
5249
5249
|
varToValue: () => require_utils.varToValue,
|
|
5250
5250
|
variableLengthProperties: () => require_styles.variableLengthProperties,
|
|
5251
|
+
vendorProperties: () => require_styles.vendorProperties,
|
|
5251
5252
|
visuallyHiddenAttributes: () => require_dom.visuallyHiddenAttributes,
|
|
5252
5253
|
visuallyHiddenStyle: () => require_visually_hidden_style.visuallyHiddenStyle,
|
|
5253
5254
|
wrapOrPassProps: () => require_children.wrapOrPassProps,
|
|
@@ -8629,6 +8630,7 @@ exports.vStackStyle = require_v_stack_style.vStackStyle;
|
|
|
8629
8630
|
exports.varAttr = require_var.varAttr;
|
|
8630
8631
|
exports.varToValue = require_utils.varToValue;
|
|
8631
8632
|
exports.variableLengthProperties = require_styles.variableLengthProperties;
|
|
8633
|
+
exports.vendorProperties = require_styles.vendorProperties;
|
|
8632
8634
|
exports.visuallyHiddenAttributes = require_dom.visuallyHiddenAttributes;
|
|
8633
8635
|
exports.visuallyHiddenStyle = require_visually_hidden_style.visuallyHiddenStyle;
|
|
8634
8636
|
exports.wrapOrPassProps = require_children.wrapOrPassProps;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { mergeRefs } from "../../utils/ref.js";
|
|
2
2
|
import { utils_exports } from "../../utils/index.js";
|
|
3
3
|
import { conditionProperties } from "../css/conditions.js";
|
|
4
|
-
import { styleProperties } from "../css/styles.js";
|
|
4
|
+
import { styleProperties, vendorProperties } from "../css/styles.js";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import isEqual from "react-fast-compare";
|
|
7
7
|
//#region src/core/components/props.ts
|
|
8
8
|
function isEvent(key) {
|
|
9
9
|
return /^on[A-Z]/.test(key);
|
|
10
10
|
}
|
|
11
|
-
const cssProps = new Set([
|
|
11
|
+
const cssProps = new Set([
|
|
12
|
+
...conditionProperties,
|
|
13
|
+
...styleProperties,
|
|
14
|
+
...vendorProperties
|
|
15
|
+
]);
|
|
12
16
|
function createShouldForwardProp(forwardProps = []) {
|
|
13
17
|
return function(prop) {
|
|
14
18
|
if (forwardProps.includes(prop)) return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","names":[],"sources":["../../../../src/core/components/props.ts"],"sourcesContent":["import type { Dict, Merge } from \"../../utils\"\nimport { useMemo } from \"react\"\nimport isEqual from \"react-fast-compare\"\nimport {\n cx,\n handlerAll,\n isArray,\n isEmptyObject,\n isFunction,\n isObject,\n isUndefined,\n merge,\n mergeRefs,\n omitObject,\n splitObject,\n} from \"../../utils\"\nimport { conditionProperties, styleProperties } from \"../css\"\n\ntype Optionalize<Y> = [Extract<Y, undefined>] extends [never]\n ? Y\n : Partial<Exclude<Y, undefined>>\n\ntype MergeAll<Y extends (Dict | undefined)[]> = Y extends [infer M]\n ? Optionalize<M>\n : Y extends [infer D, ...infer H]\n ? H extends (Dict | undefined)[]\n ? Merge<Optionalize<D>, MergeAll<H>>\n : Optionalize<D>\n : never\n\nfunction isEvent(key: string) {\n return /^on[A-Z]/.test(key)\n}\n\nexport const cssProps = new Set<string>([\n ...conditionProperties,\n ...styleProperties,\n])\n\nexport type ShouldForwardProp = (prop: string) => boolean\n\nexport function createShouldForwardProp(\n forwardProps: string[] = [],\n): ShouldForwardProp {\n return function (prop: string): boolean {\n if (forwardProps.includes(prop)) return true\n\n if (prop.startsWith(\"--\")) return false\n\n return !cssProps.has(prop)\n }\n}\n\ninterface MergePropsOptions {\n mergeClassName?: boolean\n mergeCSS?: boolean\n mergeEvent?: boolean\n mergeRef?: boolean\n mergeStyle?: boolean\n}\n\nexport function mergeProps<Y extends Dict>(\n ...args: Y[]\n): (options?: MergePropsOptions) => Y\nexport function mergeProps<Y extends (Dict | undefined)[]>(\n ...args: Y\n): (options?: MergePropsOptions) => MergeAll<Y>\nexport function mergeProps(...args: (Dict | undefined)[]) {\n return function ({\n mergeClassName = true,\n mergeCSS = true,\n mergeEvent = true,\n mergeRef = true,\n mergeStyle = true,\n }: MergePropsOptions = {}) {\n let result: Dict = {}\n\n for (const props of args) {\n if (isUndefined(props)) continue\n\n for (const key in result) {\n if (mergeRef && key === \"ref\") {\n result[key] = mergeRefs(result[key], props[key])\n\n continue\n }\n\n if (\n mergeEvent &&\n isEvent(key) &&\n isFunction(result[key]) &&\n isFunction(props[key])\n ) {\n result[key] = handlerAll(result[key], props[key])\n\n continue\n }\n\n if (mergeClassName && (key === \"className\" || key === \"class\")) {\n result[key] = cx(result[key], props[key])\n\n continue\n }\n\n if (mergeStyle && key === \"style\") {\n result[key] = merge(result[key] ?? {}, props[key] ?? {})\n\n continue\n }\n\n if (mergeCSS && key === \"css\") {\n if (isArray(result[key])) {\n result[key].push(props[key])\n } else {\n result[key] ??= []\n\n result[key] = [result[key], props[key]]\n }\n\n continue\n }\n\n result[key] = !isUndefined(props[key]) ? props[key] : result[key]\n }\n\n for (const key in props) {\n if (isUndefined(result[key])) result[key] = props[key]\n }\n }\n\n return result as any\n }\n}\n\ntype CallbackProps<Y extends Dict = Dict> = (props: Y) => Y\n\ntype PropsOrCallback<Y extends Dict = Dict> = CallbackProps<Y> | Y\n\nexport function chainProps<Y extends Dict = Dict>(\n ...props: PropsOrCallback<Y>[]\n) {\n return function (options: MergePropsOptions = {}) {\n if (!props.length) return (a: Y) => a\n\n if (props.length === 1)\n return function (b: Y) {\n const a = props[0] ?? {}\n const c = isFunction(a) ? a(b) : mergeProps(a, b)(options)\n\n return c\n } as CallbackProps<Y>\n\n return props.reduce(function (a, b) {\n return function (c: Y = {} as Y) {\n const d = isFunction(a) ? a(c) : mergeProps(a, c)(options)\n const f = isFunction(b) ? b(d) : mergeProps(b, d)(options)\n\n return f\n }\n }) as CallbackProps<Y>\n }\n}\n\nexport function isEqualProps<\n Y extends Dict,\n M extends Dict,\n D extends keyof M | keyof Y,\n>(a: Y, b: M, omitKeys: D[] = []) {\n return isEqual(\n omitObject(a, omitKeys as (keyof Y)[]),\n omitObject(b, omitKeys as (keyof M)[]),\n )\n}\n\nexport function useSplitProps<Y extends Dict, M extends keyof Y>(\n props: Y,\n keys: M[] | readonly M[],\n) {\n return useMemo(() => splitObject<Y, M>(props, keys), [props, keys])\n}\n\nexport function extractProps(props: Dict, keys: readonly string[] | string[]) {\n let result: Dict = {}\n\n Object.entries(props).forEach(([key, value]) => {\n if (!cssProps.has(key)) return\n\n if (keys.includes(key)) {\n result = merge(result, { [key]: value })\n } else if (isObject(value)) {\n value = extractProps(value, keys)\n\n if (isEmptyObject(value)) return\n\n result = merge(result, { [key]: value })\n }\n })\n\n return result\n}\n\nexport function useExtractProps(\n props: Dict,\n keys: readonly string[] | string[],\n) {\n return useMemo(() => extractProps(props, keys), [props, keys])\n}\n"],"mappings":";;;;;;;AA8BA,SAAS,QAAQ,KAAa;CAC5B,OAAO,WAAW,KAAK,GAAG;AAC5B;AAEA,MAAa,WAAW,IAAI,IAAY
|
|
1
|
+
{"version":3,"file":"props.js","names":[],"sources":["../../../../src/core/components/props.ts"],"sourcesContent":["import type { Dict, Merge } from \"../../utils\"\nimport { useMemo } from \"react\"\nimport isEqual from \"react-fast-compare\"\nimport {\n cx,\n handlerAll,\n isArray,\n isEmptyObject,\n isFunction,\n isObject,\n isUndefined,\n merge,\n mergeRefs,\n omitObject,\n splitObject,\n} from \"../../utils\"\nimport { conditionProperties, styleProperties, vendorProperties } from \"../css\"\n\ntype Optionalize<Y> = [Extract<Y, undefined>] extends [never]\n ? Y\n : Partial<Exclude<Y, undefined>>\n\ntype MergeAll<Y extends (Dict | undefined)[]> = Y extends [infer M]\n ? Optionalize<M>\n : Y extends [infer D, ...infer H]\n ? H extends (Dict | undefined)[]\n ? Merge<Optionalize<D>, MergeAll<H>>\n : Optionalize<D>\n : never\n\nfunction isEvent(key: string) {\n return /^on[A-Z]/.test(key)\n}\n\nexport const cssProps = new Set<string>([\n ...conditionProperties,\n ...styleProperties,\n ...vendorProperties,\n])\n\nexport type ShouldForwardProp = (prop: string) => boolean\n\nexport function createShouldForwardProp(\n forwardProps: string[] = [],\n): ShouldForwardProp {\n return function (prop: string): boolean {\n if (forwardProps.includes(prop)) return true\n\n if (prop.startsWith(\"--\")) return false\n\n return !cssProps.has(prop)\n }\n}\n\ninterface MergePropsOptions {\n mergeClassName?: boolean\n mergeCSS?: boolean\n mergeEvent?: boolean\n mergeRef?: boolean\n mergeStyle?: boolean\n}\n\nexport function mergeProps<Y extends Dict>(\n ...args: Y[]\n): (options?: MergePropsOptions) => Y\nexport function mergeProps<Y extends (Dict | undefined)[]>(\n ...args: Y\n): (options?: MergePropsOptions) => MergeAll<Y>\nexport function mergeProps(...args: (Dict | undefined)[]) {\n return function ({\n mergeClassName = true,\n mergeCSS = true,\n mergeEvent = true,\n mergeRef = true,\n mergeStyle = true,\n }: MergePropsOptions = {}) {\n let result: Dict = {}\n\n for (const props of args) {\n if (isUndefined(props)) continue\n\n for (const key in result) {\n if (mergeRef && key === \"ref\") {\n result[key] = mergeRefs(result[key], props[key])\n\n continue\n }\n\n if (\n mergeEvent &&\n isEvent(key) &&\n isFunction(result[key]) &&\n isFunction(props[key])\n ) {\n result[key] = handlerAll(result[key], props[key])\n\n continue\n }\n\n if (mergeClassName && (key === \"className\" || key === \"class\")) {\n result[key] = cx(result[key], props[key])\n\n continue\n }\n\n if (mergeStyle && key === \"style\") {\n result[key] = merge(result[key] ?? {}, props[key] ?? {})\n\n continue\n }\n\n if (mergeCSS && key === \"css\") {\n if (isArray(result[key])) {\n result[key].push(props[key])\n } else {\n result[key] ??= []\n\n result[key] = [result[key], props[key]]\n }\n\n continue\n }\n\n result[key] = !isUndefined(props[key]) ? props[key] : result[key]\n }\n\n for (const key in props) {\n if (isUndefined(result[key])) result[key] = props[key]\n }\n }\n\n return result as any\n }\n}\n\ntype CallbackProps<Y extends Dict = Dict> = (props: Y) => Y\n\ntype PropsOrCallback<Y extends Dict = Dict> = CallbackProps<Y> | Y\n\nexport function chainProps<Y extends Dict = Dict>(\n ...props: PropsOrCallback<Y>[]\n) {\n return function (options: MergePropsOptions = {}) {\n if (!props.length) return (a: Y) => a\n\n if (props.length === 1)\n return function (b: Y) {\n const a = props[0] ?? {}\n const c = isFunction(a) ? a(b) : mergeProps(a, b)(options)\n\n return c\n } as CallbackProps<Y>\n\n return props.reduce(function (a, b) {\n return function (c: Y = {} as Y) {\n const d = isFunction(a) ? a(c) : mergeProps(a, c)(options)\n const f = isFunction(b) ? b(d) : mergeProps(b, d)(options)\n\n return f\n }\n }) as CallbackProps<Y>\n }\n}\n\nexport function isEqualProps<\n Y extends Dict,\n M extends Dict,\n D extends keyof M | keyof Y,\n>(a: Y, b: M, omitKeys: D[] = []) {\n return isEqual(\n omitObject(a, omitKeys as (keyof Y)[]),\n omitObject(b, omitKeys as (keyof M)[]),\n )\n}\n\nexport function useSplitProps<Y extends Dict, M extends keyof Y>(\n props: Y,\n keys: M[] | readonly M[],\n) {\n return useMemo(() => splitObject<Y, M>(props, keys), [props, keys])\n}\n\nexport function extractProps(props: Dict, keys: readonly string[] | string[]) {\n let result: Dict = {}\n\n Object.entries(props).forEach(([key, value]) => {\n if (!cssProps.has(key)) return\n\n if (keys.includes(key)) {\n result = merge(result, { [key]: value })\n } else if (isObject(value)) {\n value = extractProps(value, keys)\n\n if (isEmptyObject(value)) return\n\n result = merge(result, { [key]: value })\n }\n })\n\n return result\n}\n\nexport function useExtractProps(\n props: Dict,\n keys: readonly string[] | string[],\n) {\n return useMemo(() => extractProps(props, keys), [props, keys])\n}\n"],"mappings":"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"}
|
|
@@ -6,9 +6,9 @@ import { display } from "./display.js";
|
|
|
6
6
|
import { focusRingStyle } from "./focus-ring.js";
|
|
7
7
|
import { gradient } from "./gradient.js";
|
|
8
8
|
import { transforms } from "./config.js";
|
|
9
|
-
import { animationProperties, aspectRatioProperties, atRuleStyles, blurProperties, borderProperties, colorProperties, durationProperties, easingProperties, fontProperties, gradientProperties, keyframeProperties, pseudoStyles, radiusProperties, shadowProperties, shorthandStyles, sizeProperties, spaceProperties, standardStyles, styleProperties, styledStyles, styles, variableLengthProperties, zIndexProperties } from "./styles.js";
|
|
9
|
+
import { animationProperties, aspectRatioProperties, atRuleStyles, blurProperties, borderProperties, colorProperties, durationProperties, easingProperties, fontProperties, gradientProperties, keyframeProperties, pseudoStyles, radiusProperties, shadowProperties, shorthandStyles, sizeProperties, spaceProperties, standardStyles, styleProperties, styledStyles, styles, variableLengthProperties, vendorProperties, zIndexProperties } from "./styles.js";
|
|
10
10
|
import { css, getStyle, transformConditionalValue } from "./css.js";
|
|
11
11
|
import { mergeCSS } from "./merge-css.js";
|
|
12
12
|
import { getCSS, useCSS } from "./use-css.js";
|
|
13
13
|
import { useInjectVarsIntoCss, useInjectVarsIntoProps } from "./use-inject-vars.js";
|
|
14
|
-
export { animation, animationProperties, aspectRatioProperties, atRuleStyles, attributeProperties, attributeSelectors, attributes, blurProperties, borderProperties, colorMix, colorProperties, conditionProperties, conditionSelectors, conditions, css, display, durationProperties, easingProperties, focusRingStyle, fontProperties, getCSS, getCSSFunction, getCondition, getStyle, gradient, gradientProperties, groupAttributeProperties, groupAttributeSelectors, groupAttributes, injectKeyframes, isCSSFunction, isCSSToken, isCSSVar, keyframeProperties, keyframes, mergeCSS, peerAttributeProperties, peerAttributeSelectors, peerAttributes, pseudoClassProperties, pseudoClassSelectors, pseudoClasses, pseudoElementProperties, pseudoElementSelectors, pseudoElements, pseudoStyles, radiusProperties, shadowProperties, shorthandStyles, sizeProperties, spaceProperties, standardStyles, styleProperties, styledStyles, styles, tokenToValue, tokenToVar, transformConditionalValue, transforms, useCSS, useInjectVarsIntoCss, useInjectVarsIntoProps, varToValue, variableLengthProperties, zIndexProperties };
|
|
14
|
+
export { animation, animationProperties, aspectRatioProperties, atRuleStyles, attributeProperties, attributeSelectors, attributes, blurProperties, borderProperties, colorMix, colorProperties, conditionProperties, conditionSelectors, conditions, css, display, durationProperties, easingProperties, focusRingStyle, fontProperties, getCSS, getCSSFunction, getCondition, getStyle, gradient, gradientProperties, groupAttributeProperties, groupAttributeSelectors, groupAttributes, injectKeyframes, isCSSFunction, isCSSToken, isCSSVar, keyframeProperties, keyframes, mergeCSS, peerAttributeProperties, peerAttributeSelectors, peerAttributes, pseudoClassProperties, pseudoClassSelectors, pseudoClasses, pseudoElementProperties, pseudoElementSelectors, pseudoElements, pseudoStyles, radiusProperties, shadowProperties, shorthandStyles, sizeProperties, spaceProperties, standardStyles, styleProperties, styledStyles, styles, tokenToValue, tokenToVar, transformConditionalValue, transforms, useCSS, useInjectVarsIntoCss, useInjectVarsIntoProps, varToValue, variableLengthProperties, vendorProperties, zIndexProperties };
|
|
@@ -1578,6 +1578,258 @@ const styles = {
|
|
|
1578
1578
|
...atRuleStyles
|
|
1579
1579
|
};
|
|
1580
1580
|
const styleProperties = Object.keys(styles);
|
|
1581
|
+
const vendorProperties = [
|
|
1582
|
+
"MozAnimationDelay",
|
|
1583
|
+
"MozAnimationDirection",
|
|
1584
|
+
"MozAnimationDuration",
|
|
1585
|
+
"MozAnimationFillMode",
|
|
1586
|
+
"MozAnimationIterationCount",
|
|
1587
|
+
"MozAnimationName",
|
|
1588
|
+
"MozAnimationPlayState",
|
|
1589
|
+
"MozAnimationTimingFunction",
|
|
1590
|
+
"MozAppearance",
|
|
1591
|
+
"MozBackfaceVisibility",
|
|
1592
|
+
"MozBinding",
|
|
1593
|
+
"MozBorderBottomColors",
|
|
1594
|
+
"MozBorderEndColor",
|
|
1595
|
+
"MozBorderEndStyle",
|
|
1596
|
+
"MozBorderEndWidth",
|
|
1597
|
+
"MozBorderLeftColors",
|
|
1598
|
+
"MozBorderRightColors",
|
|
1599
|
+
"MozBorderStartColor",
|
|
1600
|
+
"MozBorderStartStyle",
|
|
1601
|
+
"MozBorderTopColors",
|
|
1602
|
+
"MozBoxSizing",
|
|
1603
|
+
"MozColumnRuleColor",
|
|
1604
|
+
"MozColumnRuleStyle",
|
|
1605
|
+
"MozColumnRuleWidth",
|
|
1606
|
+
"MozColumnWidth",
|
|
1607
|
+
"MozContextProperties",
|
|
1608
|
+
"MozFontFeatureSettings",
|
|
1609
|
+
"MozFontLanguageOverride",
|
|
1610
|
+
"MozHyphens",
|
|
1611
|
+
"MozMarginEnd",
|
|
1612
|
+
"MozMarginStart",
|
|
1613
|
+
"MozOrient",
|
|
1614
|
+
"MozOsxFontSmoothing",
|
|
1615
|
+
"MozOutlineRadiusBottomleft",
|
|
1616
|
+
"MozOutlineRadiusBottomright",
|
|
1617
|
+
"MozOutlineRadiusTopleft",
|
|
1618
|
+
"MozOutlineRadiusTopright",
|
|
1619
|
+
"MozPaddingEnd",
|
|
1620
|
+
"MozPaddingStart",
|
|
1621
|
+
"MozPerspective",
|
|
1622
|
+
"MozPerspectiveOrigin",
|
|
1623
|
+
"MozStackSizing",
|
|
1624
|
+
"MozTabSize",
|
|
1625
|
+
"MozTextBlink",
|
|
1626
|
+
"MozTextSizeAdjust",
|
|
1627
|
+
"MozTransform",
|
|
1628
|
+
"MozTransformOrigin",
|
|
1629
|
+
"MozTransformStyle",
|
|
1630
|
+
"MozUserModify",
|
|
1631
|
+
"MozUserSelect",
|
|
1632
|
+
"MozWindowDragging",
|
|
1633
|
+
"MozWindowShadow",
|
|
1634
|
+
"msAccelerator",
|
|
1635
|
+
"msBlockProgression",
|
|
1636
|
+
"msContentZoomChaining",
|
|
1637
|
+
"msContentZoomLimitMax",
|
|
1638
|
+
"msContentZoomLimitMin",
|
|
1639
|
+
"msContentZoomSnapPoints",
|
|
1640
|
+
"msContentZoomSnapType",
|
|
1641
|
+
"msContentZooming",
|
|
1642
|
+
"msFilter",
|
|
1643
|
+
"msFlexDirection",
|
|
1644
|
+
"msFlexPositive",
|
|
1645
|
+
"msFlowFrom",
|
|
1646
|
+
"msFlowInto",
|
|
1647
|
+
"msGridColumns",
|
|
1648
|
+
"msGridRows",
|
|
1649
|
+
"msHighContrastAdjust",
|
|
1650
|
+
"msHyphenateLimitChars",
|
|
1651
|
+
"msHyphenateLimitLines",
|
|
1652
|
+
"msHyphenateLimitZone",
|
|
1653
|
+
"msHyphens",
|
|
1654
|
+
"msImeAlign",
|
|
1655
|
+
"msLineBreak",
|
|
1656
|
+
"msOrder",
|
|
1657
|
+
"msOverflowStyle",
|
|
1658
|
+
"msOverflowX",
|
|
1659
|
+
"msOverflowY",
|
|
1660
|
+
"msScrollChaining",
|
|
1661
|
+
"msScrollLimitXMax",
|
|
1662
|
+
"msScrollLimitXMin",
|
|
1663
|
+
"msScrollLimitYMax",
|
|
1664
|
+
"msScrollLimitYMin",
|
|
1665
|
+
"msScrollRails",
|
|
1666
|
+
"msScrollSnapPointsX",
|
|
1667
|
+
"msScrollSnapPointsY",
|
|
1668
|
+
"msScrollSnapType",
|
|
1669
|
+
"msScrollTranslation",
|
|
1670
|
+
"msScrollbar3dlightColor",
|
|
1671
|
+
"msScrollbarArrowColor",
|
|
1672
|
+
"msScrollbarBaseColor",
|
|
1673
|
+
"msScrollbarDarkshadowColor",
|
|
1674
|
+
"msScrollbarFaceColor",
|
|
1675
|
+
"msScrollbarHighlightColor",
|
|
1676
|
+
"msScrollbarShadowColor",
|
|
1677
|
+
"msScrollbarTrackColor",
|
|
1678
|
+
"msTextAutospace",
|
|
1679
|
+
"msTextCombineHorizontal",
|
|
1680
|
+
"msTextOverflow",
|
|
1681
|
+
"msTouchAction",
|
|
1682
|
+
"msTouchSelect",
|
|
1683
|
+
"msTransform",
|
|
1684
|
+
"msTransformOrigin",
|
|
1685
|
+
"msTransitionDelay",
|
|
1686
|
+
"msTransitionDuration",
|
|
1687
|
+
"msTransitionProperty",
|
|
1688
|
+
"msTransitionTimingFunction",
|
|
1689
|
+
"msUserSelect",
|
|
1690
|
+
"msWordBreak",
|
|
1691
|
+
"msWrapFlow",
|
|
1692
|
+
"msWrapMargin",
|
|
1693
|
+
"msWrapThrough",
|
|
1694
|
+
"msWritingMode",
|
|
1695
|
+
"WebkitAlignContent",
|
|
1696
|
+
"WebkitAlignItems",
|
|
1697
|
+
"WebkitAlignSelf",
|
|
1698
|
+
"WebkitAnimationDelay",
|
|
1699
|
+
"WebkitAnimationDirection",
|
|
1700
|
+
"WebkitAnimationDuration",
|
|
1701
|
+
"WebkitAnimationFillMode",
|
|
1702
|
+
"WebkitAnimationIterationCount",
|
|
1703
|
+
"WebkitAnimationName",
|
|
1704
|
+
"WebkitAnimationPlayState",
|
|
1705
|
+
"WebkitAnimationTimingFunction",
|
|
1706
|
+
"WebkitAppearance",
|
|
1707
|
+
"WebkitBackdropFilter",
|
|
1708
|
+
"WebkitBackfaceVisibility",
|
|
1709
|
+
"WebkitBackgroundClip",
|
|
1710
|
+
"WebkitBackgroundOrigin",
|
|
1711
|
+
"WebkitBackgroundSize",
|
|
1712
|
+
"WebkitBorderBeforeColor",
|
|
1713
|
+
"WebkitBorderBeforeStyle",
|
|
1714
|
+
"WebkitBorderBeforeWidth",
|
|
1715
|
+
"WebkitBorderBottomLeftRadius",
|
|
1716
|
+
"WebkitBorderBottomRightRadius",
|
|
1717
|
+
"WebkitBorderImageSlice",
|
|
1718
|
+
"WebkitBorderTopLeftRadius",
|
|
1719
|
+
"WebkitBorderTopRightRadius",
|
|
1720
|
+
"WebkitBoxDecorationBreak",
|
|
1721
|
+
"WebkitBoxReflect",
|
|
1722
|
+
"WebkitBoxShadow",
|
|
1723
|
+
"WebkitBoxSizing",
|
|
1724
|
+
"WebkitClipPath",
|
|
1725
|
+
"WebkitColumnCount",
|
|
1726
|
+
"WebkitColumnFill",
|
|
1727
|
+
"WebkitColumnRuleColor",
|
|
1728
|
+
"WebkitColumnRuleStyle",
|
|
1729
|
+
"WebkitColumnRuleWidth",
|
|
1730
|
+
"WebkitColumnSpan",
|
|
1731
|
+
"WebkitColumnWidth",
|
|
1732
|
+
"WebkitFilter",
|
|
1733
|
+
"WebkitFlexBasis",
|
|
1734
|
+
"WebkitFlexDirection",
|
|
1735
|
+
"WebkitFlexGrow",
|
|
1736
|
+
"WebkitFlexShrink",
|
|
1737
|
+
"WebkitFlexWrap",
|
|
1738
|
+
"WebkitFontFeatureSettings",
|
|
1739
|
+
"WebkitFontKerning",
|
|
1740
|
+
"WebkitFontSmoothing",
|
|
1741
|
+
"WebkitFontVariantLigatures",
|
|
1742
|
+
"WebkitHyphenateCharacter",
|
|
1743
|
+
"WebkitHyphens",
|
|
1744
|
+
"WebkitInitialLetter",
|
|
1745
|
+
"WebkitJustifyContent",
|
|
1746
|
+
"WebkitLineBreak",
|
|
1747
|
+
"WebkitLineClamp",
|
|
1748
|
+
"WebkitLogicalHeight",
|
|
1749
|
+
"WebkitLogicalWidth",
|
|
1750
|
+
"WebkitMarginEnd",
|
|
1751
|
+
"WebkitMarginStart",
|
|
1752
|
+
"WebkitMaskAttachment",
|
|
1753
|
+
"WebkitMaskBoxImageOutset",
|
|
1754
|
+
"WebkitMaskBoxImageRepeat",
|
|
1755
|
+
"WebkitMaskBoxImageSlice",
|
|
1756
|
+
"WebkitMaskBoxImageSource",
|
|
1757
|
+
"WebkitMaskBoxImageWidth",
|
|
1758
|
+
"WebkitMaskClip",
|
|
1759
|
+
"WebkitMaskComposite",
|
|
1760
|
+
"WebkitMaskImage",
|
|
1761
|
+
"WebkitMaskOrigin",
|
|
1762
|
+
"WebkitMaskPosition",
|
|
1763
|
+
"WebkitMaskPositionX",
|
|
1764
|
+
"WebkitMaskPositionY",
|
|
1765
|
+
"WebkitMaskRepeat",
|
|
1766
|
+
"WebkitMaskRepeatX",
|
|
1767
|
+
"WebkitMaskRepeatY",
|
|
1768
|
+
"WebkitMaskSize",
|
|
1769
|
+
"WebkitMaxInlineSize",
|
|
1770
|
+
"WebkitOrder",
|
|
1771
|
+
"WebkitOverflowScrolling",
|
|
1772
|
+
"WebkitPaddingEnd",
|
|
1773
|
+
"WebkitPaddingStart",
|
|
1774
|
+
"WebkitPerspective",
|
|
1775
|
+
"WebkitPerspectiveOrigin",
|
|
1776
|
+
"WebkitPrintColorAdjust",
|
|
1777
|
+
"WebkitRubyPosition",
|
|
1778
|
+
"WebkitScrollSnapType",
|
|
1779
|
+
"WebkitShapeMargin",
|
|
1780
|
+
"WebkitTapHighlightColor",
|
|
1781
|
+
"WebkitTextCombine",
|
|
1782
|
+
"WebkitTextDecorationColor",
|
|
1783
|
+
"WebkitTextDecorationLine",
|
|
1784
|
+
"WebkitTextDecorationSkip",
|
|
1785
|
+
"WebkitTextDecorationStyle",
|
|
1786
|
+
"WebkitTextEmphasisColor",
|
|
1787
|
+
"WebkitTextEmphasisPosition",
|
|
1788
|
+
"WebkitTextEmphasisStyle",
|
|
1789
|
+
"WebkitTextFillColor",
|
|
1790
|
+
"WebkitTextOrientation",
|
|
1791
|
+
"WebkitTextSizeAdjust",
|
|
1792
|
+
"WebkitTextStrokeColor",
|
|
1793
|
+
"WebkitTextStrokeWidth",
|
|
1794
|
+
"WebkitTextUnderlinePosition",
|
|
1795
|
+
"WebkitTouchCallout",
|
|
1796
|
+
"WebkitTransform",
|
|
1797
|
+
"WebkitTransformOrigin",
|
|
1798
|
+
"WebkitTransformStyle",
|
|
1799
|
+
"WebkitTransitionDelay",
|
|
1800
|
+
"WebkitTransitionDuration",
|
|
1801
|
+
"WebkitTransitionProperty",
|
|
1802
|
+
"WebkitTransitionTimingFunction",
|
|
1803
|
+
"WebkitUserModify",
|
|
1804
|
+
"WebkitUserSelect",
|
|
1805
|
+
"WebkitWritingMode",
|
|
1806
|
+
"MozAnimation",
|
|
1807
|
+
"MozBorderImage",
|
|
1808
|
+
"MozColumnRule",
|
|
1809
|
+
"MozColumns",
|
|
1810
|
+
"MozOutlineRadius",
|
|
1811
|
+
"MozTransition",
|
|
1812
|
+
"msContentZoomLimit",
|
|
1813
|
+
"msContentZoomSnap",
|
|
1814
|
+
"msFlex",
|
|
1815
|
+
"msScrollLimit",
|
|
1816
|
+
"msScrollSnapX",
|
|
1817
|
+
"msScrollSnapY",
|
|
1818
|
+
"msTransition",
|
|
1819
|
+
"WebkitAnimation",
|
|
1820
|
+
"WebkitBorderBefore",
|
|
1821
|
+
"WebkitBorderImage",
|
|
1822
|
+
"WebkitBorderRadius",
|
|
1823
|
+
"WebkitColumnRule",
|
|
1824
|
+
"WebkitColumns",
|
|
1825
|
+
"WebkitFlex",
|
|
1826
|
+
"WebkitFlexFlow",
|
|
1827
|
+
"WebkitMask",
|
|
1828
|
+
"WebkitMaskBoxImage",
|
|
1829
|
+
"WebkitTextEmphasis",
|
|
1830
|
+
"WebkitTextStroke",
|
|
1831
|
+
"WebkitTransition"
|
|
1832
|
+
];
|
|
1581
1833
|
const variableLengthProperties = [
|
|
1582
1834
|
"_container",
|
|
1583
1835
|
"_media",
|
|
@@ -1832,6 +2084,6 @@ const spaceProperties = [
|
|
|
1832
2084
|
];
|
|
1833
2085
|
const zIndexProperties = ["z", "zIndex"];
|
|
1834
2086
|
//#endregion
|
|
1835
|
-
export { animationProperties, aspectRatioProperties, atRuleStyles, blurProperties, borderProperties, colorProperties, durationProperties, easingProperties, fontProperties, gradientProperties, keyframeProperties, pseudoStyles, radiusProperties, shadowProperties, shorthandStyles, sizeProperties, spaceProperties, standardStyles, styleProperties, styledStyles, styles, variableLengthProperties, zIndexProperties };
|
|
2087
|
+
export { animationProperties, aspectRatioProperties, atRuleStyles, blurProperties, borderProperties, colorProperties, durationProperties, easingProperties, fontProperties, gradientProperties, keyframeProperties, pseudoStyles, radiusProperties, shadowProperties, shorthandStyles, sizeProperties, spaceProperties, standardStyles, styleProperties, styledStyles, styles, variableLengthProperties, vendorProperties, zIndexProperties };
|
|
1836
2088
|
|
|
1837
2089
|
//# sourceMappingURL=styles.js.map
|