affiliate-front-shared 1.3.19 → 1.3.21

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.d.ts CHANGED
@@ -28,7 +28,6 @@ export { default as DatePickerToISO } from './components/date-picker-to-ISO/Date
28
28
  export { default as UploadFiles } from './components/upload-files';
29
29
  export type { UploadFileProps } from './components/upload-files';
30
30
  export { default as GenericTabsPage } from './components/generic-tab-component/GenericTabComponent';
31
- export { default as Tooltip } from './components/tooltip';
32
31
  export type { TabItem, BreadcrumbItem, } from './components/generic-tab-component/GenericTabComponent';
33
32
  export { default as useUserStore } from './stores/useUserStore';
34
33
  export { default as useModalStore } from './stores/useModalStore';
@@ -53,5 +52,5 @@ export { parseErrorMessageKey, parseServerErrors } from './utils/errors';
53
52
  export { handleDictionarySelectFilter } from './utils/antdFunction';
54
53
  export { parseCommissionErrors } from './utils/parseCommissionErrors';
55
54
  export type { ParsedCommissionError } from './utils/parseCommissionErrors';
56
- export { StyledEmpty, StyledTable, StyledBreadcrumb, StyledSelect } from './styled-components';
55
+ export { StyledEmpty, StyledTable, StyledBreadcrumb, StyledSelect, StyledTooltip, } from './styled-components';
57
56
  export { Popup, PopupHeader, CloseButton, ContentContainer, NoDataSpanForSelect, LabelText, PopupFooterContainer, CancelModalButton, ModalHostButtonWrapper, CreateModalButton, RejectButton, GeneralInput, } from './components/modal-host/TablePopup.style';
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ var Be = (n, e, t) => Tr(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as s, Fragment as ae, jsxs as b } from "react/jsx-runtime";
5
5
  import * as P from "react";
6
6
  import Jt, { createContext as Qt, useContext as dt, useEffect as K, useState as V, useRef as et, useMemo as ve } from "react";
7
- import { Menu as Xt, DatePicker as er, Table as pt, Dropdown as we, Select as ut, Button as Ce, Input as tt, Modal as tr, notification as _e, Form as $e, Checkbox as Pr, Skeleton as Mr, Pagination as Hr, Breadcrumb as Rr, Spin as rr, Empty as nr, Tabs as ar, Upload as Nr, Tooltip as Fr } from "antd";
7
+ import { Menu as Xt, DatePicker as er, Table as pt, Dropdown as we, Select as ut, Button as Ce, Input as tt, Modal as tr, notification as _e, Form as $e, Checkbox as Pr, Skeleton as Mr, Pagination as Hr, Breadcrumb as Rr, Spin as rr, Empty as nr, Tabs as ar, Tooltip as Nr, Upload as Fr } from "antd";
8
8
  import h, { keyframes as Vr } from "styled-components";
9
9
  import { useNavigate as ke, useLocation as Ie, useSearchParams as Ar, useParams as jr, UNSAFE_NavigationContext as Br } from "react-router";
10
10
  import { create as ir, useStore as Gr } from "zustand";
@@ -6990,6 +6990,18 @@ const Or = /* @__PURE__ */ Fi(ji), Bi = ({ setDateFilter: n, setShowRange: e, se
6990
6990
  .ant-collapse-header {
6991
6991
  background-color: transparent !important;
6992
6992
  }
6993
+ `, Ao = h(Nr)`
6994
+ .ant-tooltip-inner {
6995
+ min-width: auto;
6996
+ min-height: auto;
6997
+ padding: 0.25rem;
6998
+ color: var(--color-text-inverse-primary, #fff);
6999
+ font-family: var(--text-font-family-base, Geist);
7000
+ font-size: var(--typo-caption-size-small, 0.75rem);
7001
+ font-weight: var(--text-weight-regular, 400);
7002
+ line-height: var(--typo-caption-lineHeight-small, 1rem); /* 133.333% */
7003
+ letter-spacing: var(--typo-caption-spacing-small, 0.00625rem);
7004
+ }
6993
7005
  `, Er = h(ut)`
6994
7006
  width: ${({ $width: n }) => n ?? "100%"};
6995
7007
 
@@ -7065,7 +7077,7 @@ const Or = /* @__PURE__ */ Fi(ji), Bi = ({ setDateFilter: n, setShowRange: e, se
7065
7077
  .anticon.anticon-close {
7066
7078
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.5)) !important;
7067
7079
  }
7068
- `, Ao = ({
7080
+ `, jo = ({
7069
7081
  setDateFilters: n,
7070
7082
  hasAllFilter: e = !1
7071
7083
  }) => {
@@ -7191,7 +7203,7 @@ const Or = /* @__PURE__ */ Fi(ji), Bi = ({ setDateFilter: n, setShowRange: e, se
7191
7203
  background: var(--color-bg-opaque-primary, rgba(255, 255, 255, 0.05));
7192
7204
  color: var(--color-text-primary, #fff);
7193
7205
  cursor: pointer;
7194
- `, jo = ({ exportFileName: n, filters: e, service: t }) => {
7206
+ `, Bo = ({ exportFileName: n, filters: e, service: t }) => {
7195
7207
  const r = async (i) => {
7196
7208
  try {
7197
7209
  const { PageSize: o, Page: l, ...d } = e, u = (await t(d, i)).data;
@@ -7268,7 +7280,7 @@ const Or = /* @__PURE__ */ Fi(ji), Bi = ({ setDateFilter: n, setShowRange: e, se
7268
7280
  background: var(--color-bg-opaque-primary, rgba(255, 255, 255, 0.05));
7269
7281
  color: var(--color-text-primary, #fff);
7270
7282
  cursor: pointer;
7271
- `, Bo = ({ tableData: n, checked: e, fileName: t }) => {
7283
+ `, Go = ({ tableData: n, checked: e, fileName: t }) => {
7272
7284
  const r = async (i) => {
7273
7285
  try {
7274
7286
  i === "xlsx" ? Ki(n, e, t + ".xlsx") : Yi(n, e, t + ".csv");
@@ -7299,12 +7311,12 @@ const Or = /* @__PURE__ */ Fi(ji), Bi = ({ setDateFilter: n, setShowRange: e, se
7299
7311
  children: /* @__PURE__ */ s(qi, { children: G("Export") })
7300
7312
  }
7301
7313
  );
7302
- }, Go = ({ value: n, onChange: e, ...t }) => {
7314
+ }, Uo = ({ value: n, onChange: e, ...t }) => {
7303
7315
  const r = n ? Or(n) : null;
7304
7316
  return /* @__PURE__ */ s(er, { value: r, onChange: (i) => {
7305
7317
  i ? e == null || e(ne.toISODateString(i.toDate())) : e == null || e(null);
7306
7318
  }, allowClear: !0, ...t });
7307
- }, { Dragger: Ji } = Nr, Qi = h(Ji)`
7319
+ }, { Dragger: Ji } = Fr, Qi = h(Ji)`
7308
7320
  &.default-design {
7309
7321
  .ant-upload {
7310
7322
  padding: 0 !important;
@@ -7388,7 +7400,7 @@ h(Ce)`
7388
7400
  line-height: var(--typo-caption-lineHeight-medium, 18px); /* 128.571% */
7389
7401
  letter-spacing: var(--typo-caption-spacing-medium, 0.1px);
7390
7402
  `;
7391
- const Uo = ({
7403
+ const Wo = ({
7392
7404
  value: n = [],
7393
7405
  onChange: e,
7394
7406
  children: t,
@@ -7572,7 +7584,7 @@ const Uo = ({
7572
7584
  /* @__PURE__ */ s("button", { className: "icon sidebar", onClick: () => e(!0), children: /* @__PURE__ */ s(fr, {}) }),
7573
7585
  n && /* @__PURE__ */ s(gt, {})
7574
7586
  ] });
7575
- }, Wo = ({
7587
+ }, _o = ({
7576
7588
  basePath: n,
7577
7589
  tabItems: e,
7578
7590
  contentMap: t,
@@ -7635,20 +7647,7 @@ const Uo = ({
7635
7647
  ),
7636
7648
  /* @__PURE__ */ s("div", { children: O() })
7637
7649
  ] });
7638
- }, _o = ({ children: n, ...e }) => /* @__PURE__ */ s(
7639
- Fr,
7640
- {
7641
- ...e,
7642
- color: "var(--color-bg-secondary)",
7643
- styles: {
7644
- body: {
7645
- backgroundColor: "var(--color-bg-secondary)",
7646
- color: "#fff"
7647
- }
7648
- },
7649
- children: n
7650
- }
7651
- ), Yo = ({
7650
+ }, Yo = ({
7652
7651
  id: n,
7653
7652
  refetchFormItems: e,
7654
7653
  redirectPrevPage: t,
@@ -7859,17 +7858,17 @@ export {
7859
7858
  wt as ContentContainer,
7860
7859
  Ze as CreateModalButton,
7861
7860
  ne as DateHelper,
7862
- Go as DatePickerToISO,
7863
- Ao as DateRangeFilterTabs,
7861
+ Uo as DatePickerToISO,
7862
+ jo as DateRangeFilterTabs,
7864
7863
  Sr as EnterBackupCode,
7865
- jo as ExcelExport,
7866
- Bo as ExcelExportSelected,
7864
+ Bo as ExcelExport,
7865
+ Go as ExcelExportSelected,
7867
7866
  No as ExpandableTable,
7868
7867
  oa as FilterConfiguration,
7869
7868
  De as FilterSelectTypes,
7870
7869
  yr as GeneralInput,
7871
7870
  Ht as GenericModal,
7872
- Wo as GenericTabsPage,
7871
+ _o as GenericTabsPage,
7873
7872
  zo as GridViewPage,
7874
7873
  Ke as LabelText,
7875
7874
  Io as ModalHost,
@@ -7890,10 +7889,10 @@ export {
7890
7889
  Fo as StyledEmpty,
7891
7890
  Er as StyledSelect,
7892
7891
  Vo as StyledTable,
7892
+ Ao as StyledTooltip,
7893
7893
  he as TableViewOptions,
7894
- _o as Tooltip,
7895
7894
  Po as TwoFactorPopup,
7896
- Uo as UploadFiles,
7895
+ Wo as UploadFiles,
7897
7896
  ia as catchErrorMessage,
7898
7897
  Yi as exportSelectedToCSV,
7899
7898
  Ki as exportSelectedToXLSX,