@dotss/tictoccroc 0.1.2 → 0.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/dist/index.mjs +78 -76
- package/dist/shared/utils/ageToBirthDate/ageToBirthDate.d.ts +7 -0
- package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +10 -0
- package/dist/shared/utils/ageToBirthDate/ageToBirthDate.test.d.ts +1 -0
- package/dist/shared/utils/ageToBirthDate/index.d.ts +2 -0
- package/dist/shared/utils/ageToBirthDate/index.mjs +4 -0
- package/dist/shared/utils/index.d.ts +1 -0
- package/dist/shared/utils/index.mjs +20 -18
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -42,69 +42,70 @@ import { default as Pe } from "./shared/utils/isAndroid/isAndroid.mjs";
|
|
|
42
42
|
import { default as we } from "./shared/utils/isIos/isIos.mjs";
|
|
43
43
|
import { default as Ee } from "./shared/utils/isApp/isApp.mjs";
|
|
44
44
|
import { default as Ke } from "./shared/utils/isDesktop/isDesktop.mjs";
|
|
45
|
-
import { default as Qe } from "./shared/utils/
|
|
46
|
-
import { default as Ve } from "./shared/utils/
|
|
47
|
-
import { default as qe } from "./shared/utils/
|
|
48
|
-
import { default as He } from "./shared/utils/
|
|
49
|
-
import { default as Oe } from "./shared/utils/
|
|
50
|
-
import { default as Xe } from "./shared/utils/
|
|
51
|
-
import { default as Ze } from "./shared/utils/
|
|
52
|
-
import { default as $e } from "./
|
|
53
|
-
import { default as aa } from "./teacher/profile/components/
|
|
54
|
-
import { default as oa } from "./teacher/profile/components/StatBadgeCollection/
|
|
55
|
-
import { default as fa } from "./teacher/profile/components/
|
|
56
|
-
import { default as sa } from "./teacher/profile/components/ActivityGallery/
|
|
57
|
-
import { default as da } from "./teacher/profile/components/
|
|
58
|
-
import { default as pa } from "./teacher/profile/components/CertificateSection/
|
|
59
|
-
import { default as ia } from "./teacher/profile/components/
|
|
60
|
-
import { default as na } from "./teacher/profile/components/CareerSection/
|
|
61
|
-
import { default as Sa } from "./teacher/profile/components/
|
|
62
|
-
import { default as Ca } from "./teacher/profile/components/EducationSection/
|
|
63
|
-
import { default as ba } from "./teacher/profile/components/
|
|
64
|
-
import { default as Ma } from "./teacher/profile/components/
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import { default as va } from "./teacher/profile/components/AbilityCollection/
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import { default as Ea } from "./teacher/profile/components/
|
|
71
|
-
import { default as Ka } from "./teacher/profile/components/CareNoteSection/
|
|
72
|
-
import { default as Qa } from "./teacher/profile/components/
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import { default as Ha } from "./teacher/
|
|
76
|
-
import { default as Oa } from "./teacher/home/components/TextAccount/TextAccount.
|
|
77
|
-
import { default as Xa } from "./teacher/home/components/
|
|
78
|
-
import { default as Za } from "./teacher/home/components/Carousel1Account/Carousel1Account.
|
|
79
|
-
import { default as $a } from "./teacher/home/components/
|
|
80
|
-
import { default as at } from "./teacher/home/components/Carousel2Account/Carousel2Account.
|
|
81
|
-
import { default as ot } from "./teacher/home/components/
|
|
82
|
-
import { default as ft } from "./teacher/home/components/BannerAccount/BannerAccount.
|
|
45
|
+
import { default as Qe } from "./shared/utils/ageToBirthDate/ageToBirthDate.mjs";
|
|
46
|
+
import { default as Ve } from "./shared/utils/birthDateToAge/birthDateToAge.mjs";
|
|
47
|
+
import { default as qe } from "./shared/utils/objectToQueryString/objectToQueryString.mjs";
|
|
48
|
+
import { default as He } from "./shared/utils/getVimeoId/getVimeoId.mjs";
|
|
49
|
+
import { default as Oe } from "./shared/utils/parseQueryString/parseQueryString.mjs";
|
|
50
|
+
import { default as Xe } from "./shared/utils/share/share.mjs";
|
|
51
|
+
import { default as Ze } from "./shared/utils/dayFlagToDay/dayFlagToDay.mjs";
|
|
52
|
+
import { default as $e } from "./shared/utils/getCareTypeLabel/getCareTypeLabel.mjs";
|
|
53
|
+
import { default as aa } from "./teacher/profile/components/ProfileSummary/ProfileSummary.mjs";
|
|
54
|
+
import { default as oa } from "./teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs";
|
|
55
|
+
import { default as fa } from "./teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs";
|
|
56
|
+
import { default as sa } from "./teacher/profile/components/ActivityGallery/ActivityGallery.mjs";
|
|
57
|
+
import { default as da } from "./teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs";
|
|
58
|
+
import { default as pa } from "./teacher/profile/components/CertificateSection/CertificateSection.mjs";
|
|
59
|
+
import { default as ia } from "./teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs";
|
|
60
|
+
import { default as na } from "./teacher/profile/components/CareerSection/CareerSection.mjs";
|
|
61
|
+
import { default as Sa } from "./teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs";
|
|
62
|
+
import { default as Ca } from "./teacher/profile/components/EducationSection/EducationSection.mjs";
|
|
63
|
+
import { default as ba } from "./teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs";
|
|
64
|
+
import { default as Ma } from "./teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs";
|
|
65
|
+
import { default as Ia } from "./teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs";
|
|
66
|
+
import { getPreferredAgeKeywords as Da } from "./teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs";
|
|
67
|
+
import { default as va } from "./teacher/profile/components/AbilityCollection/AbilityCollection.mjs";
|
|
68
|
+
import { default as Pa } from "./teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs";
|
|
69
|
+
import { getAbilityCollection as wa } from "./teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs";
|
|
70
|
+
import { default as Ea } from "./teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs";
|
|
71
|
+
import { default as Ka } from "./teacher/profile/components/CareNoteSection/CareNoteSection.mjs";
|
|
72
|
+
import { default as Qa } from "./teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs";
|
|
73
|
+
import { default as Va } from "./teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs";
|
|
74
|
+
import { getChildLabel as qa } from "./teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs";
|
|
75
|
+
import { default as Ha } from "./teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs";
|
|
76
|
+
import { default as Oa } from "./teacher/home/components/TextAccount/TextAccount.mjs";
|
|
77
|
+
import { default as Xa } from "./teacher/home/components/TextAccount/TextAccount.fallback.mjs";
|
|
78
|
+
import { default as Za } from "./teacher/home/components/Carousel1Account/Carousel1Account.mjs";
|
|
79
|
+
import { default as $a } from "./teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs";
|
|
80
|
+
import { default as at } from "./teacher/home/components/Carousel2Account/Carousel2Account.mjs";
|
|
81
|
+
import { default as ot } from "./teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs";
|
|
82
|
+
import { default as ft } from "./teacher/home/components/BannerAccount/BannerAccount.mjs";
|
|
83
|
+
import { default as st } from "./teacher/home/components/BannerAccount/BannerAccount.fallback.mjs";
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
Pa as AbilityBadge,
|
|
86
|
+
va as AbilityCollection,
|
|
87
|
+
sa as ActivityGallery,
|
|
88
|
+
da as ActivityGalleryItem,
|
|
89
|
+
Ea as AvailableScheduleSection,
|
|
90
|
+
ft as BannerAccount,
|
|
91
|
+
st as BannerAccountFallback,
|
|
91
92
|
fe as BotMessage,
|
|
92
93
|
N as Calendar,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
Qa as CareNote,
|
|
95
|
+
Ka as CareNoteSection,
|
|
96
|
+
Sa as CareerItem,
|
|
97
|
+
na as CareerSection,
|
|
97
98
|
k as Carousel,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
Za as Carousel1Account,
|
|
100
|
+
$a as Carousel1AccountFallback,
|
|
101
|
+
at as Carousel2Account,
|
|
102
|
+
ot as Carousel2AccountFallback,
|
|
102
103
|
T as CarouselSlide,
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
ia as CertificateItem,
|
|
105
|
+
pa as CertificateSection,
|
|
105
106
|
ae as DirectTradeRiskInfoBottomSheet,
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
ba as EducationItem,
|
|
108
|
+
Ca as EducationSection,
|
|
108
109
|
L as Image,
|
|
109
110
|
G as ImageError,
|
|
110
111
|
pe as InputBar,
|
|
@@ -119,51 +120,52 @@ export {
|
|
|
119
120
|
A as MediaDialogToolbar,
|
|
120
121
|
J as Message,
|
|
121
122
|
W as MessageFallback,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
Ha as ParentReviewCard,
|
|
124
|
+
Va as ParentReviewSection,
|
|
125
|
+
Ma as PreferredActivityKeywordGroup,
|
|
126
|
+
Ia as PreferredAgeGroup,
|
|
127
|
+
aa as ProfileSummary,
|
|
127
128
|
F as Roller,
|
|
128
129
|
R as RollerBlock,
|
|
129
130
|
l as ScheduleBlock,
|
|
130
131
|
r as ScheduleEvent,
|
|
131
132
|
t as Scheduler,
|
|
132
133
|
ne as Seperator,
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
fa as StatBadge,
|
|
135
|
+
oa as StatBadgeCollection,
|
|
135
136
|
y as Swiper,
|
|
136
137
|
B as SwiperBlock,
|
|
137
138
|
$ as SystemMessage,
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
Oa as TextAccount,
|
|
140
|
+
Xa as TextAccountFallback,
|
|
140
141
|
h as TimePicker,
|
|
141
142
|
Se as UnreadMessagePill,
|
|
142
|
-
Qe as
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
Qe as ageToBirthDate,
|
|
144
|
+
Ve as birthDateToAge,
|
|
145
|
+
Ze as dayFlagToDay,
|
|
146
|
+
wa as getAbilityCollection,
|
|
145
147
|
u as getAvailableDateRange,
|
|
146
148
|
se as getBotMessageLabel,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
$e as getCareTypeLabel,
|
|
150
|
+
qa as getChildLabel,
|
|
149
151
|
ue as getClassInfo,
|
|
150
152
|
de as getCtaButtonText,
|
|
151
153
|
ve as getDateRange,
|
|
152
154
|
Me as getImageUrl,
|
|
153
155
|
Y as getMessageLabel,
|
|
154
|
-
|
|
156
|
+
Da as getPreferredAgeKeywords,
|
|
155
157
|
oe as getSystemMessageLabel,
|
|
156
158
|
De as getTimeRange,
|
|
157
|
-
|
|
159
|
+
He as getVimeoId,
|
|
158
160
|
Pe as isAndroid,
|
|
159
161
|
Ee as isApp,
|
|
160
162
|
Ke as isDesktop,
|
|
161
163
|
we as isIos,
|
|
162
164
|
Ie as isServer,
|
|
163
165
|
Z as markMessageGroupBoundaries,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
qe as objectToQueryString,
|
|
167
|
+
Oe as parseQueryString,
|
|
168
|
+
Xe as share,
|
|
167
169
|
be as useInView,
|
|
168
170
|
Ce as useIsomorphicLayoutEffect
|
|
169
171
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import a from "dayjs";
|
|
2
|
+
function i(t) {
|
|
3
|
+
if (t == null || Number.isNaN(t) || !Number.isInteger(t) || t < 0)
|
|
4
|
+
return { min: null, max: null };
|
|
5
|
+
const r = a().subtract(t + 1, "year").add(1, "day").format("YYYY-MM-DD"), n = a().subtract(t, "year").format("YYYY-MM-DD");
|
|
6
|
+
return r === "Invalid Date" || n === "Invalid Date" ? { min: null, max: null } : { min: r, max: n };
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
i as default
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ export { default as isAndroid } from './isAndroid';
|
|
|
6
6
|
export { default as isIos } from './isIos';
|
|
7
7
|
export { default as isApp } from './isApp';
|
|
8
8
|
export { default as isDesktop } from './isDesktop';
|
|
9
|
+
export { default as ageToBirthDate } from './ageToBirthDate';
|
|
9
10
|
export { default as birthDateToAge } from './birthDateToAge';
|
|
10
11
|
export { default as objectToQueryString } from './objectToQueryString';
|
|
11
12
|
export { default as getVimeoId } from './getVimeoId';
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as t } from "./getImageUrl/getImageUrl.mjs";
|
|
2
2
|
import { default as o } from "./isServer/isServer.mjs";
|
|
3
3
|
import { default as s } from "./getTimeRange/getTimeRange.mjs";
|
|
4
4
|
import { default as d } from "./getDateRange/getDateRange.mjs";
|
|
5
5
|
import { default as m } from "./isAndroid/isAndroid.mjs";
|
|
6
6
|
import { default as x } from "./isIos/isIos.mjs";
|
|
7
7
|
import { default as i } from "./isApp/isApp.mjs";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as D } from "./
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as Q } from "./
|
|
13
|
-
import { default as c } from "./
|
|
14
|
-
import { default as k } from "./
|
|
15
|
-
import { default as
|
|
8
|
+
import { default as n } from "./isDesktop/isDesktop.mjs";
|
|
9
|
+
import { default as D } from "./ageToBirthDate/ageToBirthDate.mjs";
|
|
10
|
+
import { default as h } from "./birthDateToAge/birthDateToAge.mjs";
|
|
11
|
+
import { default as I } from "./objectToQueryString/objectToQueryString.mjs";
|
|
12
|
+
import { default as Q } from "./getVimeoId/getVimeoId.mjs";
|
|
13
|
+
import { default as c } from "./parseQueryString/parseQueryString.mjs";
|
|
14
|
+
import { default as k } from "./share/share.mjs";
|
|
15
|
+
import { default as B } from "./dayFlagToDay/dayFlagToDay.mjs";
|
|
16
|
+
import { default as F } from "./getCareTypeLabel/getCareTypeLabel.mjs";
|
|
16
17
|
export {
|
|
17
|
-
D as
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
D as ageToBirthDate,
|
|
19
|
+
h as birthDateToAge,
|
|
20
|
+
B as dayFlagToDay,
|
|
21
|
+
F as getCareTypeLabel,
|
|
20
22
|
d as getDateRange,
|
|
21
|
-
|
|
23
|
+
t as getImageUrl,
|
|
22
24
|
s as getTimeRange,
|
|
23
|
-
|
|
25
|
+
Q as getVimeoId,
|
|
24
26
|
m as isAndroid,
|
|
25
27
|
i as isApp,
|
|
26
|
-
|
|
28
|
+
n as isDesktop,
|
|
27
29
|
x as isIos,
|
|
28
30
|
o as isServer,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
I as objectToQueryString,
|
|
32
|
+
c as parseQueryString,
|
|
33
|
+
k as share
|
|
32
34
|
};
|
package/package.json
CHANGED