geoiq-frontend-ui-kit 1.1.21 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/molecules/alert/alert.d.ts.map +1 -1
- package/dist/components/molecules/alert/alert.styles.d.ts +1 -0
- package/dist/components/molecules/alert/alert.styles.d.ts.map +1 -1
- package/dist/components/molecules/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/molecules/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/molecules/dropdown-menu/dropdown-menu.types.d.ts +3 -0
- package/dist/components/molecules/dropdown-menu/dropdown-menu.types.d.ts.map +1 -1
- package/dist/components/organisms/navbar/navbar.d.ts.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es17.js +7 -6
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es18.js +1 -1
- package/dist/index.es19.js +18 -16
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es20.js +3 -3
- package/dist/index.es21.js +39 -30
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es29.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es38.js +23 -21
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es53.js +1 -1
- package/dist/index.es67.js +5 -43
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +16 -5
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +22 -22
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +6 -2
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +49 -22
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +108 -74
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +12 -120
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +23 -15
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +86 -9
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +16 -41
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +6 -35
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +41 -13
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +36 -21
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/styles.css +4 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tooltip/tooltip.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,UAAU,EACV,OAAO,EACP,GAAG,KAAK,EACT,EAAE,YAAY,+
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tooltip/tooltip.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,UAAU,EACV,OAAO,EACP,GAAG,KAAK,EACT,EAAE,YAAY,+CAgBd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EACL,aAAa,EAGd,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EACL,aAAa,EAGd,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AA6C1C,QAAA,MAAM,KAAK,mFA8BV,CAAA;AAID,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const AlertVariants: (props?: ({
|
|
2
2
|
variant?: "default" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
3
|
+
shortContent?: boolean | null | undefined;
|
|
3
4
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
4
5
|
export declare const AlertContentVariants: (props?: ({
|
|
5
6
|
shortContent?: boolean | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/alert/alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"alert.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/alert/alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;mFAuBzB,CAAA;AAED,eAAO,MAAM,oBAAoB;;mFAU/B,CAAA;AAEF,eAAO,MAAM,mBAAmB;;mFAU9B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DropdownMenuProps } from './dropdown-menu.types';
|
|
2
2
|
|
|
3
|
-
export declare function Dropdown({ trigger, optionGroups, header, }: DropdownMenuProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
|
+
export declare function Dropdown({ trigger, optionGroups, header, dropdownContentProps, }: DropdownMenuProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown-menu/dropdown-menu.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,YAAY,EACZ,MAAqB,
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown-menu/dropdown-menu.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,YAAY,EACZ,MAAqB,EACrB,oBAAyB,GAC1B,EAAE,iBAAiB,+CAmJnB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
1
2
|
export type DropdownMenuOptions = {
|
|
2
3
|
label: string;
|
|
3
4
|
icon?: React.ReactNode;
|
|
@@ -6,9 +7,11 @@ export type DropdownMenuOptions = {
|
|
|
6
7
|
className?: string;
|
|
7
8
|
onClick?: () => void;
|
|
8
9
|
};
|
|
10
|
+
export type DropdownContentProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;
|
|
9
11
|
export type DropdownMenuProps = {
|
|
10
12
|
trigger: React.ReactNode;
|
|
11
13
|
optionGroups: DropdownMenuOptions[][];
|
|
12
14
|
header?: React.ReactNode;
|
|
15
|
+
dropdownContentProps?: DropdownContentProps;
|
|
13
16
|
};
|
|
14
17
|
//# sourceMappingURL=dropdown-menu.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown-menu/dropdown-menu.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,YAAY,EAAE,mBAAmB,EAAE,EAAE,CAAA;IACrC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"dropdown-menu.types.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown-menu/dropdown-menu.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAA;AAEtE,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,wBAAwB,CAC/D,OAAO,qBAAqB,CAAC,OAAO,CACrC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,YAAY,EAAE,mBAAmB,EAAE,EAAE,CAAA;IACrC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;CAC5C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/navbar/navbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAa,WAAW,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/navbar/navbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAa,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAkKvD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0CxC,CAAA"}
|
package/dist/index.es10.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import * as a from "@radix-ui/react-progress";
|
|
3
3
|
import { cn as n } from "./index.es59.js";
|
|
4
|
-
import { ProgressVariants as i } from "./index.
|
|
4
|
+
import { ProgressVariants as i } from "./index.es67.js";
|
|
5
5
|
const l = r.forwardRef(({ className: t, value: o, ...e }, m) => {
|
|
6
6
|
const s = (o || 0) / (e.max || 100) * 100;
|
|
7
7
|
return /* @__PURE__ */ r.createElement(
|
package/dist/index.es15.js
CHANGED
|
@@ -6,7 +6,7 @@ import "./index.es41.js";
|
|
|
6
6
|
import "./index.es60.js";
|
|
7
7
|
import "./index.es26.js";
|
|
8
8
|
import "./index.es32.js";
|
|
9
|
-
import { TextAreaVariants as u } from "./index.
|
|
9
|
+
import { TextAreaVariants as u } from "./index.es68.js";
|
|
10
10
|
const m = e.forwardRef(
|
|
11
11
|
({ className: o, inputLabel: a, showTextCount: l, maximumTextCount: i, ...t }, f) => {
|
|
12
12
|
const [r, s] = e.useState(!1), c = e.useRef(null);
|
package/dist/index.es17.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { TooltipProvider as
|
|
1
|
+
import { TooltipProvider as r, TooltipWrapper as n, TooltipTrigger as i, TooltipContent as a } from "./index.es16.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
function c({
|
|
4
|
-
headerText:
|
|
5
|
-
content:
|
|
4
|
+
headerText: l,
|
|
5
|
+
content: o,
|
|
6
6
|
...t
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(n, { ...t }, /* @__PURE__ */ e.createElement(i, null, t?.triggerElement), /* @__PURE__ */ e.createElement(
|
|
9
9
|
a,
|
|
10
10
|
{
|
|
11
11
|
side: t?.side ?? "top",
|
|
12
|
-
headerText:
|
|
13
|
-
content:
|
|
12
|
+
headerText: l ?? "",
|
|
13
|
+
content: o ?? "",
|
|
14
|
+
...t
|
|
14
15
|
}
|
|
15
16
|
))));
|
|
16
17
|
}
|
package/dist/index.es17.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es17.js","sources":["../src/components/atoms/tooltip/tooltip.tsx"],"sourcesContent":["import {\n TooltipWrapper,\n TooltipContent,\n TooltipTrigger,\n TooltipProvider,\n} from './tooltip-components'\nimport * as React from 'react'\nimport { TooltipProps } from './tooltip.types'\n\nexport default function Tooltip({\n headerText,\n content,\n ...props\n}: TooltipProps) {\n return (\n <>\n <TooltipProvider>\n <TooltipWrapper {...props}>\n <TooltipTrigger>{props?.triggerElement}</TooltipTrigger>\n <TooltipContent\n side={props?.side ?? 'top'}\n headerText={headerText ?? ''}\n content={content ?? ''}\n />\n </TooltipWrapper>\n </TooltipProvider>\n </>\n )\n}\n"],"names":["Tooltip","headerText","content","props","React","TooltipProvider","TooltipWrapper","TooltipTrigger","TooltipContent"],"mappings":";;AASA,SAAwBA,EAAQ;AAAA,EAC9B,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,GAAiB;AAEb,SAAA,gBAAAC,EAAA,cAAAA,EAAA,UAAA,MACG,gBAAAA,EAAA,cAAAC,GAAA,MACE,gBAAAD,EAAA,cAAAE,GAAA,EAAgB,GAAGH,KACjB,gBAAAC,EAAA,cAAAG,GAAA,MAAgBJ,GAAO,cAAe,GACvC,gBAAAC,EAAA;AAAA,IAACI;AAAA,IAAA;AAAA,MACC,MAAML,GAAO,QAAQ;AAAA,MACrB,YAAYF,KAAc;AAAA,MAC1B,SAASC,KAAW;AAAA,IAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"index.es17.js","sources":["../src/components/atoms/tooltip/tooltip.tsx"],"sourcesContent":["import {\n TooltipWrapper,\n TooltipContent,\n TooltipTrigger,\n TooltipProvider,\n} from './tooltip-components'\nimport * as React from 'react'\nimport { TooltipProps } from './tooltip.types'\n\nexport default function Tooltip({\n headerText,\n content,\n ...props\n}: TooltipProps) {\n return (\n <>\n <TooltipProvider>\n <TooltipWrapper {...props}>\n <TooltipTrigger>{props?.triggerElement}</TooltipTrigger>\n <TooltipContent\n side={props?.side ?? 'top'}\n headerText={headerText ?? ''}\n content={content ?? ''}\n {...props}\n />\n </TooltipWrapper>\n </TooltipProvider>\n </>\n )\n}\n"],"names":["Tooltip","headerText","content","props","React","TooltipProvider","TooltipWrapper","TooltipTrigger","TooltipContent"],"mappings":";;AASA,SAAwBA,EAAQ;AAAA,EAC9B,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,GAAiB;AAEb,SAAA,gBAAAC,EAAA,cAAAA,EAAA,UAAA,MACG,gBAAAA,EAAA,cAAAC,GAAA,MACE,gBAAAD,EAAA,cAAAE,GAAA,EAAgB,GAAGH,KACjB,gBAAAC,EAAA,cAAAG,GAAA,MAAgBJ,GAAO,cAAe,GACvC,gBAAAC,EAAA;AAAA,IAACI;AAAA,IAAA;AAAA,MACC,MAAML,GAAO,QAAQ;AAAA,MACrB,YAAYF,KAAc;AAAA,MAC1B,SAASC,KAAW;AAAA,MACnB,GAAGC;AAAA,IAAA;AAAA,EAER,CAAA,CACF,CACF;AAEJ;"}
|
package/dist/index.es18.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import { cn as m } from "./index.es59.js";
|
|
3
3
|
import { TypographyVariants as n } from "./index.es53.js";
|
|
4
|
-
import { defaultTypographyVariant as y, variantElementMap as i } from "./index.
|
|
4
|
+
import { defaultTypographyVariant as y, variantElementMap as i } from "./index.es69.js";
|
|
5
5
|
const c = o.forwardRef(({ className: t, variant: r = y, ...a }, e) => {
|
|
6
6
|
const p = i[r];
|
|
7
7
|
return /* @__PURE__ */ o.createElement(
|
package/dist/index.es19.js
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as s } from "./index.es59.js";
|
|
3
3
|
import { AlertVariants as f, AlertContentVariants as d, AlertButtonVariants as g } from "./index.es70.js";
|
|
4
4
|
import { Button as p } from "./index.es7.js";
|
|
5
|
-
|
|
5
|
+
import { Typography as u } from "./index.es18.js";
|
|
6
|
+
const c = e.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e.createElement(
|
|
6
7
|
"h5",
|
|
7
8
|
{
|
|
8
|
-
ref:
|
|
9
|
-
className:
|
|
9
|
+
ref: r,
|
|
10
|
+
className: s("mb-1 font-medium leading-none tracking-tight", t),
|
|
10
11
|
...a
|
|
11
12
|
}
|
|
12
13
|
));
|
|
13
14
|
c.displayName = "AlertTitle";
|
|
14
|
-
const o = e.forwardRef(({ className: t, ...a },
|
|
15
|
-
|
|
15
|
+
const o = e.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e.createElement(
|
|
16
|
+
u,
|
|
16
17
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
18
|
+
variant: "body4",
|
|
19
|
+
ref: r,
|
|
20
|
+
className: s("text-sm [&_p]:leading-relaxed", t)
|
|
21
|
+
},
|
|
22
|
+
a.children
|
|
21
23
|
));
|
|
22
24
|
o.displayName = "AlertDescription";
|
|
23
|
-
const
|
|
25
|
+
const h = (t) => {
|
|
24
26
|
switch (t) {
|
|
25
27
|
case "success":
|
|
26
28
|
return "https://frontend-static-files.geoiq.io/strapi/icons_v5_cbb854431a.svg";
|
|
@@ -34,22 +36,22 @@ const u = (t) => {
|
|
|
34
36
|
return "https://frontend-static-files.geoiq.io/strapi/icons_v5_139132dbe2.svg";
|
|
35
37
|
}
|
|
36
38
|
}, v = e.forwardRef(
|
|
37
|
-
({ className: t, variant: a, description:
|
|
39
|
+
({ className: t, variant: a, description: r, shortContent: n, title: l, ...i }, m) => /* @__PURE__ */ e.createElement(
|
|
38
40
|
"div",
|
|
39
41
|
{
|
|
40
42
|
ref: m,
|
|
41
43
|
role: "alert",
|
|
42
44
|
...i,
|
|
43
|
-
className:
|
|
45
|
+
className: s(f({ variant: a, shortContent: n }), t)
|
|
44
46
|
},
|
|
45
|
-
/* @__PURE__ */ e.createElement("div", { className: "flex items-start flex-col flex-shrink-0 h-full w-[20px] py-0" }, /* @__PURE__ */ e.createElement("img", { src:
|
|
46
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
47
|
+
/* @__PURE__ */ e.createElement("div", { className: "flex items-start flex-col flex-shrink-0 h-full w-[20px] py-0 " }, /* @__PURE__ */ e.createElement("img", { src: h(a), className: "h-5 w-5", alt: "Alert Icon" })),
|
|
48
|
+
/* @__PURE__ */ e.createElement("div", { className: s(d({ shortContent: n })) }, l && /* @__PURE__ */ e.createElement(c, null, l), /* @__PURE__ */ e.createElement(o, { className: "flex items-center text-light-2" }, r), i.showButton && /* @__PURE__ */ e.createElement(
|
|
47
49
|
p,
|
|
48
50
|
{
|
|
49
51
|
variant: "secondary",
|
|
50
52
|
size: "sm",
|
|
51
53
|
onClick: i.onButtonClick,
|
|
52
|
-
className:
|
|
54
|
+
className: s(g({ shortContent: n }))
|
|
53
55
|
},
|
|
54
56
|
i.buttonLabel
|
|
55
57
|
))
|
package/dist/index.es19.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es19.js","sources":["../src/components/molecules/alert/alert.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport {\n AlertVariants,\n AlertButtonVariants,\n AlertContentVariants,\n} from './alert.styles'\nimport { AlertProps } from './alert.types'\nimport { Button } from '@/components/atoms/button'\n\nconst AlertTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5\n ref={ref}\n className={cn('mb-1 font-medium leading-none tracking-tight', className)}\n {...props}\n />\n))\nAlertTitle.displayName = 'AlertTitle'\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <
|
|
1
|
+
{"version":3,"file":"index.es19.js","sources":["../src/components/molecules/alert/alert.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport {\n AlertVariants,\n AlertButtonVariants,\n AlertContentVariants,\n} from './alert.styles'\nimport { AlertProps } from './alert.types'\nimport { Button } from '@/components/atoms/button'\nimport { Typography } from '@/components/atoms/typography'\n\nconst AlertTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5\n ref={ref}\n className={cn('mb-1 font-medium leading-none tracking-tight', className)}\n {...props}\n />\n))\nAlertTitle.displayName = 'AlertTitle'\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <Typography\n variant={'body4'}\n ref={ref}\n className={cn('text-sm [&_p]:leading-relaxed', className)}\n >\n {props.children}\n </Typography>\n))\nAlertDescription.displayName = 'AlertDescription'\n\nconst getImage = (variant: string | null | undefined) => {\n switch (variant) {\n case 'success':\n return 'https://frontend-static-files.geoiq.io/strapi/icons_v5_cbb854431a.svg'\n case 'warning':\n return 'https://frontend-static-files.geoiq.io/strapi/icons_v5_1_ba9b25fd5c.svg'\n case 'error':\n return 'https://frontend-static-files.geoiq.io/strapi/Frame_427320353_64f8f337a6.svg'\n case 'info':\n return 'https://frontend-static-files.geoiq.io/strapi/icons_v5_139132dbe2.svg'\n default:\n return 'https://frontend-static-files.geoiq.io/strapi/icons_v5_139132dbe2.svg'\n }\n}\n\nconst Alert = React.forwardRef<HTMLDivElement, AlertProps>(\n ({ className, variant, description, shortContent, title, ...props }, ref) => (\n <div\n ref={ref}\n role=\"alert\"\n {...props}\n className={cn(AlertVariants({ variant, shortContent }), className)}\n >\n <div className=\"flex items-start flex-col flex-shrink-0 h-full w-[20px] py-0 \">\n <img src={getImage(variant)} className=\"h-5 w-5\" alt=\"Alert Icon\" />\n </div>\n <div className={cn(AlertContentVariants({ shortContent }))}>\n {/* Note: there is no Design for a title section in this alert component as of 12 aug 2024 */}\n {title && <AlertTitle>{title}</AlertTitle>}\n <AlertDescription className=\"flex items-center text-light-2\">\n {description}\n </AlertDescription>\n {props.showButton && (\n <Button\n variant={'secondary'}\n size={'sm'}\n onClick={props.onButtonClick}\n className={cn(AlertButtonVariants({ shortContent }))}\n >\n {props.buttonLabel}\n </Button>\n )}\n </div>\n </div>\n )\n)\n\nAlert.displayName = 'Alert'\n\nexport { Alert, AlertVariants }\n"],"names":["AlertTitle","React","className","props","ref","cn","AlertDescription","Typography","getImage","variant","Alert","description","shortContent","title","AlertVariants","AlertContentVariants","Button","AlertButtonVariants"],"mappings":";;;;;AAYA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAG;AAAA,IACA,WAAWC,EAAG,gDAAgDH,CAAS;AAAA,IACtE,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAW,cAAc;AAEzB,MAAMM,IAAmBL,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACM;AAAA,EAAA;AAAA,IACC,SAAS;AAAA,IACT,KAAAH;AAAA,IACA,WAAWC,EAAG,iCAAiCH,CAAS;AAAA,EAAA;AAAA,EAEvDC,EAAM;AACT,CACD;AACDG,EAAiB,cAAc;AAE/B,MAAME,IAAW,CAACC,MAAuC;AACvD,UAAQA,GAAS;AAAA,IACf,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT,KAAK;AACI,aAAA;AAAA,IACT;AACS,aAAA;AAAA,EACX;AACF,GAEMC,IAAQT,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,SAAAO,GAAS,aAAAE,GAAa,cAAAC,GAAc,OAAAC,GAAO,GAAGV,EAAM,GAAGC,MACnE,gBAAAH,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAG;AAAA,MACA,MAAK;AAAA,MACJ,GAAGD;AAAA,MACJ,WAAWE,EAAGS,EAAc,EAAE,SAAAL,GAAS,cAAAG,EAAa,CAAC,GAAGV,CAAS;AAAA,IAAA;AAAA,IAEhE,gBAAAD,EAAA,cAAA,OAAA,EAAI,WAAU,gEAAA,mCACZ,OAAI,EAAA,KAAKO,EAASC,CAAO,GAAG,WAAU,WAAU,KAAI,cAAa,CACpE;AAAA,IACA,gBAAAR,EAAA,cAAC,SAAI,WAAWI,EAAGU,EAAqB,EAAE,cAAAH,EAAc,CAAA,CAAC,EAEtD,GAAAC,qCAAUb,GAAY,MAAAa,CAAM,GAC5B,gBAAAZ,EAAA,cAAAK,GAAA,EAAiB,WAAU,iCACzB,GAAAK,CACH,GACCR,EAAM,cACL,gBAAAF,EAAA;AAAA,MAACe;AAAA,MAAA;AAAA,QACC,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAASb,EAAM;AAAA,QACf,WAAWE,EAAGY,EAAoB,EAAE,cAAAL,EAAc,CAAA,CAAC;AAAA,MAAA;AAAA,MAElDT,EAAM;AAAA,IAAA,CAGb;AAAA,EACF;AAEJ;AAEAO,EAAM,cAAc;"}
|
package/dist/index.es20.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Breadcrumb as E, BreadcrumbList as i, BreadcrumbSeparator as c, BreadcrumbItem as o, BreadcrumbEllipsis as b, BreadcrumbLink as u } from "./index.
|
|
2
|
-
import { DropdownMenu as g, DropdownMenuTrigger as y, DropdownMenuContent as d, DropdownMenuItem as h } from "./index.
|
|
1
|
+
import { Breadcrumb as E, BreadcrumbList as i, BreadcrumbSeparator as c, BreadcrumbItem as o, BreadcrumbEllipsis as b, BreadcrumbLink as u } from "./index.es75.js";
|
|
2
|
+
import { DropdownMenu as g, DropdownMenuTrigger as y, DropdownMenuContent as d, DropdownMenuItem as h } from "./index.es72.js";
|
|
3
3
|
import e from "react";
|
|
4
4
|
import { Typography as B } from "./index.es18.js";
|
|
5
5
|
import { cn as f } from "./index.es59.js";
|
|
6
|
-
import { CrumbVariants as w } from "./index.
|
|
6
|
+
import { CrumbVariants as w } from "./index.es76.js";
|
|
7
7
|
function l({ field: r, isSelected: t }) {
|
|
8
8
|
return /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(
|
|
9
9
|
u,
|
package/dist/index.es21.js
CHANGED
|
@@ -1,40 +1,49 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
import { DropdownMenu as
|
|
3
|
-
function
|
|
2
|
+
import { DropdownMenu as i, DropdownMenuTrigger as g, DropdownMenuContent as p, DropdownMenuLabel as h, DropdownMenuSeparator as d, DropdownMenuGroup as E, DropdownMenuSub as w, DropdownMenuSubTrigger as x, DropdownMenuPortal as N, DropdownMenuSubContent as D, DropdownMenuItem as s } from "./index.es72.js";
|
|
3
|
+
function k({
|
|
4
4
|
trigger: c,
|
|
5
5
|
optionGroups: r,
|
|
6
|
-
header: t = "My Account"
|
|
6
|
+
header: t = "My Account",
|
|
7
|
+
dropdownContentProps: o = {}
|
|
7
8
|
}) {
|
|
8
|
-
return /* @__PURE__ */ e.createElement(
|
|
9
|
-
|
|
9
|
+
return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(g, { asChild: !0 }, c), /* @__PURE__ */ e.createElement(
|
|
10
|
+
p,
|
|
10
11
|
{
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
className: "bg-light-1 w-56 shadow-lg rounded-[8px]",
|
|
13
|
+
...o
|
|
13
14
|
},
|
|
14
|
-
|
|
15
|
-
/* @__PURE__ */ e.createElement(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(h, null, t), /* @__PURE__ */ e.createElement(d, { className: "border-neutral-1 border-t" })),
|
|
16
|
+
r.map((m, n) => /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, /* @__PURE__ */ e.createElement(E, null, m.map((a, u) => a.subItems ? /* @__PURE__ */ e.createElement(w, { key: u }, /* @__PURE__ */ e.createElement(
|
|
17
|
+
x,
|
|
18
|
+
{
|
|
19
|
+
disabled: a.disabled,
|
|
20
|
+
className: `data-[disabled]:hover:bg-light-1 hover:bg-light-2 rounded-md py-[11px] px-4 cursor-pointer data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed ${a.className}`
|
|
21
|
+
},
|
|
22
|
+
a.icon,
|
|
23
|
+
/* @__PURE__ */ e.createElement("span", { className: "text-xs" }, a.label)
|
|
24
|
+
), /* @__PURE__ */ e.createElement(N, null, /* @__PURE__ */ e.createElement(D, { className: "bg-light-1" }, a.subItems?.map((l, b) => /* @__PURE__ */ e.createElement(
|
|
25
|
+
s,
|
|
26
|
+
{
|
|
27
|
+
disabled: l?.disabled,
|
|
28
|
+
className: ` data-[disabled]:hover:bg-light-1 hover:bg-light-2 data-[disabled]:cursor-not-allowed py-[11px] px-4 rounded-md ${l.className}`,
|
|
29
|
+
onClick: l.onClick,
|
|
30
|
+
key: b
|
|
31
|
+
},
|
|
32
|
+
l.icon,
|
|
33
|
+
/* @__PURE__ */ e.createElement("span", { className: "text-xs" }, l.label)
|
|
34
|
+
))))) : /* @__PURE__ */ e.createElement(
|
|
35
|
+
s,
|
|
36
|
+
{
|
|
37
|
+
className: `data-[disabled]:hover:bg-light-1 hover:bg-light-2 data-[disabled]:cursor-not-allowed hover:rounded-md py-[11px] px-4 h-[42px] ${a.className}`,
|
|
38
|
+
onClick: a.onClick,
|
|
39
|
+
disabled: a.disabled
|
|
40
|
+
},
|
|
41
|
+
a.icon,
|
|
42
|
+
/* @__PURE__ */ e.createElement("span", { className: "text-xs" }, a.label)
|
|
43
|
+
))), n + 1 !== r.length && /* @__PURE__ */ e.createElement(d, { className: "border-neutral-1 border-t" })))
|
|
44
|
+
));
|
|
36
45
|
}
|
|
37
46
|
export {
|
|
38
|
-
|
|
47
|
+
k as Dropdown
|
|
39
48
|
};
|
|
40
49
|
//# sourceMappingURL=index.es21.js.map
|
package/dist/index.es21.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es21.js","sources":["../src/components/molecules/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import React from 'react'\n\n// import { Button } from '../button'\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuSeparator,\n // DropdownMenuShortcut,\n // DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from './dropdown-menu-components'\nimport { DropdownMenuProps } from './dropdown-menu.types'\n\nexport function Dropdown({\n trigger,\n optionGroups,\n header = 'My Account',\n}: DropdownMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger>\n <DropdownMenuContent
|
|
1
|
+
{"version":3,"file":"index.es21.js","sources":["../src/components/molecules/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import React from 'react'\n\n// import { Button } from '../button'\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuSeparator,\n // DropdownMenuShortcut,\n // DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from './dropdown-menu-components'\nimport { DropdownMenuProps } from './dropdown-menu.types'\n\nexport function Dropdown({\n trigger,\n optionGroups,\n header = 'My Account',\n dropdownContentProps = {},\n}: DropdownMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger>\n <DropdownMenuContent\n className=\"bg-light-1 w-56 shadow-lg rounded-[8px]\"\n {...dropdownContentProps}\n >\n {/* label section (string/jsx) */}\n {header && (\n <>\n <DropdownMenuLabel>{header}</DropdownMenuLabel>\n <DropdownMenuSeparator className=\"border-neutral-1 border-t\" />\n </>\n )}\n {optionGroups.map((options, groupIndex) => {\n return (\n <React.Fragment key={groupIndex}>\n <DropdownMenuGroup>\n {options.map((option, optionIndex) => {\n if (option.subItems) {\n return (\n <DropdownMenuSub key={optionIndex}>\n <DropdownMenuSubTrigger\n disabled={option['disabled']}\n className={`data-[disabled]:hover:bg-light-1 hover:bg-light-2 rounded-md py-[11px] px-4 cursor-pointer data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed ${option.className}`}\n >\n {option.icon}\n <span className=\"text-xs\">{option.label}</span>\n </DropdownMenuSubTrigger>\n <DropdownMenuPortal>\n <DropdownMenuSubContent className=\"bg-light-1\">\n {option.subItems?.map((subItem, subItemIndex) => (\n <DropdownMenuItem\n disabled={subItem?.disabled}\n className={` data-[disabled]:hover:bg-light-1 hover:bg-light-2 data-[disabled]:cursor-not-allowed py-[11px] px-4 rounded-md ${subItem.className}`}\n onClick={subItem.onClick}\n key={subItemIndex}\n >\n {subItem.icon}\n <span className=\"text-xs\">{subItem.label}</span>\n </DropdownMenuItem>\n ))}\n </DropdownMenuSubContent>\n </DropdownMenuPortal>\n </DropdownMenuSub>\n )\n }\n return (\n <DropdownMenuItem\n className={`data-[disabled]:hover:bg-light-1 hover:bg-light-2 data-[disabled]:cursor-not-allowed hover:rounded-md py-[11px] px-4 h-[42px] ${option.className}`}\n onClick={option.onClick}\n disabled={option['disabled']}\n >\n {option.icon}\n <span className=\"text-xs\">{option.label}</span>\n\n {/* <DropdownMenuShortcut>⌘B</DropdownMenuShortcut> */}\n </DropdownMenuItem>\n )\n })}\n </DropdownMenuGroup>\n {groupIndex + 1 !== optionGroups.length && (\n <DropdownMenuSeparator className=\"border-neutral-1 border-t\" />\n )}\n </React.Fragment>\n )\n })}\n {/* <DropdownMenuGroup>\n <DropdownMenuItem>\n <User className=\"mr-2 h-4 w-4\" />\n <span>Profile</span>\n <DropdownMenuShortcut>⇧⌘P</DropdownMenuShortcut>\n </DropdownMenuItem>\n <DropdownMenuItem>\n <CreditCard className=\"mr-2 h-4 w-4\" />\n <span>Billing</span>\n <DropdownMenuShortcut>⌘B</DropdownMenuShortcut>\n </DropdownMenuItem>\n <DropdownMenuItem>\n <Settings className=\"mr-2 h-4 w-4\" />\n <span>Settings</span>\n <DropdownMenuShortcut>⌘S</DropdownMenuShortcut>\n </DropdownMenuItem>\n <DropdownMenuItem>\n <Keyboard className=\"mr-2 h-4 w-4\" />\n <span>Keyboard shortcuts</span>\n <DropdownMenuShortcut>⌘K</DropdownMenuShortcut>\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem>\n <Users className=\"mr-2 h-4 w-4\" />\n <span>Team</span>\n </DropdownMenuItem>\n <DropdownMenuSub>\n <DropdownMenuSubTrigger>\n <UserPlus className=\"mr-2 h-4 w-4\" />\n <span>Invite users</span>\n </DropdownMenuSubTrigger>\n <DropdownMenuPortal>\n <DropdownMenuSubContent>\n <DropdownMenuItem>\n <Mail className=\"mr-2 h-4 w-4\" />\n <span>Email</span>\n </DropdownMenuItem>\n <DropdownMenuItem>\n <MessageSquare className=\"mr-2 h-4 w-4\" />\n <span>Message</span>\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem>\n <PlusCircle className=\"mr-2 h-4 w-4\" />\n <span>More...</span>\n </DropdownMenuItem>\n </DropdownMenuSubContent>\n </DropdownMenuPortal>\n </DropdownMenuSub>\n <DropdownMenuItem>\n <Plus className=\"mr-2 h-4 w-4\" />\n <span>New Team</span>\n <DropdownMenuShortcut>⌘+T</DropdownMenuShortcut>\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem>\n <Github className=\"mr-2 h-4 w-4\" />\n <span>GitHub</span>\n </DropdownMenuItem>\n <DropdownMenuItem>\n <LifeBuoy className=\"mr-2 h-4 w-4\" />\n <span>Support</span>\n </DropdownMenuItem>\n <DropdownMenuItem disabled>\n <Cloud className=\"mr-2 h-4 w-4\" />\n <span>API</span>\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem>\n <LogOut className=\"mr-2 h-4 w-4\" />\n <span>Log out</span>\n <DropdownMenuShortcut>⇧⌘Q</DropdownMenuShortcut>\n </DropdownMenuItem> */}\n </DropdownMenuContent>\n </DropdownMenu>\n )\n}\n"],"names":["Dropdown","trigger","optionGroups","header","dropdownContentProps","DropdownMenu","React","DropdownMenuTrigger","DropdownMenuContent","DropdownMenuLabel","DropdownMenuSeparator","options","groupIndex","DropdownMenuGroup","option","optionIndex","DropdownMenuSub","DropdownMenuSubTrigger","DropdownMenuPortal","DropdownMenuSubContent","subItem","subItemIndex","DropdownMenuItem"],"mappings":";;AAoBO,SAASA,EAAS;AAAA,EACvB,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,sBAAAC,IAAuB,CAAC;AAC1B,GAAsB;AACpB,yCACGC,GACC,MAAAC,gBAAAA,EAAA,cAACC,KAAoB,SAAO,GAAA,GAAEN,CAAQ,GACtCK,gBAAAA,EAAA;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACT,GAAGJ;AAAA,IAAA;AAAA,IAGHD,KAEGG,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAA,gBAAAA,EAAA,cAACG,GAAmB,MAAAN,CAAO,GAC1BG,gBAAAA,EAAA,cAAAI,GAAA,EAAsB,WAAU,4BAAA,CAA4B,CAC/D;AAAA,IAEDR,EAAa,IAAI,CAACS,GAASC,MAEvBN,gBAAAA,EAAA,cAAAA,EAAM,UAAN,EAAe,KAAKM,EAAA,GAClBN,gBAAAA,EAAA,cAAAO,GAAA,MACEF,EAAQ,IAAI,CAACG,GAAQC,MAChBD,EAAO,WAEPR,gBAAAA,EAAA,cAACU,GAAgB,EAAA,KAAKD,EACpB,GAAAT,gBAAAA,EAAA;AAAA,MAACW;AAAA,MAAA;AAAA,QACC,UAAUH,EAAO;AAAA,QACjB,WAAW,4JAA4JA,EAAO,SAAS;AAAA,MAAA;AAAA,MAEtLA,EAAO;AAAA,MACPR,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAU,UAAA,GAAWQ,EAAO,KAAM;AAAA,IAAA,GAE1CR,gBAAAA,EAAA,cAACY,GACC,MAAAZ,gBAAAA,EAAA,cAACa,GAAuB,EAAA,WAAU,aAC/B,GAAAL,EAAO,UAAU,IAAI,CAACM,GAASC,MAC9Bf,gBAAAA,EAAA;AAAA,MAACgB;AAAA,MAAA;AAAA,QACC,UAAUF,GAAS;AAAA,QACnB,WAAW,oHAAoHA,EAAQ,SAAS;AAAA,QAChJ,SAASA,EAAQ;AAAA,QACjB,KAAKC;AAAA,MAAA;AAAA,MAEJD,EAAQ;AAAA,MACRd,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAU,UAAA,GAAWc,EAAQ,KAAM;AAAA,IAAA,CAE5C,CACH,CACF,CACF,IAIFd,gBAAAA,EAAA;AAAA,MAACgB;AAAA,MAAA;AAAA,QACC,WAAW,iIAAiIR,EAAO,SAAS;AAAA,QAC5J,SAASA,EAAO;AAAA,QAChB,UAAUA,EAAO;AAAA,MAAU;AAAA,MAE1BA,EAAO;AAAA,MACPR,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAU,UAAA,GAAWQ,EAAO,KAAM;AAAA,IAAA,CAK7C,CACH,GACCF,IAAa,MAAMV,EAAa,UAC9BI,gBAAAA,EAAA,cAAAI,GAAA,EAAsB,WAAU,4BAAA,CAA4B,CAEjE,CAEH;AAAA,EAAA,CA8EL;AAEJ;"}
|
package/dist/index.es24.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as s } from "./index.es59.js";
|
|
2
2
|
import { useRanger as b } from "@tanstack/react-ranger";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { SliderBgColorVariants as a } from "./index.
|
|
4
|
+
import { SliderBgColorVariants as a } from "./index.es73.js";
|
|
5
5
|
const w = ({ left: t = 0, width: o = 0, index: l = -1 }) => /* @__PURE__ */ e.createElement(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
package/dist/index.es25.js
CHANGED
|
@@ -5,7 +5,7 @@ import { cn as m } from "./index.es59.js";
|
|
|
5
5
|
import { Button as v } from "./index.es7.js";
|
|
6
6
|
import { Command as w, CommandInput as k, CommandEmpty as S, CommandGroup as O, CommandList as P, CommandItem as R } from "./index.es41.js";
|
|
7
7
|
import { Popover as j, PopoverTrigger as B, PopoverContent as I } from "./index.es60.js";
|
|
8
|
-
import { ComboBoxStates as T } from "./index.
|
|
8
|
+
import { ComboBoxStates as T } from "./index.es74.js";
|
|
9
9
|
import { Typography as d } from "./index.es18.js";
|
|
10
10
|
function z({
|
|
11
11
|
options: n,
|
package/dist/index.es27.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as o from "@radix-ui/react-slider";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import { cn as i } from "./index.es59.js";
|
|
4
|
-
import { SliderVariants as t } from "./index.
|
|
4
|
+
import { SliderVariants as t } from "./index.es77.js";
|
|
5
5
|
const s = e.forwardRef(({ className: r, ...l }, a) => (
|
|
6
6
|
// <div className='bg-light-3 h-[100px] w-full flex'>
|
|
7
7
|
/* @__PURE__ */ e.createElement(
|
package/dist/index.es29.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StepperProvider as r, StepGroup as p } from "./index.
|
|
1
|
+
import { StepperProvider as r, StepGroup as p } from "./index.es78.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
const m = ({ value: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(r, { steps: t }, /* @__PURE__ */ e.createElement(p, null)));
|
|
4
4
|
m.displayName = "Stepper";
|
package/dist/index.es30.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import * as t from "@radix-ui/react-tabs";
|
|
3
3
|
import { cn as n } from "./index.es59.js";
|
|
4
|
-
import { TabsVariants as d, TabTriggerVariants as T } from "./index.
|
|
4
|
+
import { TabsVariants as d, TabTriggerVariants as T } from "./index.es79.js";
|
|
5
5
|
const c = e.forwardRef(({ className: a, variant: r, size: s, ...o }, i) => /* @__PURE__ */ e.createElement(
|
|
6
6
|
t.List,
|
|
7
7
|
{
|
package/dist/index.es38.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { Badge as
|
|
1
|
+
import { Badge as E } from "./index.es6.js";
|
|
2
2
|
import v from "./index.es17.js";
|
|
3
|
-
import { Typography as
|
|
3
|
+
import { Typography as c } from "./index.es18.js";
|
|
4
4
|
import { Dropdown as x } from "./index.es21.js";
|
|
5
5
|
import { cn as i } from "./index.es59.js";
|
|
6
6
|
import e from "react";
|
|
7
7
|
import { NavbarIconVariants as u } from "./index.es80.js";
|
|
8
|
-
import { AvatarDemo as
|
|
9
|
-
const
|
|
8
|
+
import { AvatarDemo as h } from "./index.es4.js";
|
|
9
|
+
const N = ({ name: t = "", email: a = "" }) => {
|
|
10
10
|
if (!(t || a)) return null;
|
|
11
11
|
const r = "text-ellipsis overflow-hidden";
|
|
12
12
|
return /* @__PURE__ */ e.createElement("div", { className: "flex flex-col px-2" }, t && /* @__PURE__ */ e.createElement(
|
|
13
|
-
|
|
13
|
+
c,
|
|
14
14
|
{
|
|
15
15
|
variant: "body4",
|
|
16
16
|
className: i("text-light-1", r)
|
|
17
17
|
},
|
|
18
18
|
t
|
|
19
19
|
), a && /* @__PURE__ */ e.createElement(
|
|
20
|
-
|
|
20
|
+
c,
|
|
21
21
|
{
|
|
22
22
|
variant: "body5",
|
|
23
23
|
className: i("text-light-3", r)
|
|
24
24
|
},
|
|
25
25
|
a
|
|
26
26
|
));
|
|
27
|
-
},
|
|
27
|
+
}, g = ({
|
|
28
28
|
alt: t,
|
|
29
29
|
className: a,
|
|
30
30
|
isActive: r = !1,
|
|
@@ -32,13 +32,13 @@ const h = ({ name: t = "", email: a = "" }) => {
|
|
|
32
32
|
src: o,
|
|
33
33
|
tooltipText: n = "",
|
|
34
34
|
wrapper: m = null,
|
|
35
|
-
onClick:
|
|
35
|
+
onClick: s
|
|
36
36
|
}) => {
|
|
37
|
-
const d = (
|
|
37
|
+
const d = (p) => m?.(p) ?? p, f = /* @__PURE__ */ e.createElement(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
40
|
className: i(u({ isActive: r }), a),
|
|
41
|
-
...
|
|
41
|
+
...s && { onClick: s }
|
|
42
42
|
},
|
|
43
43
|
/* @__PURE__ */ e.createElement("img", { src: o, alt: t }),
|
|
44
44
|
/* @__PURE__ */ e.createElement(y, { isNew: l })
|
|
@@ -48,12 +48,13 @@ const h = ({ name: t = "", email: a = "" }) => {
|
|
|
48
48
|
v,
|
|
49
49
|
{
|
|
50
50
|
content: "",
|
|
51
|
-
headerText: /* @__PURE__ */ e.createElement("div", { className: "flex gap-2 items-center" }, l && /* @__PURE__ */ e.createElement(
|
|
52
|
-
|
|
51
|
+
headerText: /* @__PURE__ */ e.createElement("div", { className: "flex gap-2 items-center" }, l && /* @__PURE__ */ e.createElement(E, { variant: "gradient", size: "sm" }, "NEW"), /* @__PURE__ */ e.createElement("div", null, n)),
|
|
52
|
+
sideOffset: 24,
|
|
53
|
+
triggerElement: f,
|
|
53
54
|
delayDuration: 100,
|
|
54
55
|
side: "right"
|
|
55
56
|
}
|
|
56
|
-
)) :
|
|
57
|
+
)) : f
|
|
57
58
|
);
|
|
58
59
|
}, b = () => /* @__PURE__ */ e.createElement("div", { className: "my-1 h-[1px] w-10 bg-white opacity-20" }), y = ({ isNew: t }) => t ? /* @__PURE__ */ e.createElement("div", { className: "absolute w-[6px] h-[6px] rounded-full bottom-1 right-1 bg-secondary-2" }) : null, w = ({
|
|
59
60
|
src: t,
|
|
@@ -63,10 +64,11 @@ const h = ({ name: t = "", email: a = "" }) => {
|
|
|
63
64
|
}) => /* @__PURE__ */ e.createElement(
|
|
64
65
|
x,
|
|
65
66
|
{
|
|
67
|
+
dropdownContentProps: { sideOffset: 24, side: "right", align: "end" },
|
|
66
68
|
trigger: (
|
|
67
69
|
// div required as unable to open up the popup without it
|
|
68
70
|
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
69
|
-
|
|
71
|
+
h,
|
|
70
72
|
{
|
|
71
73
|
imageSrc: t ?? "",
|
|
72
74
|
size: "md",
|
|
@@ -82,13 +84,13 @@ const h = ({ name: t = "", email: a = "" }) => {
|
|
|
82
84
|
}
|
|
83
85
|
))
|
|
84
86
|
),
|
|
85
|
-
header: /* @__PURE__ */ e.createElement(
|
|
87
|
+
header: /* @__PURE__ */ e.createElement(N, { name: r, email: l }),
|
|
86
88
|
optionGroups: a
|
|
87
89
|
}
|
|
88
90
|
), _ = ({
|
|
89
91
|
onClick: t
|
|
90
92
|
}) => /* @__PURE__ */ e.createElement(
|
|
91
|
-
|
|
93
|
+
c,
|
|
92
94
|
{
|
|
93
95
|
variant: "body4",
|
|
94
96
|
className: "text-white text-center cursor-pointer",
|
|
@@ -102,14 +104,14 @@ const h = ({ name: t = "", email: a = "" }) => {
|
|
|
102
104
|
alt: "infinity icon",
|
|
103
105
|
className: "h-4 w-4"
|
|
104
106
|
}
|
|
105
|
-
) : /* @__PURE__ */ e.createElement(
|
|
107
|
+
) : /* @__PURE__ */ e.createElement(c, { variant: "body5", className: "text-white" }, t), /* @__PURE__ */ e.createElement(
|
|
106
108
|
"img",
|
|
107
109
|
{
|
|
108
110
|
src: "https://frontend-static-files.geoiq.io/strapi/navbar_credits_247858e26a.svg",
|
|
109
111
|
alt: "coin icon",
|
|
110
112
|
className: "h-4 w-4"
|
|
111
113
|
}
|
|
112
|
-
)),
|
|
114
|
+
)), B = ({
|
|
113
115
|
login: t,
|
|
114
116
|
icons: a,
|
|
115
117
|
credits: r = -1,
|
|
@@ -124,10 +126,10 @@ const h = ({ name: t = "", email: a = "" }) => {
|
|
|
124
126
|
n
|
|
125
127
|
)
|
|
126
128
|
},
|
|
127
|
-
/* @__PURE__ */ e.createElement("div", { className: "flex flex-col items-center gap-8" }, /* @__PURE__ */ e.createElement(I, { ...o }), /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-3" }, (a?.list ?? []).map((m,
|
|
128
|
-
/* @__PURE__ */ e.createElement("div", { className: "flex flex-col items-center gap-2" }, /* @__PURE__ */ e.createElement(
|
|
129
|
+
/* @__PURE__ */ e.createElement("div", { className: "flex flex-col items-center gap-8" }, /* @__PURE__ */ e.createElement(I, { ...o }), /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-3" }, (a?.list ?? []).map((m, s) => /* @__PURE__ */ e.createElement(g, { key: s, ...m })))),
|
|
130
|
+
/* @__PURE__ */ e.createElement("div", { className: "flex flex-col items-center gap-2" }, /* @__PURE__ */ e.createElement(g, { ...a.help }), /* @__PURE__ */ e.createElement(L, { credits: r }), /* @__PURE__ */ e.createElement(b, null), t?.isLoggedIn ? /* @__PURE__ */ e.createElement(w, { ...l }) : /* @__PURE__ */ e.createElement(_, { ...t }))
|
|
129
131
|
);
|
|
130
132
|
export {
|
|
131
|
-
|
|
133
|
+
B as Navbar
|
|
132
134
|
};
|
|
133
135
|
//# sourceMappingURL=index.es38.js.map
|