@worktango/ai-assistant 0.0.90-beta.5 → 0.0.91-ryanbeta01
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/{Absenteeism-CY3lYkXJ.mjs → Absenteeism-BiRnxopj.mjs} +1 -1
- package/dist/{ActivityFeed-l18-wSb7.mjs → ActivityFeed-DN1OCyPr.mjs} +1 -1
- package/dist/{AddUser-DvaiKVKM.mjs → AddUser-BdtELoU7.mjs} +1 -1
- package/dist/{Admin-UVC0vrNv.mjs → Admin-L3r1477n.mjs} +1 -1
- package/dist/{Admin-Bv1RQRGk.mjs → Admin-r1hG4GDr.mjs} +1 -1
- package/dist/{AiGeneral-Bw4EKUvF.mjs → AiGeneral-CXrxUol5.mjs} +1 -1
- package/dist/{AiScoring-Cnb4K2yK.mjs → AiScoring-bBrZmvWY.mjs} +1 -1
- package/dist/{AiText-d6b49x0V.mjs → AiText-2M7aKdmF.mjs} +1 -1
- package/dist/{Anniversary-B_W2Vlgy.mjs → Anniversary-Bjx49PRZ.mjs} +1 -1
- package/dist/{Appreciation-Dw0H2PqY.mjs → Appreciation-CW2bGvJC.mjs} +1 -1
- package/dist/{ArrowDown-C7vNz0-s.mjs → ArrowDown-DjwjORFt.mjs} +1 -1
- package/dist/{ArrowLeft-D-WgHuQM.mjs → ArrowLeft-CkMI8tnl.mjs} +1 -1
- package/dist/{ArrowRight-Bb-dvDo-.mjs → ArrowRight-DD9p2vwS.mjs} +1 -1
- package/dist/{ArrowUp-DRccahRo.mjs → ArrowUp-CyuZ9d9u.mjs} +1 -1
- package/dist/{Attachment-B1oBLoD3.mjs → Attachment-BNDmbhBE.mjs} +1 -1
- package/dist/{BeQuickDontHurry-Dm3yFWsA.mjs → BeQuickDontHurry-CbxWdnvo.mjs} +1 -1
- package/dist/{Birthday-CrwJ9RDW.mjs → Birthday-BZHVi30h.mjs} +1 -1
- package/dist/{BrandPromise-BT6rVe-u.mjs → BrandPromise-B8aHWQCb.mjs} +1 -1
- package/dist/{BrandVision-Ce5vHwoB.mjs → BrandVision-CK5rMXbp.mjs} +1 -1
- package/dist/{Calendar-BNqgwyQx.mjs → Calendar-B-GyyVza.mjs} +1 -1
- package/dist/{CaretDn-CxXrx1t2.mjs → CaretDn-CeSZSkzP.mjs} +1 -1
- package/dist/{CaretDown-CMUyWVPn.mjs → CaretDown-CRagB2Hx.mjs} +1 -1
- package/dist/{CaretLeft-L_s2GHFe.mjs → CaretLeft-DGmj7reb.mjs} +1 -1
- package/dist/{CaretRight-d4OcqByV.mjs → CaretRight-CE5Bcppw.mjs} +1 -1
- package/dist/{CaretUp-B88FEGC5.mjs → CaretUp-DgKAoKA8.mjs} +1 -1
- package/dist/{ChallengeAccepted-Bq3tGa1U.mjs → ChallengeAccepted-D7nF6hwX.mjs} +1 -1
- package/dist/{CheckIn-CCCBRmqs.mjs → CheckIn-C5MTN_9u.mjs} +1 -1
- package/dist/{CheckIns-DOrkdCpb.mjs → CheckIns-BCu5ZBR5.mjs} +1 -1
- package/dist/{CheckSeal-C4kuw0K0.mjs → CheckSeal-ZMEKQ_LE.mjs} +1 -1
- package/dist/{Checkmark-CROqEGmK.mjs → Checkmark-DPLGQor1.mjs} +1 -1
- package/dist/{Clock-B1qfh7OT.mjs → Clock-BDa4L4n9.mjs} +1 -1
- package/dist/{Close-DnrAA44w.mjs → Close-BJormNtx.mjs} +1 -1
- package/dist/{CloudDownload-xP_GB-W9.mjs → CloudDownload-CRb3a6tm.mjs} +1 -1
- package/dist/{Comment-BrKnANTG.mjs → Comment-DVL0FAwA.mjs} +1 -1
- package/dist/{Comments-B3DdI6MY.mjs → Comments-CJOssRaP.mjs} +1 -1
- package/dist/{Connections-ye_GK2Rf.mjs → Connections-CQEjobR9.mjs} +1 -1
- package/dist/{Copy-DeKjc9tM.mjs → Copy-CF57c_Tw.mjs} +1 -1
- package/dist/{CustomQuestion-B_oNRixv.mjs → CustomQuestion-Br_t39uv.mjs} +1 -1
- package/dist/{CustomerSuccess-C_Z13678.mjs → CustomerSuccess-H8OAv8oI.mjs} +1 -1
- package/dist/DatePicker-C4e_dBDA.mjs +299 -0
- package/dist/{Dot-C_hn_MdJ.mjs → Dot-B3OC6yz2.mjs} +1 -1
- package/dist/{Download-Dko9Er3V.mjs → Download-BNYmCuwd.mjs} +1 -1
- package/dist/{Drag-CSSUsdjz.mjs → Drag-C4XlmbYR.mjs} +1 -1
- package/dist/{Earn-BduI3nQN.mjs → Earn-BfnHCHCy.mjs} +1 -1
- package/dist/{Email-TI4_Q5Mf.mjs → Email-Bd_xTQoS.mjs} +1 -1
- package/dist/{EmojiDisplay-B2C-_Kdl.mjs → EmojiDisplay-CKu_S-Jx.mjs} +2 -2
- package/dist/{EmojiPicker-CSR_vOv3.mjs → EmojiPicker-BAsMGKPL.mjs} +2 -2
- package/dist/{EnpsSurvey-Cgo6btL4.mjs → EnpsSurvey-8GAfn-_t.mjs} +1 -1
- package/dist/{Expired-CY12bH1t.mjs → Expired-Bs_kCwUx.mjs} +1 -1
- package/dist/{Eye-BfNEkz2H.mjs → Eye-CzcZ-kWv.mjs} +1 -1
- package/dist/{Feedback-C0UVSu6b.mjs → Feedback-DhJiHuB1.mjs} +1 -1
- package/dist/{Feedback-B56mifTn.mjs → Feedback-DiaHmwaY.mjs} +1 -1
- package/dist/{Filter-B7Lcv2jx.mjs → Filter-BP8XFl_n.mjs} +1 -1
- package/dist/{Flag-DguJq_VS.mjs → Flag-CiRYkPP2.mjs} +1 -1
- package/dist/{Giphy-DK4deHxN.mjs → Giphy-BWZtFIs5.mjs} +1 -1
- package/dist/{GoalCount-Uw_82GzJ.mjs → GoalCount-fKlr5_B9.mjs} +1 -1
- package/dist/{GoalPercent-BcnxEc8h.mjs → GoalPercent-Hn2Uay8t.mjs} +1 -1
- package/dist/{GoalTask-BAXdVUnh.mjs → GoalTask-CqRUuyS9.mjs} +1 -1
- package/dist/{GoalTask-BXjGafiI.mjs → GoalTask-l-i6UcN1.mjs} +1 -1
- package/dist/{Goals-hjvKP9wz.mjs → Goals-D3Df9Zmz.mjs} +1 -1
- package/dist/{Goals-B3GwfVJT.mjs → Goals-t9pDeniq.mjs} +1 -1
- package/dist/{Growth-DCfDwF2q.mjs → Growth-B613cA2O.mjs} +1 -1
- package/dist/{Hamburger-BikW6gL1.mjs → Hamburger-B16H2mve.mjs} +1 -1
- package/dist/{Help-xVzBWrcZ.mjs → Help-DVzeiliL.mjs} +1 -1
- package/dist/{HighFive-K4shQpQA.mjs → HighFive-BRQ8kxjO.mjs} +1 -1
- package/dist/{HighFive-CZ0vZa9_.mjs → HighFive-wmYzh046.mjs} +1 -1
- package/dist/{Home-j30KMwKb.mjs → Home-BuqkdbNh.mjs} +1 -1
- package/dist/{Home-OHFU84rf.mjs → Home-CikNGd3V.mjs} +1 -1
- package/dist/{HorizontalLine-nGF5soZf.mjs → HorizontalLine-o29REMie.mjs} +1 -1
- package/dist/{Hourglass-CqqUtNgR.mjs → Hourglass-DaKwFCLh.mjs} +1 -1
- package/dist/{Image-BFPjqtFH.mjs → Image-C1FQ2aE3.mjs} +1 -1
- package/dist/{ImageFile-DYMfc7QY.mjs → ImageFile-Wgwz-PYW.mjs} +1 -1
- package/dist/{InGoodCompany-CM-RDKgM.mjs → InGoodCompany-tSrEa8MD.mjs} +1 -1
- package/dist/{Incentives-vbJzr9zN.mjs → Incentives-YSIK_a6N.mjs} +1 -1
- package/dist/{Info-e8R1LNqa.mjs → Info-CRQacBSB.mjs} +1 -1
- package/dist/{Insights-B7fuVBYE.mjs → Insights-N5lt1VSi.mjs} +1 -1
- package/dist/{Insights-BEDOr7Pa.mjs → Insights-jRXH0OFr.mjs} +1 -1
- package/dist/{Integrations-CfiKHdd3.mjs → Integrations-DYcH8XD6.mjs} +1 -1
- package/dist/{KazooLogo-B6yDyV6b.mjs → KazooLogo-BFpn4a42.mjs} +1 -1
- package/dist/{KnowYourAudience-DiKrpW77.mjs → KnowYourAudience-D6IKkfNe.mjs} +1 -1
- package/dist/{Launch-hcurKt-c.mjs → Launch-De-VSrSg.mjs} +1 -1
- package/dist/{Link-S3JpcvqS.mjs → Link-E2DNDc8E.mjs} +1 -1
- package/dist/{LinkArrow-DZYT_GA7.mjs → LinkArrow-uNQR1uYT.mjs} +1 -1
- package/dist/{Loading-3HUxn5GY.mjs → Loading-qNhQ8dTQ.mjs} +1 -1
- package/dist/{Lock-BXcpCDlx.mjs → Lock-mglJzoA_.mjs} +1 -1
- package/dist/{Management-C7cOnaAd.mjs → Management-CsRW79bX.mjs} +1 -1
- package/dist/{MeatballMenu-m9oAudK0.mjs → MeatballMenu-BPBqrnoN.mjs} +1 -1
- package/dist/{Messages-Dqfi7SuT.mjs → Messages-D1iFqAxs.mjs} +1 -1
- package/dist/{Microphone-DgzYSfxA.mjs → Microphone-B66yuiOK.mjs} +1 -1
- package/dist/{Mobile-Dw58BFX0.mjs → Mobile-BaSFz6vu.mjs} +1 -1
- package/dist/{Nomination-CR5Gdmtp.mjs → Nomination-CD9C9LTZ.mjs} +1 -1
- package/dist/{NominationsAndAwards-CpawoI38.mjs → NominationsAndAwards-D-Ivj0uI.mjs} +1 -1
- package/dist/{Notification-DVh5aCzT.mjs → Notification-GSrphDqS.mjs} +1 -1
- package/dist/{Okrs-hlj-puRD.mjs → Okrs-C-ei-vFS.mjs} +1 -1
- package/dist/{Pause-C4T5fkt3.mjs → Pause-DiUSlKBZ.mjs} +1 -1
- package/dist/{PeerToPeer-BKKJ6Hkc.mjs → PeerToPeer-DpY_x3gc.mjs} +1 -1
- package/dist/{Pencil-De8mV7WZ.mjs → Pencil-CexXAD4e.mjs} +1 -1
- package/dist/{People-CW1-c5_l.mjs → People-CwYp20X9.mjs} +1 -1
- package/dist/{PerformanceManagement-DIv65Kad.mjs → PerformanceManagement-DI_-fB77.mjs} +1 -1
- package/dist/{Pin-DSc-5qan.mjs → Pin-C6jxrQ61.mjs} +1 -1
- package/dist/{PinnedIconAward-MvVKtkRM.mjs → PinnedIconAward-BD1UwbV5.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-Bdz-56uK.mjs → PinnedIconBrightIdea-CnO2Ql75.mjs} +1 -1
- package/dist/{PinnedIconBullseye-Bvie2bxg.mjs → PinnedIconBullseye-C44srGWx.mjs} +1 -1
- package/dist/{PinnedIconChampagne-D6DTvGe0.mjs → PinnedIconChampagne-C220tVFB.mjs} +1 -1
- package/dist/{PinnedIconCheer-DwWMfkPA.mjs → PinnedIconCheer-COIIykF5.mjs} +1 -1
- package/dist/{PinnedIconCrown-CplQah59.mjs → PinnedIconCrown-CLB-kvGb.mjs} +1 -1
- package/dist/{PinnedIconDiamond-6_j8Np1H.mjs → PinnedIconDiamond-BCW6sJG7.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-C_M08Qi7.mjs → PinnedIconHoleInOne-DEALF0RG.mjs} +1 -1
- package/dist/{PinnedIconMedal-AimPjrSU.mjs → PinnedIconMedal-Dut9oNFG.mjs} +1 -1
- package/dist/{PinnedIconMetrics-DW5pRAF8.mjs → PinnedIconMetrics-C0f1v-aV.mjs} +1 -1
- package/dist/{PinnedIconPin-B1jVRpD5.mjs → PinnedIconPin-ByRhW8ff.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-Bc0TMyu8.mjs → PinnedIconRockAndRoll-CGis0iWS.mjs} +1 -1
- package/dist/{PinnedIconRocket-drsZaRfm.mjs → PinnedIconRocket-CUh17qZD.mjs} +1 -1
- package/dist/{PinnedIconStrength-oFl6ac89.mjs → PinnedIconStrength-gx3atRzv.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-BTdkXB27.mjs → PinnedIconTeddyBear-CC26iR3m.mjs} +1 -1
- package/dist/{PlatformLogo-1w_uI229.mjs → PlatformLogo-Bkr_3dSC.mjs} +1 -1
- package/dist/{Plus-DGfoh-85.mjs → Plus-D9QP8mx5.mjs} +1 -1
- package/dist/{Popper-0E0x9YM2.mjs → Popper-CyGwMDCt.mjs} +1 -1
- package/dist/{PrivateEye-T8aDVV09.mjs → PrivateEye-BnUiz1oK.mjs} +1 -1
- package/dist/{PrivatePushPin-PjLp7EhY.mjs → PrivatePushPin-BCWCdo_l.mjs} +1 -1
- package/dist/{Processing-MtsVu03W.mjs → Processing-CxbbbGmy.mjs} +1 -1
- package/dist/{Productivity-DuqwQoJI.mjs → Productivity-yJ-ELSVB.mjs} +1 -1
- package/dist/{ProgressCircle-RQXLqd31.mjs → ProgressCircle-CwtiKbSN.mjs} +1 -1
- package/dist/{PulseSurvey-CVJ9lrkA.mjs → PulseSurvey-V3B7xC4j.mjs} +1 -1
- package/dist/{PushPin-WJjfcF4G.mjs → PushPin-DfE4HN9z.mjs} +1 -1
- package/dist/{Recognition-BsljTW5N.mjs → Recognition-BRjpc0Y1.mjs} +1 -1
- package/dist/{Recognition-CPDfMu30.mjs → Recognition-Cjpmyqed.mjs} +1 -1
- package/dist/{Retention-jrXFLl2w.mjs → Retention-Dvb0RLTM.mjs} +1 -1
- package/dist/{Rewards-BJ_anZCY.mjs → Rewards-8ys3fz0N.mjs} +1 -1
- package/dist/{Rewards-C9cdfaOF.mjs → Rewards-BAPkrxqR.mjs} +1 -1
- package/dist/{RewardsCatalog-CpjRKdhf.mjs → RewardsCatalog-CXX1B73C.mjs} +1 -1
- package/dist/{Roadmap-8Mo8Dp2N.mjs → Roadmap-CVnNkJT9.mjs} +1 -1
- package/dist/{Search-DIKBedh6.mjs → Search-B53nHjIh.mjs} +1 -1
- package/dist/{Security-C5oNLZPx.mjs → Security-RDtWFck2.mjs} +1 -1
- package/dist/{SendRecognition-oeF8nWY6.mjs → SendRecognition-CELsN9UB.mjs} +1 -1
- package/dist/{ShareLink-Ce7aWrpO.mjs → ShareLink-QW3D64NP.mjs} +1 -1
- package/dist/{SidebarCollapse-D6zh_ITl.mjs → SidebarCollapse-CCIP5JZg.mjs} +1 -1
- package/dist/{Skill-BYtBSxU3.mjs → Skill-BgL94Mfy.mjs} +1 -1
- package/dist/{Skills-wjBV-xB-.mjs → Skills-DvuiaLhH.mjs} +1 -1
- package/dist/{Smiley-BpR4bOXR.mjs → Smiley-nOqsPtSW.mjs} +1 -1
- package/dist/{Stop-_GdyAZqt.mjs → Stop-DF8ouUm4.mjs} +1 -1
- package/dist/{Survey-DEN5Fepz.mjs → Survey-DsUis4yX.mjs} +1 -1
- package/dist/{Surveys-DhUaupeW.mjs → Surveys-1EJxYGuR.mjs} +1 -1
- package/dist/{SyncUps-CFuEQ2fO.mjs → SyncUps-BHmQPJH4.mjs} +1 -1
- package/dist/{Syncs-fqeTzeFe.mjs → Syncs-C-jyW0El.mjs} +1 -1
- package/dist/{TalentReview-DJPTdczP.mjs → TalentReview-52lfYaLv.mjs} +1 -1
- package/dist/{TalentReview-DbM88e4X.mjs → TalentReview-C7PLu_Rg.mjs} +1 -1
- package/dist/{TalentReviewInsights-BJyFNJWj.mjs → TalentReviewInsights-CQ_IFEYl.mjs} +1 -1
- package/dist/{TaskCompleted-CG5ruu9h.mjs → TaskCompleted-ChoY_9Ep.mjs} +1 -1
- package/dist/{Team-Bh4CdL_N.mjs → Team-CX21FFc4.mjs} +1 -1
- package/dist/{Teams-DV9zIlCq.mjs → Teams-DPjBV0z3.mjs} +1 -1
- package/dist/{TextBold-BRjlRxNz.mjs → TextBold-DUuEhpYb.mjs} +1 -1
- package/dist/{TextBulletList-CO6-QF1I.mjs → TextBulletList-BanIfssU.mjs} +1 -1
- package/dist/{TextInput-Dl_YSJl1.mjs → TextInput-B3qR7NFz.mjs} +1 -1
- package/dist/{TextItalic-C1jO-e-5.mjs → TextItalic-0UApZQyS.mjs} +1 -1
- package/dist/{TextNumberList-jlCYpmYZ.mjs → TextNumberList-_EtgVtJo.mjs} +1 -1
- package/dist/{TextUnderline-BF-_DQPv.mjs → TextUnderline-Dl7apuDU.mjs} +1 -1
- package/dist/{Toggle-BKTlGhmv.mjs → Toggle-DThQD823.mjs} +1 -1
- package/dist/{Translate-CHRvJ9dk.mjs → Translate-J0X5IUf4.mjs} +1 -1
- package/dist/{Trash-B0eFAVxB.mjs → Trash-DyFVqnoV.mjs} +1 -1
- package/dist/{TrendDown-DQIhbEDq.mjs → TrendDown-DcSQ0rAk.mjs} +1 -1
- package/dist/{TrendUp-WD_j5kEr.mjs → TrendUp-BrM1pR7g.mjs} +1 -1
- package/dist/{Undo-mCbCvSxk.mjs → Undo-n931GKTa.mjs} +1 -1
- package/dist/{Unplugged-D5fDecEj.mjs → Unplugged-CQrHPMfI.mjs} +1 -1
- package/dist/{UpDownCaret-CO_0CFHn.mjs → UpDownCaret-BmuU3Rj6.mjs} +1 -1
- package/dist/{VerticalLine-B3xGYWFO.mjs → VerticalLine-9iNzS62s.mjs} +1 -1
- package/dist/{Warning-BT260Kpx.mjs → Warning-Db6D1u8T.mjs} +1 -1
- package/dist/{WarningNoOutline-uxX8CmRJ.mjs → WarningNoOutline-B_fZF6Qp.mjs} +1 -1
- package/dist/{YesAnd-C_qiKY9L.mjs → YesAnd-6L3X63qu.mjs} +1 -1
- package/dist/ai-assistant.css +1 -1
- package/dist/{emoji-BDvd4Gro.mjs → emoji-D8TIFf-Z.mjs} +1 -1
- package/dist/express.js +1379 -423
- package/dist/{react-apexcharts.min-BXaiZZ5w.mjs → react-apexcharts.min-CCtc1pz3.mjs} +1 -1
- package/dist/react.es.js +5 -5
- package/dist/react.umd.js +356 -369
- package/dist/{reactComponent-HZXwxNFz.mjs → reactComponent-BNWsbVb8.mjs} +15355 -13359
- package/package.json +11 -3
- package/react.d.ts +5 -1
- package/sharedTypes.ts +91 -30
- package/dist/DatePicker-l0sNRNKZ.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as C } from "./reactComponent-
|
|
1
|
+
import { j as C } from "./reactComponent-BNWsbVb8.mjs";
|
|
2
2
|
function l({ illustrationColor: t }) {
|
|
3
3
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ C.jsx("title", { children: "Admin illustration" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./reactComponent-
|
|
1
|
+
import { j as r } from "./reactComponent-BNWsbVb8.mjs";
|
|
2
2
|
const t = ({ variant: o }) => n[o] || n.regular, n = {
|
|
3
3
|
thin: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ r.jsx("path", { d: "M12 2L12 21", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./reactComponent-
|
|
1
|
+
import { j as r } from "./reactComponent-BNWsbVb8.mjs";
|
|
2
2
|
const t = ({ variant: o }) => n[o] || n.regular, n = {
|
|
3
3
|
thin: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ r.jsx("path", { d: "M12 22L12 3", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./reactComponent-
|
|
1
|
+
import { j as r } from "./reactComponent-BNWsbVb8.mjs";
|
|
2
2
|
const e = ({ color: t }) => /* @__PURE__ */ r.jsx("g", { children: /* @__PURE__ */ r.jsx("path", { d: "M9 13.5 0 4.5 18 4.5z", fill: t, stroke: "none" }) });
|
|
3
3
|
export {
|
|
4
4
|
e as caret_down
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./reactComponent-
|
|
1
|
+
import { j as e } from "./reactComponent-BNWsbVb8.mjs";
|
|
2
2
|
const r = ({ variant: t }) => n[t], n = {
|
|
3
3
|
regular: /* @__PURE__ */ e.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M21 3L8.08696 21L3 15.913" }),
|
|
4
4
|
thin: /* @__PURE__ */ e.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M21 3L8.08696 21L3 15.913" }),
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { j as s, f as q, c as it, a as N, b as P, e as j, C as ut, I as z } from "./reactComponent-BNWsbVb8.mjs";
|
|
2
|
+
import k, { useMemo as I, useRef as K, useImperativeHandle as st, useEffect as Z, useCallback as E } from "react";
|
|
3
|
+
const lt = ["onCreate", "onDestroy"], w = [
|
|
4
|
+
"onChange",
|
|
5
|
+
"onOpen",
|
|
6
|
+
"onClose",
|
|
7
|
+
"onMonthChange",
|
|
8
|
+
"onYearChange",
|
|
9
|
+
"onReady",
|
|
10
|
+
"onValueUpdate",
|
|
11
|
+
"onDayCreate"
|
|
12
|
+
], ct = (t, u) => (w.forEach((r) => {
|
|
13
|
+
const p = u[r], e = t[r];
|
|
14
|
+
if (p) {
|
|
15
|
+
e && !Array.isArray(e) ? t[r] = [t[r]] : t[r] || (t[r] = []);
|
|
16
|
+
const y = Array.isArray(p) ? p : [p];
|
|
17
|
+
t[r].length === 0 ? t[r] = y : t[r].push(...y);
|
|
18
|
+
}
|
|
19
|
+
}), w.forEach((r) => {
|
|
20
|
+
delete u[r];
|
|
21
|
+
}), lt.forEach((r) => {
|
|
22
|
+
delete u[r];
|
|
23
|
+
}), t), pt = (t) => {
|
|
24
|
+
const u = I(() => ({ ...t }), [t]), { defaultValue: r, options: p = {}, value: e, children: y, render: x, onCreate: C, onDestroy: f } = u, m = I(() => ct(p, u), [p, u]), W = K(null), a = K(void 0);
|
|
25
|
+
st(
|
|
26
|
+
t.ref,
|
|
27
|
+
() => ({
|
|
28
|
+
get flatpickr() {
|
|
29
|
+
return a.current;
|
|
30
|
+
}
|
|
31
|
+
}),
|
|
32
|
+
[]
|
|
33
|
+
), Z(() => {
|
|
34
|
+
const l = () => {
|
|
35
|
+
var c;
|
|
36
|
+
m.onClose = m.onClose || (() => {
|
|
37
|
+
var v;
|
|
38
|
+
(v = W.current) != null && v.blur && W.current.blur();
|
|
39
|
+
}), a.current = (((c = q) == null ? void 0 : c.default) || q)(W.current, m), C == null || C(a.current);
|
|
40
|
+
}, g = () => {
|
|
41
|
+
f == null || f(a.current), a.current && a.current.destroy(), a.current = void 0;
|
|
42
|
+
};
|
|
43
|
+
return l(), () => {
|
|
44
|
+
g();
|
|
45
|
+
};
|
|
46
|
+
}, [m, C, f]), Z(() => {
|
|
47
|
+
var l;
|
|
48
|
+
if (a.current) {
|
|
49
|
+
const g = Object.getOwnPropertyNames(m);
|
|
50
|
+
for (let c = g.length - 1; c >= 0; c--) {
|
|
51
|
+
const v = g[c];
|
|
52
|
+
let i = m[v];
|
|
53
|
+
(i == null ? void 0 : i.toString()) !== ((l = a.current.config[v]) == null ? void 0 : l.toString()) && (w.includes(v) && !Array.isArray(i) && (i = [i]), a.current.set(v, i));
|
|
54
|
+
}
|
|
55
|
+
e !== void 0 && e !== a.current.input.value && a.current.setDate(e, !1);
|
|
56
|
+
}
|
|
57
|
+
}, [m, e]);
|
|
58
|
+
const h = E((l) => {
|
|
59
|
+
W.current = l;
|
|
60
|
+
}, []);
|
|
61
|
+
if (x)
|
|
62
|
+
return x({ ...u, defaultValue: r, value: e }, h);
|
|
63
|
+
const D = E(
|
|
64
|
+
(l) => {
|
|
65
|
+
var g, c;
|
|
66
|
+
t && t.onChange && (Array.isArray(t == null ? void 0 : t.onChange) ? (g = t == null ? void 0 : t.onChange) == null || g.forEach(() => [new Date(l.target.value)], (e == null ? void 0 : e.toString()) || "") : typeof t.onChange == "function" && ((c = t == null ? void 0 : t.onChange) == null || c.call(t, [new Date(l.target.value)], (e == null ? void 0 : e.toString()) || "", a.current)));
|
|
67
|
+
},
|
|
68
|
+
[t, e]
|
|
69
|
+
);
|
|
70
|
+
return p.wrap ? /* @__PURE__ */ s.jsx("div", { className: "flatpickr", ref: h, children: y }) : /* @__PURE__ */ s.jsx(
|
|
71
|
+
"input",
|
|
72
|
+
{
|
|
73
|
+
onChange: D,
|
|
74
|
+
...u,
|
|
75
|
+
value: e == null ? void 0 : e.toString(),
|
|
76
|
+
defaultValue: r,
|
|
77
|
+
ref: h
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}, dt = "#949494", ft = "DatePicker-module_inputMaxWidthSmall_cRYaK", mt = "DatePicker-module_inputMaxWidthDefault_GbIO-", ht = "DatePicker-module_inputMaxWidthLarge_fZKFi", gt = "DatePicker-module_input_3VHte", vt = "DatePicker-module_inputWrapper_aqoyL", yt = "DatePicker-module_inputWrapperCompact_-7CrL", xt = "DatePicker-module_iconButton_19a6e", Ct = "DatePicker-module_clearButton_O1D31", o = {
|
|
81
|
+
systemGray3: dt,
|
|
82
|
+
inputMaxWidthSmall: ft,
|
|
83
|
+
inputMaxWidthDefault: mt,
|
|
84
|
+
inputMaxWidthLarge: ht,
|
|
85
|
+
input: gt,
|
|
86
|
+
inputWrapper: vt,
|
|
87
|
+
inputWrapperCompact: yt,
|
|
88
|
+
"inputWrapper--error": "DatePicker-module_inputWrapper--error_bhHqD",
|
|
89
|
+
"inputWrapper--disabled": "DatePicker-module_inputWrapper--disabled_WFJUG",
|
|
90
|
+
iconButton: xt,
|
|
91
|
+
clearButton: Ct
|
|
92
|
+
};
|
|
93
|
+
function Mt({
|
|
94
|
+
attachTo: t,
|
|
95
|
+
position: u,
|
|
96
|
+
compact: r = !1,
|
|
97
|
+
inputMaxWidth: p = "default",
|
|
98
|
+
defaultDate: e,
|
|
99
|
+
disabled: y = !1,
|
|
100
|
+
error: x = null,
|
|
101
|
+
fullWidth: C = !1,
|
|
102
|
+
id: f,
|
|
103
|
+
helperText: m = "",
|
|
104
|
+
optionalLabelText: W = "",
|
|
105
|
+
label: a,
|
|
106
|
+
mode: h = "single",
|
|
107
|
+
onChange: D,
|
|
108
|
+
onOpen: l,
|
|
109
|
+
onClose: g,
|
|
110
|
+
showClearButton: c = !1,
|
|
111
|
+
showIcon: v = !0,
|
|
112
|
+
firstSelectableDate: i,
|
|
113
|
+
lastSelectableDate: _,
|
|
114
|
+
dateFormat: G = "F j, Y",
|
|
115
|
+
allowInput: H = !0,
|
|
116
|
+
tooltip: J,
|
|
117
|
+
"data-testid": $,
|
|
118
|
+
flatpickrRef: S,
|
|
119
|
+
placeholder: Q,
|
|
120
|
+
calendarContainerClass: b,
|
|
121
|
+
plugins: T = [],
|
|
122
|
+
value: X
|
|
123
|
+
}) {
|
|
124
|
+
var R, U;
|
|
125
|
+
const O = k.useId();
|
|
126
|
+
f = it(f, `date-picker-${O}`);
|
|
127
|
+
const d = k.useRef(null), tt = !!((U = (R = d == null ? void 0 : d.current) == null ? void 0 : R.input) != null && U.value), A = N(
|
|
128
|
+
N(P.input, o.input, {
|
|
129
|
+
[P["input--compact"]]: r,
|
|
130
|
+
[P["input--disabled"]]: y,
|
|
131
|
+
[P["input--error"]]: !!x
|
|
132
|
+
})
|
|
133
|
+
);
|
|
134
|
+
k.useEffect(() => {
|
|
135
|
+
if (d.current) {
|
|
136
|
+
const n = d.current.input.nextSibling;
|
|
137
|
+
n && "id" in n && "autocomplete" in n && Object.assign(n, { id: f, autocomplete: "off" }), S && (S.current = d.current);
|
|
138
|
+
}
|
|
139
|
+
}, [f, S]), k.useEffect(() => {
|
|
140
|
+
if (d.current) {
|
|
141
|
+
const n = d.current.input.nextSibling;
|
|
142
|
+
n && "className" in n && Object.assign(n, { className: A });
|
|
143
|
+
}
|
|
144
|
+
}, [A]);
|
|
145
|
+
const F = k.useMemo(() => {
|
|
146
|
+
if (!i && !_)
|
|
147
|
+
return;
|
|
148
|
+
const n = j(i), Y = j(_), M = j(
|
|
149
|
+
Array.isArray(e) ? e[0] : e
|
|
150
|
+
);
|
|
151
|
+
return (ot) => {
|
|
152
|
+
const L = j(ot);
|
|
153
|
+
if (L.isSame(M, "day"))
|
|
154
|
+
return !1;
|
|
155
|
+
let V = !0;
|
|
156
|
+
return i && L.isBefore(n, "day") && (V = !1), _ && L.isAfter(Y, "day") && (V = !1), !V;
|
|
157
|
+
};
|
|
158
|
+
}, [i, _]), nt = E(
|
|
159
|
+
(n) => {
|
|
160
|
+
n && "clear" in n && "close" in n && "input" in n && "calendarContainer" in n && (d.current = n, b && (n.calendarContainer.className = N(
|
|
161
|
+
n.calendarContainer.className,
|
|
162
|
+
b
|
|
163
|
+
)));
|
|
164
|
+
},
|
|
165
|
+
[b]
|
|
166
|
+
), et = E(
|
|
167
|
+
(n, Y, M) => {
|
|
168
|
+
D(n), h === "range" && n.length === 2 && (M == null || M.close());
|
|
169
|
+
},
|
|
170
|
+
[D, h]
|
|
171
|
+
), rt = I(() => F ? [F] : [], [i, _]), at = I(
|
|
172
|
+
() => ({
|
|
173
|
+
allowInput: H,
|
|
174
|
+
altFormat: G,
|
|
175
|
+
altInput: !0,
|
|
176
|
+
altInputClass: A,
|
|
177
|
+
appendTo: t || void 0,
|
|
178
|
+
/**
|
|
179
|
+
* Legacy code supports HTMLDivElement here even thought Flatpickr claims to only support HtmlElement.
|
|
180
|
+
* HTMLDivElement is a subclass of HTMLElement with one additional property (align), so we can safely use it here.
|
|
181
|
+
*/
|
|
182
|
+
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/consistent-type-assertions */
|
|
183
|
+
position: u || "auto",
|
|
184
|
+
dateFormat: "Z",
|
|
185
|
+
mode: h,
|
|
186
|
+
wrap: !0,
|
|
187
|
+
defaultDate: e,
|
|
188
|
+
disable: rt,
|
|
189
|
+
plugins: T,
|
|
190
|
+
closeOnSelect: h !== "range"
|
|
191
|
+
}),
|
|
192
|
+
[
|
|
193
|
+
H,
|
|
194
|
+
G,
|
|
195
|
+
A,
|
|
196
|
+
t,
|
|
197
|
+
u,
|
|
198
|
+
h,
|
|
199
|
+
i,
|
|
200
|
+
_
|
|
201
|
+
]
|
|
202
|
+
);
|
|
203
|
+
let B;
|
|
204
|
+
switch (p) {
|
|
205
|
+
case "small":
|
|
206
|
+
B = o.inputMaxWidthSmall;
|
|
207
|
+
break;
|
|
208
|
+
case "large":
|
|
209
|
+
B = o.inputMaxWidthLarge;
|
|
210
|
+
break;
|
|
211
|
+
default:
|
|
212
|
+
B = o.inputMaxWidthDefault;
|
|
213
|
+
}
|
|
214
|
+
return /* @__PURE__ */ s.jsx(
|
|
215
|
+
ut,
|
|
216
|
+
{
|
|
217
|
+
tooltip: J,
|
|
218
|
+
wrapperClassNames: N({
|
|
219
|
+
[B]: !C
|
|
220
|
+
}),
|
|
221
|
+
label: a,
|
|
222
|
+
helperText: m,
|
|
223
|
+
optionalLabelText: W,
|
|
224
|
+
disabled: y,
|
|
225
|
+
error: x,
|
|
226
|
+
inputId: f,
|
|
227
|
+
fullWidth: C,
|
|
228
|
+
renderControl: () => /* @__PURE__ */ s.jsx(
|
|
229
|
+
pt,
|
|
230
|
+
{
|
|
231
|
+
options: at,
|
|
232
|
+
onOpen: l,
|
|
233
|
+
onCreate: nt,
|
|
234
|
+
onClose: g,
|
|
235
|
+
value: X,
|
|
236
|
+
onChange: et,
|
|
237
|
+
children: /* @__PURE__ */ s.jsxs(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
"data-testid": $,
|
|
241
|
+
className: N(o.inputWrapper, {
|
|
242
|
+
[o["inputWrapper--error"]]: !!x,
|
|
243
|
+
[o["inputWrapper--disabled"]]: y,
|
|
244
|
+
[o.inputWrapperCompact]: r
|
|
245
|
+
}),
|
|
246
|
+
children: [
|
|
247
|
+
/* @__PURE__ */ s.jsx(
|
|
248
|
+
"input",
|
|
249
|
+
{
|
|
250
|
+
className: o.inputElement,
|
|
251
|
+
"data-input": !0,
|
|
252
|
+
defaultValue: e && typeof e == "string" ? e : void 0,
|
|
253
|
+
"data-testid": "date-picker-input",
|
|
254
|
+
placeholder: Q
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
v && /* @__PURE__ */ s.jsx("div", { className: o.iconButton, "data-toggle": !0, children: /* @__PURE__ */ s.jsx("div", { className: o.iconWrapper, children: /* @__PURE__ */ s.jsx(
|
|
258
|
+
z,
|
|
259
|
+
{
|
|
260
|
+
icon: "calendar",
|
|
261
|
+
variant: "thin",
|
|
262
|
+
size: 24,
|
|
263
|
+
color: o.systemGray3
|
|
264
|
+
}
|
|
265
|
+
) }) }),
|
|
266
|
+
// istanbul ignore next - relies on the lifecycle hooks in Flatpickr, which doesn't play nicely with unit tests
|
|
267
|
+
c && tt && /* @__PURE__ */ s.jsx(
|
|
268
|
+
"button",
|
|
269
|
+
{
|
|
270
|
+
className: o.clearButton,
|
|
271
|
+
onClick: () => {
|
|
272
|
+
var n;
|
|
273
|
+
(n = d.current) == null || n.clear();
|
|
274
|
+
},
|
|
275
|
+
"data-testid": "data-picker-clear-button",
|
|
276
|
+
title: "Clear",
|
|
277
|
+
type: "button",
|
|
278
|
+
children: /* @__PURE__ */ s.jsx("div", { className: o.iconWrapper, children: /* @__PURE__ */ s.jsx(
|
|
279
|
+
z,
|
|
280
|
+
{
|
|
281
|
+
icon: "close",
|
|
282
|
+
variant: "thin",
|
|
283
|
+
size: 12,
|
|
284
|
+
color: o.systemGray3
|
|
285
|
+
}
|
|
286
|
+
) })
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
)
|
|
292
|
+
}
|
|
293
|
+
)
|
|
294
|
+
}
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
export {
|
|
298
|
+
Mt as default
|
|
299
|
+
};
|