meticulous-ui 1.1.2 → 1.1.4
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/README.md +2 -6
- package/colors/amber.js +19 -0
- package/colors/black.js +25 -0
- package/colors/blue.js +19 -0
- package/colors/blueGray.js +15 -0
- package/colors/brown.js +15 -0
- package/colors/cider.js +15 -0
- package/colors/cyan.js +19 -0
- package/colors/deepOrange.js +19 -0
- package/colors/deepPurple.js +19 -0
- package/colors/green.js +19 -0
- package/colors/grey.js +15 -0
- package/colors/indigo.js +19 -0
- package/colors/lightBlue.js +19 -0
- package/colors/lightGreen.js +19 -0
- package/colors/lime.js +19 -0
- package/colors/orange.js +19 -0
- package/colors/pink.js +19 -0
- package/colors/purple.js +19 -0
- package/colors/red.js +19 -0
- package/colors/teal.js +19 -0
- package/colors/violet.js +19 -0
- package/colors/white.js +4 -0
- package/colors/yellow.js +19 -0
- package/components/Icons/Add/Add.js +47 -0
- package/components/Icons/AddCircle/AddCircle.js +35 -0
- package/components/Icons/AddCircleFilled/AddCircleFilled.js +26 -0
- package/components/Icons/ArrowDown/ArrowDown.js +26 -0
- package/components/Icons/ArrowLeft/ArrowLeft.js +27 -0
- package/components/Icons/ArrowRight/ArrowRight.js +27 -0
- package/components/Icons/ArrowUp/ArrowUp.js +26 -0
- package/components/Icons/BellFilled/BellFilled.js +26 -0
- package/components/Icons/BellOffFilled/BellOffFilled.js +37 -0
- package/components/Icons/BellOffOutline/BellOffOutline.js +38 -0
- package/components/Icons/BellOutline/BellOutline.js +39 -0
- package/components/Icons/BookmarkFilled/BookmarkFilled.js +18 -0
- package/components/Icons/BookmarkOutline/BookmarkOutline.js +26 -0
- package/components/Icons/ChevronDown/ChevronDown.js +27 -0
- package/components/Icons/ChevronLeft/ChevronLeft.js +27 -0
- package/components/Icons/ChevronRight/ChevronRight.js +27 -0
- package/components/Icons/ChevronUp/ChevronUp.js +27 -0
- package/components/Icons/ClockCircleOutline/ClockCircleOutline.js +30 -0
- package/components/Icons/ClockSquareOutline/ClockSquareOutline.js +37 -0
- package/components/Icons/Close/Close.js +24 -0
- package/components/Icons/CloseCircleFilled/CloseCircleFilled.js +26 -0
- package/components/Icons/CloseCircleOutline/CloseCircleOutline.js +27 -0
- package/components/Icons/CommentBubbleFilled/CommentBubbleFilled.js +18 -0
- package/components/Icons/CommentBubbleOutline/CommentBubbleOutline.js +18 -0
- package/components/Icons/CommentFilled/CommentFilled.js +18 -0
- package/components/Icons/CommentLineFilled/CommentLineFilled.js +18 -0
- package/components/Icons/CommentLineOutline/CommentLineOutline.js +18 -0
- package/components/Icons/CommentOutline/CommentOutline.js +18 -0
- package/components/Icons/ContactDetailsFilled/ContactDetailsFilled.js +18 -0
- package/components/Icons/ContactDetailsOutline/ContactDetailsOutline.js +18 -0
- package/components/Icons/DetailsOutline/DetailsOutline.js +18 -0
- package/components/Icons/DotsHorizontalFilled/DotsHorizontalFilled.js +24 -0
- package/components/Icons/DotsHorizontalOutline/DotsHorizontalOutline.js +27 -0
- package/components/Icons/DotsVerticalFilled/DotsVerticalFilled.js +24 -0
- package/components/Icons/DotsVerticalOutline/DotsVerticalOutline.js +27 -0
- package/components/Icons/ExitArrowInOutline/ExitArrowInOutline.js +27 -0
- package/components/Icons/ExitArrowOutOutline/ExitArrowOutOutline.js +27 -0
- package/components/Icons/HamburgerMenu/HamburgerMenu.js +26 -0
- package/components/Icons/HamburgerSpaced/HamburgerSpaced.js +18 -0
- package/components/Icons/HeartFilled/HeartFilled.js +24 -0
- package/components/Icons/HeartOutline/HeartOutline.js +29 -0
- package/components/Icons/HomeFilled/HomeFilled.js +26 -0
- package/components/Icons/HomeOutline/HomeOutline.js +26 -0
- package/components/Icons/Link/Link.js +37 -0
- package/components/Icons/LockClosedFilled/LockClosedFilled.js +26 -0
- package/components/Icons/LockClosedOutline/LockClosedOutline.js +30 -0
- package/components/Icons/LockOpenFilled/LockOpenFilled.js +26 -0
- package/components/Icons/LockOpenOutline/LockOpenOutline.js +38 -0
- package/components/Icons/Minus/Minus.js +27 -0
- package/components/Icons/MinusCircle/MinusCircle.js +18 -0
- package/components/Icons/MinusCircleFilled/MinusCircleFilled.js +18 -0
- package/components/Icons/ProfileFemaleOutline/ProfileFemaleOutline.js +24 -0
- package/components/Icons/ProfileGroupFilled/ProfileGroupFilled.js +33 -0
- package/components/Icons/ProfileMaleFilled/ProfileMaleFilled.js +33 -0
- package/components/Icons/ProfileMaleOutline/ProfileMaleOutline.js +24 -0
- package/components/Icons/Search/Search.js +18 -0
- package/components/Icons/SettingFilled/SettingFilled.js +24 -0
- package/components/Icons/SettingOutline/SettingOutline.js +24 -0
- package/components/Icons/ShareAllFilled/ShareAllFilled.js +26 -0
- package/components/Icons/ShareAllOutline/ShareAllOutline.js +29 -0
- package/components/Icons/ShareBoxOutline/ShareBoxOutline.js +24 -0
- package/components/Icons/ShareFilled/ShareFilled.js +35 -0
- package/components/Icons/ShareOutline/ShareOutline.js +38 -0
- package/components/Icons/ShareThickFilled/ShareThickFilled.js +24 -0
- package/components/Icons/ShieldCheckFilled/ShieldCheckFilled.js +26 -0
- package/components/Icons/ShieldCheckOutline/ShieldCheckOutline.js +37 -0
- package/components/Icons/ShieldCrossFilled/ShieldCrossFilled.js +26 -0
- package/components/Icons/ShieldCrossOutline/ShieldCrossOutline.js +28 -0
- package/components/Icons/ShieldWarningFilled/ShieldWarningFilled.js +26 -0
- package/components/Icons/ShieldWarningOutline/ShieldWarningOutline.js +29 -0
- package/components/Icons/StarFilled/StarFilled.js +24 -0
- package/components/Icons/StarOutline/StarOutline.js +24 -0
- package/components/Icons/ThumbsDownFilled/ThumbsDownFilled.js +24 -0
- package/components/Icons/ThumbsDownOutline/ThumbsDownOutline.js +24 -0
- package/components/Icons/ThumbsUpFilled/ThumbsUpFilled.js +24 -0
- package/components/Icons/ThumbsUpOutline/ThumbsUpOutline.js +24 -0
- package/components/Icons/Upload/Upload.js +33 -0
- package/components/Icons/UploadBoxFilled/UploadBoxFilled.js +26 -0
- package/components/Icons/UploadBoxOutline/UploadBoxOutline.js +35 -0
- package/components/Icons/WalletFilled/WalletFilled.js +18 -0
- package/components/Icons/WalletOutline/WalletOutline.js +18 -0
- package/components/Icons/index.js +167 -0
- package/components/Pagination/Pagination.js +60 -0
- package/components/Pagination/constants.js +24 -0
- package/components/Pagination/helpers.js +32 -0
- package/components/Pagination/index.js +4 -0
- package/components/Pagination/styles.js +75 -0
- package/components/Ripple/Ripple.js +26 -0
- package/components/Ripple/index.js +4 -0
- package/index.js +10 -0
- package/package.json +1 -2
- package/utils/capFirstLetter.js +4 -0
- package/utils/compose.js +4 -0
- package/utils/hasEqualProps.js +7 -0
- package/utils/isNonEmptyArray.js +4 -0
- package/dist/README.md +0 -192
- package/dist/index.js +0 -12
- package/dist/package.json +0 -65
- /package/{dist/colors → colors}/index.js +0 -0
- /package/{dist/utils → utils}/index.js +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import i from "../../../colors/grey.js";
|
|
3
|
+
const t = ({ color: o = i.m500, size: l = 24, ...a }) => /* @__PURE__ */ e.jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
width: l,
|
|
8
|
+
height: l,
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
"aria-label": "Upload Box Filled",
|
|
12
|
+
...a,
|
|
13
|
+
children: /* @__PURE__ */ e.jsx(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
clipRule: "evenodd",
|
|
18
|
+
d: "M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12m10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75m-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5z",
|
|
19
|
+
fill: o
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
export {
|
|
25
|
+
t as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { j as l } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import t from "../../../colors/grey.js";
|
|
3
|
+
const c = ({ color: a = t.m500, size: e = 24, ...s }) => /* @__PURE__ */ l.jsxs(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
width: e,
|
|
8
|
+
height: e,
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
"aria-label": "Upload Box Outline",
|
|
12
|
+
...s,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ l.jsx(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M7.25 7c0 .414.336.75.75.75h8a.75.75 0 0 0 0-1.5H8a.75.75 0 0 0-.75.75M12 17.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75",
|
|
18
|
+
fill: a
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ l.jsx(
|
|
22
|
+
"path",
|
|
23
|
+
{
|
|
24
|
+
fillRule: "evenodd",
|
|
25
|
+
clipRule: "evenodd",
|
|
26
|
+
d: "M11.943 1.25c-2.309 0-4.118 0-5.53.19-1.444.194-2.584.6-3.479 1.494-.895.895-1.3 2.035-1.494 3.48-.19 1.411-.19 3.22-.19 5.529v.114c0 2.309 0 4.118.19 5.53.194 1.444.6 2.584 1.494 3.479.895.895 2.035 1.3 3.48 1.494 1.411.19 3.22.19 5.529.19h.114c2.309 0 4.118 0 5.53-.19 1.444-.194 2.584-.6 3.479-1.494.895-.895 1.3-2.035 1.494-3.48.19-1.411.19-3.22.19-5.529v-.114c0-2.309 0-4.118-.19-5.53-.194-1.444-.6-2.584-1.494-3.479-.895-.895-2.035-1.3-3.48-1.494-1.411-.19-3.22-.19-5.529-.19zM3.995 3.995c.57-.57 1.34-.897 2.619-1.069 1.3-.174 3.008-.176 5.386-.176s4.086.002 5.386.176c1.279.172 2.05.5 2.62 1.069.569.57.896 1.34 1.068 2.619.174 1.3.176 3.008.176 5.386s-.002 4.086-.176 5.386c-.172 1.279-.5 2.05-1.069 2.62-.57.569-1.34.896-2.619 1.068-1.3.174-3.008.176-5.386.176s-4.086-.002-5.386-.176c-1.279-.172-2.05-.5-2.62-1.069-.569-.57-.896-1.34-1.068-2.619-.174-1.3-.176-3.008-.176-5.386s.002-4.086.176-5.386c.172-1.279.5-2.05 1.069-2.62",
|
|
27
|
+
fill: a
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
export {
|
|
34
|
+
c as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as l } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import h from "../../../colors/grey.js";
|
|
3
|
+
const s = ({ color: e = h.m500, size: t = 24, ...a }) => /* @__PURE__ */ l.jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "-1.5 0 33 33",
|
|
7
|
+
width: t,
|
|
8
|
+
height: t,
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
"aria-label": "Wallet Filled",
|
|
12
|
+
...a,
|
|
13
|
+
children: /* @__PURE__ */ l.jsx("g", { stroke: e, strokeWidth: "1", fill: e, fillRule: "evenodd", children: /* @__PURE__ */ l.jsx("g", { transform: "translate(-259 -776)", fill: e, children: /* @__PURE__ */ l.jsx("path", { d: "M283 799h6v-2h-6zm4-12h-28v20a2 2 0 0 0 2 2h26a2 2 0 0 0 2-2v-6h-7a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h7v-6a2 2 0 0 0-2-2m0-9c0-.553-.236-.859-.75-1.062-.396-.157-.781-.063-1.25.062l-26 8h28z" }) }) })
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
s as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as l } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import h from "../../../colors/grey.js";
|
|
3
|
+
const s = ({ color: t = h.m500, size: a = 24, ...e }) => /* @__PURE__ */ l.jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
viewBox: "-1.5 0 33 33",
|
|
7
|
+
width: a,
|
|
8
|
+
height: a,
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
"aria-label": "Wallet Outline",
|
|
12
|
+
...e,
|
|
13
|
+
children: /* @__PURE__ */ l.jsx("g", { stroke: t, strokeWidth: "1", fill: t, fillRule: "evenodd", children: /* @__PURE__ */ l.jsx("g", { transform: "translate(-257 -774)", fill: t, children: /* @__PURE__ */ l.jsx("path", { d: "M285 793h-5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h5v5a1 1 0 0 1-1 1h-24a1 1 0 0 1-1-1v-19h25a1 1 0 0 1 1 1zm0 3v1h-4v-2h4zm-2-19v6h-19.5zm2 6v-7c0-.553-.236-.859-.75-1.062-.396-.157-.781-.063-1.25.062l-26 8v22a2 2 0 0 0 2 2h26a2 2 0 0 0 2-2v-20a2 2 0 0 0-2-2" }) }) })
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
s as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import o from "./WalletOutline/WalletOutline.js";
|
|
2
|
+
import r from "./WalletFilled/WalletFilled.js";
|
|
3
|
+
import m from "./UploadBoxOutline/UploadBoxOutline.js";
|
|
4
|
+
import i from "./UploadBoxFilled/UploadBoxFilled.js";
|
|
5
|
+
import t from "./Upload/Upload.js";
|
|
6
|
+
import l from "./ThumbsUpOutline/ThumbsUpOutline.js";
|
|
7
|
+
import e from "./ThumbsUpFilled/ThumbsUpFilled.js";
|
|
8
|
+
import p from "./ThumbsDownOutline/ThumbsDownOutline.js";
|
|
9
|
+
import f from "./ThumbsDownFilled/ThumbsDownFilled.js";
|
|
10
|
+
import n from "./StarOutline/StarOutline.js";
|
|
11
|
+
import d from "./StarFilled/StarFilled.js";
|
|
12
|
+
import u from "./ShieldWarningOutline/ShieldWarningOutline.js";
|
|
13
|
+
import a from "./ShieldWarningFilled/ShieldWarningFilled.js";
|
|
14
|
+
import O from "./ShieldCrossOutline/ShieldCrossOutline.js";
|
|
15
|
+
import F from "./ShieldCrossFilled/ShieldCrossFilled.js";
|
|
16
|
+
import C from "./ShieldCheckOutline/ShieldCheckOutline.js";
|
|
17
|
+
import h from "./ShieldCheckFilled/ShieldCheckFilled.js";
|
|
18
|
+
import s from "./ShareThickFilled/ShareThickFilled.js";
|
|
19
|
+
import c from "./ShareOutline/ShareOutline.js";
|
|
20
|
+
import S from "./ShareFilled/ShareFilled.js";
|
|
21
|
+
import k from "./ShareBoxOutline/ShareBoxOutline.js";
|
|
22
|
+
import A from "./ShareAllOutline/ShareAllOutline.js";
|
|
23
|
+
import B from "./ShareAllFilled/ShareAllFilled.js";
|
|
24
|
+
import D from "./SettingOutline/SettingOutline.js";
|
|
25
|
+
import b from "./SettingFilled/SettingFilled.js";
|
|
26
|
+
import w from "./Search/Search.js";
|
|
27
|
+
import L from "./ProfileMaleOutline/ProfileMaleOutline.js";
|
|
28
|
+
import g from "./ProfileMaleFilled/ProfileMaleFilled.js";
|
|
29
|
+
import H from "./ProfileGroupFilled/ProfileGroupFilled.js";
|
|
30
|
+
import x from "./ProfileFemaleOutline/ProfileFemaleOutline.js";
|
|
31
|
+
import U from "./MinusCircleFilled/MinusCircleFilled.js";
|
|
32
|
+
import M from "./MinusCircle/MinusCircle.js";
|
|
33
|
+
import T from "./Minus/Minus.js";
|
|
34
|
+
import v from "./LockOpenOutline/LockOpenOutline.js";
|
|
35
|
+
import P from "./LockOpenFilled/LockOpenFilled.js";
|
|
36
|
+
import W from "./LockClosedOutline/LockClosedOutline.js";
|
|
37
|
+
import z from "./LockClosedFilled/LockClosedFilled.js";
|
|
38
|
+
import E from "./Link/Link.js";
|
|
39
|
+
import R from "./HomeOutline/HomeOutline.js";
|
|
40
|
+
import V from "./HomeFilled/HomeFilled.js";
|
|
41
|
+
import q from "./HeartOutline/HeartOutline.js";
|
|
42
|
+
import G from "./HeartFilled/HeartFilled.js";
|
|
43
|
+
import I from "./HamburgerSpaced/HamburgerSpaced.js";
|
|
44
|
+
import j from "./HamburgerMenu/HamburgerMenu.js";
|
|
45
|
+
import y from "./ExitArrowOutOutline/ExitArrowOutOutline.js";
|
|
46
|
+
import J from "./ExitArrowInOutline/ExitArrowInOutline.js";
|
|
47
|
+
import K from "./DotsVerticalOutline/DotsVerticalOutline.js";
|
|
48
|
+
import N from "./DotsVerticalFilled/DotsVerticalFilled.js";
|
|
49
|
+
import Q from "./DotsHorizontalOutline/DotsHorizontalOutline.js";
|
|
50
|
+
import X from "./DotsHorizontalFilled/DotsHorizontalFilled.js";
|
|
51
|
+
import Y from "./DetailsOutline/DetailsOutline.js";
|
|
52
|
+
import Z from "./ContactDetailsOutline/ContactDetailsOutline.js";
|
|
53
|
+
import _ from "./ContactDetailsFilled/ContactDetailsFilled.js";
|
|
54
|
+
import $ from "./CommentOutline/CommentOutline.js";
|
|
55
|
+
import oo from "./CommentLineOutline/CommentLineOutline.js";
|
|
56
|
+
import ro from "./CommentLineFilled/CommentLineFilled.js";
|
|
57
|
+
import mo from "./CommentFilled/CommentFilled.js";
|
|
58
|
+
import io from "./CommentBubbleOutline/CommentBubbleOutline.js";
|
|
59
|
+
import to from "./CommentBubbleFilled/CommentBubbleFilled.js";
|
|
60
|
+
import lo from "./CloseCircleOutline/CloseCircleOutline.js";
|
|
61
|
+
import eo from "./CloseCircleFilled/CloseCircleFilled.js";
|
|
62
|
+
import po from "./Close/Close.js";
|
|
63
|
+
import fo from "./ClockSquareOutline/ClockSquareOutline.js";
|
|
64
|
+
import no from "./ClockCircleOutline/ClockCircleOutline.js";
|
|
65
|
+
import uo from "./ChevronUp/ChevronUp.js";
|
|
66
|
+
import ao from "./ChevronRight/ChevronRight.js";
|
|
67
|
+
import Oo from "./ChevronLeft/ChevronLeft.js";
|
|
68
|
+
import Fo from "./ChevronDown/ChevronDown.js";
|
|
69
|
+
import Co from "./BookmarkOutline/BookmarkOutline.js";
|
|
70
|
+
import ho from "./BookmarkFilled/BookmarkFilled.js";
|
|
71
|
+
import so from "./BellOutline/BellOutline.js";
|
|
72
|
+
import co from "./BellOffOutline/BellOffOutline.js";
|
|
73
|
+
import So from "./BellOffFilled/BellOffFilled.js";
|
|
74
|
+
import ko from "./BellFilled/BellFilled.js";
|
|
75
|
+
import Ao from "./ArrowUp/ArrowUp.js";
|
|
76
|
+
import Bo from "./ArrowRight/ArrowRight.js";
|
|
77
|
+
import Do from "./ArrowLeft/ArrowLeft.js";
|
|
78
|
+
import bo from "./ArrowDown/ArrowDown.js";
|
|
79
|
+
import wo from "./AddCircleFilled/AddCircleFilled.js";
|
|
80
|
+
import Lo from "./AddCircle/AddCircle.js";
|
|
81
|
+
import go from "./Add/Add.js";
|
|
82
|
+
const rm = {
|
|
83
|
+
Add: go,
|
|
84
|
+
AddCircle: Lo,
|
|
85
|
+
AddCircleFilled: wo,
|
|
86
|
+
ArrowDown: bo,
|
|
87
|
+
ArrowLeft: Do,
|
|
88
|
+
ArrowRight: Bo,
|
|
89
|
+
ArrowUp: Ao,
|
|
90
|
+
BellFilled: ko,
|
|
91
|
+
BellOffFilled: So,
|
|
92
|
+
BellOffOutline: co,
|
|
93
|
+
BellOutline: so,
|
|
94
|
+
BookmarkFilled: ho,
|
|
95
|
+
BookmarkOutline: Co,
|
|
96
|
+
ChevronDown: Fo,
|
|
97
|
+
ChevronLeft: Oo,
|
|
98
|
+
ChevronRight: ao,
|
|
99
|
+
ChevronUp: uo,
|
|
100
|
+
ClockCircleOutline: no,
|
|
101
|
+
ClockSquareOutline: fo,
|
|
102
|
+
Close: po,
|
|
103
|
+
CloseCircleFilled: eo,
|
|
104
|
+
CloseCircleOutline: lo,
|
|
105
|
+
CommentBubbleFilled: to,
|
|
106
|
+
CommentBubbleOutline: io,
|
|
107
|
+
CommentFilled: mo,
|
|
108
|
+
CommentLineFilled: ro,
|
|
109
|
+
CommentLineOutline: oo,
|
|
110
|
+
CommentOutline: $,
|
|
111
|
+
ContactDetailsFilled: _,
|
|
112
|
+
ContactDetailsOutline: Z,
|
|
113
|
+
DetailsOutline: Y,
|
|
114
|
+
DotsHorizontalFilled: X,
|
|
115
|
+
DotsHorizontalOutline: Q,
|
|
116
|
+
DotsVerticalFilled: N,
|
|
117
|
+
DotsVerticalOutline: K,
|
|
118
|
+
ExitArrowInOutline: J,
|
|
119
|
+
ExitArrowOutOutline: y,
|
|
120
|
+
HamburgerMenu: j,
|
|
121
|
+
HamburgerSpaced: I,
|
|
122
|
+
HeartFilled: G,
|
|
123
|
+
HeartOutline: q,
|
|
124
|
+
HomeFilled: V,
|
|
125
|
+
HomeOutline: R,
|
|
126
|
+
Link: E,
|
|
127
|
+
LockClosedFilled: z,
|
|
128
|
+
LockClosedOutline: W,
|
|
129
|
+
LockOpenFilled: P,
|
|
130
|
+
LockOpenOutline: v,
|
|
131
|
+
Minus: T,
|
|
132
|
+
MinusCircle: M,
|
|
133
|
+
MinusCircleFilled: U,
|
|
134
|
+
ProfileFemaleOutline: x,
|
|
135
|
+
ProfileGroupFilled: H,
|
|
136
|
+
ProfileMaleFilled: g,
|
|
137
|
+
ProfileMaleOutline: L,
|
|
138
|
+
Search: w,
|
|
139
|
+
SettingFilled: b,
|
|
140
|
+
SettingOutline: D,
|
|
141
|
+
ShareAllFilled: B,
|
|
142
|
+
ShareAllOutline: A,
|
|
143
|
+
ShareBoxOutline: k,
|
|
144
|
+
ShareFilled: S,
|
|
145
|
+
ShareOutline: c,
|
|
146
|
+
ShareThickFilled: s,
|
|
147
|
+
ShieldCheckFilled: h,
|
|
148
|
+
ShieldCheckOutline: C,
|
|
149
|
+
ShieldCrossFilled: F,
|
|
150
|
+
ShieldCrossOutline: O,
|
|
151
|
+
ShieldWarningFilled: a,
|
|
152
|
+
ShieldWarningOutline: u,
|
|
153
|
+
StarFilled: d,
|
|
154
|
+
StarOutline: n,
|
|
155
|
+
ThumbsDownFilled: f,
|
|
156
|
+
ThumbsDownOutline: p,
|
|
157
|
+
ThumbsUpFilled: e,
|
|
158
|
+
ThumbsUpOutline: l,
|
|
159
|
+
Upload: t,
|
|
160
|
+
UploadBoxFilled: i,
|
|
161
|
+
UploadBoxOutline: m,
|
|
162
|
+
WalletFilled: r,
|
|
163
|
+
WalletOutline: o
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
rm as default
|
|
167
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { j as c } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import K from "../../node_modules/lodash-es/get.js";
|
|
3
|
+
import h from "../../node_modules/lodash-es/range.js";
|
|
4
|
+
import { PrevArrow as w, renderPageNum as x, NextArrow as A, renderThreeDots as I } from "./helpers.js";
|
|
5
|
+
import R from "../../colors/index.js";
|
|
6
|
+
import S from "../../colors/teal.js";
|
|
7
|
+
import { ICON_SIZE_MAPPING as _, MEDIUM as v, SIZE_REM_MAPPING as $ } from "./constants.js";
|
|
8
|
+
import { AllPages as M, MiddleLayer as y } from "./styles.js";
|
|
9
|
+
const k = ({
|
|
10
|
+
pageNumber: n,
|
|
11
|
+
setPageNumber: D,
|
|
12
|
+
totalPages: r,
|
|
13
|
+
theme: E = "lime",
|
|
14
|
+
size: i = v,
|
|
15
|
+
isDisabled: j = !1
|
|
16
|
+
}) => {
|
|
17
|
+
const d = (e) => {
|
|
18
|
+
e !== n && D(e);
|
|
19
|
+
}, f = () => {
|
|
20
|
+
n > 1 && d(n - 1);
|
|
21
|
+
}, t = () => {
|
|
22
|
+
n < r && d(n + 1);
|
|
23
|
+
}, m = (e) => {
|
|
24
|
+
console.log({ e }), ["ArrowLeft", "ArrowUp"].includes(e.code) && f(), ["ArrowRight", "ArrowDown"].includes(e.code) && t();
|
|
25
|
+
}, o = K(R, E, S), l = $[i], s = _[i];
|
|
26
|
+
return r <= 7 ? /* @__PURE__ */ c.jsxs(M, { onKeyDown: m, tabIndex: "0", isDisabled: j, children: [
|
|
27
|
+
/* @__PURE__ */ c.jsx(w, { iconSize: s, shades: o, setPrevPage: f }),
|
|
28
|
+
/* @__PURE__ */ c.jsx(y, { size: `${r * l}rem`, children: h(1, r + 1).map(
|
|
29
|
+
x({ size: i, selected: n, shades: o, changePage: d })
|
|
30
|
+
) }),
|
|
31
|
+
/* @__PURE__ */ c.jsx(A, { iconSize: s, shades: o, setNextPage: t })
|
|
32
|
+
] }) : r < 10 || n < 4 || n > r - 3 && n <= r ? /* @__PURE__ */ c.jsxs(M, { onKeyDown: m, tabIndex: "0", isDisabled: j, children: [
|
|
33
|
+
/* @__PURE__ */ c.jsx(w, { iconSize: s, shades: o, setPrevPage: f }),
|
|
34
|
+
/* @__PURE__ */ c.jsxs(y, { size: `${9 * l}rem`, children: [
|
|
35
|
+
h(1, 5).map(x({ size: i, selected: n, shades: o, changePage: d })),
|
|
36
|
+
I(),
|
|
37
|
+
[r - 3, r - 2, r - 1, r].map(
|
|
38
|
+
x({ size: i, selected: n, shades: o, changePage: d })
|
|
39
|
+
)
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ c.jsx(A, { iconSize: s, shades: o, setNextPage: t })
|
|
42
|
+
] }) : /* @__PURE__ */ c.jsxs(M, { onKeyDown: m, tabIndex: "0", isDisabled: j, children: [
|
|
43
|
+
/* @__PURE__ */ c.jsx(w, { iconSize: s, shades: o, setPrevPage: f }),
|
|
44
|
+
/* @__PURE__ */ c.jsxs(y, { size: `${9 * l}rem`, children: [
|
|
45
|
+
h(1, 3).map(x({ size: i, selected: n, shades: o, changePage: d })),
|
|
46
|
+
I(),
|
|
47
|
+
[n - 1, n, n + 1].map(
|
|
48
|
+
x({ size: i, selected: n, shades: o, changePage: d })
|
|
49
|
+
),
|
|
50
|
+
I(),
|
|
51
|
+
[r - 1, r].map(
|
|
52
|
+
x({ size: i, selected: n, shades: o, changePage: d })
|
|
53
|
+
)
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ c.jsx(A, { iconSize: s, shades: o, setNextPage: t })
|
|
56
|
+
] });
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
k as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const _ = "small", I = "medium", E = "large", M = {
|
|
2
|
+
[_]: 1.9,
|
|
3
|
+
[I]: 2.6,
|
|
4
|
+
[E]: 3.1
|
|
5
|
+
}, S = {
|
|
6
|
+
[_]: 1,
|
|
7
|
+
[I]: 1.2,
|
|
8
|
+
[E]: 1.4
|
|
9
|
+
}, L = {
|
|
10
|
+
[_]: 18,
|
|
11
|
+
[I]: 19,
|
|
12
|
+
[E]: 20
|
|
13
|
+
}, t = "selected_bg", N = "not_selected_bg", A = "active_not_selected_bg";
|
|
14
|
+
export {
|
|
15
|
+
A as ACTIVE_NOT_SELECTED_BG,
|
|
16
|
+
S as FONT_SIZE_MAPPING,
|
|
17
|
+
L as ICON_SIZE_MAPPING,
|
|
18
|
+
E as LARGE,
|
|
19
|
+
I as MEDIUM,
|
|
20
|
+
N as NOT_SELECTED_BG,
|
|
21
|
+
t as SELECTED_BG,
|
|
22
|
+
M as SIZE_REM_MAPPING,
|
|
23
|
+
_ as SMALL
|
|
24
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { j as r } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import s from "../Ripple/Ripple.js";
|
|
3
|
+
import { FONT_SIZE_MAPPING as x, SIZE_REM_MAPPING as h } from "./constants.js";
|
|
4
|
+
import { ClickableChevronLeft as j, Page as p, ClickableChevronRight as C, P as t } from "./styles.js";
|
|
5
|
+
const R = ({ size: e, selected: i, shades: n, changePage: c }) => (o) => {
|
|
6
|
+
const l = h[e], m = x[e], d = () => {
|
|
7
|
+
c(o);
|
|
8
|
+
};
|
|
9
|
+
return /* @__PURE__ */ r.jsx(
|
|
10
|
+
p,
|
|
11
|
+
{
|
|
12
|
+
"data-testid": i === o ? "current-page" : `test-${o}`,
|
|
13
|
+
isSelected: i === o,
|
|
14
|
+
onClick: d,
|
|
15
|
+
shades: n,
|
|
16
|
+
individualRemSize: l,
|
|
17
|
+
fontRemSize: m,
|
|
18
|
+
children: o
|
|
19
|
+
},
|
|
20
|
+
`page_${o}`
|
|
21
|
+
);
|
|
22
|
+
}, u = () => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
23
|
+
/* @__PURE__ */ r.jsx(t, { children: "." }),
|
|
24
|
+
/* @__PURE__ */ r.jsx(t, { children: "." }),
|
|
25
|
+
/* @__PURE__ */ r.jsx(t, { children: "." })
|
|
26
|
+
] }), N = ({ iconSize: e, shades: i, setPrevPage: n }) => /* @__PURE__ */ r.jsx(s, { rippleColor: i.m50, children: /* @__PURE__ */ r.jsx(j, { size: e, onClick: n }) }), S = ({ iconSize: e, shades: i, setNextPage: n }) => /* @__PURE__ */ r.jsx(s, { rippleColor: i.m50, children: /* @__PURE__ */ r.jsx(C, { size: e, onClick: n }) });
|
|
27
|
+
export {
|
|
28
|
+
S as NextArrow,
|
|
29
|
+
N as PrevArrow,
|
|
30
|
+
R as renderPageNum,
|
|
31
|
+
u as renderThreeDots
|
|
32
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import o, { css as i } from "../../node_modules/styled-components/dist/styled-components.browser.esm.js";
|
|
2
|
+
import c from "../../colors/grey.js";
|
|
3
|
+
import n from "../../colors/white.js";
|
|
4
|
+
import a from "../../colors/black.js";
|
|
5
|
+
import { SELECTED_BG as m, NOT_SELECTED_BG as l, ACTIVE_NOT_SELECTED_BG as s } from "./constants.js";
|
|
6
|
+
import f from "../Icons/ChevronLeft/ChevronLeft.js";
|
|
7
|
+
import d from "../Icons/ChevronRight/ChevronRight.js";
|
|
8
|
+
const t = (r) => ({ shades: e }) => {
|
|
9
|
+
if (["#FFFFFF"].includes(e))
|
|
10
|
+
return a.m900;
|
|
11
|
+
if (r === m)
|
|
12
|
+
return e.m500;
|
|
13
|
+
if (r === l)
|
|
14
|
+
return e.m50;
|
|
15
|
+
if (r === s)
|
|
16
|
+
return e.m100;
|
|
17
|
+
}, E = o.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 0.6rem;
|
|
22
|
+
min-width: 100%;
|
|
23
|
+
width: 100%;
|
|
24
|
+
|
|
25
|
+
${({ isDisabled: r }) => r && i`
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
opacity: 0.4;
|
|
28
|
+
`};
|
|
29
|
+
`, b = o.div`
|
|
30
|
+
height: ${({ individualRemSize: r }) => `${r}rem`};
|
|
31
|
+
width: ${({ individualRemSize: r }) => `${r}rem`};
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
text-align: center;
|
|
38
|
+
font-size: ${({ fontRemSize: r }) => r}rem;
|
|
39
|
+
${({ isSelected: r }) => r ? i`
|
|
40
|
+
cursor: auto;
|
|
41
|
+
color: ${n};
|
|
42
|
+
background-color: ${t(m)};
|
|
43
|
+
` : i`
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
color: ${c.m500};
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
background-color: ${t(l)};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:active {
|
|
52
|
+
background-color: ${t(s)};
|
|
53
|
+
color: ${n};
|
|
54
|
+
}
|
|
55
|
+
`}
|
|
56
|
+
`, y = o.p`
|
|
57
|
+
color: ${c.m500};
|
|
58
|
+
`, k = o(f)`
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
`, w = o(d)`
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
`, x = o.div`
|
|
63
|
+
min-width: ${({ size: r }) => r};
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
`;
|
|
68
|
+
export {
|
|
69
|
+
E as AllPages,
|
|
70
|
+
k as ClickableChevronLeft,
|
|
71
|
+
w as ClickableChevronRight,
|
|
72
|
+
x as MiddleLayer,
|
|
73
|
+
y as P,
|
|
74
|
+
b as Page
|
|
75
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as m } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { useRef as d } from "react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
const x = ({ children: s, rippleColor: l = "rgba(0,0,0,0.3)", className: p = "", ...c }) => {
|
|
5
|
+
const r = d(null), a = (o) => {
|
|
6
|
+
const n = r.current;
|
|
7
|
+
if (!n) return;
|
|
8
|
+
const e = document.createElement("span");
|
|
9
|
+
e.className = "ripple", e.style.backgroundColor = l;
|
|
10
|
+
const t = n.getBoundingClientRect(), i = Math.max(t.width, t.height);
|
|
11
|
+
e.style.width = e.style.height = `${i}px`, e.style.left = `${o.clientX - t.left - i / 2}px`, e.style.top = `${o.clientY - t.top - i / 2}px`, n.appendChild(e), e.addEventListener("animationend", () => e.remove());
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ m.jsx(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
ref: r,
|
|
17
|
+
onClick: a,
|
|
18
|
+
className: `ripple-container ${p}`,
|
|
19
|
+
...c,
|
|
20
|
+
children: s
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
x as default
|
|
26
|
+
};
|
package/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as t } from "./components/Pagination/Pagination.js";
|
|
2
|
+
import { default as e } from "./colors/index.js";
|
|
3
|
+
import { default as s } from "./utils/index.js";
|
|
4
|
+
import { default as u } from "./components/Icons/index.js";
|
|
5
|
+
export {
|
|
6
|
+
t as Pagination,
|
|
7
|
+
e as colors,
|
|
8
|
+
u as icons,
|
|
9
|
+
s as utils
|
|
10
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meticulous-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"pagination",
|
|
35
35
|
"colors",
|
|
36
36
|
"shades",
|
|
37
|
-
"ripple",
|
|
38
37
|
"utils",
|
|
39
38
|
"meticulous-ui"
|
|
40
39
|
],
|
package/utils/compose.js
ADDED