bonkers-ui 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/UiToggle.css +1 -0
- package/components/UiAlert/UiAlert.d.ts +1 -0
- package/components/UiAlert/UiAlert.js +12 -10
- package/components/UiAlert/UiAlert.js.map +1 -1
- package/components/UiBerRank/UiBerRank.d.ts +1 -0
- package/components/UiBerRank/UiBerRank.js +8 -6
- package/components/UiBerRank/UiBerRank.js.map +1 -1
- package/components/UiButton/UiButton.js +22 -128
- package/components/UiButton/UiButton.js.map +1 -1
- package/components/UiButton/_types.d.ts +0 -28
- package/components/UiButton/_types.js +1 -1
- package/components/UiButton/_types.js.map +1 -1
- package/components/UiCheckbox/UiCheckbox.d.ts +1 -0
- package/components/UiCheckbox/UiCheckbox.js +25 -23
- package/components/UiCheckbox/UiCheckbox.js.map +1 -1
- package/components/UiIcon/UiIcon.js.map +1 -1
- package/components/UiIconBadge/UiIconBadge.d.ts +3 -0
- package/components/UiIconBadge/UiIconBadge.js +35 -0
- package/components/UiIconBadge/UiIconBadge.js.map +1 -0
- package/components/UiIconBadge/_types.d.ts +15 -0
- package/components/UiIconBadge/_types.js +5 -0
- package/components/UiIconBadge/_types.js.map +1 -0
- package/components/UiIconBadge/index.d.ts +2 -0
- package/components/UiIconBadge/index.js +7 -0
- package/components/UiIconBadge/index.js.map +1 -0
- package/components/UiInput/UiInput.base.d.ts +1 -0
- package/components/UiInput/UiInput.base.js +11 -10
- package/components/UiInput/UiInput.base.js.map +1 -1
- package/components/UiInputRange/UiInputRange.d.ts +1 -0
- package/components/UiInputRange/UiInputRange.js +17 -15
- package/components/UiInputRange/UiInputRange.js.map +1 -1
- package/components/UiList/UiList.d.ts +1 -0
- package/components/UiList/UiList.js.map +1 -1
- package/components/UiList/UiListItem.d.ts +1 -0
- package/components/UiList/UiListItem.js +6 -5
- package/components/UiList/UiListItem.js.map +1 -1
- package/components/UiNotificationBadge/UiNotificationBadge.d.ts +3 -2
- package/components/UiNotificationBadge/UiNotificationBadge.js +16 -14
- package/components/UiNotificationBadge/UiNotificationBadge.js.map +1 -1
- package/components/UiPills/UiPills.d.ts +1 -0
- package/components/UiPills/UiPills.js +17 -15
- package/components/UiPills/UiPills.js.map +1 -1
- package/components/UiPlainRadio/UiPlainRadio.d.ts +1 -0
- package/components/UiPlainRadio/UiPlainRadio.js +66 -51
- package/components/UiPlainRadio/UiPlainRadio.js.map +1 -1
- package/components/UiProductCard/UiProductCard.d.ts +1 -0
- package/components/UiProductCard/UiProductCard.js +26 -29
- package/components/UiProductCard/UiProductCard.js.map +1 -1
- package/components/UiProgress/UiProgress.d.ts +1 -0
- package/components/UiProgress/UiProgress.js +17 -15
- package/components/UiProgress/UiProgress.js.map +1 -1
- package/components/UiRadio/UiRadio.js +20 -16
- package/components/UiRadio/UiRadio.js.map +1 -1
- package/components/UiRadioFancy/UiRadioFancy.d.ts +1 -0
- package/components/UiRadioFancy/UiRadioFancy.js +12 -10
- package/components/UiRadioFancy/UiRadioFancy.js.map +1 -1
- package/components/UiSelect/UiSelect.d.ts +1 -0
- package/components/UiSelect/UiSelect.js +15 -14
- package/components/UiSelect/UiSelect.js.map +1 -1
- package/components/UiSkeleton/UiSkeleton.d.ts +1 -0
- package/components/UiSkeleton/UiSkeleton.js +38 -37
- package/components/UiSkeleton/UiSkeleton.js.map +1 -1
- package/components/UiSnackbar/UiSnackbar.d.ts +1 -0
- package/components/UiSnackbar/UiSnackbar.js +26 -28
- package/components/UiSnackbar/UiSnackbar.js.map +1 -1
- package/components/UiStars/UiStars.d.ts +18 -0
- package/components/UiStars/UiStars.js +57 -0
- package/components/UiStars/UiStars.js.map +1 -0
- package/components/UiStars/_types.d.ts +12 -0
- package/components/UiStars/_types.js +6 -0
- package/components/UiStars/_types.js.map +1 -0
- package/components/UiStars/index.d.ts +3 -0
- package/components/UiStars/index.js +7 -0
- package/components/UiStars/index.js.map +1 -0
- package/components/UiTable/UiTable.js +10 -9
- package/components/UiTable/UiTable.js.map +1 -1
- package/components/UiTable/UiTableCell.js +13 -12
- package/components/UiTable/UiTableCell.js.map +1 -1
- package/components/UiTabs/UiTabs.d.ts +1 -0
- package/components/UiTabs/UiTabs.js +8 -6
- package/components/UiTabs/UiTabs.js.map +1 -1
- package/components/UiToggle/UiToggle.js +75 -49
- package/components/UiToggle/UiToggle.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +24 -24
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import
|
|
3
|
+
import b from "classnames";
|
|
4
4
|
import { UiTypography as m } from "../UiTypography/UiTypography.js";
|
|
5
5
|
import { ETypographySizes as u } from "../UiTypography/_types.js";
|
|
6
|
-
import { EColors as
|
|
7
|
-
import '../../assets/UiSelect.css';const
|
|
8
|
-
UiSelect:
|
|
9
|
-
},
|
|
6
|
+
import { EColors as f } from "../../_types/colors.js";
|
|
7
|
+
import '../../assets/UiSelect.css';const S = "_UiSelect_1fbno_1", w = {
|
|
8
|
+
UiSelect: S
|
|
9
|
+
}, z = ({
|
|
10
10
|
children: p,
|
|
11
11
|
heading: o,
|
|
12
12
|
subLabel: n,
|
|
13
13
|
disabled: s,
|
|
14
14
|
onChange: r,
|
|
15
|
+
className: h,
|
|
15
16
|
placeholder: a,
|
|
16
17
|
postfixIcon: i,
|
|
17
18
|
...l
|
|
18
19
|
}) => {
|
|
19
|
-
const [
|
|
20
|
+
const [v, x] = d.useState(l.value || l.defaultValue || ""), y = d.useCallback(
|
|
20
21
|
(c) => {
|
|
21
|
-
|
|
22
|
+
x(c.target.value), r == null || r(c);
|
|
22
23
|
},
|
|
23
24
|
[r]
|
|
24
25
|
);
|
|
25
|
-
return /* @__PURE__ */ t("div", { children: [
|
|
26
|
+
return /* @__PURE__ */ t("div", { className: h, children: [
|
|
26
27
|
o ? /* @__PURE__ */ e(
|
|
27
28
|
m,
|
|
28
29
|
{
|
|
@@ -31,8 +32,8 @@ import '../../assets/UiSelect.css';const f = "_UiSelect_1fbno_1", S = {
|
|
|
31
32
|
children: o
|
|
32
33
|
}
|
|
33
34
|
) : null,
|
|
34
|
-
/* @__PURE__ */ t("div", { className:
|
|
35
|
-
|
|
35
|
+
/* @__PURE__ */ t("div", { className: b(
|
|
36
|
+
w.UiSelect,
|
|
36
37
|
"relative",
|
|
37
38
|
"rounded-xl",
|
|
38
39
|
"border",
|
|
@@ -55,8 +56,8 @@ import '../../assets/UiSelect.css';const f = "_UiSelect_1fbno_1", S = {
|
|
|
55
56
|
outline-0
|
|
56
57
|
`,
|
|
57
58
|
disabled: s,
|
|
58
|
-
value:
|
|
59
|
-
onChange:
|
|
59
|
+
value: v,
|
|
60
|
+
onChange: y,
|
|
60
61
|
children: [
|
|
61
62
|
a ? /* @__PURE__ */ e("option", { value: "", disabled: !0, hidden: !0, children: a }) : null,
|
|
62
63
|
p
|
|
@@ -85,7 +86,7 @@ import '../../assets/UiSelect.css';const f = "_UiSelect_1fbno_1", S = {
|
|
|
85
86
|
m,
|
|
86
87
|
{
|
|
87
88
|
size: u.SM,
|
|
88
|
-
color:
|
|
89
|
+
color: f.SECONDARY_ALT,
|
|
89
90
|
className: "mt-xxs",
|
|
90
91
|
children: n
|
|
91
92
|
}
|
|
@@ -93,6 +94,6 @@ import '../../assets/UiSelect.css';const f = "_UiSelect_1fbno_1", S = {
|
|
|
93
94
|
] });
|
|
94
95
|
};
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
z as UiSelect
|
|
97
98
|
};
|
|
98
99
|
//# sourceMappingURL=UiSelect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiSelect.js","sources":["../../../src/components/UiSelect/UiSelect.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { UiTypography, ETypographySizes, EColors } from \"../UiTypography\";\nimport styles from \"./UiSelect.module.css\";\n\ntype TSelectProps = {\n\theading?: string\n\tsubLabel?: string;\n\tdisabled?: boolean;\n\tvalue?: string | number | readonly string[];\n\tplaceholder?: string;\n\tpostfixIcon?: React.ReactNode;\n\tonChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;\n} & React.SelectHTMLAttributes<HTMLSelectElement>\n\nexport const UiSelect: React.FC<TSelectProps> = ({\n\tchildren,\n\theading,\n\tsubLabel,\n\tdisabled,\n\tonChange,\n\tplaceholder,\n\tpostfixIcon,\n\t...rest\n}) => {\n\tconst [value, setValue] = React.useState(rest.value || rest.defaultValue || \"\");\n\tconst handleChange = React.useCallback(\n\t\t(event: React.ChangeEvent<HTMLSelectElement>) => {\n\t\t\tsetValue(event.target.value);\n\t\t\tonChange?.(event);\n\t\t},\n\t\t[onChange],\n\t);\n\treturn (\n\t\t<div>\n\t\t\t{ heading\n\t\t\t\t? <UiTypography\n\t\t\t\t\tsize={ ETypographySizes.MD }\n\t\t\t\t\tclassName=\"mb-xxs\">\n\t\t\t\t\t{ heading }\n\t\t\t\t</UiTypography>\n\t\t\t\t: null\n\t\t\t}\n\t\t\t<div className={ cx(styles.UiSelect, \"relative\",\n\t\t\t\t\"rounded-xl\",\n\t\t\t\t\"border\",\n\t\t\t\t\"hover:border-secondary-alt-700\",\n\t\t\t\tdisabled\n\t\t\t\t\t? [\"pointer-events-none\", \"border-secondary-alt-300\", \"bg-secondary-alt-200\"]\n\t\t\t\t\t: [\"border-secondary-alt-500\", \"bg-white\"]\n\t\t\t) }>\n\t\t\t\t<select\n\t\t\t\t\t{ ...rest }\n\t\t\t\t\tclassName=\"m-0\n\t\t\t\t\tw-full\n\t\t\t\t\tcursor-pointer\n\t\t\t\t\tappearance-none\n\t\t\t\t\tborder-0\n\t\t\t\t\tbg-transparent\n\t\t\t\t\tp-sm\n\t\t\t\t\titalic\n\t\t\t\t\ttext-secondary-alt\n\t\t\t\t\toutline-0\n\t\t\t\t\t\"\n\t\t\t\t\tdisabled={ disabled }\n\t\t\t\t\tvalue={ value }\n\t\t\t\t\tonChange={ handleChange }\n\t\t\t\t>\n\t\t\t\t\t{ placeholder ? <option value={ \"\" } disabled hidden>{ placeholder }</option> : null }\n\t\t\t\t\t{ children }\n\t\t\t\t</select>\n\t\t\t\t<div className=\"absolute right-sm top-1/2 -translate-y-1/2\">\n\t\t\t\t\t{ postfixIcon\n\t\t\t\t\t\t? postfixIcon\n\t\t\t\t\t\t: (<svg\n\t\t\t\t\t\t\twidth=\"16\"\n\t\t\t\t\t\t\theight=\"16\"\n\t\t\t\t\t\t\tviewBox=\"0 0 16 16\"\n\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M13.25 6.8125L8.5 11.2812C8.34375 11.4375 8.15625 11.5 8 11.5C7.8125 11.5 7.625 11.4375 7.46875 11.3125L2.71875 6.8125C2.40625 6.53125 2.40625 6.0625 2.6875 5.75C2.96875 5.4375 3.4375 5.4375 3.75 5.71875L8 9.71875L12.2188 5.71875C12.5312 5.4375 13 5.4375 13.2812 5.75C13.5625 6.0625 13.5625 6.53125 13.25 6.8125Z\"\n\t\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>)\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{ subLabel\n\t\t\t\t? (<UiTypography\n\t\t\t\t\tsize={ ETypographySizes.SM }\n\t\t\t\t\tcolor={ EColors.SECONDARY_ALT }\n\t\t\t\t\tclassName=\"mt-xxs\"\n\t\t\t\t>\n\t\t\t\t\t{ subLabel }\n\t\t\t\t</UiTypography>)\n\t\t\t\t: null\n\t\t\t}\n\t\t</div>\n\t);\n};\n"],"names":["UiSelect","children","heading","subLabel","disabled","onChange","placeholder","postfixIcon","rest","value","setValue","React","handleChange","event","jsx","UiTypography","ETypographySizes","
|
|
1
|
+
{"version":3,"file":"UiSelect.js","sources":["../../../src/components/UiSelect/UiSelect.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { UiTypography, ETypographySizes, EColors } from \"../UiTypography\";\nimport styles from \"./UiSelect.module.css\";\n\ntype TSelectProps = {\n\theading?: string\n\tsubLabel?: string;\n\tdisabled?: boolean;\n\tvalue?: string | number | readonly string[];\n\tplaceholder?: string;\n\tpostfixIcon?: React.ReactNode;\n\tclassName?: string;\n\tonChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;\n} & React.SelectHTMLAttributes<HTMLSelectElement>\n\nexport const UiSelect: React.FC<TSelectProps> = ({\n\tchildren,\n\theading,\n\tsubLabel,\n\tdisabled,\n\tonChange,\n\tclassName,\n\tplaceholder,\n\tpostfixIcon,\n\t...rest\n}) => {\n\tconst [value, setValue] = React.useState(rest.value || rest.defaultValue || \"\");\n\tconst handleChange = React.useCallback(\n\t\t(event: React.ChangeEvent<HTMLSelectElement>) => {\n\t\t\tsetValue(event.target.value);\n\t\t\tonChange?.(event);\n\t\t},\n\t\t[onChange],\n\t);\n\treturn (\n\t\t<div className={ className }>\n\t\t\t{ heading\n\t\t\t\t? <UiTypography\n\t\t\t\t\tsize={ ETypographySizes.MD }\n\t\t\t\t\tclassName=\"mb-xxs\">\n\t\t\t\t\t{ heading }\n\t\t\t\t</UiTypography>\n\t\t\t\t: null\n\t\t\t}\n\t\t\t<div className={ cx(styles.UiSelect, \"relative\",\n\t\t\t\t\"rounded-xl\",\n\t\t\t\t\"border\",\n\t\t\t\t\"hover:border-secondary-alt-700\",\n\t\t\t\tdisabled\n\t\t\t\t\t? [\"pointer-events-none\", \"border-secondary-alt-300\", \"bg-secondary-alt-200\"]\n\t\t\t\t\t: [\"border-secondary-alt-500\", \"bg-white\"]\n\t\t\t) }>\n\t\t\t\t<select\n\t\t\t\t\t{ ...rest }\n\t\t\t\t\tclassName=\"m-0\n\t\t\t\t\tw-full\n\t\t\t\t\tcursor-pointer\n\t\t\t\t\tappearance-none\n\t\t\t\t\tborder-0\n\t\t\t\t\tbg-transparent\n\t\t\t\t\tp-sm\n\t\t\t\t\titalic\n\t\t\t\t\ttext-secondary-alt\n\t\t\t\t\toutline-0\n\t\t\t\t\t\"\n\t\t\t\t\tdisabled={ disabled }\n\t\t\t\t\tvalue={ value }\n\t\t\t\t\tonChange={ handleChange }\n\t\t\t\t>\n\t\t\t\t\t{ placeholder ? <option value={ \"\" } disabled hidden>{ placeholder }</option> : null }\n\t\t\t\t\t{ children }\n\t\t\t\t</select>\n\t\t\t\t<div className=\"absolute right-sm top-1/2 -translate-y-1/2\">\n\t\t\t\t\t{ postfixIcon\n\t\t\t\t\t\t? postfixIcon\n\t\t\t\t\t\t: (<svg\n\t\t\t\t\t\t\twidth=\"16\"\n\t\t\t\t\t\t\theight=\"16\"\n\t\t\t\t\t\t\tviewBox=\"0 0 16 16\"\n\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M13.25 6.8125L8.5 11.2812C8.34375 11.4375 8.15625 11.5 8 11.5C7.8125 11.5 7.625 11.4375 7.46875 11.3125L2.71875 6.8125C2.40625 6.53125 2.40625 6.0625 2.6875 5.75C2.96875 5.4375 3.4375 5.4375 3.75 5.71875L8 9.71875L12.2188 5.71875C12.5312 5.4375 13 5.4375 13.2812 5.75C13.5625 6.0625 13.5625 6.53125 13.25 6.8125Z\"\n\t\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>)\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{ subLabel\n\t\t\t\t? (<UiTypography\n\t\t\t\t\tsize={ ETypographySizes.SM }\n\t\t\t\t\tcolor={ EColors.SECONDARY_ALT }\n\t\t\t\t\tclassName=\"mt-xxs\"\n\t\t\t\t>\n\t\t\t\t\t{ subLabel }\n\t\t\t\t</UiTypography>)\n\t\t\t\t: null\n\t\t\t}\n\t\t</div>\n\t);\n};\n"],"names":["UiSelect","children","heading","subLabel","disabled","onChange","className","placeholder","postfixIcon","rest","value","setValue","React","handleChange","event","jsxs","jsx","UiTypography","ETypographySizes","cx","styles","EColors"],"mappings":";;;;;;;;GAgBaA,IAAmC,CAAC;AAAA,EAChD,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACJ,MAAM;AACC,QAAA,CAACC,GAAOC,CAAQ,IAAIC,EAAM,SAASH,EAAK,SAASA,EAAK,gBAAgB,EAAE,GACxEI,IAAeD,EAAM;AAAA,IAC1B,CAACE,MAAgD;AACvC,MAAAH,EAAAG,EAAM,OAAO,KAAK,GAC3BT,KAAA,QAAAA,EAAWS;AAAA,IACZ;AAAA,IACA,CAACT,CAAQ;AAAA,EACV;AAEC,SAAA,gBAAAU,EAAC,SAAI,WAAAT,GACF,UAAA;AAAA,IACCJ,IAAA,gBAAAc;AAAA,MAACC;AAAA,MAAA;AAAA,QACF,MAAOC,EAAiB;AAAA,QACxB,WAAU;AAAA,QACR,UAAAhB;AAAA,MAAA;AAAA,IAAA,IAED;AAAA,IAEH,gBAAAa,EAAC,SAAI,WAAYI;AAAA,MAAGC,EAAO;AAAA,MAAU;AAAA,MACpC;AAAA,MACA;AAAA,MACA;AAAA,MACAhB,IACG,CAAC,uBAAuB,4BAA4B,sBAAsB,IAC1E,CAAC,4BAA4B,UAAU;AAAA,IAE1C,GAAA,UAAA;AAAA,MAAA,gBAAAW;AAAA,QAAC;AAAA,QAAA;AAAA,UACE,GAAGN;AAAA,UACL,WAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAWV,UAAAL;AAAA,UACA,OAAAM;AAAA,UACA,UAAWG;AAAA,UAET,UAAA;AAAA,YAAcN,IAAA,gBAAAS,EAAC,YAAO,OAAQ,IAAK,UAAQ,IAAC,QAAM,IAAG,UAAAT,EAAA,CAAa,IAAY;AAAA,YAC9EN;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,MACC,gBAAAe,EAAA,OAAA,EAAI,WAAU,8CACZ,eAEE,gBAAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACH,OAAM;AAAA,UACN,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,OAAM;AAAA,UAEN,UAAA,gBAAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACA,GAAE;AAAA,cACF,MAAK;AAAA,YAAA;AAAA,UAAA;AAAA,QACN;AAAA,MAAA,EAGH,CAAA;AAAA,IAAA,GACD;AAAA,IACEb,IACE,gBAAAa;AAAA,MAACC;AAAA,MAAA;AAAA,QACH,MAAOC,EAAiB;AAAA,QACxB,OAAQG,EAAQ;AAAA,QAChB,WAAU;AAAA,QAER,UAAAlB;AAAA,MAAA;AAAA,IAAA,IAED;AAAA,EAAA,GAEJ;AAEF;"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
3
|
+
import s from "classnames";
|
|
4
4
|
import { ESkeletonKind as o } from "./_types.js";
|
|
5
5
|
const b = ({
|
|
6
|
-
kind: c
|
|
7
|
-
|
|
6
|
+
kind: c,
|
|
7
|
+
className: n
|
|
8
|
+
}) => /* @__PURE__ */ e("div", { className: n, children: c === o.RESULT_CARD && /* @__PURE__ */ t(
|
|
8
9
|
"div",
|
|
9
10
|
{
|
|
10
|
-
className:
|
|
11
|
+
className: s(
|
|
11
12
|
"ui-skeleton-card",
|
|
12
13
|
"animate-pulse",
|
|
13
14
|
"border-2",
|
|
@@ -17,10 +18,10 @@ const b = ({
|
|
|
17
18
|
"rounded-2xl"
|
|
18
19
|
),
|
|
19
20
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ e(
|
|
21
22
|
"div",
|
|
22
23
|
{
|
|
23
|
-
className:
|
|
24
|
+
className: s(
|
|
24
25
|
"ui-skeleton-card__content",
|
|
25
26
|
"bg-secondary-alt-300",
|
|
26
27
|
"gap-xs",
|
|
@@ -30,11 +31,11 @@ const b = ({
|
|
|
30
31
|
"rounded-bl-xl",
|
|
31
32
|
"rounded-tl-xl"
|
|
32
33
|
),
|
|
33
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ t("div", { className: s("grid", "grow", "gap-xxs", "justify-items-center"), children: [
|
|
35
|
+
/* @__PURE__ */ e(
|
|
35
36
|
"div",
|
|
36
37
|
{
|
|
37
|
-
className:
|
|
38
|
+
className: s(
|
|
38
39
|
"ui-skeleton-card__content",
|
|
39
40
|
"bg-secondary-alt-400",
|
|
40
41
|
"h-xl",
|
|
@@ -44,10 +45,10 @@ const b = ({
|
|
|
44
45
|
)
|
|
45
46
|
}
|
|
46
47
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ e(
|
|
48
49
|
"div",
|
|
49
50
|
{
|
|
50
|
-
className:
|
|
51
|
+
className: s(
|
|
51
52
|
"ui-skeleton-card__content",
|
|
52
53
|
"bg-secondary-alt-400",
|
|
53
54
|
"h-xxxxl",
|
|
@@ -62,20 +63,20 @@ const b = ({
|
|
|
62
63
|
/* @__PURE__ */ t(
|
|
63
64
|
"div",
|
|
64
65
|
{
|
|
65
|
-
className:
|
|
66
|
+
className: s(
|
|
66
67
|
"ui-skeleton-main__content",
|
|
67
68
|
"bg-white",
|
|
68
69
|
"col-span-3"
|
|
69
70
|
),
|
|
70
71
|
children: [
|
|
71
|
-
/* @__PURE__ */ t("div", { className:
|
|
72
|
+
/* @__PURE__ */ t("div", { className: s(
|
|
72
73
|
"grid",
|
|
73
74
|
"p-sm"
|
|
74
75
|
), children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ e(
|
|
76
77
|
"div",
|
|
77
78
|
{
|
|
78
|
-
className:
|
|
79
|
+
className: s(
|
|
79
80
|
"bg-secondary-alt-400",
|
|
80
81
|
"h-md",
|
|
81
82
|
"mb-xxs",
|
|
@@ -84,60 +85,60 @@ const b = ({
|
|
|
84
85
|
)
|
|
85
86
|
}
|
|
86
87
|
),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ e("div", { className: s(
|
|
88
89
|
"flex",
|
|
89
90
|
"gap-sm",
|
|
90
91
|
"mb-xxs"
|
|
91
|
-
), children: ["w-2/5", "w-1/4"].map((l, a) => /* @__PURE__ */
|
|
92
|
+
), children: ["w-2/5", "w-1/4"].map((l, a) => /* @__PURE__ */ e(
|
|
92
93
|
"div",
|
|
93
94
|
{
|
|
94
|
-
className:
|
|
95
|
+
className: s(l, "h-md", "bg-secondary-alt-300", "rounded-sm")
|
|
95
96
|
},
|
|
96
97
|
a
|
|
97
98
|
)) }),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ e("div", { className: s(
|
|
99
100
|
"flex",
|
|
100
101
|
"justify-between"
|
|
101
|
-
), children: ["w-1/3", "w-1/4"].map((l, a) => /* @__PURE__ */
|
|
102
|
+
), children: ["w-1/3", "w-1/4"].map((l, a) => /* @__PURE__ */ e(
|
|
102
103
|
"div",
|
|
103
104
|
{
|
|
104
|
-
className:
|
|
105
|
+
className: s(l, "h-[20px]", a === 0 ? "bg-secondary-alt-400" : "bg-secondary-alt-300", "rounded-sm", "mb-xxs")
|
|
105
106
|
},
|
|
106
107
|
a
|
|
107
108
|
)) })
|
|
108
109
|
] }),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ e("div", { className: s(
|
|
110
111
|
"grid",
|
|
111
112
|
"grid-cols-4"
|
|
112
113
|
), children: Array.from({
|
|
113
114
|
length: 4
|
|
114
|
-
}).map((l, a) => /* @__PURE__ */
|
|
115
|
+
}).map((l, a) => /* @__PURE__ */ e("div", { className: s(
|
|
115
116
|
"border",
|
|
116
117
|
"border-secondary-alt-300",
|
|
117
118
|
"px-xs",
|
|
118
119
|
"py-md"
|
|
119
|
-
), children: /* @__PURE__ */
|
|
120
|
+
), children: /* @__PURE__ */ e("div", { className: s(
|
|
120
121
|
"place-items-center"
|
|
121
|
-
), children: ["w-2/3", "w-2/4"].map((
|
|
122
|
+
), children: ["w-2/3", "w-2/4"].map((d, r) => /* @__PURE__ */ e(
|
|
122
123
|
"div",
|
|
123
124
|
{
|
|
124
|
-
className:
|
|
125
|
+
className: s(
|
|
125
126
|
"bg-secondary-alt-300",
|
|
126
127
|
"mb-xxxs",
|
|
127
128
|
"rounded-sm",
|
|
128
|
-
|
|
129
|
-
|
|
129
|
+
d,
|
|
130
|
+
r === 1 ? "h-[23px]" : "h-[20px]"
|
|
130
131
|
)
|
|
131
132
|
},
|
|
132
|
-
|
|
133
|
+
r
|
|
133
134
|
)) }) }, a)) })
|
|
134
135
|
]
|
|
135
136
|
}
|
|
136
137
|
),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ e(
|
|
138
139
|
"div",
|
|
139
140
|
{
|
|
140
|
-
className:
|
|
141
|
+
className: s(
|
|
141
142
|
"ui-skeleton-cta-cell",
|
|
142
143
|
"bg-secondary-alt-200",
|
|
143
144
|
"flex-col",
|
|
@@ -149,11 +150,11 @@ const b = ({
|
|
|
149
150
|
"rounded-tr-xl"
|
|
150
151
|
),
|
|
151
152
|
children: ["w-3/4", "w-1/2", "w-3/4", "w-4/5"].map((l, a) => {
|
|
152
|
-
const
|
|
153
|
-
return /* @__PURE__ */
|
|
153
|
+
const d = a === 1 ? "h-lg" : "h-[20px]";
|
|
154
|
+
return /* @__PURE__ */ e(
|
|
154
155
|
"div",
|
|
155
156
|
{
|
|
156
|
-
className:
|
|
157
|
+
className: s(
|
|
157
158
|
"ui-skeleton-cta-cell__content",
|
|
158
159
|
"bg-secondary-alt-400",
|
|
159
160
|
"flex-col",
|
|
@@ -162,8 +163,8 @@ const b = ({
|
|
|
162
163
|
"mb-xxxs",
|
|
163
164
|
"rounded-sm",
|
|
164
165
|
l,
|
|
165
|
-
|
|
166
|
-
a === 3 ? "h-xxl bg-secondary-alt-500 mt-md" :
|
|
166
|
+
d,
|
|
167
|
+
a === 3 ? "h-xxl bg-secondary-alt-500 mt-md" : d
|
|
167
168
|
)
|
|
168
169
|
},
|
|
169
170
|
a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiSkeleton.js","sources":["../../../src/components/UiSkeleton/UiSkeleton.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { ESkeletonKind } from \"./_types\";\n\ntype UiSkeletonProps ={\n\tkind: ESkeletonKind\n\n}\n\nexport const UiSkeleton: React.FC<UiSkeletonProps> = ({\n\tkind\n}) => {\n\n\treturn (\n\t\t
|
|
1
|
+
{"version":3,"file":"UiSkeleton.js","sources":["../../../src/components/UiSkeleton/UiSkeleton.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { ESkeletonKind } from \"./_types\";\n\ntype UiSkeletonProps ={\n\tkind: ESkeletonKind\n\tclassName?: string\n}\n\nexport const UiSkeleton: React.FC<UiSkeletonProps> = ({\n\tkind,\n\tclassName\n}) => {\n\n\treturn (\n\t\t<div className={ className }>\n\t\t\t{ kind === ESkeletonKind.RESULT_CARD && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\"ui-skeleton-card\",\n\t\t\t\t\t\t\"animate-pulse\",\n\t\t\t\t\t\t\"border-2\",\n\t\t\t\t\t\t\"border-secondary-alt-300\",\n\t\t\t\t\t\t\"grid-cols-5\",\n\t\t\t\t\t\t\"grid\",\n\t\t\t\t\t\t\"rounded-2xl\",\n\t\t\t\t\t) }\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\"ui-skeleton-card__content\",\n\t\t\t\t\t\t\t\"bg-secondary-alt-300\",\n\t\t\t\t\t\t\t\"gap-xs\",\n\t\t\t\t\t\t\t\"items-center\",\n\t\t\t\t\t\t\t\"justify-center\",\n\t\t\t\t\t\t\t\"p-md\",\n\t\t\t\t\t\t\t\"rounded-bl-xl\",\n\t\t\t\t\t\t\t\"rounded-tl-xl\"\n\n\t\t\t\t\t\t) }\n\t\t\t\t\t>\n\t\t\t\t\t\t<div className={ cx(\"grid\", \"grow\", \"gap-xxs\", \"justify-items-center\") }>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\t\t\"ui-skeleton-card__content\",\n\t\t\t\t\t\t\t\t\t\"bg-secondary-alt-400\",\n\t\t\t\t\t\t\t\t\t\"h-xl\",\n\t\t\t\t\t\t\t\t\t\"mb-sm\",\n\t\t\t\t\t\t\t\t\t\"rounded-sm\",\n\t\t\t\t\t\t\t\t\t\"w-2/3\"\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\t\t\"ui-skeleton-card__content\",\n\t\t\t\t\t\t\t\t\t\"bg-secondary-alt-400\",\n\t\t\t\t\t\t\t\t\t\"h-xxxxl\",\n\t\t\t\t\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\t\t\t\t\"w-3/5\"\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t</div>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\"ui-skeleton-main__content\",\n\t\t\t\t\t\t\t\"bg-white\",\n\t\t\t\t\t\t\t\"col-span-3\"\n\t\t\t\t\t\t) }>\n\t\t\t\t\t\t<div className={ cx(\n\t\t\t\t\t\t\t\"grid\",\n\t\t\t\t\t\t\t\"p-sm\"\n\n\t\t\t\t\t\t) }>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\t\t\"bg-secondary-alt-400\",\n\t\t\t\t\t\t\t\t\t\"h-md\",\n\t\t\t\t\t\t\t\t\t\"mb-xxs\",\n\t\t\t\t\t\t\t\t\t\"rounded-sm\",\n\t\t\t\t\t\t\t\t\t\"w-3/5\"\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t<div className={ cx(\n\t\t\t\t\t\t\t\t\"flex\",\n\t\t\t\t\t\t\t\t\"gap-sm\",\n\t\t\t\t\t\t\t\t\"mb-xxs\"\n\t\t\t\t\t\t\t) }>\n\t\t\t\t\t\t\t\t{ [\"w-2/5\", \"w-1/4\"].map((widthClass, index) => {\n\t\t\t\t\t\t\t\t\tconst bgClass = index === 0 ? \"bg-secondary-alt-300\" : \"bg-secondary-alt-300\";\n\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\t\t\t\t\tclassName={ cx(widthClass, \"h-md\", bgClass, \"rounded-sm\") }\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}) }\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div className={ cx(\n\t\t\t\t\t\t\t\t\"flex\",\n\t\t\t\t\t\t\t\t\"justify-between\",\n\n\t\t\t\t\t\t\t) }>\n\t\t\t\t\t\t\t\t{ [\"w-1/3\", \"w-1/4\"].map((widthClass, index) => {\n\t\t\t\t\t\t\t\t\tconst heightClass = \"h-[20px]\";\n\t\t\t\t\t\t\t\t\tconst bgClass = index === 0 ? \"bg-secondary-alt-400\" : \"bg-secondary-alt-300\";\n\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\t\t\t\t\tclassName={ cx(widthClass, heightClass, bgClass, \"rounded-sm\", \"mb-xxs\") }\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}) }\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div className={ cx(\n\t\t\t\t\t\t\t\"grid\",\n\t\t\t\t\t\t\t\"grid-cols-4\",\n\n\t\t\t\t\t\t) } >\n\t\t\t\t\t\t\t{ Array.from({\n\t\t\t\t\t\t\t\tlength: 4\n\t\t\t\t\t\t\t}).map((_, index)=> (\n\t\t\t\t\t\t\t\t<div key={ index } className={ cx(\n\t\t\t\t\t\t\t\t\t\"border\",\n\t\t\t\t\t\t\t\t\t\"border-secondary-alt-300\",\n\t\t\t\t\t\t\t\t\t\"px-xs\",\n\t\t\t\t\t\t\t\t\t\"py-md\"\n\n\t\t\t\t\t\t\t\t) } >\n\t\t\t\t\t\t\t\t\t<div className={ cx(\n\t\t\t\t\t\t\t\t\t\t\"place-items-center\"\n\n\t\t\t\t\t\t\t\t\t) }>\n\t\t\t\t\t\t\t\t\t\t{ [\"w-2/3\", \"w-2/4\"].map((widthClass, index) => {\n\n\t\t\t\t\t\t\t\t\t\t\tconst heightClass = index === 1 ? \"h-[23px]\" : \"h-[20px]\";\n\n\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"bg-secondary-alt-300\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"mb-xxxs\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"rounded-sm\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidthClass,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theightClass\n\t\t\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}) }\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)) }\n\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t</div>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\"ui-skeleton-cta-cell\",\n\t\t\t\t\t\t\t\"bg-secondary-alt-200\",\n\t\t\t\t\t\t\t\"flex-col\",\n\t\t\t\t\t\t\t\"flex\",\n\t\t\t\t\t\t\t\"items-center\",\n\t\t\t\t\t\t\t\"px-sm\",\n\t\t\t\t\t\t\t\"py-md\",\n\t\t\t\t\t\t\t\"rounded-br-xl\",\n\t\t\t\t\t\t\t\"rounded-tr-xl\"\n\n\t\t\t\t\t\t) }>\n\t\t\t\t\t\t{ [\"w-3/4\", \"w-1/2\", \"w-3/4\", \"w-4/5\"].map((widthClass, index) => {\n\n\t\t\t\t\t\t\tconst heightClass = index === 1 ? \"h-lg\" : \"h-[20px]\";\n\t\t\t\t\t\t\tconst lastDivClass = index === 3 ? \"h-xxl bg-secondary-alt-500 mt-md\" : heightClass;\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\t\t\t\"ui-skeleton-cta-cell__content\",\n\t\t\t\t\t\t\t\t\t\t\"bg-secondary-alt-400\",\n\t\t\t\t\t\t\t\t\t\t\"flex-col\",\n\t\t\t\t\t\t\t\t\t\t\"flex\",\n\t\t\t\t\t\t\t\t\t\t\"h-[20px]\",\n\t\t\t\t\t\t\t\t\t\t\"mb-xxxs\",\n\t\t\t\t\t\t\t\t\t\t\"rounded-sm\",\n\t\t\t\t\t\t\t\t\t\twidthClass,\n\t\t\t\t\t\t\t\t\t\theightClass,\n\t\t\t\t\t\t\t\t\t\tlastDivClass\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}) }\n\n\t\t\t\t\t</div>\n\n\t\t\t\t</div>\n\n\t\t\t) }\n\n\t\t</div>\n\t);\n};\n"],"names":["UiSkeleton","kind","className","jsx","ESkeletonKind","jsxs","cx","widthClass","index","_","heightClass"],"mappings":"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"}
|
|
@@ -1,69 +1,67 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
4
|
-
import { ESnackbarTypes as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const l = {
|
|
8
|
-
[t.DEFAULT]: `
|
|
3
|
+
import n from "classnames";
|
|
4
|
+
import { ESnackbarTypes as e } from "./_types.js";
|
|
5
|
+
const m = {
|
|
6
|
+
[e.DEFAULT]: `
|
|
9
7
|
bg-white
|
|
10
8
|
text-secondary-700
|
|
11
9
|
|
|
12
10
|
`,
|
|
13
|
-
[
|
|
11
|
+
[e.PRIMARY]: `
|
|
14
12
|
bg-primary-600
|
|
15
13
|
text-white
|
|
16
14
|
`,
|
|
17
|
-
[
|
|
15
|
+
[e.WARNING]: `
|
|
18
16
|
bg-warning
|
|
19
17
|
text-white
|
|
20
18
|
`,
|
|
21
|
-
[
|
|
19
|
+
[e.ERROR]: `
|
|
22
20
|
bg-error
|
|
23
21
|
text-white
|
|
24
22
|
`,
|
|
25
|
-
[
|
|
23
|
+
[e.SECONDARY]: `
|
|
26
24
|
bg-secondary
|
|
27
25
|
text-white
|
|
28
26
|
`
|
|
29
|
-
},
|
|
30
|
-
kind:
|
|
31
|
-
title:
|
|
32
|
-
children:
|
|
33
|
-
|
|
27
|
+
}, b = ({
|
|
28
|
+
kind: t = e.SECONDARY,
|
|
29
|
+
title: r,
|
|
30
|
+
children: s,
|
|
31
|
+
className: i
|
|
32
|
+
}) => /* @__PURE__ */ o(
|
|
34
33
|
"div",
|
|
35
34
|
{
|
|
36
|
-
className:
|
|
35
|
+
className: n(
|
|
37
36
|
"ui-snackbar",
|
|
38
37
|
"flex",
|
|
39
38
|
"w-full",
|
|
40
|
-
"rounded-
|
|
39
|
+
"rounded-lg",
|
|
41
40
|
"items-center",
|
|
42
41
|
"justify-between",
|
|
43
42
|
"shadow-md",
|
|
44
43
|
"p-sm",
|
|
45
44
|
"flex-row-reverse",
|
|
46
45
|
"text-sm",
|
|
47
|
-
|
|
46
|
+
m[t],
|
|
47
|
+
i
|
|
48
48
|
),
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
50
|
+
/* @__PURE__ */ a(
|
|
51
|
+
"div",
|
|
52
52
|
{
|
|
53
|
-
kind: x.LINK,
|
|
54
|
-
size: c.SMALL,
|
|
55
53
|
style: {
|
|
56
|
-
color:
|
|
54
|
+
color: t === e.DEFAULT ? "black" : "white",
|
|
57
55
|
fontWeight: "normal"
|
|
58
56
|
},
|
|
59
|
-
children:
|
|
57
|
+
children: s
|
|
60
58
|
}
|
|
61
59
|
),
|
|
62
|
-
|
|
60
|
+
r
|
|
63
61
|
]
|
|
64
62
|
}
|
|
65
|
-
)
|
|
63
|
+
);
|
|
66
64
|
export {
|
|
67
|
-
|
|
65
|
+
b as UiSnackbar
|
|
68
66
|
};
|
|
69
67
|
//# sourceMappingURL=UiSnackbar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiSnackbar.js","sources":["../../../src/components/UiSnackbar/UiSnackbar.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { ESnackbarTypes } from \"./_types\";\
|
|
1
|
+
{"version":3,"file":"UiSnackbar.js","sources":["../../../src/components/UiSnackbar/UiSnackbar.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { ESnackbarTypes } from \"./_types\";\n\ntype UiSnackbarProps ={\n\tkind?: ESnackbarTypes;\n\ttitle: React.ReactNode;\n\tchildren: React.ReactNode;\n\tclassName?: string\n}\n\nconst kindClasses = {\n\t[ESnackbarTypes.DEFAULT]: `\n\t\tbg-white\n\t\ttext-secondary-700\n\n\t`,\n\t[ESnackbarTypes.PRIMARY]: `\n\t\tbg-primary-600\n\t\ttext-white\n\t`,\n\t[ESnackbarTypes.WARNING]: `\n\t\tbg-warning\n\t\ttext-white\n\t`,\n\t[ESnackbarTypes.ERROR]: `\n\t\tbg-error\n\t\ttext-white\n\t`,\n\t[ESnackbarTypes.SECONDARY]: `\n\t\tbg-secondary\n\t\ttext-white\n\t`,\n\n};\n\nexport const UiSnackbar: React.FC<UiSnackbarProps> = ({\n\n\tkind= ESnackbarTypes.SECONDARY,\n\ttitle,\n\tchildren,\n\tclassName\n}) => {\n\n\treturn (\n\n\t\t<div\n\t\t\tclassName={ cx(\n\t\t\t\t\"ui-snackbar\",\n\t\t\t\t\"flex\",\n\t\t\t\t\"w-full\",\n\t\t\t\t\"rounded-lg\",\n\t\t\t\t\"items-center\",\n\t\t\t\t\"justify-between\",\n\t\t\t\t\"shadow-md\",\n\t\t\t\t\"p-sm\",\n\t\t\t\t\"flex-row-reverse\",\n\t\t\t\t\"text-sm\",\n\t\t\t\tkindClasses[kind],\n\t\t\t\tclassName\n\t\t\t) }\n\t\t>\n\t\t\t<div\n\t\t\t\tstyle={ {\n\t\t\t\t\tcolor: kind === ESnackbarTypes.DEFAULT ? \"black\" : \"white\",\n\t\t\t\t\tfontWeight: \"normal\",\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</div>\n\n\t\t\t{ title }\n\t\t</div>\n\n\t);\n};\n"],"names":["kindClasses","ESnackbarTypes","UiSnackbar","kind","title","children","className","jsxs","cx","jsx"],"mappings":";;;;AAWA,MAAMA,IAAc;AAAA,EACnB,CAACC,EAAe,OAAO,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,EAK1B,CAACA,EAAe,OAAO,GAAG;AAAA;AAAA;AAAA;AAAA,EAI1B,CAACA,EAAe,OAAO,GAAG;AAAA;AAAA;AAAA;AAAA,EAI1B,CAACA,EAAe,KAAK,GAAG;AAAA;AAAA;AAAA;AAAA,EAIxB,CAACA,EAAe,SAAS,GAAG;AAAA;AAAA;AAAA;AAK7B,GAEaC,IAAwC,CAAC;AAAA,EAErD,MAAAC,IAAMF,EAAe;AAAA,EACrB,OAAAG;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACD,MAIE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACA,WAAYC;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAR,EAAYG,CAAI;AAAA,MAChBG;AAAA,IACD;AAAA,IAEA,UAAA;AAAA,MAAA,gBAAAG;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,OAAQ;AAAA,YACP,OAAON,MAASF,EAAe,UAAU,UAAU;AAAA,YACnD,YAAY;AAAA,UACb;AAAA,UAEE,UAAAI;AAAA,QAAA;AAAA,MACH;AAAA,MAEED;AAAA,IAAA;AAAA,EAAA;AACH;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EStarsSize, EStarColors } from './_types';
|
|
3
|
+
export declare const colorClasses: {
|
|
4
|
+
default: string;
|
|
5
|
+
primary: string;
|
|
6
|
+
white: string;
|
|
7
|
+
black: string;
|
|
8
|
+
current: string;
|
|
9
|
+
};
|
|
10
|
+
interface IUiStars {
|
|
11
|
+
starsFilled?: number;
|
|
12
|
+
size?: EStarsSize;
|
|
13
|
+
count?: number;
|
|
14
|
+
color?: EStarColors;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const UiStars: ({ starsFilled, size, count, className, color }: IUiStars) => React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import m from "classnames";
|
|
4
|
+
import { EStarColors as r, EStarsSize as e } from "./_types.js";
|
|
5
|
+
const p = {
|
|
6
|
+
[r.DEFAULT]: "text-accent-alt-600",
|
|
7
|
+
[r.PRIMARY]: "text-primary",
|
|
8
|
+
[r.WHITE]: "text-white",
|
|
9
|
+
[r.BLACK]: "text-black",
|
|
10
|
+
[r.CURRENT]: "text-current"
|
|
11
|
+
}, L = {
|
|
12
|
+
[e.SM]: "w-sm h-sm",
|
|
13
|
+
[e.MD]: "w-md h-md",
|
|
14
|
+
[e.LG]: "w-lg h-lg"
|
|
15
|
+
}, u = ({
|
|
16
|
+
starsFilled: C = 0,
|
|
17
|
+
size: f = e.MD,
|
|
18
|
+
count: i = 5,
|
|
19
|
+
className: d,
|
|
20
|
+
color: h = r.DEFAULT
|
|
21
|
+
}) => {
|
|
22
|
+
const s = Math.min(Math.max(C, 0), i);
|
|
23
|
+
return /* @__PURE__ */ t("div", { className: m("flex", d), children: Array.from({
|
|
24
|
+
length: i
|
|
25
|
+
}, (x, l) => {
|
|
26
|
+
const c = l < Math.floor(s), o = !c && l === Math.floor(s);
|
|
27
|
+
let a = 0;
|
|
28
|
+
return o && (a = s % 1 * 100), /* @__PURE__ */ t("div", { className: "relative", children: /* @__PURE__ */ n(
|
|
29
|
+
"svg",
|
|
30
|
+
{
|
|
31
|
+
className: m(
|
|
32
|
+
L[f],
|
|
33
|
+
p[h]
|
|
34
|
+
),
|
|
35
|
+
viewBox: "0 0 25 23",
|
|
36
|
+
children: [
|
|
37
|
+
o && /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ n("linearGradient", { id: `star-fill-${l}`, x1: "0", x2: "1", y1: "0", y2: "0", children: [
|
|
38
|
+
/* @__PURE__ */ t("stop", { offset: `${a}%`, stopColor: "currentColor" }),
|
|
39
|
+
/* @__PURE__ */ t("stop", { offset: `${a}%`, stopColor: "transparent" })
|
|
40
|
+
] }) }),
|
|
41
|
+
/* @__PURE__ */ t(
|
|
42
|
+
"path",
|
|
43
|
+
{
|
|
44
|
+
d: "M11.474 1.68128C11.8026 0.912241 12.8927 0.912241 13.2213 1.68128L15.5868 7.21835C15.7989 7.71478 16.2692 8.0523 16.8074 8.09431L22.8886 8.56895C23.738 8.63525 24.0774 9.69994 23.4231 10.2457L18.8377 14.0697C18.4124 14.4244 18.2263 14.9904 18.3581 15.5283L19.7672 21.2797C19.9677 22.0979 19.083 22.7529 18.3589 22.3223L13.0888 19.1884C12.632 18.9167 12.0633 18.9167 11.6065 19.1884L6.33637 22.3223C5.61231 22.7529 4.72763 22.0979 4.9281 21.2797L6.33724 15.5283C6.46904 14.9904 6.28291 14.4244 5.85758 14.0697L1.27223 10.2457C0.617879 9.69994 0.957297 8.63525 1.80676 8.56895L7.88795 8.09431C8.42615 8.0523 8.89645 7.71478 9.10853 7.21835L11.474 1.68128Z",
|
|
45
|
+
fill: c ? "currentColor" : o ? `url(#star-fill-${l})` : "transparent"
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
) }, l);
|
|
51
|
+
}) });
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
u as UiStars,
|
|
55
|
+
p as colorClasses
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=UiStars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UiStars.js","sources":["../../../src/components/UiStars/UiStars.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { EStarsSize, EStarColors } from \"./_types\";\n\nexport const colorClasses = {\n\t[EStarColors.DEFAULT]: \"text-accent-alt-600\",\n\t[EStarColors.PRIMARY]: \"text-primary\",\n\t[EStarColors.WHITE]: \"text-white\",\n\t[EStarColors.BLACK]: \"text-black\",\n\t[EStarColors.CURRENT]: \"text-current\",\n};\n\ninterface IUiStars {\n\tstarsFilled?: number\n\tsize?: EStarsSize\n\tcount?: number\n\tcolor?: EStarColors\n\tclassName?: string\n}\n\nconst sizeClasses = {\n\t[EStarsSize.SM]: \"w-sm h-sm\",\n\t[EStarsSize.MD]: \"w-md h-md\",\n\t[EStarsSize.LG]: \"w-lg h-lg\"\n};\n\nexport const UiStars = ({\n\tstarsFilled=0,\n\tsize = EStarsSize.MD,\n\tcount = 5,\n\tclassName,\n\tcolor = EStarColors.DEFAULT\n}: IUiStars) => {\n\tconst filledStars = Math.min(Math.max(starsFilled, 0), count);\n\n\treturn (\n\t\t<div className={ cx(\"flex\", className) }>\n\t\t\t{ Array.from({\n\t\t\t\tlength: count\n\t\t\t}, (_, index) => {\n\t\t\t\tconst isCompletelyFilled = index < Math.floor(filledStars);\n\t\t\t\tconst isPartiallyFilled = !isCompletelyFilled && index === Math.floor(filledStars);\n\n\t\t\t\tlet filledPercentage = 0;\n\n\t\t\t\tif (isPartiallyFilled) {\n\t\t\t\t\tconst decimal = filledStars % 1;\n\t\t\t\t\tfilledPercentage = decimal * 100;\n\t\t\t\t}\n\n\t\t\t\treturn (\n\t\t\t\t\t<div key={ index } className=\"relative\">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\tsizeClasses[size],\n\t\t\t\t\t\t\t\tcolorClasses[color]\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tviewBox=\"0 0 25 23\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ isPartiallyFilled && (\n\t\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t\t\t<linearGradient id={ `star-fill-${index}` } x1=\"0\" x2=\"1\" y1=\"0\" y2=\"0\">\n\t\t\t\t\t\t\t\t\t\t<stop offset={ `${filledPercentage}%` } stopColor=\"currentColor\" />\n\t\t\t\t\t\t\t\t\t\t<stop offset={ `${filledPercentage}%` } stopColor=\"transparent\" />\n\t\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M11.474 1.68128C11.8026 0.912241 12.8927 0.912241 13.2213 1.68128L15.5868 7.21835C15.7989 7.71478 16.2692 8.0523 16.8074 8.09431L22.8886 8.56895C23.738 8.63525 24.0774 9.69994 23.4231 10.2457L18.8377 14.0697C18.4124 14.4244 18.2263 14.9904 18.3581 15.5283L19.7672 21.2797C19.9677 22.0979 19.083 22.7529 18.3589 22.3223L13.0888 19.1884C12.632 18.9167 12.0633 18.9167 11.6065 19.1884L6.33637 22.3223C5.61231 22.7529 4.72763 22.0979 4.9281 21.2797L6.33724 15.5283C6.46904 14.9904 6.28291 14.4244 5.85758 14.0697L1.27223 10.2457C0.617879 9.69994 0.957297 8.63525 1.80676 8.56895L7.88795 8.09431C8.42615 8.0523 8.89645 7.71478 9.10853 7.21835L11.474 1.68128Z\"\n\t\t\t\t\t\t\t\tfill={ isCompletelyFilled ? \"currentColor\" : (isPartiallyFilled ? `url(#star-fill-${index})` : \"transparent\") }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t);\n\t\t\t}) }\n\t\t</div>\n\t);\n};\n"],"names":["colorClasses","EStarColors","sizeClasses","EStarsSize","UiStars","starsFilled","size","count","className","color","filledStars","jsx","cx","_","index","isCompletelyFilled","isPartiallyFilled","filledPercentage","jsxs"],"mappings":";;;;AAIO,MAAMA,IAAe;AAAA,EAC3B,CAACC,EAAY,OAAO,GAAG;AAAA,EACvB,CAACA,EAAY,OAAO,GAAG;AAAA,EACvB,CAACA,EAAY,KAAK,GAAG;AAAA,EACrB,CAACA,EAAY,KAAK,GAAG;AAAA,EACrB,CAACA,EAAY,OAAO,GAAG;AACxB,GAUMC,IAAc;AAAA,EACnB,CAACC,EAAW,EAAE,GAAG;AAAA,EACjB,CAACA,EAAW,EAAE,GAAG;AAAA,EACjB,CAACA,EAAW,EAAE,GAAG;AAClB,GAEaC,IAAU,CAAC;AAAA,EACvB,aAAAC,IAAY;AAAA,EACZ,MAAAC,IAAOH,EAAW;AAAA,EAClB,OAAAI,IAAQ;AAAA,EACR,WAAAC;AAAA,EACA,OAAAC,IAAQR,EAAY;AACrB,MAAgB;AACT,QAAAS,IAAc,KAAK,IAAI,KAAK,IAAIL,GAAa,CAAC,GAAGE,CAAK;AAG3D,SAAA,gBAAAI,EAAC,SAAI,WAAYC,EAAG,QAAQJ,CAAS,GAClC,gBAAM,KAAK;AAAA,IACZ,QAAQD;AAAA,EAAA,GACN,CAACM,GAAGC,MAAU;AAChB,UAAMC,IAAqBD,IAAQ,KAAK,MAAMJ,CAAW,GACnDM,IAAoB,CAACD,KAAsBD,MAAU,KAAK,MAAMJ,CAAW;AAEjF,QAAIO,IAAmB;AAEvB,WAAID,MAEHC,IADgBP,IAAc,IACD,MAI7B,gBAAAC,EAAC,OAAkB,EAAA,WAAU,YAC5B,UAAA,gBAAAO;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,WAAYN;AAAA,UACXV,EAAYI,CAAI;AAAA,UAChBN,EAAaS,CAAK;AAAA,QACnB;AAAA,QACA,SAAQ;AAAA,QAEN,UAAA;AAAA,UAAAO,KACA,gBAAAL,EAAA,QAAA,EACA,UAAC,gBAAAO,EAAA,kBAAA,EAAe,IAAK,aAAaJ,CAAK,IAAK,IAAG,KAAI,IAAG,KAAI,IAAG,KAAI,IAAG,KACnE,UAAA;AAAA,YAAA,gBAAAH,EAAC,UAAK,QAAS,GAAGM,CAAgB,KAAM,WAAU,gBAAe;AAAA,8BAChE,QAAK,EAAA,QAAS,GAAGA,CAAgB,KAAM,WAAU,cAAc,CAAA;AAAA,UAAA,EAAA,CACjE,EACD,CAAA;AAAA,UAED,gBAAAN;AAAA,YAAC;AAAA,YAAA;AAAA,cACA,GAAE;AAAA,cACF,MAAOI,IAAqB,iBAAkBC,IAAoB,kBAAkBF,CAAK,MAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QAChG;AAAA,MAAA;AAAA,SAnBSA,CAqBX;AAAA,EAED,CAAA,GACF;AAEF;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var e = /* @__PURE__ */ ((M) => (M.SM = "SM", M.MD = "MD", M.LG = "LG", M))(e || {}), u = /* @__PURE__ */ ((M) => (M.DEFAULT = "default", M.WHITE = "white", M.BLACK = "black", M.CURRENT = "current", M.PRIMARY = "primary", M))(u || {});
|
|
2
|
+
export {
|
|
3
|
+
u as EStarColors,
|
|
4
|
+
e as EStarsSize
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=_types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.js","sources":["../../../src/components/UiStars/_types.ts"],"sourcesContent":["export enum EStarsSize {\n\tSM = \"SM\",\n\tMD = \"MD\",\n\tLG = \"LG\"\n}\n\nexport enum EStarColors {\n\tDEFAULT = \"default\",\n\tWHITE = \"white\",\n\tBLACK = \"black\",\n\tCURRENT = \"current\",\n\tPRIMARY = \"primary\"\n}\n"],"names":["EStarsSize","EStarColors"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,KAAK,MACLA,EAAA,KAAK,MACLA,EAAA,KAAK,MAHMA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,QAAQ,SACRA,EAAA,UAAU,WACVA,EAAA,UAAU,WALCA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|