meticulous-ui 1.1.6 → 1.1.8
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 +105 -68
- 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 +49 -0
- package/components/Icons/AddCircle/AddCircle.js +34 -0
- package/components/Icons/AddCircleFilled/AddCircleFilled.js +25 -0
- package/components/Icons/ArrowDown/ArrowDown.js +25 -0
- package/components/Icons/ArrowLeft/ArrowLeft.js +26 -0
- package/components/Icons/ArrowRight/ArrowRight.js +26 -0
- package/components/Icons/ArrowUp/ArrowUp.js +25 -0
- package/components/Icons/BellFilled/BellFilled.js +36 -0
- package/components/Icons/BellOffFilled/BellOffFilled.js +45 -0
- package/components/Icons/BellOffOutline/BellOffOutline.js +47 -0
- package/components/Icons/BellOutline/BellOutline.js +38 -0
- package/components/Icons/BookmarkFilled/BookmarkFilled.js +28 -0
- package/components/Icons/BookmarkOutline/BookmarkOutline.js +25 -0
- package/components/Icons/CartCheckFilled/CartCheckFilled.js +41 -0
- package/components/Icons/CartCheckOutline/CartCheckOutline.js +51 -0
- package/components/Icons/CartCrossFilled/CartCrossFilled.js +41 -0
- package/components/Icons/CartCrossOutline/CartCrossOutline.js +50 -0
- package/components/Icons/CartFilled/CartFilled.js +39 -0
- package/components/Icons/CartMinusFilled/CartMinusFilled.js +41 -0
- package/components/Icons/CartMinusOutline/CartMinusOutline.js +52 -0
- package/components/Icons/CartOutline/CartOutline.js +51 -0
- package/components/Icons/CartPlusFilled/CartPlusFilled.js +41 -0
- package/components/Icons/CartPlusOutline/CartPlusOutline.js +50 -0
- package/components/Icons/Check/Check.js +26 -0
- package/components/Icons/Check/index.js +4 -0
- package/components/Icons/CheckDouble/CheckDouble.js +26 -0
- package/components/Icons/ChevronDown/ChevronDown.js +26 -0
- package/components/Icons/ChevronLeft/ChevronLeft.js +26 -0
- package/components/Icons/ChevronLeft/index.js +4 -0
- package/components/Icons/ChevronRight/ChevronRight.js +26 -0
- package/components/Icons/ChevronRight/index.js +4 -0
- package/components/Icons/ChevronUp/ChevronUp.js +26 -0
- package/components/Icons/ClockCircleOutline/ClockCircleOutline.js +29 -0
- package/components/Icons/ClockSquareOutline/ClockSquareOutline.js +36 -0
- package/components/Icons/Close/Close.js +23 -0
- package/components/Icons/Close/index.js +4 -0
- package/components/Icons/CloseCircleFilled/CloseCircleFilled.js +25 -0
- package/components/Icons/CloseCircleOutline/CloseCircleOutline.js +26 -0
- package/components/Icons/CommentBubbleFilled/CommentBubbleFilled.js +28 -0
- package/components/Icons/CommentBubbleOutline/CommentBubbleOutline.js +28 -0
- package/components/Icons/CommentFilled/CommentFilled.js +28 -0
- package/components/Icons/CommentLineFilled/CommentLineFilled.js +28 -0
- package/components/Icons/CommentLineOutline/CommentLineOutline.js +28 -0
- package/components/Icons/CommentOutline/CommentOutline.js +28 -0
- package/components/Icons/ContactDetailsFilled/ContactDetailsFilled.js +20 -0
- package/components/Icons/ContactDetailsOutline/ContactDetailsOutline.js +20 -0
- package/components/Icons/DetailsOutline/DetailsOutline.js +20 -0
- package/components/Icons/DotsHorizontalFilled/DotsHorizontalFilled.js +39 -0
- package/components/Icons/DotsHorizontalOutline/DotsHorizontalOutline.js +48 -0
- package/components/Icons/DotsVerticalFilled/DotsVerticalFilled.js +39 -0
- package/components/Icons/DotsVerticalOutline/DotsVerticalOutline.js +48 -0
- package/components/Icons/ExitArrowInOutline/ExitArrowInOutline.js +26 -0
- package/components/Icons/ExitArrowOutOutline/ExitArrowOutOutline.js +38 -0
- package/components/Icons/HamburgerMenu/HamburgerMenu.js +45 -0
- package/components/Icons/HamburgerSpaced/HamburgerSpaced.js +28 -0
- package/components/Icons/HeartFilled/HeartFilled.js +23 -0
- package/components/Icons/HeartOutline/HeartOutline.js +28 -0
- package/components/Icons/HomeFilled/HomeFilled.js +25 -0
- package/components/Icons/HomeOutline/HomeOutline.js +25 -0
- package/components/Icons/Info/Info.js +32 -0
- package/components/Icons/Info/index.js +4 -0
- package/components/Icons/Link/Link.js +36 -0
- package/components/Icons/LockKeyhole/LockKeyhole.js +25 -0
- package/components/Icons/LockKeyholeOutline/LockKeyholeOutline.js +36 -0
- package/components/Icons/LockKeyholeUnlocked/LockKeyholeUnlocked.js +25 -0
- package/components/Icons/LockKeyholeUnlockedOutline/LockKeyholeUnlockedOutline.js +36 -0
- package/components/Icons/Minus/Minus.js +26 -0
- package/components/Icons/MinusCircle/MinusCircle.js +28 -0
- package/components/Icons/MinusCircleFilled/MinusCircleFilled.js +28 -0
- package/components/Icons/MoneyBagOutline/MoneyBagOutline.js +51 -0
- package/components/Icons/MoneyBriefcaseFilled/MoneyBriefcaseFilled.js +25 -0
- package/components/Icons/MoneyBriefcaseOutline/MoneyBriefcaseOutline.js +43 -0
- package/components/Icons/ProfileFemaleOutline/ProfileFemaleOutline.js +35 -0
- package/components/Icons/ProfileGroupFilled/ProfileGroupFilled.js +33 -0
- package/components/Icons/ProfileMaleFilled/ProfileMaleFilled.js +33 -0
- package/components/Icons/ProfileMaleOutline/ProfileMaleOutline.js +36 -0
- package/components/Icons/RupeeOutlined/RupeeOutlined.js +23 -0
- package/components/Icons/RupeeSign/RupeeSign.js +26 -0
- package/components/Icons/Search/Search.js +28 -0
- package/components/Icons/SettingFilled/SettingFilled.js +23 -0
- package/components/Icons/SettingOutline/SettingOutline.js +23 -0
- package/components/Icons/ShareAllFilled/ShareAllFilled.js +25 -0
- package/components/Icons/ShareAllOutline/ShareAllOutline.js +44 -0
- package/components/Icons/ShareBoxOutline/ShareBoxOutline.js +23 -0
- package/components/Icons/ShareFilled/ShareFilled.js +34 -0
- package/components/Icons/ShareOutline/ShareOutline.js +37 -0
- package/components/Icons/ShareThickFilled/ShareThickFilled.js +23 -0
- package/components/Icons/ShieldCheckFilled/ShieldCheckFilled.js +25 -0
- package/components/Icons/ShieldCheckOutline/ShieldCheckOutline.js +36 -0
- package/components/Icons/ShieldCrossFilled/ShieldCrossFilled.js +25 -0
- package/components/Icons/ShieldCrossOutline/ShieldCrossOutline.js +35 -0
- package/components/Icons/ShieldWarningFilled/ShieldWarningFilled.js +25 -0
- package/components/Icons/ShieldWarningOutline/ShieldWarningOutline.js +28 -0
- package/components/Icons/StarFilled/StarFilled.js +28 -0
- package/components/Icons/StarOutline/StarOutline.js +30 -0
- package/components/Icons/ThumbsDownFilled/ThumbsDownFilled.js +23 -0
- package/components/Icons/ThumbsDownOutline/ThumbsDownOutline.js +23 -0
- package/components/Icons/ThumbsUpFilled/ThumbsUpFilled.js +23 -0
- package/components/Icons/ThumbsUpOutline/ThumbsUpOutline.js +23 -0
- package/components/Icons/Upload/Upload.js +32 -0
- package/components/Icons/UploadBoxFilled/UploadBoxFilled.js +25 -0
- package/components/Icons/UploadBoxOutline/UploadBoxOutline.js +41 -0
- package/components/Icons/WalletFilled/WalletFilled.js +28 -0
- package/components/Icons/WalletOutline/WalletOutline.js +28 -0
- package/components/Icons/index.js +302 -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/components/Toast/Toast.js +43 -0
- package/components/Toast/constants.js +34 -0
- package/components/Toast/helpers.js +17 -0
- package/components/Toast/index.js +4 -0
- package/components/Toast/styles.js +124 -0
- package/index.js +12 -0
- package/package.json +1 -1
- 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/index.js +0 -10
- /package/{dist/colors → colors}/index.js +0 -0
- /package/{dist/utils → utils}/index.js +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { j as C } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import "react";
|
|
3
|
+
const d = ({ size: t = 24, color: l = "currentColor", ...e }) => /* @__PURE__ */ C.jsxs(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
width: t,
|
|
7
|
+
height: t,
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
...e,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ C.jsx(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
d: "M7.25 7C7.25 7.41421 7.58579 7.75 8 7.75H16C16.4142 7.75 16.75 7.41421 16.75 7C16.75 6.58579 16.4142 6.25 16 6.25H8C7.58579 6.25 7.25 6.58579 7.25 7Z",
|
|
17
|
+
fill: l
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ C.jsx(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
d: "M12 17.75C12.4142 17.75 12.75 17.4142 12.75 17V11.8107L14.4697 13.5303C14.7626 13.8232 15.2374 13.8232 15.5303 13.5303C15.8232 13.2374 15.8232 12.7626 15.5303 12.4697L12.5303 9.46967C12.3897 9.32902 12.1989 9.25 12 9.25C11.8011 9.25 11.6103 9.32902 11.4697 9.46967L8.46967 12.4697C8.17678 12.7626 8.17678 13.2374 8.46967 13.5303C8.76256 13.8232 9.23744 13.8232 9.53033 13.5303L11.25 11.8107V17C11.25 17.4142 11.5858 17.75 12 17.75Z",
|
|
24
|
+
fill: l
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ C.jsx(
|
|
28
|
+
"path",
|
|
29
|
+
{
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
clipRule: "evenodd",
|
|
32
|
+
d: "M11.9426 1.25C9.63423 1.24999 7.82519 1.24998 6.4137 1.43975C4.96897 1.63399 3.82895 2.03933 2.93414 2.93414C2.03933 3.82895 1.63399 4.96897 1.43975 6.41371C1.24998 7.82519 1.24999 9.63423 1.25 11.9426V12.0574C1.24999 14.3658 1.24998 16.1748 1.43975 17.5863C1.63399 19.031 2.03933 20.1711 2.93414 21.0659C3.82895 21.9607 4.96897 22.366 6.4137 22.5603C7.82519 22.75 9.63423 22.75 11.9426 22.75H12.0574C14.3658 22.75 16.1748 22.75 17.5863 22.5603C19.031 22.366 20.1711 21.9607 21.0659 21.0659C21.9607 20.1711 22.366 19.031 22.5603 17.5863C22.75 16.1748 22.75 14.3658 22.75 12.0574V11.9426C22.75 9.63423 22.75 7.82519 22.5603 6.41371C22.366 4.96897 21.9607 3.82895 21.0659 2.93414C20.1711 2.03933 19.031 1.63399 17.5863 1.43975C16.1748 1.24998 14.3658 1.24999 12.0574 1.25H11.9426ZM3.9948 3.9948C4.56445 3.42514 5.33517 3.09825 6.61358 2.92637C7.91356 2.75159 9.62177 2.75 12 2.75C14.3782 2.75 16.0864 2.75159 17.3864 2.92637C18.6648 3.09825 19.4355 3.42514 20.0052 3.9948C20.5749 4.56445 20.9018 5.33517 21.0736 6.61358C21.2484 7.91356 21.25 9.62178 21.25 12C21.25 14.3782 21.2484 16.0864 21.0736 17.3864C20.9018 18.6648 20.5749 19.4355 20.0052 20.0052C19.4355 20.5749 18.6648 20.9018 17.3864 21.0736C16.0864 21.2484 14.3782 21.25 12 21.25C9.62177 21.25 7.91356 21.2484 6.61358 21.0736C5.33517 20.9018 4.56445 20.5749 3.9948 20.0052C3.42514 19.4355 3.09825 18.6648 2.92637 17.3864C2.75159 16.0864 2.75 14.3782 2.75 12C2.75 9.62178 2.75159 7.91356 2.92637 6.61358C3.09825 5.33517 3.42514 4.56445 3.9948 3.9948Z",
|
|
33
|
+
fill: l
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
export {
|
|
40
|
+
d as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import "react";
|
|
3
|
+
const i = ({ size: t = 24, color: l = "currentColor", ...s }) => /* @__PURE__ */ e.jsxs(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
width: t,
|
|
7
|
+
height: t,
|
|
8
|
+
viewBox: "-1.5 0 33 33",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
...s,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ e.jsx("title", { children: "wallet" }),
|
|
14
|
+
/* @__PURE__ */ e.jsx("desc", { children: "Created with Sketch Beta." }),
|
|
15
|
+
/* @__PURE__ */ e.jsx("defs", {}),
|
|
16
|
+
/* @__PURE__ */ e.jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", "sketch:type": "MSPage", children: /* @__PURE__ */ e.jsx("g", { "sketch:type": "MSLayerGroup", transform: "translate(-259.000000, -776.000000)", fill: l, children: /* @__PURE__ */ e.jsx(
|
|
17
|
+
"path",
|
|
18
|
+
{
|
|
19
|
+
d: "M283,799 L289,799 L289,797 L283,797 L283,799 Z M287,787 L259,787 L259,807 C259,808.104 259.896,809 261,809 L287,809 C288.104,809 289,808.104 289,807 L289,801 L282,801 C281.448,801 281,800.553 281,800 L281,796 C281,795.448 281.448,795 282,795 L289,795 L289,789 C289,787.896 288.104,787 287,787 L287,787 Z M287,778 C287,777.447 286.764,777.141 286.25,776.938 C285.854,776.781 285.469,776.875 285,777 L259,785 L287,785 L287,778 L287,778 Z",
|
|
20
|
+
"sketch:type": "MSShapeGroup"
|
|
21
|
+
}
|
|
22
|
+
) }) })
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
i as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import "react";
|
|
3
|
+
const n = ({ size: t = 24, color: L = "currentColor", ...l }) => /* @__PURE__ */ e.jsxs(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
width: t,
|
|
7
|
+
height: t,
|
|
8
|
+
viewBox: "-1.5 0 33 33",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
...l,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ e.jsx("title", { children: "wallet" }),
|
|
14
|
+
/* @__PURE__ */ e.jsx("desc", { children: "Created with Sketch Beta." }),
|
|
15
|
+
/* @__PURE__ */ e.jsx("defs", {}),
|
|
16
|
+
/* @__PURE__ */ e.jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", "sketch:type": "MSPage", children: /* @__PURE__ */ e.jsx("g", { "sketch:type": "MSLayerGroup", transform: "translate(-257.000000, -774.000000)", fill: L, children: /* @__PURE__ */ e.jsx(
|
|
17
|
+
"path",
|
|
18
|
+
{
|
|
19
|
+
d: "M285,793 L280,793 C279.448,793 279,793.448 279,794 L279,798 C279,798.553 279.448,799 280,799 L285,799 L285,804 C285,804.553 284.552,805 284,805 L260,805 C259.448,805 259,804.553 259,804 L259,785 L284,785 C284.552,785 285,785.447 285,786 L285,793 L285,793 Z M285,796 L285,797 L281,797 L281,796 L281,795 L285,795 L285,796 L285,796 Z M283,777 L283,783 L263.5,783 L283,777 L283,777 Z M285,783 L285,776 C285,775.447 284.764,775.141 284.25,774.938 C283.854,774.781 283.469,774.875 283,775 L257,783 L257,805 C257,806.104 257.896,807 259,807 L285,807 C286.104,807 287,806.104 287,805 L287,785 C287,783.896 286.104,783 285,783 L285,783 Z",
|
|
20
|
+
"sketch:type": "MSShapeGroup"
|
|
21
|
+
}
|
|
22
|
+
) }) })
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
n as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import o from "./AddCircleFilled/AddCircleFilled.js";
|
|
2
|
+
import r from "./AddCircle/AddCircle.js";
|
|
3
|
+
import m from "./Add/Add.js";
|
|
4
|
+
import i from "./ArrowDown/ArrowDown.js";
|
|
5
|
+
import t from "./ArrowLeft/ArrowLeft.js";
|
|
6
|
+
import e from "./ArrowRight/ArrowRight.js";
|
|
7
|
+
import l from "./ArrowUp/ArrowUp.js";
|
|
8
|
+
import f from "./BellFilled/BellFilled.js";
|
|
9
|
+
import p from "./BellOffFilled/BellOffFilled.js";
|
|
10
|
+
import n from "./BellOffOutline/BellOffOutline.js";
|
|
11
|
+
import u from "./BellOutline/BellOutline.js";
|
|
12
|
+
import d from "./BookmarkFilled/BookmarkFilled.js";
|
|
13
|
+
import a from "./BookmarkOutline/BookmarkOutline.js";
|
|
14
|
+
import C from "./CartCheckFilled/CartCheckFilled.js";
|
|
15
|
+
import O from "./CartCheckOutline/CartCheckOutline.js";
|
|
16
|
+
import F from "./CartCrossFilled/CartCrossFilled.js";
|
|
17
|
+
import h from "./CartCrossOutline/CartCrossOutline.js";
|
|
18
|
+
import s from "./CartFilled/CartFilled.js";
|
|
19
|
+
import c from "./CartMinusFilled/CartMinusFilled.js";
|
|
20
|
+
import k from "./CartMinusOutline/CartMinusOutline.js";
|
|
21
|
+
import S from "./CartOutline/CartOutline.js";
|
|
22
|
+
import B from "./CartPlusFilled/CartPlusFilled.js";
|
|
23
|
+
import D from "./CartPlusOutline/CartPlusOutline.js";
|
|
24
|
+
import b from "./CheckDouble/CheckDouble.js";
|
|
25
|
+
import A from "./Check/Check.js";
|
|
26
|
+
import M from "./ChevronDown/ChevronDown.js";
|
|
27
|
+
import g from "./ChevronLeft/ChevronLeft.js";
|
|
28
|
+
import w from "./ChevronRight/ChevronRight.js";
|
|
29
|
+
import L from "./ChevronUp/ChevronUp.js";
|
|
30
|
+
import U from "./ClockCircleOutline/ClockCircleOutline.js";
|
|
31
|
+
import H from "./ClockSquareOutline/ClockSquareOutline.js";
|
|
32
|
+
import x from "./CloseCircleFilled/CloseCircleFilled.js";
|
|
33
|
+
import y from "./CloseCircleOutline/CloseCircleOutline.js";
|
|
34
|
+
import P from "./Close/Close.js";
|
|
35
|
+
import T from "./CommentBubbleFilled/CommentBubbleFilled.js";
|
|
36
|
+
import v from "./CommentBubbleOutline/CommentBubbleOutline.js";
|
|
37
|
+
import K from "./CommentFilled/CommentFilled.js";
|
|
38
|
+
import R from "./CommentLineFilled/CommentLineFilled.js";
|
|
39
|
+
import W from "./CommentLineOutline/CommentLineOutline.js";
|
|
40
|
+
import z from "./CommentOutline/CommentOutline.js";
|
|
41
|
+
import E from "./ContactDetailsFilled/ContactDetailsFilled.js";
|
|
42
|
+
import I from "./ContactDetailsOutline/ContactDetailsOutline.js";
|
|
43
|
+
import V from "./DetailsOutline/DetailsOutline.js";
|
|
44
|
+
import q from "./DotsHorizontalFilled/DotsHorizontalFilled.js";
|
|
45
|
+
import G from "./DotsHorizontalOutline/DotsHorizontalOutline.js";
|
|
46
|
+
import j from "./DotsVerticalFilled/DotsVerticalFilled.js";
|
|
47
|
+
import J from "./DotsVerticalOutline/DotsVerticalOutline.js";
|
|
48
|
+
import N from "./ExitArrowInOutline/ExitArrowInOutline.js";
|
|
49
|
+
import Q from "./ExitArrowOutOutline/ExitArrowOutOutline.js";
|
|
50
|
+
import X from "./HamburgerMenu/HamburgerMenu.js";
|
|
51
|
+
import Y from "./HamburgerSpaced/HamburgerSpaced.js";
|
|
52
|
+
import Z from "./HeartFilled/HeartFilled.js";
|
|
53
|
+
import _ from "./HeartOutline/HeartOutline.js";
|
|
54
|
+
import $ from "./HomeFilled/HomeFilled.js";
|
|
55
|
+
import oo from "./HomeOutline/HomeOutline.js";
|
|
56
|
+
import ro from "./Info/Info.js";
|
|
57
|
+
import mo from "./Link/Link.js";
|
|
58
|
+
import io from "./LockKeyholeOutline/LockKeyholeOutline.js";
|
|
59
|
+
import to from "./LockKeyholeUnlockedOutline/LockKeyholeUnlockedOutline.js";
|
|
60
|
+
import eo from "./LockKeyholeUnlocked/LockKeyholeUnlocked.js";
|
|
61
|
+
import lo from "./LockKeyhole/LockKeyhole.js";
|
|
62
|
+
import fo from "./MinusCircleFilled/MinusCircleFilled.js";
|
|
63
|
+
import po from "./MinusCircle/MinusCircle.js";
|
|
64
|
+
import no from "./Minus/Minus.js";
|
|
65
|
+
import uo from "./MoneyBagOutline/MoneyBagOutline.js";
|
|
66
|
+
import ao from "./MoneyBriefcaseFilled/MoneyBriefcaseFilled.js";
|
|
67
|
+
import Co from "./MoneyBriefcaseOutline/MoneyBriefcaseOutline.js";
|
|
68
|
+
import Oo from "./ProfileFemaleOutline/ProfileFemaleOutline.js";
|
|
69
|
+
import Fo from "./ProfileGroupFilled/ProfileGroupFilled.js";
|
|
70
|
+
import ho from "./ProfileMaleFilled/ProfileMaleFilled.js";
|
|
71
|
+
import so from "./ProfileMaleOutline/ProfileMaleOutline.js";
|
|
72
|
+
import co from "./RupeeOutlined/RupeeOutlined.js";
|
|
73
|
+
import ko from "./RupeeSign/RupeeSign.js";
|
|
74
|
+
import So from "./Search/Search.js";
|
|
75
|
+
import Bo from "./SettingFilled/SettingFilled.js";
|
|
76
|
+
import Do from "./SettingOutline/SettingOutline.js";
|
|
77
|
+
import bo from "./ShareAllFilled/ShareAllFilled.js";
|
|
78
|
+
import Ao from "./ShareAllOutline/ShareAllOutline.js";
|
|
79
|
+
import Mo from "./ShareBoxOutline/ShareBoxOutline.js";
|
|
80
|
+
import go from "./ShareFilled/ShareFilled.js";
|
|
81
|
+
import wo from "./ShareOutline/ShareOutline.js";
|
|
82
|
+
import Lo from "./ShareThickFilled/ShareThickFilled.js";
|
|
83
|
+
import Uo from "./ShieldCheckFilled/ShieldCheckFilled.js";
|
|
84
|
+
import Ho from "./ShieldCheckOutline/ShieldCheckOutline.js";
|
|
85
|
+
import xo from "./ShieldCrossFilled/ShieldCrossFilled.js";
|
|
86
|
+
import yo from "./ShieldCrossOutline/ShieldCrossOutline.js";
|
|
87
|
+
import Po from "./ShieldWarningFilled/ShieldWarningFilled.js";
|
|
88
|
+
import To from "./ShieldWarningOutline/ShieldWarningOutline.js";
|
|
89
|
+
import vo from "./StarFilled/StarFilled.js";
|
|
90
|
+
import Ko from "./StarOutline/StarOutline.js";
|
|
91
|
+
import Ro from "./ThumbsDownFilled/ThumbsDownFilled.js";
|
|
92
|
+
import Wo from "./ThumbsDownOutline/ThumbsDownOutline.js";
|
|
93
|
+
import zo from "./ThumbsUpFilled/ThumbsUpFilled.js";
|
|
94
|
+
import Eo from "./ThumbsUpOutline/ThumbsUpOutline.js";
|
|
95
|
+
import Io from "./UploadBoxFilled/UploadBoxFilled.js";
|
|
96
|
+
import Vo from "./UploadBoxOutline/UploadBoxOutline.js";
|
|
97
|
+
import qo from "./Upload/Upload.js";
|
|
98
|
+
import Go from "./WalletFilled/WalletFilled.js";
|
|
99
|
+
import jo from "./WalletOutline/WalletOutline.js";
|
|
100
|
+
const Rm = {
|
|
101
|
+
AddCircleFilled: o,
|
|
102
|
+
AddCircle: r,
|
|
103
|
+
Add: m,
|
|
104
|
+
ArrowDown: i,
|
|
105
|
+
ArrowLeft: t,
|
|
106
|
+
ArrowRight: e,
|
|
107
|
+
ArrowUp: l,
|
|
108
|
+
BellFilled: f,
|
|
109
|
+
BellOffFilled: p,
|
|
110
|
+
BellOffOutline: n,
|
|
111
|
+
BellOutline: u,
|
|
112
|
+
BookmarkFilled: d,
|
|
113
|
+
BookmarkOutline: a,
|
|
114
|
+
CartCheckFilled: C,
|
|
115
|
+
CartCheckOutline: O,
|
|
116
|
+
CartCrossFilled: F,
|
|
117
|
+
CartCrossOutline: h,
|
|
118
|
+
CartFilled: s,
|
|
119
|
+
CartMinusFilled: c,
|
|
120
|
+
CartMinusOutline: k,
|
|
121
|
+
CartOutline: S,
|
|
122
|
+
CartPlusFilled: B,
|
|
123
|
+
CartPlusOutline: D,
|
|
124
|
+
CheckDouble: b,
|
|
125
|
+
Check: A,
|
|
126
|
+
ChevronDown: M,
|
|
127
|
+
ChevronLeft: g,
|
|
128
|
+
ChevronRight: w,
|
|
129
|
+
ChevronUp: L,
|
|
130
|
+
ClockCircleOutline: U,
|
|
131
|
+
ClockSquareOutline: H,
|
|
132
|
+
CloseCircleFilled: x,
|
|
133
|
+
CloseCircleOutline: y,
|
|
134
|
+
Close: P,
|
|
135
|
+
CommentBubbleFilled: T,
|
|
136
|
+
CommentBubbleOutline: v,
|
|
137
|
+
CommentFilled: K,
|
|
138
|
+
CommentLineFilled: R,
|
|
139
|
+
CommentLineOutline: W,
|
|
140
|
+
CommentOutline: z,
|
|
141
|
+
ContactDetailsFilled: E,
|
|
142
|
+
ContactDetailsOutline: I,
|
|
143
|
+
DetailsOutline: V,
|
|
144
|
+
DotsHorizontalFilled: q,
|
|
145
|
+
DotsHorizontalOutline: G,
|
|
146
|
+
DotsVerticalFilled: j,
|
|
147
|
+
DotsVerticalOutline: J,
|
|
148
|
+
ExitArrowInOutline: N,
|
|
149
|
+
ExitArrowOutOutline: Q,
|
|
150
|
+
HamburgerMenu: X,
|
|
151
|
+
HamburgerSpaced: Y,
|
|
152
|
+
HeartFilled: Z,
|
|
153
|
+
HeartOutline: _,
|
|
154
|
+
HomeFilled: $,
|
|
155
|
+
HomeOutline: oo,
|
|
156
|
+
Info: ro,
|
|
157
|
+
Link: mo,
|
|
158
|
+
LockKeyholeOutline: io,
|
|
159
|
+
LockKeyholeUnlockedOutline: to,
|
|
160
|
+
LockKeyholeUnlocked: eo,
|
|
161
|
+
LockKeyhole: lo,
|
|
162
|
+
MinusCircleFilled: fo,
|
|
163
|
+
MinusCircle: po,
|
|
164
|
+
Minus: no,
|
|
165
|
+
MoneyBagOutline: uo,
|
|
166
|
+
MoneyBriefcaseFilled: ao,
|
|
167
|
+
MoneyBriefcaseOutline: Co,
|
|
168
|
+
ProfileFemaleOutline: Oo,
|
|
169
|
+
ProfileGroupFilled: Fo,
|
|
170
|
+
ProfileMaleFilled: ho,
|
|
171
|
+
ProfileMaleOutline: so,
|
|
172
|
+
RupeeOutlined: co,
|
|
173
|
+
RupeeSign: ko,
|
|
174
|
+
Search: So,
|
|
175
|
+
SettingFilled: Bo,
|
|
176
|
+
SettingOutline: Do,
|
|
177
|
+
ShareAllFilled: bo,
|
|
178
|
+
ShareAllOutline: Ao,
|
|
179
|
+
ShareBoxOutline: Mo,
|
|
180
|
+
ShareFilled: go,
|
|
181
|
+
ShareOutline: wo,
|
|
182
|
+
ShareThickFilled: Lo,
|
|
183
|
+
ShieldCheckFilled: Uo,
|
|
184
|
+
ShieldCheckOutline: Ho,
|
|
185
|
+
ShieldCrossFilled: xo,
|
|
186
|
+
ShieldCrossOutline: yo,
|
|
187
|
+
ShieldWarningFilled: Po,
|
|
188
|
+
ShieldWarningOutline: To,
|
|
189
|
+
StarFilled: vo,
|
|
190
|
+
StarOutline: Ko,
|
|
191
|
+
ThumbsDownFilled: Ro,
|
|
192
|
+
ThumbsDownOutline: Wo,
|
|
193
|
+
ThumbsUpFilled: zo,
|
|
194
|
+
ThumbsUpOutline: Eo,
|
|
195
|
+
UploadBoxFilled: Io,
|
|
196
|
+
UploadBoxOutline: Vo,
|
|
197
|
+
Upload: qo,
|
|
198
|
+
WalletFilled: Go,
|
|
199
|
+
WalletOutline: jo
|
|
200
|
+
};
|
|
201
|
+
export {
|
|
202
|
+
m as Add,
|
|
203
|
+
r as AddCircle,
|
|
204
|
+
o as AddCircleFilled,
|
|
205
|
+
i as ArrowDown,
|
|
206
|
+
t as ArrowLeft,
|
|
207
|
+
e as ArrowRight,
|
|
208
|
+
l as ArrowUp,
|
|
209
|
+
f as BellFilled,
|
|
210
|
+
p as BellOffFilled,
|
|
211
|
+
n as BellOffOutline,
|
|
212
|
+
u as BellOutline,
|
|
213
|
+
d as BookmarkFilled,
|
|
214
|
+
a as BookmarkOutline,
|
|
215
|
+
C as CartCheckFilled,
|
|
216
|
+
O as CartCheckOutline,
|
|
217
|
+
F as CartCrossFilled,
|
|
218
|
+
h as CartCrossOutline,
|
|
219
|
+
s as CartFilled,
|
|
220
|
+
c as CartMinusFilled,
|
|
221
|
+
k as CartMinusOutline,
|
|
222
|
+
S as CartOutline,
|
|
223
|
+
B as CartPlusFilled,
|
|
224
|
+
D as CartPlusOutline,
|
|
225
|
+
A as Check,
|
|
226
|
+
b as CheckDouble,
|
|
227
|
+
M as ChevronDown,
|
|
228
|
+
g as ChevronLeft,
|
|
229
|
+
w as ChevronRight,
|
|
230
|
+
L as ChevronUp,
|
|
231
|
+
U as ClockCircleOutline,
|
|
232
|
+
H as ClockSquareOutline,
|
|
233
|
+
P as Close,
|
|
234
|
+
x as CloseCircleFilled,
|
|
235
|
+
y as CloseCircleOutline,
|
|
236
|
+
T as CommentBubbleFilled,
|
|
237
|
+
v as CommentBubbleOutline,
|
|
238
|
+
K as CommentFilled,
|
|
239
|
+
R as CommentLineFilled,
|
|
240
|
+
W as CommentLineOutline,
|
|
241
|
+
z as CommentOutline,
|
|
242
|
+
E as ContactDetailsFilled,
|
|
243
|
+
I as ContactDetailsOutline,
|
|
244
|
+
V as DetailsOutline,
|
|
245
|
+
q as DotsHorizontalFilled,
|
|
246
|
+
G as DotsHorizontalOutline,
|
|
247
|
+
j as DotsVerticalFilled,
|
|
248
|
+
J as DotsVerticalOutline,
|
|
249
|
+
N as ExitArrowInOutline,
|
|
250
|
+
Q as ExitArrowOutOutline,
|
|
251
|
+
X as HamburgerMenu,
|
|
252
|
+
Y as HamburgerSpaced,
|
|
253
|
+
Z as HeartFilled,
|
|
254
|
+
_ as HeartOutline,
|
|
255
|
+
$ as HomeFilled,
|
|
256
|
+
oo as HomeOutline,
|
|
257
|
+
ro as Info,
|
|
258
|
+
mo as Link,
|
|
259
|
+
lo as LockKeyhole,
|
|
260
|
+
io as LockKeyholeOutline,
|
|
261
|
+
eo as LockKeyholeUnlocked,
|
|
262
|
+
to as LockKeyholeUnlockedOutline,
|
|
263
|
+
no as Minus,
|
|
264
|
+
po as MinusCircle,
|
|
265
|
+
fo as MinusCircleFilled,
|
|
266
|
+
uo as MoneyBagOutline,
|
|
267
|
+
ao as MoneyBriefcaseFilled,
|
|
268
|
+
Co as MoneyBriefcaseOutline,
|
|
269
|
+
Oo as ProfileFemaleOutline,
|
|
270
|
+
Fo as ProfileGroupFilled,
|
|
271
|
+
ho as ProfileMaleFilled,
|
|
272
|
+
so as ProfileMaleOutline,
|
|
273
|
+
co as RupeeOutlined,
|
|
274
|
+
ko as RupeeSign,
|
|
275
|
+
So as Search,
|
|
276
|
+
Bo as SettingFilled,
|
|
277
|
+
Do as SettingOutline,
|
|
278
|
+
bo as ShareAllFilled,
|
|
279
|
+
Ao as ShareAllOutline,
|
|
280
|
+
Mo as ShareBoxOutline,
|
|
281
|
+
go as ShareFilled,
|
|
282
|
+
wo as ShareOutline,
|
|
283
|
+
Lo as ShareThickFilled,
|
|
284
|
+
Uo as ShieldCheckFilled,
|
|
285
|
+
Ho as ShieldCheckOutline,
|
|
286
|
+
xo as ShieldCrossFilled,
|
|
287
|
+
yo as ShieldCrossOutline,
|
|
288
|
+
Po as ShieldWarningFilled,
|
|
289
|
+
To as ShieldWarningOutline,
|
|
290
|
+
vo as StarFilled,
|
|
291
|
+
Ko as StarOutline,
|
|
292
|
+
Ro as ThumbsDownFilled,
|
|
293
|
+
Wo as ThumbsDownOutline,
|
|
294
|
+
zo as ThumbsUpFilled,
|
|
295
|
+
Eo as ThumbsUpOutline,
|
|
296
|
+
qo as Upload,
|
|
297
|
+
Io as UploadBoxFilled,
|
|
298
|
+
Vo as UploadBoxOutline,
|
|
299
|
+
Go as WalletFilled,
|
|
300
|
+
jo as WalletOutline,
|
|
301
|
+
Rm as default
|
|
302
|
+
};
|
|
@@ -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 a from "../Icons/ChevronLeft/ChevronLeft.js";
|
|
3
|
+
import f from "../Icons/ChevronRight/ChevronRight.js";
|
|
4
|
+
import c from "../../colors/grey.js";
|
|
5
|
+
import n from "../../colors/white.js";
|
|
6
|
+
import d from "../../colors/black.js";
|
|
7
|
+
import { SELECTED_BG as m, NOT_SELECTED_BG as l, ACTIVE_NOT_SELECTED_BG as s } from "./constants.js";
|
|
8
|
+
const t = (r) => ({ shades: e }) => {
|
|
9
|
+
if (["#FFFFFF"].includes(e))
|
|
10
|
+
return d.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(a)`
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
`, w = o(f)`
|
|
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
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { j as e } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { useState as n, useEffect as c } from "react";
|
|
3
|
+
import T from "../../node_modules/lodash-es/get.js";
|
|
4
|
+
import g from "../../node_modules/lodash-es/noop.js";
|
|
5
|
+
import { Logo as h } from "./helpers.js";
|
|
6
|
+
import C from "../../colors/grey.js";
|
|
7
|
+
import { INFO as S, INFO_COLORS as $, COLOR_MAP as F } from "./constants.js";
|
|
8
|
+
import { ToastWrapper as L, Message as N, Title as R, Subtitle as w, CloseWrapper as I } from "./styles.js";
|
|
9
|
+
const m = (t, o, r) => () => {
|
|
10
|
+
t(!0), setTimeout(() => {
|
|
11
|
+
o(!1), r();
|
|
12
|
+
}, 500);
|
|
13
|
+
}, b = ({
|
|
14
|
+
type: t = S,
|
|
15
|
+
visible: o = !0,
|
|
16
|
+
duration: r = 5,
|
|
17
|
+
onExpire: i = g,
|
|
18
|
+
title: p,
|
|
19
|
+
subtitle: a
|
|
20
|
+
}) => {
|
|
21
|
+
const [u, s] = n(o), [l, f] = n(!1);
|
|
22
|
+
c(() => {
|
|
23
|
+
s(o);
|
|
24
|
+
}, [o]), c(() => {
|
|
25
|
+
const O = setTimeout(m(f, s, i), r * 1e3 - 500);
|
|
26
|
+
return () => {
|
|
27
|
+
clearTimeout(O);
|
|
28
|
+
};
|
|
29
|
+
}, [r, m]);
|
|
30
|
+
const { main: d, side: j, bg: x } = T(F, t, $);
|
|
31
|
+
if (u)
|
|
32
|
+
return /* @__PURE__ */ e.jsxs(L, { $bg: x, className: `${l ? "fade-out" : "fade-in"}`, children: [
|
|
33
|
+
/* @__PURE__ */ e.jsx(h, { type: t, $main: d, $side: j }),
|
|
34
|
+
/* @__PURE__ */ e.jsxs(N, { children: [
|
|
35
|
+
/* @__PURE__ */ e.jsx(R, { children: p }),
|
|
36
|
+
a && /* @__PURE__ */ e.jsx(w, { children: a })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ e.jsx(I, { size: 20, color: C.m600, onClick: m(f, s, i) })
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
b as default
|
|
43
|
+
};
|