@officesdk/design 0.1.0 → 0.1.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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
3
3
 
4
- interface ButtonProps {
4
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  /**
6
6
  * Button variant type
7
7
  */
@@ -39,22 +39,6 @@ interface ButtonProps {
39
39
  * Whether the icon button should have a border (only for variant='icon')
40
40
  */
41
41
  iconBordered?: boolean;
42
- /**
43
- * Click event handler
44
- */
45
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
46
- /**
47
- * Button content
48
- */
49
- children?: React.ReactNode;
50
- /**
51
- * Custom className
52
- */
53
- className?: string;
54
- /**
55
- * Custom inline styles
56
- */
57
- style?: React.CSSProperties;
58
42
  }
59
43
  /**
60
44
  * Button Component
@@ -698,7 +682,7 @@ interface TabsProps {
698
682
  */
699
683
  declare const Tabs: React.FC<TabsProps>;
700
684
 
701
- interface TooltipProps extends Omit<TooltipProps$1, 'overlay'> {
685
+ interface TooltipProps extends TooltipProps$1 {
702
686
  /**
703
687
  * Tooltip content
704
688
  */
@@ -715,6 +699,10 @@ interface TooltipProps extends Omit<TooltipProps$1, 'overlay'> {
715
699
  * Children element that triggers the tooltip
716
700
  */
717
701
  children: React.ReactElement;
702
+ /**
703
+ * Function to get the container element for the tooltip
704
+ */
705
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
718
706
  }
719
707
  /**
720
708
  * Tooltip Component
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
3
3
 
4
- interface ButtonProps {
4
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  /**
6
6
  * Button variant type
7
7
  */
@@ -39,22 +39,6 @@ interface ButtonProps {
39
39
  * Whether the icon button should have a border (only for variant='icon')
40
40
  */
41
41
  iconBordered?: boolean;
42
- /**
43
- * Click event handler
44
- */
45
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
46
- /**
47
- * Button content
48
- */
49
- children?: React.ReactNode;
50
- /**
51
- * Custom className
52
- */
53
- className?: string;
54
- /**
55
- * Custom inline styles
56
- */
57
- style?: React.CSSProperties;
58
42
  }
59
43
  /**
60
44
  * Button Component
@@ -698,7 +682,7 @@ interface TabsProps {
698
682
  */
699
683
  declare const Tabs: React.FC<TabsProps>;
700
684
 
701
- interface TooltipProps extends Omit<TooltipProps$1, 'overlay'> {
685
+ interface TooltipProps extends TooltipProps$1 {
702
686
  /**
703
687
  * Tooltip content
704
688
  */
@@ -715,6 +699,10 @@ interface TooltipProps extends Omit<TooltipProps$1, 'overlay'> {
715
699
  * Children element that triggers the tooltip
716
700
  */
717
701
  children: React.ReactElement;
702
+ /**
703
+ * Function to get the container element for the tooltip
704
+ */
705
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
718
706
  }
719
707
  /**
720
708
  * Tooltip Component
@@ -145,10 +145,8 @@ var Button = ({
145
145
  iconBefore,
146
146
  iconAfter,
147
147
  iconBordered = false,
148
- onClick,
149
148
  children,
150
- className,
151
- style
149
+ ...rest
152
150
  }) => {
153
151
  const isIconOnly = variant === "icon" || !children && !!(iconBefore || iconAfter);
154
152
  const iconOnlyContent = iconBefore || iconAfter;
@@ -162,9 +160,7 @@ var Button = ({
162
160
  $isIconOnly: isIconOnly,
163
161
  $iconBordered: iconBordered,
164
162
  disabled: disabled || loading,
165
- onClick,
166
- className,
167
- style
163
+ ...rest
168
164
  },
169
165
  loading ? /* @__PURE__ */ React11__default.default.createElement(React11__default.default.Fragment, null, "Loading...") : isIconOnly ? iconOnlyContent : /* @__PURE__ */ React11__default.default.createElement(React11__default.default.Fragment, null, iconBefore && /* @__PURE__ */ React11__default.default.createElement(IconWrapper, { $size: size, $position: "before" }, iconBefore), children, iconAfter && /* @__PURE__ */ React11__default.default.createElement(IconWrapper, { $size: size, $position: "after" }, iconAfter))
170
166
  );
@@ -1996,15 +1992,39 @@ var Tabs = ({
1996
1992
  ))));
1997
1993
  };
1998
1994
  Tabs.displayName = "Tab";
1995
+ var Tooltip = ({
1996
+ content,
1997
+ variant = "black",
1998
+ size = "small",
1999
+ children,
2000
+ placement = "top",
2001
+ trigger = ["hover"],
2002
+ overlay,
2003
+ overlayClassName,
2004
+ getPopupContainer,
2005
+ ...rest
2006
+ }) => {
2007
+ const overlayContent = React11__default.default.useMemo(() => /* @__PURE__ */ React11__default.default.createElement("div", null, content), [content]);
2008
+ const variantClass = `tooltip-variant-${variant}`;
2009
+ const sizeClass = variant === "white" ? `tooltip-size-${size}` : "";
2010
+ const combinedClassName = [variantClass, sizeClass, overlayClassName].filter(Boolean).join(" ");
2011
+ const tooltipProps = {
2012
+ overlay: overlay ?? overlayContent,
2013
+ placement,
2014
+ trigger,
2015
+ destroyTooltipOnHide: false,
2016
+ overlayClassName: combinedClassName,
2017
+ ...getPopupContainer && { getPopupContainer },
2018
+ ...rest
2019
+ };
2020
+ return /* @__PURE__ */ React11__default.default.createElement(RcTooltip__default.default, { ...tooltipProps }, children);
2021
+ };
2022
+ Tooltip.displayName = "Tooltip";
2023
+ var paddingDistance = "5px";
2024
+ var positionDistance = "0";
1999
2025
  var TooltipGlobalStyles = styled3.createGlobalStyle`
2000
2026
  .rc-tooltip {
2001
- position: absolute;
2002
- z-index: 1070;
2003
- display: block;
2004
- visibility: visible;
2005
- font-size: 12px;
2006
- line-height: 1.5;
2007
- opacity: 0;
2027
+ opacity: 1;
2008
2028
  }
2009
2029
 
2010
2030
  .rc-tooltip-hidden {
@@ -2014,65 +2034,30 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2014
2034
  .rc-tooltip-placement-top,
2015
2035
  .rc-tooltip-placement-topLeft,
2016
2036
  .rc-tooltip-placement-topRight {
2017
- padding-bottom: 8px;
2037
+ padding-bottom: ${paddingDistance};
2018
2038
  }
2019
2039
 
2020
2040
  .rc-tooltip-placement-right,
2021
2041
  .rc-tooltip-placement-rightTop,
2022
2042
  .rc-tooltip-placement-rightBottom {
2023
- padding-left: 8px;
2043
+ padding-left: ${paddingDistance};
2024
2044
  }
2025
2045
 
2026
2046
  .rc-tooltip-placement-bottom,
2027
2047
  .rc-tooltip-placement-bottomLeft,
2028
2048
  .rc-tooltip-placement-bottomRight {
2029
- padding-top: 8px;
2049
+ padding-top: ${paddingDistance};
2030
2050
  }
2031
2051
 
2032
2052
  .rc-tooltip-placement-left,
2033
2053
  .rc-tooltip-placement-leftTop,
2034
2054
  .rc-tooltip-placement-leftBottom {
2035
- padding-right: 8px;
2055
+ padding-right: ${paddingDistance};
2036
2056
  }
2037
2057
 
2038
2058
  .rc-tooltip-inner {
2039
- /* istanbul ignore next - styled-components CSS generation */
2040
- ${({ $variant, $size, theme }) => {
2041
- if ($variant === "black") {
2042
- const config = theme.components.tooltip.black;
2043
- return `
2044
- background: ${config.background};
2045
- border: 1px solid ${config.borderColor};
2046
- color: ${config.color};
2047
- border-radius: ${config.borderRadius};
2048
- padding: ${config.padding};
2049
- box-shadow: ${config.boxShadow};
2050
- font-size: ${config.fontSize};
2051
- line-height: ${config.lineHeight};
2052
- font-weight: ${config.fontWeight};
2053
- max-width: ${config.maxWidth};
2054
- text-align: left;
2055
- text-decoration: none;
2056
- word-wrap: break-word;
2057
- `;
2058
- } else {
2059
- const sizeConfig = theme.components.tooltip.white[$size || "small"];
2060
- return `
2061
- background: ${sizeConfig.background};
2062
- border: 1px solid ${sizeConfig.borderColor};
2063
- color: ${sizeConfig.color};
2064
- border-radius: ${sizeConfig.borderRadius};
2065
- padding: ${sizeConfig.padding};
2066
- box-shadow: ${sizeConfig.boxShadow};
2067
- font-size: ${sizeConfig.fontSize};
2068
- line-height: ${sizeConfig.lineHeight};
2069
- font-weight: ${sizeConfig.fontWeight};
2070
- text-align: left;
2071
- text-decoration: none;
2072
- word-wrap: break-word;
2073
- `;
2074
- }
2075
- }}
2059
+ word-wrap: break-word;
2060
+ min-height: unset;
2076
2061
  }
2077
2062
 
2078
2063
  .rc-tooltip-arrow {
@@ -2083,48 +2068,6 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2083
2068
  border-style: solid;
2084
2069
  }
2085
2070
 
2086
- /* istanbul ignore next - styled-components CSS generation */
2087
- ${({ $variant, theme }) => {
2088
- const bgColor = $variant === "black" ? theme.components?.tooltip?.black?.background : theme.components?.tooltip?.white?.small?.background;
2089
- return `
2090
- .rc-tooltip-placement-top .rc-tooltip-arrow,
2091
- .rc-tooltip-placement-topLeft .rc-tooltip-arrow,
2092
- .rc-tooltip-placement-topRight .rc-tooltip-arrow {
2093
- bottom: 3px;
2094
- margin-left: -5px;
2095
- border-width: 5px 5px 0;
2096
- border-top-color: ${bgColor};
2097
- }
2098
-
2099
- .rc-tooltip-placement-right .rc-tooltip-arrow,
2100
- .rc-tooltip-placement-rightTop .rc-tooltip-arrow,
2101
- .rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
2102
- left: 3px;
2103
- margin-top: -5px;
2104
- border-width: 5px 5px 5px 0;
2105
- border-right-color: ${bgColor};
2106
- }
2107
-
2108
- .rc-tooltip-placement-left .rc-tooltip-arrow,
2109
- .rc-tooltip-placement-leftTop .rc-tooltip-arrow,
2110
- .rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
2111
- right: 3px;
2112
- margin-top: -5px;
2113
- border-width: 5px 0 5px 5px;
2114
- border-left-color: ${bgColor};
2115
- }
2116
-
2117
- .rc-tooltip-placement-bottom .rc-tooltip-arrow,
2118
- .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
2119
- .rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
2120
- top: 3px;
2121
- margin-left: -5px;
2122
- border-width: 0 5px 5px;
2123
- border-bottom-color: ${bgColor};
2124
- }
2125
- `;
2126
- }}
2127
-
2128
2071
  .rc-tooltip.rc-tooltip-zoom-enter,
2129
2072
  .rc-tooltip.rc-tooltip-zoom-leave {
2130
2073
  display: block;
@@ -2182,20 +2125,161 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2182
2125
  transform: scale(0, 0);
2183
2126
  }
2184
2127
  }
2128
+
2129
+ /* Black variant */
2130
+ .tooltip-variant-black .rc-tooltip-inner {
2131
+ background: ${({ theme }) => theme.components.tooltip.black.background};
2132
+ border: 1px solid ${({ theme }) => theme.components.tooltip.black.borderColor};
2133
+ color: ${({ theme }) => theme.components.tooltip.black.color};
2134
+ border-radius: ${({ theme }) => theme.components.tooltip.black.borderRadius};
2135
+ padding: ${({ theme }) => theme.components.tooltip.black.padding};
2136
+ box-shadow: ${({ theme }) => theme.components.tooltip.black.boxShadow};
2137
+ font-size: ${({ theme }) => theme.components.tooltip.black.fontSize};
2138
+ line-height: ${({ theme }) => theme.components.tooltip.black.lineHeight};
2139
+ font-weight: ${({ theme }) => theme.components.tooltip.black.fontWeight};
2140
+ max-width: ${({ theme }) => theme.components.tooltip.black.maxWidth};
2141
+ text-align: left;
2142
+ text-decoration: none;
2143
+ }
2144
+
2145
+ .tooltip-variant-black.rc-tooltip-placement-top .rc-tooltip-arrow,
2146
+ .tooltip-variant-black.rc-tooltip-placement-topLeft .rc-tooltip-arrow,
2147
+ .tooltip-variant-black.rc-tooltip-placement-topRight .rc-tooltip-arrow {
2148
+ bottom: ${positionDistance};
2149
+ margin-left: -5px;
2150
+ border-width: 5px 5px 0;
2151
+ border-top-color: ${({ theme }) => theme.components.tooltip.black.background};
2152
+ }
2153
+
2154
+ .tooltip-variant-black.rc-tooltip-placement-right .rc-tooltip-arrow,
2155
+ .tooltip-variant-black.rc-tooltip-placement-rightTop .rc-tooltip-arrow,
2156
+ .tooltip-variant-black.rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
2157
+ left: ${positionDistance};
2158
+ margin-top: -5px;
2159
+ border-width: 5px 5px 5px 0;
2160
+ border-right-color: ${({ theme }) => theme.components.tooltip.black.background};
2161
+ }
2162
+
2163
+ .tooltip-variant-black.rc-tooltip-placement-left .rc-tooltip-arrow,
2164
+ .tooltip-variant-black.rc-tooltip-placement-leftTop .rc-tooltip-arrow,
2165
+ .tooltip-variant-black.rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
2166
+ right: ${positionDistance};
2167
+ margin-top: -5px;
2168
+ border-width: 5px 0 5px 5px;
2169
+ border-left-color: ${({ theme }) => theme.components.tooltip.black.background};
2170
+ }
2171
+
2172
+ .tooltip-variant-black.rc-tooltip-placement-bottom .rc-tooltip-arrow,
2173
+ .tooltip-variant-black.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
2174
+ .tooltip-variant-black.rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
2175
+ top: ${positionDistance};
2176
+ margin-left: -5px;
2177
+ border-width: 0 5px 5px;
2178
+ border-bottom-color: ${({ theme }) => theme.components.tooltip.black.background};
2179
+ }
2180
+
2181
+ /* White variant - small size */
2182
+ .tooltip-variant-white.tooltip-size-small .rc-tooltip-inner {
2183
+ background: ${({ theme }) => theme.components.tooltip.white.small.background};
2184
+ border: 1px solid ${({ theme }) => theme.components.tooltip.white.small.borderColor};
2185
+ color: ${({ theme }) => theme.components.tooltip.white.small.color};
2186
+ border-radius: ${({ theme }) => theme.components.tooltip.white.small.borderRadius};
2187
+ padding: ${({ theme }) => theme.components.tooltip.white.small.padding};
2188
+ box-shadow: ${({ theme }) => theme.components.tooltip.white.small.boxShadow};
2189
+ font-size: ${({ theme }) => theme.components.tooltip.white.small.fontSize};
2190
+ line-height: ${({ theme }) => theme.components.tooltip.white.small.lineHeight};
2191
+ font-weight: ${({ theme }) => theme.components.tooltip.white.small.fontWeight};
2192
+ text-align: left;
2193
+ text-decoration: none;
2194
+ }
2195
+
2196
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-top .rc-tooltip-arrow,
2197
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-topLeft .rc-tooltip-arrow,
2198
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-topRight .rc-tooltip-arrow {
2199
+ bottom: ${positionDistance};
2200
+ margin-left: -5px;
2201
+ border-width: 5px 5px 0;
2202
+ border-top-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2203
+ }
2204
+
2205
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-right .rc-tooltip-arrow,
2206
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-rightTop .rc-tooltip-arrow,
2207
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
2208
+ left: ${positionDistance};
2209
+ margin-top: -5px;
2210
+ border-width: 5px 5px 5px 0;
2211
+ border-right-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2212
+ }
2213
+
2214
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-left .rc-tooltip-arrow,
2215
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-leftTop .rc-tooltip-arrow,
2216
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
2217
+ right: ${positionDistance};
2218
+ margin-top: -5px;
2219
+ border-width: 5px 0 5px 5px;
2220
+ border-left-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2221
+ }
2222
+
2223
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-bottom .rc-tooltip-arrow,
2224
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
2225
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
2226
+ top: ${positionDistance};
2227
+ margin-left: -5px;
2228
+ border-width: 0 5px 5px;
2229
+ border-bottom-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2230
+ }
2231
+
2232
+ /* White variant - large size */
2233
+ .tooltip-variant-white.tooltip-size-large .rc-tooltip-inner {
2234
+ background: ${({ theme }) => theme.components.tooltip.white.large.background};
2235
+ border: 1px solid ${({ theme }) => theme.components.tooltip.white.large.borderColor};
2236
+ color: ${({ theme }) => theme.components.tooltip.white.large.color};
2237
+ border-radius: ${({ theme }) => theme.components.tooltip.white.large.borderRadius};
2238
+ padding: ${({ theme }) => theme.components.tooltip.white.large.padding};
2239
+ box-shadow: ${({ theme }) => theme.components.tooltip.white.large.boxShadow};
2240
+ font-size: ${({ theme }) => theme.components.tooltip.white.large.fontSize};
2241
+ line-height: ${({ theme }) => theme.components.tooltip.white.large.lineHeight};
2242
+ font-weight: ${({ theme }) => theme.components.tooltip.white.large.fontWeight};
2243
+ text-align: left;
2244
+ text-decoration: none;
2245
+ }
2246
+
2247
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-top .rc-tooltip-arrow,
2248
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-topLeft .rc-tooltip-arrow,
2249
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-topRight .rc-tooltip-arrow {
2250
+ bottom: ${positionDistance};
2251
+ margin-left: -5px;
2252
+ border-width: 5px 5px 0;
2253
+ border-top-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2254
+ }
2255
+
2256
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-right .rc-tooltip-arrow,
2257
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-rightTop .rc-tooltip-arrow,
2258
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
2259
+ left: ${positionDistance};
2260
+ margin-top: -5px;
2261
+ border-width: 5px 5px 5px 0;
2262
+ border-right-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2263
+ }
2264
+
2265
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-left .rc-tooltip-arrow,
2266
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-leftTop .rc-tooltip-arrow,
2267
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
2268
+ right: ${positionDistance};
2269
+ margin-top: -5px;
2270
+ border-width: 5px 0 5px 5px;
2271
+ border-left-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2272
+ }
2273
+
2274
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-bottom .rc-tooltip-arrow,
2275
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
2276
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
2277
+ top: ${positionDistance};
2278
+ margin-left: -5px;
2279
+ border-width: 0 5px 5px;
2280
+ border-bottom-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2281
+ }
2185
2282
  `;
2186
- var Tooltip = ({
2187
- content,
2188
- variant = "black",
2189
- size = "small",
2190
- children,
2191
- placement = "top",
2192
- trigger = ["hover"],
2193
- ...rest
2194
- }) => {
2195
- const GlobalStyles = TooltipGlobalStyles;
2196
- return /* @__PURE__ */ React11__default.default.createElement(React11__default.default.Fragment, null, /* @__PURE__ */ React11__default.default.createElement(GlobalStyles, { $variant: variant, $size: size }), /* @__PURE__ */ React11__default.default.createElement(RcTooltip__default.default, { overlay: /* @__PURE__ */ React11__default.default.createElement("div", null, content), placement, trigger, ...rest }, children));
2197
- };
2198
- Tooltip.displayName = "Tooltip";
2199
2283
  var UIConfigContext = React11.createContext(null);
2200
2284
  var UIConfigProvider = ({
2201
2285
  config,
@@ -2211,7 +2295,8 @@ var UIConfigProvider = ({
2211
2295
  defaultDuration: toast.defaultDuration ?? 3e3
2212
2296
  };
2213
2297
  const Provider = styled3.ThemeProvider;
2214
- return /* @__PURE__ */ React11__default.default.createElement(UIConfigContext.Provider, { value: config }, /* @__PURE__ */ React11__default.default.createElement(Provider, { theme }, /* @__PURE__ */ React11__default.default.createElement(IconProvider, { icons }, /* @__PURE__ */ React11__default.default.createElement(
2298
+ const TooltipStyles = TooltipGlobalStyles;
2299
+ return /* @__PURE__ */ React11__default.default.createElement(UIConfigContext.Provider, { value: config }, /* @__PURE__ */ React11__default.default.createElement(Provider, { theme }, /* @__PURE__ */ React11__default.default.createElement(TooltipStyles, null), /* @__PURE__ */ React11__default.default.createElement(IconProvider, { icons }, /* @__PURE__ */ React11__default.default.createElement(
2215
2300
  ToastContainer2,
2216
2301
  {
2217
2302
  maxCount: toastConfig.maxCount,