@algolia/satellite 1.0.0-beta.155 → 1.0.0-beta.157

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 (43) hide show
  1. package/cjs/Avatars/UserAvatar.d.ts +7 -3
  2. package/cjs/Avatars/UserAvatar.js +28 -28
  3. package/cjs/Button/Button.tailwind.js +0 -2
  4. package/cjs/Button/IconButton.d.ts +3 -0
  5. package/cjs/Button/IconButton.js +4 -2
  6. package/cjs/EmptyState/EmptyState.js +1 -1
  7. package/cjs/FlexGrid/FlexGrid.js +1 -1
  8. package/cjs/Pagination/DotPagination/DotPagination.d.ts +6 -5
  9. package/cjs/RangeSlider/RangeSlider.js +1 -1
  10. package/cjs/Satellite/locale.d.ts +2 -0
  11. package/cjs/Sidebar/SidebarHeading.js +1 -1
  12. package/cjs/Sidebar/SidebarLink.js +8 -5
  13. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +7 -4
  14. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +1 -1
  15. package/cjs/Tables/DataTable/DataTable.js +12 -12
  16. package/cjs/Tooltip/Tooltip.tailwind.js +2 -1
  17. package/cjs/index.d.ts +1 -0
  18. package/cjs/index.js +12 -0
  19. package/cjs/utils/NumberUnion.d.ts +5 -0
  20. package/cjs/utils/NumberUnion.js +5 -0
  21. package/cjs/utils/isCssPropertySupported.d.ts +1 -1
  22. package/esm/Avatars/UserAvatar.d.ts +7 -3
  23. package/esm/Avatars/UserAvatar.js +28 -28
  24. package/esm/Button/Button.tailwind.js +0 -2
  25. package/esm/Button/IconButton.d.ts +3 -0
  26. package/esm/Button/IconButton.js +4 -2
  27. package/esm/EmptyState/EmptyState.js +1 -1
  28. package/esm/Pagination/DotPagination/DotPagination.d.ts +6 -5
  29. package/esm/RangeSlider/RangeSlider.js +2 -0
  30. package/esm/Satellite/locale.d.ts +2 -0
  31. package/esm/Sidebar/SidebarHeading.js +1 -1
  32. package/esm/Sidebar/SidebarLink.js +8 -5
  33. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +7 -4
  34. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +1 -1
  35. package/esm/Tables/DataTable/DataTable.js +12 -12
  36. package/esm/Tooltip/Tooltip.tailwind.js +2 -1
  37. package/esm/index.d.ts +1 -0
  38. package/esm/index.js +1 -0
  39. package/esm/utils/NumberUnion.d.ts +5 -0
  40. package/esm/utils/NumberUnion.js +1 -0
  41. package/esm/utils/isCssPropertySupported.d.ts +1 -1
  42. package/package.json +2 -1
  43. package/satellite.min.css +1 -1
@@ -1,48 +1,48 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- var _templateObject, _templateObject2, _templateObject3;
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
4
+ 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; }
5
+ 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) { _defineProperty(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; }
6
+ import { AvatarFallback, Image as AvatarImage, Root as AvatarRoot } from "@radix-ui/react-avatar";
4
7
  import cx from "clsx";
5
- import { useEffect, useState } from "react";
8
+ import { useLocale } from "../Satellite";
6
9
  import stl from "../styles/helpers/satellitePrefixer";
7
10
  import { getUserBackgroundClassName, getUserInitials } from "./utils";
8
11
  import { jsx as _jsx } from "react/jsx-runtime";
9
12
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ var DEFAULT_LOCALE = {
14
+ fallbackText: "User's avatar"
15
+ };
10
16
  /** The `UserAvatar` is used as a visual representation of a user. */
11
17
  export var UserAvatar = function UserAvatar(_ref) {
12
18
  var _user$email;
13
19
  var className = _ref.className,
14
20
  user = _ref.user,
15
21
  _ref$size = _ref.size,
16
- size = _ref$size === void 0 ? 32 : _ref$size;
17
- var _useState = useState(false),
18
- _useState2 = _slicedToArray(_useState, 2),
19
- imageLoaded = _useState2[0],
20
- setImageLoaded = _useState2[1];
21
- var initials = getUserInitials(user);
22
- useEffect(function () {
23
- return setImageLoaded(false);
24
- }, [user.avatar]);
25
- return /*#__PURE__*/_jsxs("div", {
26
- role: "img",
27
- "aria-label": imageLoaded ? (user === null || user === void 0 ? void 0 : user.name) || "User's avatar" : "User's avatar",
28
- className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["relative overflow-hidden flex justify-center items-center rounded-full uppercase transition-colors"]))), imageLoaded ? stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["bg-white"]))) : getUserBackgroundClassName((_user$email = user.email) !== null && _user$email !== void 0 ? _user$email : "no-email"), className),
22
+ size = _ref$size === void 0 ? 32 : _ref$size,
23
+ propsLocale = _ref.locale;
24
+ var contextLocale = useLocale("userAvatar");
25
+ var locale = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_LOCALE), contextLocale), propsLocale);
26
+ var fallbackName = user.name || user.email || locale.fallbackText;
27
+ return /*#__PURE__*/_jsxs(AvatarRoot, {
28
+ className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["overflow-hidden flex justify-center items-center rounded-full"]))), getUserBackgroundClassName((_user$email = user.email) !== null && _user$email !== void 0 ? _user$email : "no-email"), className),
29
29
  style: {
30
30
  width: size,
31
31
  height: size
32
32
  },
33
- children: [!imageLoaded && /*#__PURE__*/_jsx("span", {
34
- children: initials
35
- }), /*#__PURE__*/_jsx("img", {
36
- className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n w-full absolute top-0 left-0\n transition-opacity ", "\n "])), imageLoaded ? "opacity-100" : "opacity-0"),
33
+ children: [/*#__PURE__*/_jsx(AvatarImage, {
34
+ className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["h-full w-full object-cover"]))),
37
35
  src: user.avatar,
38
- role: "presentation",
39
- alt: "",
40
- onLoad: function onLoad() {
41
- return setImageLoaded(true);
42
- },
43
- onError: function onError() {
44
- return setImageLoaded(false);
45
- }
36
+ alt: fallbackName
37
+ }), /*#__PURE__*/_jsxs(AvatarFallback, {
38
+ className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["flex h-full w-full items-center justify-center uppercase"]))),
39
+ children: [/*#__PURE__*/_jsx("span", {
40
+ "aria-hidden": true,
41
+ children: getUserInitials(user)
42
+ }), /*#__PURE__*/_jsx("span", {
43
+ className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["sr-only"]))),
44
+ children: fallbackName
45
+ })]
46
46
  })]
47
47
  });
48
48
  };
@@ -60,7 +60,6 @@ var buttonPlugin = plugin(function (_ref) {
60
60
  },
61
61
  "&:active, &.btn-active": {
62
62
  borderColor: theme("colors.grey.200"),
63
- backgroundImage: theme("color.grey.100"),
64
63
  boxShadow: "\n inset 0 1px 4px 0 ".concat(rgba(theme("colors.grey.500"), 0.4), ",\n inset 0 1px 1px 0 ").concat(rgba(theme("colors.grey.500"), 0.4), ",\n 0 1px 0 0 ").concat(theme("colors.shadow.5"), "\n ")
65
64
  },
66
65
  "&:disabled, &.btn-disabled": {
@@ -115,7 +114,6 @@ var buttonPlugin = plugin(function (_ref) {
115
114
  boxShadow: "\n inset 0 1px 0 0 ".concat(rgba(theme("colors.white"), 0.06), ",\n 0 0 0 1px ").concat(theme("colors.red.800"), ",\n 0 2px 0 1px ").concat(theme("colors.shadow.10"), "\n ")
116
115
  },
117
116
  "&:active, &.btn-active": {
118
- backgroundImage: theme("colors.red.700"),
119
117
  borderColor: theme("colors.red.800"),
120
118
  boxShadow: "\n inset 0 1px 4px 0 ".concat(rgba(theme("colors.red.900"), 0.4), ",\n inset 0 1px 1px 0 ").concat(rgba(theme("colors.red.900"), 0.6), ",\n 0 1px 0 0 ").concat(theme("colors.shadow.5"), "\n ")
121
119
  },
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import type { TooltipWrapperBaseProps } from "../Tooltip/types";
2
3
  import type { IconComponentType } from "../types";
3
4
  import { AcceptableButtonType, ButtonSize, ButtonVariant, ExtractProps } from "./types";
4
5
  export interface IconButtonBaseProps {
@@ -8,6 +9,8 @@ export interface IconButtonBaseProps {
8
9
  icon: IconComponentType;
9
10
  title: string;
10
11
  showTooltip?: boolean;
12
+ /** @default "top" */
13
+ tooltipPlacement?: TooltipWrapperBaseProps["placement"];
11
14
  loading?: boolean;
12
15
  }
13
16
  export declare type IconButtonProps<T extends AcceptableButtonType> = IconButtonBaseProps & ExtractProps<T> & {
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
4
- var _excluded = ["as", "className", "variant", "size", "icon", "title", "showTooltip", "loading"];
4
+ var _excluded = ["as", "className", "variant", "size", "icon", "title", "showTooltip", "tooltipPlacement", "loading"];
5
5
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
6
6
  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; }
7
7
  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) { _defineProperty(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; }
@@ -34,6 +34,8 @@ export var IconButton = function IconButton(props) {
34
34
  Icon = props.icon,
35
35
  title = props.title,
36
36
  showTooltip = props.showTooltip,
37
+ _props$tooltipPlaceme = props.tooltipPlacement,
38
+ tooltipPlacement = _props$tooltipPlaceme === void 0 ? "top" : _props$tooltipPlaceme,
37
39
  _props$loading = props.loading,
38
40
  loading = _props$loading === void 0 ? false : _props$loading,
39
41
  cleanedProps = _objectWithoutProperties(props, _excluded);
@@ -49,7 +51,7 @@ export var IconButton = function IconButton(props) {
49
51
  return /*#__PURE__*/_jsx(TooltipWrapper, {
50
52
  delay: 500,
51
53
  show: showTooltip,
52
- placement: "top",
54
+ placement: tooltipPlacement,
53
55
  content: title,
54
56
  children: /*#__PURE__*/_jsx(Tag, _objectSpread(_objectSpread({}, cleanedProps), {}, {
55
57
  className: iconButtonClassName,
@@ -69,7 +69,7 @@ var renderEmptyState = function renderEmptyState(_ref) {
69
69
  }), /*#__PURE__*/_jsx("h2", {
70
70
  className: titleClassNames,
71
71
  children: title
72
- }), !!description && /*#__PURE__*/_jsx("p", {
72
+ }), !!description && /*#__PURE__*/_jsx("div", {
73
73
  className: descriptionClassNames,
74
74
  children: description
75
75
  }), !!actions && /*#__PURE__*/_jsx(FlexGrid, {
@@ -1,14 +1,15 @@
1
1
  /// <reference types="react" />
2
+ import type { NumberUnion } from "utils/NumberUnion";
2
3
  export declare type DotPaginationLocale = {
3
4
  goToPageText?(page: number): string;
4
5
  };
5
- export declare type DotPaginationProps = {
6
+ export declare type DotPaginationProps<T extends number> = {
6
7
  /** Currently selected page (1 based index) */
7
- currentPage: number;
8
- onChange: (page: number) => void;
9
- nbPages: number;
8
+ currentPage: NumberUnion<T>;
9
+ onChange: (page: NumberUnion<T>) => void;
10
+ nbPages: T;
10
11
  size?: "small" | "medium";
11
12
  locale?: DotPaginationLocale;
12
13
  };
13
- export declare const DotPagination: ({ currentPage, onChange, nbPages, size, locale: propsLocale, }: DotPaginationProps) => JSX.Element;
14
+ export declare const DotPagination: <T extends number>({ currentPage, onChange, nbPages, size, locale: propsLocale, }: DotPaginationProps<T>) => JSX.Element;
14
15
  export default DotPagination;
@@ -9,6 +9,8 @@ import { SliderRange, Root as SliderRoot, SliderThumb, SliderTrack } from "@radi
9
9
  import cx from "clsx";
10
10
  import colors from "../styles/colors";
11
11
  import stl from "../styles/helpers/satellitePrefixer";
12
+
13
+ // Prevents unwanted number narrowing
12
14
  import { jsx as _jsx } from "react/jsx-runtime";
13
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
16
  var TRACK_SHADOWS_CLASSNAME = stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["shadow-[inset_0_1px_3px_0_rgb(0_0_0_/_10%),0_0.5px_0_0_rgb(255_255_255_/_5%)]"])));
@@ -1,5 +1,6 @@
1
1
  import type { AnnouncementBadgeLocale } from "../AnnouncementBadge";
2
2
  import type { AutoCompleteLocale } from "../AutoComplete";
3
+ import type { UserAvatarLocale } from "../Avatars/UserAvatar";
3
4
  import type { DatePickerLocale } from "../DatePicker/types";
4
5
  import type { DropzoneLocale } from "../Dropzone";
5
6
  import type { FlagLocale } from "../Flag";
@@ -25,5 +26,6 @@ export declare type ComponentsLocales = {
25
26
  pagination?: PaginationLocale;
26
27
  sidebar?: SidebarLocale;
27
28
  tag?: TagLocale;
29
+ userAvatar?: UserAvatarLocale;
28
30
  };
29
31
  export declare const useLocale: <ComponentKey extends keyof ComponentsLocales>(componentKey: ComponentKey) => ComponentsLocales[ComponentKey];
@@ -12,7 +12,7 @@ export var SidebarHeading = function SidebarHeading(_ref) {
12
12
  collapsed = _useSidebarContext.collapsed;
13
13
  return /*#__PURE__*/_jsx("span", {
14
14
  id: id,
15
- className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n h-8 block leading-[2rem]\n display-subheading typo-subdued uppercase select-none\n ", "\n "])), collapsed && "sr-only"), className),
15
+ className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n h-8 block leading-[2rem]\n display-subheading typo-subdued uppercase select-none\n ", "\n "])), collapsed && "opacity-0"), className),
16
16
  children: children
17
17
  });
18
18
  };
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
4
4
  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; }
5
5
  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) { _defineProperty(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; }
6
6
  import cx from "clsx";
@@ -24,16 +24,19 @@ export var SidebarLink = function SidebarLink(props) {
24
24
  var isActive = !disabled && !isExternalLink && isLinkActive((_linkProps$href = linkProps.href) !== null && _linkProps$href !== void 0 ? _linkProps$href : "");
25
25
  return /*#__PURE__*/_jsxs("a", _objectSpread(_objectSpread({}, linkProps), {}, {
26
26
  id: id,
27
- className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex items-center\n group hover:no-underline focus:outline-none\n ", "\n "])), disabled ? "cursor-not-allowed" : "cursor-pointer"), className),
27
+ className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex items-center overflow-hidden w-full\n group hover:no-underline focus:outline-none\n ", "\n "])), disabled ? "cursor-not-allowed" : "cursor-pointer"), className),
28
28
  "aria-current": isActive,
29
29
  children: [/*#__PURE__*/_jsx(Icon, {
30
30
  className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["shrink-0 mr-3 ", ""])), disabled ? "text-grey-300" : "text-grey-500"),
31
31
  width: "1rem",
32
32
  height: "1rem"
33
33
  }), /*#__PURE__*/_jsxs("span", {
34
- className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-1 inline-flex items-center truncate\n ", ""])), disabled ? "text-grey-300" : isActive ? "font-semibold text-accent-600" : "typo-subdued group-focus:text-accent-600 group-hover:text-accent-600"),
35
- children: [children, isExternalLink && /*#__PURE__*/_jsx(ExternalLink, {
36
- className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["", " ml-1 shrink-0"])), disabled ? "text-grey-300" : "text-grey-500"),
34
+ className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-1 inline-flex items-center overflow-hidden\n ", ""])), disabled ? "text-grey-300" : isActive ? "font-semibold text-accent-600" : "typo-subdued group-focus:text-accent-600 group-hover:text-accent-600"),
35
+ children: [/*#__PURE__*/_jsx("span", {
36
+ className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["truncate"]))),
37
+ children: children
38
+ }), isExternalLink && /*#__PURE__*/_jsx(ExternalLink, {
39
+ className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["shrink-0 ml-1 ", ""])), disabled ? "text-grey-300" : "text-grey-500 group-focus:text-accent-600 group-hover:text-accent-600"),
37
40
  size: "1em"
38
41
  })]
39
42
  })]
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
- var _templateObject, _templateObject2;
3
+ var _templateObject, _templateObject2, _templateObject3;
4
4
  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; }
5
5
  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) { _defineProperty(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; }
6
6
  import { ExternalLink } from "react-feather";
@@ -17,10 +17,13 @@ export var SidebarGroupLink = function SidebarGroupLink(props) {
17
17
  var isExternalLink = linkProps.target === "_blank";
18
18
  return /*#__PURE__*/_jsxs("a", _objectSpread(_objectSpread({}, linkProps), {}, {
19
19
  id: id,
20
- className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n inline-flex items-center hover:no-underline focus:outline-none leading-md\n ", "\n ", ""])), disabled ? "cursor-not-allowed" : "cursor-pointer", disabled ? "text-grey-300" : active ? "font-semibold text-accent-600" : "typo-subdued hover:text-accent-600 focus:text-accent-600"),
20
+ className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n inline-flex w-full items-center hover:no-underline focus:outline-none leading-md\n ", "\n ", ""])), disabled ? "cursor-not-allowed" : "cursor-pointer", disabled ? "text-grey-300" : active ? "font-semibold text-accent-600" : "typo-subdued hover:text-accent-600 focus:text-accent-600"),
21
21
  "aria-current": active,
22
- children: [label, isExternalLink && /*#__PURE__*/_jsx(ExternalLink, {
23
- className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["ml-1 shrink-0"]))),
22
+ children: [/*#__PURE__*/_jsx("span", {
23
+ className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["truncate"]))),
24
+ children: label
25
+ }), isExternalLink && /*#__PURE__*/_jsx(ExternalLink, {
26
+ className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["ml-1 shrink-0"]))),
24
27
  size: "1em"
25
28
  })]
26
29
  }));
@@ -78,7 +78,7 @@ export var SidebarLinksGroup = function SidebarLinksGroup(props) {
78
78
  className: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["flex-1 space-y-2 overflow-hidden"]))),
79
79
  children: links.map(function (link, idx) {
80
80
  return /*#__PURE__*/_jsx("li", {
81
- className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["truncate"]))),
81
+ className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["overflow-hidden"]))),
82
82
  children: /*#__PURE__*/_jsx(SidebarGroupLink, _objectSpread(_objectSpread({}, link), {}, {
83
83
  active: activeLinkIndex === idx
84
84
  }))
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
5
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
6
6
  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; }
7
7
  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) { _defineProperty(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; }
8
8
  import compact from "lodash/compact";
@@ -30,6 +30,9 @@ var DEFAULT_DATATABLE_LOCALE = {
30
30
  errorTitle: "Error",
31
31
  errorDescription: "An error occurred while loading data."
32
32
  };
33
+
34
+ // Selection
35
+
33
36
  var DEFAULT_GET_ITEM_ID = function DEFAULT_GET_ITEM_ID(_, idx) {
34
37
  return String(idx);
35
38
  };
@@ -133,10 +136,7 @@ export var DataTable = function DataTable(_ref) {
133
136
  var isChecked = selectionLength === dataLength;
134
137
  var isIndeterminate = selectionLength > 0 && selectionLength !== dataLength;
135
138
  return /*#__PURE__*/_jsx(Checkbox, {
136
- "aria-label": locale.selectAllButton
137
- // Small hack to position the checkbox in the center of the header
138
- ,
139
- className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["absolute mb-2.5"]))),
139
+ "aria-label": locale.selectAllButton,
140
140
  checked: isChecked,
141
141
  indeterminate: isIndeterminate,
142
142
  onClick: function onClick() {
@@ -147,15 +147,15 @@ export var DataTable = function DataTable(_ref) {
147
147
  Cell: function Cell(_ref3) {
148
148
  var row = _ref3.row;
149
149
  return /*#__PURE__*/_jsx("div", {
150
- className: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex"]))),
150
+ className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["flex"]))),
151
151
  children: /*#__PURE__*/_jsx(Checkbox, {
152
152
  checked: row.selected,
153
153
  disabled: !row.selectable,
154
- className: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["", ""])), row.hovered || row.selected ? "opacity-100" : "opacity-0 select-none")
154
+ className: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["", ""])), row.hovered || row.selected ? "opacity-100" : "opacity-0 select-none")
155
155
  })
156
156
  });
157
157
  },
158
- className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["w-3"])))
158
+ className: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["w-3"])))
159
159
  }].concat(_toConsumableArray(columns.map(function (c) {
160
160
  var _c$Header;
161
161
  return typeof c === "string" ? {
@@ -215,15 +215,15 @@ export var DataTable = function DataTable(_ref) {
215
215
  return onChange === null || onChange === void 0 ? void 0 : onChange(dataConfiguration);
216
216
  };
217
217
  return /*#__PURE__*/_jsxs("div", {
218
- className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["relative"]))),
218
+ className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["relative"]))),
219
219
  children: [status === "loading" && /*#__PURE__*/_jsx("div", {
220
- className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["absolute bg-white/50 z-10 w-full h-full flex items-center justify-center"]))),
220
+ className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["absolute bg-white/50 z-10 w-full h-full flex items-center justify-center"]))),
221
221
  children: /*#__PURE__*/_jsx(DataTableLoader, {
222
- className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["-mt-12"]))),
222
+ className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["-mt-12"]))),
223
223
  locale: locale
224
224
  })
225
225
  }), /*#__PURE__*/_jsxs(Table, {
226
- className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["datatable ", " ", ""])), status === "loading" && "pointer-events-none select-none", status === "loading" && data.length === 0 && "h-48"),
226
+ className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["datatable ", " ", ""])), status === "loading" && "pointer-events-none select-none", status === "loading" && data.length === 0 && "h-48"),
227
227
  highlight: false,
228
228
  footer: shouldRenderPagination() && /*#__PURE__*/_jsx(DataTableFooter, {
229
229
  pagination: pagination,
@@ -28,7 +28,8 @@ var tooltipPlugin = plugin(function (_ref) {
28
28
  },
29
29
  ".tooltip-dark": {
30
30
  ".typo-link": {
31
- color: theme("colors.accent.300")
31
+ color: theme("colors.accent.300"),
32
+ textDecoration: "underline"
32
33
  }
33
34
  },
34
35
  ".tooltip-light": {
package/esm/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { default as colors } from "./styles/colors";
3
3
  export { default as brandColors } from "./styles/brandColors";
4
4
  export { default as stl } from "./styles/helpers/satellitePrefixer";
5
5
  export { default as makePurgeCssExtractor } from "./styles/helpers/makePurgeCssExtractor";
6
+ export * from "./utils/NumberUnion";
6
7
  export * from "./utils/parseUrl";
7
8
  export * from "./utils/useLinkProps";
8
9
  export * from "./AnnouncementBadge";
package/esm/index.js CHANGED
@@ -3,6 +3,7 @@ export { default as colors } from "./styles/colors";
3
3
  export { default as brandColors } from "./styles/brandColors";
4
4
  export { default as stl } from "./styles/helpers/satellitePrefixer";
5
5
  export { default as makePurgeCssExtractor } from "./styles/helpers/makePurgeCssExtractor";
6
+ export * from "./utils/NumberUnion";
6
7
  export * from "./utils/parseUrl";
7
8
  export * from "./utils/useLinkProps";
8
9
  export * from "./AnnouncementBadge";
@@ -0,0 +1,5 @@
1
+ declare type AscendingArray<length extends number, accumulator extends Array<number> = []> = accumulator["length"] extends length ? accumulator : AscendingArray<length, [...accumulator, accumulator["length"]]>;
2
+ declare type ArrayToUnion<T extends Array<any>> = T[number];
3
+ /** example: `NumberUnion<3> = 1 | 2 | 3` */
4
+ export declare type NumberUnion<T extends number> = Exclude<ArrayToUnion<AscendingArray<T>>, 0> | T;
5
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
- declare const isCssPropertySupported: <P extends number | "filter" | "fill" | "animationName" | "all" | "offset" | "height" | "width" | "left" | "top" | "item" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "clip" | "clipPath" | "clipRule" | "color" | "colorInterpolation" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "cursor" | "direction" | "display" | "dominantBaseline" | "emptyCells" | "fillOpacity" | "fillRule" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "floodColor" | "floodOpacity" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "fontWeight" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "imageRendering" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lightingColor" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetRotate" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "quotes" | "resize" | "right" | "rotate" | "rowGap" | "rubyPosition" | "scale" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textAnchor" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "unicodeBidi" | "userSelect" | "verticalAlign" | "visibility" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
1
+ declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "animationName" | "all" | "offset" | "height" | "width" | "left" | "top" | "item" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "clip" | "clipPath" | "clipRule" | "color" | "colorInterpolation" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "cursor" | "direction" | "display" | "dominantBaseline" | "emptyCells" | "fillOpacity" | "fillRule" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "floodColor" | "floodOpacity" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "fontWeight" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "imageRendering" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lightingColor" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetRotate" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "quotes" | "resize" | "right" | "rotate" | "rowGap" | "rubyPosition" | "scale" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textAnchor" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "unicodeBidi" | "userSelect" | "verticalAlign" | "visibility" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
2
2
  export default isCssPropertySupported;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/satellite",
3
- "version": "1.0.0-beta.155",
3
+ "version": "1.0.0-beta.157",
4
4
  "description": "Algolia design system React components",
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -68,6 +68,7 @@
68
68
  "dependencies": {
69
69
  "@babel/runtime": "^7.21.0",
70
70
  "@popperjs/core": "^2.4.4",
71
+ "@radix-ui/react-avatar": "^1.0.3",
71
72
  "@radix-ui/react-slider": "^1.1.0",
72
73
  "@radix-ui/react-tabs": "^1.0.2",
73
74
  "clsx": "^1.2.1",