se-design 0.0.103 → 0.0.104
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/assets/icons/banner-demo-img.svg +19 -19
- package/dist/assets/icons/checkbox-disabled-minus.svg +4 -0
- package/dist/assets/icons/checkbox-disabled-tick.svg +4 -0
- package/dist/assets/icons/checkbox-disabled.svg +3 -0
- package/dist/assets/icons/checkbox-fill.svg +4 -0
- package/dist/assets/icons/checkbox-hover-fill.svg +4 -0
- package/dist/assets/icons/checkbox-hover-minus.svg +4 -0
- package/dist/assets/icons/checkbox-hover-tick.svg +4 -0
- package/dist/assets/icons/checkbox-minus.svg +4 -0
- package/dist/assets/icons/checkbox-tick.svg +4 -0
- package/dist/assets/icons/checked-circle-disabled.svg +11 -0
- package/dist/assets/icons/checked-circle-green.svg +11 -0
- package/dist/assets/icons/checked-circle-white.svg +6 -0
- package/dist/assets/icons/folder.svg +3 -0
- package/dist/assets/icons/info-brown.svg +6 -0
- package/dist/assets/icons/info-white.svg +3 -0
- package/dist/assets/icons/rightSide.svg +3 -0
- package/dist/assets/icons/search.svg +10 -0
- package/dist/assets/icons/white-close.svg +4 -0
- package/dist/assets/style.css +1 -1
- package/dist/components/Accordion/index.d.ts +8 -0
- package/dist/components/AutoCompleteInput/index.d.ts +15 -0
- package/dist/components/Banner/index.d.ts +2 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/GetStartedWidget/index.d.ts +11 -0
- package/dist/components/Input/index.d.ts +15 -0
- package/dist/components/InputWithTags/index.d.ts +7 -0
- package/dist/components/MessageBar/index.d.ts +13 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/PhoneInput/countriesInfo.json.d.ts +1234 -0
- package/dist/components/PhoneInput/index.d.ts +12 -0
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts +7 -0
- package/dist/components/Radio/index.d.ts +13 -0
- package/dist/components/RadioGroup/index.d.ts +8 -0
- package/dist/components/TableLayout/index.d.ts +4 -0
- package/dist/components/ToastBar/index.d.ts +10 -0
- package/dist/components/Widget/index.d.ts +3 -1
- package/dist/components/index.d.ts +11 -0
- package/dist/index.js +56 -34
- package/dist/index.js.map +1 -1
- package/dist/index100.js +14 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +9 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +9 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +41 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +5 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +11 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +330 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +53 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +5 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +79 -0
- package/dist/index109.js.map +1 -0
- package/dist/index110.js +96 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +55 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +11 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +8 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +55 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +5 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +5 -0
- package/dist/index116.js.map +1 -0
- package/dist/index13.js +77 -57
- package/dist/index13.js.map +1 -1
- package/dist/index16.js +39 -32
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +36 -23
- package/dist/index17.js.map +1 -1
- package/dist/index19.js +52 -44
- package/dist/index19.js.map +1 -1
- package/dist/index24.js +42 -40
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +37 -21
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +48 -46
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +56 -2
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +39 -2
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +33 -2
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +6 -6
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +47 -2
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +38 -2
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +32 -2
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +52 -2
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +71 -2
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +54 -2
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +65 -2
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +87 -2
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +1 -1
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +1 -1
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +92 -56
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +1 -1
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +1 -1
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +2 -2
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +1 -1
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +1 -1
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +2 -2
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +1 -1
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +2 -2
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +1 -1
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +2 -2
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +2 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +2 -149
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +5 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +5 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +5 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +5 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +2 -10
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +1 -9
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +2 -5
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +15 -12
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +2 -170
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +2 -11
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +1 -5
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +2 -6
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +2 -38
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +2 -2
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +2 -8
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +2 -327
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +2 -50
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +2 -2
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +2 -76
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +2 -93
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -52
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -8
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +2 -5
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -52
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +2 -2
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +2 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +5 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +5 -0
- package/dist/index79.js.map +1 -0
- package/dist/index80.js +5 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +152 -0
- package/dist/index81.js.map +1 -0
- package/dist/index9.js +24 -19
- package/dist/index9.js.map +1 -1
- package/dist/index95.js +1236 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +13 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +13 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +8 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +173 -0
- package/dist/index99.js.map +1 -0
- package/dist/typographyMixin.scss +69 -66
- package/package.json +1 -1
package/dist/index25.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index25.js","sources":["../src/components/Pagination/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Icon } from 'components/Icon';\n\ninterface PaginationProps {\n currentPage: number;\n itemsPerPage: number;\n totalItems: number;\n onPageChange: (page: number) => void;\n}\n\nexport const Pagination: React.FC<PaginationProps> = ({
|
1
|
+
{"version":3,"file":"index25.js","sources":["../src/components/Pagination/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Icon } from 'components/Icon';\n\ninterface PaginationProps {\n currentPage: number;\n itemsPerPage: number;\n totalItems: number;\n onPageChange: (page: number) => void;\n}\n\nexport const Pagination: React.FC<PaginationProps> = ({ currentPage, itemsPerPage, totalItems, onPageChange }) => {\n const totalPages = Math.ceil(totalItems / itemsPerPage);\n const firstPage = 1;\n const lastPage = totalPages;\n const startItem = (currentPage - 1) * itemsPerPage + 1;\n const endItem = Math.min(currentPage * itemsPerPage, totalItems);\n const hasNextPage = endItem < totalItems;\n const hasPrevPage = currentPage > 1;\n\n const renderPageNumbers = () => {\n const pages = [];\n\n const renderPageNumber = (pageNum: number) => {\n return (\n <span\n key={pageNum}\n onClick={() => onPageChange(pageNum)}\n className={`w-5 h-5 text-sm flex items-center justify-center rounded border ${currentPage === pageNum ? 'bg-[var(--color-gray-100)] border-[var(--color-gray-300)]' : 'border-[var(--color-gray-200)] hover:bg-[var(--color-gray-50)]'}`}\n >\n {pageNum}\n </span>\n );\n };\n\n const renderEllipsis = () => {\n return (\n <span className=\"w-5 h-5 text-sm rounded border border-[var(--color-gray-200)] flex items-end justify-center\">\n ...\n </span>\n );\n };\n\n if (currentPage <= 3) {\n for (let i = 1; i <= Math.min(3, totalPages); i++) {\n pages.push(renderPageNumber(i));\n }\n\n if (totalPages > 3) {\n pages.push(renderEllipsis());\n pages.push(renderPageNumber(totalPages));\n }\n } else if (currentPage >= totalPages - 2) {\n pages.push(renderPageNumber(firstPage));\n pages.push(renderEllipsis());\n pages.push(renderPageNumber(totalPages - 2));\n pages.push(renderPageNumber(totalPages - 1));\n pages.push(renderPageNumber(totalPages));\n } else {\n pages.push(renderPageNumber(firstPage));\n pages.push(renderEllipsis());\n pages.push(renderPageNumber(currentPage - 1));\n pages.push(renderPageNumber(currentPage));\n pages.push(renderPageNumber(currentPage + 1));\n pages.push(renderEllipsis());\n pages.push(renderPageNumber(lastPage));\n }\n\n return pages;\n };\n\n return (\n <div className=\"flex items-center gap-1 font-normal\">\n <span className=\"text-sm text-[var(--color-gray-700)] mr-1\">\n Showing {startItem}-{endItem} of {totalItems}\n </span>\n <span\n onClick={() => hasPrevPage && onPageChange(currentPage - 1)}\n className=\"w-5 h-5 flex items-center justify-center disabled:opacity-50 hover:cursor-pointer\"\n >\n <Icon name=\"next\" className=\"rotate-180 transition-transform stroke-[var(--color-gray-600)]\" />\n </span>\n {/* Render page numbers */}\n <div className=\"flex items-center gap-1\">{renderPageNumbers()}</div>\n <span\n onClick={() => hasNextPage && onPageChange(currentPage + 1)}\n className=\"w-5 h-5 flex items-center justify-center disabled:opacity-50 hover:cursor-pointer\"\n >\n <Icon name=\"next\" />\n </span>\n </div>\n );\n};\n"],"names":["Pagination","currentPage","itemsPerPage","totalItems","onPageChange","totalPages","Math","ceil","firstPage","lastPage","startItem","endItem","min","hasNextPage","hasPrevPage","renderPageNumbers","pages","renderPageNumber","pageNum","React","createElement","key","onClick","className","renderEllipsis","i","push","Icon","name"],"mappings":";;AAWO,MAAMA,IAAwCA,CAAC;AAAA,EAAEC,aAAAA;AAAAA,EAAaC,cAAAA;AAAAA,EAAcC,YAAAA;AAAAA,EAAYC,cAAAA;AAAa,MAAM;AAChH,QAAMC,IAAaC,KAAKC,KAAKJ,IAAaD,CAAY,GAChDM,IAAY,GACZC,IAAWJ,GACXK,KAAaT,IAAc,KAAKC,IAAe,GAC/CS,IAAUL,KAAKM,IAAIX,IAAcC,GAAcC,CAAU,GACzDU,IAAcF,IAAUR,GACxBW,IAAcb,IAAc,GAE5Bc,IAAoBA,MAAM;AAC9B,UAAMC,IAAQ,CAAE,GAEVC,IAAmBA,CAACC,MAEtBC,gBAAAA,EAAAC,cAAA,QAAA;AAAA,MACEC,KAAKH;AAAAA,MACLI,SAASA,MAAMlB,EAAac,CAAO;AAAA,MACnCK,WAAW,mEAAmEtB,MAAgBiB,IAAU,8DAA8D,gEAAgE;AAAA,OAErOA,CACG,GAIJM,IAAiBA,MAEnBL,gBAAAA,EAAAC,cAAA,QAAA;AAAA,MAAMG,WAAU;AAAA,OAA8F,KAExG;AAIV,QAAItB,KAAe,GAAG;AACXwB,eAAAA,IAAI,GAAGA,KAAKnB,KAAKM,IAAI,GAAGP,CAAU,GAAGoB;AACtCC,QAAAA,EAAAA,KAAKT,EAAiBQ,CAAC,CAAC;AAGhC,MAAIpB,IAAa,MACTqB,EAAAA,KAAKF,GAAgB,GACrBE,EAAAA,KAAKT,EAAiBZ,CAAU,CAAC;AAAA,IACzC,MACF,CAAWJ,KAAeI,IAAa,KAC/BqB,EAAAA,KAAKT,EAAiBT,CAAS,CAAC,GAChCkB,EAAAA,KAAKF,GAAgB,GAC3BR,EAAMU,KAAKT,EAAiBZ,IAAa,CAAC,CAAC,GAC3CW,EAAMU,KAAKT,EAAiBZ,IAAa,CAAC,CAAC,GACrCqB,EAAAA,KAAKT,EAAiBZ,CAAU,CAAC,MAEjCqB,EAAAA,KAAKT,EAAiBT,CAAS,CAAC,GAChCkB,EAAAA,KAAKF,GAAgB,GAC3BR,EAAMU,KAAKT,EAAiBhB,IAAc,CAAC,CAAC,GACtCyB,EAAAA,KAAKT,EAAiBhB,CAAW,CAAC,GACxCe,EAAMU,KAAKT,EAAiBhB,IAAc,CAAC,CAAC,GACtCyB,EAAAA,KAAKF,GAAgB,GACrBE,EAAAA,KAAKT,EAAiBR,CAAQ,CAAC;AAGhCO,WAAAA;AAAAA,EACT;AAGEG,SAAAA,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKG,WAAU;AAAA,EAAA,GACbH,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAMG,WAAU;AAAA,EAAA,GAA4C,YACjDb,GAAU,KAAEC,GAAQ,QAAKR,CAC9B,GACNiB,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IACEE,SAASA,MAAMR,KAAeV,EAAaH,IAAc,CAAC;AAAA,IAC1DsB,WAAU;AAAA,EAAA,GAEVH,gBAAAA,EAAAA,cAACO,GAAI;AAAA,IAACC,MAAK;AAAA,IAAOL,WAAU;AAAA,EAAkE,CAAA,CAC1F,GAENJ,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKG,WAAU;AAAA,KAA2BR,EAAkB,CAAO,GACnEI,gBAAAA,EAAAC,cAAA,QAAA;AAAA,IACEE,SAASA,MAAMT,KAAeT,EAAaH,IAAc,CAAC;AAAA,IAC1DsB,WAAU;AAAA,EAAA,GAEVH,gBAAAA,EAAAA,cAACO,GAAI;AAAA,IAACC,MAAK;AAAA,EAAQ,CAAA,CACf,CACH;AAET;"}
|
package/dist/index26.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import e from "react";
|
2
2
|
import { Button as N } from "./index3.js";
|
3
|
-
import { Badge as
|
4
|
-
import { Icon as
|
3
|
+
import { Badge as I } from "./index7.js";
|
4
|
+
import { Icon as d } from "./index4.js";
|
5
5
|
/* empty css */
|
6
6
|
const t = {
|
7
|
-
widgetCtn: "flex flex-col gap-[2px] align-center border border-[var(--color-gray-200)] rounded-[12px]
|
7
|
+
widgetCtn: "flex flex-col gap-[2px] align-center border border-[var(--color-gray-200)] rounded-[12px] w-[385px]",
|
8
8
|
widgetImageCtn: "cursor-pointer",
|
9
9
|
descriptionCtn: "p-4 flex flex-col",
|
10
10
|
widgetTitle: "text-[var(--color-gray-900)] mt-[4px] mb-[8px]",
|
@@ -20,81 +20,83 @@ const t = {
|
|
20
20
|
requestFeatureCtn: "flex gap-[12px]",
|
21
21
|
requestFeatureImageCtn: "w-[48px] h-[48px] border border-[var(--color-gray-200)] rounded-[50%] flex items-center flex-shrink-0 bg-[var(--color-red-50)]",
|
22
22
|
requestFeatureDescriptionCtn: "flex flex-col"
|
23
|
-
},
|
24
|
-
widgetClassName:
|
23
|
+
}, B = ({
|
24
|
+
widgetClassName: g = "",
|
25
25
|
widgetType: a,
|
26
26
|
widgetTitle: r,
|
27
|
-
widgetDescription:
|
28
|
-
widgetImage:
|
29
|
-
hasImage:
|
30
|
-
hasButtonCta:
|
31
|
-
hasLinkCta:
|
32
|
-
ctaText:
|
33
|
-
hasBadge:
|
34
|
-
badgeText:
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
27
|
+
widgetDescription: l,
|
28
|
+
widgetImage: p,
|
29
|
+
hasImage: f = !1,
|
30
|
+
hasButtonCta: n = !1,
|
31
|
+
hasLinkCta: o = !1,
|
32
|
+
ctaText: i = "",
|
33
|
+
hasBadge: x = !1,
|
34
|
+
badgeText: u = "",
|
35
|
+
buttonBgColor: w = "secondary",
|
36
|
+
onCtaClick: b,
|
37
|
+
onWidgetClick: v,
|
38
|
+
webinarDateInfo: s,
|
39
|
+
webinarSpeaker: c
|
39
40
|
}) => {
|
40
|
-
const C =
|
41
|
-
label:
|
41
|
+
const C = x && /* @__PURE__ */ e.createElement(I, {
|
42
|
+
label: u,
|
42
43
|
className: t.widgetBadge,
|
43
44
|
bgColor: "var(--color-yellow-50)",
|
44
45
|
textColor: "var(--color-yellow-400)",
|
45
46
|
fontWeight: "normal"
|
46
|
-
})
|
47
|
+
}), m = (o || n) && /* @__PURE__ */ e.createElement(e.Fragment, null, o && /* @__PURE__ */ e.createElement("span", {
|
47
48
|
className: t.widgetLinkCta
|
48
|
-
},
|
49
|
-
type:
|
50
|
-
size: "
|
51
|
-
label:
|
52
|
-
|
53
|
-
|
54
|
-
})),
|
49
|
+
}, i), n && /* @__PURE__ */ e.createElement(N, {
|
50
|
+
type: w,
|
51
|
+
size: "md",
|
52
|
+
label: i,
|
53
|
+
customClassName: `${t.widgetButtonCta} mt-[4px]`,
|
54
|
+
onClick: b
|
55
|
+
})), E = f && /* @__PURE__ */ e.createElement("div", {
|
55
56
|
className: `${t.widgetImageCtn} widget-image-ctn`
|
56
|
-
},
|
57
|
-
src:
|
57
|
+
}, /* @__PURE__ */ e.createElement("img", {
|
58
|
+
src: p,
|
58
59
|
alt: "widget-image"
|
59
|
-
}))
|
60
|
+
}));
|
61
|
+
return /* @__PURE__ */ e.createElement("div", {
|
62
|
+
className: `${t.widgetCtn} ${g} widget-ctn`,
|
63
|
+
onClick: v
|
64
|
+
}, a !== "general" && E, /* @__PURE__ */ e.createElement("div", {
|
60
65
|
className: t.descriptionCtn
|
61
|
-
}, C
|
66
|
+
}, a !== "general" && C, a !== "request-feature" && /* @__PURE__ */ e.createElement("span", {
|
62
67
|
className: `${t.widgetTitle} widget-title`
|
63
|
-
}, r),
|
68
|
+
}, r), ["promotion", "general"].includes(a) && /* @__PURE__ */ e.createElement("span", {
|
64
69
|
className: `${t.widgetDescription} widget-description`
|
65
|
-
},
|
70
|
+
}, l), a === "webinar" && /* @__PURE__ */ e.createElement("div", {
|
66
71
|
className: t.webinarInfoCtn
|
67
|
-
},
|
72
|
+
}, c && /* @__PURE__ */ e.createElement("div", {
|
68
73
|
className: `${t.webinarDescriptionInfo} align-baseline`
|
69
|
-
}, /* @__PURE__ */ e.createElement(
|
74
|
+
}, /* @__PURE__ */ e.createElement(d, {
|
70
75
|
name: "people",
|
71
76
|
className: "relative top-[2px]"
|
72
77
|
}), /* @__PURE__ */ e.createElement("span", {
|
73
78
|
className: t.webinarSpeaker
|
74
|
-
},
|
79
|
+
}, c)), s && /* @__PURE__ */ e.createElement("div", {
|
75
80
|
className: `${t.webinarTimeInfo} align-baseline mb-[4px]`
|
76
|
-
}, /* @__PURE__ */ e.createElement(
|
81
|
+
}, /* @__PURE__ */ e.createElement(d, {
|
77
82
|
name: "clock",
|
78
83
|
className: "relative top-[2px]"
|
79
84
|
}), /* @__PURE__ */ e.createElement("span", {
|
80
|
-
className:
|
81
|
-
},
|
85
|
+
className: t.webinarDate
|
86
|
+
}, s))), a === "request-feature" ? /* @__PURE__ */ e.createElement("div", {
|
82
87
|
className: t.requestFeatureCtn
|
83
88
|
}, /* @__PURE__ */ e.createElement("div", {
|
84
89
|
className: t.requestFeatureImageCtn
|
85
90
|
}), /* @__PURE__ */ e.createElement("div", {
|
86
91
|
className: t.requestFeatureDescriptionCtn
|
87
92
|
}, /* @__PURE__ */ e.createElement("span", {
|
88
|
-
className: `${t.widgetTitle}
|
93
|
+
className: `${t.widgetTitle} widget-title`
|
89
94
|
}, r), /* @__PURE__ */ e.createElement("span", {
|
90
95
|
className: `${t.widgetDescription} widget-description`
|
91
|
-
},
|
92
|
-
return /* @__PURE__ */ e.createElement("div", {
|
93
|
-
className: `${t.widgetCtn} ${d} widget-ctn`,
|
94
|
-
onClick: b
|
95
|
-
}, v(), E());
|
96
|
+
}, l), m)) : m));
|
96
97
|
};
|
97
98
|
export {
|
98
|
-
|
99
|
+
B as Widget,
|
100
|
+
B as default
|
99
101
|
};
|
100
102
|
//# sourceMappingURL=index26.js.map
|
package/dist/index26.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index26.js","sources":["../src/components/Widget/index.tsx"],"sourcesContent":["import React, { FC } from \"react\";\nimport { Map } from \"../../utils/common.types\";\nimport { Button } from \"../Button\";\nimport { Badge } from \"../Badge\";\nimport { Icon } from \"../Icon\";\nimport \"./style.scss\";\n\nexport interface WidgetProps {\n widgetClassName?: string;\n widgetType?: \"promotion\" | \"webinar\" | \"request-feature\"
|
1
|
+
{"version":3,"file":"index26.js","sources":["../src/components/Widget/index.tsx"],"sourcesContent":["import React, { FC } from \"react\";\nimport { Map } from \"../../utils/common.types\";\nimport { Button } from \"../Button\";\nimport { Badge } from \"../Badge\";\nimport { Icon } from \"../Icon\";\nimport \"./style.scss\";\n\nexport interface WidgetProps {\n widgetClassName?: string;\n widgetType?: \"promotion\" | \"webinar\" | \"request-feature\" | \"general\";\n widgetTitle?: string;\n hasBadge?: boolean;\n webinarSpeaker?: string;\n badgeText?: string;\n widgetDescription?: string;\n webinarDateInfo?: string;\n hasImage?: boolean;\n widgetImage?: string;\n hasButtonCta?: boolean;\n buttonBgColor?: 'primary' | 'secondary';\n hasLinkCta?: boolean;\n ctaText?: string;\n onCtaClick?: () => void;\n onWidgetClick?: () => void;\n}\n\nconst className: Map = {\n widgetCtn: 'flex flex-col gap-[2px] align-center border border-[var(--color-gray-200)] rounded-[12px] w-[385px]',\n widgetImageCtn: 'cursor-pointer',\n descriptionCtn: 'p-4 flex flex-col',\n widgetTitle: 'text-[var(--color-gray-900)] mt-[4px] mb-[8px]',\n widgetDescription: 'text-[var(--color-gray-700)] mb-[4px]',\n widgetLinkCta: 'text-[var(--color-blue-500)] cursor-pointer hover:text-[var(--color-blue-600)]',\n widgetButtonCta: 'self-start',\n widgetBadge: 'w-fit',\n webinarInfoCtn: 'flex flex-col gap-2',\n webinarSpeaker: 'text-[var(--color-gray-700)]',\n webinarDate: 'text-[var(--color-gray-700)]',\n webinarDescriptionInfo: 'flex gap-2',\n webinarTimeInfo: 'flex gap-2',\n requestFeatureCtn: 'flex gap-[12px]',\n requestFeatureImageCtn: 'w-[48px] h-[48px] border border-[var(--color-gray-200)] rounded-[50%] flex items-center flex-shrink-0 bg-[var(--color-red-50)]',\n requestFeatureDescriptionCtn: 'flex flex-col',\n};\n\nexport const Widget: FC<WidgetProps> = ({\n widgetClassName = \"\",\n widgetType,\n widgetTitle,\n widgetDescription,\n widgetImage,\n hasImage = false,\n hasButtonCta = false,\n hasLinkCta = false,\n ctaText = \"\",\n hasBadge = false,\n badgeText = \"\",\n buttonBgColor = 'secondary',\n onCtaClick,\n onWidgetClick,\n webinarDateInfo,\n webinarSpeaker,\n}) => {\n\n const renderBadge = hasBadge && (\n <Badge\n label={badgeText}\n className={className.widgetBadge}\n bgColor=\"var(--color-yellow-50)\"\n textColor=\"var(--color-yellow-400)\"\n fontWeight=\"normal\"\n />\n );\n\n const renderCTA = (hasLinkCta || hasButtonCta) && (\n <React.Fragment>\n {hasLinkCta && <span className={className.widgetLinkCta}>{ctaText}</span>}\n {hasButtonCta && <Button type={buttonBgColor} size=\"md\" label={ctaText} customClassName={`${className.widgetButtonCta} mt-[4px]`} onClick={onCtaClick} />}\n </React.Fragment>\n );\n\n const renderImage = hasImage && (\n <div className={`${className.widgetImageCtn} widget-image-ctn`}>\n <img src={widgetImage} alt=\"widget-image\"/>\n </div>\n );\n\n return (\n <div className={`${className.widgetCtn} ${widgetClassName} widget-ctn`} onClick={onWidgetClick}>\n {widgetType !== \"general\" && renderImage}\n <div className={className.descriptionCtn}>\n {widgetType !== \"general\" && renderBadge}\n {widgetType !== \"request-feature\" && <span className={`${className.widgetTitle} widget-title`}>{widgetTitle}</span>}\n\n {[\"promotion\", \"general\"].includes(widgetType!) && (\n <span className={`${className.widgetDescription} widget-description`}>{widgetDescription}</span>\n )}\n\n {widgetType === \"webinar\" && (\n <div className={className.webinarInfoCtn}>\n {webinarSpeaker && (\n <div className={`${className.webinarDescriptionInfo} align-baseline`}>\n <Icon name=\"people\" className=\"relative top-[2px]\" />\n <span className={className.webinarSpeaker}>{webinarSpeaker}</span>\n </div>\n )}\n {webinarDateInfo && (\n <div className={`${className.webinarTimeInfo} align-baseline mb-[4px]`}>\n <Icon name=\"clock\" className=\"relative top-[2px]\" />\n <span className={className.webinarDate}>{webinarDateInfo}</span>\n </div>\n )}\n </div>\n )}\n\n {widgetType === \"request-feature\" ? (\n <div className={className.requestFeatureCtn}>\n <div className={className.requestFeatureImageCtn} />\n <div className={className.requestFeatureDescriptionCtn}>\n <span className={`${className.widgetTitle} widget-title`}>{widgetTitle}</span>\n <span className={`${className.widgetDescription} widget-description`}>{widgetDescription}</span>\n {renderCTA}\n </div>\n </div>\n ) : (\n renderCTA\n )}\n </div>\n </div>\n );\n};\n\nexport default Widget;"],"names":["React__default","Button","Badge","Icon","className","widgetCtn","widgetImageCtn","descriptionCtn","widgetTitle","widgetDescription","widgetLinkCta","widgetButtonCta","widgetBadge","webinarInfoCtn","webinarSpeaker","webinarDate","webinarDescriptionInfo","webinarTimeInfo","requestFeatureCtn","requestFeatureImageCtn","requestFeatureDescriptionCtn","Widget","widgetClassName","widgetType","widgetImage","hasImage","hasButtonCta","hasLinkCta","ctaText","hasBadge","badgeText","buttonBgColor","onCtaClick","onWidgetClick","webinarDateInfo","renderBadge","createElement","label","bgColor","textColor","fontWeight","renderCTA","React","Fragment","type","size","customClassName","onClick","renderImage","src","alt","includes","name"],"mappings":"AA0BA,OAAAA,OAAA;AAAA,SAAA,UAAAC,SAAA;AAAA,SAAA,SAAAC,SAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,OAAA;AAAA,MAAMC,IAAiB;AAAA,EACrBC,WAAW;AAAA,EACXC,gBAAgB;AAAA,EAChBC,gBAAgB;AAAA,EAChBC,aAAa;AAAA,EACbC,mBAAmB;AAAA,EACnBC,eAAe;AAAA,EACfC,iBAAiB;AAAA,EACjBC,aAAa;AAAA,EACbC,gBAAgB;AAAA,EAChBC,gBAAgB;AAAA,EAChBC,aAAa;AAAA,EACbC,wBAAwB;AAAA,EACxBC,iBAAiB;AAAA,EACjBC,mBAAmB;AAAA,EACnBC,wBAAwB;AAAA,EACxBC,8BAA8B;AAChC,GAEaC,IAA0BA,CAAC;AAAA,EACtCC,iBAAAA,IAAkB;AAAA,EAClBC,YAAAA;AAAAA,EACAf,aAAAA;AAAAA,EACAC,mBAAAA;AAAAA,EACAe,aAAAA;AAAAA,EACAC,UAAAA,IAAW;AAAA,EACXC,cAAAA,IAAe;AAAA,EACfC,YAAAA,IAAa;AAAA,EACbC,SAAAA,IAAU;AAAA,EACVC,UAAAA,IAAW;AAAA,EACXC,WAAAA,IAAY;AAAA,EACZC,eAAAA,IAAgB;AAAA,EAChBC,YAAAA;AAAAA,EACAC,eAAAA;AAAAA,EACAC,iBAAAA;AAAAA,EACApB,gBAAAA;AACF,MAAM;AAEJ,QAAMqB,IAAcN,KAClBO,gBAAAA,EAAAA,cAAClC,GAAK;AAAA,IACJmC,OAAOP;AAAAA,IACP1B,WAAWA,EAAUQ;AAAAA,IACrB0B,SAAQ;AAAA,IACRC,WAAU;AAAA,IACVC,YAAW;AAAA,EAAA,CACZ,GAGGC,KAAad,KAAcD,MAC/BU,gBAAAA,EAAAA,cAACM,EAAMC,UAAQ,MACZhB,KAAcS,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAMhC,WAAWA,EAAUM;AAAAA,KAAgBkB,CAAc,GACvEF,KAAgBgB,gBAAAA,EAAAN,cAACnC,GAAM;AAAA,IAAC2C,MAAMb;AAAAA,IAAec,MAAK;AAAA,IAAKR,OAAOT;AAAAA,IAASkB,iBAAiB,GAAG1C,EAAUO,eAAe;AAAA,IAAaoC,SAASf;AAAAA,EAAAA,CAAa,CAC1I,GAGZgB,IAAcvB,KAClBW,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKhC,WAAW,GAAGA,EAAUE,cAAc;AAAA,EAAA,GACzC8B,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKa,KAAKzB;AAAAA,IAAa0B,KAAI;AAAA,EAAA,CAAe,CACvC;AAILR,SAAAA,gBAAAA,EAAAN,cAAA,OAAA;AAAA,IAAKhC,WAAW,GAAGA,EAAUC,SAAS,IAAIiB,CAAe;AAAA,IAAeyB,SAASd;AAAAA,EAAAA,GAC9EV,MAAe,aAAayB,GAC7BN,gBAAAA,EAAAN,cAAA,OAAA;AAAA,IAAKhC,WAAWA,EAAUG;AAAAA,EAAAA,GACvBgB,MAAe,aAAaY,GAC5BZ,MAAe,qBAAqBmB,gBAAAA,EAAAN,cAAA,QAAA;AAAA,IAAMhC,WAAW,GAAGA,EAAUI,WAAW;AAAA,EAAkBA,GAAAA,CAAkB,GAEjH,CAAC,aAAa,SAAS,EAAE2C,SAAS5B,CAAW,KAC5Ca,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAMhC,WAAW,GAAGA,EAAUK,iBAAiB;AAAA,EAAA,GAAwBA,CAAwB,GAGhGc,MAAe,aACdmB,gBAAAA,EAAAN,cAAA,OAAA;AAAA,IAAKhC,WAAWA,EAAUS;AAAAA,EACvBC,GAAAA,KACDsB,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKhC,WAAW,GAAGA,EAAUY,sBAAsB;AAAA,EAAA,GACjDoB,gBAAAA,EAAAA,cAACjC,GAAI;AAAA,IAACiD,MAAK;AAAA,IAAShD,WAAU;AAAA,EAAA,CAAsB,GACpDgC,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAMhC,WAAWA,EAAUU;AAAAA,EAAAA,GAAiBA,CAAqB,CAC9D,GAEJoB,KACEQ,gBAAAA,EAAAN,cAAA,OAAA;AAAA,IAAKhC,WAAW,GAAGA,EAAUa,eAAe;AAAA,EAAA,GAC3CmB,gBAAAA,EAAAA,cAACjC,GAAI;AAAA,IAACiD,MAAK;AAAA,IAAQhD,WAAU;AAAA,EAAA,CAAsB,GACnDgC,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAMhC,WAAWA,EAAUW;AAAAA,EAAAA,GAAcmB,CAAsB,CAC5D,CAEJ,GAGNX,MAAe,oBACda,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKhC,WAAWA,EAAUc;AAAAA,EAAAA,GACxBkB,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKhC,WAAWA,EAAUe;AAAAA,EAAAA,CAAyB,GACnDiB,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKhC,WAAWA,EAAUgB;AAAAA,EAAAA,GACxBgB,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAMhC,WAAW,GAAGA,EAAUI,WAAW;AAAA,EAAkBA,GAAAA,CAAkB,GAC7EkC,gBAAAA,EAAAN,cAAA,QAAA;AAAA,IAAMhC,WAAW,GAAGA,EAAUK,iBAAiB;AAAA,KAAwBA,CAAwB,GAC9FgC,CACE,CACF,IAELA,CAEC,CACF;AAET;"}
|
package/dist/index27.js
CHANGED
@@ -1,5 +1,59 @@
|
|
1
|
-
|
1
|
+
var b = Object.defineProperty, w = Object.defineProperties;
|
2
|
+
var f = Object.getOwnPropertyDescriptors;
|
3
|
+
var i = Object.getOwnPropertySymbols;
|
4
|
+
var E = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
5
|
+
var d = (e, a, t) => a in e ? b(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, s = (e, a) => {
|
6
|
+
for (var t in a || (a = {}))
|
7
|
+
E.call(a, t) && d(e, t, a[t]);
|
8
|
+
if (i)
|
9
|
+
for (var t of i(a))
|
10
|
+
v.call(a, t) && d(e, t, a[t]);
|
11
|
+
return e;
|
12
|
+
}, m = (e, a) => w(e, f(a));
|
13
|
+
import r, { useRef as g } from "react";
|
14
|
+
function y(e) {
|
15
|
+
const {
|
16
|
+
label: a,
|
17
|
+
value: t,
|
18
|
+
checked: l,
|
19
|
+
disabled: h,
|
20
|
+
name: u,
|
21
|
+
onChange: c,
|
22
|
+
width: x
|
23
|
+
} = e, o = g(null);
|
24
|
+
return /* @__PURE__ */ r.createElement("div", {
|
25
|
+
className: `flex items-start gap-2 cursor-pointer bg-[var(--color-white)] border ${l ? "border-[#1088E7]" : "border-[#C9D4E3]"} rounded-[6px] p-2 transition-colors duration-300`,
|
26
|
+
onClick: () => {
|
27
|
+
var n;
|
28
|
+
return (n = o.current) == null ? void 0 : n.click();
|
29
|
+
},
|
30
|
+
style: {
|
31
|
+
width: x || "20vw"
|
32
|
+
}
|
33
|
+
}, /* @__PURE__ */ r.createElement("input", {
|
34
|
+
ref: o,
|
35
|
+
type: "radio",
|
36
|
+
id: t,
|
37
|
+
name: u,
|
38
|
+
value: t,
|
39
|
+
checked: l,
|
40
|
+
disabled: h,
|
41
|
+
className: "mt-1 h-4 w-4 cursor-pointer accent-[#1088E7] disabled:cursor-not-allowed disabled:opacity-50",
|
42
|
+
onChange: () => {
|
43
|
+
c && c(m(s({}, e), {
|
44
|
+
checked: !0
|
45
|
+
}));
|
46
|
+
}
|
47
|
+
}), /* @__PURE__ */ r.createElement("label", {
|
48
|
+
htmlFor: t,
|
49
|
+
className: `${e.helperLabel && "flex flex-col"} cursor-pointer`
|
50
|
+
}, /* @__PURE__ */ r.createElement("span", {
|
51
|
+
className: "text-sm text-[var(--color-gray-800)]"
|
52
|
+
}, a), e.helperLabel && /* @__PURE__ */ r.createElement("span", {
|
53
|
+
className: `text-xs text-[var(--color-gray-600)] ${e.maxWidth ? `max-w-[${e.maxWidth}]` : "max-w-[20vw]"} break-words whitespace-normal`
|
54
|
+
}, e.helperLabel)));
|
55
|
+
}
|
2
56
|
export {
|
3
|
-
|
57
|
+
y as Radio
|
4
58
|
};
|
5
59
|
//# sourceMappingURL=index27.js.map
|
package/dist/index27.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index27.js","sources":["../src/
|
1
|
+
{"version":3,"file":"index27.js","sources":["../src/components/Radio/index.tsx"],"sourcesContent":["import React, { useRef } from 'react';\n\nexport interface RadioProps {\n label: string;\n value: string;\n checked: boolean;\n disabled: boolean;\n name: string;\n onChange?: (props: RadioProps) => void;\n helperLabel?: string;\n maxWidth?: string;\n width?: string;\n}\n\nexport function Radio(props: RadioProps) {\n const { label, value, checked, disabled, name, onChange, width } = props;\n const radioRef = useRef<HTMLInputElement>(null);\n\n \n return (\n <div\n className={`flex items-start gap-2 cursor-pointer bg-[var(--color-white)] border ${checked ? 'border-[#1088E7]' : 'border-[#C9D4E3]'} rounded-[6px] p-2 transition-colors duration-300`}\n onClick={() => radioRef.current?.click()}\n style={{ width: width || '20vw' }}\n >\n <input\n ref={radioRef}\n type=\"radio\"\n id={value}\n name={name}\n value={value}\n checked={checked}\n disabled={disabled}\n className=\"mt-1 h-4 w-4 cursor-pointer accent-[#1088E7] disabled:cursor-not-allowed disabled:opacity-50\"\n onChange={() => {\n onChange && onChange({ ...props, checked: true });\n }}\n />\n <label htmlFor={value} className={`${props.helperLabel && \"flex flex-col\"} cursor-pointer`}>\n <span className=\"text-sm text-[var(--color-gray-800)]\">{label}</span>\n {props.helperLabel && (\n <span className={`text-xs text-[var(--color-gray-600)] ${props.maxWidth ? `max-w-[${props.maxWidth}]` : 'max-w-[20vw]'} break-words whitespace-normal`}>{props.helperLabel}</span>\n )}\n </label>\n </div>\n );\n}"],"names":["Radio","props","label","value","checked","disabled","name","onChange","width","radioRef","useRef","React","createElement","className","onClick","current","click","style","ref","type","id","__spreadProps","__spreadValues","htmlFor","helperLabel","maxWidth"],"mappings":";;;;;;;;;;;;;AAcO,SAASA,EAAMC,GAAmB;AAC/B,QAAA;AAAA,IAAEC,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,SAAAA;AAAAA,IAASC,UAAAA;AAAAA,IAAUC,MAAAA;AAAAA,IAAMC,UAAAA;AAAAA,IAAUC,OAAAA;AAAAA,EAAAA,IAAUP,GAC7DQ,IAAWC,EAAyB,IAAI;AAI1CC,SAAAA,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACIC,WAAW,wEAAwET,IAAU,qBAAqB,kBAAkB;AAAA,IACpIU,SAASA,MAAML;;AAAAA,cAAAA,IAAAA,EAASM,YAATN,gBAAAA,EAAkBO;AAAAA;AAAAA,IACjCC,OAAO;AAAA,MAAET,OAAOA,KAAS;AAAA,IAAA;AAAA,EAAO,GAEhCI,gBAAAA,EAAAA,cAAA,SAAA;AAAA,IACIM,KAAKT;AAAAA,IACLU,MAAK;AAAA,IACLC,IAAIjB;AAAAA,IACJG,MAAAA;AAAAA,IACAH,OAAAA;AAAAA,IACAC,SAAAA;AAAAA,IACAC,UAAAA;AAAAA,IACAQ,WAAU;AAAA,IACVN,UAAUA,MAAM;AACZA,MAAAA,KAAYA,EAASc,EAAAC,EAAA,IAAKrB,IAAL;AAAA,QAAYG,SAAS;AAAA,MAAA,EAAM;AAAA,IAAA;AAAA,EACpD,CACH,GACDQ,gBAAAA,EAAAA,cAAA,SAAA;AAAA,IAAOW,SAASpB;AAAAA,IAAOU,WAAW,GAAGZ,EAAMuB,eAAe,eAAe;AAAA,EAAA,GACrEZ,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAMC,WAAU;AAAA,EAAA,GAAwCX,CAAY,GACnED,EAAMuB,eACHb,gBAAAA,EAAAC,cAAA,QAAA;AAAA,IAAMC,WAAW,wCAAwCZ,EAAMwB,WAAW,UAAUxB,EAAMwB,QAAQ,MAAM,cAAc;AAAA,EAAA,GAAmCxB,EAAMuB,WAAkB,CAElL,CACN;AAEb;"}
|
package/dist/index28.js
CHANGED
@@ -1,5 +1,42 @@
|
|
1
|
-
|
1
|
+
var d = Object.defineProperty, m = Object.defineProperties;
|
2
|
+
var s = Object.getOwnPropertyDescriptors;
|
3
|
+
var u = Object.getOwnPropertySymbols;
|
4
|
+
var g = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
5
|
+
var o = (n, a, e) => a in n ? d(n, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[a] = e, c = (n, a) => {
|
6
|
+
for (var e in a || (a = {}))
|
7
|
+
g.call(a, e) && o(n, e, a[e]);
|
8
|
+
if (u)
|
9
|
+
for (var e of u(a))
|
10
|
+
f.call(a, e) && o(n, e, a[e]);
|
11
|
+
return n;
|
12
|
+
}, l = (n, a) => m(n, s(a));
|
13
|
+
import i from "react";
|
14
|
+
import { Radio as h } from "./index27.js";
|
15
|
+
function t() {
|
16
|
+
return t = Object.assign ? Object.assign.bind() : function(n) {
|
17
|
+
for (var a = 1; a < arguments.length; a++) {
|
18
|
+
var e = arguments[a];
|
19
|
+
for (var r in e) ({}).hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
20
|
+
}
|
21
|
+
return n;
|
22
|
+
}, t.apply(null, arguments);
|
23
|
+
}
|
24
|
+
function b(n) {
|
25
|
+
const a = (e) => {
|
26
|
+
n.onRadioGroupChange(l(c({}, e), {
|
27
|
+
checked: !0
|
28
|
+
}));
|
29
|
+
};
|
30
|
+
return /* @__PURE__ */ i.createElement("div", {
|
31
|
+
className: "flex gap-2"
|
32
|
+
}, n.options.map((e) => /* @__PURE__ */ i.createElement(h, t({
|
33
|
+
key: e.value
|
34
|
+
}, e, {
|
35
|
+
onChange: a,
|
36
|
+
checked: e.value === n.value
|
37
|
+
}))));
|
38
|
+
}
|
2
39
|
export {
|
3
|
-
|
40
|
+
b as RadioGroup
|
4
41
|
};
|
5
42
|
//# sourceMappingURL=index28.js.map
|
package/dist/index28.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index28.js","sources":["../src/
|
1
|
+
{"version":3,"file":"index28.js","sources":["../src/components/RadioGroup/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Radio, RadioProps } from '../Radio';\n\nexport interface RadioGroupProps {\n options: RadioProps[];\n onRadioGroupChange: (obj: RadioProps) => void;\n value?: string;\n}\n\nexport function RadioGroup(props: RadioGroupProps) {\n const handleRadioChange = (obj: RadioProps) => {\n props.onRadioGroupChange({ ...obj, checked: true });\n };\n return (\n <div className=\"flex gap-2\">\n {props.options.map((option) => (\n <Radio key={option.value} {...option} onChange={handleRadioChange} checked={option.value === props.value} />\n ))}\n </div>\n );\n}\n"],"names":["RadioGroup","props","handleRadioChange","obj","onRadioGroupChange","__spreadProps","__spreadValues","checked","React","createElement","className","options","map","option","Radio","_extends","key","value","onChange"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASO,SAASA,EAAWC,GAAwB;AAC3CC,QAAAA,IAAoBA,CAACC,MAAoB;AAC7CF,IAAAA,EAAMG,mBAAmBC,EAAAC,EAAA,IAAKH,IAAL;AAAA,MAAUI,SAAS;AAAA,IAAA,EAAM;AAAA,EACpD;AAEEC,SAAAA,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKC,WAAU;AAAA,EAAA,GACZT,EAAMU,QAAQC,IAAKC,OAClBJ,gBAAAA,EAAAA,cAACK,GAAKC,EAAA;AAAA,IAACC,KAAKH,EAAOI;AAAAA,KAAWJ,GAAM;AAAA,IAAEK,UAAUhB;AAAAA,IAAmBK,SAASM,EAAOI,UAAUhB,EAAMgB;AAAAA,EAAQ,CAAA,CAAA,CAC5G,CACE;AAET;"}
|
package/dist/index29.js
CHANGED
@@ -1,5 +1,36 @@
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='240'%20height='150'%20viewBox='0%200%20240%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_960_1151)'%3e%3crect%20x='159.789'%20y='2'%20width='60.7392'%20height='109.607'%20rx='8.2826'%20fill='%231088E7'/%3e%3crect%20x='182.156'%20y='5.58984'%20width='16.0125'%20height='2.20862'%20rx='1.10431'%20fill='white'/%3e%3crect%20x='162.547'%20y='11.9375'%20width='55.2174'%20height='91.6609'%20fill='%23DAE9FB'/%3e%3crect%20x='162.547'%20y='11.9375'%20width='55.2174'%20height='91.6603'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M176.077%2044.2553C175.082%2044.3146%20174.305%2045.1424%20174.305%2046.1442V54.9831C174.305%2064.6478%20180.446%2073.2345%20189.567%2076.3208C189.957%2076.4529%20190.38%2076.4529%20190.77%2076.3208C199.89%2073.2345%20206.032%2064.6478%20206.032%2054.9831V46.1442C206.032%2045.1424%20205.254%2044.3145%20204.259%2044.2552L204.248%2044.2545C204.233%2044.2534%20204.207%2044.2513%20204.169%2044.2477C204.092%2044.2406%20203.97%2044.2277%20203.805%2044.2056C203.476%2044.1614%20202.983%2044.0807%20202.363%2043.9374C201.122%2043.6505%20199.39%2043.1152%20197.47%2042.1266C195.536%2041.1303%20194.041%2040.0318%20193.036%2039.1887C192.535%2038.7679%20192.158%2038.413%20191.912%2038.1699C191.79%2038.0484%20191.7%2037.9551%20191.644%2037.8958C191.616%2037.8661%20191.597%2037.8449%20191.586%2037.833L191.578%2037.8241C191.22%2037.4192%20190.707%2037.1875%20190.168%2037.1875C189.63%2037.1875%20189.118%2037.4182%20188.76%2037.8222L188.758%2037.8245L188.751%2037.833C188.74%2037.8449%20188.72%2037.8661%20188.692%2037.8958C188.637%2037.9551%20188.547%2038.0484%20188.424%2038.1699C188.179%2038.413%20187.802%2038.7679%20187.3%2039.1887C186.295%2040.0318%20184.8%2041.1303%20182.866%2042.1266C181.089%2043.0423%20179.471%2043.5691%20178.256%2043.8698C178.159%2043.8938%20178.065%2043.9163%20177.973%2043.9374C177.354%2044.0807%20176.86%2044.1614%20176.531%2044.2056C176.367%2044.2277%20176.244%2044.2406%20176.168%2044.2477C176.13%2044.2513%20176.103%2044.2534%20176.089%2044.2545L176.077%2044.2553Z'%20fill='%231088E7'/%3e%3cpath%20d='M195.894%2054.165H184.433C184.053%2054.165%20183.689%2054.3146%20183.42%2054.581C183.151%2054.8474%20183%2055.2086%20183%2055.5854V64.103C183%2064.4797%20183.151%2064.841%20183.42%2065.1074C183.689%2065.3738%20184.053%2065.5234%20184.433%2065.5234H195.896C196.276%2065.5234%20196.64%2065.3738%20196.909%2065.1074C197.178%2064.841%20197.329%2064.4797%20197.329%2064.103V55.5854C197.329%2055.2086%20197.178%2054.8474%20196.909%2054.581C196.64%2054.3146%20196.276%2054.165%20195.896%2054.165H195.894Z'%20fill='white'%20stroke='white'%20stroke-width='0.604607'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M195.055%2054.1645V52.015C195.055%2050.685%20194.53%2049.4094%20193.596%2048.4689C192.662%2047.5284%20191.395%2047%20190.074%2047C188.754%2047%20187.487%2047.5284%20186.553%2048.4689C185.619%2049.4094%20185.094%2050.685%20185.094%2052.015V54.1645'%20stroke='white'%20stroke-width='1.58454'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M190.165%2061.6287C190.662%2061.6287%20191.139%2061.4311%20191.491%2061.0795C191.843%2060.7279%20192.04%2060.251%20192.04%2059.7537C192.04%2059.2564%20191.843%2058.7795%20191.491%2058.4278C191.139%2058.0762%20190.662%2057.8787%20190.165%2057.8787C189.668%2057.8787%20189.191%2058.0762%20188.839%2058.4278C188.488%2058.7795%20188.29%2059.2564%20188.29%2059.7537C188.29%2060.251%20188.488%2060.7279%20188.839%2061.0795C189.191%2061.4311%20189.668%2061.6287%20190.165%2061.6287Z'%20fill='%231088E7'%20stroke='%231088E7'%20stroke-width='0.604607'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M79.8662%20104.325C80.0261%20104.196%20108.297%20104.568%20124.752%20121.693C141.206%20138.818%20139.159%20151.964%20139.159%20151.964L15.6779%20151.909C15.6779%20151.909%207.69057%20133.341%2046.551%20109.367L79.8662%20104.325Z'%20fill='white'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M100.204%2088.1076C100.965%2087.0277%20102.375%2086.6832%20103.587%2086.1564C104.599%2085.7179%20105.636%2084.8716%20105.794%2083.8516C105.847%2083.5028%20105.644%2083.1687%20105.337%2082.9956C100.853%2080.4622%2098.9581%2074.9382%2095.6606%2070.9055C91.9804%2066.3956%2086.1994%2063.6883%2080.3824%2063.6991C69.1436%2063.7209%2062.2348%2071.6822%2059.3516%2081.8796C58.8592%2083.6308%2058.4408%2085.4325%2058.5164%2087.2499C58.62%2089.7833%2060.0174%2091.1672%2061.0998%2093.2731C62.1347%2095.2849%2058.6427%20100.645%2058.6427%20100.645L75.2532%20121.407L82.9165%20106.612C87.3885%20108.419%2091.9332%20109.451%2095.398%20105.079C98.481%20101.19%2099.0883%2095.5649%2099.4852%2090.7804C99.5626%2089.8507%2099.6581%2088.8757%20100.195%2088.1101L100.204%2088.1076Z'%20fill='white'/%3e%3cpath%20d='M100.204%2088.1076C101.541%2086.2212%20105.28%2086.4551%20105.794%2083.8516C105.847%2083.5028%20105.644%2083.1687%20105.337%2082.9956C100.853%2080.4622%2098.9581%2074.9382%2095.6606%2070.9055C91.9804%2066.3956%2086.1994%2063.6883%2080.3825%2063.6991C69.1436%2063.7209%2062.2348%2071.6822%2059.3516%2081.8796C58.8592%2083.6308%2058.4408%2085.4325%2058.5164%2087.2499C58.62%2089.7833%2060.0174%2091.1672%2061.0998%2093.2731C62.1347%2095.2849%2058.6427%20100.645%2058.6427%20100.645L75.2532%20121.407L82.9165%20106.612C95.4845%20112.341%2098.8652%20101.09%2099.4895%2090.7813C99.5669%2089.8515%2099.6624%2088.8766%20100.199%2088.111L100.204%2088.1076Z'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.7732%2063.816C81.0717%2063.0895%2077.9917%2064.0248%2076.1558%2066.1347'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M93.8328%2076.999C93.5066%2076.7858%2093.028%2077.2339%2093.1933%2077.5819C93.3587%2077.93%2093.9721%2077.8864%2094.1113%2077.521C94.2505%2077.1556%2093.872%2076.7249%2093.4892%2076.7815C93.1063%2076.838%2092.8584%2077.3122%2093.0063%2077.6733C93.202%2078.1518%2093.9938%2078.204%2094.2505%2077.7516C94.3505%2077.5732%2094.3679%2077.347%2094.2766%2077.1643C94.1461%2076.9033%2093.8067%2076.7771%2093.5327%2076.8685C93.2977%2076.9468%2093.1107%2077.2252%2093.2194%2077.4514C93.3282%2077.6776%2093.7632%2077.608%2093.7371%2077.3601C93.4892%2077.2121%2093.1803%2077.6472%2093.3978%2077.8342'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M87.3931%2094.916C89.0245%2097.0651%2092.1132%2097.9612%2094.6408%2097.0259'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M58.7775%2099.7675C56.4761%20102.604%2050.981%20107.576%2048.123%20109.85C52.9562%20117.914%2060.8252%20124.556%2066.6866%20131.904C69.8496%20127.401%2073.1558%20123.002%2076.5956%20118.71L58.7775%2099.7675Z'%20fill='%23FFF644'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M76.7317%20118.501C76.6641%20118.594%2086.2382%20127.401%2085.9793%20126.554C85.7203%20125.707%2083.1611%20106.488%2083.1611%20106.488L76.7317%20118.501Z'%20fill='%23FFF644'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M89.7389%2057.58C87.1561%2052.9774%2078.5558%2050.449%2073.8458%2050.9549C66.9443%2051.6958%2060.1427%2055.098%2057.2613%2061.585C57.1051%2061.9396%2057.4172%2062.3268%2057.7971%2062.2485C57.9311%2062.2223%2058.0643%2062.2005%2058.2034%2062.1932C58.8101%2062.1563%2058.8777%2063.0711%2058.2717%2063.1481C53.4191%2063.7449%2048.9054%2066.9183%2046.7818%2071.3306C46.6145%2071.674%2046.8968%2072.0553%2047.2766%2072.0212C48.7435%2071.8791%2050.252%2072.167%2051.5625%2072.8409C51.8999%2073.0159%2051.926%2073.4783%2051.6056%2073.6797C50.5383%2074.3468%2049.7778%2075.4932%2049.4274%2076.7183C48.9996%2078.2162%2049.115%2079.8154%2049.4037%2081.3476C50.5737%2087.6213%2055.0764%2093.4608%2061.1276%2095.273C61.5547%2095.3995%2061.9108%2094.9345%2061.6763%2094.5585C60.3465%2092.4248%2060.3649%2089.53%2061.0564%2087.038C61.3853%2085.8529%2061.8601%2084.6708%2062.7061%2083.7813C64.7755%2081.6084%2068.232%2081.8339%2071.1119%2080.9838C74.0584%2080.1117%2076.5859%2077.9118%2077.8592%2075.1115C78.9651%2072.6768%2079.5138%2069.9472%2080.9504%2067.6328C81.6101%2066.568%2082.4804%2065.5149%2083.7092%2065.1025C84.2429%2064.9221%2084.4909%2064.3554%2088.865%2065.7478C89.0022%2065.7934%2089.1524%2065.775%2089.2746%2065.6976C90.066%2065.1877%2092.7634%2062.9601%2089.7457%2057.5903L89.7389%2057.58Z'%20fill='white'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M76.8875%2078.424C76.3194%2076.5261%2075.3096%2074.6866%2073.6966%2073.5351C72.0836%2072.3835%2069.8009%2072.0521%2068.1014%2073.0682C66.6774%2073.9214%2065.8883%2075.5223%2065.3705%2077.0966C65.1166%2077.879%2064.9049%2078.6841%2064.889%2079.5109C64.8547%2081.2519%2065.7152%2082.9466%2067.0002%2084.1289C68.2815%2085.3091%2069.9552%2086.0091%2071.6657%2086.3383'%20fill='white'/%3e%3cpath%20d='M76.8875%2078.424C76.3194%2076.5261%2075.3096%2074.6866%2073.6966%2073.5351C72.0836%2072.3835%2069.8009%2072.0521%2068.1014%2073.0682C66.6774%2073.9214%2065.8883%2075.5223%2065.3705%2077.0966C65.1166%2077.879%2064.9049%2078.6841%2064.889%2079.5109C64.8547%2081.2519%2065.7152%2082.9466%2067.0002%2084.1289C68.2815%2085.3091%2069.9552%2086.0091%2071.6657%2086.3383'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M69.0261%2076.2249C71.4972%2076.7568%2073.6307%2078.6388%2074.4601%2081.0235'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M72.468%2078.3499C71.6255%2079.0323%2070.9293%2079.8925%2070.4399%2080.8643'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M93.2853%2083.1018C95.4617%2082.7591%2096.779%2079.6433%2096.2277%2076.1426C95.6764%2072.6419%2093.4651%2070.0819%2091.2888%2070.4246C89.1124%2070.7674%2087.795%2073.8831%2088.3463%2077.3838C88.8977%2080.8845%2091.1089%2083.4446%2093.2853%2083.1018Z'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M87.9007%2077.6247L76.7639%2077.8335'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M71.0514%20126.027C71.0514%20126.027%2071.3977%20129.049%2074.5966%20129.571L69.5019%20142.672L78.1302%20150.157L85.1939%20150.135L88.6296%20145.078L80.1423%20130.053C80.1423%20130.053%2083.0334%20127.933%2083.3381%20124.953L76.4662%20118.353L71.0487%20126.023L71.0514%20126.027Z'%20fill='%231088E7'/%3e%3cpath%20d='M94.2024%2074.5685C91.4811%2073.3196%2088.0637%2073.7569%2085.7497%2075.6559'%20stroke='%231088E7'%20stroke-width='0.937456'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20clip-path='url(%23clip1_960_1151)'%3e%3cpath%20d='M161.19%20119.089C161.349%20118.973%20187.606%20121.05%20203.843%20136.604C220.08%20152.158%20217.286%20157.025%20217.286%20157.025H95.5639C95.5639%20157.025%2093.9829%20136.95%20132.328%20115.176L161.186%20119.093L161.19%20119.089Z'%20fill='%23CDE9FC'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M143.615%2079.5903C148.837%2077.134%20155.204%2077.2714%20160.314%2079.9484C164.729%2082.2632%20168.47%2086.4098%20173.368%2086.9552C173.705%2086.9927%20174.009%2087.2092%20174.092%2087.5381C174.337%2088.4956%20173.742%2089.6281%20173.014%2090.3941C172.144%2091.3142%20171.037%2092.1469%20170.775%2093.3834C170.588%2094.2577%20170.875%2095.1528%20171.154%2095.9979C172.602%20100.361%20174.179%20105.54%20172.931%20110.12C171.524%20115.266%20167.138%20116.069%20162.528%20116.161L162.174%20136.599L138.93%20120.037L143.615%2079.5903Z'%20fill='white'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M143.681%2079.7577C137.343%2080.6778%20133.332%2087.0351%20131.193%2093.0719C129.054%2099.1087%20127.702%20105.799%20123.174%20110.329C120.037%20113.464%20115.697%20115.192%20112.622%20118.385C110.816%20120.258%20109.505%20122.606%20108.856%20125.125C108.04%20128.289%20108.506%20132.145%20111.153%20134.056C113.803%20135.967%20118.58%20134.093%20118.222%20130.841C118.177%20130.429%20118.044%20130.009%20117.752%20129.713C117.419%20129.38%20116.937%20129.264%20116.471%20129.184C113.033%20128.622%20109.359%20129.796%20106.883%20132.249C104.411%20134.701%20103.201%20138.369%20103.733%20141.812C104.195%20144.793%20105.86%20147.478%20107.911%20149.693C110.766%20152.774%20114.507%20155.126%20118.639%20155.863C123.345%20156.704%20128.401%20155.322%20132.033%20152.208C135.662%20149.093%20137.793%20144.301%20137.68%20139.518C137.643%20138.002%20137.36%20136.416%20136.399%20135.242C135.437%20134.068%20133.644%20133.481%20132.346%20134.264C133.12%20137.503%20134.218%20140.738%20136.257%20143.369C138.296%20146%20141.421%20147.957%20144.75%20147.907C148.366%20147.857%20151.724%20145.346%20153.168%20142.032C154.612%20138.714%20154.254%20134.763%20152.598%20131.549C151.47%20129.359%20149.061%20127.274%20146.777%20128.198C144.184%20129.247%20144.334%20133.123%20145.865%20135.463C149.569%20141.121%20158.732%20141.92%20163.492%20137.12C168.257%20132.319%20167.529%20123.352%20162.177%20119.222C158.257%20116.195%20152.461%20115.45%20149.873%20111.228C147.184%20106.84%20149.419%20101.265%20150.089%2096.1611C150.884%2090.1035%20149.032%2083.4755%20144.338%2079.5703'%20fill='%23FFF644'/%3e%3cpath%20d='M143.677%2079.7577C137.339%2080.6778%20133.328%2087.0351%20131.189%2093.0719C129.05%2099.1087%20127.698%20105.799%20123.17%20110.329C120.033%20113.464%20115.693%20115.192%20112.618%20118.385C108.777%20122.232%20106.313%20130.2%20111.149%20134.06C113.799%20135.971%20118.576%20134.097%20118.219%20130.846C118.173%20130.433%20118.04%20130.013%20117.748%20129.717C117.416%20129.384%20116.933%20129.268%20116.467%20129.189C109.135%20127.952%20102.56%20134.464%20103.729%20141.816C104.191%20144.797%20105.856%20147.482%20107.907%20149.697C114.157%20156.729%20124.627%20158.519%20132.025%20152.208C135.654%20149.093%20137.785%20144.301%20137.668%20139.518C137.631%20138.002%20137.348%20136.416%20136.386%20135.242C135.425%20134.068%20133.632%20133.481%20132.333%20134.264C133.107%20137.503%20134.206%20140.738%20136.245%20143.369C141.051%20149.689%20149.665%20149.456%20153.152%20142.032C154.596%20138.714%20154.238%20134.763%20152.582%20131.549C151.454%20129.359%20149.045%20127.274%20146.76%20128.198C144.168%20129.247%20144.318%20133.123%20145.849%20135.463C149.552%20141.121%20158.715%20141.92%20163.476%20137.12C168.24%20132.319%20167.512%20123.352%20162.161%20119.222C158.241%20116.195%20152.444%20115.45%20149.856%20111.228C147.168%20106.84%20149.403%20101.265%20150.073%2096.1611C150.867%2090.1035%20149.016%2083.4755%20144.322%2079.5703'%20fill='%23FFF644'/%3e%3cpath%20d='M143.677%2079.7577C137.339%2080.6778%20133.328%2087.0351%20131.189%2093.0719C129.05%2099.1087%20127.698%20105.799%20123.17%20110.329C120.033%20113.464%20115.693%20115.192%20112.618%20118.385C108.777%20122.232%20106.313%20130.2%20111.149%20134.06C113.799%20135.971%20118.576%20134.097%20118.219%20130.846C118.173%20130.433%20118.04%20130.013%20117.748%20129.717C117.416%20129.384%20116.933%20129.268%20116.467%20129.189C109.135%20127.952%20102.56%20134.464%20103.729%20141.816C104.191%20144.797%20105.856%20147.482%20107.907%20149.697C114.157%20156.729%20124.627%20158.519%20132.025%20152.208C135.654%20149.093%20137.785%20144.301%20137.668%20139.518C137.631%20138.002%20137.348%20136.416%20136.386%20135.242C135.425%20134.068%20133.632%20133.481%20132.333%20134.264C133.107%20137.503%20134.206%20140.738%20136.245%20143.369C141.051%20149.689%20149.665%20149.456%20153.152%20142.032C154.596%20138.714%20154.238%20134.763%20152.582%20131.549C151.454%20129.359%20149.045%20127.274%20146.76%20128.198C144.168%20129.247%20144.318%20133.123%20145.849%20135.463C149.552%20141.121%20158.715%20141.92%20163.476%20137.12C168.24%20132.319%20167.512%20123.352%20162.161%20119.222C158.241%20116.195%20152.444%20115.45%20149.856%20111.228C147.168%20106.84%20149.403%20101.265%20150.073%2096.1611C150.867%2090.1035%20149.016%2083.4755%20144.322%2079.5703'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M151.738%2094.2656C150.332%2093.3372%20148.667%2092.696%20146.986%2092.8251C145.305%2092.9542%20143.636%2093.9908%20143.087%2095.5812C142.625%2096.9135%20142.987%2098.3915%20143.511%2099.6987C143.774%20100.348%20144.077%20100.989%20144.518%20101.535C145.451%20102.688%20146.936%20103.321%20148.417%20103.387C149.899%20103.454%20151.372%20102.996%20152.666%20102.276'%20fill='white'/%3e%3cpath%20d='M151.738%2094.2656C150.332%2093.3372%20148.667%2092.696%20146.986%2092.8251C145.305%2092.9542%20143.636%2093.9908%20143.087%2095.5812C142.625%2096.9135%20142.987%2098.3915%20143.511%2099.6987C143.774%20100.348%20144.077%20100.989%20144.518%20101.535C145.451%20102.688%20146.936%20103.321%20148.417%20103.387C149.899%20103.454%20151.372%20102.996%20152.666%20102.276'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M145.414%2097.1353C147.312%2096.1319%20149.733%2096.1902%20151.577%2097.2893'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M148.83%2096.6406C148.655%2097.5441%20148.672%2098.4891%20148.884%2099.3884'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M156.865%2079.9375C154.352%2080.8534%20152.458%2083.2848%20152.18%2085.9452'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M159.22%2083.3452C158.874%2083.2078%20158.512%2083.7198%20158.737%2084.0154C158.962%2084.311%20159.527%2084.1487%20159.582%2083.7823C159.636%2083.4159%20159.203%2083.0829%20158.853%2083.2119C158.504%2083.341%20158.367%2083.8323%20158.575%2084.1403C158.849%2084.5525%20159.602%2084.4443%20159.756%2083.9738C159.815%2083.7865%20159.785%2083.5741%20159.665%2083.4201C159.494%2083.1994%20159.149%2083.1453%20158.907%2083.2869C158.704%2083.4076%20158.583%2083.7032%20158.724%2083.8905C158.866%2084.0779%20159.265%2083.9322%20159.19%2083.7032C158.928%2083.6116%20158.724%2084.0779%20158.966%2084.2111'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M161.852%20102.555C163.795%20104.253%20166.862%20104.495%20169.05%20103.129'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_960_1151'%3e%3crect%20width='240'%20height='150'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_960_1151'%3e%3crect%20width='122.09'%20height='79.0696'%20fill='white'%20transform='translate(95.7031%2077.4258)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
1
|
+
import e, { useState as s, useEffect as l } from "react";
|
2
|
+
import { Icon as m } from "./index4.js";
|
3
|
+
const f = ({
|
4
|
+
title: i,
|
5
|
+
content: r,
|
6
|
+
defaultOpen: a,
|
7
|
+
overflow: o
|
8
|
+
}) => {
|
9
|
+
const [t, n] = s(!1);
|
10
|
+
return l(() => {
|
11
|
+
n(a || !1);
|
12
|
+
}, [a]), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", {
|
13
|
+
className: "flex items-center cursor-pointer max-w-[50vw]",
|
14
|
+
onClick: () => n(!t)
|
15
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
16
|
+
className: `transform transition-transform duration-300 ${t ? "rotate-90" : ""}`
|
17
|
+
}, /* @__PURE__ */ e.createElement(m, {
|
18
|
+
name: "rightSide"
|
19
|
+
})), /* @__PURE__ */ e.createElement("h4", {
|
20
|
+
className: "text-[#1B2636] font-inter text-[18px] font-semibold leading-[24px]"
|
21
|
+
}, i)), /* @__PURE__ */ e.createElement("div", {
|
22
|
+
className: `
|
23
|
+
overflow-${o || "hidden"}
|
24
|
+
transition-all
|
25
|
+
duration-300
|
26
|
+
ml-1
|
27
|
+
mt-[1vw]
|
28
|
+
${t ? "max-h-[1000vh] opacity-100 visible h-auto" : "max-h-0 opacity-0 invisible h-0"}`
|
29
|
+
}, r), /* @__PURE__ */ e.createElement("div", {
|
30
|
+
className: `h-[1px] bg-[#E5E7EB] ${t ? "hidden" : "block"}`
|
31
|
+
}));
|
32
|
+
};
|
2
33
|
export {
|
3
|
-
|
34
|
+
f as Accordion
|
4
35
|
};
|
5
36
|
//# sourceMappingURL=index29.js.map
|
package/dist/index29.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index29.js","sources":["../src/assets/icons/banner-demo-img.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='240'%20height='150'%20viewBox='0%200%20240%20150'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_960_1151)'%3e%3crect%20x='159.789'%20y='2'%20width='60.7392'%20height='109.607'%20rx='8.2826'%20fill='%231088E7'/%3e%3crect%20x='182.156'%20y='5.58984'%20width='16.0125'%20height='2.20862'%20rx='1.10431'%20fill='white'/%3e%3crect%20x='162.547'%20y='11.9375'%20width='55.2174'%20height='91.6609'%20fill='%23DAE9FB'/%3e%3crect%20x='162.547'%20y='11.9375'%20width='55.2174'%20height='91.6603'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M176.077%2044.2553C175.082%2044.3146%20174.305%2045.1424%20174.305%2046.1442V54.9831C174.305%2064.6478%20180.446%2073.2345%20189.567%2076.3208C189.957%2076.4529%20190.38%2076.4529%20190.77%2076.3208C199.89%2073.2345%20206.032%2064.6478%20206.032%2054.9831V46.1442C206.032%2045.1424%20205.254%2044.3145%20204.259%2044.2552L204.248%2044.2545C204.233%2044.2534%20204.207%2044.2513%20204.169%2044.2477C204.092%2044.2406%20203.97%2044.2277%20203.805%2044.2056C203.476%2044.1614%20202.983%2044.0807%20202.363%2043.9374C201.122%2043.6505%20199.39%2043.1152%20197.47%2042.1266C195.536%2041.1303%20194.041%2040.0318%20193.036%2039.1887C192.535%2038.7679%20192.158%2038.413%20191.912%2038.1699C191.79%2038.0484%20191.7%2037.9551%20191.644%2037.8958C191.616%2037.8661%20191.597%2037.8449%20191.586%2037.833L191.578%2037.8241C191.22%2037.4192%20190.707%2037.1875%20190.168%2037.1875C189.63%2037.1875%20189.118%2037.4182%20188.76%2037.8222L188.758%2037.8245L188.751%2037.833C188.74%2037.8449%20188.72%2037.8661%20188.692%2037.8958C188.637%2037.9551%20188.547%2038.0484%20188.424%2038.1699C188.179%2038.413%20187.802%2038.7679%20187.3%2039.1887C186.295%2040.0318%20184.8%2041.1303%20182.866%2042.1266C181.089%2043.0423%20179.471%2043.5691%20178.256%2043.8698C178.159%2043.8938%20178.065%2043.9163%20177.973%2043.9374C177.354%2044.0807%20176.86%2044.1614%20176.531%2044.2056C176.367%2044.2277%20176.244%2044.2406%20176.168%2044.2477C176.13%2044.2513%20176.103%2044.2534%20176.089%2044.2545L176.077%2044.2553Z'%20fill='%231088E7'/%3e%3cpath%20d='M195.894%2054.165H184.433C184.053%2054.165%20183.689%2054.3146%20183.42%2054.581C183.151%2054.8474%20183%2055.2086%20183%2055.5854V64.103C183%2064.4797%20183.151%2064.841%20183.42%2065.1074C183.689%2065.3738%20184.053%2065.5234%20184.433%2065.5234H195.896C196.276%2065.5234%20196.64%2065.3738%20196.909%2065.1074C197.178%2064.841%20197.329%2064.4797%20197.329%2064.103V55.5854C197.329%2055.2086%20197.178%2054.8474%20196.909%2054.581C196.64%2054.3146%20196.276%2054.165%20195.896%2054.165H195.894Z'%20fill='white'%20stroke='white'%20stroke-width='0.604607'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M195.055%2054.1645V52.015C195.055%2050.685%20194.53%2049.4094%20193.596%2048.4689C192.662%2047.5284%20191.395%2047%20190.074%2047C188.754%2047%20187.487%2047.5284%20186.553%2048.4689C185.619%2049.4094%20185.094%2050.685%20185.094%2052.015V54.1645'%20stroke='white'%20stroke-width='1.58454'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M190.165%2061.6287C190.662%2061.6287%20191.139%2061.4311%20191.491%2061.0795C191.843%2060.7279%20192.04%2060.251%20192.04%2059.7537C192.04%2059.2564%20191.843%2058.7795%20191.491%2058.4278C191.139%2058.0762%20190.662%2057.8787%20190.165%2057.8787C189.668%2057.8787%20189.191%2058.0762%20188.839%2058.4278C188.488%2058.7795%20188.29%2059.2564%20188.29%2059.7537C188.29%2060.251%20188.488%2060.7279%20188.839%2061.0795C189.191%2061.4311%20189.668%2061.6287%20190.165%2061.6287Z'%20fill='%231088E7'%20stroke='%231088E7'%20stroke-width='0.604607'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M79.8662%20104.325C80.0261%20104.196%20108.297%20104.568%20124.752%20121.693C141.206%20138.818%20139.159%20151.964%20139.159%20151.964L15.6779%20151.909C15.6779%20151.909%207.69057%20133.341%2046.551%20109.367L79.8662%20104.325Z'%20fill='white'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M100.204%2088.1076C100.965%2087.0277%20102.375%2086.6832%20103.587%2086.1564C104.599%2085.7179%20105.636%2084.8716%20105.794%2083.8516C105.847%2083.5028%20105.644%2083.1687%20105.337%2082.9956C100.853%2080.4622%2098.9581%2074.9382%2095.6606%2070.9055C91.9804%2066.3956%2086.1994%2063.6883%2080.3824%2063.6991C69.1436%2063.7209%2062.2348%2071.6822%2059.3516%2081.8796C58.8592%2083.6308%2058.4408%2085.4325%2058.5164%2087.2499C58.62%2089.7833%2060.0174%2091.1672%2061.0998%2093.2731C62.1347%2095.2849%2058.6427%20100.645%2058.6427%20100.645L75.2532%20121.407L82.9165%20106.612C87.3885%20108.419%2091.9332%20109.451%2095.398%20105.079C98.481%20101.19%2099.0883%2095.5649%2099.4852%2090.7804C99.5626%2089.8507%2099.6581%2088.8757%20100.195%2088.1101L100.204%2088.1076Z'%20fill='white'/%3e%3cpath%20d='M100.204%2088.1076C101.541%2086.2212%20105.28%2086.4551%20105.794%2083.8516C105.847%2083.5028%20105.644%2083.1687%20105.337%2082.9956C100.853%2080.4622%2098.9581%2074.9382%2095.6606%2070.9055C91.9804%2066.3956%2086.1994%2063.6883%2080.3825%2063.6991C69.1436%2063.7209%2062.2348%2071.6822%2059.3516%2081.8796C58.8592%2083.6308%2058.4408%2085.4325%2058.5164%2087.2499C58.62%2089.7833%2060.0174%2091.1672%2061.0998%2093.2731C62.1347%2095.2849%2058.6427%20100.645%2058.6427%20100.645L75.2532%20121.407L82.9165%20106.612C95.4845%20112.341%2098.8652%20101.09%2099.4895%2090.7813C99.5669%2089.8515%2099.6624%2088.8766%20100.199%2088.111L100.204%2088.1076Z'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.7732%2063.816C81.0717%2063.0895%2077.9917%2064.0248%2076.1558%2066.1347'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M93.8328%2076.999C93.5066%2076.7858%2093.028%2077.2339%2093.1933%2077.5819C93.3587%2077.93%2093.9721%2077.8864%2094.1113%2077.521C94.2505%2077.1556%2093.872%2076.7249%2093.4892%2076.7815C93.1063%2076.838%2092.8584%2077.3122%2093.0063%2077.6733C93.202%2078.1518%2093.9938%2078.204%2094.2505%2077.7516C94.3505%2077.5732%2094.3679%2077.347%2094.2766%2077.1643C94.1461%2076.9033%2093.8067%2076.7771%2093.5327%2076.8685C93.2977%2076.9468%2093.1107%2077.2252%2093.2194%2077.4514C93.3282%2077.6776%2093.7632%2077.608%2093.7371%2077.3601C93.4892%2077.2121%2093.1803%2077.6472%2093.3978%2077.8342'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M87.3931%2094.916C89.0245%2097.0651%2092.1132%2097.9612%2094.6408%2097.0259'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M58.7775%2099.7675C56.4761%20102.604%2050.981%20107.576%2048.123%20109.85C52.9562%20117.914%2060.8252%20124.556%2066.6866%20131.904C69.8496%20127.401%2073.1558%20123.002%2076.5956%20118.71L58.7775%2099.7675Z'%20fill='%23FFF644'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M76.7317%20118.501C76.6641%20118.594%2086.2382%20127.401%2085.9793%20126.554C85.7203%20125.707%2083.1611%20106.488%2083.1611%20106.488L76.7317%20118.501Z'%20fill='%23FFF644'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M89.7389%2057.58C87.1561%2052.9774%2078.5558%2050.449%2073.8458%2050.9549C66.9443%2051.6958%2060.1427%2055.098%2057.2613%2061.585C57.1051%2061.9396%2057.4172%2062.3268%2057.7971%2062.2485C57.9311%2062.2223%2058.0643%2062.2005%2058.2034%2062.1932C58.8101%2062.1563%2058.8777%2063.0711%2058.2717%2063.1481C53.4191%2063.7449%2048.9054%2066.9183%2046.7818%2071.3306C46.6145%2071.674%2046.8968%2072.0553%2047.2766%2072.0212C48.7435%2071.8791%2050.252%2072.167%2051.5625%2072.8409C51.8999%2073.0159%2051.926%2073.4783%2051.6056%2073.6797C50.5383%2074.3468%2049.7778%2075.4932%2049.4274%2076.7183C48.9996%2078.2162%2049.115%2079.8154%2049.4037%2081.3476C50.5737%2087.6213%2055.0764%2093.4608%2061.1276%2095.273C61.5547%2095.3995%2061.9108%2094.9345%2061.6763%2094.5585C60.3465%2092.4248%2060.3649%2089.53%2061.0564%2087.038C61.3853%2085.8529%2061.8601%2084.6708%2062.7061%2083.7813C64.7755%2081.6084%2068.232%2081.8339%2071.1119%2080.9838C74.0584%2080.1117%2076.5859%2077.9118%2077.8592%2075.1115C78.9651%2072.6768%2079.5138%2069.9472%2080.9504%2067.6328C81.6101%2066.568%2082.4804%2065.5149%2083.7092%2065.1025C84.2429%2064.9221%2084.4909%2064.3554%2088.865%2065.7478C89.0022%2065.7934%2089.1524%2065.775%2089.2746%2065.6976C90.066%2065.1877%2092.7634%2062.9601%2089.7457%2057.5903L89.7389%2057.58Z'%20fill='white'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M76.8875%2078.424C76.3194%2076.5261%2075.3096%2074.6866%2073.6966%2073.5351C72.0836%2072.3835%2069.8009%2072.0521%2068.1014%2073.0682C66.6774%2073.9214%2065.8883%2075.5223%2065.3705%2077.0966C65.1166%2077.879%2064.9049%2078.6841%2064.889%2079.5109C64.8547%2081.2519%2065.7152%2082.9466%2067.0002%2084.1289C68.2815%2085.3091%2069.9552%2086.0091%2071.6657%2086.3383'%20fill='white'/%3e%3cpath%20d='M76.8875%2078.424C76.3194%2076.5261%2075.3096%2074.6866%2073.6966%2073.5351C72.0836%2072.3835%2069.8009%2072.0521%2068.1014%2073.0682C66.6774%2073.9214%2065.8883%2075.5223%2065.3705%2077.0966C65.1166%2077.879%2064.9049%2078.6841%2064.889%2079.5109C64.8547%2081.2519%2065.7152%2082.9466%2067.0002%2084.1289C68.2815%2085.3091%2069.9552%2086.0091%2071.6657%2086.3383'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M69.0261%2076.2249C71.4972%2076.7568%2073.6307%2078.6388%2074.4601%2081.0235'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M72.468%2078.3499C71.6255%2079.0323%2070.9293%2079.8925%2070.4399%2080.8643'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M93.2853%2083.1018C95.4617%2082.7591%2096.779%2079.6433%2096.2277%2076.1426C95.6764%2072.6419%2093.4651%2070.0819%2091.2888%2070.4246C89.1124%2070.7674%2087.795%2073.8831%2088.3463%2077.3838C88.8977%2080.8845%2091.1089%2083.4446%2093.2853%2083.1018Z'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M87.9007%2077.6247L76.7639%2077.8335'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M71.0514%20126.027C71.0514%20126.027%2071.3977%20129.049%2074.5966%20129.571L69.5019%20142.672L78.1302%20150.157L85.1939%20150.135L88.6296%20145.078L80.1423%20130.053C80.1423%20130.053%2083.0334%20127.933%2083.3381%20124.953L76.4662%20118.353L71.0487%20126.023L71.0514%20126.027Z'%20fill='%231088E7'/%3e%3cpath%20d='M94.2024%2074.5685C91.4811%2073.3196%2088.0637%2073.7569%2085.7497%2075.6559'%20stroke='%231088E7'%20stroke-width='0.937456'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20clip-path='url(%23clip1_960_1151)'%3e%3cpath%20d='M161.19%20119.089C161.349%20118.973%20187.606%20121.05%20203.843%20136.604C220.08%20152.158%20217.286%20157.025%20217.286%20157.025H95.5639C95.5639%20157.025%2093.9829%20136.95%20132.328%20115.176L161.186%20119.093L161.19%20119.089Z'%20fill='%23CDE9FC'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M143.615%2079.5903C148.837%2077.134%20155.204%2077.2714%20160.314%2079.9484C164.729%2082.2632%20168.47%2086.4098%20173.368%2086.9552C173.705%2086.9927%20174.009%2087.2092%20174.092%2087.5381C174.337%2088.4956%20173.742%2089.6281%20173.014%2090.3941C172.144%2091.3142%20171.037%2092.1469%20170.775%2093.3834C170.588%2094.2577%20170.875%2095.1528%20171.154%2095.9979C172.602%20100.361%20174.179%20105.54%20172.931%20110.12C171.524%20115.266%20167.138%20116.069%20162.528%20116.161L162.174%20136.599L138.93%20120.037L143.615%2079.5903Z'%20fill='white'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M143.681%2079.7577C137.343%2080.6778%20133.332%2087.0351%20131.193%2093.0719C129.054%2099.1087%20127.702%20105.799%20123.174%20110.329C120.037%20113.464%20115.697%20115.192%20112.622%20118.385C110.816%20120.258%20109.505%20122.606%20108.856%20125.125C108.04%20128.289%20108.506%20132.145%20111.153%20134.056C113.803%20135.967%20118.58%20134.093%20118.222%20130.841C118.177%20130.429%20118.044%20130.009%20117.752%20129.713C117.419%20129.38%20116.937%20129.264%20116.471%20129.184C113.033%20128.622%20109.359%20129.796%20106.883%20132.249C104.411%20134.701%20103.201%20138.369%20103.733%20141.812C104.195%20144.793%20105.86%20147.478%20107.911%20149.693C110.766%20152.774%20114.507%20155.126%20118.639%20155.863C123.345%20156.704%20128.401%20155.322%20132.033%20152.208C135.662%20149.093%20137.793%20144.301%20137.68%20139.518C137.643%20138.002%20137.36%20136.416%20136.399%20135.242C135.437%20134.068%20133.644%20133.481%20132.346%20134.264C133.12%20137.503%20134.218%20140.738%20136.257%20143.369C138.296%20146%20141.421%20147.957%20144.75%20147.907C148.366%20147.857%20151.724%20145.346%20153.168%20142.032C154.612%20138.714%20154.254%20134.763%20152.598%20131.549C151.47%20129.359%20149.061%20127.274%20146.777%20128.198C144.184%20129.247%20144.334%20133.123%20145.865%20135.463C149.569%20141.121%20158.732%20141.92%20163.492%20137.12C168.257%20132.319%20167.529%20123.352%20162.177%20119.222C158.257%20116.195%20152.461%20115.45%20149.873%20111.228C147.184%20106.84%20149.419%20101.265%20150.089%2096.1611C150.884%2090.1035%20149.032%2083.4755%20144.338%2079.5703'%20fill='%23FFF644'/%3e%3cpath%20d='M143.677%2079.7577C137.339%2080.6778%20133.328%2087.0351%20131.189%2093.0719C129.05%2099.1087%20127.698%20105.799%20123.17%20110.329C120.033%20113.464%20115.693%20115.192%20112.618%20118.385C108.777%20122.232%20106.313%20130.2%20111.149%20134.06C113.799%20135.971%20118.576%20134.097%20118.219%20130.846C118.173%20130.433%20118.04%20130.013%20117.748%20129.717C117.416%20129.384%20116.933%20129.268%20116.467%20129.189C109.135%20127.952%20102.56%20134.464%20103.729%20141.816C104.191%20144.797%20105.856%20147.482%20107.907%20149.697C114.157%20156.729%20124.627%20158.519%20132.025%20152.208C135.654%20149.093%20137.785%20144.301%20137.668%20139.518C137.631%20138.002%20137.348%20136.416%20136.386%20135.242C135.425%20134.068%20133.632%20133.481%20132.333%20134.264C133.107%20137.503%20134.206%20140.738%20136.245%20143.369C141.051%20149.689%20149.665%20149.456%20153.152%20142.032C154.596%20138.714%20154.238%20134.763%20152.582%20131.549C151.454%20129.359%20149.045%20127.274%20146.76%20128.198C144.168%20129.247%20144.318%20133.123%20145.849%20135.463C149.552%20141.121%20158.715%20141.92%20163.476%20137.12C168.24%20132.319%20167.512%20123.352%20162.161%20119.222C158.241%20116.195%20152.444%20115.45%20149.856%20111.228C147.168%20106.84%20149.403%20101.265%20150.073%2096.1611C150.867%2090.1035%20149.016%2083.4755%20144.322%2079.5703'%20fill='%23FFF644'/%3e%3cpath%20d='M143.677%2079.7577C137.339%2080.6778%20133.328%2087.0351%20131.189%2093.0719C129.05%2099.1087%20127.698%20105.799%20123.17%20110.329C120.033%20113.464%20115.693%20115.192%20112.618%20118.385C108.777%20122.232%20106.313%20130.2%20111.149%20134.06C113.799%20135.971%20118.576%20134.097%20118.219%20130.846C118.173%20130.433%20118.04%20130.013%20117.748%20129.717C117.416%20129.384%20116.933%20129.268%20116.467%20129.189C109.135%20127.952%20102.56%20134.464%20103.729%20141.816C104.191%20144.797%20105.856%20147.482%20107.907%20149.697C114.157%20156.729%20124.627%20158.519%20132.025%20152.208C135.654%20149.093%20137.785%20144.301%20137.668%20139.518C137.631%20138.002%20137.348%20136.416%20136.386%20135.242C135.425%20134.068%20133.632%20133.481%20132.333%20134.264C133.107%20137.503%20134.206%20140.738%20136.245%20143.369C141.051%20149.689%20149.665%20149.456%20153.152%20142.032C154.596%20138.714%20154.238%20134.763%20152.582%20131.549C151.454%20129.359%20149.045%20127.274%20146.76%20128.198C144.168%20129.247%20144.318%20133.123%20145.849%20135.463C149.552%20141.121%20158.715%20141.92%20163.476%20137.12C168.24%20132.319%20167.512%20123.352%20162.161%20119.222C158.241%20116.195%20152.444%20115.45%20149.856%20111.228C147.168%20106.84%20149.403%20101.265%20150.073%2096.1611C150.867%2090.1035%20149.016%2083.4755%20144.322%2079.5703'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M151.738%2094.2656C150.332%2093.3372%20148.667%2092.696%20146.986%2092.8251C145.305%2092.9542%20143.636%2093.9908%20143.087%2095.5812C142.625%2096.9135%20142.987%2098.3915%20143.511%2099.6987C143.774%20100.348%20144.077%20100.989%20144.518%20101.535C145.451%20102.688%20146.936%20103.321%20148.417%20103.387C149.899%20103.454%20151.372%20102.996%20152.666%20102.276'%20fill='white'/%3e%3cpath%20d='M151.738%2094.2656C150.332%2093.3372%20148.667%2092.696%20146.986%2092.8251C145.305%2092.9542%20143.636%2093.9908%20143.087%2095.5812C142.625%2096.9135%20142.987%2098.3915%20143.511%2099.6987C143.774%20100.348%20144.077%20100.989%20144.518%20101.535C145.451%20102.688%20146.936%20103.321%20148.417%20103.387C149.899%20103.454%20151.372%20102.996%20152.666%20102.276'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M145.414%2097.1353C147.312%2096.1319%20149.733%2096.1902%20151.577%2097.2893'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M148.83%2096.6406C148.655%2097.5441%20148.672%2098.4891%20148.884%2099.3884'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M156.865%2079.9375C154.352%2080.8534%20152.458%2083.2848%20152.18%2085.9452'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M159.22%2083.3452C158.874%2083.2078%20158.512%2083.7198%20158.737%2084.0154C158.962%2084.311%20159.527%2084.1487%20159.582%2083.7823C159.636%2083.4159%20159.203%2083.0829%20158.853%2083.2119C158.504%2083.341%20158.367%2083.8323%20158.575%2084.1403C158.849%2084.5525%20159.602%2084.4443%20159.756%2083.9738C159.815%2083.7865%20159.785%2083.5741%20159.665%2083.4201C159.494%2083.1994%20159.149%2083.1453%20158.907%2083.2869C158.704%2083.4076%20158.583%2083.7032%20158.724%2083.8905C158.866%2084.0779%20159.265%2083.9322%20159.19%2083.7032C158.928%2083.6116%20158.724%2084.0779%20158.966%2084.2111'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M161.852%20102.555C163.795%20104.253%20166.862%20104.495%20169.05%20103.129'%20stroke='%231088E7'%20stroke-width='1.06277'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_960_1151'%3e%3crect%20width='240'%20height='150'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_960_1151'%3e%3crect%20width='122.09'%20height='79.0696'%20fill='white'%20transform='translate(95.7031%2077.4258)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\""],"names":["__vite_glob_0_2"],"mappings":"AAAA,MAAeA,IAAA;"}
|
1
|
+
{"version":3,"file":"index29.js","sources":["../src/components/Accordion/index.tsx"],"sourcesContent":["import React, { FC, useEffect, useState } from 'react';\nimport { Icon } from '../Icon';\n\nexport interface AccordionProps {\n title: string;\n content: React.ReactNode;\n defaultOpen?: boolean;\n overflow?: \"hidden\" | \"visible\" | \"scroll\" | \"auto\" | undefined | string;\n}\n\nexport const Accordion: FC<AccordionProps> = ({ title, content, defaultOpen, overflow }) => {\n const [isOpen, setIsOpen] = useState(false);\n useEffect(()=>{\n setIsOpen(defaultOpen || false)\n },[defaultOpen])\n return (\n <div>\n <div className='flex items-center cursor-pointer max-w-[50vw]' onClick={() => setIsOpen(!isOpen)}>\n <div className={`transform transition-transform duration-300 ${isOpen ? 'rotate-90' : ''}`}>\n <Icon name=\"rightSide\" />\n </div>\n <h4 className=\"text-[#1B2636] font-inter text-[18px] font-semibold leading-[24px]\">{title}</h4>\n </div>\n <div className={`\n overflow-${overflow || \"hidden\"}\n transition-all\n duration-300\n ml-1\n mt-[1vw]\n ${isOpen \n ? 'max-h-[1000vh] opacity-100 visible h-auto'\n : 'max-h-0 opacity-0 invisible h-0'\n }`}>\n {content}\n </div>\n <div className={`h-[1px] bg-[#E5E7EB] ${!isOpen ? 'block' : 'hidden'}`}></div>\n </div>\n );\n};\n"],"names":["Accordion","title","content","defaultOpen","overflow","isOpen","setIsOpen","useState","useEffect","createElement","React","className","onClick","Icon","name"],"mappings":";;AAUO,MAAMA,IAAgCA,CAAC;AAAA,EAAEC,OAAAA;AAAAA,EAAOC,SAAAA;AAAAA,EAASC,aAAAA;AAAAA,EAAaC,UAAAA;AAAS,MAAM;AAC1F,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAS,EAAK;AAC1CC,SAAAA,EAAU,MAAI;AACZF,IAAAA,EAAUH,KAAe,EAAK;AAAA,EAAA,GAC9B,CAACA,CAAW,CAAC,qBAEbM,cACEC,OAAAA,MAAAA,gBAAAA,EAAAD,cAAA,OAAA;AAAA,IAAKE,WAAU;AAAA,IAAgDC,SAASA,MAAMN,EAAU,CAACD,CAAM;AAAA,EAAA,GAC7FI,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKE,WAAW,+CAA+CN,IAAS,cAAc,EAAE;AAAA,EAAA,GACtFI,gBAAAA,EAAAA,cAACI,GAAI;AAAA,IAACC,MAAK;AAAA,EAAa,CAAA,CACrB,GACLJ,gBAAAA,EAAAD,cAAA,MAAA;AAAA,IAAIE,WAAU;AAAA,KAAsEV,CAAU,CAC3F,GACLS,gBAAAA,EAAAD,cAAA,OAAA;AAAA,IAAKE,WAAW;AAAA,mBACHP,KAAY,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,UAK7BC,IACE,8CACA,iCAAiC;AAAA,EAEpCH,GAAAA,CACE,GACLQ,gBAAAA,EAAAD,cAAA,OAAA;AAAA,IAAKE,WAAW,wBAAyBN,IAAmB,WAAV,OAAkB;AAAA,EAAA,CAAS,CAC1E;AAET;"}
|
package/dist/index3.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
var s = Object.getOwnPropertySymbols;
|
2
|
-
var
|
2
|
+
var y = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
3
3
|
var b = (e, a) => {
|
4
4
|
var o = {};
|
5
5
|
for (var r in e)
|
6
|
-
|
6
|
+
y.call(e, r) && a.indexOf(r) < 0 && (o[r] = e[r]);
|
7
7
|
if (e != null && s)
|
8
8
|
for (var r of s(e))
|
9
|
-
a.indexOf(r) < 0 &&
|
9
|
+
a.indexOf(r) < 0 && h.call(e, r) && (o[r] = e[r]);
|
10
10
|
return o;
|
11
11
|
};
|
12
12
|
import l from "react";
|
@@ -29,9 +29,9 @@ const t = "focus-visible:outline outline-2 outline-[var(--color-blue-400)] outli
|
|
29
29
|
secondary: `bg-[var(--color-white)] text-[var(--color-gray-800)] hover:bg-[var(--color-gray-50)] border border-[var(--color-gray-400)] hover:border-[var(--color-gray-500)] ${t}`,
|
30
30
|
purchase: `bg-[var(--color-green-500)] text-[var(--color-white)] hover:bg-[var(--color-green-700)] border border-[var(--color-green-300)] ${t}`,
|
31
31
|
"purchase-secondary": `bg-[var(--color-green-50)] text-[var(--color-green-500)] hover:bg-[var(--color-green-400)] border border-[var(--color-green-500)] hover:border-[var(--color-green-700)] ${t}`,
|
32
|
-
negative: `bg-[var(--color-red-
|
33
|
-
"negative-secondary": `bg-[var(--color-red-50)] text-[var(--color-red-
|
34
|
-
link: `text-[var(--color-blue-500)] px-
|
32
|
+
negative: `bg-[var(--color-red-500)] text-[var(--color-white)] hover:bg-[var(--color-red-500)] border border-[var(--color-red-500)] hover:border-[var(--color-red-500)] ${t}`,
|
33
|
+
"negative-secondary": `bg-[var(--color-red-50)] text-[var(--color-red-500)] hover:bg-[var(--color-red-50)] border border-[var(--color-red-500)] hover:border-[var(--color-red-500)] ${t}`,
|
34
|
+
link: `text-[var(--color-blue-500)] px-0 py-0 hover:text-[var(--color-blue-600)] ${t}`,
|
35
35
|
sm: "px-3 py-1",
|
36
36
|
md: "px-4 py-2",
|
37
37
|
smRow: "px-3 py-0.5"
|
package/dist/index3.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index3.js","sources":["../src/components/Button/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { Map } from '../../utils/common.types';\nimport { Icon } from '../Icon';\n\nexport interface ButtonProps {\n /**\n * Type of the button\n */\n type?: 'primary' | 'secondary' | 'negative' | 'negative-secondary' | 'purchase' | 'purchase-secondary' | 'link';\n /**\n * Size of the button\n */\n size?: 'sm' | 'md' | 'smRow';\n /**\n * Button contents\n */\n label: string | '';\n /**\n * Icon name\n */\n icon?: string;\n /**\n * Icon position\n */\n iconPosition?: 'left' | 'right';\n /**\n * Disabled state\n */\n disabled?: boolean;\n /**\n * Optional click handler\n */\n onClick?: () => void;\n /**\n * Custom class name\n */\n customClassName?: string;\n}\n\nconst focusClass = 'focus-visible:outline outline-2 outline-[var(--color-blue-400)] outline-offset-2';\nconst disabledClassNames: Map = {\n primary: 'bg-[var(--color-gray-200)] text-[var(--color-gray-600)] pointer-events-none cursor-not-allowed',\n secondary
|
1
|
+
{"version":3,"file":"index3.js","sources":["../src/components/Button/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { Map } from '../../utils/common.types';\nimport { Icon } from '../Icon';\n\nexport interface ButtonProps {\n /**\n * Type of the button\n */\n type?: 'primary' | 'secondary' | 'negative' | 'negative-secondary' | 'purchase' | 'purchase-secondary' | 'link';\n /**\n * Size of the button\n */\n size?: 'sm' | 'md' | 'smRow';\n /**\n * Button contents\n */\n label: string | '';\n /**\n * Icon name\n */\n icon?: string;\n /**\n * Icon position\n */\n iconPosition?: 'left' | 'right';\n /**\n * Disabled state\n */\n disabled?: boolean;\n /**\n * Optional click handler\n */\n onClick?: () => void;\n /**\n * Custom class name\n */\n customClassName?: string;\n}\n\nconst focusClass = 'focus-visible:outline outline-2 outline-[var(--color-blue-400)] outline-offset-2';\nconst disabledClassNames: Map = {\n primary: 'bg-[var(--color-gray-200)] text-[var(--color-gray-600)] pointer-events-none cursor-not-allowed',\n secondary:\n 'text-[var(--color-gray-600)] border border-[var(--color-gray-300)] pointer-events-none cursor-not-allowed',\n link: 'text-[var(--color-gray-600)] pointer-events-none cursor-not-allowed'\n};\nconst classNames: Map = {\n primary: `bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)] ${focusClass}`,\n secondary: `bg-[var(--color-white)] text-[var(--color-gray-800)] hover:bg-[var(--color-gray-50)] border border-[var(--color-gray-400)] hover:border-[var(--color-gray-500)] ${focusClass}`,\n purchase: `bg-[var(--color-green-500)] text-[var(--color-white)] hover:bg-[var(--color-green-700)] border border-[var(--color-green-300)] ${focusClass}`,\n 'purchase-secondary': `bg-[var(--color-green-50)] text-[var(--color-green-500)] hover:bg-[var(--color-green-400)] border border-[var(--color-green-500)] hover:border-[var(--color-green-700)] ${focusClass}`,\n negative: `bg-[var(--color-red-500)] text-[var(--color-white)] hover:bg-[var(--color-red-500)] border border-[var(--color-red-500)] hover:border-[var(--color-red-500)] ${focusClass}`,\n 'negative-secondary': `bg-[var(--color-red-50)] text-[var(--color-red-500)] hover:bg-[var(--color-red-50)] border border-[var(--color-red-500)] hover:border-[var(--color-red-500)] ${focusClass}`,\n link: `text-[var(--color-blue-500)] px-0 py-0 hover:text-[var(--color-blue-600)] ${focusClass}`,\n sm: 'px-3 py-1',\n md: 'px-4 py-2',\n smRow: 'px-3 py-0.5'\n};\n\nexport const Button: FC<ButtonProps> = ({\n type = 'primary',\n size = 'md',\n label = '',\n icon = '',\n iconPosition = 'left',\n disabled = false,\n customClassName = '',\n ...props\n}) => {\n const sizeClassName = type !== 'link' ? classNames[size] : '';\n\n return (\n <button\n type=\"button\"\n className={`rounded-[6px] text-base font-normal flex gap-1 items-center min-w-fit ${sizeClassName} ${disabled ? disabledClassNames[type] : classNames[type]} ${customClassName}`}\n {...props}\n >\n {icon && iconPosition === 'left' && <Icon name={icon} className=\"\" />}\n {label}\n {icon && iconPosition === 'right' && <Icon name={icon} className=\"\" />}\n </button>\n );\n};\n"],"names":["focusClass","disabledClassNames","primary","secondary","link","classNames","purchase","negative","sm","md","smRow","Button","_a","_b","type","size","label","icon","iconPosition","disabled","customClassName","props","sizeClassName","React","createElement","_extends","className","Icon","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAMA,IAAa,oFACbC,IAA0B;AAAA,EAC9BC,SAAS;AAAA,EACTC,WACE;AAAA,EACFC,MAAM;AACR,GACMC,IAAkB;AAAA,EACtBH,SAAS,yFAAyFF,CAAU;AAAA,EAC5GG,WAAW,mKAAmKH,CAAU;AAAA,EACxLM,UAAU,kIAAkIN,CAAU;AAAA,EACtJ,sBAAsB,2KAA2KA,CAAU;AAAA,EAC3MO,UAAU,gKAAgKP,CAAU;AAAA,EACpL,sBAAsB,gKAAgKA,CAAU;AAAA,EAChMI,MAAM,8EAA8EJ,CAAU;AAAA,EAC9FQ,IAAI;AAAA,EACJC,IAAI;AAAA,EACJC,OAAO;AACT,GAEaC,IAA0BA,CAACC,MASlC;AATkC,MAAAC,IAAAD,GACtCE;AAAAA,UAAAA,IAAO;AAAA,IACPC,MAAAA,IAAO;AAAA,IACPC,OAAAA,IAAQ;AAAA,IACRC,MAAAA,IAAO;AAAA,IACPC,cAAAA,IAAe;AAAA,IACfC,UAAAA,IAAW;AAAA,IACXC,iBAAAA,IAAkB;AAAA,MAPoBP,GAQnCQ,IAAAA,EARmCR,GAQnCQ;AAAAA,IAPHP;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA;AAGA,QAAME,IAAgBR,MAAS,SAAST,EAAWU,CAAI,IAAI;AAGzDQ,SAAAA,gBAAAA,EAAAC,cAAA,UAAAC,EAAA;AAAA,IACEX,MAAK;AAAA,IACLY,WAAW,yEAAyEJ,CAAa,IAAIH,IAAWlB,EAAmBa,CAAI,IAAIT,EAAWS,CAAI,CAAC,IAAIM,CAAe;AAAA,EAAA,GAC1KC,CAAK,GAERJ,KAAQC,MAAiB,UAAUK,gBAAAA,EAAAC,cAACG,GAAI;AAAA,IAACC,MAAMX;AAAAA,IAAMS,WAAU;AAAA,EAAA,CAAI,GACnEV,GACAC,KAAQC,MAAiB,WAAWK,gBAAAA,EAAAC,cAACG,GAAI;AAAA,IAACC,MAAMX;AAAAA,IAAMS,WAAU;AAAA,EAAA,CAAI,CAC/D;AAEZ;"}
|
package/dist/index30.js
CHANGED
@@ -1,5 +1,50 @@
|
|
1
|
-
|
1
|
+
import c, { useState as p, useRef as y } from "react";
|
2
|
+
/* empty css */
|
3
|
+
import { Icon as E } from "./index4.js";
|
4
|
+
function I({
|
5
|
+
value: m,
|
6
|
+
onChange: e,
|
7
|
+
placeholder: o
|
8
|
+
}) {
|
9
|
+
const [a, l] = p([...m]), [i, r] = p(""), u = y(null), f = (t) => {
|
10
|
+
if (t.key === "Enter" && i.trim()) {
|
11
|
+
t.preventDefault();
|
12
|
+
const s = [...a, i.trim()];
|
13
|
+
l(s), r(""), e == null || e(s);
|
14
|
+
} else if (t.key === "Backspace" && i === "" && a.length > 0) {
|
15
|
+
const s = a.slice(0, -1);
|
16
|
+
l(s), e == null || e(s);
|
17
|
+
}
|
18
|
+
};
|
19
|
+
return /* @__PURE__ */ c.createElement("div", {
|
20
|
+
className: "input-with-tags-container",
|
21
|
+
onClick: () => {
|
22
|
+
var t;
|
23
|
+
return (t = u.current) == null ? void 0 : t.focus();
|
24
|
+
}
|
25
|
+
}, a.map((t, s) => /* @__PURE__ */ c.createElement("span", {
|
26
|
+
key: s,
|
27
|
+
className: "tag-in-inputwithtags"
|
28
|
+
}, t, /* @__PURE__ */ c.createElement("span", {
|
29
|
+
className: "close-icon-in-inputwithtags",
|
30
|
+
onClick: (w) => {
|
31
|
+
w.stopPropagation();
|
32
|
+
const n = a.filter((T, k) => k !== s);
|
33
|
+
l(n), e == null || e(n);
|
34
|
+
}
|
35
|
+
}, /* @__PURE__ */ c.createElement(E, {
|
36
|
+
name: "close"
|
37
|
+
})))), /* @__PURE__ */ c.createElement("input", {
|
38
|
+
className: "input-with-tags-input",
|
39
|
+
ref: u,
|
40
|
+
type: "text",
|
41
|
+
value: i,
|
42
|
+
onChange: (t) => r(t.target.value),
|
43
|
+
onKeyDown: f,
|
44
|
+
placeholder: o
|
45
|
+
}));
|
46
|
+
}
|
2
47
|
export {
|
3
|
-
|
48
|
+
I as InputWithTags
|
4
49
|
};
|
5
50
|
//# sourceMappingURL=index30.js.map
|