@react-spectrum/s2 0.10.1 → 0.11.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/ComboBox.cjs +19 -4
- package/dist/ComboBox.cjs.map +1 -1
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.mjs +19 -4
- package/dist/ComboBox.mjs.map +1 -1
- package/dist/DatePicker.cjs +2 -5
- package/dist/DatePicker.cjs.map +1 -1
- package/dist/DatePicker.css.map +1 -1
- package/dist/DatePicker.mjs +2 -5
- package/dist/DatePicker.mjs.map +1 -1
- package/dist/DateRangePicker.cjs +2 -5
- package/dist/DateRangePicker.cjs.map +1 -1
- package/dist/DateRangePicker.css.map +1 -1
- package/dist/DateRangePicker.mjs +2 -5
- package/dist/DateRangePicker.mjs.map +1 -1
- package/dist/SelectBoxGroup.cjs +342 -0
- package/dist/SelectBoxGroup.cjs.map +1 -0
- package/dist/SelectBoxGroup.css +503 -0
- package/dist/SelectBoxGroup.css.map +1 -0
- package/dist/SelectBoxGroup.mjs +335 -0
- package/dist/SelectBoxGroup.mjs.map +1 -0
- package/dist/SkeletonCollection.cjs +6 -1
- package/dist/SkeletonCollection.cjs.map +1 -1
- package/dist/SkeletonCollection.mjs +7 -2
- package/dist/SkeletonCollection.mjs.map +1 -1
- package/dist/Tabs.cjs +102 -77
- package/dist/Tabs.cjs.map +1 -1
- package/dist/Tabs.css +8 -4
- package/dist/Tabs.css.map +1 -1
- package/dist/Tabs.mjs +102 -77
- package/dist/Tabs.mjs.map +1 -1
- package/dist/main.cjs +5 -0
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +3 -1
- package/dist/module.mjs.map +1 -1
- package/dist/types.d.ts +43 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +21 -21
- package/src/ComboBox.tsx +20 -5
- package/src/DatePicker.tsx +1 -7
- package/src/DateRangePicker.tsx +1 -7
- package/src/SelectBoxGroup.tsx +408 -0
- package/src/SkeletonCollection.tsx +6 -2
- package/src/Tabs.tsx +49 -24
- package/src/index.ts +2 -0
- package/style/dist/main.cjs +24 -24
- package/style/dist/module.mjs +13 -13
- package/style/dist/properties.mjs +3 -3
- package/style/dist/spectrum-theme.cjs +219 -219
- package/style/dist/spectrum-theme.mjs +210 -210
- package/style/dist/style-macro.cjs +80 -80
- package/style/dist/style-macro.mjs +75 -75
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ArbitraryProperty as $
|
|
1
|
+
import {ArbitraryProperty as $6aa8bfe5ed29b83a$export$d03475ad9df06cd2, createTheme as $6aa8bfe5ed29b83a$export$25d302a5b900a763, ExpandedProperty as $6aa8bfe5ed29b83a$export$1b6028cfca42adca, MappedProperty as $6aa8bfe5ed29b83a$export$965169194d2485f7, parseArbitraryValue as $6aa8bfe5ed29b83a$export$22a8270399010c94, PercentageProperty as $6aa8bfe5ed29b83a$export$6bff0717a72a8669, SizingProperty as $6aa8bfe5ed29b83a$export$8c6b4dc3755476bb} from "./style-macro.mjs";
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright 2024 Adobe. All rights reserved.
|
|
@@ -11,11 +11,11 @@ import {ArbitraryProperty as $1619a4f0ddc7ccfb$export$d03475ad9df06cd2, createTh
|
|
|
11
11
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
|
-
function $
|
|
14
|
+
function $204ce7e475877bb1$var$pxToRem(px) {
|
|
15
15
|
if (typeof px === 'string') px = parseFloat(px);
|
|
16
16
|
return px / 16 + 'rem';
|
|
17
17
|
}
|
|
18
|
-
const $
|
|
18
|
+
const $204ce7e475877bb1$var$baseColors = {
|
|
19
19
|
transparent: 'transparent',
|
|
20
20
|
black: 'black',
|
|
21
21
|
white: 'white',
|
|
@@ -1976,36 +1976,36 @@ const $27684d56c53d4b5c$var$baseColors = {
|
|
|
1976
1976
|
LinkText: 'LinkText'
|
|
1977
1977
|
};
|
|
1978
1978
|
// Resolves a color to its most basic form, following all aliases.
|
|
1979
|
-
function $
|
|
1979
|
+
function $204ce7e475877bb1$var$resolveColorToken(token) {
|
|
1980
1980
|
if (typeof token === 'string') return {
|
|
1981
1981
|
type: 'color',
|
|
1982
1982
|
light: token,
|
|
1983
1983
|
dark: token
|
|
1984
1984
|
};
|
|
1985
1985
|
if (token.type === 'color') return token;
|
|
1986
|
-
let lightToken = $
|
|
1986
|
+
let lightToken = $204ce7e475877bb1$var$baseColors[token.light];
|
|
1987
1987
|
if (!lightToken) throw new Error(`${token.light} is not a valid color reference`);
|
|
1988
|
-
let darkToken = $
|
|
1988
|
+
let darkToken = $204ce7e475877bb1$var$baseColors[token.dark];
|
|
1989
1989
|
if (!darkToken) throw new Error(`${token.dark} is not a valid color reference`);
|
|
1990
|
-
let light = $
|
|
1991
|
-
let dark = $
|
|
1990
|
+
let light = $204ce7e475877bb1$var$resolveColorToken(lightToken);
|
|
1991
|
+
let dark = $204ce7e475877bb1$var$resolveColorToken(darkToken);
|
|
1992
1992
|
return {
|
|
1993
1993
|
type: 'color',
|
|
1994
1994
|
light: light.light,
|
|
1995
1995
|
dark: dark.dark
|
|
1996
1996
|
};
|
|
1997
1997
|
}
|
|
1998
|
-
function $
|
|
1998
|
+
function $204ce7e475877bb1$var$colorTokenToString(token, opacity) {
|
|
1999
1999
|
let result = token.light === token.dark ? token.light : `light-dark(${token.light}, ${token.dark})`;
|
|
2000
2000
|
if (opacity) result = `rgb(from ${result} r g b / ${opacity}%)`;
|
|
2001
2001
|
return result;
|
|
2002
2002
|
}
|
|
2003
2003
|
// Bumps up a color token by one stop, e.g. for hover/press states.
|
|
2004
|
-
let $
|
|
2005
|
-
function $
|
|
2004
|
+
let $204ce7e475877bb1$var$colorList = Object.keys($204ce7e475877bb1$var$baseColors);
|
|
2005
|
+
function $204ce7e475877bb1$var$nextColorStop(name, token) {
|
|
2006
2006
|
if (typeof token === 'object' && token.type === 'ref') {
|
|
2007
|
-
let light = $
|
|
2008
|
-
let dark = $
|
|
2007
|
+
let light = $204ce7e475877bb1$var$nextColorStop(token.light, $204ce7e475877bb1$var$baseColors[token.light]);
|
|
2008
|
+
let dark = $204ce7e475877bb1$var$nextColorStop(token.dark, $204ce7e475877bb1$var$baseColors[token.dark]);
|
|
2009
2009
|
return {
|
|
2010
2010
|
type: 'color',
|
|
2011
2011
|
light: light.light,
|
|
@@ -2013,13 +2013,13 @@ function $27684d56c53d4b5c$var$nextColorStop(name, token) {
|
|
|
2013
2013
|
forcedColors: token.forcedColors
|
|
2014
2014
|
};
|
|
2015
2015
|
}
|
|
2016
|
-
let index = $
|
|
2016
|
+
let index = $204ce7e475877bb1$var$colorList.indexOf(name);
|
|
2017
2017
|
if (index === -1) throw new Error(`${name} does not support states`);
|
|
2018
|
-
let key = $
|
|
2018
|
+
let key = $204ce7e475877bb1$var$colorList[index + 1];
|
|
2019
2019
|
if (key.split('-')[0] !== name.split('-')[0]) throw new Error(`${name} does not support states`);
|
|
2020
|
-
return $
|
|
2020
|
+
return $204ce7e475877bb1$var$resolveColorToken($204ce7e475877bb1$var$baseColors[key]);
|
|
2021
2021
|
}
|
|
2022
|
-
class $
|
|
2022
|
+
class $204ce7e475877bb1$var$SpectrumColorProperty extends (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2) {
|
|
2023
2023
|
constructor(property, mapping){
|
|
2024
2024
|
super(property);
|
|
2025
2025
|
this.mapping = mapping;
|
|
@@ -2029,9 +2029,9 @@ class $27684d56c53d4b5c$var$SpectrumColorProperty extends (0, $1619a4f0ddc7ccfb$
|
|
|
2029
2029
|
let [color, opacity] = colorWithOpacity.split('/');
|
|
2030
2030
|
let token = this.mapping[color];
|
|
2031
2031
|
if (!token) throw new Error('Invalid color ' + value);
|
|
2032
|
-
if (state === 'hovered' || state === 'pressed' || state === 'focused') token = $
|
|
2033
|
-
else token = $
|
|
2034
|
-
let result = $
|
|
2032
|
+
if (state === 'hovered' || state === 'pressed' || state === 'focused') token = $204ce7e475877bb1$var$nextColorStop(color, token);
|
|
2033
|
+
else token = $204ce7e475877bb1$var$resolveColorToken(token);
|
|
2034
|
+
let result = $204ce7e475877bb1$var$colorTokenToString(token, opacity);
|
|
2035
2035
|
if (token.forcedColors) return {
|
|
2036
2036
|
default: result,
|
|
2037
2037
|
forcedColors: token.forcedColors
|
|
@@ -2039,7 +2039,7 @@ class $27684d56c53d4b5c$var$SpectrumColorProperty extends (0, $1619a4f0ddc7ccfb$
|
|
|
2039
2039
|
return result;
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
|
-
function $
|
|
2042
|
+
function $204ce7e475877bb1$export$49bbad2a916ab57c(base) {
|
|
2043
2043
|
return {
|
|
2044
2044
|
default: base,
|
|
2045
2045
|
isHovered: `${base}:hovered`,
|
|
@@ -2047,19 +2047,19 @@ function $27684d56c53d4b5c$export$49bbad2a916ab57c(base) {
|
|
|
2047
2047
|
isPressed: `${base}:pressed`
|
|
2048
2048
|
};
|
|
2049
2049
|
}
|
|
2050
|
-
function $
|
|
2051
|
-
let arbitrary = (0, $
|
|
2050
|
+
function $204ce7e475877bb1$export$35e9368ef982300f(value) {
|
|
2051
|
+
let arbitrary = (0, $6aa8bfe5ed29b83a$export$22a8270399010c94)(value);
|
|
2052
2052
|
if (arbitrary) return arbitrary;
|
|
2053
2053
|
let [colorValue, opacity] = value.split('/');
|
|
2054
|
-
return $
|
|
2054
|
+
return $204ce7e475877bb1$var$colorTokenToString($204ce7e475877bb1$var$resolveColorToken($204ce7e475877bb1$var$baseColors[colorValue]), opacity);
|
|
2055
2055
|
}
|
|
2056
|
-
function $
|
|
2057
|
-
return `[light-dark(${$
|
|
2056
|
+
function $204ce7e475877bb1$export$d19e682d444755ed(light, dark) {
|
|
2057
|
+
return `[light-dark(${$204ce7e475877bb1$export$35e9368ef982300f(light)}, ${$204ce7e475877bb1$export$35e9368ef982300f(dark)})]`;
|
|
2058
2058
|
}
|
|
2059
|
-
function $
|
|
2060
|
-
return `[color-mix(in srgb, ${$
|
|
2059
|
+
function $204ce7e475877bb1$export$9b476054b78b89cd(a, b, percent) {
|
|
2060
|
+
return `[color-mix(in srgb, ${$204ce7e475877bb1$export$35e9368ef982300f(a)}, ${$204ce7e475877bb1$export$35e9368ef982300f(b)} ${percent}%)]`;
|
|
2061
2061
|
}
|
|
2062
|
-
function $
|
|
2062
|
+
function $204ce7e475877bb1$export$46def8197cf4dd4c(angle, ...tokens) {
|
|
2063
2063
|
// Generate @property rules for each gradient stop color. This allows the gradient to be animated.
|
|
2064
2064
|
let propertyDefinitions = [];
|
|
2065
2065
|
for(let i = 0; i < tokens.length; i++)propertyDefinitions.push(`@property --g${i} {
|
|
@@ -2080,11 +2080,11 @@ function $27684d56c53d4b5c$export$46def8197cf4dd4c(angle, ...tokens) {
|
|
|
2080
2080
|
];
|
|
2081
2081
|
}
|
|
2082
2082
|
// Spacing uses rems, padding does not.
|
|
2083
|
-
function $
|
|
2083
|
+
function $204ce7e475877bb1$var$generateSpacing(px) {
|
|
2084
2084
|
let spacing = {};
|
|
2085
2085
|
let padding = {};
|
|
2086
2086
|
for (let p of px){
|
|
2087
|
-
spacing[p] = $
|
|
2087
|
+
spacing[p] = $204ce7e475877bb1$var$pxToRem(p);
|
|
2088
2088
|
padding[p] = p + 'px';
|
|
2089
2089
|
}
|
|
2090
2090
|
return {
|
|
@@ -2092,7 +2092,7 @@ function $27684d56c53d4b5c$var$generateSpacing(px) {
|
|
|
2092
2092
|
padding: padding
|
|
2093
2093
|
};
|
|
2094
2094
|
}
|
|
2095
|
-
const { spacing: $
|
|
2095
|
+
const { spacing: $204ce7e475877bb1$var$baseSpacing, padding: $204ce7e475877bb1$var$basePadding } = $204ce7e475877bb1$var$generateSpacing([
|
|
2096
2096
|
0,
|
|
2097
2097
|
2,
|
|
2098
2098
|
4,
|
|
@@ -2115,7 +2115,7 @@ const { spacing: $27684d56c53d4b5c$var$baseSpacing, padding: $27684d56c53d4b5c$v
|
|
|
2115
2115
|
]);
|
|
2116
2116
|
// This should match the above, but negative. There's no way to negate a number
|
|
2117
2117
|
// type in typescript so this has to be done manually for now.
|
|
2118
|
-
const { spacing: $
|
|
2118
|
+
const { spacing: $204ce7e475877bb1$var$negativeSpacing, padding: $204ce7e475877bb1$var$negativePadding } = $204ce7e475877bb1$var$generateSpacing([
|
|
2119
2119
|
-2,
|
|
2120
2120
|
-4,
|
|
2121
2121
|
-8,
|
|
@@ -2135,94 +2135,94 @@ const { spacing: $27684d56c53d4b5c$var$negativeSpacing, padding: $27684d56c53d4b
|
|
|
2135
2135
|
-80,
|
|
2136
2136
|
-96 // spacing-1000
|
|
2137
2137
|
]);
|
|
2138
|
-
function $
|
|
2138
|
+
function $204ce7e475877bb1$export$ba024f4caf693d15(base, baseFontSize = 14) {
|
|
2139
2139
|
return base / baseFontSize + 'em';
|
|
2140
2140
|
}
|
|
2141
|
-
function $
|
|
2142
|
-
return `calc(${$
|
|
2141
|
+
function $204ce7e475877bb1$export$17b63977b35bb6d2(height) {
|
|
2142
|
+
return `calc(${$204ce7e475877bb1$var$baseSpacing[height]} * 3 / 8)`;
|
|
2143
2143
|
}
|
|
2144
|
-
function $
|
|
2145
|
-
return $
|
|
2144
|
+
function $204ce7e475877bb1$export$a941ed4b947d12f8(px) {
|
|
2145
|
+
return $204ce7e475877bb1$var$pxToRem(px);
|
|
2146
2146
|
}
|
|
2147
|
-
const $
|
|
2147
|
+
const $204ce7e475877bb1$var$relativeSpacing = {
|
|
2148
2148
|
// font-size relative values
|
|
2149
|
-
'text-to-control': $
|
|
2149
|
+
'text-to-control': $204ce7e475877bb1$export$ba024f4caf693d15(10),
|
|
2150
2150
|
'text-to-visual': {
|
|
2151
|
-
default: $
|
|
2152
|
-
touch: $
|
|
2151
|
+
default: $204ce7e475877bb1$export$ba024f4caf693d15(6),
|
|
2152
|
+
touch: $204ce7e475877bb1$export$ba024f4caf693d15(8, 17) // -> 6px, 7px, 8px, 9px, 10px, should be 7px, 7px, 8px, 9px, 11px
|
|
2153
2153
|
},
|
|
2154
2154
|
// height relative values
|
|
2155
2155
|
'edge-to-text': 'calc(self(height, self(minHeight)) * 3 / 8)',
|
|
2156
2156
|
'pill': 'calc(self(height, self(minHeight)) / 2)'
|
|
2157
2157
|
};
|
|
2158
|
-
const $
|
|
2159
|
-
...$
|
|
2160
|
-
...$
|
|
2158
|
+
const $204ce7e475877bb1$var$spacing = {
|
|
2159
|
+
...$204ce7e475877bb1$var$baseSpacing,
|
|
2160
|
+
...$204ce7e475877bb1$var$relativeSpacing
|
|
2161
2161
|
};
|
|
2162
|
-
const $
|
|
2163
|
-
...$
|
|
2164
|
-
...$
|
|
2162
|
+
const $204ce7e475877bb1$var$padding = {
|
|
2163
|
+
...$204ce7e475877bb1$var$basePadding,
|
|
2164
|
+
...$204ce7e475877bb1$var$relativeSpacing
|
|
2165
2165
|
};
|
|
2166
|
-
function $
|
|
2167
|
-
return `calc(${$
|
|
2166
|
+
function $204ce7e475877bb1$export$346677f925de839c(px) {
|
|
2167
|
+
return `calc(${$204ce7e475877bb1$var$pxToRem(px)} * var(--s2-scale))`;
|
|
2168
2168
|
}
|
|
2169
|
-
const $
|
|
2169
|
+
const $204ce7e475877bb1$var$sizing = {
|
|
2170
2170
|
auto: 'auto',
|
|
2171
2171
|
full: '100%',
|
|
2172
2172
|
min: 'min-content',
|
|
2173
2173
|
max: 'max-content',
|
|
2174
2174
|
fit: 'fit-content'
|
|
2175
2175
|
};
|
|
2176
|
-
const $
|
|
2177
|
-
...$
|
|
2176
|
+
const $204ce7e475877bb1$var$height = {
|
|
2177
|
+
...$204ce7e475877bb1$var$sizing,
|
|
2178
2178
|
screen: '100vh'
|
|
2179
2179
|
};
|
|
2180
|
-
const $
|
|
2181
|
-
...$
|
|
2180
|
+
const $204ce7e475877bb1$var$width = {
|
|
2181
|
+
...$204ce7e475877bb1$var$sizing,
|
|
2182
2182
|
screen: '100vw'
|
|
2183
2183
|
};
|
|
2184
|
-
function $
|
|
2185
|
-
return new (0, $
|
|
2184
|
+
function $204ce7e475877bb1$var$createSpectrumSizingProperty(property, values) {
|
|
2185
|
+
return new (0, $6aa8bfe5ed29b83a$export$8c6b4dc3755476bb)(property, values, (px)=>`calc(${$204ce7e475877bb1$var$pxToRem(px)} * var(--s2-scale))`);
|
|
2186
2186
|
}
|
|
2187
|
-
const $
|
|
2188
|
-
...$
|
|
2189
|
-
...$
|
|
2187
|
+
const $204ce7e475877bb1$var$margin = {
|
|
2188
|
+
...$204ce7e475877bb1$var$spacing,
|
|
2189
|
+
...$204ce7e475877bb1$var$negativeSpacing,
|
|
2190
2190
|
auto: 'auto'
|
|
2191
2191
|
};
|
|
2192
|
-
const $
|
|
2193
|
-
...$
|
|
2194
|
-
...$
|
|
2192
|
+
const $204ce7e475877bb1$var$inset = {
|
|
2193
|
+
...$204ce7e475877bb1$var$basePadding,
|
|
2194
|
+
...$204ce7e475877bb1$var$negativePadding,
|
|
2195
2195
|
auto: 'auto',
|
|
2196
2196
|
full: '100%'
|
|
2197
2197
|
};
|
|
2198
|
-
const $
|
|
2199
|
-
...$
|
|
2200
|
-
...$
|
|
2198
|
+
const $204ce7e475877bb1$var$translate = {
|
|
2199
|
+
...$204ce7e475877bb1$var$basePadding,
|
|
2200
|
+
...$204ce7e475877bb1$var$negativePadding,
|
|
2201
2201
|
full: '100%'
|
|
2202
2202
|
};
|
|
2203
|
-
const $
|
|
2203
|
+
const $204ce7e475877bb1$var$borderWidth = {
|
|
2204
2204
|
0: '0px',
|
|
2205
2205
|
1: "1px",
|
|
2206
2206
|
2: "2px",
|
|
2207
2207
|
4: "4px"
|
|
2208
2208
|
};
|
|
2209
|
-
const $
|
|
2209
|
+
const $204ce7e475877bb1$var$radius = {
|
|
2210
2210
|
none: "0px",
|
|
2211
|
-
sm: $
|
|
2212
|
-
default: $
|
|
2213
|
-
lg: $
|
|
2214
|
-
xl: $
|
|
2211
|
+
sm: $204ce7e475877bb1$var$pxToRem("4px"),
|
|
2212
|
+
default: $204ce7e475877bb1$var$pxToRem("8px"),
|
|
2213
|
+
lg: $204ce7e475877bb1$var$pxToRem("10px"),
|
|
2214
|
+
xl: $204ce7e475877bb1$var$pxToRem("16px"),
|
|
2215
2215
|
full: '9999px',
|
|
2216
2216
|
pill: 'calc(self(height, self(minHeight, 9999px)) / 2)'
|
|
2217
2217
|
};
|
|
2218
|
-
let $
|
|
2218
|
+
let $204ce7e475877bb1$var$gridTrack = (value)=>{
|
|
2219
2219
|
if (typeof value === 'string') return value;
|
|
2220
|
-
return value.map((v)=>$
|
|
2220
|
+
return value.map((v)=>$204ce7e475877bb1$var$gridTrackSize(v)).join(' ');
|
|
2221
2221
|
};
|
|
2222
|
-
let $
|
|
2223
|
-
return value in $
|
|
2222
|
+
let $204ce7e475877bb1$var$gridTrackSize = (value)=>{
|
|
2223
|
+
return value in $204ce7e475877bb1$var$baseSpacing ? $204ce7e475877bb1$var$baseSpacing[value] : value;
|
|
2224
2224
|
};
|
|
2225
|
-
const $
|
|
2225
|
+
const $204ce7e475877bb1$var$transitionProperty = {
|
|
2226
2226
|
// var(--gp) is generated by the backgroundImage property when setting a gradient.
|
|
2227
2227
|
// It includes a list of all of the custom properties used for each color stop.
|
|
2228
2228
|
default: 'color, background-color, var(--gp, color), border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, translate, scale, rotate, filter, backdrop-filter',
|
|
@@ -2234,15 +2234,15 @@ const $27684d56c53d4b5c$var$transitionProperty = {
|
|
|
2234
2234
|
none: 'none'
|
|
2235
2235
|
};
|
|
2236
2236
|
// TODO
|
|
2237
|
-
const $
|
|
2237
|
+
const $204ce7e475877bb1$var$timingFunction = {
|
|
2238
2238
|
default: 'cubic-bezier(0.45, 0, 0.4, 1)',
|
|
2239
2239
|
linear: 'linear',
|
|
2240
2240
|
in: 'cubic-bezier(0.5, 0, 1, 1)',
|
|
2241
2241
|
out: 'cubic-bezier(0, 0, 0.40, 1)',
|
|
2242
2242
|
'in-out': 'cubic-bezier(0.45, 0, 0.4, 1)'
|
|
2243
2243
|
};
|
|
2244
|
-
let $
|
|
2245
|
-
const $
|
|
2244
|
+
let $204ce7e475877bb1$var$durationValue = (value)=>typeof value === 'number' ? value + 'ms' : value;
|
|
2245
|
+
const $204ce7e475877bb1$var$fontWeightBase = {
|
|
2246
2246
|
normal: '400',
|
|
2247
2247
|
medium: {
|
|
2248
2248
|
default: '500',
|
|
@@ -2259,22 +2259,22 @@ const $27684d56c53d4b5c$var$fontWeightBase = {
|
|
|
2259
2259
|
},
|
|
2260
2260
|
black: '900'
|
|
2261
2261
|
};
|
|
2262
|
-
const $
|
|
2263
|
-
...$
|
|
2262
|
+
const $204ce7e475877bb1$var$fontWeight = {
|
|
2263
|
+
...$204ce7e475877bb1$var$fontWeightBase,
|
|
2264
2264
|
heading: {
|
|
2265
|
-
default: $
|
|
2266
|
-
':lang(ja, ko, zh, zh-Hant, zh-Hans)': $
|
|
2265
|
+
default: $204ce7e475877bb1$var$fontWeightBase["extra-bold"],
|
|
2266
|
+
':lang(ja, ko, zh, zh-Hant, zh-Hans)': $204ce7e475877bb1$var$fontWeightBase["extra-bold"]
|
|
2267
2267
|
},
|
|
2268
2268
|
title: {
|
|
2269
|
-
default: $
|
|
2270
|
-
':lang(ja, ko, zh, zh-Hant, zh-Hans)': $
|
|
2269
|
+
default: $204ce7e475877bb1$var$fontWeightBase["bold"],
|
|
2270
|
+
':lang(ja, ko, zh, zh-Hant, zh-Hans)': $204ce7e475877bb1$var$fontWeightBase["bold"]
|
|
2271
2271
|
},
|
|
2272
2272
|
detail: {
|
|
2273
|
-
default: $
|
|
2274
|
-
':lang(ja, ko, zh, zh-Hant, zh-Hans)': $
|
|
2273
|
+
default: $204ce7e475877bb1$var$fontWeightBase["medium"],
|
|
2274
|
+
':lang(ja, ko, zh, zh-Hant, zh-Hans)': $204ce7e475877bb1$var$fontWeightBase["bold"]
|
|
2275
2275
|
}
|
|
2276
2276
|
};
|
|
2277
|
-
const $
|
|
2277
|
+
const $204ce7e475877bb1$var$i18nFonts = {
|
|
2278
2278
|
':lang(ar)': 'myriad-arabic, ui-sans-serif, system-ui, sans-serif',
|
|
2279
2279
|
':lang(he)': 'myriad-hebrew, ui-sans-serif, system-ui, sans-serif',
|
|
2280
2280
|
':lang(ja)': "adobe-clean-han-japanese, 'Hiragino Kaku Gothic ProN', '\u30D2\u30E9\u30AE\u30CE\u89D2\u30B4 ProN W3', Osaka, YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo, '\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif",
|
|
@@ -2285,7 +2285,7 @@ const $27684d56c53d4b5c$var$i18nFonts = {
|
|
|
2285
2285
|
':lang(zh-HK)': "adobe-clean-han-hong-kong, source-han-hong-kong, 'MingLiu', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Heiti TC Light', sans-serif",
|
|
2286
2286
|
':lang(zh-Hans, zh-CN, zh-SG)': "adobe-clean-han-simplified-c, source-han-simplified-c, 'SimSun', 'Heiti SC Light', sans-serif"
|
|
2287
2287
|
};
|
|
2288
|
-
const $
|
|
2288
|
+
const $204ce7e475877bb1$var$fontSize = {
|
|
2289
2289
|
// The default font size scale is for use within UI components.
|
|
2290
2290
|
'ui-xs': -2,
|
|
2291
2291
|
'ui-sm': -1,
|
|
@@ -2330,17 +2330,17 @@ const $27684d56c53d4b5c$var$fontSize = {
|
|
|
2330
2330
|
};
|
|
2331
2331
|
// Line heights linearly interpolate between 1.3 and 1.15 for font sizes between 10 and 32, rounded to the nearest 2px.
|
|
2332
2332
|
// Text above 32px always has a line height of 1.15.
|
|
2333
|
-
const $
|
|
2334
|
-
const $
|
|
2335
|
-
const $
|
|
2336
|
-
const $
|
|
2337
|
-
const $
|
|
2338
|
-
const $
|
|
2339
|
-
const $
|
|
2333
|
+
const $204ce7e475877bb1$var$fontSizeCalc = 'var(--s2-font-size-base, 14) * var(--fs)';
|
|
2334
|
+
const $204ce7e475877bb1$var$minFontScale = 1.15;
|
|
2335
|
+
const $204ce7e475877bb1$var$maxFontScale = 1.3;
|
|
2336
|
+
const $204ce7e475877bb1$var$minFontSize = 10;
|
|
2337
|
+
const $204ce7e475877bb1$var$maxFontSize = 32;
|
|
2338
|
+
const $204ce7e475877bb1$var$lineHeightCalc = `round(1em * (${$204ce7e475877bb1$var$minFontScale} + (1 - ((min(${$204ce7e475877bb1$var$maxFontSize}, ${$204ce7e475877bb1$var$fontSizeCalc}) - ${$204ce7e475877bb1$var$minFontSize})) / ${$204ce7e475877bb1$var$maxFontSize - $204ce7e475877bb1$var$minFontSize}) * ${($204ce7e475877bb1$var$maxFontScale - $204ce7e475877bb1$var$minFontScale).toFixed(2)}), 2px)`;
|
|
2339
|
+
const $204ce7e475877bb1$export$1d567c320f4763bc = (0, $6aa8bfe5ed29b83a$export$25d302a5b900a763)({
|
|
2340
2340
|
properties: {
|
|
2341
2341
|
// colors
|
|
2342
|
-
color: new $
|
|
2343
|
-
...$
|
|
2342
|
+
color: new $204ce7e475877bb1$var$SpectrumColorProperty('color', {
|
|
2343
|
+
...$204ce7e475877bb1$var$baseColors,
|
|
2344
2344
|
accent: {
|
|
2345
2345
|
type: "ref",
|
|
2346
2346
|
light: "accent-900",
|
|
@@ -2393,8 +2393,8 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2393
2393
|
},
|
|
2394
2394
|
auto: "lch(from self(backgroundColor, var(--s2-container-bg)) calc((49.44 - l) * infinity) 0 0 / 1)"
|
|
2395
2395
|
}),
|
|
2396
|
-
backgroundColor: new $
|
|
2397
|
-
...$
|
|
2396
|
+
backgroundColor: new $204ce7e475877bb1$var$SpectrumColorProperty('backgroundColor', {
|
|
2397
|
+
...$204ce7e475877bb1$var$baseColors,
|
|
2398
2398
|
accent: {
|
|
2399
2399
|
type: "ref",
|
|
2400
2400
|
light: "accent-900",
|
|
@@ -2681,8 +2681,8 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2681
2681
|
dark: "gray-75"
|
|
2682
2682
|
}
|
|
2683
2683
|
}),
|
|
2684
|
-
borderColor: new $
|
|
2685
|
-
...$
|
|
2684
|
+
borderColor: new $204ce7e475877bb1$var$SpectrumColorProperty('borderColor', {
|
|
2685
|
+
...$204ce7e475877bb1$var$baseColors,
|
|
2686
2686
|
negative: {
|
|
2687
2687
|
type: "ref",
|
|
2688
2688
|
light: "negative-900",
|
|
@@ -2694,8 +2694,8 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2694
2694
|
dark: "gray-300"
|
|
2695
2695
|
}
|
|
2696
2696
|
}),
|
|
2697
|
-
outlineColor: new $
|
|
2698
|
-
...$
|
|
2697
|
+
outlineColor: new $204ce7e475877bb1$var$SpectrumColorProperty('outlineColor', {
|
|
2698
|
+
...$204ce7e475877bb1$var$baseColors,
|
|
2699
2699
|
'focus-ring': {
|
|
2700
2700
|
type: "ref",
|
|
2701
2701
|
light: "blue-800",
|
|
@@ -2703,7 +2703,7 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2703
2703
|
forcedColors: 'Highlight'
|
|
2704
2704
|
}
|
|
2705
2705
|
}),
|
|
2706
|
-
fill: new $
|
|
2706
|
+
fill: new $204ce7e475877bb1$var$SpectrumColorProperty('fill', {
|
|
2707
2707
|
none: 'none',
|
|
2708
2708
|
currentColor: 'currentColor',
|
|
2709
2709
|
accent: {
|
|
@@ -2831,39 +2831,39 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2831
2831
|
light: "silver-800",
|
|
2832
2832
|
dark: "silver-900"
|
|
2833
2833
|
},
|
|
2834
|
-
...$
|
|
2834
|
+
...$204ce7e475877bb1$var$baseColors
|
|
2835
2835
|
}),
|
|
2836
|
-
stroke: new $
|
|
2836
|
+
stroke: new $204ce7e475877bb1$var$SpectrumColorProperty('stroke', {
|
|
2837
2837
|
none: 'none',
|
|
2838
2838
|
currentColor: 'currentColor',
|
|
2839
|
-
...$
|
|
2839
|
+
...$204ce7e475877bb1$var$baseColors
|
|
2840
2840
|
}),
|
|
2841
2841
|
// dimensions
|
|
2842
|
-
borderSpacing: $
|
|
2843
|
-
flexBasis: $
|
|
2842
|
+
borderSpacing: $204ce7e475877bb1$var$baseSpacing,
|
|
2843
|
+
flexBasis: $204ce7e475877bb1$var$createSpectrumSizingProperty('flexBasis', {
|
|
2844
2844
|
auto: 'auto',
|
|
2845
2845
|
full: '100%'
|
|
2846
2846
|
}),
|
|
2847
|
-
rowGap: $
|
|
2848
|
-
columnGap: $
|
|
2849
|
-
height: $
|
|
2850
|
-
width: $
|
|
2851
|
-
containIntrinsicWidth: $
|
|
2852
|
-
containIntrinsicHeight: $
|
|
2853
|
-
minHeight: $
|
|
2854
|
-
maxHeight: $
|
|
2855
|
-
...$
|
|
2847
|
+
rowGap: $204ce7e475877bb1$var$spacing,
|
|
2848
|
+
columnGap: $204ce7e475877bb1$var$spacing,
|
|
2849
|
+
height: $204ce7e475877bb1$var$createSpectrumSizingProperty('height', $204ce7e475877bb1$var$height),
|
|
2850
|
+
width: $204ce7e475877bb1$var$createSpectrumSizingProperty('width', $204ce7e475877bb1$var$width),
|
|
2851
|
+
containIntrinsicWidth: $204ce7e475877bb1$var$createSpectrumSizingProperty('containIntrinsicWidth', $204ce7e475877bb1$var$width),
|
|
2852
|
+
containIntrinsicHeight: $204ce7e475877bb1$var$createSpectrumSizingProperty('containIntrinsicHeight', $204ce7e475877bb1$var$height),
|
|
2853
|
+
minHeight: $204ce7e475877bb1$var$createSpectrumSizingProperty('minHeight', $204ce7e475877bb1$var$height),
|
|
2854
|
+
maxHeight: $204ce7e475877bb1$var$createSpectrumSizingProperty('maxHeight', {
|
|
2855
|
+
...$204ce7e475877bb1$var$height,
|
|
2856
2856
|
none: 'none'
|
|
2857
2857
|
}),
|
|
2858
|
-
minWidth: $
|
|
2859
|
-
maxWidth: $
|
|
2860
|
-
...$
|
|
2858
|
+
minWidth: $204ce7e475877bb1$var$createSpectrumSizingProperty('minWidth', $204ce7e475877bb1$var$width),
|
|
2859
|
+
maxWidth: $204ce7e475877bb1$var$createSpectrumSizingProperty('maxWidth', {
|
|
2860
|
+
...$204ce7e475877bb1$var$width,
|
|
2861
2861
|
none: 'none'
|
|
2862
2862
|
}),
|
|
2863
|
-
borderStartWidth: new (0, $
|
|
2864
|
-
borderEndWidth: new (0, $
|
|
2865
|
-
borderTopWidth: $
|
|
2866
|
-
borderBottomWidth: $
|
|
2863
|
+
borderStartWidth: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('borderInlineStartWidth', $204ce7e475877bb1$var$borderWidth),
|
|
2864
|
+
borderEndWidth: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('borderInlineEndWidth', $204ce7e475877bb1$var$borderWidth),
|
|
2865
|
+
borderTopWidth: $204ce7e475877bb1$var$borderWidth,
|
|
2866
|
+
borderBottomWidth: $204ce7e475877bb1$var$borderWidth,
|
|
2867
2867
|
borderStyle: [
|
|
2868
2868
|
'solid',
|
|
2869
2869
|
'dashed',
|
|
@@ -2877,54 +2877,54 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2877
2877
|
1: '1',
|
|
2878
2878
|
2: '2'
|
|
2879
2879
|
},
|
|
2880
|
-
marginStart: new (0, $
|
|
2881
|
-
marginEnd: new (0, $
|
|
2882
|
-
marginTop: new (0, $
|
|
2883
|
-
marginBottom: new (0, $
|
|
2884
|
-
paddingStart: new (0, $
|
|
2885
|
-
paddingEnd: new (0, $
|
|
2886
|
-
paddingTop: new (0, $
|
|
2887
|
-
paddingBottom: new (0, $
|
|
2888
|
-
scrollMarginStart: new (0, $
|
|
2889
|
-
scrollMarginEnd: new (0, $
|
|
2890
|
-
scrollMarginTop: $
|
|
2891
|
-
scrollMarginBottom: $
|
|
2880
|
+
marginStart: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('marginInlineStart', $204ce7e475877bb1$var$margin),
|
|
2881
|
+
marginEnd: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('marginInlineEnd', $204ce7e475877bb1$var$margin),
|
|
2882
|
+
marginTop: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('marginTop', $204ce7e475877bb1$var$margin),
|
|
2883
|
+
marginBottom: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('marginBottom', $204ce7e475877bb1$var$margin),
|
|
2884
|
+
paddingStart: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('paddingInlineStart', $204ce7e475877bb1$var$padding),
|
|
2885
|
+
paddingEnd: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('paddingInlineEnd', $204ce7e475877bb1$var$padding),
|
|
2886
|
+
paddingTop: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('paddingTop', $204ce7e475877bb1$var$padding),
|
|
2887
|
+
paddingBottom: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('paddingBottom', $204ce7e475877bb1$var$padding),
|
|
2888
|
+
scrollMarginStart: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('scrollMarginInlineStart', $204ce7e475877bb1$var$baseSpacing),
|
|
2889
|
+
scrollMarginEnd: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('scrollMarginInlineEnd', $204ce7e475877bb1$var$baseSpacing),
|
|
2890
|
+
scrollMarginTop: $204ce7e475877bb1$var$baseSpacing,
|
|
2891
|
+
scrollMarginBottom: $204ce7e475877bb1$var$baseSpacing,
|
|
2892
2892
|
// Using rems instead of px here (unlike regular padding) because this often needs to match the height of something.
|
|
2893
|
-
scrollPaddingStart: new (0, $
|
|
2894
|
-
scrollPaddingEnd: new (0, $
|
|
2895
|
-
scrollPaddingTop: $
|
|
2896
|
-
scrollPaddingBottom: $
|
|
2897
|
-
textIndent: new (0, $
|
|
2898
|
-
translateX: new (0, $
|
|
2893
|
+
scrollPaddingStart: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('scrollPaddingInlineStart', $204ce7e475877bb1$var$baseSpacing),
|
|
2894
|
+
scrollPaddingEnd: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('scrollPaddingInlineEnd', $204ce7e475877bb1$var$baseSpacing),
|
|
2895
|
+
scrollPaddingTop: $204ce7e475877bb1$var$baseSpacing,
|
|
2896
|
+
scrollPaddingBottom: $204ce7e475877bb1$var$baseSpacing,
|
|
2897
|
+
textIndent: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('textIndent', $204ce7e475877bb1$var$baseSpacing),
|
|
2898
|
+
translateX: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
2899
2899
|
'--translateX',
|
|
2900
2900
|
'translate'
|
|
2901
2901
|
], (value)=>({
|
|
2902
2902
|
'--translateX': String(value),
|
|
2903
2903
|
translate: 'var(--translateX, 0) var(--translateY, 0)'
|
|
2904
|
-
}), new (0, $
|
|
2905
|
-
translateY: new (0, $
|
|
2904
|
+
}), new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('--translateX', $204ce7e475877bb1$var$translate)),
|
|
2905
|
+
translateY: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
2906
2906
|
'--translateY',
|
|
2907
2907
|
'translate'
|
|
2908
2908
|
], (value)=>({
|
|
2909
2909
|
'--translateY': String(value),
|
|
2910
2910
|
translate: 'var(--translateX, 0) var(--translateY, 0)'
|
|
2911
|
-
}), new (0, $
|
|
2912
|
-
rotate: new (0, $
|
|
2913
|
-
scaleX: new (0, $
|
|
2911
|
+
}), new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('--translateY', $204ce7e475877bb1$var$translate)),
|
|
2912
|
+
rotate: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('rotate', (value)=>typeof value === 'number' ? `${value}deg` : value),
|
|
2913
|
+
scaleX: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
2914
2914
|
'--scaleX',
|
|
2915
2915
|
'scale'
|
|
2916
2916
|
], (value)=>({
|
|
2917
2917
|
'--scaleX': String(value),
|
|
2918
2918
|
scale: 'var(--scaleX, 1) var(--scaleY, 1)'
|
|
2919
2919
|
})),
|
|
2920
|
-
scaleY: new (0, $
|
|
2920
|
+
scaleY: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
2921
2921
|
'--scaleY',
|
|
2922
2922
|
'scale'
|
|
2923
2923
|
], (value)=>({
|
|
2924
2924
|
'--scaleY': String(value),
|
|
2925
2925
|
scale: 'var(--scaleX, 1) var(--scaleY, 1)'
|
|
2926
2926
|
})),
|
|
2927
|
-
transform: new (0, $
|
|
2927
|
+
transform: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('transform'),
|
|
2928
2928
|
position: [
|
|
2929
2929
|
'absolute',
|
|
2930
2930
|
'fixed',
|
|
@@ -2932,13 +2932,13 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2932
2932
|
'sticky',
|
|
2933
2933
|
'static'
|
|
2934
2934
|
],
|
|
2935
|
-
insetStart: new (0, $
|
|
2936
|
-
insetEnd: new (0, $
|
|
2937
|
-
top: new (0, $
|
|
2938
|
-
left: new (0, $
|
|
2939
|
-
bottom: new (0, $
|
|
2940
|
-
right: new (0, $
|
|
2941
|
-
aspectRatio: new (0, $
|
|
2935
|
+
insetStart: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('insetInlineStart', $204ce7e475877bb1$var$inset),
|
|
2936
|
+
insetEnd: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('insetInlineEnd', $204ce7e475877bb1$var$inset),
|
|
2937
|
+
top: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('top', $204ce7e475877bb1$var$inset),
|
|
2938
|
+
left: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('left', $204ce7e475877bb1$var$inset),
|
|
2939
|
+
bottom: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('bottom', $204ce7e475877bb1$var$inset),
|
|
2940
|
+
right: new (0, $6aa8bfe5ed29b83a$export$6bff0717a72a8669)('right', $204ce7e475877bb1$var$inset),
|
|
2941
|
+
aspectRatio: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('aspectRatio', (value)=>{
|
|
2942
2942
|
if (value === 'square') return '1/1';
|
|
2943
2943
|
if (value === 'video') return '16/9';
|
|
2944
2944
|
return value;
|
|
@@ -2947,24 +2947,24 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2947
2947
|
fontFamily: {
|
|
2948
2948
|
sans: {
|
|
2949
2949
|
default: 'var(--s2-font-family-sans, adobe-clean-spectrum-vf), adobe-clean-variable, adobe-clean, ui-sans-serif, system-ui, sans-serif',
|
|
2950
|
-
...$
|
|
2950
|
+
...$204ce7e475877bb1$var$i18nFonts
|
|
2951
2951
|
},
|
|
2952
2952
|
serif: {
|
|
2953
2953
|
default: 'var(--s2-font-family-serif, adobe-clean-spectrum-srf-vf), adobe-clean-serif, "Source Serif", Georgia, serif',
|
|
2954
|
-
...$
|
|
2954
|
+
...$204ce7e475877bb1$var$i18nFonts
|
|
2955
2955
|
},
|
|
2956
2956
|
code: 'source-code-pro, "Source Code Pro", Monaco, monospace'
|
|
2957
2957
|
},
|
|
2958
|
-
fontSize: new (0, $
|
|
2958
|
+
fontSize: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
2959
2959
|
'fontSize',
|
|
2960
2960
|
'lineHeight'
|
|
2961
2961
|
], (value)=>{
|
|
2962
2962
|
return {
|
|
2963
2963
|
'--fs': `pow(1.125, ${value})`,
|
|
2964
|
-
fontSize: `round(${$
|
|
2964
|
+
fontSize: `round(${$204ce7e475877bb1$var$fontSizeCalc} / 16 * 1rem, 1px)`
|
|
2965
2965
|
};
|
|
2966
|
-
}, $
|
|
2967
|
-
fontWeight: new (0, $
|
|
2966
|
+
}, $204ce7e475877bb1$var$fontSize),
|
|
2967
|
+
fontWeight: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
2968
2968
|
'fontWeight',
|
|
2969
2969
|
'fontVariationSettings',
|
|
2970
2970
|
'fontSynthesisWeight'
|
|
@@ -2976,24 +2976,24 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
2976
2976
|
fontWeight: value,
|
|
2977
2977
|
fontSynthesisWeight: 'none'
|
|
2978
2978
|
};
|
|
2979
|
-
}, $
|
|
2979
|
+
}, $204ce7e475877bb1$var$fontWeight),
|
|
2980
2980
|
lineHeight: {
|
|
2981
2981
|
// See https://spectrum.corp.adobe.com/page/typography/#Line-height
|
|
2982
2982
|
ui: {
|
|
2983
2983
|
// Calculate line-height based on font size.
|
|
2984
|
-
default: $
|
|
2984
|
+
default: $204ce7e475877bb1$var$lineHeightCalc,
|
|
2985
2985
|
// Arabic and hebrew use the old line-height for now since they are on Myriad instead of Adobe Clean.
|
|
2986
2986
|
':lang(ar, he)': 1.3,
|
|
2987
2987
|
// CJK fonts use a larger line-height.
|
|
2988
2988
|
':lang(ja, ko, zh, zh-Hant, zh-Hans, zh-CN, zh-SG)': 1.5
|
|
2989
2989
|
},
|
|
2990
2990
|
heading: {
|
|
2991
|
-
default: $
|
|
2991
|
+
default: $204ce7e475877bb1$var$lineHeightCalc,
|
|
2992
2992
|
':lang(ar, he)': 1.3,
|
|
2993
2993
|
':lang(ja, ko, zh, zh-Hant, zh-Hans, zh-CN, zh-SG)': 1.5
|
|
2994
2994
|
},
|
|
2995
2995
|
title: {
|
|
2996
|
-
default: $
|
|
2996
|
+
default: $204ce7e475877bb1$var$lineHeightCalc,
|
|
2997
2997
|
':lang(ar, he)': 1.3,
|
|
2998
2998
|
':lang(ja, ko, zh, zh-Hant, zh-Hans, zh-CN, zh-SG)': 1.5
|
|
2999
2999
|
},
|
|
@@ -3003,7 +3003,7 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3003
3003
|
':lang(ja, ko, zh, zh-Hant, zh-Hans, zh-CN, zh-SG)': 1.7
|
|
3004
3004
|
},
|
|
3005
3005
|
detail: {
|
|
3006
|
-
default: $
|
|
3006
|
+
default: $204ce7e475877bb1$var$lineHeightCalc,
|
|
3007
3007
|
':lang(ar, he)': 1.3,
|
|
3008
3008
|
':lang(ja, ko, zh, zh-Hant, zh-Hans, zh-CN, zh-SG)': 1.5
|
|
3009
3009
|
},
|
|
@@ -3043,7 +3043,7 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3043
3043
|
'sub',
|
|
3044
3044
|
'super'
|
|
3045
3045
|
],
|
|
3046
|
-
textDecoration: new (0, $
|
|
3046
|
+
textDecoration: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
3047
3047
|
'textDecoration',
|
|
3048
3048
|
'textUnderlineOffset'
|
|
3049
3049
|
], (value)=>({
|
|
@@ -3054,7 +3054,7 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3054
3054
|
'ellipsis',
|
|
3055
3055
|
'clip'
|
|
3056
3056
|
],
|
|
3057
|
-
lineClamp: new (0, $
|
|
3057
|
+
lineClamp: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
3058
3058
|
'overflow',
|
|
3059
3059
|
'display',
|
|
3060
3060
|
'-webkit-box-orient',
|
|
@@ -3106,10 +3106,10 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3106
3106
|
dragged: `drop-shadow${"0px"} ${"6px"} ${"16px"} ${"light-dark(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6))"}`,
|
|
3107
3107
|
none: 'none'
|
|
3108
3108
|
},
|
|
3109
|
-
borderTopStartRadius: new (0, $
|
|
3110
|
-
borderTopEndRadius: new (0, $
|
|
3111
|
-
borderBottomStartRadius: new (0, $
|
|
3112
|
-
borderBottomEndRadius: new (0, $
|
|
3109
|
+
borderTopStartRadius: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('borderStartStartRadius', $204ce7e475877bb1$var$radius),
|
|
3110
|
+
borderTopEndRadius: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('borderStartEndRadius', $204ce7e475877bb1$var$radius),
|
|
3111
|
+
borderBottomStartRadius: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('borderEndStartRadius', $204ce7e475877bb1$var$radius),
|
|
3112
|
+
borderBottomEndRadius: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('borderEndEndRadius', $204ce7e475877bb1$var$radius),
|
|
3113
3113
|
forcedColorAdjust: [
|
|
3114
3114
|
'auto',
|
|
3115
3115
|
'none'
|
|
@@ -3119,7 +3119,7 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3119
3119
|
'dark',
|
|
3120
3120
|
'light dark'
|
|
3121
3121
|
],
|
|
3122
|
-
backgroundImage: new (0, $
|
|
3122
|
+
backgroundImage: new (0, $6aa8bfe5ed29b83a$export$1b6028cfca42adca)([
|
|
3123
3123
|
'backgroundImage',
|
|
3124
3124
|
'--g0',
|
|
3125
3125
|
'--g1',
|
|
@@ -3138,7 +3138,7 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3138
3138
|
let properties = [];
|
|
3139
3139
|
value[0].stops.forEach(([colorValue], i)=>{
|
|
3140
3140
|
properties.push(`--g${i}`);
|
|
3141
|
-
values[`--g${i}`] = $
|
|
3141
|
+
values[`--g${i}`] = $204ce7e475877bb1$export$35e9368ef982300f(colorValue);
|
|
3142
3142
|
});
|
|
3143
3143
|
// This is used by transition-property so we automatically transition all of the color stops.
|
|
3144
3144
|
values['--gp'] = properties.join(', ');
|
|
@@ -3224,7 +3224,7 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3224
3224
|
'plus-darker',
|
|
3225
3225
|
'plus-lighter'
|
|
3226
3226
|
],
|
|
3227
|
-
opacity: new (0, $
|
|
3227
|
+
opacity: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('opacity'),
|
|
3228
3228
|
outlineStyle: [
|
|
3229
3229
|
'none',
|
|
3230
3230
|
'solid',
|
|
@@ -3233,15 +3233,15 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3233
3233
|
'double',
|
|
3234
3234
|
'inset'
|
|
3235
3235
|
],
|
|
3236
|
-
outlineOffset: new (0, $
|
|
3237
|
-
outlineWidth: $
|
|
3238
|
-
transition: new (0, $
|
|
3239
|
-
transitionDelay: new (0, $
|
|
3240
|
-
transitionDuration: new (0, $
|
|
3241
|
-
transitionTimingFunction: $
|
|
3242
|
-
animation: new (0, $
|
|
3243
|
-
animationDuration: new (0, $
|
|
3244
|
-
animationDelay: new (0, $
|
|
3236
|
+
outlineOffset: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('outlineOffset', (v)=>`${v}px`),
|
|
3237
|
+
outlineWidth: $204ce7e475877bb1$var$borderWidth,
|
|
3238
|
+
transition: new (0, $6aa8bfe5ed29b83a$export$965169194d2485f7)('transitionProperty', $204ce7e475877bb1$var$transitionProperty),
|
|
3239
|
+
transitionDelay: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('transitionDelay', $204ce7e475877bb1$var$durationValue),
|
|
3240
|
+
transitionDuration: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('transitionDuration', $204ce7e475877bb1$var$durationValue),
|
|
3241
|
+
transitionTimingFunction: $204ce7e475877bb1$var$timingFunction,
|
|
3242
|
+
animation: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('animationName'),
|
|
3243
|
+
animationDuration: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('animationDuration', $204ce7e475877bb1$var$durationValue),
|
|
3244
|
+
animationDelay: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('animationDelay', $204ce7e475877bb1$var$durationValue),
|
|
3245
3245
|
animationDirection: [
|
|
3246
3246
|
'normal',
|
|
3247
3247
|
'reverse',
|
|
@@ -3254,8 +3254,8 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3254
3254
|
'backwards',
|
|
3255
3255
|
'both'
|
|
3256
3256
|
],
|
|
3257
|
-
animationIterationCount: new (0, $
|
|
3258
|
-
animationTimingFunction: $
|
|
3257
|
+
animationIterationCount: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('animationIterationCount'),
|
|
3258
|
+
animationTimingFunction: $204ce7e475877bb1$var$timingFunction,
|
|
3259
3259
|
animationPlayState: [
|
|
3260
3260
|
'paused',
|
|
3261
3261
|
'running'
|
|
@@ -3333,12 +3333,12 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3333
3333
|
'wrap-reverse',
|
|
3334
3334
|
'nowrap'
|
|
3335
3335
|
],
|
|
3336
|
-
flexShrink: new (0, $
|
|
3337
|
-
flexGrow: new (0, $
|
|
3338
|
-
gridColumnStart: new (0, $
|
|
3339
|
-
gridColumnEnd: new (0, $
|
|
3340
|
-
gridRowStart: new (0, $
|
|
3341
|
-
gridRowEnd: new (0, $
|
|
3336
|
+
flexShrink: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('flexShrink'),
|
|
3337
|
+
flexGrow: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('flexGrow'),
|
|
3338
|
+
gridColumnStart: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridColumnStart'),
|
|
3339
|
+
gridColumnEnd: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridColumnEnd'),
|
|
3340
|
+
gridRowStart: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridRowStart'),
|
|
3341
|
+
gridRowEnd: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridRowEnd'),
|
|
3342
3342
|
gridAutoFlow: [
|
|
3343
3343
|
'row',
|
|
3344
3344
|
'column',
|
|
@@ -3346,11 +3346,11 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3346
3346
|
'row dense',
|
|
3347
3347
|
'column dense'
|
|
3348
3348
|
],
|
|
3349
|
-
gridAutoRows: new (0, $
|
|
3350
|
-
gridAutoColumns: new (0, $
|
|
3351
|
-
gridTemplateColumns: new (0, $
|
|
3352
|
-
gridTemplateRows: new (0, $
|
|
3353
|
-
gridTemplateAreas: new (0, $
|
|
3349
|
+
gridAutoRows: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridAutoRows', $204ce7e475877bb1$var$gridTrackSize),
|
|
3350
|
+
gridAutoColumns: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridAutoColumns', $204ce7e475877bb1$var$gridTrackSize),
|
|
3351
|
+
gridTemplateColumns: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridTemplateColumns', $204ce7e475877bb1$var$gridTrack),
|
|
3352
|
+
gridTemplateRows: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridTemplateRows', $204ce7e475877bb1$var$gridTrack),
|
|
3353
|
+
gridTemplateAreas: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('gridTemplateAreas', (value)=>value.map((v)=>`"${v}"`).join('')),
|
|
3354
3354
|
float: [
|
|
3355
3355
|
'inline-start',
|
|
3356
3356
|
'inline-end',
|
|
@@ -3446,7 +3446,7 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3446
3446
|
'auto',
|
|
3447
3447
|
'smooth'
|
|
3448
3448
|
],
|
|
3449
|
-
order: new (0, $
|
|
3449
|
+
order: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('order'),
|
|
3450
3450
|
pointerEvents: [
|
|
3451
3451
|
'none',
|
|
3452
3452
|
'auto'
|
|
@@ -3574,9 +3574,9 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3574
3574
|
'contents',
|
|
3575
3575
|
'transform'
|
|
3576
3576
|
],
|
|
3577
|
-
zIndex: new (0, $
|
|
3577
|
+
zIndex: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('zIndex'),
|
|
3578
3578
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3579
|
-
disableTapHighlight: new (0, $
|
|
3579
|
+
disableTapHighlight: new (0, $6aa8bfe5ed29b83a$export$d03475ad9df06cd2)('-webkit-tap-highlight-color', (_value)=>'rgba(0,0,0,0)'),
|
|
3580
3580
|
unicodeBidi: [
|
|
3581
3581
|
'normal',
|
|
3582
3582
|
'embed',
|
|
@@ -3786,14 +3786,14 @@ const $27684d56c53d4b5c$export$1d567c320f4763bc = (0, $1619a4f0ddc7ccfb$export$2
|
|
|
3786
3786
|
// Windows tablet matches the same as iPhone. No difference when a mouse is connected.
|
|
3787
3787
|
// Windows touch laptop matches same as macOS: (any-pointer: fine), (pointer: fine), (any-hover: hover), (hover: hover).
|
|
3788
3788
|
touch: '@media not ((hover: hover) and (pointer: fine))',
|
|
3789
|
-
sm: `@media (min-width: ${$
|
|
3790
|
-
md: `@media (min-width: ${$
|
|
3791
|
-
lg: `@media (min-width: ${$
|
|
3792
|
-
xl: `@media (min-width: ${$
|
|
3793
|
-
'2xl': `@media (min-width: ${$
|
|
3789
|
+
sm: `@media (min-width: ${$204ce7e475877bb1$var$pxToRem(640)})`,
|
|
3790
|
+
md: `@media (min-width: ${$204ce7e475877bb1$var$pxToRem(768)})`,
|
|
3791
|
+
lg: `@media (min-width: ${$204ce7e475877bb1$var$pxToRem(1024)})`,
|
|
3792
|
+
xl: `@media (min-width: ${$204ce7e475877bb1$var$pxToRem(1280)})`,
|
|
3793
|
+
'2xl': `@media (min-width: ${$204ce7e475877bb1$var$pxToRem(1536)})`
|
|
3794
3794
|
}
|
|
3795
3795
|
});
|
|
3796
3796
|
|
|
3797
3797
|
|
|
3798
|
-
export {$
|
|
3798
|
+
export {$204ce7e475877bb1$export$49bbad2a916ab57c as baseColor, $204ce7e475877bb1$export$35e9368ef982300f as color, $204ce7e475877bb1$export$d19e682d444755ed as lightDark, $204ce7e475877bb1$export$9b476054b78b89cd as colorMix, $204ce7e475877bb1$export$46def8197cf4dd4c as linearGradient, $204ce7e475877bb1$export$ba024f4caf693d15 as fontRelative, $204ce7e475877bb1$export$17b63977b35bb6d2 as edgeToText, $204ce7e475877bb1$export$a941ed4b947d12f8 as space, $204ce7e475877bb1$export$346677f925de839c as size, $204ce7e475877bb1$export$1d567c320f4763bc as style};
|
|
3799
3799
|
//# sourceMappingURL=spectrum-theme.mjs.map
|