@algolia/satellite 1.0.0-beta.160 → 1.0.0-beta.161

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 (80) hide show
  1. package/cjs/AutoComplete/AutoComplete.tailwind.js +4 -1
  2. package/cjs/Button/PolymorphicIconButton.d.ts +1 -1
  3. package/cjs/Button/PolymorphicIconButton.js +4 -4
  4. package/cjs/Checkbox/Checkbox.js +3 -3
  5. package/cjs/Checkbox/Checkbox.tailwind.js +1 -1
  6. package/cjs/HelpUnderline/HelpUnderline.d.ts +3 -4
  7. package/cjs/HelpUnderline/HelpUnderline.js +13 -10
  8. package/cjs/Input/Input.tailwind.js +28 -4
  9. package/cjs/RadioGroup/RadioButton.tailwind.js +4 -1
  10. package/cjs/RangeSlider/RangeSlider.js +2 -2
  11. package/cjs/Satellite/Satellite.d.ts +0 -1
  12. package/cjs/Satellite/Satellite.js +12 -17
  13. package/cjs/Satellite/SatelliteContext.d.ts +1 -1
  14. package/cjs/Satellite/SatelliteContext.js +2 -1
  15. package/cjs/Select/Select.tailwind.js +2 -2
  16. package/cjs/Separator/Separator.d.ts +8 -0
  17. package/cjs/Separator/Separator.js +29 -0
  18. package/cjs/Separator/Separator.tailwind.d.ts +5 -0
  19. package/cjs/Separator/Separator.tailwind.js +25 -0
  20. package/cjs/Separator/index.d.ts +2 -0
  21. package/cjs/Separator/index.js +27 -0
  22. package/cjs/Sidebar/SidebarButtonLink.js +8 -14
  23. package/cjs/Tag/Tag.js +7 -7
  24. package/cjs/Toggle/Toggle.js +3 -13
  25. package/cjs/Toggle/Toggle.tailwind.js +8 -2
  26. package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +2 -5
  27. package/cjs/Tooltip/OverflowTooltipWrapper.js +20 -78
  28. package/cjs/Tooltip/Tooltip.d.ts +6 -6
  29. package/cjs/Tooltip/Tooltip.js +6 -6
  30. package/cjs/Tooltip/Tooltip.tailwind.js +85 -62
  31. package/cjs/Tooltip/TooltipWrapper.d.ts +8 -21
  32. package/cjs/Tooltip/TooltipWrapper.js +49 -158
  33. package/cjs/Tooltip/types.d.ts +57 -6
  34. package/cjs/Tooltip/utils.d.ts +1 -0
  35. package/cjs/Tooltip/utils.js +10 -0
  36. package/cjs/index.d.ts +2 -1
  37. package/cjs/index.js +20 -8
  38. package/cjs/styles/tailwind.config.js +1 -1
  39. package/cjs/types.d.ts +6 -6
  40. package/esm/AutoComplete/AutoComplete.tailwind.js +4 -1
  41. package/esm/Button/PolymorphicIconButton.d.ts +1 -1
  42. package/esm/Button/PolymorphicIconButton.js +4 -4
  43. package/esm/Checkbox/Checkbox.js +3 -3
  44. package/esm/Checkbox/Checkbox.tailwind.js +1 -1
  45. package/esm/HelpUnderline/HelpUnderline.d.ts +3 -4
  46. package/esm/HelpUnderline/HelpUnderline.js +13 -10
  47. package/esm/Input/Input.tailwind.js +28 -4
  48. package/esm/RadioGroup/RadioButton.tailwind.js +4 -1
  49. package/esm/RangeSlider/RangeSlider.js +2 -2
  50. package/esm/Satellite/Satellite.d.ts +0 -1
  51. package/esm/Satellite/Satellite.js +13 -16
  52. package/esm/Satellite/SatelliteContext.d.ts +1 -1
  53. package/esm/Satellite/SatelliteContext.js +2 -1
  54. package/esm/Select/Select.tailwind.js +2 -2
  55. package/esm/Separator/Separator.d.ts +8 -0
  56. package/esm/Separator/Separator.js +17 -0
  57. package/esm/Separator/Separator.tailwind.d.ts +5 -0
  58. package/esm/Separator/Separator.tailwind.js +24 -0
  59. package/esm/Separator/index.d.ts +2 -0
  60. package/esm/Separator/index.js +2 -0
  61. package/esm/Sidebar/SidebarButtonLink.js +8 -14
  62. package/esm/Tag/Tag.js +7 -7
  63. package/esm/Toggle/Toggle.js +3 -13
  64. package/esm/Toggle/Toggle.tailwind.js +8 -2
  65. package/esm/Tooltip/OverflowTooltipWrapper.d.ts +2 -5
  66. package/esm/Tooltip/OverflowTooltipWrapper.js +20 -78
  67. package/esm/Tooltip/Tooltip.d.ts +6 -6
  68. package/esm/Tooltip/Tooltip.js +6 -6
  69. package/esm/Tooltip/Tooltip.tailwind.js +84 -62
  70. package/esm/Tooltip/TooltipWrapper.d.ts +8 -21
  71. package/esm/Tooltip/TooltipWrapper.js +47 -157
  72. package/esm/Tooltip/types.d.ts +57 -6
  73. package/esm/Tooltip/utils.d.ts +1 -0
  74. package/esm/Tooltip/utils.js +3 -0
  75. package/esm/index.d.ts +2 -1
  76. package/esm/index.js +2 -1
  77. package/esm/styles/tailwind.config.js +1 -1
  78. package/esm/types.d.ts +6 -6
  79. package/package.json +3 -1
  80. package/satellite.min.css +1 -1
@@ -20,9 +20,12 @@ var autoCompletePlugin = plugin(function (_ref) {
20
20
  cursor: "text",
21
21
  backgroundColor: theme("colors.white"),
22
22
  borderRadius: theme("borderRadius.DEFAULT"),
23
- border: "1px solid ".concat(theme("colors.grey.200")),
23
+ border: "1px solid ".concat(theme("colors.grey.500")),
24
24
  boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.500"), 0.3)),
25
25
  transition: "all 100ms ease-in-out",
26
+ "&:not(.autocomplete-disabled):hover": {
27
+ borderColor: theme("colors.grey.600")
28
+ },
26
29
  // Workaround for ie
27
30
  "&::after": {
28
31
  content: '" "',
@@ -10,7 +10,7 @@ export interface IconButtonBaseProps {
10
10
  title: string;
11
11
  showTooltip?: boolean;
12
12
  /** @default "top" */
13
- tooltipPlacement?: TooltipWrapperBaseProps["placement"];
13
+ tooltipSide?: TooltipWrapperBaseProps["side"];
14
14
  loading?: boolean;
15
15
  }
16
16
  export declare type PolymorphicIconButtonProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, IconButtonBaseProps>;
@@ -16,7 +16,7 @@ var _Tooltip = require("../Tooltip");
16
16
  var _styles = require("./styles");
17
17
  var _types = require("./types");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
- var _excluded = ["as", "className", "variant", "size", "icon", "title", "showTooltip", "tooltipPlacement", "loading"];
19
+ var _excluded = ["as", "className", "variant", "size", "icon", "title", "showTooltip", "tooltipSide", "loading"];
20
20
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
21
21
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -43,8 +43,8 @@ var PolymorphicIconButton = /*#__PURE__*/(0, _react.forwardRef)(function (props,
43
43
  Icon = props.icon,
44
44
  title = props.title,
45
45
  showTooltip = props.showTooltip,
46
- _props$tooltipPlaceme = props.tooltipPlacement,
47
- tooltipPlacement = _props$tooltipPlaceme === void 0 ? "top" : _props$tooltipPlaceme,
46
+ _props$tooltipSide = props.tooltipSide,
47
+ tooltipSide = _props$tooltipSide === void 0 ? "top" : _props$tooltipSide,
48
48
  _props$loading = props.loading,
49
49
  loading = _props$loading === void 0 ? false : _props$loading,
50
50
  cleanedProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
@@ -61,7 +61,7 @@ var PolymorphicIconButton = /*#__PURE__*/(0, _react.forwardRef)(function (props,
61
61
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.TooltipWrapper, {
62
62
  delay: 500,
63
63
  show: showTooltip,
64
- placement: tooltipPlacement,
64
+ side: tooltipSide,
65
65
  content: title,
66
66
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, _objectSpread(_objectSpread({}, cleanedProps), {}, {
67
67
  className: iconButtonClassName,
@@ -67,9 +67,9 @@ var Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
67
67
  }
68
68
  };
69
69
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
70
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["inline-flex items-center ", ""])), textPosition === "left" && "flex-row-reverse"), className),
70
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["group inline-flex items-center ", ""])), textPosition === "left" && "flex-row-reverse"), className),
71
71
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
72
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n checkbox\n ", "\n ", "\n ", "\n "])), indeterminate && "checkbox-indeterminate", isChecked && "checkbox-checked", disabled && "checkbox-disabled"), STATUS_CLASSNAMES[status]),
72
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n checkbox\n ", "\n ", "\n ", "\n ", "\n "])), !disabled && "group-hover:border-grey-900", indeterminate && "checkbox-indeterminate", isChecked && "checkbox-checked", disabled && "checkbox-disabled"), STATUS_CLASSNAMES[status]),
73
73
  style: {
74
74
  color: checkedColor
75
75
  },
@@ -78,7 +78,7 @@ var Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
78
78
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread(_objectSpread({}, checkboxProps), {}, {
79
79
  "aria-checked": indeterminate ? "mixed" : isChecked,
80
80
  id: id,
81
- className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n opacity-0 absolute inset-0 cursor-pointer\n ", "\n "])), disabled && "cursor-not-allowed"),
81
+ className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n opacity-0 absolute inset-0\n ", "\n "])), disabled ? "cursor-not-allowed" : "cursor-pointer"),
82
82
  type: "checkbox",
83
83
  ref: ref,
84
84
  onChange: handleChange,
@@ -18,7 +18,7 @@ var checkboxPlugin = plugin(function (_ref) {
18
18
  overflow: "hidden",
19
19
  color: theme("colors.accent.600"),
20
20
  background: "linear-gradient(180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)"),
21
- border: "1px solid ".concat(theme("colors.grey.200")),
21
+ border: "1px solid ".concat(theme("colors.grey.500")),
22
22
  boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5")),
23
23
  borderRadius: theme("borderRadius.DEFAULT"),
24
24
  transition: "all 250ms cubic-bezier(0.23, 1, 0.32, 1)",
@@ -1,12 +1,11 @@
1
1
  import type { FunctionComponent } from "react";
2
2
  import { TooltipWrapperProps } from "../Tooltip";
3
- export interface HelpUnderlineProps {
3
+ import type { TooltipWrapperBaseProps } from "../Tooltip/types";
4
+ export declare type HelpUnderlineProps = {
4
5
  /** @ignore */
5
6
  className?: string;
6
- placement?: TooltipWrapperProps["placement"];
7
- tooltipClassName?: TooltipWrapperProps["tooltipClassName"];
8
7
  tooltipContent: TooltipWrapperProps["content"];
9
8
  children: string;
10
- }
9
+ } & Omit<TooltipWrapperBaseProps, "children">;
11
10
  export declare const HelpUnderline: FunctionComponent<HelpUnderlineProps>;
12
11
  export default HelpUnderline;
@@ -5,29 +5,32 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = exports.HelpUnderline = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
8
9
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
11
  var _clsx = _interopRequireDefault(require("clsx"));
10
12
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
11
13
  var _Tooltip = require("../Tooltip");
12
14
  var _jsxRuntime = require("react/jsx-runtime");
13
- var _templateObject, _templateObject2, _templateObject3;
15
+ var _templateObject, _templateObject2;
16
+ var _excluded = ["className", "children", "tooltipClassName", "tooltipContent"];
17
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14
19
  var HelpUnderline = function HelpUnderline(_ref) {
15
20
  var className = _ref.className,
16
21
  children = _ref.children,
17
22
  tooltipClassName = _ref.tooltipClassName,
18
23
  tooltipContent = _ref.tooltipContent,
19
- _ref$placement = _ref.placement,
20
- placement = _ref$placement === void 0 ? "bottom" : _ref$placement;
21
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.TooltipWrapper, {
22
- wrapperClassName: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["leading-inherit"]))), className),
23
- tooltipClassName: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["max-w-64"]))), tooltipClassName),
24
- content: tooltipContent,
25
- placement: placement,
24
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.TooltipWrapper, _objectSpread(_objectSpread({
26
+ tooltipClassName: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["max-w-64"]))), tooltipClassName),
27
+ content: tooltipContent
28
+ }, props), {}, {
26
29
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
27
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["help-underline"]))),
30
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["help-underline leading-inherit"]))), className),
28
31
  children: children
29
32
  })
30
- });
33
+ }));
31
34
  };
32
35
  exports.HelpUnderline = HelpUnderline;
33
36
  var _default = HelpUnderline;
@@ -16,11 +16,17 @@ var inputPlugin = plugin(function (_ref) {
16
16
  fontSize: theme("fontSize.base"),
17
17
  lineHeight: theme("lineHeight.base"),
18
18
  backgroundColor: theme("colors.white"),
19
- border: "1px solid ".concat(theme("colors.grey.200")),
19
+ border: "1px solid ".concat(theme("colors.grey.500")),
20
20
  borderRadius: theme("borderRadius.DEFAULT"),
21
21
  boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.500"), 0.3)),
22
22
  overflow: "hidden",
23
23
  transition: "all 100ms ease-in-out",
24
+ "&:not(.input-disabled):hover": {
25
+ borderColor: theme("colors.grey.600"),
26
+ ".input-spinner-button": {
27
+ borderColor: theme("colors.grey.600")
28
+ }
29
+ },
24
30
  input: {
25
31
  flex: "1",
26
32
  minWidth: "0px",
@@ -44,7 +50,10 @@ var inputPlugin = plugin(function (_ref) {
44
50
  },
45
51
  ".input-focused, .input:focus-within": {
46
52
  borderColor: theme("colors.accent.600"),
47
- boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5"))
53
+ boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5")),
54
+ ".input-spinner-button": {
55
+ borderColor: theme("colors.accent.600")
56
+ }
48
57
  },
49
58
  ".input-disabled": {
50
59
  cursor: "not-allowed",
@@ -67,7 +76,17 @@ var inputPlugin = plugin(function (_ref) {
67
76
  },
68
77
  ".input-invalid:not(.input-disabled)": {
69
78
  backgroundColor: theme("colors.red.100"),
70
- borderColor: theme("colors.red.700")
79
+ borderColor: theme("colors.red.700"),
80
+ ".input-spinner-button": {
81
+ background: theme("colors.red.100"),
82
+ borderColor: theme("colors.red.700")
83
+ },
84
+ "&:hover": {
85
+ borderColor: theme("colors.red.800"),
86
+ ".input-spinner-button": {
87
+ borderColor: theme("colors.red.800")
88
+ }
89
+ }
71
90
  }
72
91
  });
73
92
  addComponents({
@@ -80,7 +99,7 @@ var inputPlugin = plugin(function (_ref) {
80
99
  },
81
100
  ".input-spinner-button": {
82
101
  background: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.50"), " 100%)"),
83
- borderColor: theme("colors.grey.200"),
102
+ borderColor: theme("colors.grey.500"),
84
103
  borderStyle: "solid",
85
104
  borderLeftWidth: "1px",
86
105
  flex: "1",
@@ -92,6 +111,11 @@ var inputPlugin = plugin(function (_ref) {
92
111
  },
93
112
  "&:not(:last-child)": {
94
113
  borderBottomWidth: "1px"
114
+ },
115
+ // This is to counterbalance the width of the first button's bottom border
116
+ // so that the two buttons have the same height.
117
+ "&:last-child": {
118
+ paddingTop: "1px"
95
119
  }
96
120
  }
97
121
  });
@@ -15,9 +15,12 @@ var radioButtonPlugin = plugin(function (_ref) {
15
15
  appearance: "none",
16
16
  outline: "0px",
17
17
  background: theme("colors.white"),
18
- border: "1px solid ".concat(theme("colors.grey.200")),
18
+ border: "1px solid ".concat(theme("colors.grey.500")),
19
19
  borderRadius: "50%",
20
20
  boxShadow: "inset 0 1px 4px 0 ".concat(rgba(theme("colors.grey.500"), 0.3)),
21
+ "&:hover": {
22
+ borderColor: theme("colors.grey.600")
23
+ },
21
24
  "&:focus": {
22
25
  borderColor: theme("colors.accent.600"),
23
26
  boxShadow: "0 1px 0 0 ".concat(theme("colors.shadow.5"))
@@ -27,7 +27,7 @@ var getThumbCount = function getThumbCount(value) {
27
27
  var ThumbGroove = function ThumbGroove(_ref) {
28
28
  var className = _ref.className;
29
29
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
30
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["h-3 w-px bg-grey-200"]))), className)
30
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["h-3 w-px bg-grey-500 group-hover:bg-grey-600"]))), className)
31
31
  });
32
32
  };
33
33
 
@@ -87,7 +87,7 @@ var RangeSlider = function RangeSlider(_ref2) {
87
87
  })
88
88
  }), Array(thumbsCount).fill(undefined).map(function (_, idx) {
89
89
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactSlider.SliderThumb, {
90
- className: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n absolute -translate-x-1.5 -translate-y-3\n w-3 h-6 rounded-[2px] border border-grey-200\n bg-white bg-gradient-to-b from-white to-grey-50 shadow-[0_1px_0_0_rgb(35_38_59_/_5%)]\n "]))),
90
+ className: (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["group absolute -translate-x-1.5 -translate-y-3\n w-3 h-6 rounded-[2px] border border-grey-500\n bg-white bg-gradient-to-b from-white to-grey-50 shadow-[0_1px_0_0_rgb(35_38_59_/_5%)]\n hover:border-grey-600\n "]))),
91
91
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ThumbGroove, {
92
92
  className: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["absolute top-1.5 right-1.5"])))
93
93
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(ThumbGroove, {
@@ -7,6 +7,5 @@ export interface SatelliteProps {
7
7
  portalTarget?: HTMLElement;
8
8
  children: ReactNode;
9
9
  }
10
- export declare const DEFAULT_PORTAL_TARGET_ID = "satellite-portal";
11
10
  export declare const Satellite: FunctionComponent<SatelliteProps>;
12
11
  export default Satellite;
@@ -4,31 +4,24 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports["default"] = exports.Satellite = exports.DEFAULT_PORTAL_TARGET_ID = void 0;
7
+ exports["default"] = exports.Satellite = void 0;
8
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
8
9
  var _react = require("react");
9
10
  var _SatelliteContext = _interopRequireDefault(require("./SatelliteContext"));
10
11
  var _SatelliteRouter = require("./SatelliteRouter");
11
12
  var _jsxRuntime = require("react/jsx-runtime");
12
- var DEFAULT_PORTAL_TARGET_ID = "satellite-portal";
13
- exports.DEFAULT_PORTAL_TARGET_ID = DEFAULT_PORTAL_TARGET_ID;
14
- var portalElement;
15
- var getPortalElement = function getPortalElement() {
16
- if (typeof document === "undefined") return;
17
- if (!portalElement) {
18
- var element = document.createElement("div");
19
- element.setAttribute("id", DEFAULT_PORTAL_TARGET_ID);
20
- document.body.appendChild(element);
21
- portalElement = element;
22
- }
23
- return portalElement;
24
- };
25
13
  var Satellite = function Satellite(_ref) {
26
14
  var _ref$router = _ref.router,
27
15
  router = _ref$router === void 0 ? _SatelliteRouter.router : _ref$router,
28
16
  locales = _ref.locales,
29
17
  _ref$portalTarget = _ref.portalTarget,
30
- portalTarget = _ref$portalTarget === void 0 ? getPortalElement() : _ref$portalTarget,
18
+ customPortalTarget = _ref$portalTarget === void 0 ? null : _ref$portalTarget,
31
19
  children = _ref.children;
20
+ var _useState = (0, _react.useState)(null),
21
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
22
+ defaultPortalTarget = _useState2[0],
23
+ setDefaultPortalTarget = _useState2[1];
24
+ var portalTarget = customPortalTarget !== null && customPortalTarget !== void 0 ? customPortalTarget : defaultPortalTarget;
32
25
  (0, _react.useEffect)(function () {
33
26
  if (!portalTarget) return;
34
27
  if (portalTarget === document.body) {
@@ -38,13 +31,15 @@ var Satellite = function Satellite(_ref) {
38
31
  // Radix adds pointer-events: none; on the body for its modal, so we need to reenable it for other portaled elements (tooltips, menus, autocomplete)
39
32
  portalTarget.style.pointerEvents = "auto";
40
33
  }, [portalTarget]);
41
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SatelliteContext["default"].Provider, {
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SatelliteContext["default"].Provider, {
42
35
  value: {
43
36
  router: router,
44
37
  locales: locales,
45
38
  portalTarget: portalTarget
46
39
  },
47
- children: children
40
+ children: [children, !customPortalTarget && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
41
+ ref: setDefaultPortalTarget
42
+ })]
48
43
  });
49
44
  };
50
45
  exports.Satellite = Satellite;
@@ -3,8 +3,8 @@ import type { ComponentsLocales } from "./locale";
3
3
  import { SatelliteRouter } from "./SatelliteRouter";
4
4
  export interface SatelliteContextType {
5
5
  router: SatelliteRouter;
6
+ portalTarget: HTMLElement | null;
6
7
  locales?: ComponentsLocales;
7
- portalTarget?: HTMLElement;
8
8
  }
9
9
  export declare const SatelliteContext: import("react").Context<SatelliteContextType>;
10
10
  export declare const useSatelliteContext: () => SatelliteContextType;
@@ -12,7 +12,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
12
12
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
13
  var DEFAULT_CONTEXT = {
14
14
  router: _SatelliteRouter.router,
15
- locales: {}
15
+ locales: {},
16
+ portalTarget: null
16
17
  };
17
18
  var SatelliteContext = /*#__PURE__*/(0, _react.createContext)(DEFAULT_CONTEXT);
18
19
  exports.SatelliteContext = SatelliteContext;
@@ -23,7 +23,7 @@ var selectPlugin = plugin(function (_ref) {
23
23
  backgroundPosition: "right ".concat(theme("spacing.4"), " center, 0 0"),
24
24
  backgroundRepeat: "no-repeat",
25
25
  borderRadius: theme("borderRadius.DEFAULT"),
26
- border: "1px solid ".concat(theme("colors.grey.200")),
26
+ border: "1px solid ".concat(theme("colors.grey.500")),
27
27
  boxShadow: "0 1px 0 0 ".concat(theme("colors.shadow.5")),
28
28
  "&::-moz-focus-inner, &:-moz-focusring": {
29
29
  outline: "none",
@@ -44,7 +44,7 @@ var selectPlugin = plugin(function (_ref) {
44
44
  },
45
45
  "&:hover": {
46
46
  backgroundImage: "\n ".concat(selectIconBG(theme("colors.grey.500")), ",\n linear-gradient(-180deg, ").concat(theme("colors.grey.50"), " 0%, ").concat(theme("colors.grey.100"), " 100%)\n "),
47
- borderColor: theme("colors.grey.200")
47
+ borderColor: theme("colors.grey.600")
48
48
  },
49
49
  "&:focus": {
50
50
  backgroundImage: "\n ".concat(selectIconBG(theme("colors.grey.500")), ",\n linear-gradient(-180deg, ").concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)\n "),
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import * as RadixSeparator from "@radix-ui/react-separator";
3
+ export interface SeparatorProps {
4
+ className?: string;
5
+ orientation?: RadixSeparator.SeparatorProps["orientation"];
6
+ }
7
+ export declare const Separator: ({ className, orientation }: SeparatorProps) => JSX.Element;
8
+ export default Separator;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.Separator = void 0;
9
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
+ var RadixSeparator = _interopRequireWildcard(require("@radix-ui/react-separator"));
11
+ var _clsx = _interopRequireDefault(require("clsx"));
12
+ var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ var _templateObject;
15
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+ var Separator = function Separator(_ref) {
18
+ var className = _ref.className,
19
+ _ref$orientation = _ref.orientation,
20
+ orientation = _ref$orientation === void 0 ? "horizontal" : _ref$orientation;
21
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(RadixSeparator.Root, {
22
+ decorative: true,
23
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["separator"]))), className),
24
+ orientation: orientation
25
+ });
26
+ };
27
+ exports.Separator = Separator;
28
+ var _default = Separator;
29
+ exports["default"] = _default;
@@ -0,0 +1,5 @@
1
+ export = separatorPlugin;
2
+ declare const separatorPlugin: {
3
+ handler: import("tailwindcss/types/config").PluginCreator;
4
+ config?: Partial<import("tailwindcss").Config> | undefined;
5
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ // @ts-check
4
+ var plugin = require("tailwindcss/plugin");
5
+ var separatorPlugin = plugin(function (_ref) {
6
+ var addComponents = _ref.addComponents,
7
+ theme = _ref.theme;
8
+ var margin = theme("spacing.4");
9
+ addComponents({
10
+ ".separator": {
11
+ backgroundColor: theme("colors.grey.200"),
12
+ '&[data-orientation="horizontal"]': {
13
+ height: "1px",
14
+ width: "100%",
15
+ margin: "".concat(margin, " 0")
16
+ },
17
+ '&[data-orientation="vertical"]': {
18
+ height: "100%",
19
+ width: "1px",
20
+ margin: "0 ".concat(margin)
21
+ }
22
+ }
23
+ });
24
+ });
25
+ module.exports = separatorPlugin;
@@ -0,0 +1,2 @@
1
+ export * from "./Separator";
2
+ export { default } from "./Separator";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ var _exportNames = {};
8
+ Object.defineProperty(exports, "default", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _Separator["default"];
12
+ }
13
+ });
14
+ var _Separator = _interopRequireWildcard(require("./Separator"));
15
+ Object.keys(_Separator).forEach(function (key) {
16
+ if (key === "default" || key === "__esModule") return;
17
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
18
+ if (key in exports && exports[key] === _Separator[key]) return;
19
+ Object.defineProperty(exports, key, {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _Separator[key];
23
+ }
24
+ });
25
+ });
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.SidebarButtonLink = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
9
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _react = require("react");
12
12
  var _reactFeather = require("react-feather");
13
13
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
@@ -15,24 +15,18 @@ var _Tooltip = require("../Tooltip");
15
15
  var _useLinkProps = _interopRequireDefault(require("../utils/useLinkProps"));
16
16
  var _SidebarContext = require("./SidebarContext");
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
18
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
19
19
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
20
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
21
  var Tooltip = function Tooltip(_ref) {
22
22
  var content = _ref.content,
23
23
  children = _ref.children;
24
24
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.TooltipWrapper, {
25
- placement: "right",
25
+ side: "right",
26
+ sideOffset: 24,
26
27
  delay: 0,
27
28
  hideDelay: 0,
28
- modifiers: [{
29
- name: "offset",
30
- options: {
31
- offset: [0, 32]
32
- }
33
- }],
34
29
  content: content,
35
- wrapperClassName: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["block"]))),
36
30
  interactive: false,
37
31
  children: children
38
32
  });
@@ -72,17 +66,17 @@ var SidebarButtonLink = function SidebarButtonLink(props) {
72
66
  onBlur: function onBlur() {
73
67
  return setIsInteractedWith(false);
74
68
  },
75
- className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n h-8 min-w-8 w-full rounded\n flex items-center space-x-3\n border border-transparent\n display-body\n hover:no-underline focus:no-underline\n ", "\n ", "\n ", "\n ", "\n "])), disabled ? "cursor-not-allowed opacity-70" : "focus:border-grey-500", isActive ? "shadow-z100" : !disabled && "hover:border-grey-200", isActive && "bg-gradient-to-b from-white to-grey-50", collapsed ? "pl-2" : "px-2"),
69
+ className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n h-8 min-w-8 w-full rounded\n flex items-center space-x-3\n border border-transparent\n display-body\n hover:no-underline focus:no-underline\n ", "\n ", "\n ", "\n ", "\n "])), disabled ? "cursor-not-allowed opacity-70" : "focus:border-grey-500", isActive ? "shadow-z100" : !disabled && "hover:border-grey-200", isActive && "bg-gradient-to-b from-white to-grey-50", collapsed ? "pl-2" : "px-2"),
76
70
  "aria-current": isActive,
77
71
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
78
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["", " ml-[-3px]"])), showColors ? "text-accent-600" : "text-grey-400"),
72
+ className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["", " ml-[-3px]"])), showColors ? "text-accent-600" : "text-grey-400"),
79
73
  height: 20,
80
74
  width: 20
81
75
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
82
- className: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n ", "\n ", "\n "])), collapsed && "sr-only", showColors ? "text-accent-600" : "typo-subdued", isActive && "font-bold"),
76
+ className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n ", "\n ", "\n "])), collapsed && "sr-only", showColors ? "text-accent-600" : "typo-subdued", isActive && "font-bold"),
83
77
  children: children
84
78
  }), isExternalLink && !collapsed && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFeather.ExternalLink, {
85
- className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["", " !ml-1 shrink-0"])), showColors ? "text-accent-600" : "typo-subdued"),
79
+ className: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["", " !ml-1 shrink-0"])), showColors ? "text-accent-600" : "typo-subdued"),
86
80
  size: "1em"
87
81
  })]
88
82
  }))
package/cjs/Tag/Tag.js CHANGED
@@ -16,7 +16,7 @@ var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satel
16
16
  var _Tooltip = require("../Tooltip");
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
18
  var _excluded = ["children", "variant", "className", "onAdd", "addTooltip", "onRemove", "removeTooltip", "locale"];
19
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
19
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
20
20
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
21
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
22
22
  var DEFAULT_TAG_LOCALE = {
@@ -93,7 +93,7 @@ var Tag = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
93
93
  onRemove === null || onRemove === void 0 ? void 0 : onRemove(evt);
94
94
  };
95
95
  var content = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
96
- className: (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["truncate flex-1 leading-base"]))),
96
+ className: (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["truncate flex-1"]))),
97
97
  children: children
98
98
  });
99
99
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", _objectSpread(_objectSpread({}, props), {}, {
@@ -102,10 +102,9 @@ var Tag = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
102
102
  children: [addable ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.TooltipWrapper, {
103
103
  content: addTooltip,
104
104
  hideDelay: 0,
105
- placement: "bottom",
106
- wrapperClassName: (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["h-full"]))),
105
+ side: "bottom",
107
106
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
108
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["tag-add-button"]))), !removable && (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["-mr-2"]))), BUTTON_VARIANT_CLASSNAMES[variant]),
107
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["tag-add-button"]))), !removable && (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["-mr-2"]))), BUTTON_VARIANT_CLASSNAMES[variant]),
109
108
  type: "button",
110
109
  onClick: handleAdd,
111
110
  "aria-label": typeof locale.addButton === "function" ? locale.addButton(title) : locale.addButton,
@@ -116,9 +115,10 @@ var Tag = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
116
115
  }) : content, removable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.TooltipWrapper, {
117
116
  content: removeTooltip,
118
117
  hideDelay: 0,
119
- placement: "bottom-start",
118
+ side: "bottom",
119
+ align: "start",
120
120
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
121
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["tag-close-button p-1"]))), !addable && (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["ml-2"]))), BUTTON_VARIANT_CLASSNAMES[variant]),
121
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["tag-close-button p-1"]))), !addable && (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["ml-2"]))), BUTTON_VARIANT_CLASSNAMES[variant]),
122
122
  type: "button",
123
123
  onClick: handleRemove,
124
124
  "aria-label": typeof locale.removeButton === "function" ? locale.removeButton(title) : locale.removeButton,
@@ -11,10 +11,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _clsx = _interopRequireDefault(require("clsx"));
13
13
  var _react = require("react");
14
- var _reactFeather = require("react-feather");
15
14
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
16
15
  var _jsxRuntime = require("react/jsx-runtime");
17
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
16
+ var _templateObject, _templateObject2;
18
17
  var _excluded = ["className", "checked", "defaultChecked"];
19
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
19
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -52,17 +51,8 @@ var Toggle = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
52
51
  type: "checkbox",
53
52
  role: "switch",
54
53
  ref: ref
55
- })), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
56
- className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["toggle flex justify-around items-center"]))),
57
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFeather.Check, {
58
- size: 12,
59
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["text-white"]))),
60
- "aria-hidden": true
61
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFeather.X, {
62
- size: 12,
63
- className: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["text-grey-300"]))),
64
- "aria-hidden": true
65
- })]
54
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
55
+ className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["toggle"])))
66
56
  })]
67
57
  });
68
58
  });