grep-components 1.22.0-GREPF-822.3 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Sidebar/styles/index.d.ts +1 -1
- package/dist/index.js +267 -167
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@ export declare const useStyles: (params: void, styleOverrides?: {
|
|
|
4
4
|
} & Record<string, unknown>;
|
|
5
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
6
|
} | undefined) => {
|
|
7
|
-
classes: Record<"
|
|
7
|
+
classes: Record<"container" | "text" | "item" | "icon" | "selected", string>;
|
|
8
8
|
theme: import("@mui/material").Theme;
|
|
9
9
|
css: import("tss-react").Css;
|
|
10
10
|
cx: import("tss-react").Cx;
|
package/dist/index.js
CHANGED
|
@@ -1274,7 +1274,7 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
1274
1274
|
// the big drawback is that the css won't be editable in devtools
|
|
1275
1275
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
1276
1276
|
} catch (e) {
|
|
1277
|
-
if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(rule)) {
|
|
1277
|
+
if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
|
|
1278
1278
|
console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
@@ -1335,7 +1335,7 @@ var assign = Object.assign;
|
|
|
1335
1335
|
* @return {number}
|
|
1336
1336
|
*/
|
|
1337
1337
|
function hash (value, length) {
|
|
1338
|
-
return (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3)
|
|
1338
|
+
return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
|
|
1339
1339
|
}
|
|
1340
1340
|
|
|
1341
1341
|
/**
|
|
@@ -1688,7 +1688,7 @@ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
1688
1688
|
switch (previous = character, character = next()) {
|
|
1689
1689
|
// (
|
|
1690
1690
|
case 40:
|
|
1691
|
-
if (previous != 108 && characters
|
|
1691
|
+
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
1692
1692
|
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
|
|
1693
1693
|
ampersand = -1;
|
|
1694
1694
|
break
|
|
@@ -1738,7 +1738,7 @@ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
1738
1738
|
if (offset === 0)
|
|
1739
1739
|
parse$1(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
1740
1740
|
else
|
|
1741
|
-
switch (atrule) {
|
|
1741
|
+
switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
1742
1742
|
// d m s
|
|
1743
1743
|
case 100: case 109: case 115:
|
|
1744
1744
|
parse$1(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
|
|
@@ -1835,123 +1835,6 @@ function declaration (value, root, parent, length) {
|
|
|
1835
1835
|
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)
|
|
1836
1836
|
}
|
|
1837
1837
|
|
|
1838
|
-
/**
|
|
1839
|
-
* @param {string} value
|
|
1840
|
-
* @param {number} length
|
|
1841
|
-
* @return {string}
|
|
1842
|
-
*/
|
|
1843
|
-
function prefix$3 (value, length) {
|
|
1844
|
-
switch (hash(value, length)) {
|
|
1845
|
-
// color-adjust
|
|
1846
|
-
case 5103:
|
|
1847
|
-
return WEBKIT + 'print-' + value + value
|
|
1848
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1849
|
-
case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
|
|
1850
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1851
|
-
case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
|
|
1852
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1853
|
-
case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
|
|
1854
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1855
|
-
case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
|
|
1856
|
-
return WEBKIT + value + value
|
|
1857
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1858
|
-
case 5349: case 4246: case 4810: case 6968: case 2756:
|
|
1859
|
-
return WEBKIT + value + MOZ + value + MS + value + value
|
|
1860
|
-
// flex, flex-direction
|
|
1861
|
-
case 6828: case 4268:
|
|
1862
|
-
return WEBKIT + value + MS + value + value
|
|
1863
|
-
// order
|
|
1864
|
-
case 6165:
|
|
1865
|
-
return WEBKIT + value + MS + 'flex-' + value + value
|
|
1866
|
-
// align-items
|
|
1867
|
-
case 5187:
|
|
1868
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value
|
|
1869
|
-
// align-self
|
|
1870
|
-
case 5443:
|
|
1871
|
-
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value
|
|
1872
|
-
// align-content
|
|
1873
|
-
case 4675:
|
|
1874
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value
|
|
1875
|
-
// flex-shrink
|
|
1876
|
-
case 5548:
|
|
1877
|
-
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value
|
|
1878
|
-
// flex-basis
|
|
1879
|
-
case 5292:
|
|
1880
|
-
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value
|
|
1881
|
-
// flex-grow
|
|
1882
|
-
case 6060:
|
|
1883
|
-
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value
|
|
1884
|
-
// transition
|
|
1885
|
-
case 4554:
|
|
1886
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value
|
|
1887
|
-
// cursor
|
|
1888
|
-
case 6187:
|
|
1889
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value
|
|
1890
|
-
// background, background-image
|
|
1891
|
-
case 5495: case 3959:
|
|
1892
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1')
|
|
1893
|
-
// justify-content
|
|
1894
|
-
case 4968:
|
|
1895
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value
|
|
1896
|
-
// (margin|padding)-inline-(start|end)
|
|
1897
|
-
case 4095: case 3583: case 4068: case 2532:
|
|
1898
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value
|
|
1899
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
1900
|
-
case 8116: case 7059: case 5753: case 5535:
|
|
1901
|
-
case 5445: case 5701: case 4933: case 4677:
|
|
1902
|
-
case 5533: case 5789: case 5021: case 4765:
|
|
1903
|
-
// stretch, max-content, min-content, fill-available
|
|
1904
|
-
if (strlen(value) - 1 - length > 6)
|
|
1905
|
-
switch (charat(value, length + 1)) {
|
|
1906
|
-
// (m)ax-content, (m)in-content
|
|
1907
|
-
case 109:
|
|
1908
|
-
// -
|
|
1909
|
-
if (charat(value, length + 4) !== 45)
|
|
1910
|
-
break
|
|
1911
|
-
// (f)ill-available, (f)it-content
|
|
1912
|
-
case 102:
|
|
1913
|
-
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
|
|
1914
|
-
// (s)tretch
|
|
1915
|
-
case 115:
|
|
1916
|
-
return ~indexof(value, 'stretch') ? prefix$3(replace(value, 'stretch', 'fill-available'), length) + value : value
|
|
1917
|
-
}
|
|
1918
|
-
break
|
|
1919
|
-
// position: sticky
|
|
1920
|
-
case 4949:
|
|
1921
|
-
// (s)ticky?
|
|
1922
|
-
if (charat(value, length + 1) !== 115)
|
|
1923
|
-
break
|
|
1924
|
-
// display: (flex|inline-flex)
|
|
1925
|
-
case 6444:
|
|
1926
|
-
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
|
1927
|
-
// stic(k)y
|
|
1928
|
-
case 107:
|
|
1929
|
-
return replace(value, ':', ':' + WEBKIT) + value
|
|
1930
|
-
// (inline-)?fl(e)x
|
|
1931
|
-
case 101:
|
|
1932
|
-
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value
|
|
1933
|
-
}
|
|
1934
|
-
break
|
|
1935
|
-
// writing-mode
|
|
1936
|
-
case 5936:
|
|
1937
|
-
switch (charat(value, length + 11)) {
|
|
1938
|
-
// vertical-l(r)
|
|
1939
|
-
case 114:
|
|
1940
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
|
|
1941
|
-
// vertical-r(l)
|
|
1942
|
-
case 108:
|
|
1943
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
|
|
1944
|
-
// horizontal(-)tb
|
|
1945
|
-
case 45:
|
|
1946
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
return WEBKIT + value + MS + value + value
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
return value
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
1838
|
/**
|
|
1956
1839
|
* @param {object[]} children
|
|
1957
1840
|
* @param {function} callback
|
|
@@ -2014,41 +1897,6 @@ function rulesheet (callback) {
|
|
|
2014
1897
|
}
|
|
2015
1898
|
}
|
|
2016
1899
|
|
|
2017
|
-
/**
|
|
2018
|
-
* @param {object} element
|
|
2019
|
-
* @param {number} index
|
|
2020
|
-
* @param {object[]} children
|
|
2021
|
-
* @param {function} callback
|
|
2022
|
-
*/
|
|
2023
|
-
function prefixer (element, index, children, callback) {
|
|
2024
|
-
if (element.length > -1)
|
|
2025
|
-
if (!element.return)
|
|
2026
|
-
switch (element.type) {
|
|
2027
|
-
case DECLARATION: element.return = prefix$3(element.value, element.length);
|
|
2028
|
-
break
|
|
2029
|
-
case KEYFRAMES:
|
|
2030
|
-
return serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)
|
|
2031
|
-
case RULESET:
|
|
2032
|
-
if (element.length)
|
|
2033
|
-
return combine$1(element.props, function (value) {
|
|
2034
|
-
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
2035
|
-
// :read-(only|write)
|
|
2036
|
-
case ':read-only': case ':read-write':
|
|
2037
|
-
return serialize([copy(element, {props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]})], callback)
|
|
2038
|
-
// :placeholder
|
|
2039
|
-
case '::placeholder':
|
|
2040
|
-
return serialize([
|
|
2041
|
-
copy(element, {props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]}),
|
|
2042
|
-
copy(element, {props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]}),
|
|
2043
|
-
copy(element, {props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]})
|
|
2044
|
-
], callback)
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
return ''
|
|
2048
|
-
})
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
1900
|
var weakMemoize = function weakMemoize(func) {
|
|
2053
1901
|
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
2054
1902
|
var cache = new WeakMap();
|
|
@@ -2064,11 +1912,6 @@ var weakMemoize = function weakMemoize(func) {
|
|
|
2064
1912
|
};
|
|
2065
1913
|
};
|
|
2066
1914
|
|
|
2067
|
-
var last = function last(arr) {
|
|
2068
|
-
return arr.length ? arr[arr.length - 1] : null;
|
|
2069
|
-
}; // based on https://github.com/thysultan/stylis.js/blob/e6843c373ebcbbfade25ebcc23f540ed8508da0a/src/Tokenizer.js#L239-L244
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
1915
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
2073
1916
|
var previous = 0;
|
|
2074
1917
|
var character = 0;
|
|
@@ -2196,19 +2039,64 @@ var removeLabel = function removeLabel(element) {
|
|
|
2196
2039
|
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
|
2197
2040
|
|
|
2198
2041
|
var isIgnoringComment = function isIgnoringComment(element) {
|
|
2199
|
-
return
|
|
2042
|
+
return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
|
|
2200
2043
|
};
|
|
2201
2044
|
|
|
2202
2045
|
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
|
2203
2046
|
return function (element, index, children) {
|
|
2204
|
-
if (element.type !== 'rule') return;
|
|
2047
|
+
if (element.type !== 'rule' || cache.compat) return;
|
|
2205
2048
|
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
2206
2049
|
|
|
2207
|
-
if (unsafePseudoClasses
|
|
2208
|
-
var
|
|
2050
|
+
if (unsafePseudoClasses) {
|
|
2051
|
+
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
|
2052
|
+
//
|
|
2053
|
+
// considering this input:
|
|
2054
|
+
// .a {
|
|
2055
|
+
// .b /* comm */ {}
|
|
2056
|
+
// color: hotpink;
|
|
2057
|
+
// }
|
|
2058
|
+
// we get output corresponding to this:
|
|
2059
|
+
// .a {
|
|
2060
|
+
// & {
|
|
2061
|
+
// /* comm */
|
|
2062
|
+
// color: hotpink;
|
|
2063
|
+
// }
|
|
2064
|
+
// .b {}
|
|
2065
|
+
// }
|
|
2066
|
+
|
|
2067
|
+
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
|
2068
|
+
children;
|
|
2069
|
+
|
|
2070
|
+
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
|
2071
|
+
var node = commentContainer[i];
|
|
2072
|
+
|
|
2073
|
+
if (node.line < element.line) {
|
|
2074
|
+
break;
|
|
2075
|
+
} // it is quite weird but comments are *usually* put at `column: element.column - 1`
|
|
2076
|
+
// so we seek *from the end* for the node that is earlier than the rule's `element` and check that
|
|
2077
|
+
// this will also match inputs like this:
|
|
2078
|
+
// .a {
|
|
2079
|
+
// /* comm */
|
|
2080
|
+
// .b {}
|
|
2081
|
+
// }
|
|
2082
|
+
//
|
|
2083
|
+
// but that is fine
|
|
2084
|
+
//
|
|
2085
|
+
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
|
2086
|
+
// .a {
|
|
2087
|
+
// .b { /* comm */ }
|
|
2088
|
+
// }
|
|
2089
|
+
// with such inputs we wouldn't have to search for the comment at all
|
|
2090
|
+
// TODO: consider changing this comment placement in the next major version
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
if (node.column < element.column) {
|
|
2094
|
+
if (isIgnoringComment(node)) {
|
|
2095
|
+
return;
|
|
2096
|
+
}
|
|
2209
2097
|
|
|
2210
|
-
|
|
2211
|
-
|
|
2098
|
+
break;
|
|
2099
|
+
}
|
|
2212
2100
|
}
|
|
2213
2101
|
|
|
2214
2102
|
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
|
@@ -2257,6 +2145,218 @@ var incorrectImportAlarm = function incorrectImportAlarm(element, index, childre
|
|
|
2257
2145
|
}
|
|
2258
2146
|
};
|
|
2259
2147
|
|
|
2148
|
+
/* eslint-disable no-fallthrough */
|
|
2149
|
+
|
|
2150
|
+
function prefix$3(value, length) {
|
|
2151
|
+
switch (hash(value, length)) {
|
|
2152
|
+
// color-adjust
|
|
2153
|
+
case 5103:
|
|
2154
|
+
return WEBKIT + 'print-' + value + value;
|
|
2155
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
2156
|
+
|
|
2157
|
+
case 5737:
|
|
2158
|
+
case 4201:
|
|
2159
|
+
case 3177:
|
|
2160
|
+
case 3433:
|
|
2161
|
+
case 1641:
|
|
2162
|
+
case 4457:
|
|
2163
|
+
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
2164
|
+
|
|
2165
|
+
case 5572:
|
|
2166
|
+
case 6356:
|
|
2167
|
+
case 5844:
|
|
2168
|
+
case 3191:
|
|
2169
|
+
case 6645:
|
|
2170
|
+
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
2171
|
+
|
|
2172
|
+
case 6391:
|
|
2173
|
+
case 5879:
|
|
2174
|
+
case 5623:
|
|
2175
|
+
case 6135:
|
|
2176
|
+
case 4599:
|
|
2177
|
+
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
2178
|
+
|
|
2179
|
+
case 4215:
|
|
2180
|
+
case 6389:
|
|
2181
|
+
case 5109:
|
|
2182
|
+
case 5365:
|
|
2183
|
+
case 5621:
|
|
2184
|
+
case 3829:
|
|
2185
|
+
return WEBKIT + value + value;
|
|
2186
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
2187
|
+
|
|
2188
|
+
case 5349:
|
|
2189
|
+
case 4246:
|
|
2190
|
+
case 4810:
|
|
2191
|
+
case 6968:
|
|
2192
|
+
case 2756:
|
|
2193
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
2194
|
+
// flex, flex-direction
|
|
2195
|
+
|
|
2196
|
+
case 6828:
|
|
2197
|
+
case 4268:
|
|
2198
|
+
return WEBKIT + value + MS + value + value;
|
|
2199
|
+
// order
|
|
2200
|
+
|
|
2201
|
+
case 6165:
|
|
2202
|
+
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
2203
|
+
// align-items
|
|
2204
|
+
|
|
2205
|
+
case 5187:
|
|
2206
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
2207
|
+
// align-self
|
|
2208
|
+
|
|
2209
|
+
case 5443:
|
|
2210
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
|
2211
|
+
// align-content
|
|
2212
|
+
|
|
2213
|
+
case 4675:
|
|
2214
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
|
2215
|
+
// flex-shrink
|
|
2216
|
+
|
|
2217
|
+
case 5548:
|
|
2218
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
2219
|
+
// flex-basis
|
|
2220
|
+
|
|
2221
|
+
case 5292:
|
|
2222
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
2223
|
+
// flex-grow
|
|
2224
|
+
|
|
2225
|
+
case 6060:
|
|
2226
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
2227
|
+
// transition
|
|
2228
|
+
|
|
2229
|
+
case 4554:
|
|
2230
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
2231
|
+
// cursor
|
|
2232
|
+
|
|
2233
|
+
case 6187:
|
|
2234
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
2235
|
+
// background, background-image
|
|
2236
|
+
|
|
2237
|
+
case 5495:
|
|
2238
|
+
case 3959:
|
|
2239
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
2240
|
+
// justify-content
|
|
2241
|
+
|
|
2242
|
+
case 4968:
|
|
2243
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
2244
|
+
// (margin|padding)-inline-(start|end)
|
|
2245
|
+
|
|
2246
|
+
case 4095:
|
|
2247
|
+
case 3583:
|
|
2248
|
+
case 4068:
|
|
2249
|
+
case 2532:
|
|
2250
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
2251
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
2252
|
+
|
|
2253
|
+
case 8116:
|
|
2254
|
+
case 7059:
|
|
2255
|
+
case 5753:
|
|
2256
|
+
case 5535:
|
|
2257
|
+
case 5445:
|
|
2258
|
+
case 5701:
|
|
2259
|
+
case 4933:
|
|
2260
|
+
case 4677:
|
|
2261
|
+
case 5533:
|
|
2262
|
+
case 5789:
|
|
2263
|
+
case 5021:
|
|
2264
|
+
case 4765:
|
|
2265
|
+
// stretch, max-content, min-content, fill-available
|
|
2266
|
+
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
2267
|
+
// (m)ax-content, (m)in-content
|
|
2268
|
+
case 109:
|
|
2269
|
+
// -
|
|
2270
|
+
if (charat(value, length + 4) !== 45) break;
|
|
2271
|
+
// (f)ill-available, (f)it-content
|
|
2272
|
+
|
|
2273
|
+
case 102:
|
|
2274
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
2275
|
+
// (s)tretch
|
|
2276
|
+
|
|
2277
|
+
case 115:
|
|
2278
|
+
return ~indexof(value, 'stretch') ? prefix$3(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
|
2279
|
+
}
|
|
2280
|
+
break;
|
|
2281
|
+
// position: sticky
|
|
2282
|
+
|
|
2283
|
+
case 4949:
|
|
2284
|
+
// (s)ticky?
|
|
2285
|
+
if (charat(value, length + 1) !== 115) break;
|
|
2286
|
+
// display: (flex|inline-flex)
|
|
2287
|
+
|
|
2288
|
+
case 6444:
|
|
2289
|
+
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
|
2290
|
+
// stic(k)y
|
|
2291
|
+
case 107:
|
|
2292
|
+
return replace(value, ':', ':' + WEBKIT) + value;
|
|
2293
|
+
// (inline-)?fl(e)x
|
|
2294
|
+
|
|
2295
|
+
case 101:
|
|
2296
|
+
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
break;
|
|
2300
|
+
// writing-mode
|
|
2301
|
+
|
|
2302
|
+
case 5936:
|
|
2303
|
+
switch (charat(value, length + 11)) {
|
|
2304
|
+
// vertical-l(r)
|
|
2305
|
+
case 114:
|
|
2306
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
2307
|
+
// vertical-r(l)
|
|
2308
|
+
|
|
2309
|
+
case 108:
|
|
2310
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
2311
|
+
// horizontal(-)tb
|
|
2312
|
+
|
|
2313
|
+
case 45:
|
|
2314
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
return WEBKIT + value + MS + value + value;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
return value;
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
var prefixer = function prefixer(element, index, children, callback) {
|
|
2324
|
+
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
|
2325
|
+
case DECLARATION:
|
|
2326
|
+
element["return"] = prefix$3(element.value, element.length);
|
|
2327
|
+
break;
|
|
2328
|
+
|
|
2329
|
+
case KEYFRAMES:
|
|
2330
|
+
return serialize([copy(element, {
|
|
2331
|
+
value: replace(element.value, '@', '@' + WEBKIT)
|
|
2332
|
+
})], callback);
|
|
2333
|
+
|
|
2334
|
+
case RULESET:
|
|
2335
|
+
if (element.length) return combine$1(element.props, function (value) {
|
|
2336
|
+
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
2337
|
+
// :read-(only|write)
|
|
2338
|
+
case ':read-only':
|
|
2339
|
+
case ':read-write':
|
|
2340
|
+
return serialize([copy(element, {
|
|
2341
|
+
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
2342
|
+
})], callback);
|
|
2343
|
+
// :placeholder
|
|
2344
|
+
|
|
2345
|
+
case '::placeholder':
|
|
2346
|
+
return serialize([copy(element, {
|
|
2347
|
+
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
2348
|
+
}), copy(element, {
|
|
2349
|
+
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
2350
|
+
}), copy(element, {
|
|
2351
|
+
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
2352
|
+
})], callback);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
return '';
|
|
2356
|
+
});
|
|
2357
|
+
}
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2260
2360
|
var isBrowser$2 = typeof document !== 'undefined';
|
|
2261
2361
|
var getServerStylisCache = isBrowser$2 ? undefined : weakMemoize(function () {
|
|
2262
2362
|
return memoize(function () {
|