@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 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/birthDateToAge/birthDateToAge.mjs";
46
- import { default as Ve } from "./shared/utils/objectToQueryString/objectToQueryString.mjs";
47
- import { default as qe } from "./shared/utils/getVimeoId/getVimeoId.mjs";
48
- import { default as He } from "./shared/utils/parseQueryString/parseQueryString.mjs";
49
- import { default as Oe } from "./shared/utils/share/share.mjs";
50
- import { default as Xe } from "./shared/utils/dayFlagToDay/dayFlagToDay.mjs";
51
- import { default as Ze } from "./shared/utils/getCareTypeLabel/getCareTypeLabel.mjs";
52
- import { default as $e } from "./teacher/profile/components/ProfileSummary/ProfileSummary.mjs";
53
- import { default as aa } from "./teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs";
54
- import { default as oa } from "./teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs";
55
- import { default as fa } from "./teacher/profile/components/ActivityGallery/ActivityGallery.mjs";
56
- import { default as sa } from "./teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs";
57
- import { default as da } from "./teacher/profile/components/CertificateSection/CertificateSection.mjs";
58
- import { default as pa } from "./teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs";
59
- import { default as ia } from "./teacher/profile/components/CareerSection/CareerSection.mjs";
60
- import { default as na } from "./teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs";
61
- import { default as Sa } from "./teacher/profile/components/EducationSection/EducationSection.mjs";
62
- import { default as Ca } from "./teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs";
63
- import { default as ba } from "./teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs";
64
- import { default as Ma } from "./teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs";
65
- import { getPreferredAgeKeywords as Ia } from "./teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs";
66
- import { default as Da } from "./teacher/profile/components/AbilityCollection/AbilityCollection.mjs";
67
- import { default as va } from "./teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs";
68
- import { getAbilityCollection as Pa } from "./teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs";
69
- import { default as wa } from "./teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs";
70
- import { default as Ea } from "./teacher/profile/components/CareNoteSection/CareNoteSection.mjs";
71
- import { default as Ka } from "./teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs";
72
- import { default as Qa } from "./teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs";
73
- import { getChildLabel as Va } from "./teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs";
74
- import { default as qa } from "./teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs";
75
- import { default as Ha } from "./teacher/home/components/TextAccount/TextAccount.mjs";
76
- import { default as Oa } from "./teacher/home/components/TextAccount/TextAccount.fallback.mjs";
77
- import { default as Xa } from "./teacher/home/components/Carousel1Account/Carousel1Account.mjs";
78
- import { default as Za } from "./teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs";
79
- import { default as $a } from "./teacher/home/components/Carousel2Account/Carousel2Account.mjs";
80
- import { default as at } from "./teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs";
81
- import { default as ot } from "./teacher/home/components/BannerAccount/BannerAccount.mjs";
82
- import { default as ft } from "./teacher/home/components/BannerAccount/BannerAccount.fallback.mjs";
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
- va as AbilityBadge,
85
- Da as AbilityCollection,
86
- fa as ActivityGallery,
87
- sa as ActivityGalleryItem,
88
- wa as AvailableScheduleSection,
89
- ot as BannerAccount,
90
- ft as BannerAccountFallback,
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
- Ka as CareNote,
94
- Ea as CareNoteSection,
95
- na as CareerItem,
96
- ia as CareerSection,
94
+ Qa as CareNote,
95
+ Ka as CareNoteSection,
96
+ Sa as CareerItem,
97
+ na as CareerSection,
97
98
  k as Carousel,
98
- Xa as Carousel1Account,
99
- Za as Carousel1AccountFallback,
100
- $a as Carousel2Account,
101
- at as Carousel2AccountFallback,
99
+ Za as Carousel1Account,
100
+ $a as Carousel1AccountFallback,
101
+ at as Carousel2Account,
102
+ ot as Carousel2AccountFallback,
102
103
  T as CarouselSlide,
103
- pa as CertificateItem,
104
- da as CertificateSection,
104
+ ia as CertificateItem,
105
+ pa as CertificateSection,
105
106
  ae as DirectTradeRiskInfoBottomSheet,
106
- Ca as EducationItem,
107
- Sa as EducationSection,
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
- qa as ParentReviewCard,
123
- Qa as ParentReviewSection,
124
- ba as PreferredActivityKeywordGroup,
125
- Ma as PreferredAgeGroup,
126
- $e as ProfileSummary,
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
- oa as StatBadge,
134
- aa as StatBadgeCollection,
134
+ fa as StatBadge,
135
+ oa as StatBadgeCollection,
135
136
  y as Swiper,
136
137
  B as SwiperBlock,
137
138
  $ as SystemMessage,
138
- Ha as TextAccount,
139
- Oa as TextAccountFallback,
139
+ Oa as TextAccount,
140
+ Xa as TextAccountFallback,
140
141
  h as TimePicker,
141
142
  Se as UnreadMessagePill,
142
- Qe as birthDateToAge,
143
- Xe as dayFlagToDay,
144
- Pa as getAbilityCollection,
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
- Ze as getCareTypeLabel,
148
- Va as getChildLabel,
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
- Ia as getPreferredAgeKeywords,
156
+ Da as getPreferredAgeKeywords,
155
157
  oe as getSystemMessageLabel,
156
158
  De as getTimeRange,
157
- qe as getVimeoId,
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
- Ve as objectToQueryString,
165
- He as parseQueryString,
166
- Oe as share,
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,7 @@
1
+ export default function ageToBirthDate(age: number): {
2
+ min: null;
3
+ max: null;
4
+ } | {
5
+ min: string;
6
+ max: string;
7
+ };
@@ -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,2 @@
1
+ import { default as ageToBirthDate } from './ageToBirthDate';
2
+ export default ageToBirthDate;
@@ -0,0 +1,4 @@
1
+ import a from "./ageToBirthDate.mjs";
2
+ export {
3
+ a as default
4
+ };
@@ -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 r } from "./getImageUrl/getImageUrl.mjs";
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 y } from "./isDesktop/isDesktop.mjs";
9
- import { default as D } from "./birthDateToAge/birthDateToAge.mjs";
10
- import { default as A } from "./objectToQueryString/objectToQueryString.mjs";
11
- import { default as S } from "./getVimeoId/getVimeoId.mjs";
12
- import { default as Q } from "./parseQueryString/parseQueryString.mjs";
13
- import { default as c } from "./share/share.mjs";
14
- import { default as k } from "./dayFlagToDay/dayFlagToDay.mjs";
15
- import { default as C } from "./getCareTypeLabel/getCareTypeLabel.mjs";
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 birthDateToAge,
18
- k as dayFlagToDay,
19
- C as getCareTypeLabel,
18
+ D as ageToBirthDate,
19
+ h as birthDateToAge,
20
+ B as dayFlagToDay,
21
+ F as getCareTypeLabel,
20
22
  d as getDateRange,
21
- r as getImageUrl,
23
+ t as getImageUrl,
22
24
  s as getTimeRange,
23
- S as getVimeoId,
25
+ Q as getVimeoId,
24
26
  m as isAndroid,
25
27
  i as isApp,
26
- y as isDesktop,
28
+ n as isDesktop,
27
29
  x as isIos,
28
30
  o as isServer,
29
- A as objectToQueryString,
30
- Q as parseQueryString,
31
- c as share
31
+ I as objectToQueryString,
32
+ c as parseQueryString,
33
+ k as share
32
34
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dotss/tictoccroc",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
5
5
  "description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
6
6
  "main": "./dist/index.mjs",
7
7
  "module": "./dist/index.mjs",