bonkers-ui 2.0.2 → 2.0.3
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/README.md +25 -40
- package/_types/colors.d.ts +2 -0
- package/_types/colors.js +1 -1
- package/_types/colors.js.map +1 -1
- package/assets/UiBerRank.css +1 -0
- package/assets/UiButton.css +0 -0
- package/assets/UiCheckbox.css +1 -0
- package/assets/UiInputRange.css +1 -0
- package/assets/UiRadio.css +1 -0
- package/assets/UiSelect.css +1 -0
- package/bonkers.css +243 -0
- package/components/UiAccordion/UiAccordion.InfoDropdown.js +31 -0
- package/components/UiAccordion/UiAccordion.InfoDropdown.js.map +1 -0
- package/components/UiAccordion/UiAccordion.base.js +13 -0
- package/components/UiAccordion/UiAccordion.base.js.map +1 -0
- package/components/UiAccordion/UiAccordion.context.js +39 -0
- package/components/UiAccordion/UiAccordion.context.js.map +1 -0
- package/components/UiAccordion/UiAccordionItem.base.js +43 -0
- package/components/UiAccordion/UiAccordionItem.base.js.map +1 -0
- package/components/UiAccordion/_types.js +5 -0
- package/components/UiAccordion/_types.js.map +1 -0
- package/components/UiAccordion/index.d.ts +1 -0
- package/components/UiAccordion/index.js +13 -0
- package/{index.js.map → components/UiAccordion/index.js.map} +1 -1
- package/components/UiBerRank/UiBerRank.js +30 -28
- package/components/UiBerRank/UiBerRank.js.map +1 -1
- package/components/UiBerRank/_types.js +6 -5
- package/components/UiBerRank/_types.js.map +1 -1
- package/components/UiButton/UiButton.d.ts +1 -0
- package/components/UiButton/UiButton.js +363 -100
- package/components/UiButton/UiButton.js.map +1 -1
- package/components/UiButton/_types.d.ts +37 -3
- package/components/UiButton/_types.js +1 -1
- package/components/UiButton/_types.js.map +1 -1
- package/components/UiCheckbox/UiCheckbox.js +46 -42
- package/components/UiCheckbox/UiCheckbox.js.map +1 -1
- package/components/UiCheckbox/index.d.ts +1 -0
- package/components/UiCheckbox/index.js +4 -2
- package/components/UiCheckbox/index.js.map +1 -1
- package/components/UiIcon/UiIcon.d.ts +1 -0
- package/components/UiIcon/UiIcon.js +10 -9
- package/components/UiIcon/UiIcon.js.map +1 -1
- package/components/UiInput/UiInput.base.js +7 -7
- package/components/UiInput/UiInput.base.js.map +1 -1
- package/components/UiInputRange/UiInputRange.js +26 -25
- package/components/UiInputRange/UiInputRange.js.map +1 -1
- package/components/UiList/UiList.d.ts +2 -1
- package/components/UiList/UiList.js +23 -18
- package/components/UiList/UiList.js.map +1 -1
- package/components/UiList/_types.d.ts +4 -0
- package/components/UiList/_types.js +4 -3
- package/components/UiList/_types.js.map +1 -1
- package/components/UiNotificationBadge/UiNotificationBadge.d.ts +3 -3
- package/components/UiNotificationBadge/UiNotificationBadge.js +46 -83
- package/components/UiNotificationBadge/UiNotificationBadge.js.map +1 -1
- package/components/UiNotificationBadge/_types.d.ts +8 -0
- package/components/UiNotificationBadge/_types.js +4 -2
- package/components/UiNotificationBadge/_types.js.map +1 -1
- package/components/UiPills/UiPills.js +5 -5
- package/components/UiPills/UiPills.js.map +1 -1
- package/components/UiProductCard/UiProductCard.js +6 -6
- package/components/UiProductCard/UiProductCard.js.map +1 -1
- package/components/UiProgress/UiProgress.js +4 -4
- package/components/UiProgress/UiProgress.js.map +1 -1
- package/components/UiRadio/UiRadio.js +13 -11
- package/components/UiRadio/UiRadio.js.map +1 -1
- package/components/UiRadioFancy/UiRadioFancy.d.ts +8 -4
- package/components/UiRadioFancy/UiRadioFancy.js +38 -28
- package/components/UiRadioFancy/UiRadioFancy.js.map +1 -1
- package/components/UiRadioFancy/_types.d.ts +1 -1
- package/components/UiRadioFancy/_types.js +2 -2
- package/components/UiRadioFancy/_types.js.map +1 -1
- package/components/UiSelect/UiSelect.js +98 -0
- package/components/UiSelect/UiSelect.js.map +1 -0
- package/components/UiSelect/index.js +5 -0
- package/components/UiSelect/index.js.map +1 -0
- package/components/UiSkeleton/UiSkeleton.js +6 -6
- package/components/UiSkeleton/UiSkeleton.js.map +1 -1
- package/components/UiSnackbar/UiSnackbar.d.ts +9 -0
- package/components/UiSnackbar/UiSnackbar.js +69 -0
- package/components/UiSnackbar/UiSnackbar.js.map +1 -0
- package/components/UiSnackbar/_types.d.ts +7 -0
- package/components/UiSnackbar/_types.js +5 -0
- package/components/UiSnackbar/_types.js.map +1 -0
- package/components/UiSnackbar/index.d.ts +1 -0
- package/components/UiSnackbar/index.js +5 -0
- package/components/UiSnackbar/index.js.map +1 -0
- package/components/UiTable/UiTableRow.js +10 -9
- package/components/UiTable/UiTableRow.js.map +1 -1
- package/components/UiTabs/UiTabs.js +19 -18
- package/components/UiTabs/UiTabs.js.map +1 -1
- package/components/UiToggle/UiToggle.d.ts +7 -4
- package/components/UiToggle/UiToggle.js +89 -89
- package/components/UiToggle/UiToggle.js.map +1 -1
- package/components/UiTypography/UiTypography.js +12 -10
- package/components/UiTypography/UiTypography.js.map +1 -1
- package/eslint.config.mjs +4 -3
- package/helper.d.ts +31 -0
- package/index.d.ts +23 -20
- package/package.json +41 -40
- package/stories/Colors/Colors.d.ts +2 -0
- package/stories/FontSizes/FontSizes.d.ts +2 -0
- package/stories/Spacings/Spacings.d.ts +2 -0
- package/bonkers-ui.css +0 -1
- package/bonkers-ui.umd.js +0 -103
- package/bonkers-ui.umd.js.map +0 -1
- package/components/UiBerRank/UiBerRank.module.css.js +0 -10
- package/components/UiBerRank/UiBerRank.module.css.js.map +0 -1
- package/components/UiButton/UiButton.module.css.js +0 -8
- package/components/UiButton/UiButton.module.css.js.map +0 -1
- package/components/UiCheckbox/UiCheckbox.module.css.js +0 -15
- package/components/UiCheckbox/UiCheckbox.module.css.js.map +0 -1
- package/components/UiInputRange/UiInputRange.module.css.js +0 -8
- package/components/UiInputRange/UiInputRange.module.css.js.map +0 -1
- package/components/UiRadio/UiRadio.module.css.js +0 -10
- package/components/UiRadio/UiRadio.module.css.js.map +0 -1
- package/index.js +0 -43
- package/plugin.ts +0 -160
- package/postcss.config.mjs +0 -9
- package/src/_styles/_backdropBlur.json +0 -10
- package/src/_styles/_colors.json +0 -81
- package/src/_styles/_fontSizes.json +0 -12
- package/src/_styles/_shadow.json +0 -8
- package/src/_styles/_spacing.json +0 -16
- package/tailwind.config.ts +0 -15
|
@@ -1,84 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
4
|
-
import { EBadgeOffset as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
|
|
11
|
-
[
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
[
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
[
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
[r.SECONDARY_ALT]: "bg-secondary-alt",
|
|
42
|
-
[r.SECONDARY_ALT_200]: "bg-secondary-alt-200",
|
|
43
|
-
[r.SECONDARY_ALT_300]: "bg-secondary-alt-300",
|
|
44
|
-
[r.SECONDARY_ALT_400]: "bg-secondary-alt-400",
|
|
45
|
-
[r.SECONDARY_ALT_500]: "bg-secondary-alt-500",
|
|
46
|
-
[r.SECONDARY_ALT_600]: "bg-secondary-alt-600",
|
|
47
|
-
[r.SECONDARY_ALT_700]: "bg-secondary-alt-700",
|
|
48
|
-
[r.ERROR]: "bg-error",
|
|
49
|
-
[r.ERROR_300]: "bg-error-300",
|
|
50
|
-
[r.ERROR_400]: "bg-error-400",
|
|
51
|
-
[r.ERROR_500]: "bg-error-500",
|
|
52
|
-
[r.ERROR_600]: "bg-error-600",
|
|
53
|
-
[r.ERROR_700]: "bg-error-700",
|
|
54
|
-
[r.ACCENT]: "bg-accent",
|
|
55
|
-
[r.ACCENT_300]: "bg-accent-300",
|
|
56
|
-
[r.ACCENT_500]: "bg-accent-500",
|
|
57
|
-
[r.ACCENT_600]: "bg-accent-600",
|
|
58
|
-
[r.ACCENT_700]: "bg-accent-700",
|
|
59
|
-
[r.ACCENT_ALT]: "bg-accent-alt",
|
|
60
|
-
[r.ACCENT_ALT_300]: "bg-accent-alt-300",
|
|
61
|
-
[r.ACCENT_ALT_400]: "bg-accent-alt-400",
|
|
62
|
-
[r.ACCENT_ALT_500]: "bg-accent-alt-500",
|
|
63
|
-
[r.ACCENT_ALT_600]: "bg-accent-alt-600",
|
|
64
|
-
[r.ACCENT_ALT_700]: "bg-accent-alt-700"
|
|
65
|
-
}, e = {
|
|
66
|
-
[a.DEFAULT]: "-right-xxxs -top-xxxs",
|
|
67
|
-
[a.OFFSET_BOTTOM_RIGHT]: "-right-xxxs -bottom-xxxs",
|
|
68
|
-
[a.OFFSET_TOP_LEFT]: "-left-xxxs -top-xxxs",
|
|
69
|
-
[a.OFFSET_BOTTOM_LEFT]: "-left-xxxs -bottom-xxxs"
|
|
70
|
-
}, E = ({
|
|
71
|
-
offset: R,
|
|
72
|
-
children: t,
|
|
73
|
-
color: g
|
|
74
|
-
}) => t ? /* @__PURE__ */ A(
|
|
3
|
+
import a from "classnames";
|
|
4
|
+
import { EBadgeOffset as t, EBadgeTypes as e, EBadgeSizes as x } from "./_types.js";
|
|
5
|
+
const T = {
|
|
6
|
+
[t.DEFAULT]: "-right-xxxs -top-xxxs",
|
|
7
|
+
[t.OFFSET_BOTTOM_RIGHT]: "-right-xxxs -bottom-xxxs",
|
|
8
|
+
[t.OFFSET_TOP_LEFT]: "-left-xxxs -top-xxxs",
|
|
9
|
+
[t.OFFSET_BOTTOM_LEFT]: "-left-xxxs -bottom-xxxs"
|
|
10
|
+
}, l = {
|
|
11
|
+
[e.DEFAULT]: `
|
|
12
|
+
bg-error-500
|
|
13
|
+
|
|
14
|
+
`,
|
|
15
|
+
[e.PRIMARY]: `
|
|
16
|
+
bg-primary-800
|
|
17
|
+
|
|
18
|
+
`
|
|
19
|
+
}, m = {
|
|
20
|
+
[x.DEFAULT]: `
|
|
21
|
+
h-sm
|
|
22
|
+
min-w-sm
|
|
23
|
+
p-xxxs
|
|
24
|
+
text-xxs
|
|
25
|
+
`,
|
|
26
|
+
[x.LARGE]: `
|
|
27
|
+
h-lg
|
|
28
|
+
min-w-lg
|
|
29
|
+
p-xxs
|
|
30
|
+
justify-center
|
|
31
|
+
text-2xl
|
|
32
|
+
border-2
|
|
33
|
+
|
|
34
|
+
`
|
|
35
|
+
}, F = ({
|
|
36
|
+
offset: s = t.DEFAULT,
|
|
37
|
+
children: o,
|
|
38
|
+
kind: i = e.DEFAULT,
|
|
39
|
+
size: r = x.DEFAULT
|
|
40
|
+
}) => /* @__PURE__ */ n(
|
|
75
41
|
"div",
|
|
76
42
|
{
|
|
77
|
-
className:
|
|
43
|
+
className: a(
|
|
78
44
|
"notification-badge",
|
|
79
|
-
"p-xxxs",
|
|
80
|
-
"h-sm",
|
|
81
|
-
"min-w-sm",
|
|
82
45
|
"absolute",
|
|
83
46
|
"inline-flex",
|
|
84
47
|
"items-center",
|
|
@@ -86,19 +49,19 @@ const b = {
|
|
|
86
49
|
"border",
|
|
87
50
|
"border-white",
|
|
88
51
|
"text-center",
|
|
89
|
-
"text-xxs",
|
|
90
52
|
"font-bold",
|
|
91
53
|
"leading-none",
|
|
92
54
|
"text-white",
|
|
93
55
|
"whitespace-nowrap",
|
|
94
56
|
"gap-xxxs",
|
|
95
|
-
|
|
96
|
-
|
|
57
|
+
T[s],
|
|
58
|
+
l[i],
|
|
59
|
+
m[r]
|
|
97
60
|
),
|
|
98
|
-
children:
|
|
61
|
+
children: o
|
|
99
62
|
}
|
|
100
|
-
)
|
|
63
|
+
);
|
|
101
64
|
export {
|
|
102
|
-
|
|
65
|
+
F as UiNotificationBadge
|
|
103
66
|
};
|
|
104
67
|
//# sourceMappingURL=UiNotificationBadge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiNotificationBadge.js","sources":["../../../src/components/UiNotificationBadge/UiNotificationBadge.tsx"],"sourcesContent":["\nimport React from \"react\";\nimport cx from \"classnames\";\nimport { EBadgeOffset } from \"./_types\";\n\
|
|
1
|
+
{"version":3,"file":"UiNotificationBadge.js","sources":["../../../src/components/UiNotificationBadge/UiNotificationBadge.tsx"],"sourcesContent":["\nimport React from \"react\";\nimport cx from \"classnames\";\nimport { EBadgeOffset, EBadgeSizes, EBadgeTypes } from \"./_types\";\n\ntype UiNotificationBadge = {\n\toffset?: EBadgeOffset,\n\tchildren: React.ReactNode;\n\tkind?: EBadgeTypes;\n\tsize?: EBadgeSizes;\n\n};\n\nconst offsetClasses = {\n\t[EBadgeOffset.DEFAULT]: \"-right-xxxs -top-xxxs\",\n\t[EBadgeOffset.OFFSET_BOTTOM_RIGHT]: \"-right-xxxs -bottom-xxxs\",\n\t[EBadgeOffset.OFFSET_TOP_LEFT]: \"-left-xxxs -top-xxxs\",\n\t[EBadgeOffset.OFFSET_BOTTOM_LEFT]: \"-left-xxxs -bottom-xxxs\",\n};\n\nconst kindClasses = {\n\t[EBadgeTypes.DEFAULT]: `\n\t\tbg-error-500\n\n\t`,\n\t[EBadgeTypes.PRIMARY]: `\n\t\tbg-primary-800\n\n\t`,\n\n};\n\nconst sizeClasses = {\n\t[EBadgeSizes.DEFAULT]: `\n\t\th-sm\n\t\tmin-w-sm\n\t\tp-xxxs\n\t\ttext-xxs\n\t`,\n\t[EBadgeSizes.LARGE]: `\n\t\th-lg\n\t\tmin-w-lg\n\t\tp-xxs\n\t\tjustify-center\n\t\ttext-2xl\n\t\tborder-2\n\n\t`\n\n};\n\nexport const UiNotificationBadge: React.FC<UiNotificationBadge> = ({\n\toffset = EBadgeOffset.DEFAULT,\n\tchildren,\n\tkind = EBadgeTypes.DEFAULT,\n\tsize = EBadgeSizes.DEFAULT\n\n}) => {\n\n\treturn (\n\t\t<div\n\t\t\tclassName={ cx(\n\t\t\t\t\"notification-badge\",\n\t\t\t\t\"absolute\",\n\t\t\t\t\"inline-flex\",\n\t\t\t\t\"items-center\",\n\t\t\t\t\"rounded-full\",\n\t\t\t\t\"border\",\n\t\t\t\t\"border-white\",\n\t\t\t\t\"text-center\",\n\t\t\t\t\"font-bold\",\n\t\t\t\t\"leading-none\",\n\t\t\t\t\"text-white\",\n\t\t\t\t\"whitespace-nowrap\",\n\t\t\t\t\"gap-xxxs\",\n\t\t\t\toffsetClasses[offset],\n\t\t\t\tkindClasses[kind],\n\t\t\t\tsizeClasses[size]\n\t\t\t) }\n\t\t>\n\t\t\t{ children }\n\t\t</div>\n\t);\n};\n"],"names":["offsetClasses","EBadgeOffset","kindClasses","EBadgeTypes","sizeClasses","EBadgeSizes","UiNotificationBadge","offset","children","kind","size","jsx","cx"],"mappings":";;;;AAaA,MAAMA,IAAgB;AAAA,EACrB,CAACC,EAAa,OAAO,GAAG;AAAA,EACxB,CAACA,EAAa,mBAAmB,GAAG;AAAA,EACpC,CAACA,EAAa,eAAe,GAAG;AAAA,EAChC,CAACA,EAAa,kBAAkB,GAAG;AACpC,GAEMC,IAAc;AAAA,EACnB,CAACC,EAAY,OAAO,GAAG;AAAA;AAAA;AAAA;AAAA,EAIvB,CAACA,EAAY,OAAO,GAAG;AAAA;AAAA;AAAA;AAKxB,GAEMC,IAAc;AAAA,EACnB,CAACC,EAAY,OAAO,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMvB,CAACA,EAAY,KAAK,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUtB,GAEaC,IAAqD,CAAC;AAAA,EAClE,QAAAC,IAASN,EAAa;AAAA,EACtB,UAAAO;AAAA,EACA,MAAAC,IAAON,EAAY;AAAA,EACnB,MAAAO,IAAOL,EAAY;AAEpB,MAGE,gBAAAM;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,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAZ,EAAcO,CAAM;AAAA,MACpBL,EAAYO,CAAI;AAAA,MAChBL,EAAYM,CAAI;AAAA,IACjB;AAAA,IAEE,UAAAF;AAAA,EAAA;AACH;"}
|
|
@@ -4,3 +4,11 @@ export declare enum EBadgeOffset {
|
|
|
4
4
|
OFFSET_BOTTOM_RIGHT = "offset-bottom-right",
|
|
5
5
|
OFFSET_BOTTOM_LEFT = "offset-bottom-left"
|
|
6
6
|
}
|
|
7
|
+
export declare enum EBadgeSizes {
|
|
8
|
+
DEFAULT = "default",
|
|
9
|
+
LARGE = "lg"
|
|
10
|
+
}
|
|
11
|
+
export declare enum EBadgeTypes {
|
|
12
|
+
DEFAULT = "error",
|
|
13
|
+
PRIMARY = "primary"
|
|
14
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
var t = /* @__PURE__ */ ((
|
|
1
|
+
var t = /* @__PURE__ */ ((r) => (r.DEFAULT = "default", r.OFFSET_TOP_LEFT = "offset-top-left", r.OFFSET_BOTTOM_RIGHT = "offset-bottom-right", r.OFFSET_BOTTOM_LEFT = "offset-bottom-left", r))(t || {}), T = /* @__PURE__ */ ((r) => (r.DEFAULT = "default", r.LARGE = "lg", r))(T || {}), F = /* @__PURE__ */ ((r) => (r.DEFAULT = "error", r.PRIMARY = "primary", r))(F || {});
|
|
2
2
|
export {
|
|
3
|
-
t as EBadgeOffset
|
|
3
|
+
t as EBadgeOffset,
|
|
4
|
+
T as EBadgeSizes,
|
|
5
|
+
F as EBadgeTypes
|
|
4
6
|
};
|
|
5
7
|
//# sourceMappingURL=_types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sources":["../../../src/components/UiNotificationBadge/_types.ts"],"sourcesContent":["export enum EBadgeOffset {\n\tDEFAULT = \"default\",\n\tOFFSET_TOP_LEFT = \"offset-top-left\",\n\tOFFSET_BOTTOM_RIGHT = \"offset-bottom-right\",\n\tOFFSET_BOTTOM_LEFT = \"offset-bottom-left\"\n}\n"],"names":["EBadgeOffset"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,kBAAkB,mBAClBA,EAAA,sBAAsB,uBACtBA,EAAA,qBAAqB,sBAJVA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"_types.js","sources":["../../../src/components/UiNotificationBadge/_types.ts"],"sourcesContent":["export enum EBadgeOffset {\n\tDEFAULT = \"default\",\n\tOFFSET_TOP_LEFT = \"offset-top-left\",\n\tOFFSET_BOTTOM_RIGHT = \"offset-bottom-right\",\n\tOFFSET_BOTTOM_LEFT = \"offset-bottom-left\"\n}\n\nexport enum EBadgeSizes {\n\tDEFAULT = \"default\",\n\tLARGE = \"lg\"\n}\n\nexport enum EBadgeTypes {\n\tDEFAULT = \"error\",\n\tPRIMARY = \"primary\"\n\n}\n"],"names":["EBadgeOffset","EBadgeSizes","EBadgeTypes"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,kBAAkB,mBAClBA,EAAA,sBAAsB,uBACtBA,EAAA,qBAAqB,sBAJVA,IAAAA,KAAA,CAAA,CAAA,GAOAC,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,QAAQ,MAFGA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACXA,EAAA,UAAU,SACVA,EAAA,UAAU,WAFCA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as x, jsx as
|
|
1
|
+
import { jsxs as x, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { EBadgeKind as r, EBadgeSize as e } from "./_types.js";
|
|
4
|
-
import { UiTypography as
|
|
5
|
-
import { ETypographySizes as t, ETextWeight as
|
|
4
|
+
import { UiTypography as p } from "../UiTypography/UiTypography.js";
|
|
5
|
+
import { ETypographySizes as t, ETextWeight as g } from "../UiTypography/_types.js";
|
|
6
6
|
import c from "classnames";
|
|
7
7
|
const l = {
|
|
8
8
|
[r.PRIMARY]: "bg-primary-100 text-primary-700",
|
|
@@ -29,11 +29,11 @@ const l = {
|
|
|
29
29
|
"gap-xxxs",
|
|
30
30
|
"px-xxs py-xxxs",
|
|
31
31
|
"overflow-hidden",
|
|
32
|
-
n ? "rounded-full" : "rounded",
|
|
32
|
+
n ? "rounded-full" : "rounded-sm",
|
|
33
33
|
l[s]
|
|
34
34
|
), children: [
|
|
35
35
|
o,
|
|
36
|
-
i ? /* @__PURE__ */ p
|
|
36
|
+
i ? /* @__PURE__ */ m(p, { size: d[a], weight: g.SEMI_BOLD, className: "whitespace-nowrap", children: i }) : null
|
|
37
37
|
] });
|
|
38
38
|
export {
|
|
39
39
|
M as UiPills
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiPills.js","sources":["../../../src/components/UiPills/UiPills.tsx"],"sourcesContent":["import React from \"react\";\nimport { EBadgeKind, EBadgeSize } from \"./_types.ts\";\nimport { ETextWeight, ETypographySizes, UiTypography } from \"../UiTypography\";\nimport cx from \"classnames\";\n\ninterface IUiPills {\n\tchildren: React.ReactNode\n\tkind?: EBadgeKind,\n\tsize?: EBadgeSize,\n\ticon?: React.ReactNode,\n\trounded?: boolean\n}\n\nconst kindClasses = {\n\t[EBadgeKind.PRIMARY]: \"bg-primary-100 text-primary-700\",\n\t[EBadgeKind.ERROR]: \"bg-error-300 text-error-700\",\n\t[EBadgeKind.WARNING]: \"bg-warning-300 text-warning-700\",\n\t[EBadgeKind.ACCENT]: \"bg-accent-300 text-accent-700\",\n\t[EBadgeKind.PRIMARY_ALT]: \"bg-primary-300 text-primary-800\",\n\t[EBadgeKind.SECONDARY]: \"bg-white text-secondary-300 ring-1 ring-secondary-alt-300\",\n\t[EBadgeKind.ACCENT_ALT]: \"bg-accent-alt-500 text-secondary-700\",\n};\n\nconst sizeEnums = {\n\t[EBadgeSize.SMALL]: ETypographySizes.XXS,\n\t[EBadgeSize.MEDIUM]: ETypographySizes.XS,\n\t[EBadgeSize.LARGE]: ETypographySizes.SM,\n};\n\nexport const UiPills: React.FC<IUiPills> = ({\n\tchildren,\n\tkind = EBadgeKind.PRIMARY,\n\tsize = EBadgeSize.SMALL,\n\ticon, rounded = false\n}) => {\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"ui-pills\",\n\t\t\t\"grid grid-flow-col justify-start w-max\",\n\t\t\t\"items-center\",\n\t\t\t\"gap-xxxs\",\n\t\t\t\"px-xxs py-xxxs\",\n\t\t\t\"overflow-hidden\",\n\t\t\trounded ? \"rounded-full\": \"rounded\",\n\t\t\tkindClasses[kind],\n\t\t) }>\n\t\t\t{ icon }\n\t\t\t{ children\n\t\t\t\t? (\n\t\t\t\t\t<UiTypography size={ sizeEnums[size] } weight={ ETextWeight.SEMI_BOLD } className=\"whitespace-nowrap\">\n\t\t\t\t\t\t{ children }\n\t\t\t\t\t</UiTypography>\n\t\t\t\t)\n\t\t\t\t: null }\n\t\t</div>\n\t);\n};\n"],"names":["kindClasses","EBadgeKind","sizeEnums","EBadgeSize","ETypographySizes","UiPills","children","kind","size","icon","rounded","jsxs","cx","jsx","UiTypography","ETextWeight"],"mappings":";;;;;;AAaA,MAAMA,IAAc;AAAA,EACnB,CAACC,EAAW,OAAO,GAAG;AAAA,EACtB,CAACA,EAAW,KAAK,GAAG;AAAA,EACpB,CAACA,EAAW,OAAO,GAAG;AAAA,EACtB,CAACA,EAAW,MAAM,GAAG;AAAA,EACrB,CAACA,EAAW,WAAW,GAAG;AAAA,EAC1B,CAACA,EAAW,SAAS,GAAG;AAAA,EACxB,CAACA,EAAW,UAAU,GAAG;AAC1B,GAEMC,IAAY;AAAA,EACjB,CAACC,EAAW,KAAK,GAAGC,EAAiB;AAAA,EACrC,CAACD,EAAW,MAAM,GAAGC,EAAiB;AAAA,EACtC,CAACD,EAAW,KAAK,GAAGC,EAAiB;AACtC,GAEaC,IAA8B,CAAC;AAAA,EAC3C,UAAAC;AAAA,EACA,MAAAC,IAAON,EAAW;AAAA,EAClB,MAAAO,IAAOL,EAAW;AAAA,EAClB,MAAAM;AAAA,EAAM,SAAAC,IAAU;AACjB,MAEE,gBAAAC,EAAC,SAAI,WAAYC;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACAF,IAAU,iBAAgB;AAAA,EAC1BV,EAAYO,CAAI;AAEd,GAAA,UAAA;AAAA,EAAAE;AAAA,EACAH,IAEA,gBAAAO,EAACC,GAAa,EAAA,MAAOZ,EAAUM,CAAI,GAAI,QAASO,EAAY,WAAY,WAAU,qBAC/E,UAAAT,EACH,CAAA,IAEC;AAAA,GACJ;"}
|
|
1
|
+
{"version":3,"file":"UiPills.js","sources":["../../../src/components/UiPills/UiPills.tsx"],"sourcesContent":["import React from \"react\";\nimport { EBadgeKind, EBadgeSize } from \"./_types.ts\";\nimport { ETextWeight, ETypographySizes, UiTypography } from \"../UiTypography\";\nimport cx from \"classnames\";\n\ninterface IUiPills {\n\tchildren: React.ReactNode\n\tkind?: EBadgeKind,\n\tsize?: EBadgeSize,\n\ticon?: React.ReactNode,\n\trounded?: boolean\n}\n\nconst kindClasses = {\n\t[EBadgeKind.PRIMARY]: \"bg-primary-100 text-primary-700\",\n\t[EBadgeKind.ERROR]: \"bg-error-300 text-error-700\",\n\t[EBadgeKind.WARNING]: \"bg-warning-300 text-warning-700\",\n\t[EBadgeKind.ACCENT]: \"bg-accent-300 text-accent-700\",\n\t[EBadgeKind.PRIMARY_ALT]: \"bg-primary-300 text-primary-800\",\n\t[EBadgeKind.SECONDARY]: \"bg-white text-secondary-300 ring-1 ring-secondary-alt-300\",\n\t[EBadgeKind.ACCENT_ALT]: \"bg-accent-alt-500 text-secondary-700\",\n};\n\nconst sizeEnums = {\n\t[EBadgeSize.SMALL]: ETypographySizes.XXS,\n\t[EBadgeSize.MEDIUM]: ETypographySizes.XS,\n\t[EBadgeSize.LARGE]: ETypographySizes.SM,\n};\n\nexport const UiPills: React.FC<IUiPills> = ({\n\tchildren,\n\tkind = EBadgeKind.PRIMARY,\n\tsize = EBadgeSize.SMALL,\n\ticon, rounded = false\n}) => {\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"ui-pills\",\n\t\t\t\"grid grid-flow-col justify-start w-max\",\n\t\t\t\"items-center\",\n\t\t\t\"gap-xxxs\",\n\t\t\t\"px-xxs py-xxxs\",\n\t\t\t\"overflow-hidden\",\n\t\t\trounded ? \"rounded-full\": \"rounded-sm\",\n\t\t\tkindClasses[kind],\n\t\t) }>\n\t\t\t{ icon }\n\t\t\t{ children\n\t\t\t\t? (\n\t\t\t\t\t<UiTypography size={ sizeEnums[size] } weight={ ETextWeight.SEMI_BOLD } className=\"whitespace-nowrap\">\n\t\t\t\t\t\t{ children }\n\t\t\t\t\t</UiTypography>\n\t\t\t\t)\n\t\t\t\t: null }\n\t\t</div>\n\t);\n};\n"],"names":["kindClasses","EBadgeKind","sizeEnums","EBadgeSize","ETypographySizes","UiPills","children","kind","size","icon","rounded","jsxs","cx","jsx","UiTypography","ETextWeight"],"mappings":";;;;;;AAaA,MAAMA,IAAc;AAAA,EACnB,CAACC,EAAW,OAAO,GAAG;AAAA,EACtB,CAACA,EAAW,KAAK,GAAG;AAAA,EACpB,CAACA,EAAW,OAAO,GAAG;AAAA,EACtB,CAACA,EAAW,MAAM,GAAG;AAAA,EACrB,CAACA,EAAW,WAAW,GAAG;AAAA,EAC1B,CAACA,EAAW,SAAS,GAAG;AAAA,EACxB,CAACA,EAAW,UAAU,GAAG;AAC1B,GAEMC,IAAY;AAAA,EACjB,CAACC,EAAW,KAAK,GAAGC,EAAiB;AAAA,EACrC,CAACD,EAAW,MAAM,GAAGC,EAAiB;AAAA,EACtC,CAACD,EAAW,KAAK,GAAGC,EAAiB;AACtC,GAEaC,IAA8B,CAAC;AAAA,EAC3C,UAAAC;AAAA,EACA,MAAAC,IAAON,EAAW;AAAA,EAClB,MAAAO,IAAOL,EAAW;AAAA,EAClB,MAAAM;AAAA,EAAM,SAAAC,IAAU;AACjB,MAEE,gBAAAC,EAAC,SAAI,WAAYC;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACAF,IAAU,iBAAgB;AAAA,EAC1BV,EAAYO,CAAI;AAEd,GAAA,UAAA;AAAA,EAAAE;AAAA,EACAH,IAEA,gBAAAO,EAACC,GAAa,EAAA,MAAOZ,EAAUM,CAAI,GAAI,QAASO,EAAY,WAAY,WAAU,qBAC/E,UAAAT,EACH,CAAA,IAEC;AAAA,GACJ;"}
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import { UiPills as a } from "../UiPills/UiPills.js";
|
|
4
4
|
import { EBadgeKind as p } from "../UiPills/_types.js";
|
|
5
5
|
import { UiTypography as o } from "../UiTypography/UiTypography.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ETextAlign as n, ETextWeight as c, ETypographySizes as l } from "../UiTypography/_types.js";
|
|
7
7
|
import { EColors as t } from "../../_types/colors.js";
|
|
8
8
|
const y = ({
|
|
9
9
|
badgeText: i,
|
|
@@ -20,15 +20,15 @@ const y = ({
|
|
|
20
20
|
bg-white
|
|
21
21
|
px-xs
|
|
22
22
|
py-sm`, children: [
|
|
23
|
-
i && /* @__PURE__ */ r("div", { className: "!
|
|
23
|
+
i && /* @__PURE__ */ r("div", { className: "absolute! -top-xxs right-xs", children: /* @__PURE__ */ r(a, { rounded: !0, kind: p.ACCENT_ALT, children: i }) }),
|
|
24
24
|
m,
|
|
25
25
|
/* @__PURE__ */ e("div", { className: "grid gap-xxs", children: [
|
|
26
26
|
/* @__PURE__ */ r(
|
|
27
27
|
o,
|
|
28
28
|
{
|
|
29
|
-
size:
|
|
29
|
+
size: l.MD,
|
|
30
30
|
weight: c.BOLD,
|
|
31
|
-
align:
|
|
31
|
+
align: n.LEFT,
|
|
32
32
|
color: t.SECONDARY,
|
|
33
33
|
lineHeight: !0,
|
|
34
34
|
children: s
|
|
@@ -37,8 +37,8 @@ const y = ({
|
|
|
37
37
|
/* @__PURE__ */ r(
|
|
38
38
|
o,
|
|
39
39
|
{
|
|
40
|
-
size:
|
|
41
|
-
align:
|
|
40
|
+
size: l.XS,
|
|
41
|
+
align: n.LEFT,
|
|
42
42
|
color: t.SECONDARY_400,
|
|
43
43
|
lineHeight: !0,
|
|
44
44
|
children: d
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiProductCard.js","sources":["../../../src/components/UiProductCard/UiProductCard.tsx"],"sourcesContent":["import React from \"react\";\nimport { EBadgeKind, UiPills } from \"../UiPills\";\nimport {\n\tUiTypography, ETypographySizes, ETextWeight, ETextAlign, EColors\n} from \"../UiTypography\";\n\ntype TUiProductCardProps = {\n\tbadgeText?: string;\n\ttitle?: React.ReactNode;\n\tsubtitle?: React.ReactNode;\n\theader?: React.ReactNode;\n}\n\nexport const UiProductCard: React.FC<TUiProductCardProps> = ({ badgeText,\n\ttitle,\n\tsubtitle,\n\theader }) => {\n\treturn (\n\t\t<div className='relative\n\t\t\tflex\n\t\t\tflex-col\n\t\t\tgap-sm\n\t\t\trounded-2xl\n\t\t\tborder\n\t\t\tborder-secondary-alt-500\n\t\t\tbg-white\n\t\t\tpx-xs\n\t\t\tpy-sm'>\n\n\t\t\t{ badgeText && (\n\t\t\t\t<div className=\"!
|
|
1
|
+
{"version":3,"file":"UiProductCard.js","sources":["../../../src/components/UiProductCard/UiProductCard.tsx"],"sourcesContent":["import React from \"react\";\nimport { EBadgeKind, UiPills } from \"../UiPills\";\nimport {\n\tUiTypography, ETypographySizes, ETextWeight, ETextAlign, EColors\n} from \"../UiTypography\";\n\ntype TUiProductCardProps = {\n\tbadgeText?: string;\n\ttitle?: React.ReactNode;\n\tsubtitle?: React.ReactNode;\n\theader?: React.ReactNode;\n}\n\nexport const UiProductCard: React.FC<TUiProductCardProps> = ({ badgeText,\n\ttitle,\n\tsubtitle,\n\theader }) => {\n\treturn (\n\t\t<div className='relative\n\t\t\tflex\n\t\t\tflex-col\n\t\t\tgap-sm\n\t\t\trounded-2xl\n\t\t\tborder\n\t\t\tborder-secondary-alt-500\n\t\t\tbg-white\n\t\t\tpx-xs\n\t\t\tpy-sm'>\n\n\t\t\t{ badgeText && (\n\t\t\t\t<div className=\"absolute! -top-xxs right-xs\">\n\t\t\t\t\t<UiPills rounded kind={ EBadgeKind.ACCENT_ALT }>{ badgeText }</UiPills>\n\t\t\t\t</div>\n\t\t\t) }\n\n\t\t\t{ header }\n\n\t\t\t<div className=\"grid gap-xxs\">\n\t\t\t\t<UiTypography\n\t\t\t\t\tsize={ ETypographySizes.MD }\n\t\t\t\t\tweight={ ETextWeight.BOLD }\n\t\t\t\t\talign={ ETextAlign.LEFT }\n\t\t\t\t\tcolor={ EColors.SECONDARY }\n\t\t\t\t\tlineHeight\n\t\t\t\t>\n\t\t\t\t\t{ title }\n\t\t\t\t</UiTypography>\n\n\t\t\t\t<UiTypography\n\t\t\t\t\tsize={ ETypographySizes.XS }\n\t\t\t\t\talign={ ETextAlign.LEFT }\n\t\t\t\t\tcolor={ EColors.SECONDARY_400 }\n\t\t\t\t\tlineHeight\n\t\t\t\t>\n\t\t\t\t\t{ subtitle }\n\t\t\t\t</UiTypography>\n\t\t\t</div>\n\t\t</div >\n\t);\n};\n"],"names":["UiProductCard","badgeText","title","subtitle","header","jsxs","jsx","UiPills","EBadgeKind","UiTypography","ETypographySizes","ETextWeight","ETextAlign","EColors"],"mappings":";;;;;;;AAaO,MAAMA,IAA+C,CAAC;AAAA,EAAE,WAAAC;AAAA,EAC9D,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAO,MAEN,gBAAAC,EAAC,OAAI,EAAA,WAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAWZ,UAAA;AAAA,EAAAJ,KACA,gBAAAK,EAAA,OAAA,EAAI,WAAU,+BACd,UAAC,gBAAAA,EAAAC,GAAA,EAAQ,SAAO,IAAC,MAAOC,EAAW,YAAe,UAAAP,EAAW,CAAA,GAC9D;AAAA,EAGCG;AAAA,EAEF,gBAAAC,EAAC,OAAI,EAAA,WAAU,gBACd,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACG;AAAA,MAAA;AAAA,QACA,MAAOC,EAAiB;AAAA,QACxB,QAASC,EAAY;AAAA,QACrB,OAAQC,EAAW;AAAA,QACnB,OAAQC,EAAQ;AAAA,QAChB,YAAU;AAAA,QAER,UAAAX;AAAA,MAAA;AAAA,IACH;AAAA,IAEA,gBAAAI;AAAA,MAACG;AAAA,MAAA;AAAA,QACA,MAAOC,EAAiB;AAAA,QACxB,OAAQE,EAAW;AAAA,QACnB,OAAQC,EAAQ;AAAA,QAChB,YAAU;AAAA,QAER,UAAAV;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,EACD,CAAA;AAAA,GACD;"}
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import o from "classnames";
|
|
4
4
|
import { UiTypography as m } from "../UiTypography/UiTypography.js";
|
|
5
|
-
import {
|
|
5
|
+
import { ETextWeight as p, ETypographySizes as d } from "../UiTypography/_types.js";
|
|
6
6
|
import { EColors as f } from "../../_types/colors.js";
|
|
7
7
|
const y = ({
|
|
8
8
|
progressText: i,
|
|
@@ -16,7 +16,7 @@ const y = ({
|
|
|
16
16
|
), children: [
|
|
17
17
|
/* @__PURE__ */ r("div", { className: o(
|
|
18
18
|
"relative",
|
|
19
|
-
"h-
|
|
19
|
+
"h-xxs ",
|
|
20
20
|
"w-full",
|
|
21
21
|
"overflow-hidden",
|
|
22
22
|
"rounded-3xl",
|
|
@@ -46,8 +46,8 @@ const y = ({
|
|
|
46
46
|
m,
|
|
47
47
|
{
|
|
48
48
|
color: f.PRIMARY_700,
|
|
49
|
-
size:
|
|
50
|
-
weight:
|
|
49
|
+
size: d.SM,
|
|
50
|
+
weight: p.SEMI_BOLD,
|
|
51
51
|
children: i
|
|
52
52
|
}
|
|
53
53
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiProgress.js","sources":["../../../src/components/UiProgress/UiProgress.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { EColors, ETextWeight, ETypographySizes, UiTypography } from \"../UiTypography\";\n\ninterface IUiProgress {\n\tmin: number\n\tmax: number\n\tcurrent: number\n\tprogressText?: string\n\n}\n\nexport const UiProgress: React.FC<IUiProgress> = ({\n\tprogressText,\n\tmax,\n\tmin,\n\tcurrent\n\n}) => {\n\tconst filler = ((current - min) / (max - min)) * 100;\n\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"ui-progress\"\n\t\t) }>\n\t\t\t<div className={ cx(\n\t\t\t\t\"relative\",\n\t\t\t\t\"h-
|
|
1
|
+
{"version":3,"file":"UiProgress.js","sources":["../../../src/components/UiProgress/UiProgress.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { EColors, ETextWeight, ETypographySizes, UiTypography } from \"../UiTypography\";\n\ninterface IUiProgress {\n\tmin: number\n\tmax: number\n\tcurrent: number\n\tprogressText?: string\n\n}\n\nexport const UiProgress: React.FC<IUiProgress> = ({\n\tprogressText,\n\tmax,\n\tmin,\n\tcurrent\n\n}) => {\n\tconst filler = ((current - min) / (max - min)) * 100;\n\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"ui-progress\"\n\t\t) }>\n\t\t\t<div className={ cx(\n\t\t\t\t\"relative\",\n\t\t\t\t\"h-xxs \",\n\t\t\t\t\"w-full\",\n\t\t\t\t\"overflow-hidden\",\n\t\t\t\t\"rounded-3xl\",\n\t\t\t\t\"bg-primary-50\",\n\t\t\t\t\"mb-xxs\"\n\t\t\t) } >\n\t\t\t\t<div className={ cx(\n\t\t\t\t\t\"ui-progress__bar-fill\",\n\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\"left-0\",\n\t\t\t\t\t\"top-0\",\n\t\t\t\t\t\"z-10\",\n\t\t\t\t\t\"h-full\",\n\t\t\t\t\t\"rounded-2xl\",\n\t\t\t\t\t\"bg-primary-700\",\n\t\t\t\t\t\"transition-all\",\n\t\t\t\t\t\"duration-300\"\n\n\t\t\t\t) }\n\t\t\t\tstyle={ {\n\t\t\t\t\twidth: `${filler}%`\n\t\t\t\t} }>\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{ progressText && (\n\t\t\t\t<UiTypography\n\t\t\t\t\tcolor={ EColors.PRIMARY_700 }\n\t\t\t\t\tsize={ ETypographySizes.SM }\n\t\t\t\t\tweight={ ETextWeight.SEMI_BOLD }\n\t\t\t\t>\n\t\t\t\t\t{ progressText }\n\t\t\t\t</UiTypography>\n\t\t\t) }\n\n\t\t</div>\n\n\t);\n};\n"],"names":["UiProgress","progressText","max","min","current","filler","jsxs","cx","jsx","UiTypography","EColors","ETypographySizes","ETextWeight"],"mappings":";;;;;;AAYO,MAAMA,IAAoC,CAAC;AAAA,EACjD,cAAAC;AAAA,EACA,KAAAC;AAAA,EACA,KAAAC;AAAA,EACA,SAAAC;AAED,MAAM;AACL,QAAMC,KAAWD,IAAUD,MAAQD,IAAMC,KAAQ;AAGhD,SAAA,gBAAAG,EAAC,SAAI,WAAYC;AAAA,IAChB;AAAA,EAEA,GAAA,UAAA;AAAA,IAAA,gBAAAC,EAAC,SAAI,WAAYD;AAAA,MAChB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAEA,GAAA,UAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QAAI,WAAYD;AAAA,UAChB;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QAED;AAAA,QACA,OAAQ;AAAA,UACP,OAAO,GAAGF,CAAM;AAAA,QAAA;AAAA,MACjB;AAAA,IAAA,GAGD;AAAA,IACEJ,KACD,gBAAAO;AAAA,MAACC;AAAA,MAAA;AAAA,QACA,OAAQC,EAAQ;AAAA,QAChB,MAAOC,EAAiB;AAAA,QACxB,QAASC,EAAY;AAAA,QAEnB,UAAAX;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GAGF;AAGF;"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as _, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import d from "./UiRadio.module.css.js";
|
|
5
4
|
import { EJustify as e } from "../../_types/align.js";
|
|
6
|
-
const y = {
|
|
5
|
+
import '../../assets/UiRadio.css';const f = "_UiRadio__custom_wei69_1", y = "_UiRadio__dot_wei69_4", d = {
|
|
6
|
+
UiRadio__custom: f,
|
|
7
|
+
UiRadio__dot: y
|
|
8
|
+
}, b = {
|
|
7
9
|
[e.START]: "justify-start",
|
|
8
10
|
[e.END]: "justify-end",
|
|
9
11
|
[e.CENTER]: "justify-center",
|
|
10
12
|
[e.BETWEEN]: "justify-between",
|
|
11
13
|
[e.AROUND]: "justify-around",
|
|
12
14
|
[e.EVENLY]: "justify-evenly"
|
|
13
|
-
},
|
|
15
|
+
}, j = ({
|
|
14
16
|
name: c,
|
|
15
17
|
value: s,
|
|
16
18
|
invertOrder: n = !1,
|
|
@@ -20,16 +22,16 @@ const y = {
|
|
|
20
22
|
checked: p = !1,
|
|
21
23
|
children: i
|
|
22
24
|
}) => {
|
|
23
|
-
const u = (
|
|
24
|
-
!r && t && t(
|
|
25
|
+
const u = (m) => {
|
|
26
|
+
!r && t && t(m.target.value);
|
|
25
27
|
};
|
|
26
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ _("label", { className: a(
|
|
27
29
|
"UiRadio",
|
|
28
30
|
"group",
|
|
29
31
|
"grid",
|
|
30
32
|
"grid-flow-col",
|
|
31
33
|
"cursor-pointer",
|
|
32
|
-
|
|
34
|
+
b[l],
|
|
33
35
|
{
|
|
34
36
|
"pointer-events-none": r,
|
|
35
37
|
"items-center gap-xxs": i
|
|
@@ -62,8 +64,8 @@ const y = {
|
|
|
62
64
|
"group-focus:border-secondary-alt-700",
|
|
63
65
|
"peer-checked:border-2",
|
|
64
66
|
"peer-checked:border-primary",
|
|
65
|
-
"peer-checked:
|
|
66
|
-
"peer-checked:
|
|
67
|
+
"hover:peer-checked:border-primary-600",
|
|
68
|
+
"active:peer-checked:border-primary-800",
|
|
67
69
|
"peer-focus:shadow-border-primary",
|
|
68
70
|
"peer-disabled:border-secondary-alt-400",
|
|
69
71
|
"peer-disabled:bg-secondary-alt-200"
|
|
@@ -81,6 +83,6 @@ const y = {
|
|
|
81
83
|
] });
|
|
82
84
|
};
|
|
83
85
|
export {
|
|
84
|
-
|
|
86
|
+
j as UiRadio
|
|
85
87
|
};
|
|
86
88
|
//# sourceMappingURL=UiRadio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiRadio.js","sources":["../../../src/components/UiRadio/UiRadio.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport styles from \"./UiRadio.module.css\";\nimport { EJustify } from \"../../_types/align\";\n\nexport type TUiRadioProps = {\n\tchildren?: React.ReactNode;\n\tname: string;\n\tvalue: string;\n\tinvertOrder?: boolean;\n\tjustify?: EJustify;\n\tdisabled?: boolean;\n\tchecked?: boolean;\n\tonChange: (value: string) => void;\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\" | \"checked\" | \"value\" | \"name\">;\n\nconst justificationClasses = {\n\t[EJustify.START]: \"justify-start\",\n\t[EJustify.END]: \"justify-end\",\n\t[EJustify.CENTER]: \"justify-center\",\n\t[EJustify.BETWEEN]: \"justify-between\",\n\t[EJustify.AROUND]: \"justify-around\",\n\t[EJustify.EVENLY]: \"justify-evenly\"\n};\n\nexport const UiRadio: React.FC<TUiRadioProps> = ({\n\tname,\n\tvalue,\n\tinvertOrder = false,\n\tjustify = EJustify.START,\n\tdisabled = false,\n\tonChange,\n\tchecked = false,\n\tchildren\n}) => {\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (!disabled && onChange) {\n\t\t\tonChange(event.target.value);\n\t\t}\n\t};\n\n\treturn (\n\t\t<label className={\n\t\t\tcx(\"UiRadio\",\n\t\t\t\t\"group\",\n\t\t\t\t\"grid\",\n\t\t\t\t\"grid-flow-col\",\n\t\t\t\t\"cursor-pointer\",\n\t\t\t\tjustificationClasses[justify],\n\t\t\t\t{\n\t\t\t\t\t\"pointer-events-none\": disabled,\n\t\t\t\t\t\"items-center gap-xxs\": children\n\t\t\t\t}\n\t\t\t) }>\n\t\t\t<input\n\t\t\t\tid={ value }\n\t\t\t\tname={ name.toString() }\n\t\t\t\ttype=\"radio\"\n\t\t\t\tvalue={ value }\n\t\t\t\tdisabled={ disabled }\n\t\t\t\tchecked={ checked }\n\t\t\t\tonChange={ handleChange }\n\t\t\t\tclassName=\"peer absolute appearance-none\"\n\t\t\t/>\n\t\t\t<span className={ cx(\n\t\t\t\tstyles.UiRadio__custom,\n\t\t\t\tinvertOrder && \"order-last\",\n\t\t\t\t\"relative\",\n\t\t\t\t\"block\",\n\t\t\t\t\"size-md\",\n\t\t\t\t\"rounded-full\",\n\t\t\t\t\"border\",\n\t\t\t\t\"border-secondary-alt\",\n\t\t\t\t\"bg-white\",\n\t\t\t\t\"group-hover:border-secondary-alt-700\",\n\t\t\t\t\"group-focus:border-secondary-alt-700\",\n\t\t\t\t\"peer-checked:border-2\",\n\t\t\t\t\"peer-checked:border-primary\",\n\t\t\t\t\"peer-checked:
|
|
1
|
+
{"version":3,"file":"UiRadio.js","sources":["../../../src/components/UiRadio/UiRadio.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport styles from \"./UiRadio.module.css\";\nimport { EJustify } from \"../../_types/align\";\n\nexport type TUiRadioProps = {\n\tchildren?: React.ReactNode;\n\tname: string;\n\tvalue: string;\n\tinvertOrder?: boolean;\n\tjustify?: EJustify;\n\tdisabled?: boolean;\n\tchecked?: boolean;\n\tonChange: (value: string) => void;\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\" | \"checked\" | \"value\" | \"name\">;\n\nconst justificationClasses = {\n\t[EJustify.START]: \"justify-start\",\n\t[EJustify.END]: \"justify-end\",\n\t[EJustify.CENTER]: \"justify-center\",\n\t[EJustify.BETWEEN]: \"justify-between\",\n\t[EJustify.AROUND]: \"justify-around\",\n\t[EJustify.EVENLY]: \"justify-evenly\"\n};\n\nexport const UiRadio: React.FC<TUiRadioProps> = ({\n\tname,\n\tvalue,\n\tinvertOrder = false,\n\tjustify = EJustify.START,\n\tdisabled = false,\n\tonChange,\n\tchecked = false,\n\tchildren\n}) => {\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (!disabled && onChange) {\n\t\t\tonChange(event.target.value);\n\t\t}\n\t};\n\n\treturn (\n\t\t<label className={\n\t\t\tcx(\"UiRadio\",\n\t\t\t\t\"group\",\n\t\t\t\t\"grid\",\n\t\t\t\t\"grid-flow-col\",\n\t\t\t\t\"cursor-pointer\",\n\t\t\t\tjustificationClasses[justify],\n\t\t\t\t{\n\t\t\t\t\t\"pointer-events-none\": disabled,\n\t\t\t\t\t\"items-center gap-xxs\": children\n\t\t\t\t}\n\t\t\t) }>\n\t\t\t<input\n\t\t\t\tid={ value }\n\t\t\t\tname={ name.toString() }\n\t\t\t\ttype=\"radio\"\n\t\t\t\tvalue={ value }\n\t\t\t\tdisabled={ disabled }\n\t\t\t\tchecked={ checked }\n\t\t\t\tonChange={ handleChange }\n\t\t\t\tclassName=\"peer absolute appearance-none\"\n\t\t\t/>\n\t\t\t<span className={ cx(\n\t\t\t\tstyles.UiRadio__custom,\n\t\t\t\tinvertOrder && \"order-last\",\n\t\t\t\t\"relative\",\n\t\t\t\t\"block\",\n\t\t\t\t\"size-md\",\n\t\t\t\t\"rounded-full\",\n\t\t\t\t\"border\",\n\t\t\t\t\"border-secondary-alt\",\n\t\t\t\t\"bg-white\",\n\t\t\t\t\"group-hover:border-secondary-alt-700\",\n\t\t\t\t\"group-focus:border-secondary-alt-700\",\n\t\t\t\t\"peer-checked:border-2\",\n\t\t\t\t\"peer-checked:border-primary\",\n\t\t\t\t\"hover:peer-checked:border-primary-600\",\n\t\t\t\t\"active:peer-checked:border-primary-800\",\n\t\t\t\t\"peer-focus:shadow-border-primary\",\n\t\t\t\t\"peer-disabled:border-secondary-alt-400\",\n\t\t\t\t\"peer-disabled:bg-secondary-alt-200\"\n\t\t\t) }>\n\t\t\t\t<span className={ cx(\n\t\t\t\t\tstyles.UiRadio__dot,\n\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\"left-2/4\",\n\t\t\t\t\t\"top-2/4\",\n\t\t\t\t\t\"block\",\n\t\t\t\t\t\"size-xxs\",\n\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\"bg-primary\t\"\n\t\t\t\t) } />\n\t\t\t</span>\n\t\t\t{ children }\n\t\t</label>\n\t);\n};\n"],"names":["justificationClasses","EJustify","UiRadio","name","value","invertOrder","justify","disabled","onChange","checked","children","handleChange","event","jsxs","cx","jsx","styles"],"mappings":";;;;;;;GAgBMA,IAAuB;AAAA,EAC5B,CAACC,EAAS,KAAK,GAAG;AAAA,EAClB,CAACA,EAAS,GAAG,GAAG;AAAA,EAChB,CAACA,EAAS,MAAM,GAAG;AAAA,EACnB,CAACA,EAAS,OAAO,GAAG;AAAA,EACpB,CAACA,EAAS,MAAM,GAAG;AAAA,EACnB,CAACA,EAAS,MAAM,GAAG;AACpB,GAEaC,IAAmC,CAAC;AAAA,EAChD,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC,IAAUL,EAAS;AAAA,EACnB,UAAAM,IAAW;AAAA,EACX,UAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,UAAAC;AACD,MAAM;AAEC,QAAAC,IAAe,CAACC,MAA+C;AAChE,IAAA,CAACL,KAAYC,KACPA,EAAAI,EAAM,OAAO,KAAK;AAAA,EAE7B;AAGC,SAAA,gBAAAC,EAAC,WAAM,WACNC;AAAA,IAAG;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACAd,EAAqBM,CAAO;AAAA,IAC5B;AAAA,MACC,uBAAuBC;AAAA,MACvB,wBAAwBG;AAAA,IAAA;AAAA,EAG1B,GAAA,UAAA;AAAA,IAAA,gBAAAK;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,IAAKX;AAAA,QACL,MAAOD,EAAK,SAAS;AAAA,QACrB,MAAK;AAAA,QACL,OAAAC;AAAA,QACA,UAAAG;AAAA,QACA,SAAAE;AAAA,QACA,UAAWE;AAAA,QACX,WAAU;AAAA,MAAA;AAAA,IACX;AAAA,IACA,gBAAAI,EAAC,UAAK,WAAYD;AAAA,MACjBE,EAAO;AAAA,MACPX,KAAe;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD,GACC,UAAC,gBAAAU,EAAA,QAAA,EAAK,WAAYD;AAAA,MACjBE,EAAO;AAAA,MACP;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,OACG,EACL,CAAA;AAAA,IACEN;AAAA,EAAA,GACH;AAEF;"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
|
|
3
|
+
import { ERadioTypes } from './_types';
|
|
4
|
+
export type TUiRadioFancy = {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
icon?: IconProp;
|
|
6
7
|
disabled?: boolean;
|
|
8
|
+
active?: boolean;
|
|
7
9
|
subHeader?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
radioType?: ERadioTypes;
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (value: string) => void;
|
|
13
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "checked" | "value" | "name">;
|
|
14
|
+
export declare const UiRadioFancy: React.FC<TUiRadioFancy>;
|
|
@@ -1,46 +1,56 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
4
|
-
import { UiIcon as
|
|
5
|
-
import { ESize as
|
|
3
|
+
import t from "classnames";
|
|
4
|
+
import { UiIcon as m } from "../UiIcon/UiIcon.js";
|
|
5
|
+
import { ESize as f } from "../../_types/sizing.js";
|
|
6
6
|
import "@fortawesome/fontawesome-svg-core";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import { ERadioTypes as a } from "./_types.js";
|
|
8
|
+
const u = {
|
|
9
|
+
[a.DEFAULT]: "items-center",
|
|
10
|
+
[a.COMPACT]: "items-start flex-col"
|
|
11
|
+
}, N = ({
|
|
12
|
+
children: i,
|
|
13
|
+
icon: s,
|
|
10
14
|
disabled: e,
|
|
11
|
-
subHeader:
|
|
12
|
-
|
|
15
|
+
subHeader: n,
|
|
16
|
+
active: c,
|
|
17
|
+
radioType: l = a.DEFAULT,
|
|
18
|
+
value: d,
|
|
19
|
+
onChange: p
|
|
20
|
+
}) => /* @__PURE__ */ o("label", { className: t(
|
|
13
21
|
"ui-radio-fancy",
|
|
14
22
|
"relative",
|
|
15
23
|
{
|
|
16
24
|
"pointer-events-none": e
|
|
17
25
|
}
|
|
18
26
|
), children: [
|
|
19
|
-
/* @__PURE__ */ r("input", { className: "group peer absolute appearance-none", type: "radio" }),
|
|
20
|
-
/* @__PURE__ */ o("div", { className:
|
|
27
|
+
/* @__PURE__ */ r("input", { className: "group peer absolute appearance-none", type: "radio", checked: c, onChange: () => p(d) }),
|
|
28
|
+
/* @__PURE__ */ o("div", { className: t(
|
|
21
29
|
"box-border",
|
|
22
|
-
"size-full",
|
|
23
30
|
"cursor-pointer",
|
|
24
31
|
"rounded-lg",
|
|
25
|
-
"border
|
|
32
|
+
"border",
|
|
26
33
|
"bg-white",
|
|
27
34
|
"p-sm",
|
|
28
|
-
"hover:border-
|
|
29
|
-
"peer-focus:
|
|
30
|
-
"peer-
|
|
35
|
+
"hover:border-secondary-alt-700",
|
|
36
|
+
"peer-focus:outline ",
|
|
37
|
+
"peer-focus:outline-4",
|
|
38
|
+
"peer-focus:outline-primary-300",
|
|
39
|
+
"peer-checked:shadow-border-primary-600",
|
|
40
|
+
"peer-checked:border-0",
|
|
41
|
+
"active:peer-checked:bg-secondary-alt-200",
|
|
42
|
+
"hover:peer-checked:shadow-border-primary-700",
|
|
31
43
|
"flex",
|
|
32
|
-
"items-center",
|
|
33
44
|
"gap-sm",
|
|
34
45
|
"text-sm",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
46
|
+
c ? "peer-focus:outline-offset-2" : "peer-focus:outline-offset-0",
|
|
47
|
+
e ? "border-secondary-alt-400 text-secondary-alt-500 peer-checked:shadow-border-primary-disabled" : "border-secondary-alt-600",
|
|
48
|
+
u[l]
|
|
39
49
|
), children: [
|
|
40
50
|
/* @__PURE__ */ r(
|
|
41
51
|
"div",
|
|
42
52
|
{
|
|
43
|
-
className:
|
|
53
|
+
className: t(
|
|
44
54
|
"relative",
|
|
45
55
|
"grid",
|
|
46
56
|
"size-fit",
|
|
@@ -53,22 +63,22 @@ const u = ({
|
|
|
53
63
|
"bg-primary": !e
|
|
54
64
|
}
|
|
55
65
|
),
|
|
56
|
-
children:
|
|
57
|
-
|
|
66
|
+
children: s ? /* @__PURE__ */ r(
|
|
67
|
+
m,
|
|
58
68
|
{
|
|
59
|
-
name:
|
|
60
|
-
size:
|
|
69
|
+
name: s,
|
|
70
|
+
size: f.SM
|
|
61
71
|
}
|
|
62
72
|
) : null
|
|
63
73
|
}
|
|
64
74
|
),
|
|
65
75
|
/* @__PURE__ */ o("div", { className: "flex flex-col", children: [
|
|
66
|
-
|
|
67
|
-
/* @__PURE__ */ r("div", { className: "text-xs font-normal text-secondary-alt-400", children:
|
|
76
|
+
i,
|
|
77
|
+
/* @__PURE__ */ r("div", { className: "text-xs font-normal text-secondary-alt-400", children: n })
|
|
68
78
|
] })
|
|
69
79
|
] })
|
|
70
80
|
] });
|
|
71
81
|
export {
|
|
72
|
-
|
|
82
|
+
N as UiRadioFancy
|
|
73
83
|
};
|
|
74
84
|
//# sourceMappingURL=UiRadioFancy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiRadioFancy.js","sources":["../../../src/components/UiRadioFancy/UiRadioFancy.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { UiIcon } from \"../UiIcon\";\nimport { ESize } from \"../../_types/sizing\";\nimport { type IconProp } from \"@fortawesome/fontawesome-svg-core\";\n\
|
|
1
|
+
{"version":3,"file":"UiRadioFancy.js","sources":["../../../src/components/UiRadioFancy/UiRadioFancy.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { UiIcon } from \"../UiIcon\";\nimport { ESize } from \"../../_types/sizing\";\nimport { type IconProp } from \"@fortawesome/fontawesome-svg-core\";\nimport { ERadioTypes } from \"./_types\";\n\nexport type TUiRadioFancy = {\n\tchildren: React.ReactNode\n\ticon?: IconProp\n\tdisabled?: boolean;\n\tactive?: boolean;\n\tsubHeader?: string;\n\tradioType?: ERadioTypes;\n\tvalue: string;\n\tonChange: (value: string) => void;\n\n}& Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\" | \"checked\" | \"value\" | \"name\">;\n\nconst typeClasses = {\n\t[ERadioTypes.DEFAULT]: \"items-center\",\n\t[ERadioTypes.COMPACT]: \"items-start flex-col\"\n};\n\nexport const UiRadioFancy: React.FC<TUiRadioFancy> = ({\n\tchildren,\n\ticon,\n\tdisabled,\n\tsubHeader,\n\tactive,\n\tradioType = ERadioTypes.DEFAULT,\n\tvalue,\n\tonChange\n\n}) => {\n\treturn (\n\t\t<label className={ cx(\n\t\t\t\"ui-radio-fancy\",\n\t\t\t\"relative\",\n\t\t\t{\n\t\t\t\t\"pointer-events-none\": disabled\n\t\t\t}\n\t\t) }>\n\t\t\t<input className=\"group peer absolute appearance-none\" type=\"radio\" checked={ active } onChange={ ()=> onChange(value) }/>\n\n\t\t\t<div className={ cx(\n\t\t\t\t\"box-border\",\n\t\t\t\t\"cursor-pointer\",\n\t\t\t\t\"rounded-lg\",\n\t\t\t\t\"border\",\n\t\t\t\t\"bg-white\",\n\t\t\t\t\"p-sm\",\n\t\t\t\t\"hover:border-secondary-alt-700\",\n\t\t\t\t\"peer-focus:outline \",\n\t\t\t\t\"peer-focus:outline-4\",\n\t\t\t\t\"peer-focus:outline-primary-300\",\n\t\t\t\t\"peer-checked:shadow-border-primary-600\",\n\t\t\t\t\"peer-checked:border-0\",\n\t\t\t\t\"active:peer-checked:bg-secondary-alt-200\",\n\t\t\t\t\"hover:peer-checked:shadow-border-primary-700\",\n\t\t\t\t\"flex\",\n\t\t\t\t\"gap-sm\",\n\t\t\t\t\"text-sm\",\n\t\t\t\tactive\n\t\t\t\t\t? \"peer-focus:outline-offset-2\"\n\t\t\t\t\t: \"peer-focus:outline-offset-0\",\n\t\t\t\tdisabled\n\t\t\t\t\t? \"border-secondary-alt-400 text-secondary-alt-500 peer-checked:shadow-border-primary-disabled\"\n\t\t\t\t\t: \"border-secondary-alt-600\",\n\n\t\t\t\ttypeClasses[radioType],\n\n\t\t\t) }>\n\t\t\t\t<div className={ cx(\n\t\t\t\t\t\"relative\",\n\t\t\t\t\t\"grid\",\n\t\t\t\t\t\"size-fit\",\n\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\"place-items-center\",\n\t\t\t\t\t\"text-white\",\n\t\t\t\t\t\"p-xxs\",\n\t\t\t\t\t{\n\t\t\t\t\t\t\"bg-primary-300\": disabled,\n\t\t\t\t\t\t\"bg-primary\": !disabled\n\t\t\t\t\t}\n\n\t\t\t\t) }\n\t\t\t\t>\n\n\t\t\t\t\t{\n\t\t\t\t\t\ticon\n\t\t\t\t\t\t\t? <UiIcon\n\t\t\t\t\t\t\t\tname={ icon }\n\t\t\t\t\t\t\t\tsize={ ESize.SM }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t: null\n\t\t\t\t\t}\n\n\t\t\t\t</div>\n\n\t\t\t\t<div className=\"flex flex-col\">\n\t\t\t\t\t{ children }\n\t\t\t\t\t<div className=\"text-xs font-normal text-secondary-alt-400\">{ subHeader }</div>\n\t\t\t\t</div>\n\n\t\t\t</div>\n\n\t\t</label>\n\n\t);\n};\n"],"names":["typeClasses","ERadioTypes","UiRadioFancy","children","icon","disabled","subHeader","active","radioType","value","onChange","jsxs","cx","jsx","UiIcon","ESize"],"mappings":";;;;;;;AAmBA,MAAMA,IAAc;AAAA,EACnB,CAACC,EAAY,OAAO,GAAG;AAAA,EACvB,CAACA,EAAY,OAAO,GAAG;AACxB,GAEaC,IAAwC,CAAC;AAAA,EACrD,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC,IAAYP,EAAY;AAAA,EACxB,OAAAQ;AAAA,EACA,UAAAC;AAED,MAEE,gBAAAC,EAAC,WAAM,WAAYC;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,IACC,uBAAuBP;AAAA,EAAA;AAGxB,GAAA,UAAA;AAAA,EAAC,gBAAAQ,EAAA,SAAA,EAAM,WAAU,uCAAsC,MAAK,SAAQ,SAAUN,GAAS,UAAW,MAAKG,EAASD,CAAK,EAAG,CAAA;AAAA,EAExH,gBAAAE,EAAC,SAAI,WAAYC;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACAL,IACG,gCACA;AAAA,IACHF,IACG,gGACA;AAAA,IAEHL,EAAYQ,CAAS;AAAA,EAGrB,GAAA,UAAA;AAAA,IAAA,gBAAAK;AAAA,MAAC;AAAA,MAAA;AAAA,QAAI,WAAYD;AAAA,UAChB;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,YACC,kBAAkBP;AAAA,YAClB,cAAc,CAACA;AAAA,UAAA;AAAA,QAGjB;AAAA,QAIE,UACGD,IAAA,gBAAAS;AAAA,UAACC;AAAA,UAAA;AAAA,YACF,MAAOV;AAAA,YACP,MAAOW,EAAM;AAAA,UAAA;AAAA,QAAA,IAEZ;AAAA,MAAA;AAAA,IAGL;AAAA,IAEA,gBAAAJ,EAAC,OAAI,EAAA,WAAU,iBACZ,UAAA;AAAA,MAAAR;AAAA,MACD,gBAAAU,EAAA,OAAA,EAAI,WAAU,8CAA+C,UAAWP,EAAA,CAAA;AAAA,IAAA,EAC1E,CAAA;AAAA,EAAA,EAED,CAAA;AAAA,GAED;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t = /* @__PURE__ */ ((r) => (r.DEFAULT = "default", r.COMPACT = "compact", r))(t || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
t as ERadioTypes
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=_types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sources":["../../../src/components/UiRadioFancy/_types.ts"],"sourcesContent":["export enum ERadioTypes {\n\
|
|
1
|
+
{"version":3,"file":"_types.js","sources":["../../../src/components/UiRadioFancy/_types.ts"],"sourcesContent":["export enum ERadioTypes {\n\tDEFAULT = \"default\",\n\tCOMPACT = \"compact\"\n}\n"],"names":["ERadioTypes"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,UAAU,WAFCA,IAAAA,KAAA,CAAA,CAAA;"}
|