@xsolla/switch-theme-customization 0.187.3 → 0.188.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/README.md +5 -5
- package/index.d.mts +221 -173
- package/index.d.ts +221 -173
- package/index.js +386 -199
- package/index.js.map +1 -1
- package/index.mjs +367 -198
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -31,35 +31,49 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
DELETED_LEGACY_TYPO_VARS: () => DELETED_LEGACY_TYPO_VARS,
|
|
34
|
-
PentagramResolver: () =>
|
|
34
|
+
PentagramResolver: () => XuiResolver,
|
|
35
|
+
XuiResolver: () => XuiResolver,
|
|
35
36
|
base: () => base10,
|
|
36
37
|
baseDark: () => baseDark,
|
|
37
|
-
buildBaseColorsFromPentagram: () =>
|
|
38
|
+
buildBaseColorsFromPentagram: () => buildBaseColorsFromXui,
|
|
39
|
+
buildBaseColorsFromXui: () => buildBaseColorsFromXui,
|
|
38
40
|
createResolver: () => createResolver,
|
|
39
41
|
emails: () => emails,
|
|
40
42
|
emailsDark: () => emailsDark,
|
|
41
43
|
emailsThemes: () => emailsThemes,
|
|
42
|
-
flattenPentagramShapeToVars: () =>
|
|
44
|
+
flattenPentagramShapeToVars: () => flattenXuiShapeToVars,
|
|
45
|
+
flattenXuiShapeToVars: () => flattenXuiShapeToVars,
|
|
43
46
|
generateWithScheme: () => generateWithScheme,
|
|
44
|
-
mapPentagramShapeToLegacy: () =>
|
|
45
|
-
mapPentagramThemeToLegacy: () =>
|
|
46
|
-
mapPentagramTypoToLegacy: () =>
|
|
47
|
+
mapPentagramShapeToLegacy: () => mapXuiShapeToLegacy,
|
|
48
|
+
mapPentagramThemeToLegacy: () => mapXuiThemeToLegacy,
|
|
49
|
+
mapPentagramTypoToLegacy: () => mapXuiTypoToLegacy,
|
|
47
50
|
mapThemeSchemeToLegacy: () => mapThemeSchemeToLegacy,
|
|
51
|
+
mapXuiShapeToLegacy: () => mapXuiShapeToLegacy,
|
|
52
|
+
mapXuiThemeToLegacy: () => mapXuiThemeToLegacy,
|
|
53
|
+
mapXuiTypoToLegacy: () => mapXuiTypoToLegacy,
|
|
48
54
|
palettes: () => palettes,
|
|
49
55
|
paystation4: () => paystation4,
|
|
50
56
|
paystation4Dark: () => paystation4Dark,
|
|
51
57
|
paystation4Gaijin: () => paystation4Gaijin,
|
|
52
58
|
paystation4Nexters: () => paystation4Nexters,
|
|
53
|
-
paystation4PentagramDark: () =>
|
|
54
|
-
paystation4PentagramDarkLegacyCompatible: () =>
|
|
55
|
-
paystation4PentagramLight: () =>
|
|
56
|
-
paystation4PentagramLightLegacyCompatible: () =>
|
|
59
|
+
paystation4PentagramDark: () => paystationXuiDark,
|
|
60
|
+
paystation4PentagramDarkLegacyCompatible: () => paystationXuiDarkLegacyCompatible,
|
|
61
|
+
paystation4PentagramLight: () => paystationXuiLight,
|
|
62
|
+
paystation4PentagramLightLegacyCompatible: () => paystationXuiLightLegacyCompatible,
|
|
57
63
|
paystation4Take2: () => paystation4Take2,
|
|
58
64
|
paystation4Themes: () => paystation4Themes,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
paystation4XuiDark: () => paystationXuiDark,
|
|
66
|
+
paystation4XuiDarkLegacyCompatible: () => paystationXuiDarkLegacyCompatible,
|
|
67
|
+
paystation4XuiLight: () => paystationXuiLight,
|
|
68
|
+
paystation4XuiLightLegacyCompatible: () => paystationXuiLightLegacyCompatible,
|
|
69
|
+
paystationXuiDark: () => paystationXuiDark,
|
|
70
|
+
paystationXuiDarkLegacyCompatible: () => paystationXuiDarkLegacyCompatible,
|
|
71
|
+
paystationXuiLight: () => paystationXuiLight,
|
|
72
|
+
paystationXuiLightLegacyCompatible: () => paystationXuiLightLegacyCompatible,
|
|
73
|
+
pentagramDark: () => xuiDark,
|
|
74
|
+
pentagramDarkScheme: () => xuiDarkScheme,
|
|
75
|
+
pentagramLight: () => xuiLight,
|
|
76
|
+
pentagramLightScheme: () => xuiLightScheme,
|
|
63
77
|
primaryPalette: () => primaryPalette,
|
|
64
78
|
publisherV2: () => publisherV2,
|
|
65
79
|
publisherV2Dark: () => publisherV2Dark,
|
|
@@ -72,7 +86,11 @@ __export(index_exports, {
|
|
|
72
86
|
themesBaseColors: () => themesBaseColors,
|
|
73
87
|
themesBaseColorsArray: () => themesBaseColorsArray,
|
|
74
88
|
themesColorsScheme: () => themesColorsScheme,
|
|
75
|
-
typoPrimitives: () => typo_primitives_default
|
|
89
|
+
typoPrimitives: () => typo_primitives_default,
|
|
90
|
+
xuiDark: () => xuiDark,
|
|
91
|
+
xuiDarkScheme: () => xuiDarkScheme,
|
|
92
|
+
xuiLight: () => xuiLight,
|
|
93
|
+
xuiLightScheme: () => xuiLightScheme
|
|
76
94
|
});
|
|
77
95
|
module.exports = __toCommonJS(index_exports);
|
|
78
96
|
|
|
@@ -2015,45 +2033,51 @@ var themesColorsScheme = {
|
|
|
2015
2033
|
emailsDark: emailsDarkScheme
|
|
2016
2034
|
};
|
|
2017
2035
|
|
|
2018
|
-
// src/
|
|
2036
|
+
// src/xui-primitives/typo-primitives.json
|
|
2019
2037
|
var typo_primitives_default = {
|
|
2020
2038
|
heading: {
|
|
2021
2039
|
h1: {
|
|
2022
|
-
|
|
2023
|
-
|
|
2040
|
+
fontFamily: "font-family/display",
|
|
2041
|
+
fontSize: "font-size/450",
|
|
2042
|
+
lineHeight: "line-height-display/450",
|
|
2024
2043
|
fontWeight: 700
|
|
2025
2044
|
},
|
|
2026
2045
|
h2: {
|
|
2027
|
-
|
|
2028
|
-
|
|
2046
|
+
fontFamily: "font-family/display",
|
|
2047
|
+
fontSize: "font-size/350",
|
|
2048
|
+
lineHeight: "line-height-display/350",
|
|
2029
2049
|
fontWeight: 700
|
|
2030
2050
|
},
|
|
2031
2051
|
h3: {
|
|
2032
|
-
|
|
2033
|
-
|
|
2052
|
+
fontFamily: "font-family/display",
|
|
2053
|
+
fontSize: "font-size/300",
|
|
2054
|
+
lineHeight: "line-height-display/300",
|
|
2034
2055
|
fontWeight: 700
|
|
2035
2056
|
},
|
|
2036
2057
|
h4: {
|
|
2037
|
-
|
|
2038
|
-
|
|
2058
|
+
fontFamily: "font-family/display",
|
|
2059
|
+
fontSize: "font-size/250",
|
|
2060
|
+
lineHeight: "line-height-display/250",
|
|
2039
2061
|
fontWeight: 700
|
|
2040
2062
|
},
|
|
2041
2063
|
h5: {
|
|
2042
|
-
|
|
2043
|
-
|
|
2064
|
+
fontFamily: "font-family/display",
|
|
2065
|
+
fontSize: "font-size/200",
|
|
2066
|
+
lineHeight: "line-height-display/200",
|
|
2044
2067
|
fontWeight: 700
|
|
2045
2068
|
}
|
|
2046
2069
|
},
|
|
2047
2070
|
basic: {
|
|
2048
2071
|
display: {
|
|
2049
|
-
fontFamily: "compact",
|
|
2050
|
-
fontSize: "300",
|
|
2051
|
-
lineHeight: "compact/300",
|
|
2072
|
+
fontFamily: "font-family/compact",
|
|
2073
|
+
fontSize: "font-size/300",
|
|
2074
|
+
lineHeight: "line-height-compact/300",
|
|
2052
2075
|
fontWeight: 500
|
|
2053
2076
|
},
|
|
2054
2077
|
bodyLg: {
|
|
2055
|
-
|
|
2056
|
-
|
|
2078
|
+
fontFamily: "font-family/compact",
|
|
2079
|
+
fontSize: "font-size/175",
|
|
2080
|
+
lineHeight: "line-height-compact/175",
|
|
2057
2081
|
default: {
|
|
2058
2082
|
fontWeight: 400
|
|
2059
2083
|
},
|
|
@@ -2062,12 +2086,13 @@ var typo_primitives_default = {
|
|
|
2062
2086
|
},
|
|
2063
2087
|
paragraph: {
|
|
2064
2088
|
spacing: "spacing/250",
|
|
2065
|
-
lineHeight: "text/175"
|
|
2089
|
+
lineHeight: "line-height-text/175"
|
|
2066
2090
|
}
|
|
2067
2091
|
},
|
|
2068
2092
|
bodyMd: {
|
|
2069
|
-
|
|
2070
|
-
|
|
2093
|
+
fontFamily: "font-family/compact",
|
|
2094
|
+
fontSize: "font-size/150",
|
|
2095
|
+
lineHeight: "line-height-compact/150",
|
|
2071
2096
|
default: {
|
|
2072
2097
|
fontWeight: 400
|
|
2073
2098
|
},
|
|
@@ -2076,12 +2101,13 @@ var typo_primitives_default = {
|
|
|
2076
2101
|
},
|
|
2077
2102
|
paragraph: {
|
|
2078
2103
|
spacing: "spacing/200",
|
|
2079
|
-
lineHeight: "text/150"
|
|
2104
|
+
lineHeight: "line-height-text/150"
|
|
2080
2105
|
}
|
|
2081
2106
|
},
|
|
2082
2107
|
bodySm: {
|
|
2083
|
-
|
|
2084
|
-
|
|
2108
|
+
fontFamily: "font-family/compact",
|
|
2109
|
+
fontSize: "font-size/125",
|
|
2110
|
+
lineHeight: "line-height-compact/125",
|
|
2085
2111
|
default: {
|
|
2086
2112
|
fontWeight: 400
|
|
2087
2113
|
},
|
|
@@ -2090,12 +2116,13 @@ var typo_primitives_default = {
|
|
|
2090
2116
|
},
|
|
2091
2117
|
paragraph: {
|
|
2092
2118
|
spacing: "spacing/150",
|
|
2093
|
-
lineHeight: "text/125"
|
|
2119
|
+
lineHeight: "line-height-text/125"
|
|
2094
2120
|
}
|
|
2095
2121
|
},
|
|
2096
2122
|
bodyXs: {
|
|
2097
|
-
|
|
2098
|
-
|
|
2123
|
+
fontFamily: "font-family/compact",
|
|
2124
|
+
fontSize: "font-size/100",
|
|
2125
|
+
lineHeight: "line-height-compact/100",
|
|
2099
2126
|
default: {
|
|
2100
2127
|
fontWeight: 400
|
|
2101
2128
|
},
|
|
@@ -2104,12 +2131,13 @@ var typo_primitives_default = {
|
|
|
2104
2131
|
},
|
|
2105
2132
|
paragraph: {
|
|
2106
2133
|
spacing: "spacing/100",
|
|
2107
|
-
lineHeight: "text/100"
|
|
2134
|
+
lineHeight: "line-height-text/100"
|
|
2108
2135
|
}
|
|
2109
2136
|
},
|
|
2110
2137
|
bodyXxs: {
|
|
2111
|
-
|
|
2112
|
-
|
|
2138
|
+
fontFamily: "font-family/compact",
|
|
2139
|
+
fontSize: "font-size/75",
|
|
2140
|
+
lineHeight: "line-height-compact/75",
|
|
2113
2141
|
default: {
|
|
2114
2142
|
fontWeight: 400
|
|
2115
2143
|
},
|
|
@@ -2118,68 +2146,179 @@ var typo_primitives_default = {
|
|
|
2118
2146
|
},
|
|
2119
2147
|
paragraph: {
|
|
2120
2148
|
spacing: "spacing/75",
|
|
2121
|
-
lineHeight: "text/75"
|
|
2149
|
+
lineHeight: "line-height-text/75"
|
|
2122
2150
|
}
|
|
2123
2151
|
}
|
|
2124
2152
|
},
|
|
2125
2153
|
control: {
|
|
2126
2154
|
button: {
|
|
2127
|
-
xl: {
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2155
|
+
xl: {
|
|
2156
|
+
fontSize: "component-scale-font-size/600",
|
|
2157
|
+
lineHeight: "component-scale-line-height/600"
|
|
2158
|
+
},
|
|
2159
|
+
lg: {
|
|
2160
|
+
fontSize: "component-scale-font-size/500",
|
|
2161
|
+
lineHeight: "component-scale-line-height/500"
|
|
2162
|
+
},
|
|
2163
|
+
md: {
|
|
2164
|
+
fontSize: "component-scale-font-size/400",
|
|
2165
|
+
lineHeight: "component-scale-line-height/400"
|
|
2166
|
+
},
|
|
2167
|
+
sm: {
|
|
2168
|
+
fontSize: "component-scale-font-size/300",
|
|
2169
|
+
lineHeight: "component-scale-line-height/300"
|
|
2170
|
+
},
|
|
2171
|
+
xs: {
|
|
2172
|
+
fontSize: "component-scale-font-size/200",
|
|
2173
|
+
lineHeight: "component-scale-line-height/200"
|
|
2174
|
+
}
|
|
2132
2175
|
},
|
|
2133
2176
|
input: {
|
|
2134
|
-
xl: {
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2177
|
+
xl: {
|
|
2178
|
+
fontSize: "component-scale-font-size/600",
|
|
2179
|
+
lineHeight: "component-scale-line-height/600"
|
|
2180
|
+
},
|
|
2181
|
+
lg: {
|
|
2182
|
+
fontSize: "component-scale-font-size/500",
|
|
2183
|
+
lineHeight: "component-scale-line-height/500"
|
|
2184
|
+
},
|
|
2185
|
+
md: {
|
|
2186
|
+
fontSize: "component-scale-font-size/400",
|
|
2187
|
+
lineHeight: "component-scale-line-height/400"
|
|
2188
|
+
},
|
|
2189
|
+
sm: {
|
|
2190
|
+
fontSize: "component-scale-font-size/300",
|
|
2191
|
+
lineHeight: "component-scale-line-height/300"
|
|
2192
|
+
},
|
|
2193
|
+
xs: {
|
|
2194
|
+
fontSize: "component-scale-font-size/200",
|
|
2195
|
+
lineHeight: "component-scale-line-height/200"
|
|
2196
|
+
}
|
|
2139
2197
|
},
|
|
2140
2198
|
checkbox: {
|
|
2141
|
-
xl: {
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2199
|
+
xl: {
|
|
2200
|
+
fontSize: "component-scale-font-size/600",
|
|
2201
|
+
lineHeight: "component-scale-line-height/600"
|
|
2202
|
+
},
|
|
2203
|
+
lg: {
|
|
2204
|
+
fontSize: "component-scale-font-size/500",
|
|
2205
|
+
lineHeight: "component-scale-line-height/500"
|
|
2206
|
+
},
|
|
2207
|
+
md: {
|
|
2208
|
+
fontSize: "component-scale-font-size/400",
|
|
2209
|
+
lineHeight: "component-scale-line-height/400"
|
|
2210
|
+
},
|
|
2211
|
+
sm: {
|
|
2212
|
+
fontSize: "component-scale-font-size/300",
|
|
2213
|
+
lineHeight: "component-scale-line-height/300"
|
|
2214
|
+
}
|
|
2145
2215
|
},
|
|
2146
2216
|
tab: {
|
|
2147
|
-
xl: {
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2217
|
+
xl: {
|
|
2218
|
+
fontSize: "component-scale-font-size/600",
|
|
2219
|
+
lineHeight: "component-scale-line-height/600"
|
|
2220
|
+
},
|
|
2221
|
+
lg: {
|
|
2222
|
+
fontSize: "component-scale-font-size/500",
|
|
2223
|
+
lineHeight: "component-scale-line-height/500"
|
|
2224
|
+
},
|
|
2225
|
+
md: {
|
|
2226
|
+
fontSize: "component-scale-font-size/400",
|
|
2227
|
+
lineHeight: "component-scale-line-height/400"
|
|
2228
|
+
},
|
|
2229
|
+
sm: {
|
|
2230
|
+
fontSize: "component-scale-font-size/300",
|
|
2231
|
+
lineHeight: "component-scale-line-height/300"
|
|
2232
|
+
},
|
|
2233
|
+
xs: {
|
|
2234
|
+
fontSize: "component-scale-font-size/300",
|
|
2235
|
+
lineHeight: "component-scale-line-height/300"
|
|
2236
|
+
}
|
|
2152
2237
|
},
|
|
2153
2238
|
radio: {
|
|
2154
|
-
xl: {
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2239
|
+
xl: {
|
|
2240
|
+
fontSize: "component-scale-font-size/600",
|
|
2241
|
+
lineHeight: "component-scale-line-height/600"
|
|
2242
|
+
},
|
|
2243
|
+
lg: {
|
|
2244
|
+
fontSize: "component-scale-font-size/500",
|
|
2245
|
+
lineHeight: "component-scale-line-height/500"
|
|
2246
|
+
},
|
|
2247
|
+
md: {
|
|
2248
|
+
fontSize: "component-scale-font-size/400",
|
|
2249
|
+
lineHeight: "component-scale-line-height/400"
|
|
2250
|
+
},
|
|
2251
|
+
sm: {
|
|
2252
|
+
fontSize: "component-scale-font-size/300",
|
|
2253
|
+
lineHeight: "component-scale-line-height/300"
|
|
2254
|
+
}
|
|
2158
2255
|
},
|
|
2159
2256
|
segmentedItem: {
|
|
2160
|
-
xl: {
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2257
|
+
xl: {
|
|
2258
|
+
fontSize: "component-scale-font-size/500",
|
|
2259
|
+
lineHeight: "component-scale-line-height/500"
|
|
2260
|
+
},
|
|
2261
|
+
lg: {
|
|
2262
|
+
fontSize: "component-scale-font-size/400",
|
|
2263
|
+
lineHeight: "component-scale-line-height/400"
|
|
2264
|
+
},
|
|
2265
|
+
md: {
|
|
2266
|
+
fontSize: "component-scale-font-size/300",
|
|
2267
|
+
lineHeight: "component-scale-line-height/300"
|
|
2268
|
+
},
|
|
2269
|
+
sm: {
|
|
2270
|
+
fontSize: "component-scale-font-size/200",
|
|
2271
|
+
lineHeight: "component-scale-line-height/200"
|
|
2272
|
+
}
|
|
2164
2273
|
},
|
|
2165
2274
|
tag: {
|
|
2166
|
-
xl: {
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2275
|
+
xl: {
|
|
2276
|
+
fontSize: "component-scale-font-size/600",
|
|
2277
|
+
lineHeight: "component-scale-line-height/600"
|
|
2278
|
+
},
|
|
2279
|
+
lg: {
|
|
2280
|
+
fontSize: "component-scale-font-size/500",
|
|
2281
|
+
lineHeight: "component-scale-line-height/500"
|
|
2282
|
+
},
|
|
2283
|
+
md: {
|
|
2284
|
+
fontSize: "component-scale-font-size/400",
|
|
2285
|
+
lineHeight: "component-scale-line-height/400"
|
|
2286
|
+
},
|
|
2287
|
+
sm: {
|
|
2288
|
+
fontSize: "component-scale-font-size/300",
|
|
2289
|
+
lineHeight: "component-scale-line-height/300"
|
|
2290
|
+
},
|
|
2291
|
+
xs: {
|
|
2292
|
+
fontSize: "component-scale-font-size/200",
|
|
2293
|
+
lineHeight: "component-scale-line-height/200"
|
|
2294
|
+
}
|
|
2171
2295
|
},
|
|
2172
2296
|
toggleButton: {
|
|
2173
|
-
xl: {
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2297
|
+
xl: {
|
|
2298
|
+
fontSize: "component-scale-font-size/600",
|
|
2299
|
+
lineHeight: "component-scale-line-height/600"
|
|
2300
|
+
},
|
|
2301
|
+
lg: {
|
|
2302
|
+
fontSize: "component-scale-font-size/500",
|
|
2303
|
+
lineHeight: "component-scale-line-height/500"
|
|
2304
|
+
},
|
|
2305
|
+
md: {
|
|
2306
|
+
fontSize: "component-scale-font-size/400",
|
|
2307
|
+
lineHeight: "component-scale-line-height/400"
|
|
2308
|
+
},
|
|
2309
|
+
sm: {
|
|
2310
|
+
fontSize: "component-scale-font-size/300",
|
|
2311
|
+
lineHeight: "component-scale-line-height/300"
|
|
2312
|
+
},
|
|
2313
|
+
xs: {
|
|
2314
|
+
fontSize: "component-scale-font-size/200",
|
|
2315
|
+
lineHeight: "component-scale-line-height/200"
|
|
2316
|
+
}
|
|
2178
2317
|
}
|
|
2179
2318
|
}
|
|
2180
2319
|
};
|
|
2181
2320
|
|
|
2182
|
-
// src/
|
|
2321
|
+
// src/xui-primitives/shape-primitives.json
|
|
2183
2322
|
var shape_primitives_default = {
|
|
2184
2323
|
button: {
|
|
2185
2324
|
xl: {
|
|
@@ -2457,7 +2596,7 @@ var shape_primitives_default = {
|
|
|
2457
2596
|
}
|
|
2458
2597
|
};
|
|
2459
2598
|
|
|
2460
|
-
// src/
|
|
2599
|
+
// src/xui-to-legacy/xui-resolver.ts
|
|
2461
2600
|
var FONT_SIZE_SCALE = {
|
|
2462
2601
|
"75": { desktop: "10px", mobile: "10px" },
|
|
2463
2602
|
"100": { desktop: "12px", mobile: "11px" },
|
|
@@ -2519,18 +2658,20 @@ var LINE_HEIGHT_TEXT = {
|
|
|
2519
2658
|
"750": { desktop: "88px", mobile: "72px" }
|
|
2520
2659
|
};
|
|
2521
2660
|
var TYPOGRAPHY_SCALE_FONT_SIZE = {
|
|
2522
|
-
"
|
|
2523
|
-
"
|
|
2524
|
-
"
|
|
2525
|
-
"
|
|
2526
|
-
"
|
|
2661
|
+
"100": "10px",
|
|
2662
|
+
"200": "12px",
|
|
2663
|
+
"300": "14px",
|
|
2664
|
+
"400": "16px",
|
|
2665
|
+
"500": "18px",
|
|
2666
|
+
"600": "20px"
|
|
2527
2667
|
};
|
|
2528
2668
|
var TYPOGRAPHY_SCALE_LINE_HEIGHT = {
|
|
2529
|
-
"
|
|
2530
|
-
"
|
|
2531
|
-
"
|
|
2532
|
-
"
|
|
2533
|
-
"
|
|
2669
|
+
"100": "12px",
|
|
2670
|
+
"200": "14px",
|
|
2671
|
+
"300": "16px",
|
|
2672
|
+
"400": "18px",
|
|
2673
|
+
"500": "20px",
|
|
2674
|
+
"600": "22px"
|
|
2534
2675
|
};
|
|
2535
2676
|
var SPACING_SCALE = {
|
|
2536
2677
|
"50": "2px",
|
|
@@ -2565,7 +2706,7 @@ var STROKE_SCALE = {
|
|
|
2565
2706
|
"2": "2px",
|
|
2566
2707
|
"3": "3px"
|
|
2567
2708
|
};
|
|
2568
|
-
var
|
|
2709
|
+
var XuiResolver = class {
|
|
2569
2710
|
device;
|
|
2570
2711
|
constructor(device = "desktop") {
|
|
2571
2712
|
this.device = device;
|
|
@@ -2634,10 +2775,41 @@ var PentagramResolver = class {
|
|
|
2634
2775
|
const step = alias.replace("typography-scale/line-height/", "");
|
|
2635
2776
|
return TYPOGRAPHY_SCALE_LINE_HEIGHT[step] ?? alias;
|
|
2636
2777
|
}
|
|
2778
|
+
if (alias.startsWith("scale/")) {
|
|
2779
|
+
const step = alias.replace("scale/", "");
|
|
2780
|
+
return context === "lineHeight" ? TYPOGRAPHY_SCALE_LINE_HEIGHT[step] ?? alias : TYPOGRAPHY_SCALE_FONT_SIZE[step] ?? alias;
|
|
2781
|
+
}
|
|
2782
|
+
if (alias.startsWith("line-height-display/")) {
|
|
2783
|
+
const step = alias.replace("line-height-display/", "");
|
|
2784
|
+
const value = LINE_HEIGHT_DISPLAY[step];
|
|
2785
|
+
return value ? value[this.device] : alias;
|
|
2786
|
+
}
|
|
2787
|
+
if (alias.startsWith("line-height-compact/")) {
|
|
2788
|
+
const step = alias.replace("line-height-compact/", "");
|
|
2789
|
+
const value = LINE_HEIGHT_COMPACT[step];
|
|
2790
|
+
return value ? value[this.device] : alias;
|
|
2791
|
+
}
|
|
2792
|
+
if (alias.startsWith("line-height-text/")) {
|
|
2793
|
+
const step = alias.replace("line-height-text/", "");
|
|
2794
|
+
const value = LINE_HEIGHT_TEXT[step];
|
|
2795
|
+
return value ? value[this.device] : alias;
|
|
2796
|
+
}
|
|
2797
|
+
if (alias.startsWith("component-scale-font-size/")) {
|
|
2798
|
+
const step = alias.replace("component-scale-font-size/", "");
|
|
2799
|
+
return TYPOGRAPHY_SCALE_FONT_SIZE[step] ?? alias;
|
|
2800
|
+
}
|
|
2801
|
+
if (alias.startsWith("component-scale-line-height/")) {
|
|
2802
|
+
const step = alias.replace("component-scale-line-height/", "");
|
|
2803
|
+
return TYPOGRAPHY_SCALE_LINE_HEIGHT[step] ?? alias;
|
|
2804
|
+
}
|
|
2637
2805
|
if (alias.startsWith("spacing/")) {
|
|
2638
2806
|
const step = alias.replace("spacing/", "");
|
|
2639
2807
|
return SPACING_SCALE[step] ?? alias;
|
|
2640
2808
|
}
|
|
2809
|
+
if (alias.startsWith("font-family/")) {
|
|
2810
|
+
const key = alias.replace("font-family/", "");
|
|
2811
|
+
return FONT_FAMILY[key] ?? alias;
|
|
2812
|
+
}
|
|
2641
2813
|
if (FONT_FAMILY[alias]) {
|
|
2642
2814
|
return FONT_FAMILY[alias];
|
|
2643
2815
|
}
|
|
@@ -2698,16 +2870,16 @@ var PentagramResolver = class {
|
|
|
2698
2870
|
}
|
|
2699
2871
|
};
|
|
2700
2872
|
function createResolver(device = "desktop") {
|
|
2701
|
-
return new
|
|
2873
|
+
return new XuiResolver(device);
|
|
2702
2874
|
}
|
|
2703
2875
|
function resolveForDesktop(obj) {
|
|
2704
|
-
return new
|
|
2876
|
+
return new XuiResolver("desktop").resolvePrimitives(obj);
|
|
2705
2877
|
}
|
|
2706
2878
|
function resolveForMobile(obj) {
|
|
2707
|
-
return new
|
|
2879
|
+
return new XuiResolver("mobile").resolvePrimitives(obj);
|
|
2708
2880
|
}
|
|
2709
2881
|
|
|
2710
|
-
// src/
|
|
2882
|
+
// src/xui-to-legacy/map-xui-typo-to-legacy.ts
|
|
2711
2883
|
function extractControlTypo(size, defaultFontWeight = 400) {
|
|
2712
2884
|
if (!size) {
|
|
2713
2885
|
return {
|
|
@@ -2738,8 +2910,8 @@ function buildParagraphStyle(variant) {
|
|
|
2738
2910
|
};
|
|
2739
2911
|
}
|
|
2740
2912
|
var DEFAULT_FONT_FAMILY = `'GraphikLCWebUikit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif`;
|
|
2741
|
-
function
|
|
2742
|
-
const { heading, basic, control } =
|
|
2913
|
+
function mapXuiTypoToLegacy(xui, fontFamily = DEFAULT_FONT_FAMILY) {
|
|
2914
|
+
const { heading, basic, control } = xui;
|
|
2743
2915
|
return {
|
|
2744
2916
|
fontFamily,
|
|
2745
2917
|
core: {
|
|
@@ -2826,7 +2998,7 @@ var DELETED_LEGACY_TYPO_VARS = [
|
|
|
2826
2998
|
"core.bodyLg"
|
|
2827
2999
|
];
|
|
2828
3000
|
|
|
2829
|
-
// src/
|
|
3001
|
+
// src/xui-to-legacy/map-xui-shape-to-legacy.ts
|
|
2830
3002
|
function getShapeBorderRadius(shape, preferredSize = "md", fallback = "8px") {
|
|
2831
3003
|
if (!shape) return fallback;
|
|
2832
3004
|
const size = shape[preferredSize] ?? shape["lg"] ?? shape["sm"] ?? Object.values(shape)[0];
|
|
@@ -2837,17 +3009,17 @@ function getShapeBorderWidth(shape, preferredSize = "md", fallback = "1px") {
|
|
|
2837
3009
|
const size = shape[preferredSize] ?? shape["lg"] ?? shape["sm"] ?? Object.values(shape)[0];
|
|
2838
3010
|
return size?.borderWidth ?? fallback;
|
|
2839
3011
|
}
|
|
2840
|
-
function
|
|
2841
|
-
const buttonRadius = getShapeBorderRadius(
|
|
2842
|
-
const inputRadius = getShapeBorderRadius(
|
|
2843
|
-
const checkboxRadius = getShapeBorderRadius(
|
|
2844
|
-
const tagRadius = getShapeBorderRadius(
|
|
2845
|
-
const popupRadius =
|
|
2846
|
-
const borderWidth = getShapeBorderWidth(
|
|
2847
|
-
const buttonSm =
|
|
2848
|
-
const buttonMd =
|
|
2849
|
-
const buttonLg =
|
|
2850
|
-
const buttonXl =
|
|
3012
|
+
function mapXuiShapeToLegacy(xui, existingMisc) {
|
|
3013
|
+
const buttonRadius = getShapeBorderRadius(xui.button, "md", "8px");
|
|
3014
|
+
const inputRadius = getShapeBorderRadius(xui.input, "md", "8px");
|
|
3015
|
+
const checkboxRadius = getShapeBorderRadius(xui.checkbox, "md", "4px");
|
|
3016
|
+
const tagRadius = getShapeBorderRadius(xui.tag, "md", "8px");
|
|
3017
|
+
const popupRadius = xui.modal?.borderRadius ?? xui.contextMenu?.md?.borderRadius ?? xui.tooltip?.md?.borderRadius ?? "8px";
|
|
3018
|
+
const borderWidth = getShapeBorderWidth(xui.button, "md", "2px");
|
|
3019
|
+
const buttonSm = xui.button?.sm?.borderRadius ?? "4px";
|
|
3020
|
+
const buttonMd = xui.button?.md?.borderRadius ?? "6px";
|
|
3021
|
+
const buttonLg = xui.button?.lg?.borderRadius ?? "8px";
|
|
3022
|
+
const buttonXl = xui.button?.xl?.borderRadius ?? "8px";
|
|
2851
3023
|
return {
|
|
2852
3024
|
borderRadiusScale: {
|
|
2853
3025
|
sm: existingMisc?.borderRadiusScale?.sm ?? buttonSm,
|
|
@@ -2869,7 +3041,7 @@ function mapPentagramShapeToLegacy(pentagram, existingMisc) {
|
|
|
2869
3041
|
}
|
|
2870
3042
|
};
|
|
2871
3043
|
}
|
|
2872
|
-
function
|
|
3044
|
+
function flattenXuiShapeToVars(xui) {
|
|
2873
3045
|
const vars = {};
|
|
2874
3046
|
function addSizedComponent(name, shape) {
|
|
2875
3047
|
if (!shape) return;
|
|
@@ -2882,32 +3054,32 @@ function flattenPentagramShapeToVars(pentagram) {
|
|
|
2882
3054
|
}
|
|
2883
3055
|
}
|
|
2884
3056
|
}
|
|
2885
|
-
addSizedComponent("button",
|
|
2886
|
-
addSizedComponent("input",
|
|
2887
|
-
addSizedComponent("checkbox",
|
|
2888
|
-
addSizedComponent("tab",
|
|
2889
|
-
addSizedComponent("tag",
|
|
2890
|
-
addSizedComponent("radio",
|
|
2891
|
-
addSizedComponent("switch",
|
|
2892
|
-
addSizedComponent("segmented",
|
|
2893
|
-
addSizedComponent("segmentedItem",
|
|
2894
|
-
addSizedComponent("tooltip",
|
|
2895
|
-
addSizedComponent("contextMenu",
|
|
2896
|
-
addSizedComponent("avatar",
|
|
2897
|
-
addSizedComponent("toggleButtonGroup",
|
|
2898
|
-
if (
|
|
2899
|
-
vars["shape-modal-borderRadius"] =
|
|
3057
|
+
addSizedComponent("button", xui.button);
|
|
3058
|
+
addSizedComponent("input", xui.input);
|
|
3059
|
+
addSizedComponent("checkbox", xui.checkbox);
|
|
3060
|
+
addSizedComponent("tab", xui.tabItem);
|
|
3061
|
+
addSizedComponent("tag", xui.tag);
|
|
3062
|
+
addSizedComponent("radio", xui.radio);
|
|
3063
|
+
addSizedComponent("switch", xui.switch);
|
|
3064
|
+
addSizedComponent("segmented", xui.segmented);
|
|
3065
|
+
addSizedComponent("segmentedItem", xui.segmentedItem);
|
|
3066
|
+
addSizedComponent("tooltip", xui.tooltip);
|
|
3067
|
+
addSizedComponent("contextMenu", xui.contextMenu);
|
|
3068
|
+
addSizedComponent("avatar", xui.avatar);
|
|
3069
|
+
addSizedComponent("toggleButtonGroup", xui.toggleButtonGroup);
|
|
3070
|
+
if (xui.modal?.borderRadius) {
|
|
3071
|
+
vars["shape-modal-borderRadius"] = xui.modal.borderRadius;
|
|
2900
3072
|
}
|
|
2901
|
-
if (
|
|
2902
|
-
vars["shape-cell-borderRadius"] =
|
|
3073
|
+
if (xui.cell?.borderRadius) {
|
|
3074
|
+
vars["shape-cell-borderRadius"] = xui.cell.borderRadius;
|
|
2903
3075
|
}
|
|
2904
|
-
if (
|
|
2905
|
-
vars["shape-toast-borderRadius"] =
|
|
3076
|
+
if (xui.toast?.borderRadius) {
|
|
3077
|
+
vars["shape-toast-borderRadius"] = xui.toast.borderRadius;
|
|
2906
3078
|
}
|
|
2907
3079
|
return vars;
|
|
2908
3080
|
}
|
|
2909
3081
|
|
|
2910
|
-
// src/themes/
|
|
3082
|
+
// src/themes/xui/mappers/scheme-to-legacy.ts
|
|
2911
3083
|
function mapThemeSchemeToLegacy(colors) {
|
|
2912
3084
|
return {
|
|
2913
3085
|
core: {
|
|
@@ -2917,9 +3089,9 @@ function mapThemeSchemeToLegacy(colors) {
|
|
|
2917
3089
|
ghost: colors.overlay.mono,
|
|
2918
3090
|
tone: colors.layer.scrim,
|
|
2919
3091
|
selection: "transparent",
|
|
2920
|
-
// deleted in
|
|
3092
|
+
// deleted in XUI
|
|
2921
3093
|
hover: "transparent",
|
|
2922
|
-
// deleted in
|
|
3094
|
+
// deleted in XUI
|
|
2923
3095
|
brand: colors.background.brand.secondary,
|
|
2924
3096
|
brandSecondary: colors.background.brandExtra.secondary,
|
|
2925
3097
|
success: colors.background.success.secondary,
|
|
@@ -3025,8 +3197,8 @@ function mapThemeSchemeToLegacy(colors) {
|
|
|
3025
3197
|
};
|
|
3026
3198
|
}
|
|
3027
3199
|
|
|
3028
|
-
// src/
|
|
3029
|
-
function
|
|
3200
|
+
// src/xui-to-legacy/map-xui-theme-to-legacy.ts
|
|
3201
|
+
function buildBaseColorsFromXui(colors) {
|
|
3030
3202
|
return {
|
|
3031
3203
|
content: colors.content.primary,
|
|
3032
3204
|
surface: colors.background.primary,
|
|
@@ -3040,22 +3212,22 @@ function buildBaseColorsFromPentagram(colors) {
|
|
|
3040
3212
|
neutral: colors.content.neutral.primary
|
|
3041
3213
|
};
|
|
3042
3214
|
}
|
|
3043
|
-
function
|
|
3215
|
+
function mapXuiThemeToLegacy(xui, device = "desktop") {
|
|
3044
3216
|
const resolver = createResolver(device);
|
|
3045
|
-
const resolvedTypo = resolver.resolvePrimitives(
|
|
3046
|
-
const resolvedShape = resolver.resolvePrimitives(
|
|
3217
|
+
const resolvedTypo = resolver.resolvePrimitives(xui.text);
|
|
3218
|
+
const resolvedShape = resolver.resolvePrimitives(xui.shape);
|
|
3047
3219
|
return {
|
|
3048
3220
|
colors: {
|
|
3049
|
-
base:
|
|
3050
|
-
...mapThemeSchemeToLegacy(
|
|
3221
|
+
base: buildBaseColorsFromXui(xui.color),
|
|
3222
|
+
...mapThemeSchemeToLegacy(xui.color)
|
|
3051
3223
|
},
|
|
3052
|
-
typo:
|
|
3053
|
-
misc:
|
|
3054
|
-
shadows:
|
|
3224
|
+
typo: mapXuiTypoToLegacy(resolvedTypo),
|
|
3225
|
+
misc: mapXuiShapeToLegacy(resolvedShape),
|
|
3226
|
+
shadows: xui.shadow
|
|
3055
3227
|
};
|
|
3056
3228
|
}
|
|
3057
3229
|
|
|
3058
|
-
// src/themes/
|
|
3230
|
+
// src/themes/xui/presets/pay-station-dark.ts
|
|
3059
3231
|
var import_colord10 = require("colord");
|
|
3060
3232
|
var baseDark = {
|
|
3061
3233
|
content: (0, import_colord10.colord)("#ffffff"),
|
|
@@ -3078,7 +3250,7 @@ var baseDark = {
|
|
|
3078
3250
|
onAlert: (0, import_colord10.colord)("#000000"),
|
|
3079
3251
|
onNeutral: (0, import_colord10.colord)("#000000")
|
|
3080
3252
|
};
|
|
3081
|
-
var
|
|
3253
|
+
var xuiDarkScheme = (b) => ({
|
|
3082
3254
|
base: {
|
|
3083
3255
|
content: b.content.toRgbString(),
|
|
3084
3256
|
contentInverse: b.contentInverse.toRgbString(),
|
|
@@ -3410,9 +3582,9 @@ var pentagramDarkScheme = (b) => ({
|
|
|
3410
3582
|
}
|
|
3411
3583
|
}
|
|
3412
3584
|
});
|
|
3413
|
-
var
|
|
3585
|
+
var xuiDark = xuiDarkScheme(baseDark);
|
|
3414
3586
|
|
|
3415
|
-
// src/themes/
|
|
3587
|
+
// src/themes/xui/presets/pay-station-light.ts
|
|
3416
3588
|
var import_colord11 = require("colord");
|
|
3417
3589
|
var base10 = {
|
|
3418
3590
|
content: (0, import_colord11.colord)("#000000"),
|
|
@@ -3435,7 +3607,7 @@ var base10 = {
|
|
|
3435
3607
|
onAlert: (0, import_colord11.colord)("#000000"),
|
|
3436
3608
|
onNeutral: (0, import_colord11.colord)("#000000")
|
|
3437
3609
|
};
|
|
3438
|
-
var
|
|
3610
|
+
var xuiLightScheme = (b) => ({
|
|
3439
3611
|
base: {
|
|
3440
3612
|
content: b.content.toRgbString(),
|
|
3441
3613
|
contentInverse: b.contentInverse.toRgbString(),
|
|
@@ -3767,21 +3939,21 @@ var pentagramLightScheme = (b) => ({
|
|
|
3767
3939
|
}
|
|
3768
3940
|
}
|
|
3769
3941
|
});
|
|
3770
|
-
var
|
|
3942
|
+
var xuiLight = xuiLightScheme(base10);
|
|
3771
3943
|
|
|
3772
|
-
// src/themes/
|
|
3773
|
-
function convertToLegacyBase(
|
|
3944
|
+
// src/themes/xui/xui.ts
|
|
3945
|
+
function convertToLegacyBase(xuiBase) {
|
|
3774
3946
|
return {
|
|
3775
|
-
content:
|
|
3776
|
-
surface:
|
|
3777
|
-
project:
|
|
3778
|
-
accent:
|
|
3779
|
-
phantom:
|
|
3780
|
-
path:
|
|
3781
|
-
success:
|
|
3782
|
-
warning:
|
|
3783
|
-
alert:
|
|
3784
|
-
neutral:
|
|
3947
|
+
content: xuiBase.content.toRgbString(),
|
|
3948
|
+
surface: xuiBase.background.toRgbString(),
|
|
3949
|
+
project: xuiBase.brand.toRgbString(),
|
|
3950
|
+
accent: xuiBase.brandExtra.toRgbString(),
|
|
3951
|
+
phantom: xuiBase.mono.toRgbString(),
|
|
3952
|
+
path: xuiBase.brand.toRgbString(),
|
|
3953
|
+
success: xuiBase.success.toRgbString(),
|
|
3954
|
+
warning: xuiBase.warning.toRgbString(),
|
|
3955
|
+
alert: xuiBase.alert.toRgbString(),
|
|
3956
|
+
neutral: xuiBase.neutral.toRgbString()
|
|
3785
3957
|
};
|
|
3786
3958
|
}
|
|
3787
3959
|
var desktopResolver = createResolver("desktop");
|
|
@@ -3789,41 +3961,41 @@ var resolvedTypoDesktop = desktopResolver.resolvePrimitives(
|
|
|
3789
3961
|
typo_primitives_default
|
|
3790
3962
|
);
|
|
3791
3963
|
var resolvedShapeDesktop = desktopResolver.resolvePrimitives(shape_primitives_default);
|
|
3792
|
-
var
|
|
3793
|
-
var
|
|
3794
|
-
var
|
|
3964
|
+
var xuiTypo = mapXuiTypoToLegacy(resolvedTypoDesktop);
|
|
3965
|
+
var xuiMisc = mapXuiShapeToLegacy(resolvedShapeDesktop);
|
|
3966
|
+
var paystationXuiLightLegacyCompatible = {
|
|
3795
3967
|
colors: {
|
|
3796
3968
|
base: convertToLegacyBase(base10),
|
|
3797
|
-
...mapThemeSchemeToLegacy(
|
|
3969
|
+
...mapThemeSchemeToLegacy(xuiLight)
|
|
3798
3970
|
},
|
|
3799
|
-
typo:
|
|
3800
|
-
misc:
|
|
3971
|
+
typo: xuiTypo,
|
|
3972
|
+
misc: xuiMisc,
|
|
3801
3973
|
shadows: shadowsDefault,
|
|
3802
|
-
globalStyle: "
|
|
3974
|
+
globalStyle: "xui"
|
|
3803
3975
|
};
|
|
3804
|
-
var
|
|
3976
|
+
var paystationXuiDarkLegacyCompatible = {
|
|
3805
3977
|
colors: {
|
|
3806
3978
|
base: convertToLegacyBase(baseDark),
|
|
3807
|
-
...mapThemeSchemeToLegacy(
|
|
3979
|
+
...mapThemeSchemeToLegacy(xuiDark)
|
|
3808
3980
|
},
|
|
3809
|
-
typo:
|
|
3810
|
-
misc:
|
|
3981
|
+
typo: xuiTypo,
|
|
3982
|
+
misc: xuiMisc,
|
|
3811
3983
|
shadows: shadowsDefault,
|
|
3812
|
-
globalStyle: "
|
|
3984
|
+
globalStyle: "xui"
|
|
3813
3985
|
};
|
|
3814
|
-
var
|
|
3815
|
-
|
|
3986
|
+
var paystationXuiLight = {
|
|
3987
|
+
color: xuiLight,
|
|
3816
3988
|
shape: shape_primitives_default,
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
globalStyle: "
|
|
3989
|
+
text: typo_primitives_default,
|
|
3990
|
+
shadow: shadowsDefault,
|
|
3991
|
+
globalStyle: "xui"
|
|
3820
3992
|
};
|
|
3821
|
-
var
|
|
3822
|
-
|
|
3993
|
+
var paystationXuiDark = {
|
|
3994
|
+
color: xuiDark,
|
|
3823
3995
|
shape: shape_primitives_default,
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
globalStyle: "
|
|
3996
|
+
text: typo_primitives_default,
|
|
3997
|
+
shadow: shadowsDefault,
|
|
3998
|
+
globalStyle: "xui"
|
|
3827
3999
|
};
|
|
3828
4000
|
|
|
3829
4001
|
// src/themes/index.ts
|
|
@@ -4004,15 +4176,15 @@ var palettes = {
|
|
|
4004
4176
|
// src/generators/themeGenerator.ts
|
|
4005
4177
|
var import_colord12 = require("colord");
|
|
4006
4178
|
var import_lodash = __toESM(require("lodash.merge"));
|
|
4007
|
-
var
|
|
4179
|
+
var xuiBaseColors = {
|
|
4008
4180
|
payStationLight: base10,
|
|
4009
4181
|
payStationDark: baseDark
|
|
4010
4182
|
};
|
|
4011
|
-
var
|
|
4012
|
-
payStationLight:
|
|
4013
|
-
payStationDark:
|
|
4183
|
+
var xuiColorsScheme = {
|
|
4184
|
+
payStationLight: xuiLightScheme,
|
|
4185
|
+
payStationDark: xuiDarkScheme
|
|
4014
4186
|
};
|
|
4015
|
-
var
|
|
4187
|
+
var xuiBaseColorsKeys = [
|
|
4016
4188
|
"content",
|
|
4017
4189
|
"contentInverse",
|
|
4018
4190
|
"background",
|
|
@@ -4061,12 +4233,9 @@ var generateWithScheme = ({
|
|
|
4061
4233
|
};
|
|
4062
4234
|
function themeGenerator(props) {
|
|
4063
4235
|
const { schemeName, baseColors } = props;
|
|
4064
|
-
if (schemeName in
|
|
4065
|
-
const schemeBase = baseColors ?
|
|
4066
|
-
|
|
4067
|
-
baseColors
|
|
4068
|
-
) : { ...pentagramBaseColors[schemeName] };
|
|
4069
|
-
return pentagramColorsScheme[schemeName](schemeBase);
|
|
4236
|
+
if (schemeName in xuiColorsScheme) {
|
|
4237
|
+
const schemeBase = baseColors ? applyXuiColors(xuiBaseColors[schemeName], baseColors) : { ...xuiBaseColors[schemeName] };
|
|
4238
|
+
return xuiColorsScheme[schemeName](schemeBase);
|
|
4070
4239
|
}
|
|
4071
4240
|
const { customParams, parentTheme: propParentTheme } = props;
|
|
4072
4241
|
const parentTheme = propParentTheme || themes[schemeName] || {};
|
|
@@ -4085,9 +4254,9 @@ function themeGenerator(props) {
|
|
|
4085
4254
|
}
|
|
4086
4255
|
return generateTheme;
|
|
4087
4256
|
}
|
|
4088
|
-
var
|
|
4257
|
+
var applyXuiColors = (schemeBase, overrides) => {
|
|
4089
4258
|
const result = { ...schemeBase };
|
|
4090
|
-
|
|
4259
|
+
xuiBaseColorsKeys.forEach((key) => {
|
|
4091
4260
|
if (overrides[key]) result[key] = (0, import_colord12.colord)(overrides[key]);
|
|
4092
4261
|
});
|
|
4093
4262
|
return result;
|
|
@@ -4096,19 +4265,25 @@ var applyPentagramColors = (schemeBase, overrides) => {
|
|
|
4096
4265
|
0 && (module.exports = {
|
|
4097
4266
|
DELETED_LEGACY_TYPO_VARS,
|
|
4098
4267
|
PentagramResolver,
|
|
4268
|
+
XuiResolver,
|
|
4099
4269
|
base,
|
|
4100
4270
|
baseDark,
|
|
4101
4271
|
buildBaseColorsFromPentagram,
|
|
4272
|
+
buildBaseColorsFromXui,
|
|
4102
4273
|
createResolver,
|
|
4103
4274
|
emails,
|
|
4104
4275
|
emailsDark,
|
|
4105
4276
|
emailsThemes,
|
|
4106
4277
|
flattenPentagramShapeToVars,
|
|
4278
|
+
flattenXuiShapeToVars,
|
|
4107
4279
|
generateWithScheme,
|
|
4108
4280
|
mapPentagramShapeToLegacy,
|
|
4109
4281
|
mapPentagramThemeToLegacy,
|
|
4110
4282
|
mapPentagramTypoToLegacy,
|
|
4111
4283
|
mapThemeSchemeToLegacy,
|
|
4284
|
+
mapXuiShapeToLegacy,
|
|
4285
|
+
mapXuiThemeToLegacy,
|
|
4286
|
+
mapXuiTypoToLegacy,
|
|
4112
4287
|
palettes,
|
|
4113
4288
|
paystation4,
|
|
4114
4289
|
paystation4Dark,
|
|
@@ -4120,6 +4295,14 @@ var applyPentagramColors = (schemeBase, overrides) => {
|
|
|
4120
4295
|
paystation4PentagramLightLegacyCompatible,
|
|
4121
4296
|
paystation4Take2,
|
|
4122
4297
|
paystation4Themes,
|
|
4298
|
+
paystation4XuiDark,
|
|
4299
|
+
paystation4XuiDarkLegacyCompatible,
|
|
4300
|
+
paystation4XuiLight,
|
|
4301
|
+
paystation4XuiLightLegacyCompatible,
|
|
4302
|
+
paystationXuiDark,
|
|
4303
|
+
paystationXuiDarkLegacyCompatible,
|
|
4304
|
+
paystationXuiLight,
|
|
4305
|
+
paystationXuiLightLegacyCompatible,
|
|
4123
4306
|
pentagramDark,
|
|
4124
4307
|
pentagramDarkScheme,
|
|
4125
4308
|
pentagramLight,
|
|
@@ -4136,6 +4319,10 @@ var applyPentagramColors = (schemeBase, overrides) => {
|
|
|
4136
4319
|
themesBaseColors,
|
|
4137
4320
|
themesBaseColorsArray,
|
|
4138
4321
|
themesColorsScheme,
|
|
4139
|
-
typoPrimitives
|
|
4322
|
+
typoPrimitives,
|
|
4323
|
+
xuiDark,
|
|
4324
|
+
xuiDarkScheme,
|
|
4325
|
+
xuiLight,
|
|
4326
|
+
xuiLightScheme
|
|
4140
4327
|
});
|
|
4141
4328
|
//# sourceMappingURL=index.js.map
|