@officesdk/design 0.1.0 → 0.1.2

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,4 +1,4 @@
1
- import React11, { forwardRef, useState, createContext, useRef, useCallback, useEffect, useContext } from 'react';
1
+ import React12, { forwardRef, useState, createContext, useRef, useCallback, useEffect, useContext } from 'react';
2
2
  import styled3, { createGlobalStyle, ThemeProvider } from 'styled-components';
3
3
  import RcTooltip from 'rc-tooltip';
4
4
  import 'rc-tooltip/assets/bootstrap.css';
@@ -137,14 +137,12 @@ var Button = ({
137
137
  iconBefore,
138
138
  iconAfter,
139
139
  iconBordered = false,
140
- onClick,
141
140
  children,
142
- className,
143
- style
141
+ ...rest
144
142
  }) => {
145
143
  const isIconOnly = variant === "icon" || !children && !!(iconBefore || iconAfter);
146
144
  const iconOnlyContent = iconBefore || iconAfter;
147
- return /* @__PURE__ */ React11.createElement(
145
+ return /* @__PURE__ */ React12.createElement(
148
146
  StyledButton,
149
147
  {
150
148
  $variant: variant,
@@ -154,11 +152,9 @@ var Button = ({
154
152
  $isIconOnly: isIconOnly,
155
153
  $iconBordered: iconBordered,
156
154
  disabled: disabled || loading,
157
- onClick,
158
- className,
159
- style
155
+ ...rest
160
156
  },
161
- loading ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, "Loading...") : isIconOnly ? iconOnlyContent : /* @__PURE__ */ React11.createElement(React11.Fragment, null, iconBefore && /* @__PURE__ */ React11.createElement(IconWrapper, { $size: size, $position: "before" }, iconBefore), children, iconAfter && /* @__PURE__ */ React11.createElement(IconWrapper, { $size: size, $position: "after" }, iconAfter))
157
+ loading ? /* @__PURE__ */ React12.createElement(React12.Fragment, null, "Loading...") : isIconOnly ? iconOnlyContent : /* @__PURE__ */ React12.createElement(React12.Fragment, null, iconBefore && /* @__PURE__ */ React12.createElement(IconWrapper, { $size: size, $position: "before" }, iconBefore), children, iconAfter && /* @__PURE__ */ React12.createElement(IconWrapper, { $size: size, $position: "after" }, iconAfter))
162
158
  );
163
159
  };
164
160
  Button.displayName = "Button";
@@ -310,7 +306,7 @@ var Slider = ({
310
306
  },
311
307
  [disabled, value, min, max, step, controlledValue, onChange]
312
308
  );
313
- return /* @__PURE__ */ React11.createElement(
309
+ return /* @__PURE__ */ React12.createElement(
314
310
  SliderContainer,
315
311
  {
316
312
  ref: containerRef,
@@ -326,9 +322,9 @@ var Slider = ({
326
322
  "aria-valuenow": value,
327
323
  "aria-disabled": disabled
328
324
  },
329
- /* @__PURE__ */ React11.createElement(SliderTrack, { $disabled: disabled }),
330
- /* @__PURE__ */ React11.createElement(SliderFill, { $percentage: percentage, $disabled: disabled }),
331
- /* @__PURE__ */ React11.createElement(
325
+ /* @__PURE__ */ React12.createElement(SliderTrack, { $disabled: disabled }),
326
+ /* @__PURE__ */ React12.createElement(SliderFill, { $percentage: percentage, $disabled: disabled }),
327
+ /* @__PURE__ */ React12.createElement(
332
328
  SliderThumb,
333
329
  {
334
330
  $percentage: percentage,
@@ -339,23 +335,7 @@ var Slider = ({
339
335
  );
340
336
  };
341
337
  Slider.displayName = "Slider";
342
-
343
- // src/Button/SpinButton.tsx
344
- var SpinButtonWrapper = styled3.div`
345
- display: inline-flex;
346
- align-items: center;
347
- gap: ${({ $showSlider }) => $showSlider ? "0" : "0"};
348
- width: ${({ $showSlider }) => $showSlider ? "100%" : "auto"};
349
- `;
350
- var SliderWrapper = styled3.div`
351
- flex: 1;
352
- display: flex;
353
- align-items: center;
354
- padding: ${({ $size }) => $size === "small" ? "7px 0" : "7px 0"};
355
- padding-right: ${({ $size }) => $size === "small" ? "83px" : "72px"};
356
- min-width: 0;
357
- `;
358
- var SpinButtonContainer = styled3.div`
338
+ var NumberInputContainer = styled3.div`
359
339
  display: inline-flex;
360
340
  align-items: center;
361
341
  background: white;
@@ -405,6 +385,25 @@ var InputWrapper = styled3.div`
405
385
  align-items: center;
406
386
  padding: 0 8px;
407
387
  min-width: 0;
388
+ gap: 4px;
389
+ `;
390
+ var UnitText = styled3.span`
391
+ flex-shrink: 0;
392
+ font-family: 'PingFang SC', sans-serif;
393
+ font-weight: 400;
394
+ line-height: 20px;
395
+
396
+ ${({ $size }) => $size === "small" ? `
397
+ font-size: 12px;
398
+ ` : `
399
+ font-size: 13px;
400
+ `}
401
+
402
+ ${({ $disabled, theme }) => $disabled ? `
403
+ color: ${theme.colors.palettes.transparency["30"]};
404
+ ` : `
405
+ color: ${theme.colors.palettes.gray["120"]};
406
+ `}
408
407
  `;
409
408
  var StyledInput = styled3.input`
410
409
  width: 100%;
@@ -442,6 +441,7 @@ var StyledInput = styled3.input`
442
441
  }
443
442
 
444
443
  &[type='number'] {
444
+ appearance: textfield;
445
445
  -moz-appearance: textfield;
446
446
  }
447
447
  `;
@@ -508,9 +508,9 @@ var StepButton = styled3.button`
508
508
  fill: ${({ $disabled, theme }) => $disabled ? theme.colors.palettes.transparency["30"] : theme.colors.palettes.gray["120"]};
509
509
  }
510
510
  `;
511
- var UpArrow = () => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement("path", { d: "M7 4.5L10.5 8.5H3.5L7 4.5Z", fill: "currentColor" }));
512
- var DownArrow = () => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement("path", { d: "M7 9.5L3.5 5.5H10.5L7 9.5Z", fill: "currentColor" }));
513
- var SpinButton = ({
511
+ 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" }));
512
+ var DownArrow = () => /* @__PURE__ */ React12.createElement("svg", { viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12.createElement("path", { d: "M7 9.5L3.5 5.5H10.5L7 9.5Z", fill: "currentColor" }));
513
+ var NumberInput = ({
514
514
  value: controlledValue,
515
515
  defaultValue = 0,
516
516
  min = -Infinity,
@@ -519,10 +519,10 @@ var SpinButton = ({
519
519
  size = "large",
520
520
  disabled = false,
521
521
  alert = false,
522
- showSlider = false,
523
522
  precision,
524
523
  formatter,
525
524
  parser,
525
+ unit,
526
526
  onChange,
527
527
  className,
528
528
  style
@@ -613,7 +613,105 @@ var SpinButton = ({
613
613
  },
614
614
  [increment, decrement]
615
615
  );
616
- return /* @__PURE__ */ React11.createElement(SpinButtonWrapper, { $showSlider: showSlider, className, style }, showSlider && /* @__PURE__ */ React11.createElement(SliderWrapper, { $size: size }, /* @__PURE__ */ React11.createElement(
616
+ return /* @__PURE__ */ React12.createElement(
617
+ NumberInputContainer,
618
+ {
619
+ $size: size,
620
+ $disabled: disabled,
621
+ $alert: alert,
622
+ $isFocused: isFocused,
623
+ className,
624
+ style
625
+ },
626
+ /* @__PURE__ */ React12.createElement(InputWrapper, null, /* @__PURE__ */ React12.createElement(
627
+ StyledInput,
628
+ {
629
+ ref: inputRef,
630
+ type: "text",
631
+ value: displayValue,
632
+ onChange: handleInputChange,
633
+ onFocus: handleFocus,
634
+ onBlur: handleBlur,
635
+ onKeyDown: handleKeyDown,
636
+ disabled,
637
+ $size: size,
638
+ $disabled: disabled
639
+ }
640
+ ), unit && /* @__PURE__ */ React12.createElement(UnitText, { $size: size, $disabled: disabled }, unit)),
641
+ /* @__PURE__ */ React12.createElement(ButtonGroup, { $alert: alert, $disabled: disabled }, /* @__PURE__ */ React12.createElement(
642
+ StepButton,
643
+ {
644
+ type: "button",
645
+ $position: "up",
646
+ $alert: alert,
647
+ $disabled: disabled,
648
+ onClick: increment,
649
+ disabled,
650
+ tabIndex: -1
651
+ },
652
+ /* @__PURE__ */ React12.createElement(UpArrow, null)
653
+ ), /* @__PURE__ */ React12.createElement(
654
+ StepButton,
655
+ {
656
+ type: "button",
657
+ $position: "down",
658
+ $alert: alert,
659
+ $disabled: disabled,
660
+ onClick: decrement,
661
+ disabled,
662
+ tabIndex: -1
663
+ },
664
+ /* @__PURE__ */ React12.createElement(DownArrow, null)
665
+ ))
666
+ );
667
+ };
668
+ NumberInput.displayName = "NumberInput";
669
+
670
+ // src/Button/SpinButton.tsx
671
+ var SpinButtonWrapper = styled3.div`
672
+ display: inline-flex;
673
+ align-items: center;
674
+ gap: ${({ $showSlider }) => $showSlider ? "0" : "0"};
675
+ width: ${({ $showSlider }) => $showSlider ? "100%" : "auto"};
676
+ `;
677
+ var SliderWrapper = styled3.div`
678
+ flex: 1;
679
+ display: flex;
680
+ align-items: center;
681
+ padding: ${({ $size }) => $size === "small" ? "7px 0" : "7px 0"};
682
+ padding-right: ${({ $size }) => $size === "small" ? "83px" : "72px"};
683
+ min-width: 0;
684
+ `;
685
+ var SpinButton = ({
686
+ value: controlledValue,
687
+ defaultValue = 0,
688
+ min = -Infinity,
689
+ max = Infinity,
690
+ step = 1,
691
+ size = "large",
692
+ disabled = false,
693
+ alert = false,
694
+ showSlider = false,
695
+ precision,
696
+ formatter,
697
+ parser,
698
+ onChange,
699
+ className,
700
+ style
701
+ }) => {
702
+ const [internalValue, setInternalValue] = useState(controlledValue ?? defaultValue);
703
+ const value = controlledValue !== void 0 ? controlledValue : internalValue;
704
+ const handleValueChange = useCallback(
705
+ (newValue) => {
706
+ if (newValue === null) return;
707
+ if (controlledValue === void 0) {
708
+ setInternalValue(newValue);
709
+ }
710
+ onChange?.(newValue);
711
+ },
712
+ [controlledValue, onChange]
713
+ );
714
+ return /* @__PURE__ */ React12.createElement(SpinButtonWrapper, { $showSlider: showSlider, className, style }, showSlider && /* @__PURE__ */ React12.createElement(SliderWrapper, { $size: size }, /* @__PURE__ */ React12.createElement(
617
715
  Slider,
618
716
  {
619
717
  value,
@@ -621,47 +719,24 @@ var SpinButton = ({
621
719
  max,
622
720
  step,
623
721
  disabled,
624
- onChange: (val) => handleValueChange(val)
722
+ onChange: handleValueChange
625
723
  }
626
- )), /* @__PURE__ */ React11.createElement(SpinButtonContainer, { $size: size, $disabled: disabled, $alert: alert, $isFocused: isFocused }, /* @__PURE__ */ React11.createElement(InputWrapper, null, /* @__PURE__ */ React11.createElement(
627
- StyledInput,
724
+ )), /* @__PURE__ */ React12.createElement(
725
+ NumberInput,
628
726
  {
629
- ref: inputRef,
630
- type: "text",
631
- value: displayValue,
632
- onChange: handleInputChange,
633
- onFocus: handleFocus,
634
- onBlur: handleBlur,
635
- onKeyDown: handleKeyDown,
727
+ value,
728
+ min,
729
+ max,
730
+ step,
731
+ size,
636
732
  disabled,
637
- $size: size,
638
- $disabled: disabled
733
+ alert,
734
+ precision,
735
+ formatter,
736
+ parser,
737
+ onChange: handleValueChange
639
738
  }
640
- )), /* @__PURE__ */ React11.createElement(ButtonGroup, { $alert: alert, $disabled: disabled }, /* @__PURE__ */ React11.createElement(
641
- StepButton,
642
- {
643
- type: "button",
644
- $position: "up",
645
- $alert: alert,
646
- $disabled: disabled,
647
- onClick: increment,
648
- disabled,
649
- tabIndex: -1
650
- },
651
- /* @__PURE__ */ React11.createElement(UpArrow, null)
652
- ), /* @__PURE__ */ React11.createElement(
653
- StepButton,
654
- {
655
- type: "button",
656
- $position: "down",
657
- $alert: alert,
658
- $disabled: disabled,
659
- onClick: decrement,
660
- disabled,
661
- tabIndex: -1
662
- },
663
- /* @__PURE__ */ React11.createElement(DownArrow, null)
664
- ))));
739
+ ));
665
740
  };
666
741
  SpinButton.displayName = "SpinButton";
667
742
  var SwitchContainer = styled3.label`
@@ -808,7 +883,7 @@ var Switch = ({
808
883
  const handleBlur = useCallback(() => {
809
884
  setIsFocused(false);
810
885
  }, []);
811
- return /* @__PURE__ */ React11.createElement(
886
+ return /* @__PURE__ */ React12.createElement(
812
887
  SwitchContainer,
813
888
  {
814
889
  $size: size,
@@ -817,7 +892,7 @@ var Switch = ({
817
892
  className,
818
893
  style
819
894
  },
820
- /* @__PURE__ */ React11.createElement(
895
+ /* @__PURE__ */ React12.createElement(
821
896
  HiddenInput,
822
897
  {
823
898
  type: "checkbox",
@@ -828,7 +903,7 @@ var Switch = ({
828
903
  disabled
829
904
  }
830
905
  ),
831
- /* @__PURE__ */ React11.createElement(
906
+ /* @__PURE__ */ React12.createElement(
832
907
  Track,
833
908
  {
834
909
  $size: size,
@@ -837,7 +912,7 @@ var Switch = ({
837
912
  $isFocused: isFocused
838
913
  }
839
914
  ),
840
- /* @__PURE__ */ React11.createElement(
915
+ /* @__PURE__ */ React12.createElement(
841
916
  Thumb,
842
917
  {
843
918
  $size: size,
@@ -964,14 +1039,14 @@ var Radio = ({
964
1039
  const handleBlur = useCallback(() => {
965
1040
  setIsFocused(false);
966
1041
  }, []);
967
- return /* @__PURE__ */ React11.createElement(
1042
+ return /* @__PURE__ */ React12.createElement(
968
1043
  RadioContainer,
969
1044
  {
970
1045
  $disabled: disabled,
971
1046
  className,
972
1047
  style
973
1048
  },
974
- /* @__PURE__ */ React11.createElement(
1049
+ /* @__PURE__ */ React12.createElement(
975
1050
  HiddenInput2,
976
1051
  {
977
1052
  type: "radio",
@@ -985,7 +1060,7 @@ var Radio = ({
985
1060
  disabled
986
1061
  }
987
1062
  ),
988
- /* @__PURE__ */ React11.createElement(
1063
+ /* @__PURE__ */ React12.createElement(
989
1064
  RadioOuter,
990
1065
  {
991
1066
  $checked: checked,
@@ -993,7 +1068,7 @@ var Radio = ({
993
1068
  $isFocused: isFocused
994
1069
  }
995
1070
  ),
996
- /* @__PURE__ */ React11.createElement(
1071
+ /* @__PURE__ */ React12.createElement(
997
1072
  RadioInner,
998
1073
  {
999
1074
  $checked: checked,
@@ -1149,14 +1224,14 @@ var Checkbox = ({
1149
1224
  const handleBlur = useCallback(() => {
1150
1225
  setIsFocused(false);
1151
1226
  }, []);
1152
- return /* @__PURE__ */ React11.createElement(
1227
+ return /* @__PURE__ */ React12.createElement(
1153
1228
  CheckboxContainer,
1154
1229
  {
1155
1230
  $disabled: disabled,
1156
1231
  className,
1157
1232
  style
1158
1233
  },
1159
- /* @__PURE__ */ React11.createElement(
1234
+ /* @__PURE__ */ React12.createElement(
1160
1235
  HiddenInput3,
1161
1236
  {
1162
1237
  ref: inputRef,
@@ -1171,7 +1246,7 @@ var Checkbox = ({
1171
1246
  disabled
1172
1247
  }
1173
1248
  ),
1174
- /* @__PURE__ */ React11.createElement(
1249
+ /* @__PURE__ */ React12.createElement(
1175
1250
  CheckboxBox,
1176
1251
  {
1177
1252
  $checked: checked,
@@ -1180,8 +1255,8 @@ var Checkbox = ({
1180
1255
  $isFocused: isFocused
1181
1256
  }
1182
1257
  ),
1183
- !indeterminate && /* @__PURE__ */ React11.createElement(IconWrapper2, { $visible: checked }, /* @__PURE__ */ React11.createElement("svg", { width: 10, height: 8, viewBox: "0 0 10 8", fill: "#fff" }, /* @__PURE__ */ React11.createElement("path", { d: "M1.05426 3.16164L0 4.27945L3.50904 8L10 1.11781L8.94573 0L3.50904 5.76438L1.05426 3.16164Z" }))),
1184
- indeterminate && /* @__PURE__ */ React11.createElement(IconWrapper2, { $visible: indeterminate }, /* @__PURE__ */ React11.createElement(DefaultIndeterminateIcon, null))
1258
+ !indeterminate && /* @__PURE__ */ React12.createElement(IconWrapper2, { $visible: checked }, /* @__PURE__ */ React12.createElement("svg", { width: 10, height: 8, viewBox: "0 0 10 8", fill: "#fff" }, /* @__PURE__ */ React12.createElement("path", { d: "M1.05426 3.16164L0 4.27945L3.50904 8L10 1.11781L8.94573 0L3.50904 5.76438L1.05426 3.16164Z" }))),
1259
+ indeterminate && /* @__PURE__ */ React12.createElement(IconWrapper2, { $visible: indeterminate }, /* @__PURE__ */ React12.createElement(DefaultIndeterminateIcon, null))
1185
1260
  );
1186
1261
  };
1187
1262
  Checkbox.displayName = "Checkbox";
@@ -1334,7 +1409,7 @@ var Input = forwardRef(
1334
1409
  setIsFocused(false);
1335
1410
  onBlur?.(e);
1336
1411
  };
1337
- return /* @__PURE__ */ React11.createElement(
1412
+ return /* @__PURE__ */ React12.createElement(
1338
1413
  InputWrapper2,
1339
1414
  {
1340
1415
  $size: size,
@@ -1345,8 +1420,8 @@ var Input = forwardRef(
1345
1420
  className,
1346
1421
  style
1347
1422
  },
1348
- prefixNode && /* @__PURE__ */ React11.createElement(PrefixNode, { $size: size }, prefixNode),
1349
- /* @__PURE__ */ React11.createElement(
1423
+ prefixNode && /* @__PURE__ */ React12.createElement(PrefixNode, { $size: size }, prefixNode),
1424
+ /* @__PURE__ */ React12.createElement(
1350
1425
  StyledInput2,
1351
1426
  {
1352
1427
  ref,
@@ -1360,7 +1435,7 @@ var Input = forwardRef(
1360
1435
  ...rest
1361
1436
  }
1362
1437
  ),
1363
- suffixNode && /* @__PURE__ */ React11.createElement(SuffixNode, { $size: size }, suffixNode)
1438
+ suffixNode && /* @__PURE__ */ React12.createElement(SuffixNode, { $size: size }, suffixNode)
1364
1439
  );
1365
1440
  }
1366
1441
  );
@@ -1420,7 +1495,7 @@ var ClearButton = styled3.button`
1420
1495
  opacity: 0.5;
1421
1496
  }
1422
1497
  `;
1423
- var DefaultSearchIcon = () => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement(
1498
+ var DefaultSearchIcon = () => /* @__PURE__ */ React12.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12.createElement(
1424
1499
  "path",
1425
1500
  {
1426
1501
  d: "M7.33333 12.6667C10.2789 12.6667 12.6667 10.2789 12.6667 7.33333C12.6667 4.38781 10.2789 2 7.33333 2C4.38781 2 2 4.38781 2 7.33333C2 10.2789 4.38781 12.6667 7.33333 12.6667Z",
@@ -1429,7 +1504,7 @@ var DefaultSearchIcon = () => /* @__PURE__ */ React11.createElement("svg", { vie
1429
1504
  strokeLinecap: "round",
1430
1505
  strokeLinejoin: "round"
1431
1506
  }
1432
- ), /* @__PURE__ */ React11.createElement(
1507
+ ), /* @__PURE__ */ React12.createElement(
1433
1508
  "path",
1434
1509
  {
1435
1510
  d: "M14 14L11.1 11.1",
@@ -1439,7 +1514,7 @@ var DefaultSearchIcon = () => /* @__PURE__ */ React11.createElement("svg", { vie
1439
1514
  strokeLinejoin: "round"
1440
1515
  }
1441
1516
  ));
1442
- var DefaultCloseIcon = () => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement(
1517
+ var DefaultCloseIcon = () => /* @__PURE__ */ React12.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12.createElement(
1443
1518
  "path",
1444
1519
  {
1445
1520
  d: "M12 4L4 12",
@@ -1448,7 +1523,7 @@ var DefaultCloseIcon = () => /* @__PURE__ */ React11.createElement("svg", { view
1448
1523
  strokeLinecap: "round",
1449
1524
  strokeLinejoin: "round"
1450
1525
  }
1451
- ), /* @__PURE__ */ React11.createElement(
1526
+ ), /* @__PURE__ */ React12.createElement(
1452
1527
  "path",
1453
1528
  {
1454
1529
  d: "M4 4L12 12",
@@ -1486,8 +1561,8 @@ var SearchInput = forwardRef(
1486
1561
  }
1487
1562
  onClear?.();
1488
1563
  };
1489
- const prefixNode = /* @__PURE__ */ React11.createElement(SearchIconWrapper, { $size: size }, searchIcon || /* @__PURE__ */ React11.createElement(DefaultSearchIcon, null));
1490
- const suffixNode = clearable && currentValue && !disabled && !readOnly ? /* @__PURE__ */ React11.createElement(
1564
+ const prefixNode = /* @__PURE__ */ React12.createElement(SearchIconWrapper, { $size: size }, searchIcon || /* @__PURE__ */ React12.createElement(DefaultSearchIcon, null));
1565
+ const suffixNode = clearable && currentValue && !disabled && !readOnly ? /* @__PURE__ */ React12.createElement(
1491
1566
  ClearButton,
1492
1567
  {
1493
1568
  $size: size,
@@ -1495,9 +1570,9 @@ var SearchInput = forwardRef(
1495
1570
  type: "button",
1496
1571
  tabIndex: -1
1497
1572
  },
1498
- /* @__PURE__ */ React11.createElement(DefaultCloseIcon, null)
1573
+ /* @__PURE__ */ React12.createElement(DefaultCloseIcon, null)
1499
1574
  ) : null;
1500
- return /* @__PURE__ */ React11.createElement(
1575
+ return /* @__PURE__ */ React12.createElement(
1501
1576
  Input,
1502
1577
  {
1503
1578
  ref,
@@ -1519,7 +1594,7 @@ var IconProvider = ({
1519
1594
  icons,
1520
1595
  children
1521
1596
  }) => {
1522
- return /* @__PURE__ */ React11.createElement(IconContext.Provider, { value: icons }, children);
1597
+ return /* @__PURE__ */ React12.createElement(IconContext.Provider, { value: icons }, children);
1523
1598
  };
1524
1599
  var useIconRegistry = () => {
1525
1600
  return useContext(IconContext);
@@ -1557,7 +1632,7 @@ var Icon = ({
1557
1632
  const registry = useIconRegistry();
1558
1633
  let iconElement = children;
1559
1634
  if (!iconElement && src) {
1560
- iconElement = /* @__PURE__ */ React11.createElement(
1635
+ iconElement = /* @__PURE__ */ React12.createElement(
1561
1636
  "img",
1562
1637
  {
1563
1638
  src,
@@ -1569,7 +1644,7 @@ var Icon = ({
1569
1644
  if (!iconElement && name && registry) {
1570
1645
  const IconComponent = registry[name];
1571
1646
  if (IconComponent) {
1572
- iconElement = /* @__PURE__ */ React11.createElement(IconComponent, null);
1647
+ iconElement = /* @__PURE__ */ React12.createElement(IconComponent, null);
1573
1648
  } else if (process.env.NODE_ENV !== "production") {
1574
1649
  console.warn(`Icon "${name}" not found in registry. Make sure IconProvider is set up.`);
1575
1650
  }
@@ -1580,7 +1655,7 @@ var Icon = ({
1580
1655
  }
1581
1656
  return null;
1582
1657
  }
1583
- return /* @__PURE__ */ React11.createElement(
1658
+ return /* @__PURE__ */ React12.createElement(
1584
1659
  IconContainer,
1585
1660
  {
1586
1661
  $size: size,
@@ -1684,11 +1759,11 @@ var CloseButton = styled3.button`
1684
1759
  color: ${({ theme }) => theme.colors.palettes.gray["120"]};
1685
1760
  }
1686
1761
  `;
1687
- var SuccessIcon = () => /* @__PURE__ */ React11.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement("circle", { cx: "10", cy: "10", r: "8", fill: "#4ea44b" }), /* @__PURE__ */ React11.createElement("path", { d: "M6 10L9 13L14 7", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }));
1688
- var InfoIcon = () => /* @__PURE__ */ React11.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement("circle", { cx: "10", cy: "10", r: "8", fill: "#5ba0e7" }), /* @__PURE__ */ React11.createElement("path", { d: "M10 9V14M10 6H10.01", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }));
1689
- var ErrorIcon = () => /* @__PURE__ */ React11.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement("circle", { cx: "10", cy: "10", r: "8", fill: "#e95555" }), /* @__PURE__ */ React11.createElement("path", { d: "M7 7L13 13M13 7L7 13", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }));
1690
- var WarnIcon = () => /* @__PURE__ */ React11.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement("circle", { cx: "10", cy: "10", r: "8", fill: "#ebe361" }), /* @__PURE__ */ React11.createElement("path", { d: "M10 6V11M10 14H10.01", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }));
1691
- var CloseIconSvg = () => /* @__PURE__ */ React11.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React11.createElement("path", { d: "M9 3L3 9M3 3L9 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }));
1762
+ 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" }));
1763
+ var InfoIcon = () => /* @__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: "#5ba0e7" }), /* @__PURE__ */ React12.createElement("path", { d: "M10 9V14M10 6H10.01", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }));
1764
+ var ErrorIcon = () => /* @__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: "#e95555" }), /* @__PURE__ */ React12.createElement("path", { d: "M7 7L13 13M13 7L7 13", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }));
1765
+ var WarnIcon = () => /* @__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: "#ebe361" }), /* @__PURE__ */ React12.createElement("path", { d: "M10 6V11M10 14H10.01", stroke: "white", strokeWidth: "2", strokeLinecap: "round" }));
1766
+ var CloseIconSvg = () => /* @__PURE__ */ React12.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React12.createElement("path", { d: "M9 3L3 9M3 3L9 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }));
1692
1767
  var Toast = ({
1693
1768
  variant = "info",
1694
1769
  message,
@@ -1720,13 +1795,13 @@ var Toast = ({
1720
1795
  return null;
1721
1796
  }
1722
1797
  const defaultIcons = {
1723
- success: /* @__PURE__ */ React11.createElement(SuccessIcon, null),
1724
- info: /* @__PURE__ */ React11.createElement(InfoIcon, null),
1725
- error: /* @__PURE__ */ React11.createElement(ErrorIcon, null),
1726
- warn: /* @__PURE__ */ React11.createElement(WarnIcon, null)
1798
+ success: /* @__PURE__ */ React12.createElement(SuccessIcon, null),
1799
+ info: /* @__PURE__ */ React12.createElement(InfoIcon, null),
1800
+ error: /* @__PURE__ */ React12.createElement(ErrorIcon, null),
1801
+ warn: /* @__PURE__ */ React12.createElement(WarnIcon, null)
1727
1802
  };
1728
1803
  const iconElement = icon || defaultIcons[variant];
1729
- return /* @__PURE__ */ React11.createElement(
1804
+ return /* @__PURE__ */ React12.createElement(
1730
1805
  ToastContainer,
1731
1806
  {
1732
1807
  $variant: variant,
@@ -1735,9 +1810,9 @@ var Toast = ({
1735
1810
  role: "alert",
1736
1811
  "aria-live": "polite"
1737
1812
  },
1738
- showIcon && /* @__PURE__ */ React11.createElement(IconWrapper3, { $variant: variant }, iconElement),
1739
- /* @__PURE__ */ React11.createElement(Message, null, message),
1740
- actionText && onAction && /* @__PURE__ */ React11.createElement(
1813
+ showIcon && /* @__PURE__ */ React12.createElement(IconWrapper3, { $variant: variant }, iconElement),
1814
+ /* @__PURE__ */ React12.createElement(Message, null, message),
1815
+ actionText && onAction && /* @__PURE__ */ React12.createElement(
1741
1816
  ActionButton,
1742
1817
  {
1743
1818
  $variant: variant,
@@ -1746,14 +1821,14 @@ var Toast = ({
1746
1821
  },
1747
1822
  actionText
1748
1823
  ),
1749
- closable && /* @__PURE__ */ React11.createElement(
1824
+ closable && /* @__PURE__ */ React12.createElement(
1750
1825
  CloseButton,
1751
1826
  {
1752
1827
  onClick: handleClose,
1753
1828
  type: "button",
1754
1829
  "aria-label": "Close"
1755
1830
  },
1756
- /* @__PURE__ */ React11.createElement(CloseIconSvg, null)
1831
+ /* @__PURE__ */ React12.createElement(CloseIconSvg, null)
1757
1832
  )
1758
1833
  );
1759
1834
  };
@@ -1815,7 +1890,7 @@ var ToastContainer2 = ({
1815
1890
  error,
1816
1891
  warn
1817
1892
  };
1818
- return /* @__PURE__ */ React11.createElement(ToastContext.Provider, { value: contextValue }, children, /* @__PURE__ */ React11.createElement(ToastWrapper, null, toasts.map((toast) => /* @__PURE__ */ React11.createElement(
1893
+ return /* @__PURE__ */ React12.createElement(ToastContext.Provider, { value: contextValue }, children, /* @__PURE__ */ React12.createElement(ToastWrapper, null, toasts.map((toast) => /* @__PURE__ */ React12.createElement(
1819
1894
  Toast,
1820
1895
  {
1821
1896
  key: toast.id,
@@ -1969,7 +2044,7 @@ var Tabs = ({
1969
2044
  },
1970
2045
  [controlledActiveKey, onChange]
1971
2046
  );
1972
- return /* @__PURE__ */ React11.createElement(TabContainer, { className, style }, /* @__PURE__ */ React11.createElement(TabList, { $variant: variant, role: "tablist" }, items.map((item) => /* @__PURE__ */ React11.createElement(
2047
+ return /* @__PURE__ */ React12.createElement(TabContainer, { className, style }, /* @__PURE__ */ React12.createElement(TabList, { $variant: variant, role: "tablist" }, items.map((item) => /* @__PURE__ */ React12.createElement(
1973
2048
  TabItem,
1974
2049
  {
1975
2050
  key: item.key,
@@ -1983,20 +2058,44 @@ var Tabs = ({
1983
2058
  disabled: item.disabled,
1984
2059
  type: "button"
1985
2060
  },
1986
- item.icon && /* @__PURE__ */ React11.createElement("span", null, item.icon),
2061
+ item.icon && /* @__PURE__ */ React12.createElement("span", null, item.icon),
1987
2062
  item.label
1988
2063
  ))));
1989
2064
  };
1990
2065
  Tabs.displayName = "Tab";
2066
+ var Tooltip = ({
2067
+ content,
2068
+ variant = "black",
2069
+ size = "small",
2070
+ children,
2071
+ placement = "top",
2072
+ trigger = ["hover"],
2073
+ overlay,
2074
+ overlayClassName,
2075
+ getPopupContainer,
2076
+ ...rest
2077
+ }) => {
2078
+ const overlayContent = React12.useMemo(() => /* @__PURE__ */ React12.createElement("div", null, content), [content]);
2079
+ const variantClass = `tooltip-variant-${variant}`;
2080
+ const sizeClass = variant === "white" ? `tooltip-size-${size}` : "";
2081
+ const combinedClassName = [variantClass, sizeClass, overlayClassName].filter(Boolean).join(" ");
2082
+ const tooltipProps = {
2083
+ overlay: overlay ?? overlayContent,
2084
+ placement,
2085
+ trigger,
2086
+ destroyTooltipOnHide: false,
2087
+ overlayClassName: combinedClassName,
2088
+ ...getPopupContainer && { getPopupContainer },
2089
+ ...rest
2090
+ };
2091
+ return /* @__PURE__ */ React12.createElement(RcTooltip, { ...tooltipProps }, children);
2092
+ };
2093
+ Tooltip.displayName = "Tooltip";
2094
+ var paddingDistance = "5px";
2095
+ var positionDistance = "0";
1991
2096
  var TooltipGlobalStyles = createGlobalStyle`
1992
2097
  .rc-tooltip {
1993
- position: absolute;
1994
- z-index: 1070;
1995
- display: block;
1996
- visibility: visible;
1997
- font-size: 12px;
1998
- line-height: 1.5;
1999
- opacity: 0;
2098
+ opacity: 1;
2000
2099
  }
2001
2100
 
2002
2101
  .rc-tooltip-hidden {
@@ -2006,65 +2105,30 @@ var TooltipGlobalStyles = createGlobalStyle`
2006
2105
  .rc-tooltip-placement-top,
2007
2106
  .rc-tooltip-placement-topLeft,
2008
2107
  .rc-tooltip-placement-topRight {
2009
- padding-bottom: 8px;
2108
+ padding-bottom: ${paddingDistance};
2010
2109
  }
2011
2110
 
2012
2111
  .rc-tooltip-placement-right,
2013
2112
  .rc-tooltip-placement-rightTop,
2014
2113
  .rc-tooltip-placement-rightBottom {
2015
- padding-left: 8px;
2114
+ padding-left: ${paddingDistance};
2016
2115
  }
2017
2116
 
2018
2117
  .rc-tooltip-placement-bottom,
2019
2118
  .rc-tooltip-placement-bottomLeft,
2020
2119
  .rc-tooltip-placement-bottomRight {
2021
- padding-top: 8px;
2120
+ padding-top: ${paddingDistance};
2022
2121
  }
2023
2122
 
2024
2123
  .rc-tooltip-placement-left,
2025
2124
  .rc-tooltip-placement-leftTop,
2026
2125
  .rc-tooltip-placement-leftBottom {
2027
- padding-right: 8px;
2126
+ padding-right: ${paddingDistance};
2028
2127
  }
2029
2128
 
2030
2129
  .rc-tooltip-inner {
2031
- /* istanbul ignore next - styled-components CSS generation */
2032
- ${({ $variant, $size, theme }) => {
2033
- if ($variant === "black") {
2034
- const config = theme.components.tooltip.black;
2035
- return `
2036
- background: ${config.background};
2037
- border: 1px solid ${config.borderColor};
2038
- color: ${config.color};
2039
- border-radius: ${config.borderRadius};
2040
- padding: ${config.padding};
2041
- box-shadow: ${config.boxShadow};
2042
- font-size: ${config.fontSize};
2043
- line-height: ${config.lineHeight};
2044
- font-weight: ${config.fontWeight};
2045
- max-width: ${config.maxWidth};
2046
- text-align: left;
2047
- text-decoration: none;
2048
- word-wrap: break-word;
2049
- `;
2050
- } else {
2051
- const sizeConfig = theme.components.tooltip.white[$size || "small"];
2052
- return `
2053
- background: ${sizeConfig.background};
2054
- border: 1px solid ${sizeConfig.borderColor};
2055
- color: ${sizeConfig.color};
2056
- border-radius: ${sizeConfig.borderRadius};
2057
- padding: ${sizeConfig.padding};
2058
- box-shadow: ${sizeConfig.boxShadow};
2059
- font-size: ${sizeConfig.fontSize};
2060
- line-height: ${sizeConfig.lineHeight};
2061
- font-weight: ${sizeConfig.fontWeight};
2062
- text-align: left;
2063
- text-decoration: none;
2064
- word-wrap: break-word;
2065
- `;
2066
- }
2067
- }}
2130
+ word-wrap: break-word;
2131
+ min-height: unset;
2068
2132
  }
2069
2133
 
2070
2134
  .rc-tooltip-arrow {
@@ -2075,48 +2139,6 @@ var TooltipGlobalStyles = createGlobalStyle`
2075
2139
  border-style: solid;
2076
2140
  }
2077
2141
 
2078
- /* istanbul ignore next - styled-components CSS generation */
2079
- ${({ $variant, theme }) => {
2080
- const bgColor = $variant === "black" ? theme.components?.tooltip?.black?.background : theme.components?.tooltip?.white?.small?.background;
2081
- return `
2082
- .rc-tooltip-placement-top .rc-tooltip-arrow,
2083
- .rc-tooltip-placement-topLeft .rc-tooltip-arrow,
2084
- .rc-tooltip-placement-topRight .rc-tooltip-arrow {
2085
- bottom: 3px;
2086
- margin-left: -5px;
2087
- border-width: 5px 5px 0;
2088
- border-top-color: ${bgColor};
2089
- }
2090
-
2091
- .rc-tooltip-placement-right .rc-tooltip-arrow,
2092
- .rc-tooltip-placement-rightTop .rc-tooltip-arrow,
2093
- .rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
2094
- left: 3px;
2095
- margin-top: -5px;
2096
- border-width: 5px 5px 5px 0;
2097
- border-right-color: ${bgColor};
2098
- }
2099
-
2100
- .rc-tooltip-placement-left .rc-tooltip-arrow,
2101
- .rc-tooltip-placement-leftTop .rc-tooltip-arrow,
2102
- .rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
2103
- right: 3px;
2104
- margin-top: -5px;
2105
- border-width: 5px 0 5px 5px;
2106
- border-left-color: ${bgColor};
2107
- }
2108
-
2109
- .rc-tooltip-placement-bottom .rc-tooltip-arrow,
2110
- .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
2111
- .rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
2112
- top: 3px;
2113
- margin-left: -5px;
2114
- border-width: 0 5px 5px;
2115
- border-bottom-color: ${bgColor};
2116
- }
2117
- `;
2118
- }}
2119
-
2120
2142
  .rc-tooltip.rc-tooltip-zoom-enter,
2121
2143
  .rc-tooltip.rc-tooltip-zoom-leave {
2122
2144
  display: block;
@@ -2174,20 +2196,161 @@ var TooltipGlobalStyles = createGlobalStyle`
2174
2196
  transform: scale(0, 0);
2175
2197
  }
2176
2198
  }
2199
+
2200
+ /* Black variant */
2201
+ .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};
2212
+ text-align: left;
2213
+ text-decoration: none;
2214
+ }
2215
+
2216
+ .tooltip-variant-black.rc-tooltip-placement-top .rc-tooltip-arrow,
2217
+ .tooltip-variant-black.rc-tooltip-placement-topLeft .rc-tooltip-arrow,
2218
+ .tooltip-variant-black.rc-tooltip-placement-topRight .rc-tooltip-arrow {
2219
+ bottom: ${positionDistance};
2220
+ margin-left: -5px;
2221
+ border-width: 5px 5px 0;
2222
+ border-top-color: ${({ theme }) => theme.components.tooltip.black.background};
2223
+ }
2224
+
2225
+ .tooltip-variant-black.rc-tooltip-placement-right .rc-tooltip-arrow,
2226
+ .tooltip-variant-black.rc-tooltip-placement-rightTop .rc-tooltip-arrow,
2227
+ .tooltip-variant-black.rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
2228
+ left: ${positionDistance};
2229
+ margin-top: -5px;
2230
+ border-width: 5px 5px 5px 0;
2231
+ border-right-color: ${({ theme }) => theme.components.tooltip.black.background};
2232
+ }
2233
+
2234
+ .tooltip-variant-black.rc-tooltip-placement-left .rc-tooltip-arrow,
2235
+ .tooltip-variant-black.rc-tooltip-placement-leftTop .rc-tooltip-arrow,
2236
+ .tooltip-variant-black.rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
2237
+ right: ${positionDistance};
2238
+ margin-top: -5px;
2239
+ border-width: 5px 0 5px 5px;
2240
+ border-left-color: ${({ theme }) => theme.components.tooltip.black.background};
2241
+ }
2242
+
2243
+ .tooltip-variant-black.rc-tooltip-placement-bottom .rc-tooltip-arrow,
2244
+ .tooltip-variant-black.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
2245
+ .tooltip-variant-black.rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
2246
+ top: ${positionDistance};
2247
+ margin-left: -5px;
2248
+ border-width: 0 5px 5px;
2249
+ border-bottom-color: ${({ theme }) => theme.components.tooltip.black.background};
2250
+ }
2251
+
2252
+ /* White variant - small size */
2253
+ .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};
2263
+ text-align: left;
2264
+ text-decoration: none;
2265
+ }
2266
+
2267
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-top .rc-tooltip-arrow,
2268
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-topLeft .rc-tooltip-arrow,
2269
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-topRight .rc-tooltip-arrow {
2270
+ bottom: ${positionDistance};
2271
+ margin-left: -5px;
2272
+ border-width: 5px 5px 0;
2273
+ border-top-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2274
+ }
2275
+
2276
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-right .rc-tooltip-arrow,
2277
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-rightTop .rc-tooltip-arrow,
2278
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
2279
+ left: ${positionDistance};
2280
+ margin-top: -5px;
2281
+ border-width: 5px 5px 5px 0;
2282
+ border-right-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2283
+ }
2284
+
2285
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-left .rc-tooltip-arrow,
2286
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-leftTop .rc-tooltip-arrow,
2287
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
2288
+ right: ${positionDistance};
2289
+ margin-top: -5px;
2290
+ border-width: 5px 0 5px 5px;
2291
+ border-left-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2292
+ }
2293
+
2294
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-bottom .rc-tooltip-arrow,
2295
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
2296
+ .tooltip-variant-white.tooltip-size-small.rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
2297
+ top: ${positionDistance};
2298
+ margin-left: -5px;
2299
+ border-width: 0 5px 5px;
2300
+ border-bottom-color: ${({ theme }) => theme.components.tooltip.white.small.background};
2301
+ }
2302
+
2303
+ /* White variant - large size */
2304
+ .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};
2314
+ text-align: left;
2315
+ text-decoration: none;
2316
+ }
2317
+
2318
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-top .rc-tooltip-arrow,
2319
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-topLeft .rc-tooltip-arrow,
2320
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-topRight .rc-tooltip-arrow {
2321
+ bottom: ${positionDistance};
2322
+ margin-left: -5px;
2323
+ border-width: 5px 5px 0;
2324
+ border-top-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2325
+ }
2326
+
2327
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-right .rc-tooltip-arrow,
2328
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-rightTop .rc-tooltip-arrow,
2329
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-rightBottom .rc-tooltip-arrow {
2330
+ left: ${positionDistance};
2331
+ margin-top: -5px;
2332
+ border-width: 5px 5px 5px 0;
2333
+ border-right-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2334
+ }
2335
+
2336
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-left .rc-tooltip-arrow,
2337
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-leftTop .rc-tooltip-arrow,
2338
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-leftBottom .rc-tooltip-arrow {
2339
+ right: ${positionDistance};
2340
+ margin-top: -5px;
2341
+ border-width: 5px 0 5px 5px;
2342
+ border-left-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2343
+ }
2344
+
2345
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-bottom .rc-tooltip-arrow,
2346
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,
2347
+ .tooltip-variant-white.tooltip-size-large.rc-tooltip-placement-bottomRight .rc-tooltip-arrow {
2348
+ top: ${positionDistance};
2349
+ margin-left: -5px;
2350
+ border-width: 0 5px 5px;
2351
+ border-bottom-color: ${({ theme }) => theme.components.tooltip.white.large.background};
2352
+ }
2177
2353
  `;
2178
- var Tooltip = ({
2179
- content,
2180
- variant = "black",
2181
- size = "small",
2182
- children,
2183
- placement = "top",
2184
- trigger = ["hover"],
2185
- ...rest
2186
- }) => {
2187
- const GlobalStyles = TooltipGlobalStyles;
2188
- return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement(GlobalStyles, { $variant: variant, $size: size }), /* @__PURE__ */ React11.createElement(RcTooltip, { overlay: /* @__PURE__ */ React11.createElement("div", null, content), placement, trigger, ...rest }, children));
2189
- };
2190
- Tooltip.displayName = "Tooltip";
2191
2354
  var UIConfigContext = createContext(null);
2192
2355
  var UIConfigProvider = ({
2193
2356
  config,
@@ -2203,7 +2366,8 @@ var UIConfigProvider = ({
2203
2366
  defaultDuration: toast.defaultDuration ?? 3e3
2204
2367
  };
2205
2368
  const Provider = ThemeProvider;
2206
- return /* @__PURE__ */ React11.createElement(UIConfigContext.Provider, { value: config }, /* @__PURE__ */ React11.createElement(Provider, { theme }, /* @__PURE__ */ React11.createElement(IconProvider, { icons }, /* @__PURE__ */ React11.createElement(
2369
+ 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(
2207
2371
  ToastContainer2,
2208
2372
  {
2209
2373
  maxCount: toastConfig.maxCount,
@@ -2288,6 +2452,6 @@ var mergeUIConfig = (baseConfig, ...configs) => {
2288
2452
  return merged;
2289
2453
  };
2290
2454
 
2291
- export { Button, Checkbox, Icon, IconProvider, Input, Radio, SearchInput, Slider, SpinButton, Switch, Tabs, Toast, ToastContainer2 as ToastContainer, Tooltip, UIConfigProvider, createUIConfig, mergeUIConfig, useIconRegistry, useToast, useUIConfig };
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 };
2292
2456
  //# sourceMappingURL=index.mjs.map
2293
2457
  //# sourceMappingURL=index.mjs.map