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,21 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { ETableKind as t } from "./_types.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import i from "classnames";
|
|
5
|
+
const a = {
|
|
6
6
|
[t.DEFAULT]: "",
|
|
7
7
|
[t.SECONDARY]: "[&>tr:nth-child(odd)>td]:bg-secondary-alt-200",
|
|
8
8
|
[t.SECONDARY_INVERTED]: "[&>tr:nth-child(even)>td]:bg-secondary-alt-200"
|
|
9
|
-
},
|
|
9
|
+
}, h = ({
|
|
10
10
|
kind: o = t.SECONDARY_INVERTED,
|
|
11
11
|
header: r,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
className: e,
|
|
13
|
+
children: n,
|
|
14
|
+
...l
|
|
15
|
+
}) => /* @__PURE__ */ s("table", { ...l, className: e, children: [
|
|
15
16
|
r && /* @__PURE__ */ d("thead", { children: r }),
|
|
16
|
-
/* @__PURE__ */ d("tbody", { className:
|
|
17
|
+
/* @__PURE__ */ d("tbody", { className: i("rounded-xl", a[o]), children: n })
|
|
17
18
|
] });
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
h as UiTable
|
|
20
21
|
};
|
|
21
22
|
//# sourceMappingURL=UiTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiTable.js","sources":["../../../src/components/UiTable/UiTable.tsx"],"sourcesContent":["import React from \"react\";\nimport { ETableKind } from \"./_types\";\nimport cn from \"classnames\";\n\ntype TTableProps = {\n\tkind?: ETableKind;\n\theader?: React.ReactNode;\n} & React.HTMLAttributes<HTMLTableElement>;\n\nconst kindClasses = {\n\t[ETableKind.DEFAULT]: \"\",\n\t[ETableKind.SECONDARY]: \"[&>tr:nth-child(odd)>td]:bg-secondary-alt-200\",\n\t[ETableKind.SECONDARY_INVERTED]: \"[&>tr:nth-child(even)>td]:bg-secondary-alt-200\",\n};\n\nexport const UiTable: React.FC<TTableProps> = ({\n\tkind = ETableKind.SECONDARY_INVERTED,\n\theader,\n\tchildren,\n\t...rest\n}) => {\n\treturn (\n\t\t<table { ...rest }>\n\t\t\t{ header && (<thead>{ header }</thead>) }\n\t\t\t<tbody className={ cn(\"rounded-xl\", kindClasses[kind]) }>\n\t\t\t\t{ children }\n\t\t\t</tbody>\n\t\t</table>\n\t);\n};\n"],"names":["kindClasses","ETableKind","UiTable","kind","header","children","rest","jsxs","jsx","cn"],"mappings":";;;;AASA,MAAMA,IAAc;AAAA,EACnB,CAACC,EAAW,OAAO,GAAG;AAAA,EACtB,CAACA,EAAW,SAAS,GAAG;AAAA,EACxB,CAACA,EAAW,kBAAkB,GAAG;AAClC,GAEaC,IAAiC,CAAC;AAAA,EAC9C,MAAAC,IAAOF,EAAW;AAAA,EAClB,QAAAG;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACJ,
|
|
1
|
+
{"version":3,"file":"UiTable.js","sources":["../../../src/components/UiTable/UiTable.tsx"],"sourcesContent":["import React from \"react\";\nimport { ETableKind } from \"./_types\";\nimport cn from \"classnames\";\n\ntype TTableProps = {\n\tkind?: ETableKind;\n\theader?: React.ReactNode;\n} & React.HTMLAttributes<HTMLTableElement>;\n\nconst kindClasses = {\n\t[ETableKind.DEFAULT]: \"\",\n\t[ETableKind.SECONDARY]: \"[&>tr:nth-child(odd)>td]:bg-secondary-alt-200\",\n\t[ETableKind.SECONDARY_INVERTED]: \"[&>tr:nth-child(even)>td]:bg-secondary-alt-200\",\n};\n\nexport const UiTable: React.FC<TTableProps> = ({\n\tkind = ETableKind.SECONDARY_INVERTED,\n\theader,\n\tclassName,\n\tchildren,\n\t...rest\n}) => {\n\treturn (\n\t\t<table { ...rest } className={ className }>\n\t\t\t{ header && (<thead>{ header }</thead>) }\n\t\t\t<tbody className={ cn(\"rounded-xl\", kindClasses[kind]) }>\n\t\t\t\t{ children }\n\t\t\t</tbody>\n\t\t</table>\n\t);\n};\n"],"names":["kindClasses","ETableKind","UiTable","kind","header","className","children","rest","jsxs","jsx","cn"],"mappings":";;;;AASA,MAAMA,IAAc;AAAA,EACnB,CAACC,EAAW,OAAO,GAAG;AAAA,EACtB,CAACA,EAAW,SAAS,GAAG;AAAA,EACxB,CAACA,EAAW,kBAAkB,GAAG;AAClC,GAEaC,IAAiC,CAAC;AAAA,EAC9C,MAAAC,IAAOF,EAAW;AAAA,EAClB,QAAAG;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACJ,MAEG,gBAAAC,EAAA,SAAA,EAAQ,GAAGD,GAAO,WAAAF,GAChB,UAAA;AAAA,EAAWD,KAAA,gBAAAK,EAAC,WAAQ,UAAQL,EAAA,CAAA;AAAA,EAC9B,gBAAAK,EAAC,WAAM,WAAYC,EAAG,cAAcV,EAAYG,CAAI,CAAC,GAClD,UAAAG,EACH,CAAA;AAAA,GACD;"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { UiTypography as e } from "../UiTypography/UiTypography.js";
|
|
4
|
-
import { ETypographySizes as
|
|
5
|
-
import { EColors as
|
|
6
|
-
|
|
4
|
+
import { ETypographySizes as m, ETextWeight as x } from "../UiTypography/_types.js";
|
|
5
|
+
import { EColors as c } from "../../_types/colors.js";
|
|
6
|
+
import f from "classnames";
|
|
7
|
+
const S = ({ align: t, subText: o, weight: l, children: r, className: p, ...s }) => /* @__PURE__ */ i("td", { ...s, children: /* @__PURE__ */ a(
|
|
7
8
|
e,
|
|
8
9
|
{
|
|
9
10
|
tag: "div",
|
|
10
|
-
size:
|
|
11
|
-
align:
|
|
12
|
-
weight:
|
|
13
|
-
className: "p-sm",
|
|
11
|
+
size: m.SM,
|
|
12
|
+
align: t,
|
|
13
|
+
weight: l,
|
|
14
|
+
className: f("p-sm", p),
|
|
14
15
|
children: [
|
|
15
16
|
r,
|
|
16
17
|
o ? /* @__PURE__ */ i(
|
|
17
18
|
e,
|
|
18
19
|
{
|
|
19
20
|
tag: "div",
|
|
20
|
-
size:
|
|
21
|
-
weight:
|
|
22
|
-
color:
|
|
21
|
+
size: m.XXS,
|
|
22
|
+
weight: x.SEMI_BOLD,
|
|
23
|
+
color: c.PRIMARY_ALT_700,
|
|
23
24
|
className: `flex flex-col gap-xxxs ${r ? "pt-sm" : ""}`,
|
|
24
25
|
children: o
|
|
25
26
|
}
|
|
@@ -28,6 +29,6 @@ const n = ({ align: s, subText: o, weight: t, children: r, ...m }) => /* @__PURE
|
|
|
28
29
|
}
|
|
29
30
|
) });
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
S as UiTableCell
|
|
32
33
|
};
|
|
33
34
|
//# sourceMappingURL=UiTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiTableCell.js","sources":["../../../src/components/UiTable/UiTableCell.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n\tUiTypography, ETextAlign, ETypographySizes, ETextWeight, EColors\n} from \"../UiTypography\";\n\ntype TCellProps = {\n\talign?: ETextAlign;\n\tsubText?: React.ReactNode;\n\tweight?: ETextWeight;\n} & React.HTMLAttributes<HTMLTableCellElement>;\n\nexport const UiTableCell: React.FC<TCellProps> = ({ align, subText, weight, children, ...rest }) => {\n\treturn (\n\t\t<td { ...rest }>\n\t\t\t<UiTypography\n\t\t\t\ttag=\"div\"\n\t\t\t\tsize={ ETypographySizes.SM }\n\t\t\t\talign={ align }\n\t\t\t\tweight={ weight }\n\t\t\t\tclassName=
|
|
1
|
+
{"version":3,"file":"UiTableCell.js","sources":["../../../src/components/UiTable/UiTableCell.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n\tUiTypography, ETextAlign, ETypographySizes, ETextWeight, EColors\n} from \"../UiTypography\";\nimport cx from \"classnames\";\n\ntype TCellProps = {\n\talign?: ETextAlign;\n\tsubText?: React.ReactNode;\n\tweight?: ETextWeight;\n} & React.HTMLAttributes<HTMLTableCellElement>;\n\nexport const UiTableCell: React.FC<TCellProps> = ({ align, subText, weight, children, className, ...rest }) => {\n\treturn (\n\t\t<td { ...rest }>\n\t\t\t<UiTypography\n\t\t\t\ttag=\"div\"\n\t\t\t\tsize={ ETypographySizes.SM }\n\t\t\t\talign={ align }\n\t\t\t\tweight={ weight }\n\t\t\t\tclassName={ cx(\"p-sm\", className) }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t\t{\n\t\t\t\t\tsubText\n\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t<UiTypography\n\t\t\t\t\t\t\t\ttag=\"div\"\n\t\t\t\t\t\t\t\tsize={ ETypographySizes.XXS }\n\t\t\t\t\t\t\t\tweight={ ETextWeight.SEMI_BOLD }\n\t\t\t\t\t\t\t\tcolor={ EColors.PRIMARY_ALT_700 }\n\t\t\t\t\t\t\t\tclassName={ `flex flex-col gap-xxxs ${children ? \"pt-sm\" : \"\"}` }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ subText }\n\t\t\t\t\t\t\t</UiTypography>\n\t\t\t\t\t\t)\n\t\t\t\t\t\t: null\n\t\t\t\t}\n\t\t\t</UiTypography>\n\t\t</td>\n\t);\n};\n"],"names":["UiTableCell","align","subText","weight","children","className","rest","jsx","jsxs","UiTypography","ETypographySizes","cx","ETextWeight","EColors"],"mappings":";;;;;;AAYa,MAAAA,IAAoC,CAAC,EAAE,OAAAC,GAAO,SAAAC,GAAS,QAAAC,GAAQ,UAAAC,GAAU,WAAAC,GAAW,GAAGC,QAElG,gBAAAC,EAAC,MAAK,EAAA,GAAGD,GACR,UAAA,gBAAAE;AAAA,EAACC;AAAA,EAAA;AAAA,IACA,KAAI;AAAA,IACJ,MAAOC,EAAiB;AAAA,IACxB,OAAAT;AAAA,IACA,QAAAE;AAAA,IACA,WAAYQ,EAAG,QAAQN,CAAS;AAAA,IAE9B,UAAA;AAAA,MAAAD;AAAA,MAEDF,IAEE,gBAAAK;AAAA,QAACE;AAAA,QAAA;AAAA,UACA,KAAI;AAAA,UACJ,MAAOC,EAAiB;AAAA,UACxB,QAASE,EAAY;AAAA,UACrB,OAAQC,EAAQ;AAAA,UAChB,WAAY,0BAA0BT,IAAW,UAAU,EAAE;AAAA,UAE3D,UAAAF;AAAA,QAAA;AAAA,MAAA,IAGF;AAAA,IAAA;AAAA,EAAA;AAAA,GAGN;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import r from "classnames";
|
|
4
|
-
const
|
|
4
|
+
const p = ({
|
|
5
5
|
tabs: s,
|
|
6
6
|
tabsModel: l,
|
|
7
|
-
onTabChange: a
|
|
7
|
+
onTabChange: a,
|
|
8
|
+
className: c
|
|
8
9
|
}) => /* @__PURE__ */ o("ul", { className: r(
|
|
9
10
|
"ui-tabs",
|
|
10
11
|
"grid",
|
|
@@ -12,7 +13,8 @@ const i = ({
|
|
|
12
13
|
"rounded-full",
|
|
13
14
|
"bg-secondary-alt-200",
|
|
14
15
|
"p-[2px]",
|
|
15
|
-
"text-secondary-400"
|
|
16
|
+
"text-secondary-400",
|
|
17
|
+
c
|
|
16
18
|
), children: s.map((e) => /* @__PURE__ */ o(
|
|
17
19
|
"li",
|
|
18
20
|
{
|
|
@@ -21,7 +23,7 @@ const i = ({
|
|
|
21
23
|
"text-center",
|
|
22
24
|
l === e && "bg-white border border-secondary-alt-600 text-secondary-500"
|
|
23
25
|
),
|
|
24
|
-
children: /* @__PURE__ */
|
|
26
|
+
children: /* @__PURE__ */ n("label", { className: r(
|
|
25
27
|
"block",
|
|
26
28
|
"cursor-pointer",
|
|
27
29
|
"px-md",
|
|
@@ -49,6 +51,6 @@ const i = ({
|
|
|
49
51
|
e
|
|
50
52
|
)) });
|
|
51
53
|
export {
|
|
52
|
-
|
|
54
|
+
p as UiTabs
|
|
53
55
|
};
|
|
54
56
|
//# sourceMappingURL=UiTabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiTabs.js","sources":["../../../src/components/UiTabs/UiTabs.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\n\ntype UiTabsProps ={\n\ttabs: string[]\n\ttabsModel
|
|
1
|
+
{"version":3,"file":"UiTabs.js","sources":["../../../src/components/UiTabs/UiTabs.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\n\ntype UiTabsProps ={\n\ttabs: string[]\n\ttabsModel: string,\n\tclassName: string\n\tonTabChange: (val: string) => void\n}\n\nexport const UiTabs: React.FC<UiTabsProps> = ({\n\ttabs,\n\ttabsModel,\n\tonTabChange,\n\tclassName\n}) => {\n\n\treturn (\n\t\t<ul className={ cx(\n\t\t\t\"ui-tabs\",\n\t\t\t\"grid\",\n\t\t\t\"grid-flow-col\",\n\t\t\t\"rounded-full\",\n\t\t\t\"bg-secondary-alt-200\",\n\t\t\t\"p-[2px]\",\n\t\t\t\"text-secondary-400\",\n\t\t\tclassName\n\t\t) }>\n\t\t\t{ tabs.map((tab) => (\n\t\t\t\t<li\n\t\t\t\t\tkey={ tab }\n\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\t\"text-center\",\n\t\t\t\t\t\ttabsModel === tab && \"bg-white border border-secondary-alt-600 text-secondary-500\",\n\n\t\t\t\t\t) }\n\t\t\t\t>\n\t\t\t\t\t<label className={ cx(\n\t\t\t\t\t\t\"block\",\n\t\t\t\t\t\t\"cursor-pointer\",\n\t\t\t\t\t\t\"px-md\",\n\t\t\t\t\t\t\"py-xxs\"\n\t\t\t\t\t) }>\n\t\t\t\t\t\t<input className={ cx(\n\t\t\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\t\t\"appearance-none\"\n\t\t\t\t\t\t) }\n\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\tvalue={ tab }\n\t\t\t\t\t\tchecked={ tabsModel === tab }\n\t\t\t\t\t\tonChange={ ()=> onTabChange(tab) }>\n\t\t\t\t\t\t</input>\n\n\t\t\t\t\t\t<span className={ cx(\n\t\t\t\t\t\t\t\"font-bold\",\n\t\t\t\t\t\t\t\"text-xs\"\n\t\t\t\t\t\t) }>\n\t\t\t\t\t\t\t{ tab }\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t</label>\n\n\t\t\t\t</li>\n\t\t\t)) }\n\t\t</ul>\n\t);\n};\n"],"names":["UiTabs","tabs","tabsModel","onTabChange","className","jsx","cx","tab","jsxs"],"mappings":";;;AAUO,MAAMA,IAAgC,CAAC;AAAA,EAC7C,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AACD,MAGE,gBAAAC,EAAC,QAAG,WAAYC;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACAF;AAEE,GAAA,UAAAH,EAAK,IAAI,CAACM,MACX,gBAAAF;AAAA,EAAC;AAAA,EAAA;AAAA,IAEA,WAAYC;AAAA,MACX;AAAA,MACA;AAAA,MACAJ,MAAcK,KAAO;AAAA,IAEtB;AAAA,IAEA,UAAA,gBAAAC,EAAC,WAAM,WAAYF;AAAA,MAClB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAEA,GAAA,UAAA;AAAA,MAAA,gBAAAD;AAAA,QAAC;AAAA,QAAA;AAAA,UAAM,WAAYC;AAAA,YAClB;AAAA,YACA;AAAA,UACD;AAAA,UACA,MAAK;AAAA,UACL,OAAQC;AAAA,UACR,SAAUL,MAAcK;AAAA,UACxB,UAAW,MAAKJ,EAAYI,CAAG;AAAA,QAAA;AAAA,MAC/B;AAAA,MAEA,gBAAAF,EAAC,UAAK,WAAYC;AAAA,QACjB;AAAA,QACA;AAAA,MAAA,GAEE,UACHC,EAAA,CAAA;AAAA,IAAA,EAED,CAAA;AAAA,EAAA;AAAA,EA/BMA;AAkCP,CAAA,GACF;"}
|
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
const v =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as T, useEffect as f } from "react";
|
|
3
|
+
import t from "classnames";
|
|
4
|
+
import '../../assets/UiToggle.css';const U = "_UiToggle__dot_1uov6_1", v = "_UiToggle__dot_checked_1uov6_13", k = "_UiToggle__icon_1uov6_17", w = "_UiToggle__icon_checked_1uov6_26", l = {
|
|
5
|
+
UiToggle__dot: U,
|
|
6
|
+
UiToggle__dot_checked: v,
|
|
7
|
+
UiToggle__icon: k,
|
|
8
|
+
UiToggle__icon_checked: w
|
|
9
|
+
}, N = ({
|
|
10
|
+
children: a,
|
|
11
|
+
disabled: e = !1,
|
|
12
|
+
invertOrder: d = !1,
|
|
13
|
+
checked: c,
|
|
14
|
+
value: i,
|
|
15
|
+
className: m,
|
|
16
|
+
defaultChecked: h,
|
|
17
|
+
onChange: s,
|
|
18
|
+
...p
|
|
13
19
|
}) => {
|
|
14
|
-
const [
|
|
15
|
-
|
|
20
|
+
const [_, g] = T(h ?? !1), o = i ?? c ?? _, u = () => {
|
|
21
|
+
i === void 0 && c === void 0 && g(!_), s == null || s(!o);
|
|
16
22
|
};
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
}, [
|
|
23
|
+
return f(() => {
|
|
24
|
+
c !== void 0 && g(c);
|
|
25
|
+
}, [c]), /* @__PURE__ */ r(
|
|
20
26
|
"div",
|
|
21
27
|
{
|
|
22
|
-
className:
|
|
23
|
-
"ui-toggle"
|
|
28
|
+
className: t(
|
|
29
|
+
"ui-toggle",
|
|
30
|
+
m
|
|
24
31
|
),
|
|
25
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ n("label", { className: t(
|
|
26
33
|
"flex",
|
|
27
34
|
"cursor-pointer",
|
|
28
35
|
"gap-sm",
|
|
@@ -33,71 +40,90 @@ const v = ({
|
|
|
33
40
|
"leading-normal",
|
|
34
41
|
"text-md",
|
|
35
42
|
{
|
|
36
|
-
"flex-row-reverse":
|
|
37
|
-
"pointer-events-none opacity-50":
|
|
43
|
+
"flex-row-reverse": d,
|
|
44
|
+
"pointer-events-none opacity-50": e
|
|
38
45
|
}
|
|
39
46
|
), children: [
|
|
40
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ n("span", { className: t(
|
|
41
48
|
"relative",
|
|
42
49
|
"block",
|
|
43
50
|
"h-md"
|
|
44
51
|
), children: [
|
|
45
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ r(
|
|
46
53
|
"input",
|
|
47
54
|
{
|
|
48
|
-
className:
|
|
55
|
+
className: t(
|
|
49
56
|
"absolute",
|
|
50
57
|
"size-0",
|
|
51
58
|
"appearance-none",
|
|
52
59
|
"border-0"
|
|
53
60
|
),
|
|
54
61
|
type: "checkbox",
|
|
55
|
-
checked:
|
|
56
|
-
onChange:
|
|
57
|
-
disabled:
|
|
58
|
-
value:
|
|
59
|
-
...
|
|
62
|
+
checked: o,
|
|
63
|
+
onChange: u,
|
|
64
|
+
disabled: e,
|
|
65
|
+
value: i,
|
|
66
|
+
...p
|
|
60
67
|
}
|
|
61
68
|
),
|
|
62
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ r("span", { className: t(
|
|
63
70
|
"block",
|
|
64
71
|
"h-md",
|
|
65
72
|
"w-xl",
|
|
66
73
|
"rounded-full",
|
|
67
74
|
{
|
|
68
|
-
"bg-primary-
|
|
69
|
-
"bg-secondary-alt-300": !
|
|
70
|
-
"bg-secondary-alt-600": !
|
|
71
|
-
"bg-primary-300":
|
|
75
|
+
"bg-primary-600": o && !e,
|
|
76
|
+
"bg-secondary-alt-300": !o && e,
|
|
77
|
+
"bg-secondary-alt-600": !o && !e,
|
|
78
|
+
"bg-primary-300": o && e
|
|
72
79
|
}
|
|
73
80
|
) }),
|
|
74
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ r("span", { className: t(
|
|
75
82
|
"absolute",
|
|
76
83
|
"top-[50%]",
|
|
77
84
|
"block",
|
|
78
85
|
"rounded-full",
|
|
79
86
|
"bg-white",
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
87
|
+
l.UiToggle__dot,
|
|
88
|
+
{
|
|
89
|
+
"hover:shadow-border-secondary": !o && !e,
|
|
90
|
+
"hover:shadow-border-primary": o && !e,
|
|
91
|
+
[l.UiToggle__dot_checked]: o
|
|
92
|
+
}
|
|
93
|
+
), children: /* @__PURE__ */ r(
|
|
94
|
+
"svg",
|
|
88
95
|
{
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
96
|
+
className: t(
|
|
97
|
+
l.UiToggle__icon,
|
|
98
|
+
"absolute",
|
|
99
|
+
e ? "text-primary-300" : "text-primary-600",
|
|
100
|
+
{
|
|
101
|
+
[l.UiToggle__icon_checked]: o
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
width: "16",
|
|
105
|
+
height: "16",
|
|
106
|
+
viewBox: "0 0 16 16",
|
|
107
|
+
fill: "none",
|
|
108
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
109
|
+
children: /* @__PURE__ */ r(
|
|
110
|
+
"path",
|
|
111
|
+
{
|
|
112
|
+
d: "M1 4.40106L6.60071 10.1135L15.1694 1.71245",
|
|
113
|
+
stroke: "currentColor",
|
|
114
|
+
"stroke-width": "1.6",
|
|
115
|
+
"stroke-linecap": "round"
|
|
116
|
+
}
|
|
117
|
+
)
|
|
92
118
|
}
|
|
93
119
|
) })
|
|
94
120
|
] }),
|
|
95
|
-
|
|
121
|
+
a
|
|
96
122
|
] })
|
|
97
123
|
}
|
|
98
124
|
);
|
|
99
125
|
};
|
|
100
126
|
export {
|
|
101
|
-
|
|
127
|
+
N as UiToggle
|
|
102
128
|
};
|
|
103
129
|
//# sourceMappingURL=UiToggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiToggle.js","sources":["../../../src/components/UiToggle/UiToggle.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport cx from \"classnames\";\n\ntype TUiToggleProps = {\n\tchildren?: React.ReactNode\n\tdisabled?: boolean\n\tinvertOrder?: boolean\n\tdefaultChecked?: boolean\n\tchecked?: boolean\n\tvalue?: boolean\n\tonChange?: (checked: boolean) => void\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\">;\n\nexport const UiToggle: React.FC<TUiToggleProps> = ({\n\tchildren,\n\tdisabled = false,\n\tinvertOrder = false,\n\tchecked,\n\tvalue,\n\tdefaultChecked,\n\tonChange,\n\t...rest\n}) => {\n\n\tconst [toggled, setIsToggled] = useState<boolean>(defaultChecked ?? false);\n\n\tconst isChecked = value ?? checked ?? toggled;\n\n\tconst handleChange = () => {\n\t\tif (value === undefined && checked === undefined) {\n\t\t\tsetIsToggled(!toggled);\n\t\t}\n\n\t\tonChange?.(!isChecked);\n\t};\n\n\tuseEffect(()=>{\n\t\tif ( checked !== undefined) {\n\t\t\tsetIsToggled(checked);\n\t\t}\n\t}, [checked]);\n\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"ui-toggle\"\n\t\t) }\n\t\t>\n\n\t\t\t<label className={ cx(\n\t\t\t\t\"flex\",\n\t\t\t\t\"cursor-pointer\",\n\t\t\t\t\"gap-sm\",\n\t\t\t\t\"rounded-full\",\n\t\t\t\t\"mt-sm\",\n\t\t\t\t\"items-center\",\n\t\t\t\t\"w-full\",\n\t\t\t\t\"leading-normal\",\n\t\t\t\t\"text-md\",\n\t\t\t\t{\n\t\t\t\t\t\"flex-row-reverse\": invertOrder,\n\t\t\t\t\t\"pointer-events-none opacity-50\": disabled\n\t\t\t\t}\n\n\t\t\t) }>\n\t\t\t\t<span className={ cx(\n\t\t\t\t\t\"relative\",\n\t\t\t\t\t\"block\",\n\t\t\t\t\t\"h-md\"\n\t\t\t\t) }>\n\n\t\t\t\t\t<input className={ cx(\n\t\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\t\"size-0\",\n\t\t\t\t\t\t\"appearance-none\",\n\t\t\t\t\t\t\"border-0\"\n\t\t\t\t\t) }\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tchecked={ isChecked }\n\t\t\t\t\tonChange={ handleChange }\n\t\t\t\t\tdisabled={ disabled }\n\t\t\t\t\tvalue={ value }\n\t\t\t\t\t{ ...rest }\n\t\t\t\t\t>\n\t\t\t\t\t</input>\n\n\t\t\t\t\t<span className={ cx(\n\t\t\t\t\t\t\"block\",\n\t\t\t\t\t\t\"h-md\",\n\t\t\t\t\t\t\"w-xl\",\n\t\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"bg-primary-
|
|
1
|
+
{"version":3,"file":"UiToggle.js","sources":["../../../src/components/UiToggle/UiToggle.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport cx from \"classnames\";\nimport styles from \"./UiToggle.module.css\";\n\ntype TUiToggleProps = {\n\tchildren?: React.ReactNode\n\tdisabled?: boolean\n\tinvertOrder?: boolean\n\tdefaultChecked?: boolean\n\tchecked?: boolean\n\tvalue?: boolean\n\tonChange?: (checked: boolean) => void\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\">;\n\nexport const UiToggle: React.FC<TUiToggleProps> = ({\n\tchildren,\n\tdisabled = false,\n\tinvertOrder = false,\n\tchecked,\n\tvalue,\n\tclassName,\n\tdefaultChecked,\n\tonChange,\n\t...rest\n}) => {\n\n\tconst [toggled, setIsToggled] = useState<boolean>(defaultChecked ?? false);\n\n\tconst isChecked = value ?? checked ?? toggled;\n\n\tconst handleChange = () => {\n\t\tif (value === undefined && checked === undefined) {\n\t\t\tsetIsToggled(!toggled);\n\t\t}\n\n\t\tonChange?.(!isChecked);\n\t};\n\n\tuseEffect(()=>{\n\t\tif ( checked !== undefined) {\n\t\t\tsetIsToggled(checked);\n\t\t}\n\t}, [checked]);\n\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"ui-toggle\",\n\t\t\tclassName\n\t\t) }\n\t\t>\n\n\t\t\t<label className={ cx(\n\t\t\t\t\"flex\",\n\t\t\t\t\"cursor-pointer\",\n\t\t\t\t\"gap-sm\",\n\t\t\t\t\"rounded-full\",\n\t\t\t\t\"mt-sm\",\n\t\t\t\t\"items-center\",\n\t\t\t\t\"w-full\",\n\t\t\t\t\"leading-normal\",\n\t\t\t\t\"text-md\",\n\t\t\t\t{\n\t\t\t\t\t\"flex-row-reverse\": invertOrder,\n\t\t\t\t\t\"pointer-events-none opacity-50\": disabled\n\t\t\t\t}\n\n\t\t\t) }>\n\t\t\t\t<span className={ cx(\n\t\t\t\t\t\"relative\",\n\t\t\t\t\t\"block\",\n\t\t\t\t\t\"h-md\"\n\t\t\t\t) }>\n\n\t\t\t\t\t<input className={ cx(\n\t\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\t\"size-0\",\n\t\t\t\t\t\t\"appearance-none\",\n\t\t\t\t\t\t\"border-0\"\n\t\t\t\t\t) }\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tchecked={ isChecked }\n\t\t\t\t\tonChange={ handleChange }\n\t\t\t\t\tdisabled={ disabled }\n\t\t\t\t\tvalue={ value }\n\t\t\t\t\t{ ...rest }\n\t\t\t\t\t>\n\t\t\t\t\t</input>\n\n\t\t\t\t\t<span className={ cx(\n\t\t\t\t\t\t\"block\",\n\t\t\t\t\t\t\"h-md\",\n\t\t\t\t\t\t\"w-xl\",\n\t\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"bg-primary-600\": isChecked && !disabled,\n\t\t\t\t\t\t\t\"bg-secondary-alt-300\": !isChecked && disabled,\n\t\t\t\t\t\t\t\"bg-secondary-alt-600\": !isChecked && !disabled,\n\t\t\t\t\t\t\t\"bg-primary-300\": isChecked && disabled\n\n\t\t\t\t\t\t}\n\t\t\t\t\t) }/>\n\n\t\t\t\t\t<span className={ cx(\n\t\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\t\"top-[50%]\",\n\t\t\t\t\t\t\"block\",\n\t\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\t\"bg-white\",\n\t\t\t\t\t\tstyles.UiToggle__dot,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"hover:shadow-border-secondary\": !isChecked && !disabled,\n\t\t\t\t\t\t\t\"hover:shadow-border-primary\": isChecked && !disabled,\n\t\t\t\t\t\t\t[styles.UiToggle__dot_checked]: isChecked\n\t\t\t\t\t\t},\n\n\t\t\t\t\t) }>\n\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\tstyles.UiToggle__icon,\n\t\t\t\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\t\t\tdisabled ? \"text-primary-300\" : \"text-primary-600\",\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t[styles.UiToggle__icon_checked]: isChecked ,\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t) }\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=\"M1 4.40106L6.60071 10.1135L15.1694 1.71245\"\n\t\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\t\tstroke-width=\"1.6\"\n\t\t\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</svg>\n\n\t\t\t\t\t</span>\n\t\t\t\t</span>\n\n\t\t\t\t{ children }\n\n\t\t\t</label>\n\n\t\t</div>\n\t);\n};\n"],"names":["UiToggle","children","disabled","invertOrder","checked","value","className","defaultChecked","onChange","rest","toggled","setIsToggled","useState","isChecked","handleChange","useEffect","jsx","cx","jsxs","styles"],"mappings":"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"}
|
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './components/UiBerRank';
|
|
|
4
4
|
export * from './components/UiButton';
|
|
5
5
|
export * from './components/UiCheckbox';
|
|
6
6
|
export * from './components/UiIcon';
|
|
7
|
+
export * from './components/UiIconBadge';
|
|
7
8
|
export * from './components/UiInput';
|
|
8
9
|
export * from './components/UiInputRange';
|
|
9
10
|
export * from './components/UiList';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bonkers-ui",
|
|
3
|
-
"version": "v2.0.
|
|
3
|
+
"version": "v2.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bonkers ui library",
|
|
6
6
|
"author": "cc6.magister@gmail.com",
|
|
@@ -18,45 +18,45 @@
|
|
|
18
18
|
"prepare": "husky"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tailwindcss/vite": "^4.0.
|
|
21
|
+
"@tailwindcss/vite": "^4.0.14",
|
|
22
22
|
"ajv": "^8.17.1",
|
|
23
23
|
"classnames": "^2.5.1",
|
|
24
24
|
"postcss": "^8.5.3",
|
|
25
|
-
"prettier": "^3.5.
|
|
25
|
+
"prettier": "^3.5.3",
|
|
26
26
|
"react": "^19.0.0",
|
|
27
27
|
"react-dom": "^19.0.0",
|
|
28
|
-
"tailwindcss": "^4.0.
|
|
28
|
+
"tailwindcss": "^4.0.14",
|
|
29
29
|
"vite-tsconfig-paths": "^5.1.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@chromatic-com/storybook": "^3.2.
|
|
33
|
-
"@storybook/addon-essentials": "^8.6.
|
|
34
|
-
"@storybook/addon-interactions": "^8.6.
|
|
35
|
-
"@storybook/addon-onboarding": "^8.6.
|
|
36
|
-
"@storybook/blocks": "^8.6.
|
|
37
|
-
"@storybook/manager-api": "^8.6.
|
|
38
|
-
"@storybook/preview-api": "^8.6.
|
|
39
|
-
"@storybook/react": "^8.6.
|
|
40
|
-
"@storybook/react-vite": "^8.6.
|
|
41
|
-
"@storybook/test": "^8.6.
|
|
42
|
-
"@stylistic/eslint-plugin": "^4.
|
|
32
|
+
"@chromatic-com/storybook": "^3.2.6",
|
|
33
|
+
"@storybook/addon-essentials": "^8.6.7",
|
|
34
|
+
"@storybook/addon-interactions": "^8.6.7",
|
|
35
|
+
"@storybook/addon-onboarding": "^8.6.7",
|
|
36
|
+
"@storybook/blocks": "^8.6.7",
|
|
37
|
+
"@storybook/manager-api": "^8.6.7",
|
|
38
|
+
"@storybook/preview-api": "^8.6.7",
|
|
39
|
+
"@storybook/react": "^8.6.7",
|
|
40
|
+
"@storybook/react-vite": "^8.6.7",
|
|
41
|
+
"@storybook/test": "^8.6.7",
|
|
42
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
43
43
|
"@types/bun": "latest",
|
|
44
|
-
"@types/react": "^19.0.
|
|
44
|
+
"@types/react": "^19.0.12",
|
|
45
45
|
"@types/react-dom": "^19.0.4",
|
|
46
46
|
"@vitejs/plugin-react": "^4.3.4",
|
|
47
|
-
"eslint": "^9.
|
|
47
|
+
"eslint": "^9.22.0",
|
|
48
48
|
"eslint-plugin-react": "^7.37.4",
|
|
49
|
-
"eslint-plugin-storybook": "^0.11.
|
|
49
|
+
"eslint-plugin-storybook": "^0.11.6",
|
|
50
50
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
51
51
|
"gh-pages": "^6.3.0",
|
|
52
52
|
"husky": "^9.1.7",
|
|
53
|
-
"lint-staged": "^15.
|
|
54
|
-
"storybook": "^8.6.
|
|
53
|
+
"lint-staged": "^15.5.0",
|
|
54
|
+
"storybook": "^8.6.7",
|
|
55
55
|
"storybook-dark-mode": "^4.0.2",
|
|
56
|
-
"typescript": "^5.
|
|
57
|
-
"typescript-eslint": "^8.
|
|
58
|
-
"vite": "^6.2.
|
|
59
|
-
"vite-plugin-dts": "^4.5.
|
|
56
|
+
"typescript": "^5.8.2",
|
|
57
|
+
"typescript-eslint": "^8.26.1",
|
|
58
|
+
"vite": "^6.2.2",
|
|
59
|
+
"vite-plugin-dts": "^4.5.3",
|
|
60
60
|
"vite-plugin-lib-inject-css": "^2.2.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|