@algolia/satellite 1.0.0-beta.115 → 1.0.0-beta.119

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 (95) hide show
  1. package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +1 -1
  2. package/cjs/AutoComplete/AutoComplete.tailwind.js +1 -1
  3. package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +1 -1
  4. package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
  5. package/cjs/Avatars/ApplicationAvatar.js +43 -0
  6. package/cjs/Avatars/UserAvatar.d.ts +13 -0
  7. package/cjs/Avatars/UserAvatar.js +64 -0
  8. package/cjs/Avatars/index.d.ts +3 -0
  9. package/cjs/Avatars/index.js +46 -0
  10. package/cjs/Avatars/types.d.ts +17 -0
  11. package/cjs/Avatars/types.js +5 -0
  12. package/cjs/Avatars/utils.d.ts +6 -0
  13. package/cjs/Avatars/utils.js +82 -0
  14. package/cjs/Card/Card.tailwind.js +2 -1
  15. package/cjs/Dropdown/Dropdown.d.ts +2 -2
  16. package/cjs/Dropdown/Dropdown.js +1 -1
  17. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +1 -1
  18. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +1 -1
  19. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +1 -1
  20. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +1 -1
  21. package/cjs/Dropdown/useDropdownItemProps.js +1 -1
  22. package/cjs/Modal/Modal.d.ts +1 -1
  23. package/cjs/Modal/Modal.js +10 -7
  24. package/cjs/Modal/Modal.tailwind.js +0 -5
  25. package/cjs/Modal/components/ModalSection.d.ts +10 -0
  26. package/cjs/Modal/components/ModalSection.js +32 -0
  27. package/cjs/Modal/index.d.ts +2 -0
  28. package/cjs/Modal/index.js +28 -0
  29. package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +21 -0
  30. package/cjs/Pagination/CompactPagination/CompactPagination.js +78 -0
  31. package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
  32. package/cjs/Pagination/CompactPagination/index.js +32 -0
  33. package/cjs/Pagination/DotPagination/DotPagination.d.ts +9 -0
  34. package/cjs/Pagination/DotPagination/DotPagination.js +40 -0
  35. package/cjs/Pagination/DotPagination/index.d.ts +2 -0
  36. package/cjs/Pagination/DotPagination/index.js +32 -0
  37. package/cjs/Pagination/{Pagination.d.ts → Pagination/Pagination.d.ts} +1 -1
  38. package/cjs/Pagination/{Pagination.js → Pagination/Pagination.js} +3 -3
  39. package/cjs/Pagination/Pagination/index.d.ts +2 -0
  40. package/cjs/Pagination/Pagination/index.js +32 -0
  41. package/cjs/Pagination/index.d.ts +2 -0
  42. package/cjs/Pagination/index.js +28 -0
  43. package/cjs/index.d.ts +1 -0
  44. package/cjs/index.js +14 -0
  45. package/cjs/utils/hashCode.d.ts +2 -0
  46. package/cjs/utils/hashCode.js +28 -0
  47. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +1 -1
  48. package/esm/AutoComplete/AutoComplete.tailwind.js +1 -1
  49. package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +1 -1
  50. package/esm/Avatars/ApplicationAvatar.d.ts +13 -0
  51. package/esm/Avatars/ApplicationAvatar.js +27 -0
  52. package/esm/Avatars/UserAvatar.d.ts +13 -0
  53. package/esm/Avatars/UserAvatar.js +42 -0
  54. package/esm/Avatars/index.d.ts +3 -0
  55. package/esm/Avatars/index.js +3 -0
  56. package/esm/Avatars/types.d.ts +17 -0
  57. package/esm/Avatars/types.js +1 -0
  58. package/esm/Avatars/utils.d.ts +6 -0
  59. package/esm/Avatars/utils.js +56 -0
  60. package/esm/Card/Card.tailwind.js +2 -1
  61. package/esm/Dropdown/Dropdown.d.ts +2 -2
  62. package/esm/Dropdown/Dropdown.js +1 -1
  63. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +1 -1
  64. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +1 -1
  65. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +1 -1
  66. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +1 -1
  67. package/esm/Dropdown/useDropdownItemProps.js +1 -1
  68. package/esm/Modal/Modal.d.ts +1 -1
  69. package/esm/Modal/Modal.js +10 -7
  70. package/esm/Modal/Modal.tailwind.js +0 -5
  71. package/esm/Modal/components/ModalSection.d.ts +10 -0
  72. package/esm/Modal/components/ModalSection.js +17 -0
  73. package/esm/Modal/index.d.ts +2 -0
  74. package/esm/Modal/index.js +2 -0
  75. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +21 -0
  76. package/esm/Pagination/CompactPagination/CompactPagination.js +56 -0
  77. package/esm/Pagination/CompactPagination/index.d.ts +2 -0
  78. package/esm/Pagination/CompactPagination/index.js +2 -0
  79. package/esm/Pagination/DotPagination/DotPagination.d.ts +9 -0
  80. package/esm/Pagination/DotPagination/DotPagination.js +26 -0
  81. package/esm/Pagination/DotPagination/index.d.ts +2 -0
  82. package/esm/Pagination/DotPagination/index.js +2 -0
  83. package/esm/Pagination/{Pagination.d.ts → Pagination/Pagination.d.ts} +1 -1
  84. package/esm/Pagination/{Pagination.js → Pagination/Pagination.js} +3 -3
  85. package/esm/Pagination/Pagination/index.d.ts +2 -0
  86. package/esm/Pagination/Pagination/index.js +2 -0
  87. package/esm/Pagination/index.d.ts +2 -0
  88. package/esm/Pagination/index.js +2 -0
  89. package/esm/index.d.ts +1 -0
  90. package/esm/index.js +1 -0
  91. package/esm/utils/hashCode.d.ts +2 -0
  92. package/esm/utils/hashCode.js +18 -0
  93. package/package.json +2 -1
  94. package/satellite.css +2 -5
  95. package/satellite.min.css +1 -1
@@ -108,7 +108,7 @@ export var Dropdown = function Dropdown(_ref) {
108
108
  }), /*#__PURE__*/React.createElement(Card, {
109
109
  fullBleed: true,
110
110
  elevation: "300",
111
- className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["flex flex-col py-1"])))
111
+ className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["flex flex-col py-1 text-grey-900"])))
112
112
  }, children, footer ? /*#__PURE__*/React.createElement(DropdownFooterItem, null, footer) : null))), document.body)));
113
113
  };
114
114
  Dropdown.ButtonItem = DropdownButtonItem;
@@ -45,7 +45,7 @@ export var DropdownCollapsibleItem = function DropdownCollapsibleItem(_ref) {
45
45
  className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["text-grey-500"]))),
46
46
  size: "1.25em"
47
47
  })), isExpanded && /*#__PURE__*/React.createElement("div", {
48
- className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-grey-50 border-l-2 border-grey-300"])))
48
+ className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-grey-50 border-l-2 border-grey-300 typo-subdued"])))
49
49
  }, children));
50
50
  };
51
51
  export default DropdownCollapsibleItem;
@@ -4,4 +4,4 @@ export declare type DropdownCollapsibleItemsGroupProps = {
4
4
  onItemClick(name: string): void;
5
5
  children: ReactNode;
6
6
  };
7
- export declare const DropdownCollapsibleItemsGroup: ({ expandedItems, onItemClick, children }: DropdownCollapsibleItemsGroupProps) => JSX.Element;
7
+ export declare const DropdownCollapsibleItemsGroup: ({ expandedItems, onItemClick, children, }: DropdownCollapsibleItemsGroupProps) => JSX.Element;
@@ -6,4 +6,4 @@ export declare type DropdownCollapsibleItemsMultiGroupProps = {
6
6
  /**
7
7
  * Multiple collapsible item can be open at a given time
8
8
  */
9
- export declare const DropdownCollapsibleItemsMultiGroup: ({ initialExpandedItems, children }: DropdownCollapsibleItemsMultiGroupProps) => JSX.Element;
9
+ export declare const DropdownCollapsibleItemsMultiGroup: ({ initialExpandedItems, children, }: DropdownCollapsibleItemsMultiGroupProps) => JSX.Element;
@@ -6,4 +6,4 @@ export declare type DropdownCollapsibleItemsExclusiveGroupProps = {
6
6
  /**
7
7
  * Only one collapsible item can be open at a given time (unless you manually override)
8
8
  */
9
- export declare const DropdownCollapsibleItemsSingleGroup: ({ initialExpandedItem, children }: DropdownCollapsibleItemsExclusiveGroupProps) => JSX.Element;
9
+ export declare const DropdownCollapsibleItemsSingleGroup: ({ initialExpandedItem, children, }: DropdownCollapsibleItemsExclusiveGroupProps) => JSX.Element;
@@ -9,7 +9,7 @@ export var useDropdownItemProps = function useDropdownItemProps(props) {
9
9
  var _useDropdownContext = useDropdownContext(),
10
10
  showMenu = _useDropdownContext.showMenu;
11
11
 
12
- var className = cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex items-center\n min-h-10 px-4 text-left\n focus:no-underline hover:no-underline\n ", "\n "])), props.disabled ? "text-grey-300 cursor-not-allowed" : "text-grey-900 hover:bg-grey-100 focus:bg-grey-100 focus:outline-none cursor-pointer"), props.className);
12
+ var className = cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex items-center\n min-h-10 px-4 text-left\n focus:no-underline hover:no-underline\n ", "\n "])), props.disabled ? "text-grey-300 cursor-not-allowed" : "text-inherit hover:bg-grey-100 focus:bg-grey-100 focus:outline-none cursor-pointer"), props.className);
13
13
  return {
14
14
  className: className,
15
15
  onClick: props.disabled ? function (evt) {
@@ -14,7 +14,7 @@ export interface ModalProps {
14
14
  closeIconText?: string;
15
15
  }
16
16
  export declare const Modal: {
17
- ({ title, className, children, open, fullBleed, onDismiss, animate, hideCloseIcon, size, centerY, closeIconText }: ModalProps): React.ReactPortal;
17
+ ({ title, className, children, open, fullBleed, onDismiss, animate, hideCloseIcon, size, centerY, closeIconText, }: ModalProps): React.ReactPortal;
18
18
  Footer: React.FunctionComponent<import("./components/ModalFooter").ModalFooterProps>;
19
19
  };
20
20
  export default Modal;
@@ -108,19 +108,22 @@ export var Modal = function Modal(_ref) {
108
108
  role: "dialog"
109
109
  }, /*#__PURE__*/React.createElement(Card, {
110
110
  ref: dialogRef,
111
- className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["my-6 mx-auto"]))), !fullBleed && stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["p-8"]))), SIZE_CLASSNAMES[size], className),
112
- fullBleed: fullBleed
113
- }, /*#__PURE__*/React.createElement("div", {
114
- className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["modal-header flex"])))
111
+ elevation: "500",
112
+ className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["my-6 mx-auto"]))), SIZE_CLASSNAMES[size], className),
113
+ fullBleed: true
114
+ }, /*#__PURE__*/React.createElement("header", {
115
+ className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n px-8 min-h-14\n flex items-center justify-between space-x-2\n ", "\n ", "\n "])), title ? "border-b border-grey-100" : "justify-end", !title && hideCloseIcon && "hidden")
115
116
  }, title && /*#__PURE__*/React.createElement("h2", {
116
- className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["truncate mb-8 mr-2 flex-1 display-medium"])))
117
+ className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["flex-1 display-heading truncate"])))
117
118
  }, title), !hideCloseIcon && /*#__PURE__*/React.createElement(IconButton, {
118
119
  icon: X,
119
120
  title: closeIconText,
120
121
  variant: "subtle",
121
122
  onClick: onDismiss,
122
- className: cx(!title && stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["float-right"]))))
123
- })), children)))), document.body);
123
+ className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["flex-shrink-0 -mr-2"])))
124
+ })), /*#__PURE__*/React.createElement("div", {
125
+ className: fullBleed ? undefined : stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["p-10"])))
126
+ }, children))))), document.body);
124
127
  };
125
128
  Modal.Footer = ModalFooter;
126
129
  export default Modal;
@@ -24,11 +24,6 @@ var modalPlugin = function modalPlugin(_ref) {
24
24
  },
25
25
  ".modal-dialog-large": {
26
26
  maxWidth: 920
27
- },
28
- // Components
29
- ".modal-header > span:first-child": {
30
- /* CSSTransitionGroup is adding an additional span in the header, so this is neccessary */
31
- width: "100%"
32
27
  }
33
28
  }); // Animation
34
29
 
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ export declare type ModalSectionProps = {
3
+ children: ReactNode;
4
+ /** @ignore */
5
+ className?: string;
6
+ /** Negates the modal default horizontal padding when true */
7
+ fullBleed?: boolean;
8
+ };
9
+ export declare const ModalSection: ({ children, className, fullBleed }: ModalSectionProps) => JSX.Element;
10
+ export default ModalSection;
@@ -0,0 +1,17 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+
3
+ var _templateObject;
4
+
5
+ import React from "react";
6
+ import cx from "classnames";
7
+ import stl from "../../styles/helpers/satellitePrefixer";
8
+ export var ModalSection = function ModalSection(_ref) {
9
+ var children = _ref.children,
10
+ className = _ref.className,
11
+ _ref$fullBleed = _ref.fullBleed,
12
+ fullBleed = _ref$fullBleed === void 0 ? false : _ref$fullBleed;
13
+ return /*#__PURE__*/React.createElement("section", {
14
+ className: cx(fullBleed && stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["-mx-10"]))), className)
15
+ }, children);
16
+ };
17
+ export default ModalSection;
@@ -1,2 +1,4 @@
1
1
  export * from "./Modal";
2
+ export * from "./components/ModalFooter";
3
+ export * from "./components/ModalSection";
2
4
  export { default } from "./Modal";
@@ -1,2 +1,4 @@
1
1
  export * from "./Modal";
2
+ export * from "./components/ModalFooter";
3
+ export * from "./components/ModalSection";
2
4
  export { default } from "./Modal";
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export declare type CompactPaginationLabel = "complete" | "compact" | "none";
3
+ declare type BaseCompactPaginationProps = {
4
+ /** Currently selected page (1 based index) */
5
+ currentPage: number;
6
+ onChange: (page: number) => void;
7
+ showGoToFirstPage?: boolean;
8
+ label?: CompactPaginationLabel;
9
+ };
10
+ export declare type DeterminateCompactPaginationProps = BaseCompactPaginationProps & {
11
+ nbPages: number;
12
+ showGoToLastPage?: boolean;
13
+ };
14
+ export declare type IndeterminateCompactPaginationProps = BaseCompactPaginationProps & {
15
+ nextDisabled?: boolean;
16
+ };
17
+ export declare type CompactPaginationProps = DeterminateCompactPaginationProps | IndeterminateCompactPaginationProps;
18
+ export declare const isDeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is DeterminateCompactPaginationProps;
19
+ export declare const isIndeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is IndeterminateCompactPaginationProps;
20
+ export declare const CompactPagination: (props: CompactPaginationProps) => JSX.Element;
21
+ export default CompactPagination;
@@ -0,0 +1,56 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+
3
+ var _templateObject, _templateObject2;
4
+
5
+ import React from "react";
6
+ import { ChevronsRight, ChevronsLeft, ArrowLeft, ArrowRight } from "react-feather";
7
+ import stl from "../../styles/helpers/satellitePrefixer";
8
+ import { IconButton } from "../../Button";
9
+ export var isDeterminateCompactPaginationProps = function isDeterminateCompactPaginationProps(props) {
10
+ return "nbPages" in props;
11
+ };
12
+ export var isIndeterminateCompactPaginationProps = function isIndeterminateCompactPaginationProps(props) {
13
+ return !isDeterminateCompactPaginationProps(props);
14
+ };
15
+ export var CompactPagination = function CompactPagination(props) {
16
+ var _props$label;
17
+
18
+ var labelType = (_props$label = props.label) !== null && _props$label !== void 0 ? _props$label : isDeterminateCompactPaginationProps(props) ? "complete" : "compact";
19
+ var label = labelType === "none" ? null : labelType === "compact" ? "".concat(props.currentPage) : isDeterminateCompactPaginationProps(props) ? "Page ".concat(props.currentPage, " of ").concat(props.nbPages) : "Page ".concat(props.currentPage, " of many");
20
+ var isFirstPage = props.currentPage === 1;
21
+ var isLastPage = isDeterminateCompactPaginationProps(props) ? props.currentPage === props.nbPages : !!props.nextDisabled;
22
+ return /*#__PURE__*/React.createElement("div", {
23
+ className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex items-center space-x-2"])))
24
+ }, props.showGoToFirstPage && /*#__PURE__*/React.createElement(IconButton, {
25
+ icon: ChevronsLeft,
26
+ title: "Go to first page",
27
+ onClick: function onClick() {
28
+ return props.onChange(1);
29
+ },
30
+ disabled: isFirstPage
31
+ }), /*#__PURE__*/React.createElement(IconButton, {
32
+ icon: ArrowLeft,
33
+ title: "Go to previous page",
34
+ onClick: function onClick() {
35
+ return props.onChange(props.currentPage - 1);
36
+ },
37
+ disabled: isFirstPage
38
+ }), label && /*#__PURE__*/React.createElement("span", {
39
+ className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["inline-block text-center tabular-nums px-2"])))
40
+ }, label), /*#__PURE__*/React.createElement(IconButton, {
41
+ icon: ArrowRight,
42
+ title: "Go to next page",
43
+ onClick: function onClick() {
44
+ return props.onChange(props.currentPage + 1);
45
+ },
46
+ disabled: isLastPage
47
+ }), isDeterminateCompactPaginationProps(props) && props.showGoToLastPage && /*#__PURE__*/React.createElement(IconButton, {
48
+ icon: ChevronsRight,
49
+ title: "Go to last page",
50
+ onClick: function onClick() {
51
+ return props.onChange(props.nbPages);
52
+ },
53
+ disabled: isLastPage
54
+ }));
55
+ };
56
+ export default CompactPagination;
@@ -0,0 +1,2 @@
1
+ export * from "./CompactPagination";
2
+ export { default } from "./CompactPagination";
@@ -0,0 +1,2 @@
1
+ export * from "./CompactPagination";
2
+ export { default } from "./CompactPagination";
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare type DotPaginationProps = {
3
+ /** Currently selected page (1 based index) */
4
+ currentPage: number;
5
+ onChange: (page: number) => void;
6
+ nbPages: number;
7
+ };
8
+ export declare const DotPagination: ({ currentPage, onChange, nbPages }: DotPaginationProps) => JSX.Element;
9
+ export default DotPagination;
@@ -0,0 +1,26 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+
3
+ var _templateObject, _templateObject2;
4
+
5
+ import React from "react";
6
+ import stl from "../../styles/helpers/satellitePrefixer";
7
+ export var DotPagination = function DotPagination(_ref) {
8
+ var currentPage = _ref.currentPage,
9
+ onChange = _ref.onChange,
10
+ nbPages = _ref.nbPages;
11
+ return /*#__PURE__*/React.createElement("ul", {
12
+ className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex"])))
13
+ }, new Array(nbPages).fill(undefined).map(function (_, idx) {
14
+ var pageIdx = idx + 1;
15
+ return /*#__PURE__*/React.createElement("li", {
16
+ key: idx
17
+ }, /*#__PURE__*/React.createElement("button", {
18
+ "aria-label": "Go to page ".concat(pageIdx),
19
+ className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n h-3 w-3 rounded-full mx-1\n ", "\n "])), currentPage === pageIdx ? "bg-accent-600" : "bg-grey-200"),
20
+ onClick: function onClick() {
21
+ return onChange(pageIdx);
22
+ }
23
+ }));
24
+ }));
25
+ };
26
+ export default DotPagination;
@@ -0,0 +1,2 @@
1
+ export * from "./DotPagination";
2
+ export { default } from "./DotPagination";
@@ -0,0 +1,2 @@
1
+ export * from "./DotPagination";
2
+ export { default } from "./DotPagination";
@@ -12,5 +12,5 @@ export interface PaginationProps {
12
12
  * - Don't use on list with less than 20 items
13
13
  * - Place the pagination at the bottom of the split item
14
14
  */
15
- export declare const Pagination: ({ currentPage, nbPages, onChange, maxButtons: maxButtonsParam }: PaginationProps) => JSX.Element;
15
+ export declare const Pagination: ({ currentPage, nbPages, onChange, maxButtons: maxButtonsParam, }: PaginationProps) => JSX.Element;
16
16
  export default Pagination;
@@ -4,9 +4,9 @@ var _templateObject;
4
4
 
5
5
  import React from "react";
6
6
  import { ArrowLeft, ArrowRight } from "react-feather";
7
- import stl from "../styles/helpers/satellitePrefixer";
8
- import range from "../utils/range";
9
- import Button, { ButtonGroup } from "../Button";
7
+ import stl from "../../styles/helpers/satellitePrefixer";
8
+ import range from "../../utils/range";
9
+ import Button, { ButtonGroup } from "../../Button";
10
10
  var DEFAULT_MAX_BUTTONS = 10;
11
11
 
12
12
  var Ellipsis = function Ellipsis() {
@@ -0,0 +1,2 @@
1
+ export * from "./Pagination";
2
+ export { default } from "./Pagination";
@@ -0,0 +1,2 @@
1
+ export * from "./Pagination";
2
+ export { default } from "./Pagination";
@@ -1,2 +1,4 @@
1
1
  export * from "./Pagination";
2
+ export * from "./DotPagination";
3
+ export * from "./CompactPagination";
2
4
  export { default } from "./Pagination";
@@ -1,2 +1,4 @@
1
1
  export * from "./Pagination";
2
+ export * from "./DotPagination";
3
+ export * from "./CompactPagination";
2
4
  export { default } from "./Pagination";
package/esm/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export { default as makePurgeCssExtractor } from "./styles/helpers/makePurgeCssE
6
6
  export * from "./utils/parseUrl";
7
7
  export * from "./AnnouncementBadge";
8
8
  export * from "./AutoComplete";
9
+ export * from "./Avatars";
9
10
  export * from "./Badge";
10
11
  export * from "./Banner";
11
12
  export * from "./Button";
package/esm/index.js CHANGED
@@ -6,6 +6,7 @@ export { default as makePurgeCssExtractor } from "./styles/helpers/makePurgeCssE
6
6
  export * from "./utils/parseUrl";
7
7
  export * from "./AnnouncementBadge";
8
8
  export * from "./AutoComplete";
9
+ export * from "./Avatars";
9
10
  export * from "./Badge";
10
11
  export * from "./Banner";
11
12
  export * from "./Button";
@@ -0,0 +1,2 @@
1
+ export declare const hashCode: (value: string) => number;
2
+ export default hashCode;
@@ -0,0 +1,18 @@
1
+ // https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript?rq=1
2
+ export var hashCode = function hashCode(value) {
3
+ var hash = 0;
4
+
5
+ if (value.length === 0) {
6
+ return hash;
7
+ }
8
+
9
+ for (var i = 0; i < value.length; i++) {
10
+ var _char = value.charCodeAt(i);
11
+
12
+ hash = (hash << 5) - hash + _char;
13
+ hash = hash & hash; // Convert to 32bit integer
14
+ }
15
+
16
+ return hash;
17
+ };
18
+ export default hashCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/satellite",
3
- "version": "1.0.0-beta.115",
3
+ "version": "1.0.0-beta.119",
4
4
  "description": "Algolia design system React components",
5
5
  "scripts": {
6
6
  "clean": "del dist",
@@ -68,6 +68,7 @@
68
68
  "classnames": "^2.3.1",
69
69
  "color": "^3.1.2",
70
70
  "date-fns": "2.22.1",
71
+ "diacritics": "^1.3.0",
71
72
  "downshift": "^2.0.10",
72
73
  "lodash.throttle": "^4.1.1",
73
74
  "react-day-picker": "7.4.10",
package/satellite.css CHANGED
@@ -1038,7 +1038,7 @@ html, body {
1038
1038
  content: " ";
1039
1039
  display: block;
1040
1040
  min-height: 30px;
1041
- font-size: 0px;
1041
+ font-size: 0;
1042
1042
  }
1043
1043
 
1044
1044
  .stl-autocomplete-container.stl-autocomplete-large {
@@ -1358,6 +1358,7 @@ html, body {
1358
1358
 
1359
1359
  .stl-card-z500 {
1360
1360
  box-shadow: 0px 0px 0px 1px rgba(35, 38, 59, 0.05), 0px 20px 32px -8px rgba(35, 38, 59, 0.25);
1361
+ border-radius: 8px;
1361
1362
  }
1362
1363
 
1363
1364
  .stl-checkbox {
@@ -2101,10 +2102,6 @@ html, body {
2101
2102
  max-width: 920px;
2102
2103
  }
2103
2104
 
2104
- .stl-modal-header > span:first-child {
2105
- width: 100%;
2106
- }
2107
-
2108
2105
  .stl-satellite-modal-appear .stl-modal-container, .stl-satellite-modal-enter .stl-modal-container {
2109
2106
  opacity: 0.1;
2110
2107
  transform: translate(0, 8px) scale(0.94);