@tsiky/components-r19 7.0.19 → 7.0.20

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.js CHANGED
@@ -42927,12 +42927,12 @@ const Cxe = ({
42927
42927
  hideConfirmation: o,
42928
42928
  handleConfirm: i
42929
42929
  };
42930
- }, n6e = "_container_145xs_1", o6e = "_selectButton_145xs_7", i6e = "_disabled_145xs_22", c6e = "_error_145xs_39", r6e = "_outline_145xs_52", s6e = "_filled_145xs_58", d6e = "_sm_145xs_67", l6e = "_md_145xs_73", h6e = "_lg_145xs_79", p6e = "_buttonContent_145xs_85", u6e = "_label_145xs_93", y6e = "_placeholder_145xs_103", k6e = "_iconsContainer_145xs_108", m6e = "_loadingSpinner_145xs_115", f6e = "_spin_145xs_1", g6e = "_arrowIcon_145xs_133", v6e = "_arrowIconOpen_145xs_141", M6e = "_dropdown_145xs_146", _6e = "_dropdownIn_145xs_1", x6e = "_searchContainer_145xs_173", b6e = "_searchInputWrapper_145xs_179", w6e = "_searchIcon_145xs_185", L6e = "_searchInput_145xs_179", C6e = "_optionsList_145xs_210", N6e = "_noResults_145xs_235", I6e = "_option_145xs_210", S6e = "_optionHighlighted_145xs_265", $6e = "_optionSelected_145xs_270", q6e = "_optionDisabled_145xs_281", A6e = "_optionLabel_145xs_287", z6e = "_checkIcon_145xs_295", V6e = "_widthFull_145xs_303", P6e = "_width64_145xs_306", T6e = "_width80_145xs_309", H6e = "_width96_145xs_312", ye = {
42930
+ }, n6e = "_container_wd1ci_1", o6e = "_selectButton_wd1ci_7", i6e = "_disabled_wd1ci_23", c6e = "_error_wd1ci_40", r6e = "_outline_wd1ci_53", s6e = "_filled_wd1ci_59", d6e = "_sm_wd1ci_68", l6e = "_md_wd1ci_74", h6e = "_lg_wd1ci_80", p6e = "_buttonContent_wd1ci_86", u6e = "_label_wd1ci_94", y6e = "_placeholder_wd1ci_104", k6e = "_iconsContainer_wd1ci_109", m6e = "_loadingSpinner_wd1ci_116", f6e = "_spin_wd1ci_1", g6e = "_arrowIcon_wd1ci_135", v6e = "_arrowIconOpen_wd1ci_143", M6e = "_dropdown_wd1ci_148", _6e = "_dropdownIn_wd1ci_1", x6e = "_searchContainer_wd1ci_176", b6e = "_searchInputWrapper_wd1ci_182", w6e = "_searchIcon_wd1ci_188", L6e = "_searchInput_wd1ci_182", C6e = "_optionsList_wd1ci_213", N6e = "_noResults_wd1ci_238", I6e = "_option_wd1ci_213", S6e = "_optionHighlighted_wd1ci_268", $6e = "_optionSelected_wd1ci_273", q6e = "_optionDisabled_wd1ci_284", A6e = "_optionLabel_wd1ci_290", z6e = "_checkIcon_wd1ci_298", V6e = "_widthFull_wd1ci_306", P6e = "_width64_wd1ci_310", T6e = "_width80_wd1ci_314", H6e = "_width96_wd1ci_318", ye = {
42931
42931
  container: n6e,
42932
42932
  selectButton: o6e,
42933
42933
  disabled: i6e,
42934
42934
  error: c6e,
42935
- default: "_default_145xs_48",
42935
+ default: "_default_wd1ci_49",
42936
42936
  outline: r6e,
42937
42937
  filled: s6e,
42938
42938
  sm: d6e,
@@ -47470,7 +47470,7 @@ const Exe = ({
47470
47470
  ] })
47471
47471
  ] })
47472
47472
  ] });
47473
- }, Uve = "_overlay_17ypf_1", Wve = "_modal_17ypf_15", Gve = "_body_17ypf_27", Kve = "_footer_17ypf_46", Zve = "_confirmButton_17ypf_55", Xve = "_danger_17ypf_71", Yve = "_cancelButton_17ypf_75", jt = {
47473
+ }, Uve = "_overlay_afn8e_1", Wve = "_modal_afn8e_15", Gve = "_body_afn8e_28", Kve = "_footer_afn8e_48", Zve = "_confirmButton_afn8e_57", Xve = "_danger_afn8e_74", Yve = "_cancelButton_afn8e_78", jt = {
47474
47474
  overlay: Uve,
47475
47475
  modal: Wve,
47476
47476
  body: Gve,
@@ -47481,33 +47481,90 @@ const Exe = ({
47481
47481
  }, Jxe = ({
47482
47482
  isOpen: e,
47483
47483
  message: t,
47484
- onConfirm: n,
47485
- onCancel: o,
47486
- confirmText: i = "Confirmer",
47487
- cancelText: r = "Annuler",
47488
- isDanger: s = !1,
47489
- hideFooter: d = !1,
47490
- secondaryConfirmText: l,
47491
- onSecondaryConfirm: h,
47492
- footerStyle: p,
47493
- cancelButtonStyle: u,
47494
- confirmButtonStyle: y
47495
- }) => e ? /* @__PURE__ */ c("div", { className: jt.overlay, onClick: o, children: /* @__PURE__ */ f("div", { className: jt.modal, onClick: (m) => m.stopPropagation(), children: [
47496
- /* @__PURE__ */ c("div", { className: jt.body, children: typeof t == "string" ? /* @__PURE__ */ c("p", { children: t }) : t }),
47497
- !d && /* @__PURE__ */ f("div", { className: jt.footer, style: p, children: [
47498
- r && /* @__PURE__ */ c("button", { className: jt.cancelButton, onClick: o, style: u, children: r }),
47499
- l && h && /* @__PURE__ */ c("button", { className: jt.confirmButton, onClick: h, children: l }),
47500
- i && /* @__PURE__ */ c(
47501
- "button",
47502
- {
47503
- className: `${jt.confirmButton} ${s ? jt.danger : ""}`,
47504
- onClick: n,
47505
- style: y,
47506
- children: i
47507
- }
47508
- )
47509
- ] })
47510
- ] }) }) : null, Jve = "_card_1ildr_1", Qve = "_topIcon_1ildr_17", e9e = "_title_1ildr_24", t9e = "_text_1ildr_31", a9e = "_bottomIcon_1ildr_37", $i = {
47484
+ children: n,
47485
+ onConfirm: o,
47486
+ onCancel: i,
47487
+ confirmText: r = "Confirmer",
47488
+ cancelText: s = "Annuler",
47489
+ isDanger: d = !1,
47490
+ hideFooter: l = !1,
47491
+ secondaryConfirmText: h,
47492
+ onSecondaryConfirm: p,
47493
+ modalStyle: u,
47494
+ bodyStyle: y,
47495
+ footerStyle: m,
47496
+ cancelButtonStyle: g,
47497
+ confirmButtonStyle: k,
47498
+ overlayStyle: M,
47499
+ modalClassName: _,
47500
+ bodyClassName: v,
47501
+ footerClassName: b,
47502
+ overlayClassName: L
47503
+ }) => {
47504
+ if (!e) return null;
47505
+ const N = n ?? t;
47506
+ return /* @__PURE__ */ c(
47507
+ "div",
47508
+ {
47509
+ className: `${jt.overlay} ${L || ""}`.trim(),
47510
+ onClick: i,
47511
+ style: M,
47512
+ children: /* @__PURE__ */ f(
47513
+ "div",
47514
+ {
47515
+ className: `${jt.modal} ${_ || ""}`.trim(),
47516
+ onClick: (S) => S.stopPropagation(),
47517
+ style: u,
47518
+ children: [
47519
+ /* @__PURE__ */ c(
47520
+ "div",
47521
+ {
47522
+ className: `${jt.body} ${v || ""}`.trim(),
47523
+ style: y,
47524
+ children: typeof N == "string" ? /* @__PURE__ */ c("p", { children: N }) : N
47525
+ }
47526
+ ),
47527
+ !l && /* @__PURE__ */ f(
47528
+ "div",
47529
+ {
47530
+ className: `${jt.footer} ${b || ""}`.trim(),
47531
+ style: m,
47532
+ children: [
47533
+ s && /* @__PURE__ */ c(
47534
+ "button",
47535
+ {
47536
+ className: jt.cancelButton,
47537
+ onClick: i,
47538
+ style: g,
47539
+ children: s
47540
+ }
47541
+ ),
47542
+ h && p && /* @__PURE__ */ c(
47543
+ "button",
47544
+ {
47545
+ className: jt.confirmButton,
47546
+ onClick: p,
47547
+ children: h
47548
+ }
47549
+ ),
47550
+ r && /* @__PURE__ */ c(
47551
+ "button",
47552
+ {
47553
+ className: `${jt.confirmButton} ${d ? jt.danger : ""}`,
47554
+ onClick: o,
47555
+ style: k,
47556
+ children: r
47557
+ }
47558
+ )
47559
+ ]
47560
+ }
47561
+ )
47562
+ ]
47563
+ }
47564
+ )
47565
+ }
47566
+ );
47567
+ }, Jve = "_card_1ildr_1", Qve = "_topIcon_1ildr_17", e9e = "_title_1ildr_24", t9e = "_text_1ildr_31", a9e = "_bottomIcon_1ildr_37", $i = {
47511
47568
  card: Jve,
47512
47569
  topIcon: Qve,
47513
47570
  title: e9e,
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  export interface ConfirmationModalProps {
3
3
  isOpen: boolean;
4
- message: React.ReactNode;
4
+ message?: React.ReactNode;
5
+ children?: React.ReactNode;
5
6
  onConfirm: () => void;
6
7
  onCancel: () => void;
7
8
  confirmText?: string;
@@ -10,9 +11,16 @@ export interface ConfirmationModalProps {
10
11
  hideFooter?: boolean;
11
12
  secondaryConfirmText?: string;
12
13
  onSecondaryConfirm?: () => void;
14
+ modalStyle?: React.CSSProperties;
15
+ bodyStyle?: React.CSSProperties;
13
16
  footerStyle?: React.CSSProperties;
14
17
  cancelButtonStyle?: React.CSSProperties;
15
18
  confirmButtonStyle?: React.CSSProperties;
19
+ overlayStyle?: React.CSSProperties;
20
+ modalClassName?: string;
21
+ bodyClassName?: string;
22
+ footerClassName?: string;
23
+ overlayClassName?: string;
16
24
  }
17
25
  export declare const ConfirmationModal: React.FC<ConfirmationModalProps>;
18
26
  //# sourceMappingURL=ConfirmationModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModal/ConfirmationModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC1C;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiD9D,CAAC"}
1
+ {"version":3,"file":"ConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModal/ConfirmationModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAgF9D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsiky/components-r19",
3
- "version": "7.0.19",
3
+ "version": "7.0.20",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",