@officesdk/design 0.1.3 → 0.1.5

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,17 +1,60 @@
1
1
  import React12, { forwardRef, useState, createContext, useRef, useCallback, useEffect, useContext } from 'react';
2
- import styled3, { createGlobalStyle, ThemeProvider } from 'styled-components';
2
+ import baseStyled, { createGlobalStyle } from 'styled-components';
3
3
  import RcTooltip from 'rc-tooltip';
4
4
  import 'rc-tooltip/assets/bootstrap.css';
5
5
 
6
6
  // src/Button/Button.tsx
7
- var IconWrapper = styled3.span`
7
+
8
+ // src/utils/context.ts
9
+ var globalTheme = {};
10
+ var registerGlobalTheme = (theme2) => {
11
+ Object.assign(globalTheme, { ...globalTheme, ...theme2 });
12
+ };
13
+ var getGlobalTheme = () => {
14
+ return globalTheme;
15
+ };
16
+ var registerGlobalContext = (context) => {
17
+ if (context.theme) {
18
+ registerGlobalTheme(context.theme);
19
+ }
20
+ };
21
+
22
+ // src/utils/styled.ts
23
+ var wrapWithTheme = (component) => {
24
+ if (component && typeof component === "object") {
25
+ component.defaultProps = {
26
+ ...component.defaultProps,
27
+ get theme() {
28
+ return getGlobalTheme();
29
+ }
30
+ };
31
+ }
32
+ return component;
33
+ };
34
+ var styledFunction = (tag) => {
35
+ return wrapWithTheme(baseStyled(tag));
36
+ };
37
+ var styledWithBase = Object.assign(styledFunction, baseStyled);
38
+ Object.keys(baseStyled).forEach((key) => {
39
+ const originalMethod = baseStyled[key];
40
+ if (typeof originalMethod === "function") {
41
+ styledWithBase[key] = (...args) => {
42
+ const component = originalMethod(...args);
43
+ return wrapWithTheme(component);
44
+ };
45
+ }
46
+ });
47
+ var styled = styledWithBase;
48
+
49
+ // src/Button/Button.tsx
50
+ var IconWrapper = styled.span`
8
51
  display: inline-flex;
9
52
  align-items: center;
10
53
  justify-content: center;
11
54
  flex-shrink: 0;
12
55
 
13
- ${({ $size, $position, theme }) => {
14
- const sizeConfig = theme.components.button[$size || "medium"];
56
+ ${({ $size, $position, theme: theme2 }) => {
57
+ const sizeConfig = theme2.components.button[$size || "medium"];
15
58
  const marginSide = $position === "before" ? "margin-right" : "margin-left";
16
59
  return `
17
60
  width: ${sizeConfig.iconSize.width};
@@ -26,7 +69,7 @@ var IconWrapper = styled3.span`
26
69
  `;
27
70
  }}
28
71
  `;
29
- var StyledButton = styled3.button`
72
+ var StyledButton = styled.button`
30
73
  display: inline-flex;
31
74
  align-items: center;
32
75
  justify-content: center;
@@ -36,8 +79,8 @@ var StyledButton = styled3.button`
36
79
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
37
80
 
38
81
  /* Size variants */
39
- ${({ $size, $isIconOnly, theme }) => {
40
- const sizeConfig = theme.components.button[$size || "medium"];
82
+ ${({ $size, $isIconOnly, theme: theme2 }) => {
83
+ const sizeConfig = theme2.components.button[$size || "medium"];
41
84
  if ($isIconOnly) {
42
85
  return `
43
86
  padding: 0;
@@ -56,10 +99,10 @@ var StyledButton = styled3.button`
56
99
  }}
57
100
 
58
101
  /* Variant and color type styles */
59
- ${({ $variant, $colorType, $isIconOnly, $iconBordered, theme }) => {
102
+ ${({ $variant, $colorType, $isIconOnly, $iconBordered, theme: theme2 }) => {
60
103
  if ($variant === "icon" || $isIconOnly) {
61
104
  const baseVariant = $iconBordered ? "outlined" : "text";
62
- const styles2 = theme.components.button[baseVariant]["default"];
105
+ const styles2 = theme2.components.button[baseVariant]["default"];
63
106
  return `
64
107
  background: ${styles2.background};
65
108
  color: ${styles2.color};
@@ -92,10 +135,12 @@ var StyledButton = styled3.button`
92
135
  const variant = $variant || "solid";
93
136
  const colorType = $colorType || "default";
94
137
  if (colorType === "status" && variant !== "text") {
95
- console.warn(`colorType 'status' is only available for 'text' variant. Falling back to 'default'.`);
138
+ console.warn(
139
+ `colorType 'status' is only available for 'text' variant. Falling back to 'default'.`
140
+ );
96
141
  }
97
142
  const effectiveColorType = colorType === "status" && variant !== "text" ? "default" : colorType;
98
- const styles = theme.components.button[variant][effectiveColorType];
143
+ const styles = theme2.components.button[variant][effectiveColorType];
99
144
  return `
100
145
  background: ${styles.background};
101
146
  color: ${styles.color};
@@ -158,7 +203,7 @@ var Button = ({
158
203
  );
159
204
  };
160
205
  Button.displayName = "Button";
161
- var SliderContainer = styled3.div`
206
+ var SliderContainer = styled.div`
162
207
  position: relative;
163
208
  display: flex;
164
209
  align-items: center;
@@ -167,17 +212,17 @@ var SliderContainer = styled3.div`
167
212
  cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
168
213
  user-select: none;
169
214
  `;
170
- var SliderTrack = styled3.div`
215
+ var SliderTrack = styled.div`
171
216
  position: absolute;
172
217
  left: 0;
173
218
  right: 0;
174
219
  height: 2px;
175
- background: ${({ theme }) => theme.colors.palettes.transparency["20"]};
220
+ background: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["20"]};
176
221
  border-radius: 1000px;
177
222
  top: 50%;
178
223
  transform: translateY(-50%);
179
224
  `;
180
- var SliderFill = styled3.div`
225
+ var SliderFill = styled.div`
181
226
  position: absolute;
182
227
  left: 0;
183
228
  height: 2px;
@@ -185,14 +230,14 @@ var SliderFill = styled3.div`
185
230
  top: 50%;
186
231
  transform: translateY(-50%);
187
232
  width: ${({ $percentage }) => $percentage}%;
188
- background: ${({ $disabled, theme }) => $disabled ? theme.colors.palettes.transparency["10"] : theme.colors.palettes.gray["100"]};
233
+ background: ${({ $disabled, theme: theme2 }) => $disabled ? theme2.colors.palettes.transparency["10"] : theme2.colors.palettes.gray["100"]};
189
234
  `;
190
- var SliderThumb = styled3.div`
235
+ var SliderThumb = styled.div`
191
236
  position: absolute;
192
237
  width: 10px;
193
238
  height: 10px;
194
239
  border-radius: 50%;
195
- background: ${({ $disabled, theme }) => $disabled ? theme.colors.palettes.transparency["30"] : theme.colors.palettes.blue["5"]};
240
+ background: ${({ $disabled, theme: theme2 }) => $disabled ? theme2.colors.palettes.transparency["30"] : theme2.colors.palettes.blue["5"]};
196
241
  left: ${({ $percentage }) => $percentage}%;
197
242
  top: 50%;
198
243
  transform: translate(-50%, -50%);
@@ -335,7 +380,7 @@ var Slider = ({
335
380
  );
336
381
  };
337
382
  Slider.displayName = "Slider";
338
- var NumberInputContainer = styled3.div`
383
+ var NumberInputContainer = styled.div`
339
384
  display: inline-flex;
340
385
  align-items: center;
341
386
  background: white;
@@ -351,35 +396,35 @@ var NumberInputContainer = styled3.div`
351
396
  width: 80px;
352
397
  `}
353
398
 
354
- ${({ $disabled, $alert, $isFocused, theme }) => {
399
+ ${({ $disabled, $alert, $isFocused, theme: theme2 }) => {
355
400
  if ($disabled) {
356
401
  return `
357
- border-color: ${theme.colors.palettes.transparency["10"]};
402
+ border-color: ${theme2.colors.palettes.transparency["10"]};
358
403
  cursor: not-allowed;
359
404
  `;
360
405
  }
361
406
  if ($alert) {
362
407
  return `
363
- border-color: ${theme.colors.palettes.red["6"]};
408
+ border-color: ${theme2.colors.palettes.red["6"]};
364
409
  `;
365
410
  }
366
411
  if ($isFocused) {
367
412
  return `
368
- border-color: ${theme.colors.palettes.transparency["30"]};
413
+ border-color: ${theme2.colors.palettes.transparency["30"]};
369
414
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
370
415
  `;
371
416
  }
372
417
  return `
373
- border-color: ${theme.colors.palettes.transparency["10"]};
418
+ border-color: ${theme2.colors.palettes.transparency["10"]};
374
419
 
375
420
  &:hover {
376
- border-color: ${theme.colors.palettes.transparency["20"]};
421
+ border-color: ${theme2.colors.palettes.transparency["20"]};
377
422
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
378
423
  }
379
424
  `;
380
425
  }}
381
426
  `;
382
- var InputWrapper = styled3.div`
427
+ var InputWrapper = styled.div`
383
428
  flex: 1;
384
429
  display: flex;
385
430
  align-items: center;
@@ -387,7 +432,7 @@ var InputWrapper = styled3.div`
387
432
  min-width: 0;
388
433
  gap: 4px;
389
434
  `;
390
- var UnitText = styled3.span`
435
+ var UnitText = styled.span`
391
436
  flex-shrink: 0;
392
437
  font-family: 'PingFang SC', sans-serif;
393
438
  font-weight: 400;
@@ -399,13 +444,13 @@ var UnitText = styled3.span`
399
444
  font-size: 13px;
400
445
  `}
401
446
 
402
- ${({ $disabled, theme }) => $disabled ? `
403
- color: ${theme.colors.palettes.transparency["30"]};
447
+ ${({ $disabled, theme: theme2 }) => $disabled ? `
448
+ color: ${theme2.colors.palettes.transparency["30"]};
404
449
  ` : `
405
- color: ${theme.colors.palettes.gray["120"]};
450
+ color: ${theme2.colors.palettes.gray["120"]};
406
451
  `}
407
452
  `;
408
- var StyledInput = styled3.input`
453
+ var StyledInput = styled.input`
409
454
  width: 100%;
410
455
  border: none;
411
456
  outline: none;
@@ -422,15 +467,15 @@ var StyledInput = styled3.input`
422
467
  font-size: 13px;
423
468
  `}
424
469
 
425
- ${({ $disabled, theme }) => $disabled ? `
426
- color: ${theme.colors.palettes.transparency["30"]};
470
+ ${({ $disabled, theme: theme2 }) => $disabled ? `
471
+ color: ${theme2.colors.palettes.transparency["30"]};
427
472
  cursor: not-allowed;
428
473
  ` : `
429
- color: ${theme.colors.palettes.gray["120"]};
474
+ color: ${theme2.colors.palettes.gray["120"]};
430
475
  `}
431
476
 
432
477
  &::placeholder {
433
- color: ${({ theme }) => theme.colors.palettes.transparency["30"]};
478
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["30"]};
434
479
  }
435
480
 
436
481
  /* Remove number input arrows */
@@ -445,24 +490,24 @@ var StyledInput = styled3.input`
445
490
  -moz-appearance: textfield;
446
491
  }
447
492
  `;
448
- var ButtonGroup = styled3.div`
493
+ var ButtonGroup = styled.div`
449
494
  display: flex;
450
495
  flex-direction: column;
451
496
  height: 100%;
452
497
  border-left: 1px solid;
453
498
  flex-shrink: 0;
454
499
 
455
- ${({ $disabled, $alert, theme }) => {
500
+ ${({ $disabled, $alert, theme: theme2 }) => {
456
501
  if ($disabled) {
457
- return `border-color: ${theme.colors.palettes.transparency["10"]};`;
502
+ return `border-color: ${theme2.colors.palettes.transparency["10"]};`;
458
503
  }
459
504
  if ($alert) {
460
- return `border-color: ${theme.colors.palettes.red["6"]};`;
505
+ return `border-color: ${theme2.colors.palettes.red["6"]};`;
461
506
  }
462
- return `border-color: ${theme.colors.palettes.transparency["10"]};`;
507
+ return `border-color: ${theme2.colors.palettes.transparency["10"]};`;
463
508
  }}
464
509
  `;
465
- var StepButton = styled3.button`
510
+ var StepButton = styled.button`
466
511
  flex: 1 1 50%;
467
512
  display: flex;
468
513
  align-items: center;
@@ -475,16 +520,16 @@ var StepButton = styled3.button`
475
520
  min-height: 0;
476
521
  overflow: hidden;
477
522
 
478
- ${({ $position, $alert, $disabled, theme }) => {
523
+ ${({ $position, $alert, $disabled, theme: theme2 }) => {
479
524
  if ($position === "up") {
480
525
  return `
481
- border-bottom: 1px solid ${$disabled ? theme.colors.palettes.transparency["10"] : $alert ? theme.colors.palettes.red["6"] : theme.colors.palettes.transparency["10"]};
526
+ border-bottom: 1px solid ${$disabled ? theme2.colors.palettes.transparency["10"] : $alert ? theme2.colors.palettes.red["6"] : theme2.colors.palettes.transparency["10"]};
482
527
  `;
483
528
  }
484
529
  return "";
485
530
  }}
486
531
 
487
- ${({ $disabled, theme }) => {
532
+ ${({ $disabled, theme: theme2 }) => {
488
533
  if ($disabled) {
489
534
  return `
490
535
  cursor: not-allowed;
@@ -493,11 +538,11 @@ var StepButton = styled3.button`
493
538
  }
494
539
  return `
495
540
  &:hover {
496
- background-color: ${theme.colors.palettes.transparency["5"]};
541
+ background-color: ${theme2.colors.palettes.transparency["5"]};
497
542
  }
498
543
 
499
544
  &:active {
500
- background-color: ${theme.colors.palettes.transparency["10"]};
545
+ background-color: ${theme2.colors.palettes.transparency["10"]};
501
546
  }
502
547
  `;
503
548
  }}
@@ -505,7 +550,7 @@ var StepButton = styled3.button`
505
550
  svg {
506
551
  width: 14px;
507
552
  height: 14px;
508
- fill: ${({ $disabled, theme }) => $disabled ? theme.colors.palettes.transparency["30"] : theme.colors.palettes.gray["120"]};
553
+ fill: ${({ $disabled, theme: theme2 }) => $disabled ? theme2.colors.palettes.transparency["30"] : theme2.colors.palettes.gray["120"]};
509
554
  }
510
555
  `;
511
556
  var UpArrow = () => /* @__PURE__ */ React12.createElement("svg", { viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12.createElement("path", { d: "M7 4.5L10.5 8.5H3.5L7 4.5Z", fill: "currentColor" }));
@@ -668,13 +713,13 @@ var NumberInput = ({
668
713
  NumberInput.displayName = "NumberInput";
669
714
 
670
715
  // src/Button/SpinButton.tsx
671
- var SpinButtonWrapper = styled3.div`
716
+ var SpinButtonWrapper = styled.div`
672
717
  display: inline-flex;
673
718
  align-items: center;
674
719
  gap: ${({ $showSlider }) => $showSlider ? "0" : "0"};
675
720
  width: ${({ $showSlider }) => $showSlider ? "100%" : "auto"};
676
721
  `;
677
- var SliderWrapper = styled3.div`
722
+ var SliderWrapper = styled.div`
678
723
  flex: 1;
679
724
  display: flex;
680
725
  align-items: center;
@@ -739,36 +784,36 @@ var SpinButton = ({
739
784
  ));
740
785
  };
741
786
  SpinButton.displayName = "SpinButton";
742
- var SwitchContainer = styled3.label`
787
+ var SwitchContainer = styled.label`
743
788
  position: relative;
744
789
  display: inline-block;
745
790
  cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
746
791
 
747
- ${({ $size, theme }) => {
748
- const sizeConfig = theme.components.switch[$size];
792
+ ${({ $size, theme: theme2 }) => {
793
+ const sizeConfig = theme2.components.switch[$size];
749
794
  return `
750
795
  width: ${sizeConfig.container.width};
751
796
  height: ${sizeConfig.container.height};
752
797
  `;
753
798
  }}
754
799
  `;
755
- var HiddenInput = styled3.input`
800
+ var HiddenInput = styled.input`
756
801
  position: absolute;
757
802
  opacity: 0;
758
803
  width: 0;
759
804
  height: 0;
760
805
  pointer-events: none;
761
806
  `;
762
- var Track = styled3.div`
807
+ var Track = styled.div`
763
808
  position: absolute;
764
809
  inset: 0;
765
810
  top: 50%;
766
811
  left: 50%;
767
812
  transform: translate(-50%, -50%);
768
- transition: ${({ theme }) => theme.components.switch.transition || "all 0.2s ease"};
813
+ transition: ${({ theme: theme2 }) => theme2.components.switch.transition || "all 0.2s ease"};
769
814
 
770
- ${({ $size, theme }) => {
771
- const sizeConfig = theme.components.switch[$size];
815
+ ${({ $size, theme: theme2 }) => {
816
+ const sizeConfig = theme2.components.switch[$size];
772
817
  return `
773
818
  border-radius: ${sizeConfig.track.borderRadius};
774
819
  width: ${sizeConfig.track.width};
@@ -776,8 +821,8 @@ var Track = styled3.div`
776
821
  `;
777
822
  }}
778
823
 
779
- ${({ $checked, $disabled, theme }) => {
780
- const stateConfig = $checked ? theme.components.switch.on : theme.components.switch.off;
824
+ ${({ $checked, $disabled, theme: theme2 }) => {
825
+ const stateConfig = $checked ? theme2.components.switch.on : theme2.components.switch.off;
781
826
  if ($disabled) {
782
827
  return `
783
828
  background: ${stateConfig.track.backgroundDisabled};
@@ -790,9 +835,9 @@ var Track = styled3.div`
790
835
  `;
791
836
  }}
792
837
 
793
- ${({ $disabled, $checked, theme }) => {
838
+ ${({ $disabled, $checked, theme: theme2 }) => {
794
839
  if ($disabled) return "";
795
- const stateConfig = $checked ? theme.components.switch.on : theme.components.switch.off;
840
+ const stateConfig = $checked ? theme2.components.switch.on : theme2.components.switch.off;
796
841
  return `
797
842
  :hover {
798
843
  background: ${stateConfig.track.backgroundHover};
@@ -801,16 +846,16 @@ var Track = styled3.div`
801
846
  `;
802
847
  }}
803
848
  `;
804
- var Thumb = styled3.div`
849
+ var Thumb = styled.div`
805
850
  position: absolute;
806
851
  top: 50%;
807
852
  transform: translateY(-50%);
808
853
  border-style: solid;
809
854
  box-sizing: border-box;
810
- transition: ${({ theme }) => theme.components.switch.transition || "all 0.2s ease"};
855
+ transition: ${({ theme: theme2 }) => theme2.components.switch.transition || "all 0.2s ease"};
811
856
 
812
- ${({ $size, $checked, theme }) => {
813
- const sizeConfig = theme.components.switch[$size];
857
+ ${({ $size, $checked, theme: theme2 }) => {
858
+ const sizeConfig = theme2.components.switch[$size];
814
859
  const thumbSize = sizeConfig.thumb.size;
815
860
  const thumbOffset = sizeConfig.thumb.offset;
816
861
  const thumbBorderRadius = sizeConfig.thumb.borderRadius;
@@ -824,8 +869,8 @@ var Thumb = styled3.div`
824
869
  `;
825
870
  }}
826
871
 
827
- ${({ $checked, $disabled, theme }) => {
828
- const stateConfig = $checked ? theme.components.switch.on : theme.components.switch.off;
872
+ ${({ $checked, $disabled, theme: theme2 }) => {
873
+ const stateConfig = $checked ? theme2.components.switch.on : theme2.components.switch.off;
829
874
  if ($disabled) {
830
875
  return `
831
876
  background: ${stateConfig.thumb.backgroundDisabled};
@@ -840,9 +885,9 @@ var Thumb = styled3.div`
840
885
  `;
841
886
  }}
842
887
 
843
- ${({ $disabled, $checked, theme }) => {
888
+ ${({ $disabled, $checked, theme: theme2 }) => {
844
889
  if ($disabled) return "";
845
- const stateConfig = $checked ? theme.components.switch.on : theme.components.switch.off;
890
+ const stateConfig = $checked ? theme2.components.switch.on : theme2.components.switch.off;
846
891
  return `
847
892
  :hover & {
848
893
  background: ${stateConfig.thumb.backgroundHover};
@@ -924,58 +969,58 @@ var Switch = ({
924
969
  );
925
970
  };
926
971
  Switch.displayName = "Switch";
927
- var RadioContainer = styled3.label`
972
+ var RadioContainer = styled.label`
928
973
  position: relative;
929
974
  display: inline-block;
930
975
  cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
931
976
 
932
- ${({ theme }) => {
933
- const sizeConfig = theme.components.radio.small;
977
+ ${({ theme: theme2 }) => {
978
+ const sizeConfig = theme2.components.radio.small;
934
979
  return `
935
980
  width: ${sizeConfig.size};
936
981
  height: ${sizeConfig.size};
937
982
  `;
938
983
  }}
939
984
  `;
940
- var HiddenInput2 = styled3.input`
985
+ var HiddenInput2 = styled.input`
941
986
  position: absolute;
942
987
  opacity: 0;
943
988
  width: 0;
944
989
  height: 0;
945
990
  pointer-events: none;
946
991
  `;
947
- var RadioOuter = styled3.div`
992
+ var RadioOuter = styled.div`
948
993
  position: absolute;
949
994
  inset: 0;
950
995
  border-radius: 50%;
951
996
  border: 1px solid;
952
997
  transition: all 0.2s ease;
953
998
 
954
- ${({ $checked, $disabled, theme }) => {
999
+ ${({ $checked, $disabled, theme: theme2 }) => {
955
1000
  if ($disabled) {
956
- const stateConfig = $checked ? theme.components.radio.checked : theme.components.radio.unchecked;
1001
+ const stateConfig = $checked ? theme2.components.radio.checked : theme2.components.radio.unchecked;
957
1002
  return `
958
1003
  background: ${stateConfig.backgroundDisabled};
959
1004
  border-color: ${stateConfig.borderColorDisabled};
960
1005
  `;
961
1006
  }
962
1007
  if ($checked) {
963
- const checkedConfig = theme.components.radio.checked;
1008
+ const checkedConfig = theme2.components.radio.checked;
964
1009
  return `
965
1010
  background: ${checkedConfig.background};
966
1011
  border-color: ${checkedConfig.borderColor};
967
1012
  `;
968
1013
  }
969
- const uncheckedConfig = theme.components.radio.unchecked;
1014
+ const uncheckedConfig = theme2.components.radio.unchecked;
970
1015
  return `
971
1016
  background: ${uncheckedConfig.background};
972
1017
  border-color: ${uncheckedConfig.borderColor};
973
1018
  `;
974
1019
  }}
975
1020
 
976
- ${({ $disabled, $checked, theme }) => {
1021
+ ${({ $disabled, $checked, theme: theme2 }) => {
977
1022
  if ($disabled) return "";
978
- const stateConfig = $checked ? theme.components.radio.checked : theme.components.radio.unchecked;
1023
+ const stateConfig = $checked ? theme2.components.radio.checked : theme2.components.radio.unchecked;
979
1024
  return `
980
1025
  ${RadioContainer}:hover & {
981
1026
  background: ${stateConfig.backgroundHover};
@@ -988,7 +1033,7 @@ var RadioOuter = styled3.div`
988
1033
  `;
989
1034
  }}
990
1035
  `;
991
- var RadioInner = styled3.div`
1036
+ var RadioInner = styled.div`
992
1037
  position: absolute;
993
1038
  left: 50%;
994
1039
  top: 50%;
@@ -998,8 +1043,8 @@ var RadioInner = styled3.div`
998
1043
  opacity: ${({ $checked }) => $checked ? 1 : 0};
999
1044
  transition: opacity 0.2s ease;
1000
1045
 
1001
- ${({ theme }) => {
1002
- const dotSize = theme.components.radio.small.dotSize;
1046
+ ${({ theme: theme2 }) => {
1047
+ const dotSize = theme2.components.radio.small.dotSize;
1003
1048
  return `
1004
1049
  width: ${dotSize};
1005
1050
  height: ${dotSize};
@@ -1078,71 +1123,71 @@ var Radio = ({
1078
1123
  );
1079
1124
  };
1080
1125
  Radio.displayName = "Radio";
1081
- var CheckboxContainer = styled3.label`
1126
+ var CheckboxContainer = styled.label`
1082
1127
  position: relative;
1083
1128
  display: inline-block;
1084
1129
  cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
1085
1130
 
1086
- ${({ theme }) => {
1087
- const sizeConfig = theme.components.checkbox.small;
1131
+ ${({ theme: theme2 }) => {
1132
+ const sizeConfig = theme2.components.checkbox.small;
1088
1133
  return `
1089
1134
  width: ${sizeConfig.size};
1090
1135
  height: ${sizeConfig.size};
1091
1136
  `;
1092
1137
  }}
1093
1138
  `;
1094
- var HiddenInput3 = styled3.input`
1139
+ var HiddenInput3 = styled.input`
1095
1140
  position: absolute;
1096
1141
  opacity: 0;
1097
1142
  width: 0;
1098
1143
  height: 0;
1099
1144
  pointer-events: none;
1100
1145
  `;
1101
- var CheckboxBox = styled3.div`
1146
+ var CheckboxBox = styled.div`
1102
1147
  position: absolute;
1103
1148
  inset: 1px;
1104
1149
  border: 1px solid;
1105
1150
  transition: all 0.2s ease;
1106
1151
 
1107
- ${({ theme }) => {
1108
- const sizeConfig = theme.components.checkbox.small;
1152
+ ${({ theme: theme2 }) => {
1153
+ const sizeConfig = theme2.components.checkbox.small;
1109
1154
  return `
1110
1155
  border-radius: ${sizeConfig.borderRadius};
1111
1156
  `;
1112
1157
  }}
1113
1158
 
1114
- ${({ $checked, $indeterminate, $disabled, theme }) => {
1159
+ ${({ $checked, $indeterminate, $disabled, theme: theme2 }) => {
1115
1160
  if ($disabled) {
1116
- const stateConfig = $checked || $indeterminate ? theme.components.checkbox.checked : theme.components.checkbox.unchecked;
1161
+ const stateConfig = $checked || $indeterminate ? theme2.components.checkbox.checked : theme2.components.checkbox.unchecked;
1117
1162
  return `
1118
1163
  background: ${stateConfig.backgroundDisabled};
1119
1164
  border-color: ${stateConfig.borderColorDisabled};
1120
1165
  `;
1121
1166
  }
1122
1167
  if ($checked) {
1123
- const checkedConfig = theme.components.checkbox.checked;
1168
+ const checkedConfig = theme2.components.checkbox.checked;
1124
1169
  return `
1125
1170
  background: ${checkedConfig.background};
1126
1171
  border-color: ${checkedConfig.borderColor};
1127
1172
  `;
1128
1173
  }
1129
1174
  if ($indeterminate) {
1130
- const indeterminateConfig = theme.components.checkbox.indeterminate;
1175
+ const indeterminateConfig = theme2.components.checkbox.indeterminate;
1131
1176
  return `
1132
1177
  background: ${indeterminateConfig.background};
1133
1178
  border-color: ${indeterminateConfig.borderColor};
1134
1179
  `;
1135
1180
  }
1136
- const uncheckedConfig = theme.components.checkbox.unchecked;
1181
+ const uncheckedConfig = theme2.components.checkbox.unchecked;
1137
1182
  return `
1138
1183
  background: ${uncheckedConfig.background};
1139
1184
  border-color: ${uncheckedConfig.borderColor};
1140
1185
  `;
1141
1186
  }}
1142
1187
 
1143
- ${({ $disabled, $checked, $indeterminate, theme }) => {
1188
+ ${({ $disabled, $checked, $indeterminate, theme: theme2 }) => {
1144
1189
  if ($disabled) return "";
1145
- const stateConfig = $checked || $indeterminate ? theme.components.checkbox.checked : theme.components.checkbox.unchecked;
1190
+ const stateConfig = $checked || $indeterminate ? theme2.components.checkbox.checked : theme2.components.checkbox.unchecked;
1146
1191
  return `
1147
1192
  ${CheckboxContainer}:hover & {
1148
1193
  background: ${stateConfig.backgroundHover};
@@ -1155,7 +1200,7 @@ var CheckboxBox = styled3.div`
1155
1200
  `;
1156
1201
  }}
1157
1202
  `;
1158
- var IconWrapper2 = styled3.div`
1203
+ var IconWrapper2 = styled.div`
1159
1204
  position: absolute;
1160
1205
  left: 50%;
1161
1206
  top: 50%;
@@ -1167,8 +1212,8 @@ var IconWrapper2 = styled3.div`
1167
1212
  align-items: center;
1168
1213
  justify-content: center;
1169
1214
 
1170
- ${({ theme }) => {
1171
- const iconSize = theme.components.checkbox.small.iconSize;
1215
+ ${({ theme: theme2 }) => {
1216
+ const iconSize = theme2.components.checkbox.small.iconSize;
1172
1217
  return `
1173
1218
  width: ${iconSize.width};
1174
1219
  height: ${iconSize.height};
@@ -1179,7 +1224,7 @@ var IconWrapper2 = styled3.div`
1179
1224
  display: block;
1180
1225
  }
1181
1226
  `;
1182
- var DefaultIndeterminateIcon = styled3.div`
1227
+ var DefaultIndeterminateIcon = styled.div`
1183
1228
  width: 8px;
1184
1229
  height: 2px;
1185
1230
  background: white;
@@ -1260,7 +1305,7 @@ var Checkbox = ({
1260
1305
  );
1261
1306
  };
1262
1307
  Checkbox.displayName = "Checkbox";
1263
- var InputWrapper2 = styled3.div`
1308
+ var InputWrapper2 = styled.div`
1264
1309
  display: inline-flex;
1265
1310
  align-items: center;
1266
1311
  width: 100%;
@@ -1268,9 +1313,9 @@ var InputWrapper2 = styled3.div`
1268
1313
  position: relative;
1269
1314
  transition: all 0.2s ease;
1270
1315
 
1271
- ${({ $size, theme }) => {
1316
+ ${({ $size, theme: theme2 }) => {
1272
1317
  const size = $size || "medium";
1273
- const sizeConfig = theme.components.input.outlined[size];
1318
+ const sizeConfig = theme2.components.input.outlined[size];
1274
1319
  return `
1275
1320
  height: ${sizeConfig.height};
1276
1321
  border-radius: ${sizeConfig.borderRadius};
@@ -1280,8 +1325,8 @@ var InputWrapper2 = styled3.div`
1280
1325
  `;
1281
1326
  }}
1282
1327
 
1283
- ${({ $error, $disabled, $readOnly, $isFocused, theme, $size }) => {
1284
- const stateConfig = theme.components.input.outlined.state;
1328
+ ${({ $error, $disabled, $readOnly, $isFocused, theme: theme2, $size }) => {
1329
+ const stateConfig = theme2.components.input.outlined.state;
1285
1330
  let borderColor = stateConfig.borderColor;
1286
1331
  let background = stateConfig.background;
1287
1332
  let boxShadow = "none";
@@ -1298,7 +1343,7 @@ var InputWrapper2 = styled3.div`
1298
1343
  borderColor = stateConfig.borderColorActive;
1299
1344
  background = stateConfig.backgroundActive;
1300
1345
  const size = $size || "medium";
1301
- boxShadow = theme.components.input.outlined[size].boxShadowActive;
1346
+ boxShadow = theme2.components.input.outlined[size].boxShadowActive;
1302
1347
  }
1303
1348
  return `
1304
1349
  border: 1px solid ${borderColor};
@@ -1319,7 +1364,7 @@ var InputWrapper2 = styled3.div`
1319
1364
  opacity: 1;
1320
1365
  `}
1321
1366
  `;
1322
- var StyledInput2 = styled3.input`
1367
+ var StyledInput2 = styled.input`
1323
1368
  flex: 1;
1324
1369
  border: none;
1325
1370
  outline: none;
@@ -1328,11 +1373,11 @@ var StyledInput2 = styled3.input`
1328
1373
  padding: 0;
1329
1374
  margin: 0;
1330
1375
  font-family: inherit;
1331
- color: ${({ theme }) => theme.components.input.outlined.state.borderColorActive};
1376
+ color: ${({ theme: theme2 }) => theme2.components.input.outlined.state.borderColorActive};
1332
1377
 
1333
- ${({ $size, theme }) => {
1378
+ ${({ $size, theme: theme2 }) => {
1334
1379
  const size = $size || "medium";
1335
- const sizeConfig = theme.components.input.outlined[size];
1380
+ const sizeConfig = theme2.components.input.outlined[size];
1336
1381
  return `
1337
1382
  font-size: ${sizeConfig.fontSize};
1338
1383
  line-height: ${sizeConfig.lineHeight};
@@ -1340,27 +1385,27 @@ var StyledInput2 = styled3.input`
1340
1385
  }}
1341
1386
 
1342
1387
  &::placeholder {
1343
- color: ${({ theme }) => theme.colors.palettes.transparency["30"]};
1388
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["30"]};
1344
1389
  }
1345
1390
 
1346
- ${({ $disabled, theme }) => $disabled && `
1391
+ ${({ $disabled, theme: theme2 }) => $disabled && `
1347
1392
  cursor: not-allowed;
1348
- color: ${theme.colors.palettes.transparency["30"]};
1393
+ color: ${theme2.colors.palettes.transparency["30"]};
1349
1394
  `}
1350
1395
 
1351
1396
  ${({ $readOnly }) => $readOnly && `
1352
1397
  cursor: default;
1353
1398
  `}
1354
1399
  `;
1355
- var PrefixNode = styled3.div`
1400
+ var PrefixNode = styled.div`
1356
1401
  display: inline-flex;
1357
1402
  align-items: center;
1358
1403
  flex-shrink: 0;
1359
1404
  margin-right: 4px;
1360
1405
 
1361
- ${({ $size, theme }) => {
1406
+ ${({ $size, theme: theme2 }) => {
1362
1407
  const size = $size || "medium";
1363
- const sizeConfig = theme.components.input.outlined[size];
1408
+ const sizeConfig = theme2.components.input.outlined[size];
1364
1409
  return `
1365
1410
  svg, img {
1366
1411
  width: ${sizeConfig.iconSize.width};
@@ -1369,15 +1414,15 @@ var PrefixNode = styled3.div`
1369
1414
  `;
1370
1415
  }}
1371
1416
  `;
1372
- var SuffixNode = styled3.div`
1417
+ var SuffixNode = styled.div`
1373
1418
  display: inline-flex;
1374
1419
  align-items: center;
1375
1420
  flex-shrink: 0;
1376
1421
  margin-left: 4px;
1377
1422
 
1378
- ${({ $size, theme }) => {
1423
+ ${({ $size, theme: theme2 }) => {
1379
1424
  const size = $size || "medium";
1380
- const sizeConfig = theme.components.input.outlined[size];
1425
+ const sizeConfig = theme2.components.input.outlined[size];
1381
1426
  return `
1382
1427
  svg, img {
1383
1428
  width: ${sizeConfig.iconSize.width};
@@ -1440,14 +1485,14 @@ var Input = forwardRef(
1440
1485
  }
1441
1486
  );
1442
1487
  Input.displayName = "Input";
1443
- var SearchIconWrapper = styled3.div`
1488
+ var SearchIconWrapper = styled.div`
1444
1489
  display: inline-flex;
1445
1490
  align-items: center;
1446
1491
  justify-content: center;
1447
1492
  flex-shrink: 0;
1448
1493
 
1449
- ${({ $size, theme }) => {
1450
- const sizeConfig = theme.components.input.outlined[$size === "extraLarge" ? "extraLarge" : "large"];
1494
+ ${({ $size, theme: theme2 }) => {
1495
+ const sizeConfig = theme2.components.input.outlined[$size === "extraLarge" ? "extraLarge" : "large"];
1451
1496
  return `
1452
1497
  width: ${sizeConfig.iconSize.width};
1453
1498
  height: ${sizeConfig.iconSize.height};
@@ -1457,10 +1502,10 @@ var SearchIconWrapper = styled3.div`
1457
1502
  svg {
1458
1503
  width: 100%;
1459
1504
  height: 100%;
1460
- color: ${({ theme }) => theme.colors.palettes.transparency["100"]};
1505
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["100"]};
1461
1506
  }
1462
1507
  `;
1463
- var ClearButton = styled3.button`
1508
+ var ClearButton = styled.button`
1464
1509
  display: inline-flex;
1465
1510
  align-items: center;
1466
1511
  justify-content: center;
@@ -1473,8 +1518,8 @@ var ClearButton = styled3.button`
1473
1518
  outline: none;
1474
1519
  transition: opacity 0.2s ease;
1475
1520
 
1476
- ${({ $size, theme }) => {
1477
- const sizeConfig = theme.components.input.outlined[$size === "extraLarge" ? "extraLarge" : "large"];
1521
+ ${({ $size, theme: theme2 }) => {
1522
+ const sizeConfig = theme2.components.input.outlined[$size === "extraLarge" ? "extraLarge" : "large"];
1478
1523
  return `
1479
1524
  width: ${sizeConfig.iconSize.width};
1480
1525
  height: ${sizeConfig.iconSize.height};
@@ -1484,7 +1529,7 @@ var ClearButton = styled3.button`
1484
1529
  svg {
1485
1530
  width: 100%;
1486
1531
  height: 100%;
1487
- color: ${({ theme }) => theme.colors.palettes.transparency["100"]};
1532
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["100"]};
1488
1533
  }
1489
1534
 
1490
1535
  &:hover {
@@ -1602,7 +1647,7 @@ var useIconRegistry = () => {
1602
1647
  IconProvider.displayName = "IconProvider";
1603
1648
 
1604
1649
  // src/Icon/Icon.tsx
1605
- var IconContainer = styled3.span`
1650
+ var IconContainer = styled.span`
1606
1651
  display: inline-flex;
1607
1652
  align-items: center;
1608
1653
  justify-content: center;
@@ -1668,15 +1713,15 @@ var Icon = ({
1668
1713
  );
1669
1714
  };
1670
1715
  Icon.displayName = "Icon";
1671
- var ToastContainer = styled3.div`
1716
+ var ToastContainer = styled.div`
1672
1717
  display: inline-flex;
1673
1718
  align-items: center;
1674
1719
  gap: 8px;
1675
1720
  border: 1px solid;
1676
1721
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
1677
1722
 
1678
- ${({ theme }) => {
1679
- const baseConfig = theme.components.toast;
1723
+ ${({ theme: theme2 }) => {
1724
+ const baseConfig = theme2.components.toast;
1680
1725
  return `
1681
1726
  padding: ${baseConfig.padding};
1682
1727
  border-radius: ${baseConfig.borderRadius};
@@ -1685,42 +1730,42 @@ var ToastContainer = styled3.div`
1685
1730
  `;
1686
1731
  }}
1687
1732
 
1688
- ${({ $variant, theme }) => {
1689
- const variantConfig = theme.components.toast[$variant];
1733
+ ${({ $variant, theme: theme2 }) => {
1734
+ const variantConfig = theme2.components.toast[$variant];
1690
1735
  return `
1691
1736
  background: ${variantConfig.background};
1692
1737
  border-color: ${variantConfig.borderColor};
1693
1738
  `;
1694
1739
  }}
1695
1740
  `;
1696
- var IconWrapper3 = styled3.div`
1741
+ var IconWrapper3 = styled.div`
1697
1742
  display: flex;
1698
1743
  align-items: center;
1699
1744
  justify-content: center;
1700
1745
  flex-shrink: 0;
1701
1746
 
1702
- ${({ $variant, theme }) => {
1703
- const iconConfig = theme.components.toast[$variant].icon;
1747
+ ${({ $variant, theme: theme2 }) => {
1748
+ const iconConfig = theme2.components.toast[$variant].icon;
1704
1749
  return `
1705
1750
  width: ${iconConfig.size.width};
1706
1751
  height: ${iconConfig.size.height};
1707
1752
  `;
1708
1753
  }}
1709
1754
  `;
1710
- var Message = styled3.span`
1755
+ var Message = styled.span`
1711
1756
  flex: 1;
1712
1757
  line-height: 20px;
1713
- color: ${({ theme }) => theme.colors.palettes.gray["120"]};
1758
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.gray["120"]};
1714
1759
  `;
1715
- var ActionButton = styled3.button`
1760
+ var ActionButton = styled.button`
1716
1761
  background: transparent;
1717
1762
  border: none;
1718
1763
  cursor: pointer;
1719
1764
  padding: 0;
1720
1765
  outline: none;
1721
1766
 
1722
- ${({ $variant, theme }) => {
1723
- const buttonConfig = theme.components.toast[$variant].button;
1767
+ ${({ $variant, theme: theme2 }) => {
1768
+ const buttonConfig = theme2.components.toast[$variant].button;
1724
1769
  return `
1725
1770
  font-size: ${buttonConfig.fontSize};
1726
1771
  font-weight: ${buttonConfig.fontWeight};
@@ -1737,7 +1782,7 @@ var ActionButton = styled3.button`
1737
1782
  opacity: 0.6;
1738
1783
  }
1739
1784
  `;
1740
- var CloseButton = styled3.button`
1785
+ var CloseButton = styled.button`
1741
1786
  background: transparent;
1742
1787
  border: none;
1743
1788
  cursor: pointer;
@@ -1747,16 +1792,16 @@ var CloseButton = styled3.button`
1747
1792
  display: flex;
1748
1793
  align-items: center;
1749
1794
  justify-content: center;
1750
- color: ${({ theme }) => theme.colors.palettes.gray["60"]};
1795
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.gray["60"]};
1751
1796
  flex-shrink: 0;
1752
1797
  outline: none;
1753
1798
 
1754
1799
  &:hover {
1755
- color: ${({ theme }) => theme.colors.palettes.gray["100"]};
1800
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.gray["100"]};
1756
1801
  }
1757
1802
 
1758
1803
  &:active {
1759
- color: ${({ theme }) => theme.colors.palettes.gray["120"]};
1804
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.gray["120"]};
1760
1805
  }
1761
1806
  `;
1762
1807
  var SuccessIcon = () => /* @__PURE__ */ React12.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12.createElement("circle", { cx: "10", cy: "10", r: "8", fill: "#4ea44b" }), /* @__PURE__ */ React12.createElement("path", { d: "M6 10L9 13L14 7", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }));
@@ -1834,7 +1879,7 @@ var Toast = ({
1834
1879
  };
1835
1880
  Toast.displayName = "Toast";
1836
1881
  var ToastContext = createContext(null);
1837
- var ToastWrapper = styled3.div`
1882
+ var ToastWrapper = styled.div`
1838
1883
  position: fixed;
1839
1884
  top: 24px;
1840
1885
  right: 24px;
@@ -1907,17 +1952,17 @@ var useToast = () => {
1907
1952
  return context;
1908
1953
  };
1909
1954
  ToastContainer2.displayName = "ToastContainer";
1910
- var TabContainer = styled3.div`
1955
+ var TabContainer = styled.div`
1911
1956
  display: flex;
1912
1957
  flex-direction: column;
1913
1958
  `;
1914
- var TabList = styled3.div`
1959
+ var TabList = styled.div`
1915
1960
  display: flex;
1916
1961
  align-items: center;
1917
1962
  position: relative;
1918
1963
 
1919
- ${({ $variant, theme }) => {
1920
- const variantConfig = theme.components.tab[$variant];
1964
+ ${({ $variant, theme: theme2 }) => {
1965
+ const variantConfig = theme2.components.tab[$variant];
1921
1966
  return `
1922
1967
  gap: ${variantConfig.layout.gap};
1923
1968
  `;
@@ -1932,7 +1977,7 @@ var TabList = styled3.div`
1932
1977
  return "";
1933
1978
  }}
1934
1979
  `;
1935
- var TabItem = styled3.button`
1980
+ var TabItem = styled.button`
1936
1981
  display: inline-flex;
1937
1982
  align-items: center;
1938
1983
  justify-content: center;
@@ -1944,8 +1989,8 @@ var TabItem = styled3.button`
1944
1989
  position: relative;
1945
1990
  white-space: nowrap;
1946
1991
 
1947
- ${({ theme }) => {
1948
- const sizeConfig = theme.components.tab.large;
1992
+ ${({ theme: theme2 }) => {
1993
+ const sizeConfig = theme2.components.tab.large;
1949
1994
  return `
1950
1995
  height: ${sizeConfig.height};
1951
1996
  padding: ${sizeConfig.padding};
@@ -1956,8 +2001,8 @@ var TabItem = styled3.button`
1956
2001
  `;
1957
2002
  }}
1958
2003
 
1959
- ${({ $variant, $active, $disabled, theme }) => {
1960
- const variantConfig = theme.components.tab[$variant];
2004
+ ${({ $variant, $active, $disabled, theme: theme2 }) => {
2005
+ const variantConfig = theme2.components.tab[$variant];
1961
2006
  const itemConfig = variantConfig.item;
1962
2007
  if ($disabled) {
1963
2008
  return `
@@ -1980,9 +2025,9 @@ var TabItem = styled3.button`
1980
2025
  `;
1981
2026
  }}
1982
2027
 
1983
- ${({ $variant, $disabled, theme }) => {
2028
+ ${({ $variant, $disabled, theme: theme2 }) => {
1984
2029
  if ($disabled) return "";
1985
- const variantConfig = theme.components.tab[$variant];
2030
+ const variantConfig = theme2.components.tab[$variant];
1986
2031
  const itemConfig = variantConfig.item;
1987
2032
  return `
1988
2033
  &:hover {
@@ -2091,6 +2136,7 @@ var Tooltip = ({
2091
2136
  return /* @__PURE__ */ React12.createElement(RcTooltip, { ...tooltipProps }, children);
2092
2137
  };
2093
2138
  Tooltip.displayName = "Tooltip";
2139
+ var theme = getGlobalTheme();
2094
2140
  var paddingDistance = "5px";
2095
2141
  var positionDistance = "0";
2096
2142
  var TooltipGlobalStyles = createGlobalStyle`
@@ -2199,16 +2245,16 @@ var TooltipGlobalStyles = createGlobalStyle`
2199
2245
 
2200
2246
  /* Black variant */
2201
2247
  .tooltip-variant-black .rc-tooltip-inner {
2202
- background: ${({ theme }) => theme.components.tooltip.black.background};
2203
- border: 1px solid ${({ theme }) => theme.components.tooltip.black.borderColor};
2204
- color: ${({ theme }) => theme.components.tooltip.black.color};
2205
- border-radius: ${({ theme }) => theme.components.tooltip.black.borderRadius};
2206
- padding: ${({ theme }) => theme.components.tooltip.black.padding};
2207
- box-shadow: ${({ theme }) => theme.components.tooltip.black.boxShadow};
2208
- font-size: ${({ theme }) => theme.components.tooltip.black.fontSize};
2209
- line-height: ${({ theme }) => theme.components.tooltip.black.lineHeight};
2210
- font-weight: ${({ theme }) => theme.components.tooltip.black.fontWeight};
2211
- max-width: ${({ theme }) => theme.components.tooltip.black.maxWidth};
2248
+ background: ${() => theme.components.tooltip.black.background};
2249
+ border: 1px solid ${() => theme.components.tooltip.black.borderColor};
2250
+ color: ${() => theme.components.tooltip.black.color};
2251
+ border-radius: ${() => theme.components.tooltip.black.borderRadius};
2252
+ padding: ${() => theme.components.tooltip.black.padding};
2253
+ box-shadow: ${() => theme.components.tooltip.black.boxShadow};
2254
+ font-size: ${() => theme.components.tooltip.black.fontSize};
2255
+ line-height: ${() => theme.components.tooltip.black.lineHeight};
2256
+ font-weight: ${() => theme.components.tooltip.black.fontWeight};
2257
+ max-width: ${() => theme.components.tooltip.black.maxWidth};
2212
2258
  text-align: left;
2213
2259
  text-decoration: none;
2214
2260
  }
@@ -2219,7 +2265,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2219
2265
  bottom: ${positionDistance};
2220
2266
  margin-left: -5px;
2221
2267
  border-width: 5px 5px 0;
2222
- border-top-color: ${({ theme }) => theme.components.tooltip.black.background};
2268
+ border-top-color: ${() => theme.components.tooltip.black.background};
2223
2269
  }
2224
2270
 
2225
2271
  .tooltip-variant-black.rc-tooltip-placement-right .rc-tooltip-arrow,
@@ -2228,7 +2274,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2228
2274
  left: ${positionDistance};
2229
2275
  margin-top: -5px;
2230
2276
  border-width: 5px 5px 5px 0;
2231
- border-right-color: ${({ theme }) => theme.components.tooltip.black.background};
2277
+ border-right-color: ${() => theme.components.tooltip.black.background};
2232
2278
  }
2233
2279
 
2234
2280
  .tooltip-variant-black.rc-tooltip-placement-left .rc-tooltip-arrow,
@@ -2237,7 +2283,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2237
2283
  right: ${positionDistance};
2238
2284
  margin-top: -5px;
2239
2285
  border-width: 5px 0 5px 5px;
2240
- border-left-color: ${({ theme }) => theme.components.tooltip.black.background};
2286
+ border-left-color: ${() => theme.components.tooltip.black.background};
2241
2287
  }
2242
2288
 
2243
2289
  .tooltip-variant-black.rc-tooltip-placement-bottom .rc-tooltip-arrow,
@@ -2246,20 +2292,20 @@ var TooltipGlobalStyles = createGlobalStyle`
2246
2292
  top: ${positionDistance};
2247
2293
  margin-left: -5px;
2248
2294
  border-width: 0 5px 5px;
2249
- border-bottom-color: ${({ theme }) => theme.components.tooltip.black.background};
2295
+ border-bottom-color: ${() => theme.components.tooltip.black.background};
2250
2296
  }
2251
2297
 
2252
2298
  /* White variant - small size */
2253
2299
  .tooltip-variant-white.tooltip-size-small .rc-tooltip-inner {
2254
- background: ${({ theme }) => theme.components.tooltip.white.small.background};
2255
- border: 1px solid ${({ theme }) => theme.components.tooltip.white.small.borderColor};
2256
- color: ${({ theme }) => theme.components.tooltip.white.small.color};
2257
- border-radius: ${({ theme }) => theme.components.tooltip.white.small.borderRadius};
2258
- padding: ${({ theme }) => theme.components.tooltip.white.small.padding};
2259
- box-shadow: ${({ theme }) => theme.components.tooltip.white.small.boxShadow};
2260
- font-size: ${({ theme }) => theme.components.tooltip.white.small.fontSize};
2261
- line-height: ${({ theme }) => theme.components.tooltip.white.small.lineHeight};
2262
- font-weight: ${({ theme }) => theme.components.tooltip.white.small.fontWeight};
2300
+ background: ${() => theme.components.tooltip.white.small.background};
2301
+ border: 1px solid ${() => theme.components.tooltip.white.small.borderColor};
2302
+ color: ${() => theme.components.tooltip.white.small.color};
2303
+ border-radius: ${() => theme.components.tooltip.white.small.borderRadius};
2304
+ padding: ${() => theme.components.tooltip.white.small.padding};
2305
+ box-shadow: ${() => theme.components.tooltip.white.small.boxShadow};
2306
+ font-size: ${() => theme.components.tooltip.white.small.fontSize};
2307
+ line-height: ${() => theme.components.tooltip.white.small.lineHeight};
2308
+ font-weight: ${() => theme.components.tooltip.white.small.fontWeight};
2263
2309
  text-align: left;
2264
2310
  text-decoration: none;
2265
2311
  }
@@ -2270,7 +2316,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2270
2316
  bottom: ${positionDistance};
2271
2317
  margin-left: -5px;
2272
2318
  border-width: 5px 5px 0;
2273
- border-top-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2319
+ border-top-color: ${() => theme.components.tooltip.white.small.background};
2274
2320
  }
2275
2321
 
2276
2322
  .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-right .rc-tooltip-arrow,
@@ -2279,7 +2325,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2279
2325
  left: ${positionDistance};
2280
2326
  margin-top: -5px;
2281
2327
  border-width: 5px 5px 5px 0;
2282
- border-right-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2328
+ border-right-color: ${() => theme.components.tooltip.white.small.background};
2283
2329
  }
2284
2330
 
2285
2331
  .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-left .rc-tooltip-arrow,
@@ -2288,7 +2334,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2288
2334
  right: ${positionDistance};
2289
2335
  margin-top: -5px;
2290
2336
  border-width: 5px 0 5px 5px;
2291
- border-left-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2337
+ border-left-color: ${() => theme.components.tooltip.white.small.background};
2292
2338
  }
2293
2339
 
2294
2340
  .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-bottom .rc-tooltip-arrow,
@@ -2297,20 +2343,20 @@ var TooltipGlobalStyles = createGlobalStyle`
2297
2343
  top: ${positionDistance};
2298
2344
  margin-left: -5px;
2299
2345
  border-width: 0 5px 5px;
2300
- border-bottom-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2346
+ border-bottom-color: ${() => theme.components.tooltip.white.small.background};
2301
2347
  }
2302
2348
 
2303
2349
  /* White variant - large size */
2304
2350
  .tooltip-variant-white.tooltip-size-large .rc-tooltip-inner {
2305
- background: ${({ theme }) => theme.components.tooltip.white.large.background};
2306
- border: 1px solid ${({ theme }) => theme.components.tooltip.white.large.borderColor};
2307
- color: ${({ theme }) => theme.components.tooltip.white.large.color};
2308
- border-radius: ${({ theme }) => theme.components.tooltip.white.large.borderRadius};
2309
- padding: ${({ theme }) => theme.components.tooltip.white.large.padding};
2310
- box-shadow: ${({ theme }) => theme.components.tooltip.white.large.boxShadow};
2311
- font-size: ${({ theme }) => theme.components.tooltip.white.large.fontSize};
2312
- line-height: ${({ theme }) => theme.components.tooltip.white.large.lineHeight};
2313
- font-weight: ${({ theme }) => theme.components.tooltip.white.large.fontWeight};
2351
+ background: ${() => theme.components.tooltip.white.large.background};
2352
+ border: 1px solid ${() => theme.components.tooltip.white.large.borderColor};
2353
+ color: ${() => theme.components.tooltip.white.large.color};
2354
+ border-radius: ${() => theme.components.tooltip.white.large.borderRadius};
2355
+ padding: ${() => theme.components.tooltip.white.large.padding};
2356
+ box-shadow: ${() => theme.components.tooltip.white.large.boxShadow};
2357
+ font-size: ${() => theme.components.tooltip.white.large.fontSize};
2358
+ line-height: ${() => theme.components.tooltip.white.large.lineHeight};
2359
+ font-weight: ${() => theme.components.tooltip.white.large.fontWeight};
2314
2360
  text-align: left;
2315
2361
  text-decoration: none;
2316
2362
  }
@@ -2321,7 +2367,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2321
2367
  bottom: ${positionDistance};
2322
2368
  margin-left: -5px;
2323
2369
  border-width: 5px 5px 0;
2324
- border-top-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2370
+ border-top-color: ${() => theme.components.tooltip.white.large.background};
2325
2371
  }
2326
2372
 
2327
2373
  .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-right .rc-tooltip-arrow,
@@ -2330,7 +2376,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2330
2376
  left: ${positionDistance};
2331
2377
  margin-top: -5px;
2332
2378
  border-width: 5px 5px 5px 0;
2333
- border-right-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2379
+ border-right-color: ${() => theme.components.tooltip.white.large.background};
2334
2380
  }
2335
2381
 
2336
2382
  .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-left .rc-tooltip-arrow,
@@ -2339,7 +2385,7 @@ var TooltipGlobalStyles = createGlobalStyle`
2339
2385
  right: ${positionDistance};
2340
2386
  margin-top: -5px;
2341
2387
  border-width: 5px 0 5px 5px;
2342
- border-left-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2388
+ border-left-color: ${() => theme.components.tooltip.white.large.background};
2343
2389
  }
2344
2390
 
2345
2391
  .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-bottom .rc-tooltip-arrow,
@@ -2348,33 +2394,368 @@ var TooltipGlobalStyles = createGlobalStyle`
2348
2394
  top: ${positionDistance};
2349
2395
  margin-left: -5px;
2350
2396
  border-width: 0 5px 5px;
2351
- border-bottom-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2397
+ border-bottom-color: ${() => theme.components.tooltip.white.large.background};
2352
2398
  }
2353
2399
  `;
2354
- var UIConfigContext = createContext(null);
2355
- var UIConfigProvider = ({
2356
- config,
2357
- children
2400
+ var ToolbarButtonContainer = styled.div`
2401
+ display: inline-flex;
2402
+ align-items: center;
2403
+ border: 1px solid;
2404
+ border-radius: 2px;
2405
+ transition: border-color 0.15s ease;
2406
+ box-sizing: border-box;
2407
+
2408
+ ${({ $disabled, $active, theme: theme2 }) => {
2409
+ const config = theme2.components.toolbarButton;
2410
+ if ($disabled) {
2411
+ return `
2412
+ border-color: ${config.border.borderColorDisabled};
2413
+ `;
2414
+ }
2415
+ if ($active) {
2416
+ return `
2417
+ border-color: ${config.border.borderColorActive};
2418
+
2419
+ ${Divider} {
2420
+ background-color: ${config.border.borderColorActive};
2421
+ }
2422
+ `;
2423
+ }
2424
+ return `
2425
+ border-color: ${config.border.borderColor};
2426
+
2427
+ &:hover {
2428
+ border-color: ${config.border.borderColorHover};
2429
+ box-shadow: ${config.boxShadow.boxShadowHover};
2430
+ ${Divider} {
2431
+ background-color: ${config.border.borderColorHover};
2432
+ }
2433
+ }
2434
+
2435
+ button:active {
2436
+ box-shadow: ${config.boxShadow.boxShadowClick};
2437
+ ${Divider} {
2438
+ background-color: ${config.border.borderColorClick};
2439
+ }
2440
+ }
2441
+ `;
2442
+ }}
2443
+ `;
2444
+ var MainButton = styled.button`
2445
+ display: flex;
2446
+ align-items: center;
2447
+ justify-content: center;
2448
+ border: none;
2449
+ cursor: pointer;
2450
+ outline: none;
2451
+ transition: background-color 0.15s ease;
2452
+
2453
+ ${({ $hasLabel, theme: theme2 }) => {
2454
+ const config = theme2.components.toolbarButton;
2455
+ return `
2456
+ height: ${config.layout.height};
2457
+ padding: ${$hasLabel ? config.layout.content.padding : config.layout.padding};
2458
+ `;
2459
+ }}
2460
+
2461
+ ${({ $disabled, $active, theme: theme2 }) => {
2462
+ const config = theme2.components.toolbarButton;
2463
+ if ($disabled) {
2464
+ return `
2465
+ cursor: not-allowed;
2466
+ background: ${config.background.backgroundDisabled};
2467
+ `;
2468
+ }
2469
+ if ($active) {
2470
+ return `
2471
+ background: ${config.background.backgroundActive};
2472
+ `;
2473
+ }
2474
+ return `
2475
+ background: ${config.background.background};
2476
+
2477
+ &:hover {
2478
+ background: ${config.background.backgroundHover};
2479
+ }
2480
+
2481
+ &:active {
2482
+ background: ${config.background.backgroundClick};
2483
+ }
2484
+ `;
2485
+ }}
2486
+ `;
2487
+ var IconWrapper4 = styled.span`
2488
+ display: inline-flex;
2489
+ align-items: center;
2490
+ justify-content: center;
2491
+ flex-shrink: 0;
2492
+
2493
+ ${({ theme: theme2 }) => {
2494
+ const config = theme2.components.toolbarButton;
2495
+ return `
2496
+ width: ${config.layout.content.iconSize.width};
2497
+ height: ${config.layout.content.iconSize.height};
2498
+ `;
2499
+ }}
2500
+
2501
+ ${({ $disabled, theme: theme2 }) => {
2502
+ const config = theme2.components.toolbarButton;
2503
+ return $disabled ? `
2504
+ color: ${config.color.colorDisabled};
2505
+ ` : `
2506
+ color: ${config.color.color};
2507
+ `;
2508
+ }}
2509
+
2510
+ svg, img {
2511
+ width: 100%;
2512
+ height: 100%;
2513
+ display: block;
2514
+ }
2515
+ `;
2516
+ var LabelText = styled.span`
2517
+ font-family: 'PingFang SC', sans-serif;
2518
+ white-space: nowrap;
2519
+
2520
+ ${({ theme: theme2 }) => {
2521
+ const config = theme2.components.toolbarButton;
2522
+ return `
2523
+ font-size: ${config.typography.fontSize};
2524
+ font-weight: ${config.typography.fontWeight};
2525
+ line-height: 20px;
2526
+ padding: ${config.layout.content.padding};
2527
+ `;
2528
+ }}
2529
+
2530
+ ${({ $disabled, theme: theme2 }) => {
2531
+ const config = theme2.components.toolbarButton;
2532
+ return $disabled ? `
2533
+ color: ${config.color.colorDisabled};
2534
+ ` : `
2535
+ color: ${config.color.color};
2536
+ `;
2537
+ }}
2538
+ `;
2539
+ var DropdownButton = styled.button`
2540
+ display: flex;
2541
+ align-items: center;
2542
+ justify-content: center;
2543
+ cursor: pointer;
2544
+ outline: none;
2545
+ border: none;
2546
+ transition: background-color 0.15s ease;
2547
+
2548
+ ${({ theme: theme2 }) => {
2549
+ const config = theme2.components.toolbarButton;
2550
+ return `
2551
+ height: ${config.layout.height};
2552
+ padding: 5px 0;
2553
+ `;
2554
+ }}
2555
+
2556
+ ${({ $disabled, theme: theme2 }) => {
2557
+ const config = theme2.components.toolbarButton;
2558
+ if ($disabled) {
2559
+ return `
2560
+ cursor: not-allowed;
2561
+ background: ${config.background.backgroundDisabled};
2562
+ `;
2563
+ }
2564
+ return `
2565
+ background: ${config.background.background};
2566
+
2567
+ &:hover {
2568
+ background: ${config.background.backgroundHover};
2569
+ }
2570
+
2571
+ &:active {
2572
+ background: ${config.background.backgroundClick};
2573
+ }
2574
+ `;
2575
+ }}
2576
+ `;
2577
+ var DropdownArrow = styled.span`
2578
+ display: inline-flex;
2579
+ align-items: center;
2580
+ justify-content: center;
2581
+ flex-shrink: 0;
2582
+
2583
+ ${({ theme: theme2 }) => {
2584
+ const config = theme2.components.toolbarButton;
2585
+ return `
2586
+ width: ${config.layout.dropdown.iconSize.width};
2587
+ height: ${config.layout.dropdown.iconSize.height};
2588
+ `;
2589
+ }}
2590
+
2591
+ ${({ $disabled, theme: theme2 }) => {
2592
+ const config = theme2.components.toolbarButton;
2593
+ return $disabled ? `
2594
+ color: ${config.color.colorDisabled};
2595
+ ` : `
2596
+ color: ${config.color.color};
2597
+ `;
2598
+ }}
2599
+
2600
+ svg {
2601
+ }
2602
+ `;
2603
+ var Divider = styled.div`
2604
+ width: 1px;
2605
+ transition: background-color 0.15s ease;
2606
+
2607
+ ${({ theme: theme2 }) => {
2608
+ const config = theme2.components.toolbarButton;
2609
+ return `
2610
+ height: ${config.layout.height};
2611
+ `;
2612
+ }}
2613
+
2614
+ ${({ $disabled, $active, theme: theme2 }) => {
2615
+ const config = theme2.components.toolbarButton;
2616
+ if ($disabled) {
2617
+ return `
2618
+ background-color: ${config.border.borderColorDisabled};
2619
+ `;
2620
+ }
2621
+ if ($active) {
2622
+ return `
2623
+ background-color: ${config.border.borderColorActive};
2624
+ `;
2625
+ }
2626
+ return `
2627
+ background-color: ${config.border.borderColor};
2628
+ `;
2629
+ }}
2630
+ `;
2631
+ var ArrowIcon = () => /* @__PURE__ */ React12.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ React12.createElement(
2632
+ "path",
2633
+ {
2634
+ d: "M8.1858 9.79353C8.08649 9.90387 7.91346 9.90387 7.81415 9.79353L4.77549 6.41724C4.6307 6.25636 4.74487 6 4.96132 6L11.0386 6C11.2551 6 11.3693 6.25636 11.2245 6.41724L8.1858 9.79353Z",
2635
+ fill: "#41464B",
2636
+ fillOpacity: "0.6"
2637
+ }
2638
+ ));
2639
+ var ToolbarButton = ({
2640
+ disabled = false,
2641
+ active = false,
2642
+ icon,
2643
+ label,
2644
+ hasDropdown = false,
2645
+ splitDropdown = false,
2646
+ onClick,
2647
+ onDropdownClick,
2648
+ className,
2649
+ style
2358
2650
  }) => {
2359
- const {
2360
- theme,
2361
- icons = {},
2362
- toast = {}
2363
- } = config;
2651
+ const handleMainClick = (e) => {
2652
+ if (disabled) return;
2653
+ onClick?.(e);
2654
+ };
2655
+ const handleDropdownClick = (e) => {
2656
+ if (disabled) return;
2657
+ e.stopPropagation();
2658
+ onDropdownClick?.(e);
2659
+ };
2660
+ if (!splitDropdown && hasDropdown) {
2661
+ return /* @__PURE__ */ React12.createElement(
2662
+ ToolbarButtonContainer,
2663
+ {
2664
+ className,
2665
+ style,
2666
+ $disabled: disabled,
2667
+ $active: active
2668
+ },
2669
+ /* @__PURE__ */ React12.createElement(
2670
+ MainButton,
2671
+ {
2672
+ $disabled: disabled,
2673
+ $active: active,
2674
+ $hasLabel: !!label,
2675
+ onClick: handleMainClick,
2676
+ disabled
2677
+ },
2678
+ icon && /* @__PURE__ */ React12.createElement(IconWrapper4, { $disabled: disabled }, icon),
2679
+ label && /* @__PURE__ */ React12.createElement(LabelText, { $disabled: disabled }, label),
2680
+ /* @__PURE__ */ React12.createElement(DropdownArrow, { $disabled: disabled }, /* @__PURE__ */ React12.createElement(ArrowIcon, null))
2681
+ )
2682
+ );
2683
+ }
2684
+ if (splitDropdown && hasDropdown) {
2685
+ return /* @__PURE__ */ React12.createElement(
2686
+ ToolbarButtonContainer,
2687
+ {
2688
+ className,
2689
+ style,
2690
+ $disabled: disabled,
2691
+ $active: active
2692
+ },
2693
+ /* @__PURE__ */ React12.createElement(
2694
+ MainButton,
2695
+ {
2696
+ $disabled: disabled,
2697
+ $active: active,
2698
+ $hasLabel: !!label,
2699
+ onClick: handleMainClick,
2700
+ disabled
2701
+ },
2702
+ icon && /* @__PURE__ */ React12.createElement(IconWrapper4, { $disabled: disabled }, icon),
2703
+ label && /* @__PURE__ */ React12.createElement(LabelText, { $disabled: disabled }, label)
2704
+ ),
2705
+ /* @__PURE__ */ React12.createElement(Divider, { $disabled: disabled, $active: active }),
2706
+ /* @__PURE__ */ React12.createElement(
2707
+ DropdownButton,
2708
+ {
2709
+ $disabled: disabled,
2710
+ $active: active,
2711
+ $split: true,
2712
+ onClick: handleDropdownClick,
2713
+ disabled
2714
+ },
2715
+ /* @__PURE__ */ React12.createElement(DropdownArrow, { $disabled: disabled }, /* @__PURE__ */ React12.createElement(ArrowIcon, null))
2716
+ )
2717
+ );
2718
+ }
2719
+ return /* @__PURE__ */ React12.createElement(
2720
+ ToolbarButtonContainer,
2721
+ {
2722
+ className,
2723
+ style,
2724
+ $disabled: disabled,
2725
+ $active: active
2726
+ },
2727
+ /* @__PURE__ */ React12.createElement(
2728
+ MainButton,
2729
+ {
2730
+ $disabled: disabled,
2731
+ $active: active,
2732
+ $hasLabel: !!label,
2733
+ onClick: handleMainClick,
2734
+ disabled
2735
+ },
2736
+ icon && /* @__PURE__ */ React12.createElement(IconWrapper4, { $disabled: disabled }, icon),
2737
+ label && /* @__PURE__ */ React12.createElement(LabelText, { $disabled: disabled }, label)
2738
+ )
2739
+ );
2740
+ };
2741
+ ToolbarButton.displayName = "ToolbarButton";
2742
+ var UIConfigContext = createContext(null);
2743
+ var UIConfigProvider = ({ config, children }) => {
2744
+ registerGlobalContext({ theme: config.theme });
2745
+ const { icons = {}, toast = {} } = config;
2364
2746
  const toastConfig = {
2365
2747
  maxCount: toast.maxCount ?? 5,
2366
2748
  defaultDuration: toast.defaultDuration ?? 3e3
2367
2749
  };
2368
- const Provider = ThemeProvider;
2369
2750
  const TooltipStyles = TooltipGlobalStyles;
2370
- return /* @__PURE__ */ React12.createElement(UIConfigContext.Provider, { value: config }, /* @__PURE__ */ React12.createElement(Provider, { theme }, /* @__PURE__ */ React12.createElement(TooltipStyles, null), /* @__PURE__ */ React12.createElement(IconProvider, { icons }, /* @__PURE__ */ React12.createElement(
2751
+ return /* @__PURE__ */ React12.createElement(UIConfigContext.Provider, { value: config }, /* @__PURE__ */ React12.createElement(TooltipStyles, null), /* @__PURE__ */ React12.createElement(IconProvider, { icons }, /* @__PURE__ */ React12.createElement(
2371
2752
  ToastContainer2,
2372
2753
  {
2373
2754
  maxCount: toastConfig.maxCount,
2374
2755
  defaultDuration: toastConfig.defaultDuration
2375
2756
  },
2376
2757
  children
2377
- ))));
2758
+ )));
2378
2759
  };
2379
2760
  var useUIConfig = () => {
2380
2761
  const context = useContext(UIConfigContext);
@@ -2452,6 +2833,6 @@ var mergeUIConfig = (baseConfig, ...configs) => {
2452
2833
  return merged;
2453
2834
  };
2454
2835
 
2455
- export { Button, Checkbox, Icon, IconProvider, Input, NumberInput, Radio, SearchInput, Slider, SpinButton, Switch, Tabs, Toast, ToastContainer2 as ToastContainer, Tooltip, UIConfigProvider, createUIConfig, mergeUIConfig, useIconRegistry, useToast, useUIConfig };
2836
+ export { Button, Checkbox, Icon, IconProvider, Input, NumberInput, Radio, SearchInput, Slider, SpinButton, Switch, Tabs, Toast, ToastContainer2 as ToastContainer, ToolbarButton, Tooltip, UIConfigProvider, createUIConfig, getGlobalTheme, mergeUIConfig, styled, useIconRegistry, useToast, useUIConfig };
2456
2837
  //# sourceMappingURL=index.js.map
2457
2838
  //# sourceMappingURL=index.js.map