@algolia/satellite 1.0.0-beta.114 → 1.0.0-beta.118
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.
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +1 -1
- package/cjs/AutoComplete/AutoComplete.tailwind.js +1 -1
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +1 -1
- package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
- package/cjs/Avatars/ApplicationAvatar.js +43 -0
- package/cjs/Avatars/UserAvatar.d.ts +13 -0
- package/cjs/Avatars/UserAvatar.js +64 -0
- package/cjs/Avatars/index.d.ts +3 -0
- package/cjs/Avatars/index.js +46 -0
- package/cjs/Avatars/types.d.ts +17 -0
- package/cjs/Avatars/types.js +5 -0
- package/cjs/Avatars/utils.d.ts +6 -0
- package/cjs/Avatars/utils.js +82 -0
- package/cjs/Card/Card.tailwind.js +2 -1
- package/cjs/Dropdown/Dropdown.d.ts +8 -2
- package/cjs/Dropdown/Dropdown.js +17 -2
- package/cjs/Dropdown/DropdownButton.d.ts +2 -0
- package/cjs/Dropdown/DropdownButton.js +4 -2
- package/cjs/Dropdown/components/DropdownButtonItem.js +10 -4
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +12 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +75 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +26 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +23 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +50 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +46 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +72 -0
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownFooterItem.js +38 -0
- package/cjs/Dropdown/components/DropdownLinkItem.js +1 -1
- package/cjs/Dropdown/components/DropdownRadioItem.js +3 -3
- package/cjs/Dropdown/index.d.ts +2 -0
- package/cjs/Dropdown/index.js +28 -0
- package/cjs/Modal/Modal.d.ts +1 -1
- package/cjs/Modal/Modal.js +10 -7
- package/cjs/Modal/Modal.tailwind.js +0 -5
- package/cjs/Modal/components/ModalSection.d.ts +10 -0
- package/cjs/Modal/components/ModalSection.js +32 -0
- package/cjs/Modal/index.d.ts +2 -0
- package/cjs/Modal/index.js +28 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +21 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.js +78 -0
- package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
- package/cjs/Pagination/CompactPagination/index.js +32 -0
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +9 -0
- package/cjs/Pagination/DotPagination/DotPagination.js +40 -0
- package/cjs/Pagination/DotPagination/index.d.ts +2 -0
- package/cjs/Pagination/DotPagination/index.js +32 -0
- package/cjs/Pagination/{Pagination.d.ts → Pagination/Pagination.d.ts} +1 -1
- package/cjs/Pagination/{Pagination.js → Pagination/Pagination.js} +3 -3
- package/cjs/Pagination/Pagination/index.d.ts +2 -0
- package/cjs/Pagination/Pagination/index.js +32 -0
- package/cjs/Pagination/index.d.ts +2 -0
- package/cjs/Pagination/index.js +28 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +14 -0
- package/cjs/utils/hashCode.d.ts +2 -0
- package/cjs/utils/hashCode.js +28 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +1 -1
- package/esm/AutoComplete/AutoComplete.tailwind.js +1 -1
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +1 -1
- package/esm/Avatars/ApplicationAvatar.d.ts +13 -0
- package/esm/Avatars/ApplicationAvatar.js +27 -0
- package/esm/Avatars/UserAvatar.d.ts +13 -0
- package/esm/Avatars/UserAvatar.js +42 -0
- package/esm/Avatars/index.d.ts +3 -0
- package/esm/Avatars/index.js +3 -0
- package/esm/Avatars/types.d.ts +17 -0
- package/esm/Avatars/types.js +1 -0
- package/esm/Avatars/utils.d.ts +6 -0
- package/esm/Avatars/utils.js +56 -0
- package/esm/Card/Card.tailwind.js +2 -1
- package/esm/Dropdown/Dropdown.d.ts +8 -2
- package/esm/Dropdown/Dropdown.js +15 -2
- package/esm/Dropdown/DropdownButton.d.ts +2 -0
- package/esm/Dropdown/DropdownButton.js +4 -2
- package/esm/Dropdown/components/DropdownButtonItem.js +8 -4
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +12 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +51 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +13 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +11 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +30 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +27 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.js +5 -0
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/esm/Dropdown/components/DropdownFooterItem.js +21 -0
- package/esm/Dropdown/components/DropdownLinkItem.js +1 -1
- package/esm/Dropdown/components/DropdownRadioItem.js +3 -3
- package/esm/Dropdown/index.d.ts +2 -0
- package/esm/Dropdown/index.js +2 -0
- package/esm/Modal/Modal.d.ts +1 -1
- package/esm/Modal/Modal.js +10 -7
- package/esm/Modal/Modal.tailwind.js +0 -5
- package/esm/Modal/components/ModalSection.d.ts +10 -0
- package/esm/Modal/components/ModalSection.js +17 -0
- package/esm/Modal/index.d.ts +2 -0
- package/esm/Modal/index.js +2 -0
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +21 -0
- package/esm/Pagination/CompactPagination/CompactPagination.js +56 -0
- package/esm/Pagination/CompactPagination/index.d.ts +2 -0
- package/esm/Pagination/CompactPagination/index.js +2 -0
- package/esm/Pagination/DotPagination/DotPagination.d.ts +9 -0
- package/esm/Pagination/DotPagination/DotPagination.js +26 -0
- package/esm/Pagination/DotPagination/index.d.ts +2 -0
- package/esm/Pagination/DotPagination/index.js +2 -0
- package/esm/Pagination/{Pagination.d.ts → Pagination/Pagination.d.ts} +1 -1
- package/esm/Pagination/{Pagination.js → Pagination/Pagination.js} +3 -3
- package/esm/Pagination/Pagination/index.d.ts +2 -0
- package/esm/Pagination/Pagination/index.js +2 -0
- package/esm/Pagination/index.d.ts +2 -0
- package/esm/Pagination/index.js +2 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/utils/hashCode.d.ts +2 -0
- package/esm/utils/hashCode.js +18 -0
- package/package.json +2 -1
- package/satellite.css +2 -5
- package/satellite.min.css +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "title"];
|
|
3
|
+
var _excluded = ["children", "title", "renderFooter"];
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { ChevronDown } from "react-feather";
|
|
6
6
|
import Button from "../Button";
|
|
@@ -8,6 +8,7 @@ import Dropdown from "./Dropdown";
|
|
|
8
8
|
export var DropdownButton = function DropdownButton(_ref) {
|
|
9
9
|
var children = _ref.children,
|
|
10
10
|
title = _ref.title,
|
|
11
|
+
renderFooter = _ref.renderFooter,
|
|
11
12
|
buttonProps = _objectWithoutProperties(_ref, _excluded);
|
|
12
13
|
|
|
13
14
|
var renderButton = function renderButton(_ref2) {
|
|
@@ -30,7 +31,8 @@ export var DropdownButton = function DropdownButton(_ref) {
|
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
33
|
-
renderTarget: renderButton
|
|
34
|
+
renderTarget: renderButton,
|
|
35
|
+
renderFooter: renderFooter
|
|
34
36
|
}, children);
|
|
35
37
|
};
|
|
36
38
|
export default DropdownButton;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
5
|
|
|
5
|
-
var _templateObject, _templateObject2;
|
|
6
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
6
7
|
|
|
7
8
|
var _excluded = ["children", "variant", "toggle", "startIcon"];
|
|
8
9
|
|
|
@@ -11,6 +12,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11
12
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
12
13
|
|
|
13
14
|
import React from "react";
|
|
15
|
+
import cx from "classnames";
|
|
14
16
|
import stl from "../../styles/helpers/satellitePrefixer";
|
|
15
17
|
import useDropdownItemProps from "../useDropdownItemProps";
|
|
16
18
|
export var DropdownButtonItem = function DropdownButtonItem(props) {
|
|
@@ -24,11 +26,13 @@ export var DropdownButtonItem = function DropdownButtonItem(props) {
|
|
|
24
26
|
mergedProps = _objectWithoutProperties(_props$dropdownItemPr, _excluded);
|
|
25
27
|
|
|
26
28
|
var showDestructiveVariant = !props.disabled && variant === "destructive";
|
|
27
|
-
return /*#__PURE__*/React.createElement("button",
|
|
28
|
-
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["
|
|
29
|
+
return /*#__PURE__*/React.createElement("button", _extends({}, mergedProps, {
|
|
30
|
+
className: cx(mergedProps.className, stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["w-full"]))))
|
|
31
|
+
}), StartIcon && /*#__PURE__*/React.createElement(StartIcon, {
|
|
32
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["mr-2 ", ""])), showDestructiveVariant ? "text-red-700" : "text-grey-500"),
|
|
29
33
|
size: "1rem"
|
|
30
34
|
}), /*#__PURE__*/React.createElement("span", {
|
|
31
|
-
className: stl(
|
|
35
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["w-full truncate ", ""])), showDestructiveVariant && "text-red-700")
|
|
32
36
|
}, children));
|
|
33
37
|
};
|
|
34
38
|
DropdownButtonItem.defaultProps = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
export declare type DropdownCollapsibleValue = undefined | string | string[];
|
|
3
|
+
export declare type DropdownCollapsiblePropsOnChange = (name: string, value: DropdownCollapsibleValue) => void;
|
|
4
|
+
export interface DropdownCollapsibleItemProps {
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
name?: string;
|
|
7
|
+
expanded?: boolean;
|
|
8
|
+
onClick?: (evt: React.MouseEvent<HTMLElement>, name: string, expandedItems: readonly string[]) => void;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const DropdownCollapsibleItem: FC<DropdownCollapsibleItemProps>;
|
|
12
|
+
export default DropdownCollapsibleItem;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
|
|
4
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
5
|
+
|
|
6
|
+
import React, { useState } from "react";
|
|
7
|
+
import { ChevronDown, ChevronRight } from "react-feather";
|
|
8
|
+
import { uniqueId } from "../../../utils";
|
|
9
|
+
import stl from "../../../styles/helpers/satellitePrefixer";
|
|
10
|
+
import { useDropdownCollapsibleItemsGroup } from ".";
|
|
11
|
+
export var DropdownCollapsibleItem = function DropdownCollapsibleItem(_ref) {
|
|
12
|
+
var title = _ref.title,
|
|
13
|
+
name = _ref.name,
|
|
14
|
+
expanded = _ref.expanded,
|
|
15
|
+
_onClick = _ref.onClick,
|
|
16
|
+
children = _ref.children;
|
|
17
|
+
|
|
18
|
+
var _useDropdownCollapsib = useDropdownCollapsibleItemsGroup(),
|
|
19
|
+
expandedItems = _useDropdownCollapsib.expandedItems,
|
|
20
|
+
onItemClick = _useDropdownCollapsib.onItemClick;
|
|
21
|
+
|
|
22
|
+
var _useState = useState(function () {
|
|
23
|
+
return uniqueId("ddci");
|
|
24
|
+
}),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
26
|
+
internalName = _useState2[0];
|
|
27
|
+
|
|
28
|
+
var itemName = name !== null && name !== void 0 ? name : internalName;
|
|
29
|
+
var isExpanded = typeof expanded === "boolean" ? expanded : expandedItems.includes(itemName);
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex flex-col"])))
|
|
32
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
33
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n w-full h-10 px-4\n flex items-center justify-between\n text-grey-900 hover:bg-grey-100 focus:bg-grey-100 focus:outline-none cursor-pointer\n "]))),
|
|
34
|
+
onClick: function onClick(evt) {
|
|
35
|
+
if (typeof expanded === "boolean") {
|
|
36
|
+
_onClick === null || _onClick === void 0 ? void 0 : _onClick(evt, itemName, expandedItems);
|
|
37
|
+
} else {
|
|
38
|
+
onItemClick(itemName);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, /*#__PURE__*/React.createElement("div", null, title), isExpanded ? /*#__PURE__*/React.createElement(ChevronDown, {
|
|
42
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["text-grey-500"]))),
|
|
43
|
+
size: "1.25em"
|
|
44
|
+
}) : /*#__PURE__*/React.createElement(ChevronRight, {
|
|
45
|
+
className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["text-grey-500"]))),
|
|
46
|
+
size: "1.25em"
|
|
47
|
+
})), isExpanded && /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-grey-50 border-l-2 border-grey-300"])))
|
|
49
|
+
}, children));
|
|
50
|
+
};
|
|
51
|
+
export default DropdownCollapsibleItem;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type DropdownCollapsibleItemsGroupProps = {
|
|
3
|
+
expandedItems: string[];
|
|
4
|
+
onItemClick(name: string): void;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const DropdownCollapsibleItemsGroup: ({ expandedItems, onItemClick, children, }: DropdownCollapsibleItemsGroupProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownCollapsibleItemsGroupContext } from "./DropdownCollapsibleItemsGroupContext";
|
|
3
|
+
export var DropdownCollapsibleItemsGroup = function DropdownCollapsibleItemsGroup(_ref) {
|
|
4
|
+
var expandedItems = _ref.expandedItems,
|
|
5
|
+
onItemClick = _ref.onItemClick,
|
|
6
|
+
children = _ref.children;
|
|
7
|
+
return /*#__PURE__*/React.createElement(DropdownCollapsibleItemsGroupContext.Provider, {
|
|
8
|
+
value: {
|
|
9
|
+
expandedItems: expandedItems,
|
|
10
|
+
onItemClick: onItemClick
|
|
11
|
+
}
|
|
12
|
+
}, children);
|
|
13
|
+
};
|
package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface DropdownCollapsibleItemsGroupContext {
|
|
3
|
+
expandedItems: readonly string[];
|
|
4
|
+
onItemClick(name: string): void;
|
|
5
|
+
}
|
|
6
|
+
export declare const DropdownCollapsibleItemsGroupContext: import("react").Context<DropdownCollapsibleItemsGroupContext | null>;
|
|
7
|
+
export declare const useDropdownCollapsibleItemsGroup: () => DropdownCollapsibleItemsGroupContext;
|
package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
export var DropdownCollapsibleItemsGroupContext = /*#__PURE__*/createContext(null);
|
|
3
|
+
export var useDropdownCollapsibleItemsGroup = function useDropdownCollapsibleItemsGroup() {
|
|
4
|
+
var context = useContext(DropdownCollapsibleItemsGroupContext);
|
|
5
|
+
|
|
6
|
+
if (!context) {
|
|
7
|
+
throw new Error("useDropdownCollapsibleItemsGroupContext used outside DropdownCollapsibleItemsGroupContext");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
return context;
|
|
11
|
+
};
|
package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type DropdownCollapsibleItemsMultiGroupProps = {
|
|
3
|
+
initialExpandedItems?: string[];
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Multiple collapsible item can be open at a given time
|
|
8
|
+
*/
|
|
9
|
+
export declare const DropdownCollapsibleItemsMultiGroup: ({ initialExpandedItems, children, }: DropdownCollapsibleItemsMultiGroupProps) => JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import { DropdownCollapsibleItemsGroup } from "./DropdownCollapsibleItemsGroup";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Multiple collapsible item can be open at a given time
|
|
8
|
+
*/
|
|
9
|
+
export var DropdownCollapsibleItemsMultiGroup = function DropdownCollapsibleItemsMultiGroup(_ref) {
|
|
10
|
+
var initialExpandedItems = _ref.initialExpandedItems,
|
|
11
|
+
children = _ref.children;
|
|
12
|
+
|
|
13
|
+
var _useState = useState(function () {
|
|
14
|
+
return initialExpandedItems !== null && initialExpandedItems !== void 0 ? initialExpandedItems : [];
|
|
15
|
+
}),
|
|
16
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
17
|
+
expandedItems = _useState2[0],
|
|
18
|
+
setExpandedItems = _useState2[1];
|
|
19
|
+
|
|
20
|
+
return /*#__PURE__*/React.createElement(DropdownCollapsibleItemsGroup, {
|
|
21
|
+
expandedItems: expandedItems,
|
|
22
|
+
onItemClick: function onItemClick(name) {
|
|
23
|
+
return setExpandedItems(function (items) {
|
|
24
|
+
return items.includes(name) ? items.filter(function (i) {
|
|
25
|
+
return i !== name;
|
|
26
|
+
}) : [].concat(_toConsumableArray(items), [name]);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}, children);
|
|
30
|
+
};
|
package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type DropdownCollapsibleItemsExclusiveGroupProps = {
|
|
3
|
+
initialExpandedItem?: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Only one collapsible item can be open at a given time (unless you manually override)
|
|
8
|
+
*/
|
|
9
|
+
export declare const DropdownCollapsibleItemsSingleGroup: ({ initialExpandedItem, children, }: DropdownCollapsibleItemsExclusiveGroupProps) => JSX.Element;
|
package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import { DropdownCollapsibleItemsGroup } from "./DropdownCollapsibleItemsGroup";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Only one collapsible item can be open at a given time (unless you manually override)
|
|
7
|
+
*/
|
|
8
|
+
export var DropdownCollapsibleItemsSingleGroup = function DropdownCollapsibleItemsSingleGroup(_ref) {
|
|
9
|
+
var initialExpandedItem = _ref.initialExpandedItem,
|
|
10
|
+
children = _ref.children;
|
|
11
|
+
|
|
12
|
+
var _useState = useState(function () {
|
|
13
|
+
return initialExpandedItem ? [initialExpandedItem] : [];
|
|
14
|
+
}),
|
|
15
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
+
expandedItems = _useState2[0],
|
|
17
|
+
setExpandedItems = _useState2[1];
|
|
18
|
+
|
|
19
|
+
return /*#__PURE__*/React.createElement(DropdownCollapsibleItemsGroup, {
|
|
20
|
+
expandedItems: expandedItems,
|
|
21
|
+
onItemClick: function onItemClick(name) {
|
|
22
|
+
return setExpandedItems(function (items) {
|
|
23
|
+
return items.includes(name) ? [] : [name];
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}, children);
|
|
27
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./DropdownCollapsibleItem";
|
|
2
|
+
export * from "./DropdownCollapsibleItemsGroup";
|
|
3
|
+
export * from "./DropdownCollapsibleItemsMultiGroup";
|
|
4
|
+
export * from "./DropdownCollapsibleItemsSingleGroup";
|
|
5
|
+
export { useDropdownCollapsibleItemsGroup } from "./DropdownCollapsibleItemsGroupContext";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./DropdownCollapsibleItem";
|
|
2
|
+
export * from "./DropdownCollapsibleItemsGroup";
|
|
3
|
+
export * from "./DropdownCollapsibleItemsMultiGroup";
|
|
4
|
+
export * from "./DropdownCollapsibleItemsSingleGroup";
|
|
5
|
+
export { useDropdownCollapsibleItemsGroup } from "./DropdownCollapsibleItemsGroupContext";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type DropdownFooterItemProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const DropdownFooterItem: ({ children, className, ...props }: DropdownFooterItemProps) => JSX.Element | null;
|
|
7
|
+
export default DropdownFooterItem;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
|
|
5
|
+
var _templateObject;
|
|
6
|
+
|
|
7
|
+
var _excluded = ["children", "className"];
|
|
8
|
+
import React from "react";
|
|
9
|
+
import cx from "classnames";
|
|
10
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
|
11
|
+
export var DropdownFooterItem = function DropdownFooterItem(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
className = _ref.className,
|
|
14
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
|
|
16
|
+
if (!children) return null;
|
|
17
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
18
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex bg-grey-100 -mb-1 items-center justify-between px-4 py-3 border-t border-grey-200"]))), className)
|
|
19
|
+
}, props), children);
|
|
20
|
+
};
|
|
21
|
+
export default DropdownFooterItem;
|
|
@@ -30,7 +30,7 @@ export var DropdownLinkItem = function DropdownLinkItem(props) {
|
|
|
30
30
|
|
|
31
31
|
return /*#__PURE__*/React.createElement("a", _extends({
|
|
32
32
|
tabIndex: disabled ? -1 : undefined,
|
|
33
|
-
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["
|
|
33
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex items-center"]))), className)
|
|
34
34
|
}, mergedProps), StartIcon && /*#__PURE__*/React.createElement(StartIcon, {
|
|
35
35
|
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["mr-2 flex-shrink-0 text-grey-500"]))),
|
|
36
36
|
size: "1rem"
|
|
@@ -27,11 +27,11 @@ export var DropdownRadioItem = function DropdownRadioItem(props) {
|
|
|
27
27
|
return /*#__PURE__*/React.createElement("label", {
|
|
28
28
|
className: className
|
|
29
29
|
}, /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex-1 flex items-start
|
|
30
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex-1 flex items-start py-2 overflow-hidden"])))
|
|
31
31
|
}, /*#__PURE__*/React.createElement("span", {
|
|
32
|
-
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["flex-1 truncate"])))
|
|
32
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["flex-1 truncate mr-4"])))
|
|
33
33
|
}, children), /*#__PURE__*/React.createElement(RadioButton, _extends({
|
|
34
|
-
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["mt-2px"])))
|
|
34
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["mt-2px mr-2px"])))
|
|
35
35
|
}, radioProps))));
|
|
36
36
|
};
|
|
37
37
|
DropdownRadioItem.defaultProps = {
|
package/esm/Dropdown/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from "./components/DropdownRadioItem";
|
|
|
4
4
|
export * from "./components/DropdownToggleItem";
|
|
5
5
|
export * from "./components/DropdownLinkItem";
|
|
6
6
|
export * from "./components/DropdownButtonItem";
|
|
7
|
+
export * from "./components/DropdownFooterItem";
|
|
8
|
+
export * from "./components/DropdownCollapsibleItem";
|
|
7
9
|
export * from "./components/DropdownDivider";
|
|
8
10
|
export * from "./components/DropdownTitle";
|
|
9
11
|
export * from "./useDropdownItemProps";
|
package/esm/Dropdown/index.js
CHANGED
|
@@ -4,6 +4,8 @@ export * from "./components/DropdownRadioItem";
|
|
|
4
4
|
export * from "./components/DropdownToggleItem";
|
|
5
5
|
export * from "./components/DropdownLinkItem";
|
|
6
6
|
export * from "./components/DropdownButtonItem";
|
|
7
|
+
export * from "./components/DropdownFooterItem";
|
|
8
|
+
export * from "./components/DropdownCollapsibleItem";
|
|
7
9
|
export * from "./components/DropdownDivider";
|
|
8
10
|
export * from "./components/DropdownTitle";
|
|
9
11
|
export * from "./useDropdownItemProps";
|
package/esm/Modal/Modal.d.ts
CHANGED
|
@@ -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;
|
package/esm/Modal/Modal.js
CHANGED
|
@@ -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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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(
|
|
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:
|
|
123
|
-
})),
|
|
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;
|
package/esm/Modal/index.d.ts
CHANGED
package/esm/Modal/index.js
CHANGED
|
@@ -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,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;
|
|
@@ -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 "
|
|
8
|
-
import range from "
|
|
9
|
-
import Button, { ButtonGroup } from "
|
|
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() {
|
package/esm/Pagination/index.js
CHANGED