@yklyklpackages/message-card 0.0.1 → 0.1.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/index.mjs CHANGED
@@ -3,61 +3,6 @@ import * as React from "react";
3
3
  import React__default, { useState, useRef, useCallback, useEffect, createContext, useMemo as useMemo$1, useContext, isValidElement, version as version$2, useLayoutEffect as useLayoutEffect$2, forwardRef, Children, useImperativeHandle, cloneElement as cloneElement$1 } from "react";
4
4
  import * as ReactDOM from "react-dom";
5
5
  import ReactDOM__default, { createPortal, unstable_batchedUpdates, flushSync } from "react-dom";
6
- const theme = {
7
- fontSize: {
8
- "text-xs": "24",
9
- "text-sm": "26",
10
- "text-md": "28",
11
- "text-lg": "32",
12
- "text-xl": "36"
13
- },
14
- color: {
15
- "color-primary": "#02B176",
16
- "color-error": "#FF0F23",
17
- "color-success": "#02B176",
18
- "color-warning": "#B26B00",
19
- "color-textPrimary": "#0C0C0D",
20
- "color-textSecondary": "#4B4C4D",
21
- "color-textTertiary": "#646566",
22
- "color-textFourth": "#969899"
23
- },
24
- backgroundColor: {
25
- "bg-error": "#FFF1F2",
26
- "bg-success": "#E5F7F1",
27
- "bg-warning": "#FFF9E0",
28
- "bg-page": "#F0F2F5",
29
- "bg-card": "#FFFFFF",
30
- "bg-cardContent": "#F7FAFC"
31
- },
32
- fontWeight: {
33
- "font-weight-normal": "400",
34
- "font-weight-bold": "500"
35
- },
36
- space: {
37
- "spacing-xs": "8",
38
- "spacing-sm": "16",
39
- "spacing-md": "24",
40
- "spacing-lg": "32",
41
- "spacing-xl": "48",
42
- "spacing-xxl": "64"
43
- },
44
- borderRadius: {
45
- "radius-none": "0",
46
- "radius-decorate": "4",
47
- "radius-comp": "16",
48
- "radius-card": "20",
49
- "radius-model": "24"
50
- },
51
- borderSize: {
52
- "border-0": "0",
53
- "border-1": "1",
54
- "border-2": "2",
55
- "border-3": "3",
56
- "border-4": "4"
57
- },
58
- components: {}
59
- // 暂时忽略 components 属性
60
- };
61
6
  var __defProp$v = Object.defineProperty;
62
7
  var __defProps$r = Object.defineProperties;
63
8
  var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
@@ -160,57 +105,51 @@ function JSONSafeParse(str, defaultValue) {
160
105
  }
161
106
  return defaultValue;
162
107
  }
163
- const defaultTheme$1 = {
108
+ const defaultTheme$2 = {
164
109
  fontSize: {
165
- xs: "20",
166
- sm: "24",
167
- md: "28",
168
- lg: "30",
169
- xl: "34"
110
+ FontSizes_JDH_Headline1: 23,
111
+ FontSizes_JDH_Headline2: 17,
112
+ FontSizes_JDH_Title: 15,
113
+ FontSizes_JDH_Text: 14,
114
+ FontSizes_JDH_AccentText: 12,
115
+ FontSizes_JDH_TagText: 10
170
116
  },
171
117
  color: {
172
- primary: "#02B176",
173
- error: "#FF0F23",
174
- success: "#FF0F23",
175
- warning: "#B26B00",
176
- textPrimary: "#0C0C0D",
177
- textSecondary: "#4B4C4D",
178
- textTertiary: "#646566",
179
- textFourth: "#969899"
180
- },
181
- backgroundColor: {
182
- errorBg: "#FFF1F2",
183
- successBg: "#E5F7F1",
184
- warningBg: "#FFF9E0",
185
- pageBg: "#F0F2F5",
186
- cardBg: "#FFFFFF",
187
- cardContentBg: "#F7FAFC"
118
+ Color_JDH_Primary: "#17CB8E",
119
+ Color_JDH_Accent1: "#FF8000",
120
+ Color_JDH_Accent2: "#73B0FF",
121
+ Color_JDH_Red_Danger: "#FF0F23",
122
+ Color_JDH_Red_Price: "#FF0F23",
123
+ Color_JDH_Red_Discount: "#FF0F23",
124
+ Color_JDH_Green_Success: "#67CC52",
125
+ Color_JDH_Gray_Headline: "#222222",
126
+ Color_JDH_Gray_Text: "#222222",
127
+ Color_JDH_Gray_SecondText: "#575859",
128
+ Color_JDH_Gray_AccentText: "#858687",
129
+ Color_JDH_Gray_DividingLine: "#D3D3D3",
130
+ Color_JDH_Gray_Background: "#F5F5F6",
131
+ Color_JDH_Gray_CardBackground: "#E5E9EB",
132
+ Color_JDH_Gray_Card: "#FFFFFF",
133
+ Color_JDH_Gray_Mask: "#00000080"
188
134
  },
189
135
  fontWeight: {
190
- normal: "400",
191
- bold: "500"
136
+ FontWeight_JDH_Normal: 400,
137
+ FontWeight_JDH_Medium: 500
192
138
  },
193
139
  space: {
194
- xs: "4",
195
- sm: "8",
196
- md: "16",
197
- lg: "20",
198
- xl: "24",
199
- xxl: "32"
140
+ "spacing-xs": 2,
141
+ "spacing-sm": 4,
142
+ "spacing-md": 8,
143
+ "spacing-lg": 10,
144
+ "spacing-xl": 12,
145
+ "spacing-xxl": 16
200
146
  },
201
147
  borderRadius: {
202
- none: "0",
203
- decorate: "4",
204
- comp: "16",
205
- card: "20",
206
- model: "24"
207
- },
208
- borderSize: {
209
- none: "0",
210
- thin: "1",
211
- base: "2",
212
- thick: "3",
213
- thicker: "4"
148
+ Radius_JDH_LargeExtra: 16,
149
+ Radius_JDH_Large: 12,
150
+ Radius_JDH_Medium: 8,
151
+ Radius_JDH_Small: 4,
152
+ Radius_JDH_Mini: 3
214
153
  },
215
154
  components: {}
216
155
  };
@@ -233,23 +172,22 @@ var __spreadValues$r = (a, b) => {
233
172
  return a;
234
173
  };
235
174
  var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
236
- const ThemeContext = createContext(defaultTheme$1);
175
+ const ThemeContext = createContext(defaultTheme$2);
237
176
  const ThemeProvider = ({
238
- theme: theme2,
177
+ theme,
239
178
  children
240
179
  }) => {
241
180
  const merged = useMemo$1(() => {
242
- const base = defaultTheme$1;
181
+ const base = defaultTheme$2;
243
182
  return __spreadProps$q(__spreadValues$r({}, base), {
244
- fontSize: __spreadValues$r(__spreadValues$r({}, base.fontSize), (theme2 == null ? void 0 : theme2.fontSize) || {}),
245
- color: __spreadValues$r(__spreadValues$r({}, base.color), (theme2 == null ? void 0 : theme2.color) || {}),
246
- backgroundColor: __spreadValues$r(__spreadValues$r({}, base.backgroundColor), (theme2 == null ? void 0 : theme2.backgroundColor) || {}),
247
- fontWeight: __spreadValues$r(__spreadValues$r({}, base.fontWeight), (theme2 == null ? void 0 : theme2.fontWeight) || {}),
248
- space: __spreadValues$r(__spreadValues$r({}, base.space), (theme2 == null ? void 0 : theme2.space) || {}),
249
- borderRadius: __spreadValues$r(__spreadValues$r({}, base.borderRadius), (theme2 == null ? void 0 : theme2.borderRadius) || {}),
250
- borderSize: __spreadValues$r(__spreadValues$r({}, base.borderSize), (theme2 == null ? void 0 : theme2.borderSize) || {})
183
+ fontSize: __spreadValues$r(__spreadValues$r({}, base.fontSize), (theme == null ? void 0 : theme.fontSize) || {}),
184
+ color: __spreadValues$r(__spreadValues$r({}, base.color), (theme == null ? void 0 : theme.color) || {}),
185
+ backgroundColor: __spreadValues$r(__spreadValues$r({}, base.color), (theme == null ? void 0 : theme.color) || {}),
186
+ fontWeight: __spreadValues$r(__spreadValues$r({}, base.fontWeight), (theme == null ? void 0 : theme.fontWeight) || {}),
187
+ space: __spreadValues$r(__spreadValues$r({}, base.space), (theme == null ? void 0 : theme.space) || {}),
188
+ borderRadius: __spreadValues$r(__spreadValues$r({}, base.borderRadius), (theme == null ? void 0 : theme.borderRadius) || {})
251
189
  });
252
- }, [theme2]);
190
+ }, [theme]);
253
191
  return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: merged, children });
254
192
  };
255
193
  const useTheme$1 = () => useContext(ThemeContext);
@@ -2017,25 +1955,25 @@ const childGapStyle = (index2, count, gap, horizontal, scale = 1) => {
2017
1955
  }
2018
1956
  return { marginBottom: isLast ? 0 : runStyle(gap, scale) };
2019
1957
  };
2020
- const resolveSpace = (val, theme2, scale = 1) => {
1958
+ const resolveSpace = (val, theme, scale = 1) => {
2021
1959
  if (val == null) return void 0;
2022
1960
  if (typeof val === "number") return runStyle(val, scale);
2023
1961
  if (typeof val === "string") {
2024
1962
  if (["xs", "sm", "md", "lg", "xl", "xxl"].includes(val)) {
2025
- const themeVal = parseInt(theme2.space[val]);
1963
+ const themeVal = theme.space[val];
2026
1964
  return runStyle(themeVal, scale);
2027
1965
  }
2028
1966
  return runStyle(val, scale);
2029
1967
  }
2030
1968
  return val;
2031
1969
  };
2032
- const paddingToStyle = (padding, theme2, scale = 1) => {
1970
+ const paddingToStyle = (padding, theme, scale = 1) => {
2033
1971
  if (padding == null) return {};
2034
1972
  if (typeof padding === "number" || typeof padding === "string") {
2035
- return { padding: resolveSpace(padding, theme2, scale) };
1973
+ return { padding: resolveSpace(padding, theme, scale) };
2036
1974
  }
2037
1975
  if (Array.isArray(padding)) {
2038
- const resolvedPadding = padding.map((p) => resolveSpace(p, theme2, scale));
1976
+ const resolvedPadding = padding.map((p) => resolveSpace(p, theme, scale));
2039
1977
  if (resolvedPadding.length === 1) {
2040
1978
  const [p] = resolvedPadding;
2041
1979
  return {
@@ -2072,13 +2010,13 @@ const paddingToStyle = (padding, theme2, scale = 1) => {
2072
2010
  }
2073
2011
  return {};
2074
2012
  };
2075
- const marginToStyle = (margin, theme2, scale = 1) => {
2013
+ const marginToStyle = (margin, theme, scale = 1) => {
2076
2014
  if (margin == null) return {};
2077
2015
  if (typeof margin === "number" || typeof margin === "string") {
2078
- return { margin: resolveSpace(margin, theme2, scale) };
2016
+ return { margin: resolveSpace(margin, theme, scale) };
2079
2017
  }
2080
2018
  if (Array.isArray(margin)) {
2081
- const resolvedMargin = margin.map((m) => resolveSpace(m, theme2, scale));
2019
+ const resolvedMargin = margin.map((m) => resolveSpace(m, theme, scale));
2082
2020
  if (resolvedMargin.length === 2) {
2083
2021
  const [vertical, horizontal] = resolvedMargin;
2084
2022
  return {
@@ -2109,20 +2047,20 @@ const marginToStyle = (margin, theme2, scale = 1) => {
2109
2047
  }
2110
2048
  return {};
2111
2049
  };
2112
- const textStyleFromTheme = (theme2, opts, scale = 1) => {
2050
+ const textStyleFromTheme = (theme, opts, scale = 1) => {
2113
2051
  var _a, _b, _c, _d, _e, _f;
2114
2052
  const style2 = {};
2115
2053
  if (!opts) return style2;
2116
2054
  let fontSizeValue;
2117
2055
  if (opts.fontSize) {
2118
- fontSizeValue = (_b = (_a = theme2.fontSize) == null ? void 0 : _a[opts.fontSize]) != null ? _b : opts.fontSize;
2056
+ fontSizeValue = (_b = (_a = theme.fontSize) == null ? void 0 : _a[opts.fontSize]) != null ? _b : opts.fontSize;
2119
2057
  style2.fontSize = runStyle(fontSizeValue, scale);
2120
2058
  }
2121
2059
  if (opts.color) {
2122
- style2.color = (_d = (_c = theme2.color) == null ? void 0 : _c[opts.color]) != null ? _d : opts.color;
2060
+ style2.color = (_d = (_c = theme.color) == null ? void 0 : _c[opts.color]) != null ? _d : opts.color;
2123
2061
  }
2124
2062
  if (opts.fontWeight) {
2125
- style2.fontWeight = (_f = (_e = theme2.fontWeight) == null ? void 0 : _e[opts.fontWeight]) != null ? _f : opts.fontWeight;
2063
+ style2.fontWeight = (_f = (_e = theme.fontWeight) == null ? void 0 : _e[opts.fontWeight]) != null ? _f : opts.fontWeight;
2126
2064
  }
2127
2065
  if (opts.textAlign) {
2128
2066
  style2.textAlign = opts.textAlign;
@@ -2155,10 +2093,10 @@ const textStyleFromTheme = (theme2, opts, scale = 1) => {
2155
2093
  }
2156
2094
  }
2157
2095
  if (opts.marginLeft) {
2158
- style2.marginLeft = resolveSpace(opts.marginLeft, theme2, scale);
2096
+ style2.marginLeft = resolveSpace(opts.marginLeft, theme, scale);
2159
2097
  }
2160
2098
  if (opts.marginRight) {
2161
- style2.marginRight = resolveSpace(opts.marginRight, theme2, scale);
2099
+ style2.marginRight = resolveSpace(opts.marginRight, theme, scale);
2162
2100
  }
2163
2101
  if (opts.style) {
2164
2102
  Object.assign(style2, opts.style);
@@ -2186,28 +2124,20 @@ const justifyContentToStyle = (alignItems, justifyContent) => {
2186
2124
  if (justifyContent) style2.justifyContent = justifyCenterMap[justifyContent];
2187
2125
  return style2;
2188
2126
  };
2189
- const backgroundToStyle = (background, theme2) => {
2190
- const backgroundMap = {
2191
- "bg-error": theme2.backgroundColor["bg-error"],
2192
- "bg-success": theme2.backgroundColor["bg-success"],
2193
- "bg-warning": theme2.backgroundColor["bg-warning"],
2194
- "bg-page": theme2.backgroundColor["bg-page"],
2195
- "bg-card": theme2.backgroundColor["bg-card"],
2196
- "bg-cardContent": theme2.backgroundColor["bg-cardContent"]
2197
- };
2127
+ const backgroundToStyle = (background, theme) => {
2198
2128
  const style2 = {};
2199
2129
  if (background) {
2200
- style2.backgroundColor = backgroundMap[background] || background;
2130
+ style2.backgroundColor = theme.color[background] || background;
2201
2131
  }
2202
2132
  return style2;
2203
2133
  };
2204
- const borderRadiusToStyle = (borderRadius, theme2, scale = 1) => {
2134
+ const borderRadiusToStyle = (borderRadius, theme, scale = 1) => {
2205
2135
  const borderRadiusMap = {
2206
- none: theme2.borderRadius.none,
2207
- card: theme2.borderRadius.card,
2208
- model: theme2.borderRadius.model,
2209
- comp: theme2.borderRadius.comp,
2210
- decorate: theme2.borderRadius.decorate
2136
+ none: theme.borderRadius.none,
2137
+ card: theme.borderRadius.card,
2138
+ model: theme.borderRadius.model,
2139
+ comp: theme.borderRadius.comp,
2140
+ decorate: theme.borderRadius.decorate
2211
2141
  };
2212
2142
  const style2 = {};
2213
2143
  if (borderRadius) {
@@ -2215,16 +2145,13 @@ const borderRadiusToStyle = (borderRadius, theme2, scale = 1) => {
2215
2145
  }
2216
2146
  return style2;
2217
2147
  };
2218
- const borderToStyle = (border, theme2, scale = 1) => {
2148
+ const borderToStyle = (border, theme, scale = 1) => {
2219
2149
  var _a, _b;
2220
2150
  const style2 = {};
2221
2151
  if (!border) return style2;
2222
2152
  if (border.size) {
2223
2153
  const resolveSize = (val) => {
2224
- var _a2, _b2;
2225
- const sizeKey = val;
2226
- const sizeValue = (_b2 = (_a2 = theme2.borderSize) == null ? void 0 : _a2[sizeKey]) != null ? _b2 : val;
2227
- return runStyle(sizeValue, scale);
2154
+ return runStyle(val, scale);
2228
2155
  };
2229
2156
  const size = border.size;
2230
2157
  if (Array.isArray(size)) {
@@ -2264,26 +2191,26 @@ const borderToStyle = (border, theme2, scale = 1) => {
2264
2191
  }
2265
2192
  if (border.color) {
2266
2193
  const colorKey = border.color;
2267
- const colorValue = (_b = (_a = theme2.color) == null ? void 0 : _a[colorKey]) != null ? _b : border.color;
2194
+ const colorValue = (_b = (_a = theme.color) == null ? void 0 : _a[colorKey]) != null ? _b : border.color;
2268
2195
  style2.borderColor = colorValue;
2269
2196
  }
2270
2197
  return style2;
2271
2198
  };
2272
- const imageStyleFromProps = (props, theme2, scale = 1) => {
2273
- const style2 = __spreadValues$p({}, borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme2, scale));
2199
+ const imageStyleFromProps = (props, theme, scale = 1) => {
2200
+ const style2 = __spreadValues$p({}, borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale));
2274
2201
  if (props.width != null) style2.width = runStyle(props.width, scale) || "100%";
2275
2202
  if (props.height != null)
2276
2203
  style2.height = runStyle(props.height, scale) || "auto";
2277
2204
  if (props.fit) style2.objectFit = props.fit;
2278
2205
  style2.display = props.display || "block";
2279
- Object.assign(style2, marginToStyle(props == null ? void 0 : props.margin, theme2, scale));
2206
+ Object.assign(style2, marginToStyle(props == null ? void 0 : props.margin, theme, scale));
2280
2207
  if (props.style) Object.assign(style2, props.style);
2281
2208
  return style2;
2282
2209
  };
2283
- const imageViewStyleFromProps = (props, theme2, scale = 1) => {
2210
+ const imageViewStyleFromProps = (props, theme, scale = 1) => {
2284
2211
  const style2 = __spreadValues$p({
2285
2212
  overflow: "hidden"
2286
- }, borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme2, scale));
2213
+ }, borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale));
2287
2214
  return style2;
2288
2215
  };
2289
2216
  const fractionWidth = (percent) => ({
@@ -2306,7 +2233,7 @@ const buildItemContainerStyle = (index2, count, props, horizontal = false, scale
2306
2233
  );
2307
2234
  return style2;
2308
2235
  };
2309
- const buildLayoutContainerStyle = (props, direction, theme2, scale = 1) => {
2236
+ const buildLayoutContainerStyle = (props, direction, theme, scale = 1) => {
2310
2237
  const style2 = __spreadValues$p(__spreadValues$p(__spreadValues$p(__spreadValues$p(__spreadValues$p({
2311
2238
  display: "flex",
2312
2239
  boxSizing: "border-box",
@@ -2314,13 +2241,13 @@ const buildLayoutContainerStyle = (props, direction, theme2, scale = 1) => {
2314
2241
  height: runStyle(props == null ? void 0 : props.height, scale) || "auto",
2315
2242
  position: "relative",
2316
2243
  flexDirection: direction || "column"
2317
- }, justifyContentToStyle(props == null ? void 0 : props.alignItems, props == null ? void 0 : props.justifyContent)), backgroundToStyle(props == null ? void 0 : props.background, theme2)), borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme2, scale)), borderToStyle(props == null ? void 0 : props.border, theme2, scale)), baseContainerStyle(props, scale));
2318
- Object.assign(style2, paddingToStyle(props == null ? void 0 : props.padding, theme2, scale));
2319
- Object.assign(style2, marginToStyle(props == null ? void 0 : props.margin, theme2, scale));
2244
+ }, justifyContentToStyle(props == null ? void 0 : props.alignItems, props == null ? void 0 : props.justifyContent)), backgroundToStyle(props == null ? void 0 : props.background, theme)), borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale)), borderToStyle(props == null ? void 0 : props.border, theme, scale)), baseContainerStyle(props, scale));
2245
+ Object.assign(style2, paddingToStyle(props == null ? void 0 : props.padding, theme, scale));
2246
+ Object.assign(style2, marginToStyle(props == null ? void 0 : props.margin, theme, scale));
2320
2247
  return style2;
2321
2248
  };
2322
- const buildAbsoluteLayoutStyle = (props, direction, theme2, scale = 1) => {
2323
- const style2 = __spreadProps$o(__spreadValues$p(__spreadValues$p({}, buildLayoutContainerStyle(props, direction, theme2, scale)), borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme2, scale)), {
2249
+ const buildAbsoluteLayoutStyle = (props, direction, theme, scale = 1) => {
2250
+ const style2 = __spreadProps$o(__spreadValues$p(__spreadValues$p({}, buildLayoutContainerStyle(props, direction, theme, scale)), borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale)), {
2324
2251
  position: "absolute",
2325
2252
  zIndex: 1
2326
2253
  });
@@ -2451,12 +2378,12 @@ const FullRowLayout = ({
2451
2378
  }) => {
2452
2379
  const { scale } = useResponsive();
2453
2380
  const { executeActions } = useAction$1();
2454
- const theme2 = useTheme$1();
2381
+ const theme = useTheme$1();
2455
2382
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2456
2383
  const containerStyle = buildLayoutContainerStyle(
2457
2384
  props,
2458
2385
  "column",
2459
- theme2,
2386
+ theme,
2460
2387
  scale
2461
2388
  );
2462
2389
  const items = React__default.Children.toArray(children);
@@ -2520,9 +2447,9 @@ const MultipleColumnLayout = ({
2520
2447
  }) => {
2521
2448
  const { scale } = useResponsive();
2522
2449
  const { executeActions } = useAction$1();
2523
- const theme2 = useTheme$1();
2450
+ const theme = useTheme$1();
2524
2451
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2525
- const containerStyle = __spreadProps$m(__spreadValues$n({}, buildLayoutContainerStyle(props, "row", theme2, scale)), {
2452
+ const containerStyle = __spreadProps$m(__spreadValues$n({}, buildLayoutContainerStyle(props, "row", theme, scale)), {
2526
2453
  flexWrap: (props == null ? void 0 : props.flexWrap) || "nowrap"
2527
2454
  });
2528
2455
  const itemContainerStyle = (child, idx) => {
@@ -2580,12 +2507,12 @@ const TwoColumnLayout$2 = ({
2580
2507
  }) => {
2581
2508
  const { scale } = useResponsive();
2582
2509
  const { executeActions } = useAction$1();
2583
- const theme2 = useTheme$1();
2510
+ const theme = useTheme$1();
2584
2511
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2585
2512
  const containerStyle = buildLayoutContainerStyle(
2586
2513
  props,
2587
2514
  "row",
2588
- theme2,
2515
+ theme,
2589
2516
  scale
2590
2517
  );
2591
2518
  const items = React__default.Children.toArray(children).slice(0, 2);
@@ -2642,12 +2569,12 @@ const ThreeColumnLayout$1 = ({
2642
2569
  }) => {
2643
2570
  const { scale } = useResponsive();
2644
2571
  const { executeActions } = useAction$1();
2645
- const theme2 = useTheme$1();
2572
+ const theme = useTheme$1();
2646
2573
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2647
2574
  const containerStyle = buildLayoutContainerStyle(
2648
2575
  props,
2649
2576
  "row",
2650
- theme2,
2577
+ theme,
2651
2578
  scale
2652
2579
  );
2653
2580
  const items = React__default.Children.toArray(children).slice(0, 3);
@@ -2703,12 +2630,12 @@ const FourColumnLayout = ({
2703
2630
  }) => {
2704
2631
  const { scale } = useResponsive();
2705
2632
  const { executeActions } = useAction$1();
2706
- const theme2 = useTheme$1();
2633
+ const theme = useTheme$1();
2707
2634
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2708
2635
  const containerStyle = buildLayoutContainerStyle(
2709
2636
  props,
2710
2637
  "row",
2711
- theme2,
2638
+ theme,
2712
2639
  scale
2713
2640
  );
2714
2641
  const items = React__default.Children.toArray(children).slice(0, 4);
@@ -2762,12 +2689,12 @@ const TwoColumnLayout$1 = ({
2762
2689
  }) => {
2763
2690
  const { scale } = useResponsive();
2764
2691
  const { executeActions } = useAction$1();
2765
- const theme2 = useTheme$1();
2692
+ const theme = useTheme$1();
2766
2693
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2767
2694
  const containerStyle = buildLayoutContainerStyle(
2768
2695
  props,
2769
2696
  "row",
2770
- theme2,
2697
+ theme,
2771
2698
  scale
2772
2699
  );
2773
2700
  const items = React__default.Children.toArray(children).slice(0, 2);
@@ -2827,12 +2754,12 @@ const TwoColumnLayout = ({
2827
2754
  }) => {
2828
2755
  const { scale } = useResponsive();
2829
2756
  const { executeActions } = useAction$1();
2830
- const theme2 = useTheme$1();
2757
+ const theme = useTheme$1();
2831
2758
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2832
2759
  const containerStyle = buildLayoutContainerStyle(
2833
2760
  props,
2834
2761
  "row",
2835
- theme2,
2762
+ theme,
2836
2763
  scale
2837
2764
  );
2838
2765
  const items = React__default.Children.toArray(children).slice(0, 2);
@@ -2890,12 +2817,12 @@ const ThreeColumnLayout = ({
2890
2817
  }) => {
2891
2818
  const { scale } = useResponsive();
2892
2819
  const { executeActions } = useAction$1();
2893
- const theme2 = useTheme$1();
2820
+ const theme = useTheme$1();
2894
2821
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2895
2822
  const containerStyle = buildLayoutContainerStyle(
2896
2823
  props,
2897
2824
  "row",
2898
- theme2,
2825
+ theme,
2899
2826
  scale
2900
2827
  );
2901
2828
  const items = React__default.Children.toArray(children).slice(0, 3);
@@ -2958,12 +2885,12 @@ const AbsoluteViewLayout = ({
2958
2885
  }
2959
2886
  onClick(e);
2960
2887
  };
2961
- const theme2 = useTheme$1();
2888
+ const theme = useTheme$1();
2962
2889
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
2963
2890
  const absoluteContainerStyle = buildAbsoluteLayoutStyle(
2964
2891
  props,
2965
2892
  "column",
2966
- theme2,
2893
+ theme,
2967
2894
  scale
2968
2895
  );
2969
2896
  const items = React__default.Children.toArray(children);
@@ -3017,12 +2944,12 @@ const AnimationLayout = ({
3017
2944
  }
3018
2945
  onClick(e);
3019
2946
  };
3020
- const theme2 = useTheme$1();
2947
+ const theme = useTheme$1();
3021
2948
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
3022
2949
  const containerStyle = buildLayoutContainerStyle(
3023
2950
  props,
3024
2951
  "column",
3025
- theme2,
2952
+ theme,
3026
2953
  scale
3027
2954
  );
3028
2955
  const items = React__default.Children.toArray(children);
@@ -3147,11 +3074,11 @@ var __spreadValues$d = (a, b) => {
3147
3074
  };
3148
3075
  var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
3149
3076
  const TextRender = (props) => {
3150
- const theme2 = useTheme$1();
3077
+ const theme = useTheme$1();
3151
3078
  const { scale } = useResponsive();
3152
3079
  const { executeActions } = useAction$1();
3153
3080
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
3154
- const style2 = textStyleFromTheme(theme2, props, scale);
3081
+ const style2 = textStyleFromTheme(theme, props, scale);
3155
3082
  const handleClick = (e) => {
3156
3083
  if (props.actions) {
3157
3084
  void executeActions(props.actions);
@@ -3193,7 +3120,7 @@ const splitParagraphs = (md) => {
3193
3120
  return md.split(/\n\s*\n/).map((s) => s.trim()).filter(Boolean);
3194
3121
  };
3195
3122
  const MarkdownRender = (props) => {
3196
- const theme2 = useTheme$1();
3123
+ const theme = useTheme$1();
3197
3124
  const { executeActions } = useAction$1();
3198
3125
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
3199
3126
  const content = props.content || "";
@@ -3212,8 +3139,8 @@ const MarkdownRender = (props) => {
3212
3139
  }, { onMouseEnter, onMouseLeave }), {
3213
3140
  style: {
3214
3141
  width: "100%",
3215
- color: theme2.color["color-textPrimary"],
3216
- fontSize: theme2.fontSize["text-md"],
3142
+ color: theme.color["color-textPrimary"],
3143
+ fontSize: theme.fontSize["text-md"],
3217
3144
  lineHeight: 1.6
3218
3145
  },
3219
3146
  dangerouslySetInnerHTML: { __html: content }
@@ -3240,14 +3167,14 @@ var __spreadValues$b = (a, b) => {
3240
3167
  };
3241
3168
  var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
3242
3169
  const ImageRender = (props) => {
3243
- const theme2 = useTheme$1();
3170
+ const theme = useTheme$1();
3244
3171
  const { scale } = useResponsive();
3245
3172
  const { executeActions } = useAction$1();
3246
3173
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
3247
- const viewStyle = imageViewStyleFromProps(props, theme2, scale);
3174
+ const viewStyle = imageViewStyleFromProps(props, theme, scale);
3248
3175
  const style2 = imageStyleFromProps(
3249
3176
  __spreadValues$b({ width: props.width, height: props.height, fit: props.fit }, props),
3250
- theme2,
3177
+ theme,
3251
3178
  scale
3252
3179
  );
3253
3180
  const handleClick = (e) => {
@@ -5442,8 +5369,8 @@ function cleanTokenStyle(tokenKey, instanceId) {
5442
5369
  });
5443
5370
  }
5444
5371
  }
5445
- var getComputedToken$1 = function getComputedToken(originToken, overrideToken, theme2, format2) {
5446
- var derivativeToken = theme2.getDerivativeToken(originToken);
5372
+ var getComputedToken$1 = function getComputedToken(originToken, overrideToken, theme, format2) {
5373
+ var derivativeToken = theme.getDerivativeToken(originToken);
5447
5374
  var mergedDerivativeToken = _objectSpread2(_objectSpread2({}, derivativeToken), overrideToken);
5448
5375
  if (format2) {
5449
5376
  mergedDerivativeToken = format2(mergedDerivativeToken);
@@ -5451,7 +5378,7 @@ var getComputedToken$1 = function getComputedToken(originToken, overrideToken, t
5451
5378
  return mergedDerivativeToken;
5452
5379
  };
5453
5380
  var TOKEN_PREFIX = "token";
5454
- function useCacheToken(theme2, tokens) {
5381
+ function useCacheToken(theme, tokens) {
5455
5382
  var option = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5456
5383
  var _useContext = useContext(StyleContext), instanceId = _useContext.cache.instanceId, container = _useContext.container;
5457
5384
  var _option$salt = option.salt, salt = _option$salt === void 0 ? "" : _option$salt, _option$override = option.override, override = _option$override === void 0 ? EMPTY_OVERRIDE : _option$override, formatToken2 = option.formatToken, compute = option.getComputedToken, cssVar = option.cssVar;
@@ -5461,9 +5388,9 @@ function useCacheToken(theme2, tokens) {
5461
5388
  var tokenStr = flattenToken(mergedToken);
5462
5389
  var overrideTokenStr = flattenToken(override);
5463
5390
  var cssVarStr = cssVar ? flattenToken(cssVar) : "";
5464
- var cachedToken = useGlobalCache(TOKEN_PREFIX, [salt, theme2.id, tokenStr, overrideTokenStr, cssVarStr], function() {
5391
+ var cachedToken = useGlobalCache(TOKEN_PREFIX, [salt, theme.id, tokenStr, overrideTokenStr, cssVarStr], function() {
5465
5392
  var _cssVar$key;
5466
- var mergedDerivativeToken = compute ? compute(mergedToken, override, theme2) : getComputedToken$1(mergedToken, override, theme2, formatToken2);
5393
+ var mergedDerivativeToken = compute ? compute(mergedToken, override, theme) : getComputedToken$1(mergedToken, override, theme, formatToken2);
5467
5394
  var actualToken = _objectSpread2({}, mergedDerivativeToken);
5468
5395
  var cssVarsStr = "";
5469
5396
  if (!!cssVar) {
@@ -7722,7 +7649,7 @@ function derivative(token2) {
7722
7649
  generateNeutralColorPalettes
7723
7650
  })), genFontMapToken(token2.fontSize)), genSizeMapToken(token2)), genControlHeight(token2)), genCommonMapToken(token2));
7724
7651
  }
7725
- const defaultTheme = createTheme(derivative);
7652
+ const defaultTheme$1 = createTheme(derivative);
7726
7653
  const defaultConfig = {
7727
7654
  token: seedToken,
7728
7655
  override: {
@@ -7767,7 +7694,7 @@ function useComponentConfig(propName) {
7767
7694
  });
7768
7695
  }
7769
7696
  const dynamicStyleMark = `-ant-${Date.now()}-${Math.random()}`;
7770
- function getStyle$1(globalPrefixCls2, theme2) {
7697
+ function getStyle$1(globalPrefixCls2, theme) {
7771
7698
  const variables = {};
7772
7699
  const formatColor = (color2, updater) => {
7773
7700
  let clone = color2.clone();
@@ -7785,9 +7712,9 @@ function getStyle$1(globalPrefixCls2, theme2) {
7785
7712
  variables[`${type4}-color-deprecated-bg`] = colorPalettes[0];
7786
7713
  variables[`${type4}-color-deprecated-border`] = colorPalettes[2];
7787
7714
  };
7788
- if (theme2.primaryColor) {
7789
- fillColor(theme2.primaryColor, "primary");
7790
- const primaryColor = new FastColor(theme2.primaryColor);
7715
+ if (theme.primaryColor) {
7716
+ fillColor(theme.primaryColor, "primary");
7717
+ const primaryColor = new FastColor(theme.primaryColor);
7791
7718
  const primaryColors = generate$1(primaryColor.toRgbString());
7792
7719
  primaryColors.forEach((color2, index2) => {
7793
7720
  variables[`primary-${index2 + 1}`] = color2;
@@ -7801,17 +7728,17 @@ function getStyle$1(globalPrefixCls2, theme2) {
7801
7728
  variables["primary-color-active-deprecated-f-30"] = formatColor(primaryActiveColor, (c) => c.setA(c.a * 0.3));
7802
7729
  variables["primary-color-active-deprecated-d-02"] = formatColor(primaryActiveColor, (c) => c.darken(2));
7803
7730
  }
7804
- if (theme2.successColor) {
7805
- fillColor(theme2.successColor, "success");
7731
+ if (theme.successColor) {
7732
+ fillColor(theme.successColor, "success");
7806
7733
  }
7807
- if (theme2.warningColor) {
7808
- fillColor(theme2.warningColor, "warning");
7734
+ if (theme.warningColor) {
7735
+ fillColor(theme.warningColor, "warning");
7809
7736
  }
7810
- if (theme2.errorColor) {
7811
- fillColor(theme2.errorColor, "error");
7737
+ if (theme.errorColor) {
7738
+ fillColor(theme.errorColor, "error");
7812
7739
  }
7813
- if (theme2.infoColor) {
7814
- fillColor(theme2.infoColor, "info");
7740
+ if (theme.infoColor) {
7741
+ fillColor(theme.infoColor, "info");
7815
7742
  }
7816
7743
  const cssList = Object.keys(variables).map((key) => `--${globalPrefixCls2}-${key}: ${variables[key]};`);
7817
7744
  return `
@@ -7820,8 +7747,8 @@ function getStyle$1(globalPrefixCls2, theme2) {
7820
7747
  }
7821
7748
  `.trim();
7822
7749
  }
7823
- function registerTheme(globalPrefixCls2, theme2) {
7824
- const style2 = getStyle$1(globalPrefixCls2, theme2);
7750
+ function registerTheme(globalPrefixCls2, theme) {
7751
+ const style2 = getStyle$1(globalPrefixCls2, theme);
7825
7752
  if (canUseDom()) {
7826
7753
  updateCSS(style2, `${dynamicStyleMark}-dynamic-theme`);
7827
7754
  } else {
@@ -8375,7 +8302,7 @@ function genStyleUtils(config) {
8375
8302
  };
8376
8303
  return function(prefixCls) {
8377
8304
  var rootCls = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : prefixCls;
8378
- var _useToken3 = useToken2(), theme2 = _useToken3.theme, realToken = _useToken3.realToken, hashId = _useToken3.hashId, token2 = _useToken3.token, cssVar = _useToken3.cssVar;
8305
+ var _useToken3 = useToken2(), theme = _useToken3.theme, realToken = _useToken3.realToken, hashId = _useToken3.hashId, token2 = _useToken3.token, cssVar = _useToken3.cssVar;
8379
8306
  var _usePrefix = usePrefix(), rootPrefixCls = _usePrefix.rootPrefixCls, iconPrefixCls = _usePrefix.iconPrefixCls;
8380
8307
  var csp = useCSP();
8381
8308
  var type4 = cssVar ? "css" : "js";
@@ -8391,7 +8318,7 @@ function genStyleUtils(config) {
8391
8318
  }, [type4, component, cssVar === null || cssVar === void 0 ? void 0 : cssVar.prefix]);
8392
8319
  var _genMaxMin = genMaxMin(type4), max2 = _genMaxMin.max, min2 = _genMaxMin.min;
8393
8320
  var sharedConfig = {
8394
- theme: theme2,
8321
+ theme,
8395
8322
  token: token2,
8396
8323
  hashId,
8397
8324
  nonce: function nonce() {
@@ -8731,8 +8658,8 @@ const preserve = {
8731
8658
  screenXXL: true,
8732
8659
  screenXXLMin: true
8733
8660
  };
8734
- const getComputedToken2 = (originToken, overrideToken, theme2) => {
8735
- const derivativeToken = theme2.getDerivativeToken(originToken);
8661
+ const getComputedToken2 = (originToken, overrideToken, theme) => {
8662
+ const derivativeToken = theme.getDerivativeToken(originToken);
8736
8663
  const {
8737
8664
  override
8738
8665
  } = overrideToken, components = __rest$f(overrideToken, ["override"]);
@@ -8760,12 +8687,12 @@ function useToken() {
8760
8687
  const {
8761
8688
  token: rootDesignToken,
8762
8689
  hashed,
8763
- theme: theme2,
8690
+ theme,
8764
8691
  override,
8765
8692
  cssVar
8766
8693
  } = React__default.useContext(DesignTokenContext);
8767
8694
  const salt = `${version$1}-${hashed || ""}`;
8768
- const mergedTheme = theme2 || defaultTheme;
8695
+ const mergedTheme = theme || defaultTheme$1;
8769
8696
  const [token2, hashId, realToken] = useCacheToken(mergedTheme, [seedToken, rootDesignToken], {
8770
8697
  salt,
8771
8698
  override,
@@ -8919,9 +8846,9 @@ const {
8919
8846
  };
8920
8847
  },
8921
8848
  useToken: () => {
8922
- const [theme2, realToken, hashId, token2, cssVar] = useToken();
8849
+ const [theme, realToken, hashId, token2, cssVar] = useToken();
8923
8850
  return {
8924
- theme: theme2,
8851
+ theme,
8925
8852
  realToken,
8926
8853
  hashId,
8927
8854
  token: token2,
@@ -8945,7 +8872,7 @@ const {
8945
8872
  getCompUnitless: () => unitless
8946
8873
  });
8947
8874
  const useResetIconStyle = (iconPrefixCls, csp) => {
8948
- const [theme2, token2] = useToken();
8875
+ const [theme, token2] = useToken();
8949
8876
  return useStyleRegister({
8950
8877
  token: token2,
8951
8878
  hashId: "",
@@ -8962,10 +8889,10 @@ const {
8962
8889
  } = fullClone$1;
8963
8890
  const useEmptyId = () => "";
8964
8891
  const useThemeKey = typeof useId$2 === "undefined" ? useEmptyId : useId$2;
8965
- function useTheme(theme2, parentTheme, config) {
8892
+ function useTheme(theme, parentTheme, config) {
8966
8893
  var _a, _b;
8967
8894
  const warning3 = devUseWarning("ConfigProvider");
8968
- const themeConfig = theme2 || {};
8895
+ const themeConfig = theme || {};
8969
8896
  const parentThemeConfig = themeConfig.inherit === false || !parentTheme ? Object.assign(Object.assign({}, defaultConfig), {
8970
8897
  hashed: (_a = parentTheme === null || parentTheme === void 0 ? void 0 : parentTheme.hashed) !== null && _a !== void 0 ? _a : defaultConfig.hashed,
8971
8898
  cssVar: parentTheme === null || parentTheme === void 0 ? void 0 : parentTheme.cssVar
@@ -8978,12 +8905,12 @@ function useTheme(theme2, parentTheme, config) {
8978
8905
  }
8979
8906
  return useMemo(() => {
8980
8907
  var _a2, _b2;
8981
- if (!theme2) {
8908
+ if (!theme) {
8982
8909
  return parentTheme;
8983
8910
  }
8984
8911
  const mergedComponents = Object.assign({}, parentThemeConfig.components);
8985
- Object.keys(theme2.components || {}).forEach((componentName) => {
8986
- mergedComponents[componentName] = Object.assign(Object.assign({}, mergedComponents[componentName]), theme2.components[componentName]);
8912
+ Object.keys(theme.components || {}).forEach((componentName) => {
8913
+ mergedComponents[componentName] = Object.assign(Object.assign({}, mergedComponents[componentName]), theme.components[componentName]);
8987
8914
  });
8988
8915
  const cssVarKey = `css-var-${themeKey.replace(/:/g, "")}`;
8989
8916
  const mergedCssVar = ((_a2 = themeConfig.cssVar) !== null && _a2 !== void 0 ? _a2 : parentThemeConfig.cssVar) && Object.assign(Object.assign(Object.assign({
@@ -9685,23 +9612,23 @@ let globalPrefixCls;
9685
9612
  function getGlobalPrefixCls() {
9686
9613
  return globalPrefixCls || defaultPrefixCls;
9687
9614
  }
9688
- function isLegacyTheme(theme2) {
9689
- return Object.keys(theme2).some((key) => key.endsWith("Color"));
9615
+ function isLegacyTheme(theme) {
9616
+ return Object.keys(theme).some((key) => key.endsWith("Color"));
9690
9617
  }
9691
9618
  const setGlobalConfig = (props) => {
9692
9619
  const {
9693
9620
  prefixCls,
9694
9621
  iconPrefixCls,
9695
- theme: theme2,
9622
+ theme,
9696
9623
  holderRender
9697
9624
  } = props;
9698
9625
  if (prefixCls !== void 0) {
9699
9626
  globalPrefixCls = prefixCls;
9700
9627
  }
9701
- if (theme2) {
9702
- if (isLegacyTheme(theme2)) {
9628
+ if (theme) {
9629
+ if (isLegacyTheme(theme)) {
9703
9630
  process.env.NODE_ENV !== "production" ? warning$2(false, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead.") : void 0;
9704
- registerTheme(getGlobalPrefixCls(), theme2);
9631
+ registerTheme(getGlobalPrefixCls(), theme);
9705
9632
  }
9706
9633
  }
9707
9634
  };
@@ -9725,7 +9652,7 @@ const ProviderChildren = (props) => {
9725
9652
  legacyLocale,
9726
9653
  parentContext,
9727
9654
  iconPrefixCls: customIconPrefixCls,
9728
- theme: theme2,
9655
+ theme,
9729
9656
  componentDisabled,
9730
9657
  segmented,
9731
9658
  statistic: statistic2,
@@ -9801,7 +9728,7 @@ const ProviderChildren = (props) => {
9801
9728
  const iconPrefixCls = customIconPrefixCls || parentContext.iconPrefixCls || defaultIconPrefixCls;
9802
9729
  const csp = customCsp || parentContext.csp;
9803
9730
  useResetIconStyle(iconPrefixCls, csp);
9804
- const mergedTheme = useTheme(theme2, parentContext.theme, {
9731
+ const mergedTheme = useTheme(theme, parentContext.theme, {
9805
9732
  prefixCls: getPrefixCls("")
9806
9733
  });
9807
9734
  if (process.env.NODE_ENV !== "production") {
@@ -9953,7 +9880,7 @@ const ProviderChildren = (props) => {
9953
9880
  components,
9954
9881
  cssVar
9955
9882
  } = _a, rest = __rest$e(_a, ["algorithm", "token", "components", "cssVar"]);
9956
- const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
9883
+ const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme$1;
9957
9884
  const parsedComponents = {};
9958
9885
  Object.entries(components || {}).forEach(([componentName, componentToken]) => {
9959
9886
  const parsedToken = Object.assign({}, componentToken);
@@ -9978,7 +9905,7 @@ const ProviderChildren = (props) => {
9978
9905
  cssVar
9979
9906
  });
9980
9907
  }, [mergedTheme]);
9981
- if (theme2) {
9908
+ if (theme) {
9982
9909
  childNode = /* @__PURE__ */ React.createElement(DesignTokenContext.Provider, {
9983
9910
  value: memoTheme
9984
9911
  }, childNode);
@@ -27400,7 +27327,7 @@ var __spreadValues$6 = (a, b) => {
27400
27327
  };
27401
27328
  var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
27402
27329
  const TextListRender = (props) => {
27403
- const theme2 = useTheme$1();
27330
+ const theme = useTheme$1();
27404
27331
  const { scale } = useResponsive();
27405
27332
  const { executeActions } = useAction$1();
27406
27333
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
@@ -27436,17 +27363,17 @@ const TextListRender = (props) => {
27436
27363
  display: "flex",
27437
27364
  flexDirection: "row",
27438
27365
  alignItems: "flex-start",
27439
- marginBottom: idx === items.length - 1 ? 0 : runStyle(theme2.space["spacing-xs"], scale)
27366
+ marginBottom: idx === items.length - 1 ? 0 : runStyle(theme.space["spacing-xs"], scale)
27440
27367
  },
27441
27368
  children: [
27442
27369
  /* @__PURE__ */ jsx(
27443
27370
  "span",
27444
27371
  {
27445
27372
  style: {
27446
- color: theme2.color["color-textSecondary"],
27447
- fontSize: theme2.fontSize["text-md"],
27373
+ color: theme.color["color-textSecondary"],
27374
+ fontSize: theme.fontSize["text-md"],
27448
27375
  lineHeight: 1.6,
27449
- marginRight: runStyle(theme2.space["spacing-xs"], scale),
27376
+ marginRight: runStyle(theme.space["spacing-xs"], scale),
27450
27377
  minWidth: "1.5em",
27451
27378
  textAlign: "right"
27452
27379
  },
@@ -27457,8 +27384,8 @@ const TextListRender = (props) => {
27457
27384
  "span",
27458
27385
  {
27459
27386
  style: {
27460
- color: theme2.color["color-textPrimary"],
27461
- fontSize: theme2.fontSize["text-md"],
27387
+ color: theme.color["color-textPrimary"],
27388
+ fontSize: theme.fontSize["text-md"],
27462
27389
  lineHeight: 1.6
27463
27390
  },
27464
27391
  children: it.text
@@ -27469,7 +27396,7 @@ const TextListRender = (props) => {
27469
27396
  idx
27470
27397
  );
27471
27398
  }),
27472
- props.children ? /* @__PURE__ */ jsx("div", { style: { marginTop: runStyle(theme2.space["spacing-sm"], scale) }, children: props.children }) : null
27399
+ props.children ? /* @__PURE__ */ jsx("div", { style: { marginTop: runStyle(theme.space["spacing-sm"], scale) }, children: props.children }) : null
27473
27400
  ]
27474
27401
  })
27475
27402
  );
@@ -27574,7 +27501,7 @@ const DividerRender = (props) => {
27574
27501
  var _a;
27575
27502
  const { scale } = useResponsive();
27576
27503
  const { executeActions } = useAction$1();
27577
- const theme2 = useTheme$1();
27504
+ const theme = useTheme$1();
27578
27505
  const handleClick = () => {
27579
27506
  if (props == null ? void 0 : props.actions) {
27580
27507
  void executeActions(props.actions);
@@ -27583,7 +27510,7 @@ const DividerRender = (props) => {
27583
27510
  const style2 = __spreadValues$4({
27584
27511
  width: "100%",
27585
27512
  height: props.height ? runStyle(props.height, scale) : "1px",
27586
- backgroundColor: props.color ? ((_a = theme2.color) == null ? void 0 : _a[props.color]) || props.color : "#eeeeee",
27513
+ backgroundColor: props.color ? ((_a = theme.color) == null ? void 0 : _a[props.color]) || props.color : "#eeeeee",
27587
27514
  margin: "8px 0"
27588
27515
  }, props.style || {});
27589
27516
  return /* @__PURE__ */ jsx("div", { style: style2, onClick: handleClick });
@@ -27758,7 +27685,7 @@ var __spreadValues$2 = (a, b) => {
27758
27685
  };
27759
27686
  var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
27760
27687
  const MessageContainer = (props) => {
27761
- const { component, dataSources, theme: theme2, onAction } = props;
27688
+ const { component, dataSources, theme, onAction } = props;
27762
27689
  const { template, referenceComponentList, data } = component;
27763
27690
  const { editorMode: editorMode2 } = useForEditor({});
27764
27691
  const [values, setValues] = useState({});
@@ -27857,8 +27784,8 @@ const MessageContainer = (props) => {
27857
27784
  ] })
27858
27785
  }
27859
27786
  );
27860
- if (theme2) {
27861
- return /* @__PURE__ */ jsx(ThemeProvider, { theme: theme2, children: content });
27787
+ if (theme) {
27788
+ return /* @__PURE__ */ jsx(ThemeProvider, { theme, children: content });
27862
27789
  }
27863
27790
  return content;
27864
27791
  };
@@ -30823,7 +30750,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
30823
30750
  var ys = arrObjKeys(obj, inspect2);
30824
30751
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
30825
30752
  var protoTag = obj instanceof Object ? "" : "null prototype";
30826
- var stringTag = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
30753
+ var stringTag = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
30827
30754
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
30828
30755
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
30829
30756
  if (ys.length === 0) {
@@ -30848,25 +30775,25 @@ function canTrustToString(obj) {
30848
30775
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
30849
30776
  }
30850
30777
  function isArray$3(obj) {
30851
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
30778
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
30852
30779
  }
30853
30780
  function isDate(obj) {
30854
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
30781
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
30855
30782
  }
30856
30783
  function isRegExp$1(obj) {
30857
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
30784
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
30858
30785
  }
30859
30786
  function isError(obj) {
30860
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
30787
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
30861
30788
  }
30862
30789
  function isString(obj) {
30863
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
30790
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
30864
30791
  }
30865
30792
  function isNumber(obj) {
30866
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
30793
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
30867
30794
  }
30868
30795
  function isBoolean(obj) {
30869
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
30796
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
30870
30797
  }
30871
30798
  function isSymbol(obj) {
30872
30799
  if (hasShammedSymbols) {
@@ -30902,7 +30829,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
30902
30829
  function has$3(obj, key) {
30903
30830
  return hasOwn$1.call(obj, key);
30904
30831
  }
30905
- function toStr$1(obj) {
30832
+ function toStr(obj) {
30906
30833
  return objectToString.call(obj);
30907
30834
  }
30908
30835
  function nameOf(f) {
@@ -31211,7 +31138,7 @@ var syntax = SyntaxError;
31211
31138
  var uri = URIError;
31212
31139
  var abs$1 = Math.abs;
31213
31140
  var floor$1 = Math.floor;
31214
- var max$2 = Math.max;
31141
+ var max$1 = Math.max;
31215
31142
  var min$1 = Math.min;
31216
31143
  var pow$1 = Math.pow;
31217
31144
  var round$1 = Math.round;
@@ -31340,78 +31267,99 @@ function requireObject_getPrototypeOf() {
31340
31267
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
31341
31268
  return Object_getPrototypeOf;
31342
31269
  }
31343
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
31344
- var toStr = Object.prototype.toString;
31345
- var max$1 = Math.max;
31346
- var funcType = "[object Function]";
31347
- var concatty = function concatty2(a, b) {
31348
- var arr = [];
31349
- for (var i = 0; i < a.length; i += 1) {
31350
- arr[i] = a[i];
31351
- }
31352
- for (var j2 = 0; j2 < b.length; j2 += 1) {
31353
- arr[j2 + a.length] = b[j2];
31354
- }
31355
- return arr;
31356
- };
31357
- var slicy = function slicy2(arrLike, offset) {
31358
- var arr = [];
31359
- for (var i = offset, j2 = 0; i < arrLike.length; i += 1, j2 += 1) {
31360
- arr[j2] = arrLike[i];
31361
- }
31362
- return arr;
31363
- };
31364
- var joiny = function(arr, joiner) {
31365
- var str = "";
31366
- for (var i = 0; i < arr.length; i += 1) {
31367
- str += arr[i];
31368
- if (i + 1 < arr.length) {
31369
- str += joiner;
31270
+ var implementation;
31271
+ var hasRequiredImplementation;
31272
+ function requireImplementation() {
31273
+ if (hasRequiredImplementation) return implementation;
31274
+ hasRequiredImplementation = 1;
31275
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
31276
+ var toStr2 = Object.prototype.toString;
31277
+ var max2 = Math.max;
31278
+ var funcType = "[object Function]";
31279
+ var concatty = function concatty2(a, b) {
31280
+ var arr = [];
31281
+ for (var i = 0; i < a.length; i += 1) {
31282
+ arr[i] = a[i];
31370
31283
  }
31371
- }
31372
- return str;
31373
- };
31374
- var implementation$1 = function bind(that) {
31375
- var target = this;
31376
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
31377
- throw new TypeError(ERROR_MESSAGE + target);
31378
- }
31379
- var args = slicy(arguments, 1);
31380
- var bound;
31381
- var binder = function() {
31382
- if (this instanceof bound) {
31383
- var result = target.apply(
31384
- this,
31385
- concatty(args, arguments)
31386
- );
31387
- if (Object(result) === result) {
31388
- return result;
31284
+ for (var j2 = 0; j2 < b.length; j2 += 1) {
31285
+ arr[j2 + a.length] = b[j2];
31286
+ }
31287
+ return arr;
31288
+ };
31289
+ var slicy = function slicy2(arrLike, offset) {
31290
+ var arr = [];
31291
+ for (var i = offset, j2 = 0; i < arrLike.length; i += 1, j2 += 1) {
31292
+ arr[j2] = arrLike[i];
31293
+ }
31294
+ return arr;
31295
+ };
31296
+ var joiny = function(arr, joiner) {
31297
+ var str = "";
31298
+ for (var i = 0; i < arr.length; i += 1) {
31299
+ str += arr[i];
31300
+ if (i + 1 < arr.length) {
31301
+ str += joiner;
31389
31302
  }
31390
- return this;
31391
31303
  }
31392
- return target.apply(
31393
- that,
31394
- concatty(args, arguments)
31395
- );
31304
+ return str;
31396
31305
  };
31397
- var boundLength = max$1(0, target.length - args.length);
31398
- var boundArgs = [];
31399
- for (var i = 0; i < boundLength; i++) {
31400
- boundArgs[i] = "$" + i;
31401
- }
31402
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
31403
- if (target.prototype) {
31404
- var Empty2 = function Empty3() {
31306
+ implementation = function bind2(that) {
31307
+ var target = this;
31308
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
31309
+ throw new TypeError(ERROR_MESSAGE + target);
31310
+ }
31311
+ var args = slicy(arguments, 1);
31312
+ var bound;
31313
+ var binder = function() {
31314
+ if (this instanceof bound) {
31315
+ var result = target.apply(
31316
+ this,
31317
+ concatty(args, arguments)
31318
+ );
31319
+ if (Object(result) === result) {
31320
+ return result;
31321
+ }
31322
+ return this;
31323
+ }
31324
+ return target.apply(
31325
+ that,
31326
+ concatty(args, arguments)
31327
+ );
31405
31328
  };
31406
- Empty2.prototype = target.prototype;
31407
- bound.prototype = new Empty2();
31408
- Empty2.prototype = null;
31409
- }
31410
- return bound;
31411
- };
31412
- var implementation = implementation$1;
31413
- var functionBind = Function.prototype.bind || implementation;
31414
- var functionCall = Function.prototype.call;
31329
+ var boundLength = max2(0, target.length - args.length);
31330
+ var boundArgs = [];
31331
+ for (var i = 0; i < boundLength; i++) {
31332
+ boundArgs[i] = "$" + i;
31333
+ }
31334
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
31335
+ if (target.prototype) {
31336
+ var Empty2 = function Empty3() {
31337
+ };
31338
+ Empty2.prototype = target.prototype;
31339
+ bound.prototype = new Empty2();
31340
+ Empty2.prototype = null;
31341
+ }
31342
+ return bound;
31343
+ };
31344
+ return implementation;
31345
+ }
31346
+ var functionBind;
31347
+ var hasRequiredFunctionBind;
31348
+ function requireFunctionBind() {
31349
+ if (hasRequiredFunctionBind) return functionBind;
31350
+ hasRequiredFunctionBind = 1;
31351
+ var implementation2 = requireImplementation();
31352
+ functionBind = Function.prototype.bind || implementation2;
31353
+ return functionBind;
31354
+ }
31355
+ var functionCall;
31356
+ var hasRequiredFunctionCall;
31357
+ function requireFunctionCall() {
31358
+ if (hasRequiredFunctionCall) return functionCall;
31359
+ hasRequiredFunctionCall = 1;
31360
+ functionCall = Function.prototype.call;
31361
+ return functionCall;
31362
+ }
31415
31363
  var functionApply;
31416
31364
  var hasRequiredFunctionApply;
31417
31365
  function requireFunctionApply() {
@@ -31421,14 +31369,14 @@ function requireFunctionApply() {
31421
31369
  return functionApply;
31422
31370
  }
31423
31371
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
31424
- var bind$2 = functionBind;
31372
+ var bind$2 = requireFunctionBind();
31425
31373
  var $apply$1 = requireFunctionApply();
31426
- var $call$2 = functionCall;
31374
+ var $call$2 = requireFunctionCall();
31427
31375
  var $reflectApply = reflectApply;
31428
31376
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
31429
- var bind$1 = functionBind;
31377
+ var bind$1 = requireFunctionBind();
31430
31378
  var $TypeError$4 = type3;
31431
- var $call$1 = functionCall;
31379
+ var $call$1 = requireFunctionCall();
31432
31380
  var $actualApply = actualApply;
31433
31381
  var callBindApplyHelpers = function callBindBasic(args) {
31434
31382
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -31494,8 +31442,8 @@ function requireHasown() {
31494
31442
  hasRequiredHasown = 1;
31495
31443
  var call2 = Function.prototype.call;
31496
31444
  var $hasOwn = Object.prototype.hasOwnProperty;
31497
- var bind3 = functionBind;
31498
- hasown = bind3.call(call2, $hasOwn);
31445
+ var bind2 = requireFunctionBind();
31446
+ hasown = bind2.call(call2, $hasOwn);
31499
31447
  return hasown;
31500
31448
  }
31501
31449
  var undefined$1;
@@ -31509,7 +31457,7 @@ var $TypeError$3 = type3;
31509
31457
  var $URIError = uri;
31510
31458
  var abs = abs$1;
31511
31459
  var floor = floor$1;
31512
- var max = max$2;
31460
+ var max = max$1;
31513
31461
  var min = min$1;
31514
31462
  var pow = pow$1;
31515
31463
  var round = round$1;
@@ -31543,7 +31491,7 @@ var getProto = requireGetProto();
31543
31491
  var $ObjectGPO = requireObject_getPrototypeOf();
31544
31492
  var $ReflectGPO = requireReflect_getPrototypeOf();
31545
31493
  var $apply = requireFunctionApply();
31546
- var $call = functionCall;
31494
+ var $call = requireFunctionCall();
31547
31495
  var needsEval = {};
31548
31496
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
31549
31497
  var INTRINSICS = {
@@ -31714,13 +31662,13 @@ var LEGACY_ALIASES = {
31714
31662
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
31715
31663
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
31716
31664
  };
31717
- var bind2 = functionBind;
31665
+ var bind = requireFunctionBind();
31718
31666
  var hasOwn = requireHasown();
31719
- var $concat = bind2.call($call, Array.prototype.concat);
31720
- var $spliceApply = bind2.call($apply, Array.prototype.splice);
31721
- var $replace = bind2.call($call, String.prototype.replace);
31722
- var $strSlice = bind2.call($call, String.prototype.slice);
31723
- var $exec = bind2.call($call, RegExp.prototype.exec);
31667
+ var $concat = bind.call($call, Array.prototype.concat);
31668
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
31669
+ var $replace = bind.call($call, String.prototype.replace);
31670
+ var $strSlice = bind.call($call, String.prototype.slice);
31671
+ var $exec = bind.call($call, RegExp.prototype.exec);
31724
31672
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
31725
31673
  var reEscapeChar = /\\(\\)?/g;
31726
31674
  var stringToPath = function stringToPath2(string3) {
@@ -33721,7 +33669,8 @@ const useMessageCardLogic = (props) => {
33721
33669
  templateData: directTemplateData,
33722
33670
  cardId: directCardId,
33723
33671
  osName,
33724
- isDev
33672
+ isDev,
33673
+ theme = {}
33725
33674
  } = props;
33726
33675
  const rawTemplateJson = directTemplateJson || ((_a = floor2 == null ? void 0 : floor2.cfg) == null ? void 0 : _a.templateJson);
33727
33676
  const rawTemplateData = directTemplateData || ((_b = floor2 == null ? void 0 : floor2.cfg) == null ? void 0 : _b.templateData);
@@ -33771,7 +33720,8 @@ const useMessageCardLogic = (props) => {
33771
33720
  Render,
33772
33721
  routerParams,
33773
33722
  storageData,
33774
- configData
33723
+ configData,
33724
+ theme
33775
33725
  };
33776
33726
  };
33777
33727
  var __defProp = Object.defineProperty;
@@ -33793,7 +33743,7 @@ var __spreadValues = (a, b) => {
33793
33743
  return a;
33794
33744
  };
33795
33745
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
33796
- const MessageCard = (props, ref2) => {
33746
+ const MessageCard = (props) => {
33797
33747
  const { floor: floor2, label, width = 375 } = props;
33798
33748
  const responsiveValue = useMemo$1(() => {
33799
33749
  return {
@@ -33807,45 +33757,85 @@ const MessageCard = (props, ref2) => {
33807
33757
  Render,
33808
33758
  routerParams,
33809
33759
  storageData,
33810
- configData
33760
+ configData,
33761
+ theme
33811
33762
  } = useMessageCardLogic(props);
33812
- return /* @__PURE__ */ jsx(ResponsiveContext.Provider, { value: responsiveValue, children: /* @__PURE__ */ jsx(
33813
- "div",
33814
- {
33815
- className: "message-card-wrapper",
33816
- style: floor2 == null ? void 0 : floor2.style,
33817
- id: label,
33818
- ref: ref2,
33819
- children: /* @__PURE__ */ jsx(
33820
- Render,
33821
- __spreadValues({
33822
- component: __spreadProps(__spreadValues({}, templateJson), {
33823
- data: __spreadProps(__spreadValues(__spreadValues({
33824
- metadata: props.metadata,
33825
- message: props.message,
33826
- latest: props == null ? void 0 : props.latest,
33827
- routerParams,
33828
- storageData,
33829
- configData
33830
- }, templateData), props.data), {
33831
- initProps: props
33832
- })
33833
- }),
33834
- theme,
33835
- onAction: (payload) => {
33836
- console.info("onAction", payload);
33837
- }
33838
- }, props)
33839
- )
33840
- }
33841
- ) });
33763
+ return /* @__PURE__ */ jsx(ResponsiveContext.Provider, { value: responsiveValue, children: /* @__PURE__ */ jsx("div", { className: "message-card-wrapper", style: floor2 == null ? void 0 : floor2.style, id: label, children: /* @__PURE__ */ jsx(
33764
+ Render,
33765
+ __spreadValues({
33766
+ component: __spreadProps(__spreadValues({}, templateJson), {
33767
+ data: __spreadProps(__spreadValues(__spreadValues({
33768
+ metadata: props.metadata,
33769
+ message: props.message,
33770
+ latest: props == null ? void 0 : props.latest,
33771
+ routerParams,
33772
+ storageData,
33773
+ configData
33774
+ }, templateData), props.data), {
33775
+ initProps: props
33776
+ })
33777
+ }),
33778
+ theme,
33779
+ onAction: (payload) => {
33780
+ console.info("onAction", payload);
33781
+ }
33782
+ }, props)
33783
+ ) }) });
33842
33784
  };
33843
33785
  const MessageCard_default = forwardRef(MessageCard);
33786
+ const defaultTheme = {
33787
+ fontSize: {
33788
+ FontSizes_JDH_Headline1: 46,
33789
+ FontSizes_JDH_Headline2: 34,
33790
+ FontSizes_JDH_Title: 30,
33791
+ FontSizes_JDH_Text: 28,
33792
+ FontSizes_JDH_AccentText: 24,
33793
+ FontSizes_JDH_TagText: 20
33794
+ },
33795
+ color: {
33796
+ Color_JDH_Primary: "#17CB8E",
33797
+ Color_JDH_Accent1: "#FF8000",
33798
+ Color_JDH_Accent2: "#73B0FF",
33799
+ Color_JDH_Red_Danger: "#FF0F23",
33800
+ Color_JDH_Red_Price: "#FF0F23",
33801
+ Color_JDH_Red_Discount: "#FF0F23",
33802
+ Color_JDH_Green_Success: "#67CC52",
33803
+ Color_JDH_Gray_Headline: "#222222",
33804
+ Color_JDH_Gray_Text: "#222222",
33805
+ Color_JDH_Gray_SecondText: "#575859",
33806
+ Color_JDH_Gray_AccentText: "#858687",
33807
+ Color_JDH_Gray_DividingLine: "#D3D3D3",
33808
+ Color_JDH_Gray_Background: "#F5F5F6",
33809
+ Color_JDH_Gray_CardBackground: "#E5E9EB",
33810
+ Color_JDH_Gray_Card: "#FFFFFF",
33811
+ Color_JDH_Gray_Mask: "#00000080"
33812
+ },
33813
+ fontWeight: {
33814
+ FontWeight_JDH_Normal: 400,
33815
+ FontWeight_JDH_Medium: 500
33816
+ },
33817
+ space: {
33818
+ "spacing-xs": 4,
33819
+ "spacing-sm": 8,
33820
+ "spacing-md": 16,
33821
+ "spacing-lg": 20,
33822
+ "spacing-xl": 24,
33823
+ "spacing-xxl": 32
33824
+ },
33825
+ borderRadius: {
33826
+ Radius_JDH_LargeExtra: 32,
33827
+ Radius_JDH_Large: 24,
33828
+ Radius_JDH_Medium: 16,
33829
+ Radius_JDH_Small: 8,
33830
+ Radius_JDH_Mini: 6
33831
+ },
33832
+ components: {}
33833
+ };
33844
33834
  export {
33845
33835
  MessageCard_default as MessageCard,
33846
33836
  ThemeProvider,
33847
33837
  MessageCard_default as default,
33848
- defaultTheme$1 as defaultTheme,
33838
+ defaultTheme,
33849
33839
  isLayoutNode,
33850
33840
  isRenderNode,
33851
33841
  useTheme$1 as useTheme