@officesdk/design 0.1.2 → 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.
Files changed (37) hide show
  1. package/dist/components/{index.d.ts → cjs/index.d.ts} +76 -2
  2. package/dist/components/{index.js → cjs/index.js} +596 -212
  3. package/dist/components/cjs/index.js.map +1 -0
  4. package/dist/components/{index.d.mts → esm/index.d.ts} +76 -2
  5. package/dist/components/{index.mjs → esm/index.js} +594 -213
  6. package/dist/components/esm/index.js.map +1 -0
  7. package/dist/icons/cjs/index.js.map +1 -0
  8. package/dist/icons/{index.mjs → esm/index.js} +2 -2
  9. package/dist/icons/esm/index.js.map +1 -0
  10. package/dist/theme/{index.js → cjs/index.js} +56 -1
  11. package/dist/theme/cjs/index.js.map +1 -0
  12. package/dist/theme/{index.mjs → esm/index.js} +58 -3
  13. package/dist/theme/esm/index.js.map +1 -0
  14. package/dist/utils/cjs/index.js.map +1 -0
  15. package/dist/utils/{index.mjs → esm/index.js} +2 -2
  16. package/dist/utils/esm/index.js.map +1 -0
  17. package/package.json +24 -21
  18. package/dist/components/index.js.map +0 -1
  19. package/dist/components/index.mjs.map +0 -1
  20. package/dist/icons/index.js.map +0 -1
  21. package/dist/icons/index.mjs.map +0 -1
  22. package/dist/index.d.mts +0 -2
  23. package/dist/index.d.ts +0 -2
  24. package/dist/index.js +0 -2
  25. package/dist/index.mjs +0 -2
  26. package/dist/theme/index.js.map +0 -1
  27. package/dist/theme/index.mjs.map +0 -1
  28. package/dist/utils/index.js.map +0 -1
  29. package/dist/utils/index.mjs.map +0 -1
  30. /package/dist/icons/{index.d.ts → cjs/index.d.ts} +0 -0
  31. /package/dist/icons/{index.js → cjs/index.js} +0 -0
  32. /package/dist/icons/{index.d.mts → esm/index.d.ts} +0 -0
  33. /package/dist/theme/{index.d.ts → cjs/index.d.ts} +0 -0
  34. /package/dist/theme/{index.d.mts → esm/index.d.ts} +0 -0
  35. /package/dist/utils/{index.d.ts → cjs/index.d.ts} +0 -0
  36. /package/dist/utils/{index.js → cjs/index.js} +0 -0
  37. /package/dist/utils/{index.d.mts → esm/index.d.mts} +0 -0
@@ -1,25 +1,68 @@
1
1
  'use strict';
2
2
 
3
3
  var React12 = require('react');
4
- var styled3 = require('styled-components');
4
+ var baseStyled = require('styled-components');
5
5
  var RcTooltip = require('rc-tooltip');
6
6
  require('rc-tooltip/assets/bootstrap.css');
7
7
 
8
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
 
10
10
  var React12__default = /*#__PURE__*/_interopDefault(React12);
11
- var styled3__default = /*#__PURE__*/_interopDefault(styled3);
11
+ var baseStyled__default = /*#__PURE__*/_interopDefault(baseStyled);
12
12
  var RcTooltip__default = /*#__PURE__*/_interopDefault(RcTooltip);
13
13
 
14
14
  // src/Button/Button.tsx
15
- var IconWrapper = styled3__default.default.span`
15
+
16
+ // src/utils/context.ts
17
+ var globalTheme = {};
18
+ var registerGlobalTheme = (theme2) => {
19
+ Object.assign(globalTheme, { ...globalTheme, ...theme2 });
20
+ };
21
+ var getGlobalTheme = () => {
22
+ return globalTheme;
23
+ };
24
+ var registerGlobalContext = (context) => {
25
+ if (context.theme) {
26
+ registerGlobalTheme(context.theme);
27
+ }
28
+ };
29
+
30
+ // src/utils/styled.ts
31
+ var wrapWithTheme = (component) => {
32
+ if (component && typeof component === "object") {
33
+ component.defaultProps = {
34
+ ...component.defaultProps,
35
+ get theme() {
36
+ return getGlobalTheme();
37
+ }
38
+ };
39
+ }
40
+ return component;
41
+ };
42
+ var styledFunction = (tag) => {
43
+ return wrapWithTheme(baseStyled__default.default(tag));
44
+ };
45
+ var styledWithBase = Object.assign(styledFunction, baseStyled__default.default);
46
+ Object.keys(baseStyled__default.default).forEach((key) => {
47
+ const originalMethod = baseStyled__default.default[key];
48
+ if (typeof originalMethod === "function") {
49
+ styledWithBase[key] = (...args) => {
50
+ const component = originalMethod(...args);
51
+ return wrapWithTheme(component);
52
+ };
53
+ }
54
+ });
55
+ var styled = styledWithBase;
56
+
57
+ // src/Button/Button.tsx
58
+ var IconWrapper = styled.span`
16
59
  display: inline-flex;
17
60
  align-items: center;
18
61
  justify-content: center;
19
62
  flex-shrink: 0;
20
63
 
21
- ${({ $size, $position, theme }) => {
22
- const sizeConfig = theme.components.button[$size || "medium"];
64
+ ${({ $size, $position, theme: theme2 }) => {
65
+ const sizeConfig = theme2.components.button[$size || "medium"];
23
66
  const marginSide = $position === "before" ? "margin-right" : "margin-left";
24
67
  return `
25
68
  width: ${sizeConfig.iconSize.width};
@@ -34,7 +77,7 @@ var IconWrapper = styled3__default.default.span`
34
77
  `;
35
78
  }}
36
79
  `;
37
- var StyledButton = styled3__default.default.button`
80
+ var StyledButton = styled.button`
38
81
  display: inline-flex;
39
82
  align-items: center;
40
83
  justify-content: center;
@@ -44,8 +87,8 @@ var StyledButton = styled3__default.default.button`
44
87
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
45
88
 
46
89
  /* Size variants */
47
- ${({ $size, $isIconOnly, theme }) => {
48
- const sizeConfig = theme.components.button[$size || "medium"];
90
+ ${({ $size, $isIconOnly, theme: theme2 }) => {
91
+ const sizeConfig = theme2.components.button[$size || "medium"];
49
92
  if ($isIconOnly) {
50
93
  return `
51
94
  padding: 0;
@@ -64,10 +107,10 @@ var StyledButton = styled3__default.default.button`
64
107
  }}
65
108
 
66
109
  /* Variant and color type styles */
67
- ${({ $variant, $colorType, $isIconOnly, $iconBordered, theme }) => {
110
+ ${({ $variant, $colorType, $isIconOnly, $iconBordered, theme: theme2 }) => {
68
111
  if ($variant === "icon" || $isIconOnly) {
69
112
  const baseVariant = $iconBordered ? "outlined" : "text";
70
- const styles2 = theme.components.button[baseVariant]["default"];
113
+ const styles2 = theme2.components.button[baseVariant]["default"];
71
114
  return `
72
115
  background: ${styles2.background};
73
116
  color: ${styles2.color};
@@ -100,10 +143,12 @@ var StyledButton = styled3__default.default.button`
100
143
  const variant = $variant || "solid";
101
144
  const colorType = $colorType || "default";
102
145
  if (colorType === "status" && variant !== "text") {
103
- console.warn(`colorType 'status' is only available for 'text' variant. Falling back to 'default'.`);
146
+ console.warn(
147
+ `colorType 'status' is only available for 'text' variant. Falling back to 'default'.`
148
+ );
104
149
  }
105
150
  const effectiveColorType = colorType === "status" && variant !== "text" ? "default" : colorType;
106
- const styles = theme.components.button[variant][effectiveColorType];
151
+ const styles = theme2.components.button[variant][effectiveColorType];
107
152
  return `
108
153
  background: ${styles.background};
109
154
  color: ${styles.color};
@@ -166,7 +211,7 @@ var Button = ({
166
211
  );
167
212
  };
168
213
  Button.displayName = "Button";
169
- var SliderContainer = styled3__default.default.div`
214
+ var SliderContainer = styled.div`
170
215
  position: relative;
171
216
  display: flex;
172
217
  align-items: center;
@@ -175,17 +220,17 @@ var SliderContainer = styled3__default.default.div`
175
220
  cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
176
221
  user-select: none;
177
222
  `;
178
- var SliderTrack = styled3__default.default.div`
223
+ var SliderTrack = styled.div`
179
224
  position: absolute;
180
225
  left: 0;
181
226
  right: 0;
182
227
  height: 2px;
183
- background: ${({ theme }) => theme.colors.palettes.transparency["20"]};
228
+ background: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["20"]};
184
229
  border-radius: 1000px;
185
230
  top: 50%;
186
231
  transform: translateY(-50%);
187
232
  `;
188
- var SliderFill = styled3__default.default.div`
233
+ var SliderFill = styled.div`
189
234
  position: absolute;
190
235
  left: 0;
191
236
  height: 2px;
@@ -193,14 +238,14 @@ var SliderFill = styled3__default.default.div`
193
238
  top: 50%;
194
239
  transform: translateY(-50%);
195
240
  width: ${({ $percentage }) => $percentage}%;
196
- background: ${({ $disabled, theme }) => $disabled ? theme.colors.palettes.transparency["10"] : theme.colors.palettes.gray["100"]};
241
+ background: ${({ $disabled, theme: theme2 }) => $disabled ? theme2.colors.palettes.transparency["10"] : theme2.colors.palettes.gray["100"]};
197
242
  `;
198
- var SliderThumb = styled3__default.default.div`
243
+ var SliderThumb = styled.div`
199
244
  position: absolute;
200
245
  width: 10px;
201
246
  height: 10px;
202
247
  border-radius: 50%;
203
- background: ${({ $disabled, theme }) => $disabled ? theme.colors.palettes.transparency["30"] : theme.colors.palettes.blue["5"]};
248
+ background: ${({ $disabled, theme: theme2 }) => $disabled ? theme2.colors.palettes.transparency["30"] : theme2.colors.palettes.blue["5"]};
204
249
  left: ${({ $percentage }) => $percentage}%;
205
250
  top: 50%;
206
251
  transform: translate(-50%, -50%);
@@ -343,7 +388,7 @@ var Slider = ({
343
388
  );
344
389
  };
345
390
  Slider.displayName = "Slider";
346
- var NumberInputContainer = styled3__default.default.div`
391
+ var NumberInputContainer = styled.div`
347
392
  display: inline-flex;
348
393
  align-items: center;
349
394
  background: white;
@@ -359,35 +404,35 @@ var NumberInputContainer = styled3__default.default.div`
359
404
  width: 80px;
360
405
  `}
361
406
 
362
- ${({ $disabled, $alert, $isFocused, theme }) => {
407
+ ${({ $disabled, $alert, $isFocused, theme: theme2 }) => {
363
408
  if ($disabled) {
364
409
  return `
365
- border-color: ${theme.colors.palettes.transparency["10"]};
410
+ border-color: ${theme2.colors.palettes.transparency["10"]};
366
411
  cursor: not-allowed;
367
412
  `;
368
413
  }
369
414
  if ($alert) {
370
415
  return `
371
- border-color: ${theme.colors.palettes.red["6"]};
416
+ border-color: ${theme2.colors.palettes.red["6"]};
372
417
  `;
373
418
  }
374
419
  if ($isFocused) {
375
420
  return `
376
- border-color: ${theme.colors.palettes.transparency["30"]};
421
+ border-color: ${theme2.colors.palettes.transparency["30"]};
377
422
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
378
423
  `;
379
424
  }
380
425
  return `
381
- border-color: ${theme.colors.palettes.transparency["10"]};
426
+ border-color: ${theme2.colors.palettes.transparency["10"]};
382
427
 
383
428
  &:hover {
384
- border-color: ${theme.colors.palettes.transparency["20"]};
429
+ border-color: ${theme2.colors.palettes.transparency["20"]};
385
430
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
386
431
  }
387
432
  `;
388
433
  }}
389
434
  `;
390
- var InputWrapper = styled3__default.default.div`
435
+ var InputWrapper = styled.div`
391
436
  flex: 1;
392
437
  display: flex;
393
438
  align-items: center;
@@ -395,7 +440,7 @@ var InputWrapper = styled3__default.default.div`
395
440
  min-width: 0;
396
441
  gap: 4px;
397
442
  `;
398
- var UnitText = styled3__default.default.span`
443
+ var UnitText = styled.span`
399
444
  flex-shrink: 0;
400
445
  font-family: 'PingFang SC', sans-serif;
401
446
  font-weight: 400;
@@ -407,13 +452,13 @@ var UnitText = styled3__default.default.span`
407
452
  font-size: 13px;
408
453
  `}
409
454
 
410
- ${({ $disabled, theme }) => $disabled ? `
411
- color: ${theme.colors.palettes.transparency["30"]};
455
+ ${({ $disabled, theme: theme2 }) => $disabled ? `
456
+ color: ${theme2.colors.palettes.transparency["30"]};
412
457
  ` : `
413
- color: ${theme.colors.palettes.gray["120"]};
458
+ color: ${theme2.colors.palettes.gray["120"]};
414
459
  `}
415
460
  `;
416
- var StyledInput = styled3__default.default.input`
461
+ var StyledInput = styled.input`
417
462
  width: 100%;
418
463
  border: none;
419
464
  outline: none;
@@ -430,15 +475,15 @@ var StyledInput = styled3__default.default.input`
430
475
  font-size: 13px;
431
476
  `}
432
477
 
433
- ${({ $disabled, theme }) => $disabled ? `
434
- color: ${theme.colors.palettes.transparency["30"]};
478
+ ${({ $disabled, theme: theme2 }) => $disabled ? `
479
+ color: ${theme2.colors.palettes.transparency["30"]};
435
480
  cursor: not-allowed;
436
481
  ` : `
437
- color: ${theme.colors.palettes.gray["120"]};
482
+ color: ${theme2.colors.palettes.gray["120"]};
438
483
  `}
439
484
 
440
485
  &::placeholder {
441
- color: ${({ theme }) => theme.colors.palettes.transparency["30"]};
486
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["30"]};
442
487
  }
443
488
 
444
489
  /* Remove number input arrows */
@@ -453,24 +498,24 @@ var StyledInput = styled3__default.default.input`
453
498
  -moz-appearance: textfield;
454
499
  }
455
500
  `;
456
- var ButtonGroup = styled3__default.default.div`
501
+ var ButtonGroup = styled.div`
457
502
  display: flex;
458
503
  flex-direction: column;
459
504
  height: 100%;
460
505
  border-left: 1px solid;
461
506
  flex-shrink: 0;
462
507
 
463
- ${({ $disabled, $alert, theme }) => {
508
+ ${({ $disabled, $alert, theme: theme2 }) => {
464
509
  if ($disabled) {
465
- return `border-color: ${theme.colors.palettes.transparency["10"]};`;
510
+ return `border-color: ${theme2.colors.palettes.transparency["10"]};`;
466
511
  }
467
512
  if ($alert) {
468
- return `border-color: ${theme.colors.palettes.red["6"]};`;
513
+ return `border-color: ${theme2.colors.palettes.red["6"]};`;
469
514
  }
470
- return `border-color: ${theme.colors.palettes.transparency["10"]};`;
515
+ return `border-color: ${theme2.colors.palettes.transparency["10"]};`;
471
516
  }}
472
517
  `;
473
- var StepButton = styled3__default.default.button`
518
+ var StepButton = styled.button`
474
519
  flex: 1 1 50%;
475
520
  display: flex;
476
521
  align-items: center;
@@ -483,16 +528,16 @@ var StepButton = styled3__default.default.button`
483
528
  min-height: 0;
484
529
  overflow: hidden;
485
530
 
486
- ${({ $position, $alert, $disabled, theme }) => {
531
+ ${({ $position, $alert, $disabled, theme: theme2 }) => {
487
532
  if ($position === "up") {
488
533
  return `
489
- border-bottom: 1px solid ${$disabled ? theme.colors.palettes.transparency["10"] : $alert ? theme.colors.palettes.red["6"] : theme.colors.palettes.transparency["10"]};
534
+ border-bottom: 1px solid ${$disabled ? theme2.colors.palettes.transparency["10"] : $alert ? theme2.colors.palettes.red["6"] : theme2.colors.palettes.transparency["10"]};
490
535
  `;
491
536
  }
492
537
  return "";
493
538
  }}
494
539
 
495
- ${({ $disabled, theme }) => {
540
+ ${({ $disabled, theme: theme2 }) => {
496
541
  if ($disabled) {
497
542
  return `
498
543
  cursor: not-allowed;
@@ -501,11 +546,11 @@ var StepButton = styled3__default.default.button`
501
546
  }
502
547
  return `
503
548
  &:hover {
504
- background-color: ${theme.colors.palettes.transparency["5"]};
549
+ background-color: ${theme2.colors.palettes.transparency["5"]};
505
550
  }
506
551
 
507
552
  &:active {
508
- background-color: ${theme.colors.palettes.transparency["10"]};
553
+ background-color: ${theme2.colors.palettes.transparency["10"]};
509
554
  }
510
555
  `;
511
556
  }}
@@ -513,7 +558,7 @@ var StepButton = styled3__default.default.button`
513
558
  svg {
514
559
  width: 14px;
515
560
  height: 14px;
516
- fill: ${({ $disabled, theme }) => $disabled ? theme.colors.palettes.transparency["30"] : theme.colors.palettes.gray["120"]};
561
+ fill: ${({ $disabled, theme: theme2 }) => $disabled ? theme2.colors.palettes.transparency["30"] : theme2.colors.palettes.gray["120"]};
517
562
  }
518
563
  `;
519
564
  var UpArrow = () => /* @__PURE__ */ React12__default.default.createElement("svg", { viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12__default.default.createElement("path", { d: "M7 4.5L10.5 8.5H3.5L7 4.5Z", fill: "currentColor" }));
@@ -676,13 +721,13 @@ var NumberInput = ({
676
721
  NumberInput.displayName = "NumberInput";
677
722
 
678
723
  // src/Button/SpinButton.tsx
679
- var SpinButtonWrapper = styled3__default.default.div`
724
+ var SpinButtonWrapper = styled.div`
680
725
  display: inline-flex;
681
726
  align-items: center;
682
727
  gap: ${({ $showSlider }) => $showSlider ? "0" : "0"};
683
728
  width: ${({ $showSlider }) => $showSlider ? "100%" : "auto"};
684
729
  `;
685
- var SliderWrapper = styled3__default.default.div`
730
+ var SliderWrapper = styled.div`
686
731
  flex: 1;
687
732
  display: flex;
688
733
  align-items: center;
@@ -747,36 +792,36 @@ var SpinButton = ({
747
792
  ));
748
793
  };
749
794
  SpinButton.displayName = "SpinButton";
750
- var SwitchContainer = styled3__default.default.label`
795
+ var SwitchContainer = styled.label`
751
796
  position: relative;
752
797
  display: inline-block;
753
798
  cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
754
799
 
755
- ${({ $size, theme }) => {
756
- const sizeConfig = theme.components.switch[$size];
800
+ ${({ $size, theme: theme2 }) => {
801
+ const sizeConfig = theme2.components.switch[$size];
757
802
  return `
758
803
  width: ${sizeConfig.container.width};
759
804
  height: ${sizeConfig.container.height};
760
805
  `;
761
806
  }}
762
807
  `;
763
- var HiddenInput = styled3__default.default.input`
808
+ var HiddenInput = styled.input`
764
809
  position: absolute;
765
810
  opacity: 0;
766
811
  width: 0;
767
812
  height: 0;
768
813
  pointer-events: none;
769
814
  `;
770
- var Track = styled3__default.default.div`
815
+ var Track = styled.div`
771
816
  position: absolute;
772
817
  inset: 0;
773
818
  top: 50%;
774
819
  left: 50%;
775
820
  transform: translate(-50%, -50%);
776
- transition: ${({ theme }) => theme.components.switch.transition || "all 0.2s ease"};
821
+ transition: ${({ theme: theme2 }) => theme2.components.switch.transition || "all 0.2s ease"};
777
822
 
778
- ${({ $size, theme }) => {
779
- const sizeConfig = theme.components.switch[$size];
823
+ ${({ $size, theme: theme2 }) => {
824
+ const sizeConfig = theme2.components.switch[$size];
780
825
  return `
781
826
  border-radius: ${sizeConfig.track.borderRadius};
782
827
  width: ${sizeConfig.track.width};
@@ -784,8 +829,8 @@ var Track = styled3__default.default.div`
784
829
  `;
785
830
  }}
786
831
 
787
- ${({ $checked, $disabled, theme }) => {
788
- const stateConfig = $checked ? theme.components.switch.on : theme.components.switch.off;
832
+ ${({ $checked, $disabled, theme: theme2 }) => {
833
+ const stateConfig = $checked ? theme2.components.switch.on : theme2.components.switch.off;
789
834
  if ($disabled) {
790
835
  return `
791
836
  background: ${stateConfig.track.backgroundDisabled};
@@ -798,9 +843,9 @@ var Track = styled3__default.default.div`
798
843
  `;
799
844
  }}
800
845
 
801
- ${({ $disabled, $checked, theme }) => {
846
+ ${({ $disabled, $checked, theme: theme2 }) => {
802
847
  if ($disabled) return "";
803
- const stateConfig = $checked ? theme.components.switch.on : theme.components.switch.off;
848
+ const stateConfig = $checked ? theme2.components.switch.on : theme2.components.switch.off;
804
849
  return `
805
850
  :hover {
806
851
  background: ${stateConfig.track.backgroundHover};
@@ -809,16 +854,16 @@ var Track = styled3__default.default.div`
809
854
  `;
810
855
  }}
811
856
  `;
812
- var Thumb = styled3__default.default.div`
857
+ var Thumb = styled.div`
813
858
  position: absolute;
814
859
  top: 50%;
815
860
  transform: translateY(-50%);
816
861
  border-style: solid;
817
862
  box-sizing: border-box;
818
- transition: ${({ theme }) => theme.components.switch.transition || "all 0.2s ease"};
863
+ transition: ${({ theme: theme2 }) => theme2.components.switch.transition || "all 0.2s ease"};
819
864
 
820
- ${({ $size, $checked, theme }) => {
821
- const sizeConfig = theme.components.switch[$size];
865
+ ${({ $size, $checked, theme: theme2 }) => {
866
+ const sizeConfig = theme2.components.switch[$size];
822
867
  const thumbSize = sizeConfig.thumb.size;
823
868
  const thumbOffset = sizeConfig.thumb.offset;
824
869
  const thumbBorderRadius = sizeConfig.thumb.borderRadius;
@@ -832,8 +877,8 @@ var Thumb = styled3__default.default.div`
832
877
  `;
833
878
  }}
834
879
 
835
- ${({ $checked, $disabled, theme }) => {
836
- const stateConfig = $checked ? theme.components.switch.on : theme.components.switch.off;
880
+ ${({ $checked, $disabled, theme: theme2 }) => {
881
+ const stateConfig = $checked ? theme2.components.switch.on : theme2.components.switch.off;
837
882
  if ($disabled) {
838
883
  return `
839
884
  background: ${stateConfig.thumb.backgroundDisabled};
@@ -848,9 +893,9 @@ var Thumb = styled3__default.default.div`
848
893
  `;
849
894
  }}
850
895
 
851
- ${({ $disabled, $checked, theme }) => {
896
+ ${({ $disabled, $checked, theme: theme2 }) => {
852
897
  if ($disabled) return "";
853
- const stateConfig = $checked ? theme.components.switch.on : theme.components.switch.off;
898
+ const stateConfig = $checked ? theme2.components.switch.on : theme2.components.switch.off;
854
899
  return `
855
900
  :hover & {
856
901
  background: ${stateConfig.thumb.backgroundHover};
@@ -932,58 +977,58 @@ var Switch = ({
932
977
  );
933
978
  };
934
979
  Switch.displayName = "Switch";
935
- var RadioContainer = styled3__default.default.label`
980
+ var RadioContainer = styled.label`
936
981
  position: relative;
937
982
  display: inline-block;
938
983
  cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
939
984
 
940
- ${({ theme }) => {
941
- const sizeConfig = theme.components.radio.small;
985
+ ${({ theme: theme2 }) => {
986
+ const sizeConfig = theme2.components.radio.small;
942
987
  return `
943
988
  width: ${sizeConfig.size};
944
989
  height: ${sizeConfig.size};
945
990
  `;
946
991
  }}
947
992
  `;
948
- var HiddenInput2 = styled3__default.default.input`
993
+ var HiddenInput2 = styled.input`
949
994
  position: absolute;
950
995
  opacity: 0;
951
996
  width: 0;
952
997
  height: 0;
953
998
  pointer-events: none;
954
999
  `;
955
- var RadioOuter = styled3__default.default.div`
1000
+ var RadioOuter = styled.div`
956
1001
  position: absolute;
957
1002
  inset: 0;
958
1003
  border-radius: 50%;
959
1004
  border: 1px solid;
960
1005
  transition: all 0.2s ease;
961
1006
 
962
- ${({ $checked, $disabled, theme }) => {
1007
+ ${({ $checked, $disabled, theme: theme2 }) => {
963
1008
  if ($disabled) {
964
- const stateConfig = $checked ? theme.components.radio.checked : theme.components.radio.unchecked;
1009
+ const stateConfig = $checked ? theme2.components.radio.checked : theme2.components.radio.unchecked;
965
1010
  return `
966
1011
  background: ${stateConfig.backgroundDisabled};
967
1012
  border-color: ${stateConfig.borderColorDisabled};
968
1013
  `;
969
1014
  }
970
1015
  if ($checked) {
971
- const checkedConfig = theme.components.radio.checked;
1016
+ const checkedConfig = theme2.components.radio.checked;
972
1017
  return `
973
1018
  background: ${checkedConfig.background};
974
1019
  border-color: ${checkedConfig.borderColor};
975
1020
  `;
976
1021
  }
977
- const uncheckedConfig = theme.components.radio.unchecked;
1022
+ const uncheckedConfig = theme2.components.radio.unchecked;
978
1023
  return `
979
1024
  background: ${uncheckedConfig.background};
980
1025
  border-color: ${uncheckedConfig.borderColor};
981
1026
  `;
982
1027
  }}
983
1028
 
984
- ${({ $disabled, $checked, theme }) => {
1029
+ ${({ $disabled, $checked, theme: theme2 }) => {
985
1030
  if ($disabled) return "";
986
- const stateConfig = $checked ? theme.components.radio.checked : theme.components.radio.unchecked;
1031
+ const stateConfig = $checked ? theme2.components.radio.checked : theme2.components.radio.unchecked;
987
1032
  return `
988
1033
  ${RadioContainer}:hover & {
989
1034
  background: ${stateConfig.backgroundHover};
@@ -996,7 +1041,7 @@ var RadioOuter = styled3__default.default.div`
996
1041
  `;
997
1042
  }}
998
1043
  `;
999
- var RadioInner = styled3__default.default.div`
1044
+ var RadioInner = styled.div`
1000
1045
  position: absolute;
1001
1046
  left: 50%;
1002
1047
  top: 50%;
@@ -1006,8 +1051,8 @@ var RadioInner = styled3__default.default.div`
1006
1051
  opacity: ${({ $checked }) => $checked ? 1 : 0};
1007
1052
  transition: opacity 0.2s ease;
1008
1053
 
1009
- ${({ theme }) => {
1010
- const dotSize = theme.components.radio.small.dotSize;
1054
+ ${({ theme: theme2 }) => {
1055
+ const dotSize = theme2.components.radio.small.dotSize;
1011
1056
  return `
1012
1057
  width: ${dotSize};
1013
1058
  height: ${dotSize};
@@ -1086,71 +1131,71 @@ var Radio = ({
1086
1131
  );
1087
1132
  };
1088
1133
  Radio.displayName = "Radio";
1089
- var CheckboxContainer = styled3__default.default.label`
1134
+ var CheckboxContainer = styled.label`
1090
1135
  position: relative;
1091
1136
  display: inline-block;
1092
1137
  cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
1093
1138
 
1094
- ${({ theme }) => {
1095
- const sizeConfig = theme.components.checkbox.small;
1139
+ ${({ theme: theme2 }) => {
1140
+ const sizeConfig = theme2.components.checkbox.small;
1096
1141
  return `
1097
1142
  width: ${sizeConfig.size};
1098
1143
  height: ${sizeConfig.size};
1099
1144
  `;
1100
1145
  }}
1101
1146
  `;
1102
- var HiddenInput3 = styled3__default.default.input`
1147
+ var HiddenInput3 = styled.input`
1103
1148
  position: absolute;
1104
1149
  opacity: 0;
1105
1150
  width: 0;
1106
1151
  height: 0;
1107
1152
  pointer-events: none;
1108
1153
  `;
1109
- var CheckboxBox = styled3__default.default.div`
1154
+ var CheckboxBox = styled.div`
1110
1155
  position: absolute;
1111
1156
  inset: 1px;
1112
1157
  border: 1px solid;
1113
1158
  transition: all 0.2s ease;
1114
1159
 
1115
- ${({ theme }) => {
1116
- const sizeConfig = theme.components.checkbox.small;
1160
+ ${({ theme: theme2 }) => {
1161
+ const sizeConfig = theme2.components.checkbox.small;
1117
1162
  return `
1118
1163
  border-radius: ${sizeConfig.borderRadius};
1119
1164
  `;
1120
1165
  }}
1121
1166
 
1122
- ${({ $checked, $indeterminate, $disabled, theme }) => {
1167
+ ${({ $checked, $indeterminate, $disabled, theme: theme2 }) => {
1123
1168
  if ($disabled) {
1124
- const stateConfig = $checked || $indeterminate ? theme.components.checkbox.checked : theme.components.checkbox.unchecked;
1169
+ const stateConfig = $checked || $indeterminate ? theme2.components.checkbox.checked : theme2.components.checkbox.unchecked;
1125
1170
  return `
1126
1171
  background: ${stateConfig.backgroundDisabled};
1127
1172
  border-color: ${stateConfig.borderColorDisabled};
1128
1173
  `;
1129
1174
  }
1130
1175
  if ($checked) {
1131
- const checkedConfig = theme.components.checkbox.checked;
1176
+ const checkedConfig = theme2.components.checkbox.checked;
1132
1177
  return `
1133
1178
  background: ${checkedConfig.background};
1134
1179
  border-color: ${checkedConfig.borderColor};
1135
1180
  `;
1136
1181
  }
1137
1182
  if ($indeterminate) {
1138
- const indeterminateConfig = theme.components.checkbox.indeterminate;
1183
+ const indeterminateConfig = theme2.components.checkbox.indeterminate;
1139
1184
  return `
1140
1185
  background: ${indeterminateConfig.background};
1141
1186
  border-color: ${indeterminateConfig.borderColor};
1142
1187
  `;
1143
1188
  }
1144
- const uncheckedConfig = theme.components.checkbox.unchecked;
1189
+ const uncheckedConfig = theme2.components.checkbox.unchecked;
1145
1190
  return `
1146
1191
  background: ${uncheckedConfig.background};
1147
1192
  border-color: ${uncheckedConfig.borderColor};
1148
1193
  `;
1149
1194
  }}
1150
1195
 
1151
- ${({ $disabled, $checked, $indeterminate, theme }) => {
1196
+ ${({ $disabled, $checked, $indeterminate, theme: theme2 }) => {
1152
1197
  if ($disabled) return "";
1153
- const stateConfig = $checked || $indeterminate ? theme.components.checkbox.checked : theme.components.checkbox.unchecked;
1198
+ const stateConfig = $checked || $indeterminate ? theme2.components.checkbox.checked : theme2.components.checkbox.unchecked;
1154
1199
  return `
1155
1200
  ${CheckboxContainer}:hover & {
1156
1201
  background: ${stateConfig.backgroundHover};
@@ -1163,7 +1208,7 @@ var CheckboxBox = styled3__default.default.div`
1163
1208
  `;
1164
1209
  }}
1165
1210
  `;
1166
- var IconWrapper2 = styled3__default.default.div`
1211
+ var IconWrapper2 = styled.div`
1167
1212
  position: absolute;
1168
1213
  left: 50%;
1169
1214
  top: 50%;
@@ -1175,8 +1220,8 @@ var IconWrapper2 = styled3__default.default.div`
1175
1220
  align-items: center;
1176
1221
  justify-content: center;
1177
1222
 
1178
- ${({ theme }) => {
1179
- const iconSize = theme.components.checkbox.small.iconSize;
1223
+ ${({ theme: theme2 }) => {
1224
+ const iconSize = theme2.components.checkbox.small.iconSize;
1180
1225
  return `
1181
1226
  width: ${iconSize.width};
1182
1227
  height: ${iconSize.height};
@@ -1187,7 +1232,7 @@ var IconWrapper2 = styled3__default.default.div`
1187
1232
  display: block;
1188
1233
  }
1189
1234
  `;
1190
- var DefaultIndeterminateIcon = styled3__default.default.div`
1235
+ var DefaultIndeterminateIcon = styled.div`
1191
1236
  width: 8px;
1192
1237
  height: 2px;
1193
1238
  background: white;
@@ -1268,7 +1313,7 @@ var Checkbox = ({
1268
1313
  );
1269
1314
  };
1270
1315
  Checkbox.displayName = "Checkbox";
1271
- var InputWrapper2 = styled3__default.default.div`
1316
+ var InputWrapper2 = styled.div`
1272
1317
  display: inline-flex;
1273
1318
  align-items: center;
1274
1319
  width: 100%;
@@ -1276,9 +1321,9 @@ var InputWrapper2 = styled3__default.default.div`
1276
1321
  position: relative;
1277
1322
  transition: all 0.2s ease;
1278
1323
 
1279
- ${({ $size, theme }) => {
1324
+ ${({ $size, theme: theme2 }) => {
1280
1325
  const size = $size || "medium";
1281
- const sizeConfig = theme.components.input.outlined[size];
1326
+ const sizeConfig = theme2.components.input.outlined[size];
1282
1327
  return `
1283
1328
  height: ${sizeConfig.height};
1284
1329
  border-radius: ${sizeConfig.borderRadius};
@@ -1288,8 +1333,8 @@ var InputWrapper2 = styled3__default.default.div`
1288
1333
  `;
1289
1334
  }}
1290
1335
 
1291
- ${({ $error, $disabled, $readOnly, $isFocused, theme, $size }) => {
1292
- const stateConfig = theme.components.input.outlined.state;
1336
+ ${({ $error, $disabled, $readOnly, $isFocused, theme: theme2, $size }) => {
1337
+ const stateConfig = theme2.components.input.outlined.state;
1293
1338
  let borderColor = stateConfig.borderColor;
1294
1339
  let background = stateConfig.background;
1295
1340
  let boxShadow = "none";
@@ -1306,7 +1351,7 @@ var InputWrapper2 = styled3__default.default.div`
1306
1351
  borderColor = stateConfig.borderColorActive;
1307
1352
  background = stateConfig.backgroundActive;
1308
1353
  const size = $size || "medium";
1309
- boxShadow = theme.components.input.outlined[size].boxShadowActive;
1354
+ boxShadow = theme2.components.input.outlined[size].boxShadowActive;
1310
1355
  }
1311
1356
  return `
1312
1357
  border: 1px solid ${borderColor};
@@ -1327,7 +1372,7 @@ var InputWrapper2 = styled3__default.default.div`
1327
1372
  opacity: 1;
1328
1373
  `}
1329
1374
  `;
1330
- var StyledInput2 = styled3__default.default.input`
1375
+ var StyledInput2 = styled.input`
1331
1376
  flex: 1;
1332
1377
  border: none;
1333
1378
  outline: none;
@@ -1336,11 +1381,11 @@ var StyledInput2 = styled3__default.default.input`
1336
1381
  padding: 0;
1337
1382
  margin: 0;
1338
1383
  font-family: inherit;
1339
- color: ${({ theme }) => theme.components.input.outlined.state.borderColorActive};
1384
+ color: ${({ theme: theme2 }) => theme2.components.input.outlined.state.borderColorActive};
1340
1385
 
1341
- ${({ $size, theme }) => {
1386
+ ${({ $size, theme: theme2 }) => {
1342
1387
  const size = $size || "medium";
1343
- const sizeConfig = theme.components.input.outlined[size];
1388
+ const sizeConfig = theme2.components.input.outlined[size];
1344
1389
  return `
1345
1390
  font-size: ${sizeConfig.fontSize};
1346
1391
  line-height: ${sizeConfig.lineHeight};
@@ -1348,27 +1393,27 @@ var StyledInput2 = styled3__default.default.input`
1348
1393
  }}
1349
1394
 
1350
1395
  &::placeholder {
1351
- color: ${({ theme }) => theme.colors.palettes.transparency["30"]};
1396
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["30"]};
1352
1397
  }
1353
1398
 
1354
- ${({ $disabled, theme }) => $disabled && `
1399
+ ${({ $disabled, theme: theme2 }) => $disabled && `
1355
1400
  cursor: not-allowed;
1356
- color: ${theme.colors.palettes.transparency["30"]};
1401
+ color: ${theme2.colors.palettes.transparency["30"]};
1357
1402
  `}
1358
1403
 
1359
1404
  ${({ $readOnly }) => $readOnly && `
1360
1405
  cursor: default;
1361
1406
  `}
1362
1407
  `;
1363
- var PrefixNode = styled3__default.default.div`
1408
+ var PrefixNode = styled.div`
1364
1409
  display: inline-flex;
1365
1410
  align-items: center;
1366
1411
  flex-shrink: 0;
1367
1412
  margin-right: 4px;
1368
1413
 
1369
- ${({ $size, theme }) => {
1414
+ ${({ $size, theme: theme2 }) => {
1370
1415
  const size = $size || "medium";
1371
- const sizeConfig = theme.components.input.outlined[size];
1416
+ const sizeConfig = theme2.components.input.outlined[size];
1372
1417
  return `
1373
1418
  svg, img {
1374
1419
  width: ${sizeConfig.iconSize.width};
@@ -1377,15 +1422,15 @@ var PrefixNode = styled3__default.default.div`
1377
1422
  `;
1378
1423
  }}
1379
1424
  `;
1380
- var SuffixNode = styled3__default.default.div`
1425
+ var SuffixNode = styled.div`
1381
1426
  display: inline-flex;
1382
1427
  align-items: center;
1383
1428
  flex-shrink: 0;
1384
1429
  margin-left: 4px;
1385
1430
 
1386
- ${({ $size, theme }) => {
1431
+ ${({ $size, theme: theme2 }) => {
1387
1432
  const size = $size || "medium";
1388
- const sizeConfig = theme.components.input.outlined[size];
1433
+ const sizeConfig = theme2.components.input.outlined[size];
1389
1434
  return `
1390
1435
  svg, img {
1391
1436
  width: ${sizeConfig.iconSize.width};
@@ -1448,14 +1493,14 @@ var Input = React12.forwardRef(
1448
1493
  }
1449
1494
  );
1450
1495
  Input.displayName = "Input";
1451
- var SearchIconWrapper = styled3__default.default.div`
1496
+ var SearchIconWrapper = styled.div`
1452
1497
  display: inline-flex;
1453
1498
  align-items: center;
1454
1499
  justify-content: center;
1455
1500
  flex-shrink: 0;
1456
1501
 
1457
- ${({ $size, theme }) => {
1458
- const sizeConfig = theme.components.input.outlined[$size === "extraLarge" ? "extraLarge" : "large"];
1502
+ ${({ $size, theme: theme2 }) => {
1503
+ const sizeConfig = theme2.components.input.outlined[$size === "extraLarge" ? "extraLarge" : "large"];
1459
1504
  return `
1460
1505
  width: ${sizeConfig.iconSize.width};
1461
1506
  height: ${sizeConfig.iconSize.height};
@@ -1465,10 +1510,10 @@ var SearchIconWrapper = styled3__default.default.div`
1465
1510
  svg {
1466
1511
  width: 100%;
1467
1512
  height: 100%;
1468
- color: ${({ theme }) => theme.colors.palettes.transparency["100"]};
1513
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["100"]};
1469
1514
  }
1470
1515
  `;
1471
- var ClearButton = styled3__default.default.button`
1516
+ var ClearButton = styled.button`
1472
1517
  display: inline-flex;
1473
1518
  align-items: center;
1474
1519
  justify-content: center;
@@ -1481,8 +1526,8 @@ var ClearButton = styled3__default.default.button`
1481
1526
  outline: none;
1482
1527
  transition: opacity 0.2s ease;
1483
1528
 
1484
- ${({ $size, theme }) => {
1485
- const sizeConfig = theme.components.input.outlined[$size === "extraLarge" ? "extraLarge" : "large"];
1529
+ ${({ $size, theme: theme2 }) => {
1530
+ const sizeConfig = theme2.components.input.outlined[$size === "extraLarge" ? "extraLarge" : "large"];
1486
1531
  return `
1487
1532
  width: ${sizeConfig.iconSize.width};
1488
1533
  height: ${sizeConfig.iconSize.height};
@@ -1492,7 +1537,7 @@ var ClearButton = styled3__default.default.button`
1492
1537
  svg {
1493
1538
  width: 100%;
1494
1539
  height: 100%;
1495
- color: ${({ theme }) => theme.colors.palettes.transparency["100"]};
1540
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.transparency["100"]};
1496
1541
  }
1497
1542
 
1498
1543
  &:hover {
@@ -1610,7 +1655,7 @@ var useIconRegistry = () => {
1610
1655
  IconProvider.displayName = "IconProvider";
1611
1656
 
1612
1657
  // src/Icon/Icon.tsx
1613
- var IconContainer = styled3__default.default.span`
1658
+ var IconContainer = styled.span`
1614
1659
  display: inline-flex;
1615
1660
  align-items: center;
1616
1661
  justify-content: center;
@@ -1676,15 +1721,15 @@ var Icon = ({
1676
1721
  );
1677
1722
  };
1678
1723
  Icon.displayName = "Icon";
1679
- var ToastContainer = styled3__default.default.div`
1724
+ var ToastContainer = styled.div`
1680
1725
  display: inline-flex;
1681
1726
  align-items: center;
1682
1727
  gap: 8px;
1683
1728
  border: 1px solid;
1684
1729
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
1685
1730
 
1686
- ${({ theme }) => {
1687
- const baseConfig = theme.components.toast;
1731
+ ${({ theme: theme2 }) => {
1732
+ const baseConfig = theme2.components.toast;
1688
1733
  return `
1689
1734
  padding: ${baseConfig.padding};
1690
1735
  border-radius: ${baseConfig.borderRadius};
@@ -1693,42 +1738,42 @@ var ToastContainer = styled3__default.default.div`
1693
1738
  `;
1694
1739
  }}
1695
1740
 
1696
- ${({ $variant, theme }) => {
1697
- const variantConfig = theme.components.toast[$variant];
1741
+ ${({ $variant, theme: theme2 }) => {
1742
+ const variantConfig = theme2.components.toast[$variant];
1698
1743
  return `
1699
1744
  background: ${variantConfig.background};
1700
1745
  border-color: ${variantConfig.borderColor};
1701
1746
  `;
1702
1747
  }}
1703
1748
  `;
1704
- var IconWrapper3 = styled3__default.default.div`
1749
+ var IconWrapper3 = styled.div`
1705
1750
  display: flex;
1706
1751
  align-items: center;
1707
1752
  justify-content: center;
1708
1753
  flex-shrink: 0;
1709
1754
 
1710
- ${({ $variant, theme }) => {
1711
- const iconConfig = theme.components.toast[$variant].icon;
1755
+ ${({ $variant, theme: theme2 }) => {
1756
+ const iconConfig = theme2.components.toast[$variant].icon;
1712
1757
  return `
1713
1758
  width: ${iconConfig.size.width};
1714
1759
  height: ${iconConfig.size.height};
1715
1760
  `;
1716
1761
  }}
1717
1762
  `;
1718
- var Message = styled3__default.default.span`
1763
+ var Message = styled.span`
1719
1764
  flex: 1;
1720
1765
  line-height: 20px;
1721
- color: ${({ theme }) => theme.colors.palettes.gray["120"]};
1766
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.gray["120"]};
1722
1767
  `;
1723
- var ActionButton = styled3__default.default.button`
1768
+ var ActionButton = styled.button`
1724
1769
  background: transparent;
1725
1770
  border: none;
1726
1771
  cursor: pointer;
1727
1772
  padding: 0;
1728
1773
  outline: none;
1729
1774
 
1730
- ${({ $variant, theme }) => {
1731
- const buttonConfig = theme.components.toast[$variant].button;
1775
+ ${({ $variant, theme: theme2 }) => {
1776
+ const buttonConfig = theme2.components.toast[$variant].button;
1732
1777
  return `
1733
1778
  font-size: ${buttonConfig.fontSize};
1734
1779
  font-weight: ${buttonConfig.fontWeight};
@@ -1745,7 +1790,7 @@ var ActionButton = styled3__default.default.button`
1745
1790
  opacity: 0.6;
1746
1791
  }
1747
1792
  `;
1748
- var CloseButton = styled3__default.default.button`
1793
+ var CloseButton = styled.button`
1749
1794
  background: transparent;
1750
1795
  border: none;
1751
1796
  cursor: pointer;
@@ -1755,16 +1800,16 @@ var CloseButton = styled3__default.default.button`
1755
1800
  display: flex;
1756
1801
  align-items: center;
1757
1802
  justify-content: center;
1758
- color: ${({ theme }) => theme.colors.palettes.gray["60"]};
1803
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.gray["60"]};
1759
1804
  flex-shrink: 0;
1760
1805
  outline: none;
1761
1806
 
1762
1807
  &:hover {
1763
- color: ${({ theme }) => theme.colors.palettes.gray["100"]};
1808
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.gray["100"]};
1764
1809
  }
1765
1810
 
1766
1811
  &:active {
1767
- color: ${({ theme }) => theme.colors.palettes.gray["120"]};
1812
+ color: ${({ theme: theme2 }) => theme2.colors.palettes.gray["120"]};
1768
1813
  }
1769
1814
  `;
1770
1815
  var SuccessIcon = () => /* @__PURE__ */ React12__default.default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12__default.default.createElement("circle", { cx: "10", cy: "10", r: "8", fill: "#4ea44b" }), /* @__PURE__ */ React12__default.default.createElement("path", { d: "M6 10L9 13L14 7", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }));
@@ -1842,7 +1887,7 @@ var Toast = ({
1842
1887
  };
1843
1888
  Toast.displayName = "Toast";
1844
1889
  var ToastContext = React12.createContext(null);
1845
- var ToastWrapper = styled3__default.default.div`
1890
+ var ToastWrapper = styled.div`
1846
1891
  position: fixed;
1847
1892
  top: 24px;
1848
1893
  right: 24px;
@@ -1915,17 +1960,17 @@ var useToast = () => {
1915
1960
  return context;
1916
1961
  };
1917
1962
  ToastContainer2.displayName = "ToastContainer";
1918
- var TabContainer = styled3__default.default.div`
1963
+ var TabContainer = styled.div`
1919
1964
  display: flex;
1920
1965
  flex-direction: column;
1921
1966
  `;
1922
- var TabList = styled3__default.default.div`
1967
+ var TabList = styled.div`
1923
1968
  display: flex;
1924
1969
  align-items: center;
1925
1970
  position: relative;
1926
1971
 
1927
- ${({ $variant, theme }) => {
1928
- const variantConfig = theme.components.tab[$variant];
1972
+ ${({ $variant, theme: theme2 }) => {
1973
+ const variantConfig = theme2.components.tab[$variant];
1929
1974
  return `
1930
1975
  gap: ${variantConfig.layout.gap};
1931
1976
  `;
@@ -1940,7 +1985,7 @@ var TabList = styled3__default.default.div`
1940
1985
  return "";
1941
1986
  }}
1942
1987
  `;
1943
- var TabItem = styled3__default.default.button`
1988
+ var TabItem = styled.button`
1944
1989
  display: inline-flex;
1945
1990
  align-items: center;
1946
1991
  justify-content: center;
@@ -1952,8 +1997,8 @@ var TabItem = styled3__default.default.button`
1952
1997
  position: relative;
1953
1998
  white-space: nowrap;
1954
1999
 
1955
- ${({ theme }) => {
1956
- const sizeConfig = theme.components.tab.large;
2000
+ ${({ theme: theme2 }) => {
2001
+ const sizeConfig = theme2.components.tab.large;
1957
2002
  return `
1958
2003
  height: ${sizeConfig.height};
1959
2004
  padding: ${sizeConfig.padding};
@@ -1964,8 +2009,8 @@ var TabItem = styled3__default.default.button`
1964
2009
  `;
1965
2010
  }}
1966
2011
 
1967
- ${({ $variant, $active, $disabled, theme }) => {
1968
- const variantConfig = theme.components.tab[$variant];
2012
+ ${({ $variant, $active, $disabled, theme: theme2 }) => {
2013
+ const variantConfig = theme2.components.tab[$variant];
1969
2014
  const itemConfig = variantConfig.item;
1970
2015
  if ($disabled) {
1971
2016
  return `
@@ -1988,9 +2033,9 @@ var TabItem = styled3__default.default.button`
1988
2033
  `;
1989
2034
  }}
1990
2035
 
1991
- ${({ $variant, $disabled, theme }) => {
2036
+ ${({ $variant, $disabled, theme: theme2 }) => {
1992
2037
  if ($disabled) return "";
1993
- const variantConfig = theme.components.tab[$variant];
2038
+ const variantConfig = theme2.components.tab[$variant];
1994
2039
  const itemConfig = variantConfig.item;
1995
2040
  return `
1996
2041
  &:hover {
@@ -2099,9 +2144,10 @@ var Tooltip = ({
2099
2144
  return /* @__PURE__ */ React12__default.default.createElement(RcTooltip__default.default, { ...tooltipProps }, children);
2100
2145
  };
2101
2146
  Tooltip.displayName = "Tooltip";
2147
+ var theme = getGlobalTheme();
2102
2148
  var paddingDistance = "5px";
2103
2149
  var positionDistance = "0";
2104
- var TooltipGlobalStyles = styled3.createGlobalStyle`
2150
+ var TooltipGlobalStyles = baseStyled.createGlobalStyle`
2105
2151
  .rc-tooltip {
2106
2152
  opacity: 1;
2107
2153
  }
@@ -2207,16 +2253,16 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2207
2253
 
2208
2254
  /* Black variant */
2209
2255
  .tooltip-variant-black .rc-tooltip-inner {
2210
- background: ${({ theme }) => theme.components.tooltip.black.background};
2211
- border: 1px solid ${({ theme }) => theme.components.tooltip.black.borderColor};
2212
- color: ${({ theme }) => theme.components.tooltip.black.color};
2213
- border-radius: ${({ theme }) => theme.components.tooltip.black.borderRadius};
2214
- padding: ${({ theme }) => theme.components.tooltip.black.padding};
2215
- box-shadow: ${({ theme }) => theme.components.tooltip.black.boxShadow};
2216
- font-size: ${({ theme }) => theme.components.tooltip.black.fontSize};
2217
- line-height: ${({ theme }) => theme.components.tooltip.black.lineHeight};
2218
- font-weight: ${({ theme }) => theme.components.tooltip.black.fontWeight};
2219
- max-width: ${({ theme }) => theme.components.tooltip.black.maxWidth};
2256
+ background: ${() => theme.components.tooltip.black.background};
2257
+ border: 1px solid ${() => theme.components.tooltip.black.borderColor};
2258
+ color: ${() => theme.components.tooltip.black.color};
2259
+ border-radius: ${() => theme.components.tooltip.black.borderRadius};
2260
+ padding: ${() => theme.components.tooltip.black.padding};
2261
+ box-shadow: ${() => theme.components.tooltip.black.boxShadow};
2262
+ font-size: ${() => theme.components.tooltip.black.fontSize};
2263
+ line-height: ${() => theme.components.tooltip.black.lineHeight};
2264
+ font-weight: ${() => theme.components.tooltip.black.fontWeight};
2265
+ max-width: ${() => theme.components.tooltip.black.maxWidth};
2220
2266
  text-align: left;
2221
2267
  text-decoration: none;
2222
2268
  }
@@ -2227,7 +2273,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2227
2273
  bottom: ${positionDistance};
2228
2274
  margin-left: -5px;
2229
2275
  border-width: 5px 5px 0;
2230
- border-top-color: ${({ theme }) => theme.components.tooltip.black.background};
2276
+ border-top-color: ${() => theme.components.tooltip.black.background};
2231
2277
  }
2232
2278
 
2233
2279
  .tooltip-variant-black.rc-tooltip-placement-right .rc-tooltip-arrow,
@@ -2236,7 +2282,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2236
2282
  left: ${positionDistance};
2237
2283
  margin-top: -5px;
2238
2284
  border-width: 5px 5px 5px 0;
2239
- border-right-color: ${({ theme }) => theme.components.tooltip.black.background};
2285
+ border-right-color: ${() => theme.components.tooltip.black.background};
2240
2286
  }
2241
2287
 
2242
2288
  .tooltip-variant-black.rc-tooltip-placement-left .rc-tooltip-arrow,
@@ -2245,7 +2291,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2245
2291
  right: ${positionDistance};
2246
2292
  margin-top: -5px;
2247
2293
  border-width: 5px 0 5px 5px;
2248
- border-left-color: ${({ theme }) => theme.components.tooltip.black.background};
2294
+ border-left-color: ${() => theme.components.tooltip.black.background};
2249
2295
  }
2250
2296
 
2251
2297
  .tooltip-variant-black.rc-tooltip-placement-bottom .rc-tooltip-arrow,
@@ -2254,20 +2300,20 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2254
2300
  top: ${positionDistance};
2255
2301
  margin-left: -5px;
2256
2302
  border-width: 0 5px 5px;
2257
- border-bottom-color: ${({ theme }) => theme.components.tooltip.black.background};
2303
+ border-bottom-color: ${() => theme.components.tooltip.black.background};
2258
2304
  }
2259
2305
 
2260
2306
  /* White variant - small size */
2261
2307
  .tooltip-variant-white.tooltip-size-small .rc-tooltip-inner {
2262
- background: ${({ theme }) => theme.components.tooltip.white.small.background};
2263
- border: 1px solid ${({ theme }) => theme.components.tooltip.white.small.borderColor};
2264
- color: ${({ theme }) => theme.components.tooltip.white.small.color};
2265
- border-radius: ${({ theme }) => theme.components.tooltip.white.small.borderRadius};
2266
- padding: ${({ theme }) => theme.components.tooltip.white.small.padding};
2267
- box-shadow: ${({ theme }) => theme.components.tooltip.white.small.boxShadow};
2268
- font-size: ${({ theme }) => theme.components.tooltip.white.small.fontSize};
2269
- line-height: ${({ theme }) => theme.components.tooltip.white.small.lineHeight};
2270
- font-weight: ${({ theme }) => theme.components.tooltip.white.small.fontWeight};
2308
+ background: ${() => theme.components.tooltip.white.small.background};
2309
+ border: 1px solid ${() => theme.components.tooltip.white.small.borderColor};
2310
+ color: ${() => theme.components.tooltip.white.small.color};
2311
+ border-radius: ${() => theme.components.tooltip.white.small.borderRadius};
2312
+ padding: ${() => theme.components.tooltip.white.small.padding};
2313
+ box-shadow: ${() => theme.components.tooltip.white.small.boxShadow};
2314
+ font-size: ${() => theme.components.tooltip.white.small.fontSize};
2315
+ line-height: ${() => theme.components.tooltip.white.small.lineHeight};
2316
+ font-weight: ${() => theme.components.tooltip.white.small.fontWeight};
2271
2317
  text-align: left;
2272
2318
  text-decoration: none;
2273
2319
  }
@@ -2278,7 +2324,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2278
2324
  bottom: ${positionDistance};
2279
2325
  margin-left: -5px;
2280
2326
  border-width: 5px 5px 0;
2281
- border-top-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2327
+ border-top-color: ${() => theme.components.tooltip.white.small.background};
2282
2328
  }
2283
2329
 
2284
2330
  .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-right .rc-tooltip-arrow,
@@ -2287,7 +2333,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2287
2333
  left: ${positionDistance};
2288
2334
  margin-top: -5px;
2289
2335
  border-width: 5px 5px 5px 0;
2290
- border-right-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2336
+ border-right-color: ${() => theme.components.tooltip.white.small.background};
2291
2337
  }
2292
2338
 
2293
2339
  .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-left .rc-tooltip-arrow,
@@ -2296,7 +2342,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2296
2342
  right: ${positionDistance};
2297
2343
  margin-top: -5px;
2298
2344
  border-width: 5px 0 5px 5px;
2299
- border-left-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2345
+ border-left-color: ${() => theme.components.tooltip.white.small.background};
2300
2346
  }
2301
2347
 
2302
2348
  .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-bottom .rc-tooltip-arrow,
@@ -2305,20 +2351,20 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2305
2351
  top: ${positionDistance};
2306
2352
  margin-left: -5px;
2307
2353
  border-width: 0 5px 5px;
2308
- border-bottom-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2354
+ border-bottom-color: ${() => theme.components.tooltip.white.small.background};
2309
2355
  }
2310
2356
 
2311
2357
  /* White variant - large size */
2312
2358
  .tooltip-variant-white.tooltip-size-large .rc-tooltip-inner {
2313
- background: ${({ theme }) => theme.components.tooltip.white.large.background};
2314
- border: 1px solid ${({ theme }) => theme.components.tooltip.white.large.borderColor};
2315
- color: ${({ theme }) => theme.components.tooltip.white.large.color};
2316
- border-radius: ${({ theme }) => theme.components.tooltip.white.large.borderRadius};
2317
- padding: ${({ theme }) => theme.components.tooltip.white.large.padding};
2318
- box-shadow: ${({ theme }) => theme.components.tooltip.white.large.boxShadow};
2319
- font-size: ${({ theme }) => theme.components.tooltip.white.large.fontSize};
2320
- line-height: ${({ theme }) => theme.components.tooltip.white.large.lineHeight};
2321
- font-weight: ${({ theme }) => theme.components.tooltip.white.large.fontWeight};
2359
+ background: ${() => theme.components.tooltip.white.large.background};
2360
+ border: 1px solid ${() => theme.components.tooltip.white.large.borderColor};
2361
+ color: ${() => theme.components.tooltip.white.large.color};
2362
+ border-radius: ${() => theme.components.tooltip.white.large.borderRadius};
2363
+ padding: ${() => theme.components.tooltip.white.large.padding};
2364
+ box-shadow: ${() => theme.components.tooltip.white.large.boxShadow};
2365
+ font-size: ${() => theme.components.tooltip.white.large.fontSize};
2366
+ line-height: ${() => theme.components.tooltip.white.large.lineHeight};
2367
+ font-weight: ${() => theme.components.tooltip.white.large.fontWeight};
2322
2368
  text-align: left;
2323
2369
  text-decoration: none;
2324
2370
  }
@@ -2329,7 +2375,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2329
2375
  bottom: ${positionDistance};
2330
2376
  margin-left: -5px;
2331
2377
  border-width: 5px 5px 0;
2332
- border-top-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2378
+ border-top-color: ${() => theme.components.tooltip.white.large.background};
2333
2379
  }
2334
2380
 
2335
2381
  .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-right .rc-tooltip-arrow,
@@ -2338,7 +2384,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2338
2384
  left: ${positionDistance};
2339
2385
  margin-top: -5px;
2340
2386
  border-width: 5px 5px 5px 0;
2341
- border-right-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2387
+ border-right-color: ${() => theme.components.tooltip.white.large.background};
2342
2388
  }
2343
2389
 
2344
2390
  .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-left .rc-tooltip-arrow,
@@ -2347,7 +2393,7 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2347
2393
  right: ${positionDistance};
2348
2394
  margin-top: -5px;
2349
2395
  border-width: 5px 0 5px 5px;
2350
- border-left-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2396
+ border-left-color: ${() => theme.components.tooltip.white.large.background};
2351
2397
  }
2352
2398
 
2353
2399
  .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-bottom .rc-tooltip-arrow,
@@ -2356,33 +2402,368 @@ var TooltipGlobalStyles = styled3.createGlobalStyle`
2356
2402
  top: ${positionDistance};
2357
2403
  margin-left: -5px;
2358
2404
  border-width: 0 5px 5px;
2359
- border-bottom-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2405
+ border-bottom-color: ${() => theme.components.tooltip.white.large.background};
2360
2406
  }
2361
2407
  `;
2362
- var UIConfigContext = React12.createContext(null);
2363
- var UIConfigProvider = ({
2364
- config,
2365
- children
2408
+ var ToolbarButtonContainer = styled.div`
2409
+ display: inline-flex;
2410
+ align-items: center;
2411
+ border: 1px solid;
2412
+ border-radius: 2px;
2413
+ transition: border-color 0.15s ease;
2414
+ box-sizing: border-box;
2415
+
2416
+ ${({ $disabled, $active, theme: theme2 }) => {
2417
+ const config = theme2.components.toolbarButton;
2418
+ if ($disabled) {
2419
+ return `
2420
+ border-color: ${config.border.borderColorDisabled};
2421
+ `;
2422
+ }
2423
+ if ($active) {
2424
+ return `
2425
+ border-color: ${config.border.borderColorActive};
2426
+
2427
+ ${Divider} {
2428
+ background-color: ${config.border.borderColorActive};
2429
+ }
2430
+ `;
2431
+ }
2432
+ return `
2433
+ border-color: ${config.border.borderColor};
2434
+
2435
+ &:hover {
2436
+ border-color: ${config.border.borderColorHover};
2437
+ box-shadow: ${config.boxShadow.boxShadowHover};
2438
+ ${Divider} {
2439
+ background-color: ${config.border.borderColorHover};
2440
+ }
2441
+ }
2442
+
2443
+ button:active {
2444
+ box-shadow: ${config.boxShadow.boxShadowClick};
2445
+ ${Divider} {
2446
+ background-color: ${config.border.borderColorClick};
2447
+ }
2448
+ }
2449
+ `;
2450
+ }}
2451
+ `;
2452
+ var MainButton = styled.button`
2453
+ display: flex;
2454
+ align-items: center;
2455
+ justify-content: center;
2456
+ border: none;
2457
+ cursor: pointer;
2458
+ outline: none;
2459
+ transition: background-color 0.15s ease;
2460
+
2461
+ ${({ $hasLabel, theme: theme2 }) => {
2462
+ const config = theme2.components.toolbarButton;
2463
+ return `
2464
+ height: ${config.layout.height};
2465
+ padding: ${$hasLabel ? config.layout.content.padding : config.layout.padding};
2466
+ `;
2467
+ }}
2468
+
2469
+ ${({ $disabled, $active, theme: theme2 }) => {
2470
+ const config = theme2.components.toolbarButton;
2471
+ if ($disabled) {
2472
+ return `
2473
+ cursor: not-allowed;
2474
+ background: ${config.background.backgroundDisabled};
2475
+ `;
2476
+ }
2477
+ if ($active) {
2478
+ return `
2479
+ background: ${config.background.backgroundActive};
2480
+ `;
2481
+ }
2482
+ return `
2483
+ background: ${config.background.background};
2484
+
2485
+ &:hover {
2486
+ background: ${config.background.backgroundHover};
2487
+ }
2488
+
2489
+ &:active {
2490
+ background: ${config.background.backgroundClick};
2491
+ }
2492
+ `;
2493
+ }}
2494
+ `;
2495
+ var IconWrapper4 = styled.span`
2496
+ display: inline-flex;
2497
+ align-items: center;
2498
+ justify-content: center;
2499
+ flex-shrink: 0;
2500
+
2501
+ ${({ theme: theme2 }) => {
2502
+ const config = theme2.components.toolbarButton;
2503
+ return `
2504
+ width: ${config.layout.content.iconSize.width};
2505
+ height: ${config.layout.content.iconSize.height};
2506
+ `;
2507
+ }}
2508
+
2509
+ ${({ $disabled, theme: theme2 }) => {
2510
+ const config = theme2.components.toolbarButton;
2511
+ return $disabled ? `
2512
+ color: ${config.color.colorDisabled};
2513
+ ` : `
2514
+ color: ${config.color.color};
2515
+ `;
2516
+ }}
2517
+
2518
+ svg, img {
2519
+ width: 100%;
2520
+ height: 100%;
2521
+ display: block;
2522
+ }
2523
+ `;
2524
+ var LabelText = styled.span`
2525
+ font-family: 'PingFang SC', sans-serif;
2526
+ white-space: nowrap;
2527
+
2528
+ ${({ theme: theme2 }) => {
2529
+ const config = theme2.components.toolbarButton;
2530
+ return `
2531
+ font-size: ${config.typography.fontSize};
2532
+ font-weight: ${config.typography.fontWeight};
2533
+ line-height: 20px;
2534
+ padding: ${config.layout.content.padding};
2535
+ `;
2536
+ }}
2537
+
2538
+ ${({ $disabled, theme: theme2 }) => {
2539
+ const config = theme2.components.toolbarButton;
2540
+ return $disabled ? `
2541
+ color: ${config.color.colorDisabled};
2542
+ ` : `
2543
+ color: ${config.color.color};
2544
+ `;
2545
+ }}
2546
+ `;
2547
+ var DropdownButton = styled.button`
2548
+ display: flex;
2549
+ align-items: center;
2550
+ justify-content: center;
2551
+ cursor: pointer;
2552
+ outline: none;
2553
+ border: none;
2554
+ transition: background-color 0.15s ease;
2555
+
2556
+ ${({ theme: theme2 }) => {
2557
+ const config = theme2.components.toolbarButton;
2558
+ return `
2559
+ height: ${config.layout.height};
2560
+ padding: 5px 0;
2561
+ `;
2562
+ }}
2563
+
2564
+ ${({ $disabled, theme: theme2 }) => {
2565
+ const config = theme2.components.toolbarButton;
2566
+ if ($disabled) {
2567
+ return `
2568
+ cursor: not-allowed;
2569
+ background: ${config.background.backgroundDisabled};
2570
+ `;
2571
+ }
2572
+ return `
2573
+ background: ${config.background.background};
2574
+
2575
+ &:hover {
2576
+ background: ${config.background.backgroundHover};
2577
+ }
2578
+
2579
+ &:active {
2580
+ background: ${config.background.backgroundClick};
2581
+ }
2582
+ `;
2583
+ }}
2584
+ `;
2585
+ var DropdownArrow = styled.span`
2586
+ display: inline-flex;
2587
+ align-items: center;
2588
+ justify-content: center;
2589
+ flex-shrink: 0;
2590
+
2591
+ ${({ theme: theme2 }) => {
2592
+ const config = theme2.components.toolbarButton;
2593
+ return `
2594
+ width: ${config.layout.dropdown.iconSize.width};
2595
+ height: ${config.layout.dropdown.iconSize.height};
2596
+ `;
2597
+ }}
2598
+
2599
+ ${({ $disabled, theme: theme2 }) => {
2600
+ const config = theme2.components.toolbarButton;
2601
+ return $disabled ? `
2602
+ color: ${config.color.colorDisabled};
2603
+ ` : `
2604
+ color: ${config.color.color};
2605
+ `;
2606
+ }}
2607
+
2608
+ svg {
2609
+ }
2610
+ `;
2611
+ var Divider = styled.div`
2612
+ width: 1px;
2613
+ transition: background-color 0.15s ease;
2614
+
2615
+ ${({ theme: theme2 }) => {
2616
+ const config = theme2.components.toolbarButton;
2617
+ return `
2618
+ height: ${config.layout.height};
2619
+ `;
2620
+ }}
2621
+
2622
+ ${({ $disabled, $active, theme: theme2 }) => {
2623
+ const config = theme2.components.toolbarButton;
2624
+ if ($disabled) {
2625
+ return `
2626
+ background-color: ${config.border.borderColorDisabled};
2627
+ `;
2628
+ }
2629
+ if ($active) {
2630
+ return `
2631
+ background-color: ${config.border.borderColorActive};
2632
+ `;
2633
+ }
2634
+ return `
2635
+ background-color: ${config.border.borderColor};
2636
+ `;
2637
+ }}
2638
+ `;
2639
+ var ArrowIcon = () => /* @__PURE__ */ React12__default.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ React12__default.default.createElement(
2640
+ "path",
2641
+ {
2642
+ 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",
2643
+ fill: "#41464B",
2644
+ fillOpacity: "0.6"
2645
+ }
2646
+ ));
2647
+ var ToolbarButton = ({
2648
+ disabled = false,
2649
+ active = false,
2650
+ icon,
2651
+ label,
2652
+ hasDropdown = false,
2653
+ splitDropdown = false,
2654
+ onClick,
2655
+ onDropdownClick,
2656
+ className,
2657
+ style
2366
2658
  }) => {
2367
- const {
2368
- theme,
2369
- icons = {},
2370
- toast = {}
2371
- } = config;
2659
+ const handleMainClick = (e) => {
2660
+ if (disabled) return;
2661
+ onClick?.(e);
2662
+ };
2663
+ const handleDropdownClick = (e) => {
2664
+ if (disabled) return;
2665
+ e.stopPropagation();
2666
+ onDropdownClick?.(e);
2667
+ };
2668
+ if (!splitDropdown && hasDropdown) {
2669
+ return /* @__PURE__ */ React12__default.default.createElement(
2670
+ ToolbarButtonContainer,
2671
+ {
2672
+ className,
2673
+ style,
2674
+ $disabled: disabled,
2675
+ $active: active
2676
+ },
2677
+ /* @__PURE__ */ React12__default.default.createElement(
2678
+ MainButton,
2679
+ {
2680
+ $disabled: disabled,
2681
+ $active: active,
2682
+ $hasLabel: !!label,
2683
+ onClick: handleMainClick,
2684
+ disabled
2685
+ },
2686
+ icon && /* @__PURE__ */ React12__default.default.createElement(IconWrapper4, { $disabled: disabled }, icon),
2687
+ label && /* @__PURE__ */ React12__default.default.createElement(LabelText, { $disabled: disabled }, label),
2688
+ /* @__PURE__ */ React12__default.default.createElement(DropdownArrow, { $disabled: disabled }, /* @__PURE__ */ React12__default.default.createElement(ArrowIcon, null))
2689
+ )
2690
+ );
2691
+ }
2692
+ if (splitDropdown && hasDropdown) {
2693
+ return /* @__PURE__ */ React12__default.default.createElement(
2694
+ ToolbarButtonContainer,
2695
+ {
2696
+ className,
2697
+ style,
2698
+ $disabled: disabled,
2699
+ $active: active
2700
+ },
2701
+ /* @__PURE__ */ React12__default.default.createElement(
2702
+ MainButton,
2703
+ {
2704
+ $disabled: disabled,
2705
+ $active: active,
2706
+ $hasLabel: !!label,
2707
+ onClick: handleMainClick,
2708
+ disabled
2709
+ },
2710
+ icon && /* @__PURE__ */ React12__default.default.createElement(IconWrapper4, { $disabled: disabled }, icon),
2711
+ label && /* @__PURE__ */ React12__default.default.createElement(LabelText, { $disabled: disabled }, label)
2712
+ ),
2713
+ /* @__PURE__ */ React12__default.default.createElement(Divider, { $disabled: disabled, $active: active }),
2714
+ /* @__PURE__ */ React12__default.default.createElement(
2715
+ DropdownButton,
2716
+ {
2717
+ $disabled: disabled,
2718
+ $active: active,
2719
+ $split: true,
2720
+ onClick: handleDropdownClick,
2721
+ disabled
2722
+ },
2723
+ /* @__PURE__ */ React12__default.default.createElement(DropdownArrow, { $disabled: disabled }, /* @__PURE__ */ React12__default.default.createElement(ArrowIcon, null))
2724
+ )
2725
+ );
2726
+ }
2727
+ return /* @__PURE__ */ React12__default.default.createElement(
2728
+ ToolbarButtonContainer,
2729
+ {
2730
+ className,
2731
+ style,
2732
+ $disabled: disabled,
2733
+ $active: active
2734
+ },
2735
+ /* @__PURE__ */ React12__default.default.createElement(
2736
+ MainButton,
2737
+ {
2738
+ $disabled: disabled,
2739
+ $active: active,
2740
+ $hasLabel: !!label,
2741
+ onClick: handleMainClick,
2742
+ disabled
2743
+ },
2744
+ icon && /* @__PURE__ */ React12__default.default.createElement(IconWrapper4, { $disabled: disabled }, icon),
2745
+ label && /* @__PURE__ */ React12__default.default.createElement(LabelText, { $disabled: disabled }, label)
2746
+ )
2747
+ );
2748
+ };
2749
+ ToolbarButton.displayName = "ToolbarButton";
2750
+ var UIConfigContext = React12.createContext(null);
2751
+ var UIConfigProvider = ({ config, children }) => {
2752
+ registerGlobalContext({ theme: config.theme });
2753
+ const { icons = {}, toast = {} } = config;
2372
2754
  const toastConfig = {
2373
2755
  maxCount: toast.maxCount ?? 5,
2374
2756
  defaultDuration: toast.defaultDuration ?? 3e3
2375
2757
  };
2376
- const Provider = styled3.ThemeProvider;
2377
2758
  const TooltipStyles = TooltipGlobalStyles;
2378
- return /* @__PURE__ */ React12__default.default.createElement(UIConfigContext.Provider, { value: config }, /* @__PURE__ */ React12__default.default.createElement(Provider, { theme }, /* @__PURE__ */ React12__default.default.createElement(TooltipStyles, null), /* @__PURE__ */ React12__default.default.createElement(IconProvider, { icons }, /* @__PURE__ */ React12__default.default.createElement(
2759
+ return /* @__PURE__ */ React12__default.default.createElement(UIConfigContext.Provider, { value: config }, /* @__PURE__ */ React12__default.default.createElement(TooltipStyles, null), /* @__PURE__ */ React12__default.default.createElement(IconProvider, { icons }, /* @__PURE__ */ React12__default.default.createElement(
2379
2760
  ToastContainer2,
2380
2761
  {
2381
2762
  maxCount: toastConfig.maxCount,
2382
2763
  defaultDuration: toastConfig.defaultDuration
2383
2764
  },
2384
2765
  children
2385
- ))));
2766
+ )));
2386
2767
  };
2387
2768
  var useUIConfig = () => {
2388
2769
  const context = React12.useContext(UIConfigContext);
@@ -2474,10 +2855,13 @@ exports.Switch = Switch;
2474
2855
  exports.Tabs = Tabs;
2475
2856
  exports.Toast = Toast;
2476
2857
  exports.ToastContainer = ToastContainer2;
2858
+ exports.ToolbarButton = ToolbarButton;
2477
2859
  exports.Tooltip = Tooltip;
2478
2860
  exports.UIConfigProvider = UIConfigProvider;
2479
2861
  exports.createUIConfig = createUIConfig;
2862
+ exports.getGlobalTheme = getGlobalTheme;
2480
2863
  exports.mergeUIConfig = mergeUIConfig;
2864
+ exports.styled = styled;
2481
2865
  exports.useIconRegistry = useIconRegistry;
2482
2866
  exports.useToast = useToast;
2483
2867
  exports.useUIConfig = useUIConfig;