meticulous-ui 3.7.12 → 3.7.13
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/components/Button/Button.js +46 -67
- package/components/Carousel/Carousel.js +127 -72
- package/components/DatePicker/DatePicker.js +181 -142
- package/components/DatePicker/constants.js +14 -1
- package/components/DatePicker/utils.js +1 -5
- package/components/Dropdown/Dropdown.js +114 -80
- package/components/Glass/Glass.js +2 -8
- package/components/Icons/Add.js +44 -11
- package/components/Icons/AddCircle.js +29 -8
- package/components/Icons/AddCircleFilled.js +20 -5
- package/components/Icons/ArrowDown.js +20 -5
- package/components/Icons/ArrowLeft.js +21 -5
- package/components/Icons/ArrowRight.js +21 -5
- package/components/Icons/ArrowUp.js +20 -5
- package/components/Icons/BagFilled.js +20 -5
- package/components/Icons/BagOutline.js +30 -8
- package/components/Icons/BellFilled.js +31 -8
- package/components/Icons/BellOffFilled.js +40 -9
- package/components/Icons/BellOffOutline.js +42 -9
- package/components/Icons/BellOutline.js +33 -8
- package/components/Icons/BookmarkFilled.js +23 -10
- package/components/Icons/BookmarkOutline.js +20 -5
- package/components/Icons/BoxCoveredFilled.js +41 -10
- package/components/Icons/BoxCoveredOutline.js +31 -8
- package/components/Icons/BoxFilled.js +34 -9
- package/components/Icons/BoxOutline.js +31 -8
- package/components/Icons/CalendarDays.js +20 -5
- package/components/Icons/CalendarLinesPen.js +21 -5
- package/components/Icons/CartCheckFilled.js +36 -9
- package/components/Icons/CartCheckOutline.js +46 -10
- package/components/Icons/CartCrossFilled.js +36 -9
- package/components/Icons/CartCrossOutline.js +45 -10
- package/components/Icons/CartFilled.js +34 -9
- package/components/Icons/CartMinusFilled.js +36 -9
- package/components/Icons/CartMinusOutline.js +47 -11
- package/components/Icons/CartOutline.js +46 -10
- package/components/Icons/CartPlusFilled.js +36 -9
- package/components/Icons/CartPlusOutline.js +45 -10
- package/components/Icons/Check.js +21 -5
- package/components/Icons/CheckDouble.js +21 -5
- package/components/Icons/ChevronDown.js +21 -5
- package/components/Icons/ChevronLeft.js +21 -5
- package/components/Icons/ChevronRight.js +21 -5
- package/components/Icons/ChevronUp.js +21 -5
- package/components/Icons/ClockCircleOutline.js +24 -8
- package/components/Icons/ClockSquareOutline.js +31 -8
- package/components/Icons/Close.js +18 -5
- package/components/Icons/CloseCircleFilled.js +20 -5
- package/components/Icons/CloseCircleOutline.js +21 -5
- package/components/Icons/CommentBubbleFilled.js +23 -10
- package/components/Icons/CommentBubbleOutline.js +23 -10
- package/components/Icons/CommentFilled.js +23 -10
- package/components/Icons/CommentLineFilled.js +23 -10
- package/components/Icons/CommentLineOutline.js +23 -10
- package/components/Icons/CommentOutline.js +23 -10
- package/components/Icons/ContactDetailsFilled.js +15 -8
- package/components/Icons/ContactDetailsOutline.js +15 -8
- package/components/Icons/DeliveryTruckFastFilled.js +26 -13
- package/components/Icons/DeliveryTruckFastOutline.js +26 -13
- package/components/Icons/DeliveryTruckLeftFilled.js +22 -9
- package/components/Icons/DeliveryTruckLeftOutline.js +22 -9
- package/components/Icons/DeliveryTruckRightFilled.js +21 -8
- package/components/Icons/DeliveryTruckRightOutline.js +21 -8
- package/components/Icons/DetailsOutline.js +15 -8
- package/components/Icons/DiscordConversation.js +27 -8
- package/components/Icons/DiscordFilled.js +21 -8
- package/components/Icons/DiscordOutline.js +25 -9
- package/components/Icons/DoorClosedFilled.js +20 -5
- package/components/Icons/DoorClosedOutline.js +21 -5
- package/components/Icons/DoorOpenFilled.js +20 -5
- package/components/Icons/DoorOpenOutline.js +21 -5
- package/components/Icons/DotsHorizontalFilled.js +34 -9
- package/components/Icons/DotsHorizontalOutline.js +43 -9
- package/components/Icons/DotsVerticalFilled.js +34 -9
- package/components/Icons/DotsVerticalOutline.js +43 -9
- package/components/Icons/Download.js +27 -8
- package/components/Icons/DownloadBoxFilled.js +20 -5
- package/components/Icons/DownloadBoxOutline.js +36 -9
- package/components/Icons/EditBoxThick.js +21 -5
- package/components/Icons/EditBoxThin.js +33 -8
- package/components/Icons/EmailFilled.js +19 -6
- package/components/Icons/EmailOutline.js +19 -6
- package/components/Icons/ExitArrowInOutline.js +21 -5
- package/components/Icons/ExitArrowOutOutline.js +33 -8
- package/components/Icons/ExitFullScreen.js +19 -5
- package/components/Icons/ExitFullScreenThick.js +19 -5
- package/components/Icons/EyeClosed.js +20 -5
- package/components/Icons/EyeFilled.js +29 -8
- package/components/Icons/EyeOutline.js +33 -8
- package/components/Icons/FacebookFilled.js +19 -6
- package/components/Icons/FacebookMessengerOutline.js +29 -8
- package/components/Icons/FacebookOutline.js +20 -5
- package/components/Icons/FacebookRoundFilled.js +18 -5
- package/components/Icons/Filter.js +17 -10
- package/components/Icons/FilterList.js +21 -5
- package/components/Icons/FilterThickFilled.js +18 -5
- package/components/Icons/FilterThickOutline.js +19 -5
- package/components/Icons/FullScreenArrowThick.js +19 -5
- package/components/Icons/FullScreenArrowThin.js +19 -5
- package/components/Icons/FullScreenExit.js +41 -10
- package/components/Icons/FullScreenFilled.js +20 -5
- package/components/Icons/FullScreenOutline.js +20 -5
- package/components/Icons/HamburgerMenu.js +40 -9
- package/components/Icons/HamburgerSpaced.js +23 -10
- package/components/Icons/HeartFilled.js +18 -5
- package/components/Icons/HeartOutline.js +23 -5
- package/components/Icons/Help.js +21 -5
- package/components/Icons/HelpCircleFilled.js +20 -5
- package/components/Icons/HelpCircleOutline.js +41 -9
- package/components/Icons/HomeFilled.js +20 -5
- package/components/Icons/HomeOutline.js +20 -5
- package/components/Icons/Info.js +27 -8
- package/components/Icons/InfoCircleFilled.js +20 -5
- package/components/Icons/InfoCircleOutline.js +16 -9
- package/components/Icons/InfoSquareFilled.js +20 -5
- package/components/Icons/InfoSquareOutline.js +23 -9
- package/components/Icons/InstagramOuline.js +21 -8
- package/components/Icons/InstagramRoundFilled.js +44 -13
- package/components/Icons/KeyFilled.js +20 -5
- package/components/Icons/KeyInSquareFilled.js +29 -8
- package/components/Icons/KeyInSquareOutline.js +38 -9
- package/components/Icons/KeyOutline.js +31 -8
- package/components/Icons/KeySideSquareFilled.js +29 -8
- package/components/Icons/KeySideSquareOutline.js +20 -5
- package/components/Icons/KeySquareFilled.js +29 -8
- package/components/Icons/KeySquareOutline.js +20 -5
- package/components/Icons/Link.js +31 -8
- package/components/Icons/LinkedinFilled.js +19 -6
- package/components/Icons/LinkedinOutline.js +19 -5
- package/components/Icons/LinkedinRoundFilled.js +19 -6
- package/components/Icons/Loading.js +21 -8
- package/components/Icons/LocationArrowFilled.js +12 -5
- package/components/Icons/LocationArrowOutline.js +21 -5
- package/components/Icons/LocationFilled.js +23 -10
- package/components/Icons/LocationOutline.js +23 -10
- package/components/Icons/LockKeyhole.js +20 -5
- package/components/Icons/LockKeyholeOutline.js +31 -9
- package/components/Icons/LockKeyholeUnlocked.js +20 -5
- package/components/Icons/LockKeyholeUnlockedOutline.js +31 -9
- package/components/Icons/MediaPauseCircleFilled.js +20 -5
- package/components/Icons/MediaPauseCircleOuline.js +36 -9
- package/components/Icons/MediaPauseFilled.js +27 -8
- package/components/Icons/MediaPauseOutline.js +31 -8
- package/components/Icons/MediaPlayCircleFilled.js +20 -5
- package/components/Icons/MediaPlayCircleOutline.js +31 -8
- package/components/Icons/MediaPlayFilled.js +18 -5
- package/components/Icons/MediaPlayOutline.js +20 -5
- package/components/Icons/MediaStopCircleFilled.js +20 -5
- package/components/Icons/MediaStopCircleOutline.js +31 -8
- package/components/Icons/MediaStopFilled.js +18 -5
- package/components/Icons/MediaStopOutline.js +20 -5
- package/components/Icons/Minus.js +21 -5
- package/components/Icons/MinusCircle.js +23 -10
- package/components/Icons/MinusCircleFilled.js +23 -10
- package/components/Icons/MoneyBagOutline.js +46 -10
- package/components/Icons/MoneyBriefcaseFilled.js +20 -5
- package/components/Icons/MoneyBriefcaseOutline.js +38 -9
- package/components/Icons/NoEntry.js +19 -5
- package/components/Icons/NoEntryFilled.js +18 -5
- package/components/Icons/NoEntryOutline.js +21 -8
- package/components/Icons/PaymentCardFilled.js +16 -9
- package/components/Icons/PaymentCardOutline.js +16 -9
- package/components/Icons/PhoneCallingFilled.js +36 -9
- package/components/Icons/PhoneCallingOutline.js +38 -9
- package/components/Icons/PhoneFilled.js +18 -5
- package/components/Icons/PhoneOutline.js +18 -5
- package/components/Icons/Pin.js +21 -5
- package/components/Icons/PinAddFilled.js +17 -10
- package/components/Icons/PinAddOutline.js +17 -10
- package/components/Icons/PinCircleFilled.js +20 -5
- package/components/Icons/PinCircleOutline.js +21 -8
- package/components/Icons/PinFilled.js +18 -5
- package/components/Icons/PinOutline.js +20 -5
- package/components/Icons/PinSubFilled.js +17 -10
- package/components/Icons/PinSubOutline.js +17 -10
- package/components/Icons/PinterestFilled.js +17 -10
- package/components/Icons/PinterestOutline.js +21 -5
- package/components/Icons/ProfileFemaleOutline.js +19 -6
- package/components/Icons/ProfileGroupFilled.js +28 -8
- package/components/Icons/ProfileMaleFilled.js +28 -8
- package/components/Icons/ProfileMaleOutline.js +19 -6
- package/components/Icons/RedditFilled.js +17 -10
- package/components/Icons/RedditOutline.js +43 -10
- package/components/Icons/RedditRoundFilled.js +52 -15
- package/components/Icons/RedditRoundOutline.js +53 -16
- package/components/Icons/RupeeOutlined.js +18 -5
- package/components/Icons/RupeeSign.js +21 -5
- package/components/Icons/SaveFilled.js +23 -10
- package/components/Icons/SaveOutline.js +23 -10
- package/components/Icons/Search.js +23 -10
- package/components/Icons/SettingFilled.js +18 -5
- package/components/Icons/SettingOutline.js +18 -5
- package/components/Icons/ShareAllFilled.js +20 -5
- package/components/Icons/ShareAllOutline.js +39 -11
- package/components/Icons/ShareBoxOutline.js +18 -5
- package/components/Icons/ShareFilled.js +29 -8
- package/components/Icons/ShareOutline.js +32 -8
- package/components/Icons/ShareThickFilled.js +18 -5
- package/components/Icons/ShieldCheckFilled.js +20 -5
- package/components/Icons/ShieldCheckOutline.js +31 -8
- package/components/Icons/ShieldCrossFilled.js +20 -5
- package/components/Icons/ShieldCrossOutline.js +30 -8
- package/components/Icons/ShieldFilled.js +18 -5
- package/components/Icons/ShieldOutline.js +20 -5
- package/components/Icons/ShieldWarningFilled.js +20 -5
- package/components/Icons/ShieldWarningOutline.js +23 -9
- package/components/Icons/SnapchatFilled.js +17 -10
- package/components/Icons/SnapchatOutline.js +20 -5
- package/components/Icons/SortBottomToTop.js +26 -10
- package/components/Icons/SortHorizontal.js +20 -5
- package/components/Icons/SortTopToBottom.js +26 -10
- package/components/Icons/SortVertical.js +20 -5
- package/components/Icons/StarFilled.js +19 -6
- package/components/Icons/StarOutline.js +19 -6
- package/components/Icons/TelegramFilled.js +22 -9
- package/components/Icons/TelegramOutline.js +20 -5
- package/components/Icons/TelegramRoundFilled.js +22 -9
- package/components/Icons/ThumbsDownFilled.js +18 -5
- package/components/Icons/ThumbsDownOutline.js +18 -5
- package/components/Icons/ThumbsUpFilled.js +18 -5
- package/components/Icons/ThumbsUpOutline.js +18 -5
- package/components/Icons/TiktokBox.js +18 -5
- package/components/Icons/TiktokThickFilled.js +21 -8
- package/components/Icons/TiktokThinFilled.js +32 -8
- package/components/Icons/TrashBigFilled.js +23 -10
- package/components/Icons/TrashBigOutline.js +23 -10
- package/components/Icons/TrashFilled.js +27 -8
- package/components/Icons/TrashLinesFilled.js +29 -8
- package/components/Icons/TrashLinesOutline.js +33 -11
- package/components/Icons/TrashOutline.js +31 -9
- package/components/Icons/Upload.js +27 -8
- package/components/Icons/UploadBoxFilled.js +20 -5
- package/components/Icons/UploadBoxOutline.js +36 -9
- package/components/Icons/VolumeFilled.js +30 -11
- package/components/Icons/VolumeMuteFilled.js +30 -11
- package/components/Icons/VolumeMuteOutline.js +30 -11
- package/components/Icons/VolumeOffFilled.js +30 -11
- package/components/Icons/VolumeOffOutline.js +30 -11
- package/components/Icons/VolumeOutline.js +30 -11
- package/components/Icons/WalletFilled.js +23 -10
- package/components/Icons/WalletOutline.js +23 -10
- package/components/Icons/Warning.js +21 -5
- package/components/Icons/WarningCircleFilled.js +18 -5
- package/components/Icons/WarningCircleOutline.js +18 -5
- package/components/Icons/WarningSmall.js +21 -5
- package/components/Icons/WarningTriangleFilled.js +21 -8
- package/components/Icons/WarningTriangleOutline.js +21 -5
- package/components/Icons/WhatsappFilled.js +17 -10
- package/components/Icons/WhatsappOutline.js +20 -5
- package/components/Icons/Youtube.js +18 -5
- package/components/Icons/YoutubeFilled.js +23 -10
- package/components/Icons/YoutubeRoundFilled.js +22 -9
- package/components/Image/Image.js +33 -27
- package/components/Input/Checkbox/Checkbox.js +30 -20
- package/components/Input/FileUploader/FileUploader.js +73 -82
- package/components/Input/Input/Input.js +49 -47
- package/components/Input/Radio/Radio.js +18 -17
- package/components/Input/RadioGroup/RadioGroup.js +33 -16
- package/components/Input/Textarea/SvgIcon.js +1 -7
- package/components/Input/Textarea/Textarea.js +54 -54
- package/components/Loader/Loader.js +18 -29
- package/components/Loader/constants.js +3 -12
- package/components/MenuItem/MenuItem.js +30 -28
- package/components/Modal/Modal.js +58 -37
- package/components/OtpInput/OtpInput.js +28 -28
- package/components/PageLoader/PageLoader.js +13 -9
- package/components/Pagination/Pagination.js +87 -95
- package/components/Ripple/Ripple.js +12 -2
- package/components/RootComponent/RootComponent.js +1 -4
- package/components/Selectbox/Selectbox.js +143 -101
- package/components/Shimmer/Shimmer.js +17 -13
- package/components/Spinner/Spinner.js +29 -22
- package/components/Timer/Timer.js +154 -92
- package/components/Timer/components/TimerRing/TimerRing.js +56 -11
- package/components/Toast/Toast.js +76 -81
- package/components/Typography/Headings/H1.js +2 -8
- package/components/Typography/Headings/H2.js +2 -8
- package/components/Typography/Headings/H3.js +2 -8
- package/components/Typography/Headings/H4.js +2 -8
- package/components/Typography/Headings/H5.js +2 -8
- package/components/Typography/Headings/H6.js +2 -8
- package/components/Typography/Headings/index.js +1 -8
- package/components/Typography/P/P.js +3 -12
- package/components/VideoPlayer/VideoPlayer.js +19 -23
- package/components/VideoPlayer/components/Volumebar/Volumebar.js +2 -6
- package/components/VideoPlayer/useSpacebarToggle.js +11 -1
- package/components/VideoPlayer/useVolumeOverlay.js +1 -4
- package/hooks/useThrottle.js +6 -3
- package/hooks/useWindowSize.js +1 -4
- package/package.json +1 -1
- package/reactUtils/composeProviders.js +1 -3
- package/reactUtils/lazyImport.js +1 -3
- package/reactUtils/withErrorBoundary.js +2 -8
- package/utils/cancelablePromise.js +4 -5
- package/utils/createPubSub.js +9 -12
- package/utils/formatCompactNumber.js +3 -4
- package/utils/formatCurrency.js +1 -4
- package/utils/formatDate.js +3 -5
- package/utils/handleKeyboardNavigation.js +1 -5
- package/utils/isAuthenticated.js +1 -3
- package/utils/logError.js +1 -4
- package/utils/logInfo.js +1 -6
- package/utils/logWarn.js +1 -6
- package/utils/mergeDeep.js +1 -3
- package/utils/multiSort.js +1 -4
- package/utils/scrollToElement.js +1 -4
- package/utils/scrollToTop.js +1 -4
- package/utils/timeAgo.js +1 -3
- package/utils/trackEvent.js +1 -5
- package/utils/withTimeout.js +3 -1
|
@@ -10,9 +10,7 @@ import j from "../../colors/grey.js";
|
|
|
10
10
|
import M from "../../colors/white.js";
|
|
11
11
|
import { black as q } from "../../colors/black.js";
|
|
12
12
|
import { ICON_SIZE_MAPPING as H, MEDIUM as V, FONT_SIZE_MAPPING as J, SIZE_REM_MAPPING as G, SELECTED_BG as I, NOT_SELECTED_BG as T, ACTIVE_NOT_SELECTED_BG as K } from "./constants.js";
|
|
13
|
-
const v = (e) => ({
|
|
14
|
-
$shades: o
|
|
15
|
-
}) => {
|
|
13
|
+
const v = (e) => ({ $shades: o }) => {
|
|
16
14
|
if (["#FFFFFF"].includes(o))
|
|
17
15
|
return q.m900;
|
|
18
16
|
if (e === I)
|
|
@@ -29,9 +27,7 @@ const v = (e) => ({
|
|
|
29
27
|
min-width: 100%;
|
|
30
28
|
width: 100%;
|
|
31
29
|
|
|
32
|
-
${({
|
|
33
|
-
$isDisabled: e
|
|
34
|
-
}) => e && R`
|
|
30
|
+
${({ $isDisabled: e }) => e && R`
|
|
35
31
|
pointer-events: none;
|
|
36
32
|
opacity: 0.4;
|
|
37
33
|
`};
|
|
@@ -41,24 +37,16 @@ const v = (e) => ({
|
|
|
41
37
|
font-family: inherit;
|
|
42
38
|
outline-offset: 2px;
|
|
43
39
|
|
|
44
|
-
height: ${({
|
|
45
|
-
$individualRemSize: e
|
|
46
|
-
}) => `${e}rem`};
|
|
47
|
-
width: ${({
|
|
48
|
-
$individualRemSize: e
|
|
49
|
-
}) => `${e}rem`};
|
|
40
|
+
height: ${({ $individualRemSize: e }) => `${e}rem`};
|
|
41
|
+
width: ${({ $individualRemSize: e }) => `${e}rem`};
|
|
50
42
|
border-radius: 50%;
|
|
51
43
|
display: flex;
|
|
52
44
|
align-items: center;
|
|
53
45
|
flex-direction: column;
|
|
54
46
|
justify-content: center;
|
|
55
47
|
text-align: center;
|
|
56
|
-
font-size: ${({
|
|
57
|
-
$
|
|
58
|
-
}) => e}rem;
|
|
59
|
-
${({
|
|
60
|
-
$isSelected: e
|
|
61
|
-
}) => e ? R`
|
|
48
|
+
font-size: ${({ $fontRemSize: e }) => e}rem;
|
|
49
|
+
${({ $isSelected: e }) => e ? R`
|
|
62
50
|
cursor: auto;
|
|
63
51
|
color: ${M};
|
|
64
52
|
background-color: ${v(I)};
|
|
@@ -99,42 +87,41 @@ const v = (e) => ({
|
|
|
99
87
|
outline-offset: 2px;
|
|
100
88
|
|
|
101
89
|
&:focus-visible {
|
|
102
|
-
outline: 1px solid ${({
|
|
103
|
-
$shades: e
|
|
104
|
-
}) => e == null ? void 0 : e.m600};
|
|
90
|
+
outline: 1px solid ${({ $shades: e }) => e == null ? void 0 : e.m600};
|
|
105
91
|
}
|
|
106
92
|
`, X = f(O)`
|
|
107
93
|
cursor: pointer;
|
|
108
94
|
`, Y = f(z)`
|
|
109
95
|
cursor: pointer;
|
|
110
96
|
`, D = f.div`
|
|
111
|
-
min-width: ${({
|
|
112
|
-
size: e
|
|
113
|
-
}) => e};
|
|
97
|
+
min-width: ${({ size: e }) => e};
|
|
114
98
|
display: flex;
|
|
115
99
|
align-items: center;
|
|
116
100
|
justify-content: space-between;
|
|
117
|
-
`, h = ({
|
|
118
|
-
size: e,
|
|
119
|
-
selected: o,
|
|
120
|
-
shades: n,
|
|
121
|
-
changePage: x
|
|
122
|
-
}) => (r) => {
|
|
101
|
+
`, h = ({ size: e, selected: o, shades: n, changePage: x }) => (r) => {
|
|
123
102
|
const p = G[e], y = J[e], a = n, l = o === r, c = () => {
|
|
124
103
|
x(r);
|
|
125
104
|
}, u = (d) => {
|
|
126
105
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), c());
|
|
127
106
|
};
|
|
128
|
-
return /* @__PURE__ */ i(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
107
|
+
return /* @__PURE__ */ i(
|
|
108
|
+
Q,
|
|
109
|
+
{
|
|
110
|
+
"data-testid": l ? "current-page" : `test-${r}`,
|
|
111
|
+
$isSelected: l,
|
|
112
|
+
onClick: c,
|
|
113
|
+
onKeyDown: u,
|
|
114
|
+
tabIndex: l ? 0 : -1,
|
|
115
|
+
"aria-label": `Page ${r}`,
|
|
116
|
+
"aria-current": l ? "page" : void 0,
|
|
117
|
+
$shades: a,
|
|
118
|
+
$individualRemSize: p,
|
|
119
|
+
$fontRemSize: y,
|
|
120
|
+
children: r
|
|
121
|
+
},
|
|
122
|
+
`page_${r}`
|
|
123
|
+
);
|
|
124
|
+
}, S = () => /* @__PURE__ */ i(W, { "aria-hidden": "true", children: "…" }), _ = ({ iconSize: e, shades: o, setPrevPage: n }) => /* @__PURE__ */ i(P, { onClick: n, "aria-label": "Previous page", $shades: o, children: /* @__PURE__ */ i(b, { rippleColor: o.m50, children: /* @__PURE__ */ i(X, { size: e, "aria-hidden": "true" }) }) }), k = ({ iconSize: e, shades: o, setNextPage: n }) => /* @__PURE__ */ i(P, { onClick: n, "aria-label": "Next page", $shades: o, children: /* @__PURE__ */ i(b, { rippleColor: o.m50, children: /* @__PURE__ */ i(Y, { size: e, "aria-hidden": "true" }) }) }), fe = ({
|
|
138
125
|
pageNumber: e,
|
|
139
126
|
setPageNumber: o,
|
|
140
127
|
totalPages: n,
|
|
@@ -158,61 +145,66 @@ const v = (e) => ({
|
|
|
158
145
|
}, E = (s) => {
|
|
159
146
|
["ArrowLeft", "ArrowUp"].includes(s.code) && (l.current = !0, u()), ["ArrowRight", "ArrowDown"].includes(s.code) && (l.current = !0, d());
|
|
160
147
|
}, t = (F = Z[x]) != null ? F : U, C = G[r], m = H[r];
|
|
161
|
-
return n <= 7 ? /* @__PURE__ */ $(
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
148
|
+
return n <= 7 ? /* @__PURE__ */ $(
|
|
149
|
+
A,
|
|
150
|
+
{
|
|
151
|
+
ref: a,
|
|
152
|
+
onKeyDown: E,
|
|
153
|
+
"aria-label": "Pagination",
|
|
154
|
+
$isDisabled: p,
|
|
155
|
+
...y,
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
|
|
158
|
+
/* @__PURE__ */ i(D, { size: `${n * C}rem`, children: Array.from({ length: n }, (s, w) => w + 1).map(
|
|
159
|
+
h({ size: r, selected: e, shades: t, changePage: c })
|
|
160
|
+
) }),
|
|
161
|
+
/* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
) : n < 10 || e < 4 || e > n - 3 && e <= n ? /* @__PURE__ */ $(
|
|
165
|
+
A,
|
|
166
|
+
{
|
|
167
|
+
ref: a,
|
|
168
|
+
onKeyDown: E,
|
|
169
|
+
"aria-label": "Pagination",
|
|
170
|
+
$isDisabled: p,
|
|
171
|
+
...y,
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
|
|
174
|
+
/* @__PURE__ */ $(D, { size: `${9 * C}rem`, children: [
|
|
175
|
+
[1, 2, 3, 4].map(h({ size: r, selected: e, shades: t, changePage: c })),
|
|
176
|
+
S(),
|
|
177
|
+
[n - 3, n - 2, n - 1, n].map(
|
|
178
|
+
h({ size: r, selected: e, shades: t, changePage: c })
|
|
179
|
+
)
|
|
180
|
+
] }),
|
|
181
|
+
/* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
) : /* @__PURE__ */ $(
|
|
185
|
+
A,
|
|
186
|
+
{
|
|
187
|
+
ref: a,
|
|
188
|
+
onKeyDown: E,
|
|
189
|
+
"aria-label": "Pagination",
|
|
190
|
+
$isDisabled: p,
|
|
191
|
+
children: [
|
|
192
|
+
/* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
|
|
193
|
+
/* @__PURE__ */ $(D, { size: `${9 * C}rem`, children: [
|
|
194
|
+
[1, 2].map(h({ size: r, selected: e, shades: t, changePage: c })),
|
|
195
|
+
e > 4 && S(),
|
|
196
|
+
[e - 1, e, e + 1].map(
|
|
197
|
+
h({ size: r, selected: e, shades: t, changePage: c })
|
|
198
|
+
),
|
|
199
|
+
e < n - 3 && S(),
|
|
200
|
+
[n - 1, n].map(
|
|
201
|
+
h({ size: r, selected: e, shades: t, changePage: c })
|
|
202
|
+
)
|
|
203
|
+
] }),
|
|
204
|
+
/* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
);
|
|
216
208
|
};
|
|
217
209
|
export {
|
|
218
210
|
fe as default
|
|
@@ -2,7 +2,7 @@ import { jsx as f } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as y } from "react";
|
|
3
3
|
const h = ".ripple-container{position:relative;overflow:hidden;display:inline-block;cursor:pointer}.ripple-effect{position:absolute;border-radius:50%;transform:scale(0);animation:ripple-animation 600ms linear;pointer-events:none}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}";
|
|
4
4
|
if (typeof document != "undefined" && !document.getElementById("meticulous-ripple-styles")) {
|
|
5
|
-
const i =
|
|
5
|
+
const i = document.createElement("style");
|
|
6
6
|
i.id = "meticulous-ripple-styles", i.textContent = h, document.head.appendChild(i);
|
|
7
7
|
}
|
|
8
8
|
const R = ({
|
|
@@ -25,7 +25,17 @@ const R = ({
|
|
|
25
25
|
const n = o.current.getBoundingClientRect();
|
|
26
26
|
s(n.width / 2, n.height / 2);
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */ f(
|
|
28
|
+
return /* @__PURE__ */ f(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
ref: o,
|
|
32
|
+
className: `ripple-container ${a}`,
|
|
33
|
+
onClick: u,
|
|
34
|
+
onKeyDown: m,
|
|
35
|
+
...d,
|
|
36
|
+
children: i
|
|
37
|
+
}
|
|
38
|
+
);
|
|
29
39
|
};
|
|
30
40
|
export {
|
|
31
41
|
R as default
|
|
@@ -4,10 +4,7 @@ import p from "styled-components";
|
|
|
4
4
|
const s = p.div`
|
|
5
5
|
font-size: 62.5%;
|
|
6
6
|
-webkit-text-size-adjust: 100%;
|
|
7
|
-
`, i = ({
|
|
8
|
-
children: o,
|
|
9
|
-
...t
|
|
10
|
-
}) => /* @__PURE__ */ e(s, { ...t, children: o });
|
|
7
|
+
`, i = ({ children: o, ...t }) => /* @__PURE__ */ e(s, { ...t, children: o });
|
|
11
8
|
i.propTypes = {
|
|
12
9
|
/** Content to render inside the root wrapper */
|
|
13
10
|
children: r.node
|
|
@@ -18,37 +18,25 @@ const ye = d.m500, ke = J`
|
|
|
18
18
|
from { transform: rotate(180deg); }
|
|
19
19
|
to { transform: rotate(0deg); }
|
|
20
20
|
`, Ie = s.div`
|
|
21
|
-
max-width: ${({
|
|
22
|
-
$width: t
|
|
23
|
-
}) => t};
|
|
21
|
+
max-width: ${({ $width: t }) => t};
|
|
24
22
|
position: relative;
|
|
25
23
|
outline: none;
|
|
26
24
|
|
|
27
|
-
${({
|
|
28
|
-
$isDisabled: t
|
|
29
|
-
}) => t && O`
|
|
25
|
+
${({ $isDisabled: t }) => t && O`
|
|
30
26
|
pointer-events: none;
|
|
31
27
|
opacity: 0.7;
|
|
32
28
|
`}
|
|
33
29
|
|
|
34
|
-
${({
|
|
35
|
-
$isLoading: t
|
|
36
|
-
}) => t && O`
|
|
30
|
+
${({ $isLoading: t }) => t && O`
|
|
37
31
|
pointer-events: none;
|
|
38
32
|
opacity: 0.7;
|
|
39
33
|
`}
|
|
40
34
|
`, Se = s.div`
|
|
41
35
|
height: 3.2rem;
|
|
42
|
-
width: ${({
|
|
43
|
-
$width: t
|
|
44
|
-
}) => t};
|
|
36
|
+
width: ${({ $width: t }) => t};
|
|
45
37
|
border-radius: 0.96rem;
|
|
46
38
|
outline: none;
|
|
47
|
-
border: ${({
|
|
48
|
-
$isOpen: t,
|
|
49
|
-
$isFocused: m,
|
|
50
|
-
$border: a
|
|
51
|
-
}) => t || m ? `2px solid ${a}` : `1px solid ${ye}`};
|
|
39
|
+
border: ${({ $isOpen: t, $isFocused: m, $border: a }) => t || m ? `2px solid ${a}` : `1px solid ${ye}`};
|
|
52
40
|
padding: 0.64rem 0.96rem 0.64rem;
|
|
53
41
|
display: flex;
|
|
54
42
|
align-items: center;
|
|
@@ -58,22 +46,14 @@ const ye = d.m500, ke = J`
|
|
|
58
46
|
overflow: hidden;
|
|
59
47
|
white-space: nowrap;
|
|
60
48
|
text-overflow: ellipsis;
|
|
61
|
-
max-width: calc(${({
|
|
62
|
-
$width: t
|
|
63
|
-
}) => t} - 3.2rem);
|
|
49
|
+
max-width: calc(${({ $width: t }) => t} - 3.2rem);
|
|
64
50
|
pointer-events: none;
|
|
65
51
|
`, Ee = s(we)`
|
|
66
|
-
animation: ${({
|
|
67
|
-
$isOpen: t
|
|
68
|
-
}) => t ? ke : Ce} 0.15s linear;
|
|
69
|
-
transform: rotate(${({
|
|
70
|
-
$isOpen: t
|
|
71
|
-
}) => t ? 180 : 0}deg);
|
|
52
|
+
animation: ${({ $isOpen: t }) => t ? ke : Ce} 0.15s linear;
|
|
53
|
+
transform: rotate(${({ $isOpen: t }) => t ? 180 : 0}deg);
|
|
72
54
|
`, ze = s.div`
|
|
73
55
|
border: 1px solid ${d.m700};
|
|
74
|
-
width: calc(${({
|
|
75
|
-
$width: t
|
|
76
|
-
}) => t} + 1.6rem);
|
|
56
|
+
width: calc(${({ $width: t }) => t} + 1.6rem);
|
|
77
57
|
display: flex;
|
|
78
58
|
flex-direction: column;
|
|
79
59
|
position: absolute;
|
|
@@ -85,18 +65,12 @@ const ye = d.m500, ke = J`
|
|
|
85
65
|
opacity: 0;
|
|
86
66
|
overflow: hidden;
|
|
87
67
|
|
|
88
|
-
${({
|
|
89
|
-
|
|
90
|
-
}) => t && O`
|
|
91
|
-
max-height: ${({
|
|
92
|
-
$height: m
|
|
93
|
-
}) => m};
|
|
68
|
+
${({ $isOpen: t }) => t && O`
|
|
69
|
+
max-height: ${({ $height: m }) => m};
|
|
94
70
|
opacity: 1;
|
|
95
71
|
`};
|
|
96
72
|
|
|
97
|
-
${({
|
|
98
|
-
$top: t
|
|
99
|
-
}) => t ? O`
|
|
73
|
+
${({ $top: t }) => t ? O`
|
|
100
74
|
bottom: 100%;
|
|
101
75
|
flex-direction: column-reverse;
|
|
102
76
|
border-top-right-radius: 0.96rem;
|
|
@@ -112,30 +86,19 @@ const ye = d.m500, ke = J`
|
|
|
112
86
|
overflow-y: auto;
|
|
113
87
|
flex: 1;
|
|
114
88
|
`, Fe = s.div`
|
|
115
|
-
width: ${({
|
|
116
|
-
$width: t
|
|
117
|
-
}) => t};
|
|
89
|
+
width: ${({ $width: t }) => t};
|
|
118
90
|
box-sizing: border-box;
|
|
119
|
-
background-color: ${({
|
|
120
|
-
$
|
|
121
|
-
$hoverColor: m
|
|
122
|
-
}) => t ? m : "transparent"};
|
|
123
|
-
cursor: ${({
|
|
124
|
-
$isDisabled: t
|
|
125
|
-
}) => t ? "not-allowed" : "pointer"};
|
|
91
|
+
background-color: ${({ $isHighlighted: t, $hoverColor: m }) => t ? m : "transparent"};
|
|
92
|
+
cursor: ${({ $isDisabled: t }) => t ? "not-allowed" : "pointer"};
|
|
126
93
|
padding: 0.96rem 1.6rem 1.28rem;
|
|
127
94
|
margin-top: 0.16rem;
|
|
128
95
|
display: flex;
|
|
129
96
|
align-items: center;
|
|
130
97
|
gap: 0.96rem;
|
|
131
|
-
pointer-events: ${({
|
|
132
|
-
$isDisabled: t
|
|
133
|
-
}) => t ? "none" : "auto"};
|
|
98
|
+
pointer-events: ${({ $isDisabled: t }) => t ? "none" : "auto"};
|
|
134
99
|
|
|
135
100
|
&:active {
|
|
136
|
-
background-color: ${({
|
|
137
|
-
$activeColor: t
|
|
138
|
-
}) => t};
|
|
101
|
+
background-color: ${({ $activeColor: t }) => t};
|
|
139
102
|
}
|
|
140
103
|
`, Re = s.div`
|
|
141
104
|
position: relative;
|
|
@@ -206,9 +169,7 @@ const ye = d.m500, ke = J`
|
|
|
206
169
|
}, h = ue(() => {
|
|
207
170
|
if (!$ || !z.trim()) return t;
|
|
208
171
|
const e = z.toLowerCase();
|
|
209
|
-
return t.filter(({
|
|
210
|
-
label: r
|
|
211
|
-
}) => r.toLowerCase().includes(e));
|
|
172
|
+
return t.filter(({ label: r }) => r.toLowerCase().includes(e));
|
|
212
173
|
}, [t, z, $]);
|
|
213
174
|
S(() => {
|
|
214
175
|
if (n) {
|
|
@@ -219,10 +180,7 @@ const ye = d.m500, ke = J`
|
|
|
219
180
|
}, [n]), S(() => {
|
|
220
181
|
if (n && l !== -1 && k.current) {
|
|
221
182
|
const e = k.current.children[l];
|
|
222
|
-
e && e.scrollIntoView({
|
|
223
|
-
block: "nearest",
|
|
224
|
-
behavior: "auto"
|
|
225
|
-
});
|
|
183
|
+
e && e.scrollIntoView({ block: "nearest", behavior: "auto" });
|
|
226
184
|
}
|
|
227
185
|
}, [l, n]), S(() => {
|
|
228
186
|
n && $ && B.current && B.current.focus();
|
|
@@ -234,7 +192,9 @@ const ye = d.m500, ke = J`
|
|
|
234
192
|
}, []), fe(() => {
|
|
235
193
|
if (n && k.current && f.current) {
|
|
236
194
|
const e = f.current.getBoundingClientRect(), r = window.innerHeight, i = Te(R), b = r - e.bottom;
|
|
237
|
-
te(
|
|
195
|
+
te(
|
|
196
|
+
b < i + 8 && e.top > b ? "top" : "bottom"
|
|
197
|
+
);
|
|
238
198
|
}
|
|
239
199
|
}, [n, R]);
|
|
240
200
|
const oe = (e) => {
|
|
@@ -257,13 +217,12 @@ const ye = d.m500, ke = J`
|
|
|
257
217
|
S(() => {
|
|
258
218
|
const e = V.current;
|
|
259
219
|
if (!e || !p || !w) return;
|
|
260
|
-
const r = new IntersectionObserver(
|
|
261
|
-
i
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
threshold: 0.1,
|
|
265
|
-
|
|
266
|
-
});
|
|
220
|
+
const r = new IntersectionObserver(
|
|
221
|
+
([i]) => {
|
|
222
|
+
i.isIntersecting && !u && K();
|
|
223
|
+
},
|
|
224
|
+
{ root: k.current, threshold: 0.1, rootMargin: "20px" }
|
|
225
|
+
);
|
|
267
226
|
return r.observe(e), () => r.disconnect();
|
|
268
227
|
}, [K, p, w, u]);
|
|
269
228
|
const ie = (e) => {
|
|
@@ -299,44 +258,127 @@ const ye = d.m500, ke = J`
|
|
|
299
258
|
m100: ae,
|
|
300
259
|
m500: Q,
|
|
301
260
|
m800: ce
|
|
302
|
-
} = (N = be[Z]) != null ? N : ge, le = (e, r) => () => !e && y(r), q = (e) => `${D}-opt-${e}`, de = a.length === 0 ? Y : `${a.length} selected`, me = ({
|
|
303
|
-
value: e,
|
|
304
|
-
label: r,
|
|
305
|
-
disabled: i
|
|
306
|
-
}, b) => {
|
|
261
|
+
} = (N = be[Z]) != null ? N : ge, le = (e, r) => () => !e && y(r), q = (e) => `${D}-opt-${e}`, de = a.length === 0 ? Y : `${a.length} selected`, me = ({ value: e, label: r, disabled: i }, b) => {
|
|
307
262
|
const W = a.includes(e);
|
|
308
|
-
return /* @__PURE__ */ c(
|
|
263
|
+
return /* @__PURE__ */ c(
|
|
264
|
+
Fe,
|
|
265
|
+
{
|
|
266
|
+
id: q(b),
|
|
267
|
+
role: "option",
|
|
268
|
+
"aria-selected": W,
|
|
269
|
+
"aria-disabled": i || void 0,
|
|
270
|
+
$width: `calc(${g} + 1.6rem)`,
|
|
271
|
+
$isHighlighted: b === l,
|
|
272
|
+
$isDisabled: i,
|
|
273
|
+
$hoverColor: se,
|
|
274
|
+
$activeColor: ae,
|
|
275
|
+
onClick: () => P(e),
|
|
276
|
+
onMouseEnter: le(i, b),
|
|
277
|
+
title: r,
|
|
278
|
+
children: /* @__PURE__ */ c("div", { onClick: (pe) => pe.stopPropagation(), children: /* @__PURE__ */ c(
|
|
279
|
+
xe,
|
|
280
|
+
{
|
|
281
|
+
value: W,
|
|
282
|
+
onChange: () => P(e),
|
|
283
|
+
label: r,
|
|
284
|
+
disabled: i,
|
|
285
|
+
innerShade: Q,
|
|
286
|
+
outerShade: ce,
|
|
287
|
+
tabIndex: -1
|
|
288
|
+
}
|
|
289
|
+
) })
|
|
290
|
+
},
|
|
291
|
+
e
|
|
292
|
+
);
|
|
309
293
|
};
|
|
310
|
-
return /* @__PURE__ */ C(
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
294
|
+
return /* @__PURE__ */ C(
|
|
295
|
+
Ie,
|
|
296
|
+
{
|
|
297
|
+
ref: f,
|
|
298
|
+
$width: g,
|
|
299
|
+
$isDisabled: x,
|
|
300
|
+
$isLoading: E,
|
|
301
|
+
onKeyDown: ie,
|
|
302
|
+
onBlur: (e) => {
|
|
303
|
+
var r;
|
|
304
|
+
(r = f.current) != null && r.contains(e.relatedTarget) || (j(!1), v(!1));
|
|
305
|
+
},
|
|
306
|
+
onFocus: () => j(!0),
|
|
307
|
+
...L,
|
|
308
|
+
children: [
|
|
309
|
+
/* @__PURE__ */ C(
|
|
310
|
+
Se,
|
|
311
|
+
{
|
|
312
|
+
id: U,
|
|
313
|
+
role: "button",
|
|
314
|
+
$width: g,
|
|
315
|
+
onClick: re,
|
|
316
|
+
$isOpen: n,
|
|
317
|
+
$border: Q,
|
|
318
|
+
$isFocused: M && !n,
|
|
319
|
+
tabIndex: x ? -1 : 0,
|
|
320
|
+
"aria-haspopup": "listbox",
|
|
321
|
+
"aria-expanded": n,
|
|
322
|
+
"aria-controls": D,
|
|
323
|
+
"aria-disabled": x || void 0,
|
|
324
|
+
"aria-activedescendant": l !== -1 ? q(l) : void 0,
|
|
325
|
+
children: [
|
|
326
|
+
/* @__PURE__ */ c(Oe, { $width: g, color: a.length > 0 ? d.m700 : d.m500, size: "1.92rem", children: de }),
|
|
327
|
+
/* @__PURE__ */ c(Ee, { color: d.m500, size: 22, $isOpen: n, "aria-hidden": !0 })
|
|
328
|
+
]
|
|
329
|
+
}
|
|
330
|
+
),
|
|
331
|
+
/* @__PURE__ */ C(ze, { $isOpen: n, $width: g, $height: R, $top: ee === "top", children: [
|
|
332
|
+
$ && /* @__PURE__ */ C(Re, { onClick: (e) => e.stopPropagation(), children: [
|
|
333
|
+
/* @__PURE__ */ c(Pe, { size: 20, color: d.m600, "aria-hidden": !0 }),
|
|
334
|
+
/* @__PURE__ */ c(
|
|
335
|
+
Be,
|
|
336
|
+
{
|
|
337
|
+
ref: B,
|
|
338
|
+
value: z,
|
|
339
|
+
onChange: (e) => H(e.target.value),
|
|
340
|
+
placeholder: A,
|
|
341
|
+
"aria-label": A,
|
|
342
|
+
"aria-controls": D,
|
|
343
|
+
"aria-autocomplete": "list",
|
|
344
|
+
"aria-expanded": n,
|
|
345
|
+
role: "combobox",
|
|
346
|
+
tabIndex: n ? 0 : -1
|
|
347
|
+
}
|
|
348
|
+
)
|
|
349
|
+
] }),
|
|
350
|
+
/* @__PURE__ */ C(
|
|
351
|
+
De,
|
|
352
|
+
{
|
|
353
|
+
ref: k,
|
|
354
|
+
role: "listbox",
|
|
355
|
+
id: D,
|
|
356
|
+
tabIndex: -1,
|
|
357
|
+
"aria-multiselectable": !0,
|
|
358
|
+
"aria-labelledby": U,
|
|
359
|
+
children: [
|
|
360
|
+
h.map(me),
|
|
361
|
+
p && /* @__PURE__ */ c(Ae, { ref: V, children: u && /* @__PURE__ */ c(G, { size: "small", color: T }) })
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
)
|
|
365
|
+
] }),
|
|
366
|
+
E && /* @__PURE__ */ c(We, { children: /* @__PURE__ */ c(G, { size: "small", color: T }) })
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
);
|
|
330
370
|
};
|
|
331
371
|
je.propTypes = {
|
|
332
372
|
/** Array of option objects: `{ value, label, disabled? }` */
|
|
333
|
-
options:
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
373
|
+
options: o.arrayOf(
|
|
374
|
+
o.shape({
|
|
375
|
+
value: o.any,
|
|
376
|
+
label: o.string,
|
|
377
|
+
disabled: o.bool
|
|
378
|
+
})
|
|
379
|
+
),
|
|
338
380
|
/** Array of currently selected values (controlled multi-select). Defaults to `[]` */
|
|
339
|
-
value:
|
|
381
|
+
value: o.arrayOf(o.any),
|
|
340
382
|
/** Called with the updated array of selected values on each change */
|
|
341
383
|
onChange: o.func,
|
|
342
384
|
/** CSS width of the selectbox trigger. Defaults to `'32rem'` */
|
|
@@ -9,15 +9,9 @@ const f = p`
|
|
|
9
9
|
position: relative;
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
background-color: ${o.m300};
|
|
12
|
-
border-radius: ${({
|
|
13
|
-
$
|
|
14
|
-
}) => r};
|
|
15
|
-
width: ${({
|
|
16
|
-
$width: r
|
|
17
|
-
}) => r};
|
|
18
|
-
height: ${({
|
|
19
|
-
$height: r
|
|
20
|
-
}) => r};
|
|
12
|
+
border-radius: ${({ $borderRadius: r }) => r};
|
|
13
|
+
width: ${({ $width: r }) => r};
|
|
14
|
+
height: ${({ $height: r }) => r};
|
|
21
15
|
|
|
22
16
|
&:after {
|
|
23
17
|
content: '';
|
|
@@ -40,14 +34,24 @@ const f = p`
|
|
|
40
34
|
borderRadius: n = "0.64rem",
|
|
41
35
|
label: s = "Loading...",
|
|
42
36
|
...m
|
|
43
|
-
}) => /* @__PURE__ */ a(
|
|
37
|
+
}) => /* @__PURE__ */ a(
|
|
38
|
+
u,
|
|
39
|
+
{
|
|
40
|
+
role: "status",
|
|
41
|
+
"aria-label": s,
|
|
42
|
+
$width: t(r),
|
|
43
|
+
$height: t(i),
|
|
44
|
+
$borderRadius: t(n),
|
|
45
|
+
...m
|
|
46
|
+
}
|
|
47
|
+
);
|
|
44
48
|
g.propTypes = {
|
|
45
49
|
/** Width of the shimmer block (rem string or number). Defaults to `'100%'` */
|
|
46
|
-
width:
|
|
50
|
+
width: e.oneOfType([e.string, e.number]),
|
|
47
51
|
/** Height of the shimmer block (rem string or number). Defaults to `'100%'` */
|
|
48
|
-
height:
|
|
52
|
+
height: e.oneOfType([e.string, e.number]),
|
|
49
53
|
/** Border-radius of the shimmer block. Defaults to `'0.64rem'` */
|
|
50
|
-
borderRadius:
|
|
54
|
+
borderRadius: e.oneOfType([e.string, e.number]),
|
|
51
55
|
/** Accessible label for screen readers. Defaults to `'Loading...'` */
|
|
52
56
|
label: e.string
|
|
53
57
|
};
|