bonkers-ui 2.0.0 → 2.0.2

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.
Files changed (44) hide show
  1. package/bonkers-ui.umd.js +11 -11
  2. package/bonkers-ui.umd.js.map +1 -1
  3. package/components/UiAccordion/UiAccordion.InfoDropdown.d.ts +8 -0
  4. package/components/UiAccordion/UiAccordion.base.d.ts +9 -0
  5. package/components/UiAccordion/UiAccordion.context.d.ts +22 -0
  6. package/components/UiAccordion/UiAccordionItem.base.d.ts +16 -0
  7. package/components/UiAccordion/_types.d.ts +4 -0
  8. package/components/UiAccordion/index.d.ts +4 -0
  9. package/components/UiInput/UiInput.base.d.ts +9 -0
  10. package/components/UiInput/UiInput.base.js +43 -0
  11. package/components/UiInput/UiInput.base.js.map +1 -0
  12. package/components/UiInput/UiInputText.d.ts +12 -0
  13. package/components/UiInput/UiInputText.js +39 -0
  14. package/components/UiInput/UiInputText.js.map +1 -0
  15. package/components/UiInput/UiInputTitled.d.ts +10 -0
  16. package/components/UiInput/UiInputTitled.js +36 -0
  17. package/components/UiInput/UiInputTitled.js.map +1 -0
  18. package/components/UiInput/_types.d.ts +5 -0
  19. package/components/UiInput/_types.js +5 -0
  20. package/components/UiInput/_types.js.map +1 -0
  21. package/components/UiInput/index.d.ts +4 -0
  22. package/components/UiInput/index.js +11 -0
  23. package/components/UiInput/index.js.map +1 -0
  24. package/components/UiNotificationBadge/UiNotificationBadge.d.ts +10 -0
  25. package/components/UiNotificationBadge/UiNotificationBadge.js +104 -0
  26. package/components/UiNotificationBadge/UiNotificationBadge.js.map +1 -0
  27. package/components/UiNotificationBadge/_types.d.ts +6 -0
  28. package/components/UiNotificationBadge/_types.js +5 -0
  29. package/components/UiNotificationBadge/_types.js.map +1 -0
  30. package/components/UiNotificationBadge/index.d.ts +1 -0
  31. package/components/UiNotificationBadge/index.js +5 -0
  32. package/components/UiNotificationBadge/index.js.map +1 -0
  33. package/components/UiSkeleton/UiSkeleton.js +163 -197
  34. package/components/UiSkeleton/UiSkeleton.js.map +1 -1
  35. package/components/UiSkeleton/_types.d.ts +1 -2
  36. package/components/UiSkeleton/_types.js +2 -2
  37. package/components/UiSkeleton/_types.js.map +1 -1
  38. package/components/UiTypography/UiTypography.d.ts +4 -5
  39. package/components/UiTypography/UiTypography.js +26 -23
  40. package/components/UiTypography/UiTypography.js.map +1 -1
  41. package/index.d.ts +2 -0
  42. package/index.js +34 -30
  43. package/index.js.map +1 -1
  44. package/package.json +106 -106
@@ -0,0 +1,39 @@
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import "react";
3
+ import { UiInputBase as l } from "./UiInput.base.js";
4
+ import { UiInputTitled as u } from "./UiInputTitled.js";
5
+ import { EInputKind as s } from "./_types.js";
6
+ import { UiTypography as d } from "../UiTypography/UiTypography.js";
7
+ import { ETypographySizes as f } from "../UiTypography/_types.js";
8
+ import { EColors as i } from "../../_types/colors.js";
9
+ import x from "classnames";
10
+ const j = ({
11
+ kind: o,
12
+ title: m,
13
+ infoComponent: p,
14
+ subtitle: a,
15
+ statusMessage: t,
16
+ ...e
17
+ }) => /* @__PURE__ */ n(u, { title: m, subtitle: a, infoComponent: p, children: [
18
+ t ? /* @__PURE__ */ r(
19
+ d,
20
+ {
21
+ className: x(
22
+ "mb-xxs",
23
+ "transition-all duration-300 ease-in-out",
24
+ "max-h-0 opacity-0 overflow-hidden",
25
+ "data-[status=true]:max-h-lg data-[status=true]:opacity-100"
26
+ ),
27
+ lineHeight: !0,
28
+ color: o === s.ERROR ? i.ERROR : i.PRIMARY,
29
+ size: f.SM,
30
+ "data-status": !!t,
31
+ children: t
32
+ }
33
+ ) : null,
34
+ /* @__PURE__ */ r(l, { kind: o, ...e })
35
+ ] });
36
+ export {
37
+ j as UiInputText
38
+ };
39
+ //# sourceMappingURL=UiInputText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiInputText.js","sources":["../../../src/components/UiInput/UiInputText.tsx"],"sourcesContent":["import React from \"react\";\nimport { UiInputBase } from \"./UiInput.base.tsx\";\nimport { UiInputTitled } from \"./UiInputTitled.tsx\";\nimport { EInputKind } from \"./_types.ts\";\nimport { EColors, ETypographySizes, UiTypography } from \"../UiTypography/index.ts\";\nimport cx from \"classnames\";\n\ntype TUiInputTextProps = {\n\tid: string;\n\tkind?: EInputKind;\n\tstatusMessage?: string;\n\ttitle?: React.ReactNode;\n\tsubtitle?: React.ReactNode;\n\tinfoComponent?: React.ReactNode;\n} & React.InputHTMLAttributes<HTMLInputElement>;\n\nexport const UiInputText: React.FC<TUiInputTextProps> = ({\n\tkind,\n\ttitle,\n\tinfoComponent,\n\tsubtitle,\n\tstatusMessage,\n\t...rest\n}) => {\n\treturn (\n\t\t<UiInputTitled title={ title } subtitle={ subtitle } infoComponent={ infoComponent } >\n\t\t\t{ statusMessage\n\t\t\t\t? (\n\t\t\t\t\t<UiTypography\n\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\t\"mb-xxs\",\n\t\t\t\t\t\t\t\"transition-all duration-300 ease-in-out\",\n\t\t\t\t\t\t\t\"max-h-0 opacity-0 overflow-hidden\",\n\t\t\t\t\t\t\t\"data-[status=true]:max-h-lg data-[status=true]:opacity-100\"\n\t\t\t\t\t\t) }\n\t\t\t\t\t\tlineHeight\n\t\t\t\t\t\tcolor={\n\t\t\t\t\t\t\tkind === EInputKind.ERROR ? EColors.ERROR : EColors.PRIMARY\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsize={ ETypographySizes.SM }\n\t\t\t\t\t\tdata-status={ !!statusMessage }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ statusMessage }\n\t\t\t\t\t</UiTypography>\n\t\t\t\t)\n\t\t\t\t: null }\n\t\t\t<UiInputBase kind={ kind } { ...rest }/>\n\t\t</UiInputTitled>\n\t);\n};\n"],"names":["UiInputText","kind","title","infoComponent","subtitle","statusMessage","rest","jsxs","UiInputTitled","jsx","UiTypography","cx","EInputKind","EColors","ETypographySizes","UiInputBase"],"mappings":";;;;;;;;;AAgBO,MAAMA,IAA2C,CAAC;AAAA,EACxD,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAAC;AAAA,EACA,GAAGC;AACJ,MAEG,gBAAAC,EAAAC,GAAA,EAAc,OAAAN,GAAgB,UAAAE,GAAsB,eAAAD,GAClD,UAAA;AAAA,EAEAE,IAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,WAAYC;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MACA,YAAU;AAAA,MACV,OACCV,MAASW,EAAW,QAAQC,EAAQ,QAAQA,EAAQ;AAAA,MAErD,MAAOC,EAAiB;AAAA,MACxB,eAAc,CAAC,CAACT;AAAA,MAEd,UAAAA;AAAA,IAAA;AAAA,EAAA,IAGF;AAAA,EACF,gBAAAI,EAAAM,GAAA,EAAY,MAAAd,GAAgB,GAAGK,EAAM,CAAA;AAAA,GACvC;"}
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ type TUiInputTitledProps = {
3
+ children: React.ReactNode;
4
+ infoComponent?: React.ReactNode;
5
+ statusMessage?: string;
6
+ subtitle?: React.ReactNode;
7
+ title?: React.ReactNode;
8
+ };
9
+ export declare const UiInputTitled: React.FC<TUiInputTitledProps>;
10
+ export {};
@@ -0,0 +1,36 @@
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import "react";
3
+ import { UiTypography as l } from "../UiTypography/UiTypography.js";
4
+ import { ETypographySizes as e } from "../UiTypography/_types.js";
5
+ import { EColors as p } from "../../_types/colors.js";
6
+ const g = ({
7
+ children: s,
8
+ infoComponent: m,
9
+ title: i,
10
+ subtitle: o
11
+ }) => /* @__PURE__ */ t("div", { className: "grid w-full grid-flow-row gap-xxxs", children: [
12
+ i ? /* @__PURE__ */ r(
13
+ l,
14
+ {
15
+ size: e.MD,
16
+ color: p.SECONDARY,
17
+ lineHeight: !0,
18
+ children: i
19
+ }
20
+ ) : null,
21
+ m,
22
+ o ? /* @__PURE__ */ r(
23
+ l,
24
+ {
25
+ lineHeight: !0,
26
+ color: p.SECONDARY_ALT_600,
27
+ size: e.SM,
28
+ children: o
29
+ }
30
+ ) : null,
31
+ /* @__PURE__ */ r("div", { className: "relative w-full", children: s })
32
+ ] });
33
+ export {
34
+ g as UiInputTitled
35
+ };
36
+ //# sourceMappingURL=UiInputTitled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiInputTitled.js","sources":["../../../src/components/UiInput/UiInputTitled.tsx"],"sourcesContent":["import React from \"react\";\nimport { EColors, ETypographySizes, UiTypography } from \"../UiTypography\";\n\ntype TUiInputTitledProps = {\n\tchildren: React.ReactNode;\n\tinfoComponent?: React.ReactNode;\n\tstatusMessage?: string;\n\tsubtitle?: React.ReactNode\n\ttitle?: React.ReactNode;\n};\n\nexport const UiInputTitled: React.FC<TUiInputTitledProps> = ({\n\tchildren,\n\tinfoComponent,\n\ttitle,\n\tsubtitle\n}) => {\n\n\treturn (\n\t\t<div className=\"grid w-full grid-flow-row gap-xxxs\">\n\t\t\t{ title\n\t\t\t\t? (\n\t\t\t\t\t<UiTypography\n\t\t\t\t\t\tsize={ ETypographySizes.MD }\n\t\t\t\t\t\tcolor={ EColors.SECONDARY }\n\t\t\t\t\t\tlineHeight\n\t\t\t\t\t>\n\t\t\t\t\t\t{ title }\n\t\t\t\t\t</UiTypography>\n\t\t\t\t)\n\t\t\t\t: null }\n\t\t\t{ infoComponent }\n\t\t\t{ subtitle\n\t\t\t\t? (\n\t\t\t\t\t<UiTypography\n\t\t\t\t\t\tlineHeight\n\t\t\t\t\t\tcolor={ EColors.SECONDARY_ALT_600 }\n\t\t\t\t\t\tsize={ ETypographySizes.SM }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ subtitle }\n\t\t\t\t\t</UiTypography>\n\t\t\t\t)\n\t\t\t\t: null }\n\t\t\t<div className=\"relative w-full\">\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n"],"names":["UiInputTitled","children","infoComponent","title","subtitle","jsxs","jsx","UiTypography","ETypographySizes","EColors"],"mappings":";;;;;AAWO,MAAMA,IAA+C,CAAC;AAAA,EAC5D,UAAAC;AAAA,EACA,eAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AACD,MAGE,gBAAAC,EAAC,OAAI,EAAA,WAAU,sCACZ,UAAA;AAAA,EAEAF,IAAA,gBAAAG;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,MAAOC,EAAiB;AAAA,MACxB,OAAQC,EAAQ;AAAA,MAChB,YAAU;AAAA,MAER,UAAAN;AAAA,IAAA;AAAA,EAAA,IAGF;AAAA,EACDD;AAAA,EACAE,IAEA,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,YAAU;AAAA,MACV,OAAQE,EAAQ;AAAA,MAChB,MAAOD,EAAiB;AAAA,MAEtB,UAAAJ;AAAA,IAAA;AAAA,EAAA,IAGF;AAAA,EACF,gBAAAE,EAAA,OAAA,EAAI,WAAU,mBACZ,UAAAL,EACH,CAAA;AAAA,GACD;"}
@@ -0,0 +1,5 @@
1
+ export declare enum EInputKind {
2
+ DEFAULT = "DEFAULT",
3
+ ERROR = "ERROR",
4
+ SUCCESS = "SUCCESS"
5
+ }
@@ -0,0 +1,5 @@
1
+ var S = /* @__PURE__ */ ((R) => (R.DEFAULT = "DEFAULT", R.ERROR = "ERROR", R.SUCCESS = "SUCCESS", R))(S || {});
2
+ export {
3
+ S as EInputKind
4
+ };
5
+ //# sourceMappingURL=_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_types.js","sources":["../../../src/components/UiInput/_types.ts"],"sourcesContent":["export enum EInputKind {\n\tDEFAULT = \"DEFAULT\",\n\tERROR = \"ERROR\",\n\tSUCCESS = \"SUCCESS\",\n}\n"],"names":["EInputKind"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,UAAU,WAHCA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -0,0 +1,4 @@
1
+ export { UiInputBase } from './UiInput.base.tsx';
2
+ export { UiInputTitled } from './UiInputTitled.tsx';
3
+ export { UiInputText } from './UiInputText.tsx';
4
+ export { EInputKind } from './_types.ts';
@@ -0,0 +1,11 @@
1
+ import { UiInputBase as p } from "./UiInput.base.js";
2
+ import { UiInputTitled as e } from "./UiInputTitled.js";
3
+ import { UiInputText as n } from "./UiInputText.js";
4
+ import { EInputKind as f } from "./_types.js";
5
+ export {
6
+ f as EInputKind,
7
+ p as UiInputBase,
8
+ n as UiInputText,
9
+ e as UiInputTitled
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { EBadgeOffset } from './_types';
3
+ import { EColors } from '../UiTypography';
4
+ type UiNotificationBadge = {
5
+ offset?: EBadgeOffset;
6
+ children: React.ReactNode;
7
+ color?: EColors;
8
+ };
9
+ export declare const UiNotificationBadge: React.FC<UiNotificationBadge>;
10
+ export {};
@@ -0,0 +1,104 @@
1
+ import { jsx as A } from "react/jsx-runtime";
2
+ import "react";
3
+ import _ from "classnames";
4
+ import { EBadgeOffset as a } from "./_types.js";
5
+ import "../UiTypography/UiTypography.js";
6
+ import { EColors as r } from "../../_types/colors.js";
7
+ const b = {
8
+ [r.WHITE]: "bg-white",
9
+ [r.BLACK]: "bg-black",
10
+ [r.TRANSPARENT]: "bg-transparent",
11
+ [r.CURRENT]: "bg-current",
12
+ [r.PRIMARY]: "bg-primary",
13
+ [r.PRIMARY_50]: "bg-primary-50",
14
+ [r.PRIMARY_100]: "bg-primary-100",
15
+ [r.PRIMARY_200]: "bg-primary-200",
16
+ [r.PRIMARY_300]: "bg-primary-300",
17
+ [r.PRIMARY_400]: "bg-primary-400",
18
+ [r.PRIMARY_500]: "bg-primary-500",
19
+ [r.PRIMARY_600]: "bg-primary-600",
20
+ [r.PRIMARY_700]: "bg-primary-700",
21
+ [r.PRIMARY_800]: "bg-primary-800",
22
+ [r.PRIMARY_900]: "bg-primary-900",
23
+ [r.PRIMARY_ALT]: "bg-primary-alt",
24
+ [r.PRIMARY_ALT_300]: "bg-primary-alt-300",
25
+ [r.PRIMARY_ALT_400]: "bg-primary-alt-400",
26
+ [r.PRIMARY_ALT_500]: "bg-primary-alt-500",
27
+ [r.PRIMARY_ALT_600]: "bg-primary-alt-600",
28
+ [r.PRIMARY_ALT_700]: "bg-primary-alt-700",
29
+ [r.WARNING]: "bg-warning",
30
+ [r.WARNING_300]: "bg-warning-300",
31
+ [r.WARNING_400]: "bg-warning-400",
32
+ [r.WARNING_500]: "bg-warning-500",
33
+ [r.WARNING_600]: "bg-warning-600",
34
+ [r.WARNING_700]: "bg-warning-700",
35
+ [r.SECONDARY]: "bg-secondary",
36
+ [r.SECONDARY_300]: "bg-secondary-300",
37
+ [r.SECONDARY_400]: "bg-secondary-400",
38
+ [r.SECONDARY_500]: "bg-secondary-500",
39
+ [r.SECONDARY_600]: "bg-secondary-600",
40
+ [r.SECONDARY_700]: "bg-secondary-700",
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(
75
+ "div",
76
+ {
77
+ className: _(
78
+ "notification-badge",
79
+ "p-xxxs",
80
+ "h-sm",
81
+ "min-w-sm",
82
+ "absolute",
83
+ "inline-flex",
84
+ "items-center",
85
+ "rounded-full",
86
+ "border",
87
+ "border-white",
88
+ "text-center",
89
+ "text-xxs",
90
+ "font-bold",
91
+ "leading-none",
92
+ "text-white",
93
+ "whitespace-nowrap",
94
+ "gap-xxxs",
95
+ g && b[g],
96
+ R && e[R]
97
+ ),
98
+ children: t
99
+ }
100
+ ) : null;
101
+ export {
102
+ E as UiNotificationBadge
103
+ };
104
+ //# sourceMappingURL=UiNotificationBadge.js.map
@@ -0,0 +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\nimport { EColors } from \"../UiTypography\";\n\ntype UiNotificationBadge = {\n\toffset?: EBadgeOffset,\n\tchildren: React.ReactNode;\n\tcolor?: EColors;\n};\n\nconst colorClasses = {\n\t[EColors.WHITE]: \"bg-white\",\n\t[EColors.BLACK]: \"bg-black\",\n\t[EColors.TRANSPARENT]: \"bg-transparent\",\n\t[EColors.CURRENT]: \"bg-current\",\n\n\t[EColors.PRIMARY]: \"bg-primary\",\n\t[EColors.PRIMARY_50]: \"bg-primary-50\",\n\t[EColors.PRIMARY_100]: \"bg-primary-100\",\n\t[EColors.PRIMARY_200]: \"bg-primary-200\",\n\t[EColors.PRIMARY_300]: \"bg-primary-300\",\n\t[EColors.PRIMARY_400]: \"bg-primary-400\",\n\t[EColors.PRIMARY_500]: \"bg-primary-500\",\n\t[EColors.PRIMARY_600]: \"bg-primary-600\",\n\t[EColors.PRIMARY_700]: \"bg-primary-700\",\n\t[EColors.PRIMARY_800]: \"bg-primary-800\",\n\t[EColors.PRIMARY_900]: \"bg-primary-900\",\n\n\t[EColors.PRIMARY_ALT]: \"bg-primary-alt\",\n\t[EColors.PRIMARY_ALT_300]: \"bg-primary-alt-300\",\n\t[EColors.PRIMARY_ALT_400]: \"bg-primary-alt-400\",\n\t[EColors.PRIMARY_ALT_500]: \"bg-primary-alt-500\",\n\t[EColors.PRIMARY_ALT_600]: \"bg-primary-alt-600\",\n\t[EColors.PRIMARY_ALT_700]: \"bg-primary-alt-700\",\n\n\t[EColors.WARNING]: \"bg-warning\",\n\t[EColors.WARNING_300]: \"bg-warning-300\",\n\t[EColors.WARNING_400]: \"bg-warning-400\",\n\t[EColors.WARNING_500]: \"bg-warning-500\",\n\t[EColors.WARNING_600]: \"bg-warning-600\",\n\t[EColors.WARNING_700]: \"bg-warning-700\",\n\n\t[EColors.SECONDARY]: \"bg-secondary\",\n\t[EColors.SECONDARY_300]: \"bg-secondary-300\",\n\t[EColors.SECONDARY_400]: \"bg-secondary-400\",\n\t[EColors.SECONDARY_500]: \"bg-secondary-500\",\n\t[EColors.SECONDARY_600]: \"bg-secondary-600\",\n\t[EColors.SECONDARY_700]: \"bg-secondary-700\",\n\n\t[EColors.SECONDARY_ALT]: \"bg-secondary-alt\",\n\t[EColors.SECONDARY_ALT_200]: \"bg-secondary-alt-200\",\n\t[EColors.SECONDARY_ALT_300]: \"bg-secondary-alt-300\",\n\t[EColors.SECONDARY_ALT_400]: \"bg-secondary-alt-400\",\n\t[EColors.SECONDARY_ALT_500]: \"bg-secondary-alt-500\",\n\t[EColors.SECONDARY_ALT_600]: \"bg-secondary-alt-600\",\n\t[EColors.SECONDARY_ALT_700]: \"bg-secondary-alt-700\",\n\n\t[EColors.ERROR]: \"bg-error\",\n\t[EColors.ERROR_300]: \"bg-error-300\",\n\t[EColors.ERROR_400]: \"bg-error-400\",\n\t[EColors.ERROR_500]: \"bg-error-500\",\n\t[EColors.ERROR_600]: \"bg-error-600\",\n\t[EColors.ERROR_700]: \"bg-error-700\",\n\n\t[EColors.ACCENT]: \"bg-accent\",\n\t[EColors.ACCENT_300]: \"bg-accent-300\",\n\t[EColors.ACCENT_500]: \"bg-accent-500\",\n\t[EColors.ACCENT_600]: \"bg-accent-600\",\n\t[EColors.ACCENT_700]: \"bg-accent-700\",\n\n\t[EColors.ACCENT_ALT]: \"bg-accent-alt\",\n\t[EColors.ACCENT_ALT_300]: \"bg-accent-alt-300\",\n\t[EColors.ACCENT_ALT_400]: \"bg-accent-alt-400\",\n\t[EColors.ACCENT_ALT_500]: \"bg-accent-alt-500\",\n\t[EColors.ACCENT_ALT_600]: \"bg-accent-alt-600\",\n\t[EColors.ACCENT_ALT_700]: \"bg-accent-alt-700\",\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\nexport const UiNotificationBadge: React.FC<UiNotificationBadge> = ({\n\toffset,\n\tchildren,\n\tcolor,\n}) => {\n\tif (!children) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={ cx(\n\t\t\t\t\"notification-badge\",\n\t\t\t\t\"p-xxxs\",\n\t\t\t\t\"h-sm\",\n\t\t\t\t\"min-w-sm\",\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\"text-xxs\",\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\tcolor && colorClasses[color],\n\t\t\t\toffset && offsetClasses[offset]\n\t\t\t) }\n\t\t>\n\t\t\t{ children }\n\t\t</div>\n\t);\n};\n"],"names":["colorClasses","EColors","offsetClasses","EBadgeOffset","UiNotificationBadge","offset","children","color","jsx","cx"],"mappings":";;;;;;AAaA,MAAMA,IAAe;AAAA,EACpB,CAACC,EAAQ,KAAK,GAAG;AAAA,EACjB,CAACA,EAAQ,KAAK,GAAG;AAAA,EACjB,CAACA,EAAQ,WAAW,GAAG;AAAA,EACvB,CAACA,EAAQ,OAAO,GAAG;AAAA,EAEnB,CAACA,EAAQ,OAAO,GAAG;AAAA,EACnB,CAACA,EAAQ,UAAU,GAAG;AAAA,EACtB,CAACA,EAAQ,WAAW,GAAG;AAAA,EACvB,CAACA,EAAQ,WAAW,GAAG;AAAA,EACvB,CAACA,EAAQ,WAAW,GAAG;AAAA,EACvB,CAACA,EAAQ,WAAW,GAAG;AAAA,EACvB,CAACA,EAAQ,WAAW,GAAG;AAAA,EACvB,C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
4
+ OFFSET_BOTTOM_RIGHT = "offset-bottom-right",
5
+ OFFSET_BOTTOM_LEFT = "offset-bottom-left"
6
+ }
@@ -0,0 +1,5 @@
1
+ var t = /* @__PURE__ */ ((T) => (T.DEFAULT = "default", T.OFFSET_TOP_LEFT = "offset-top-left", T.OFFSET_BOTTOM_RIGHT = "offset-bottom-right", T.OFFSET_BOTTOM_LEFT = "offset-bottom-left", T))(t || {});
2
+ export {
3
+ t as EBadgeOffset
4
+ };
5
+ //# sourceMappingURL=_types.js.map
@@ -0,0 +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;"}
@@ -0,0 +1 @@
1
+ export { UiNotificationBadge } from './UiNotificationBadge';
@@ -0,0 +1,5 @@
1
+ import { UiNotificationBadge as t } from "./UiNotificationBadge.js";
2
+ export {
3
+ t as UiNotificationBadge
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}