geoiq-frontend-ui-kit 1.1.21 → 1.1.22
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/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 +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 +35 -8
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +118 -37
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +88 -22
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +13 -84
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +22 -122
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +34 -10
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +24 -10
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +13 -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 +38 -12
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +39 -22
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es9.js +1 -1
- 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,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.es73.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,6 +1,6 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { cn as r } from "./index.es59.js";
|
|
3
|
-
import { AlertVariants as f, AlertContentVariants as d, AlertButtonVariants as g } from "./index.
|
|
3
|
+
import { AlertVariants as f, AlertContentVariants as d, AlertButtonVariants as g } from "./index.es74.js";
|
|
4
4
|
import { Button as p } from "./index.es7.js";
|
|
5
5
|
const c = e.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.createElement(
|
|
6
6
|
"h5",
|
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.es71.js";
|
|
2
|
+
import { DropdownMenu as g, DropdownMenuTrigger as y, DropdownMenuContent as d, DropdownMenuItem as h } from "./index.es70.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.es72.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.es70.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.es76.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.es75.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.es79.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.es78.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
|
package/dist/index.es38.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es38.js","sources":["../src/components/organisms/navbar/navbar.tsx"],"sourcesContent":["import { Badge } from '@/components/atoms/badge'\nimport Tooltip from '@/components/atoms/tooltip'\nimport { Typography } from '@/components/atoms/typography'\nimport { Dropdown } from '@/components/molecules/dropdown-menu/dropdown-menu'\nimport { cn } from '@/lib/utils'\nimport React from 'react'\nimport { IconProps, NavbarProps } from './navbar.types'\nimport { NavbarIconVariants } from './navbar.styles'\nimport { Avatar } from '@/components/atoms/avatar'\n\nconst ProfileHeader = ({ name = '', email = '' }) => {\n if (!(name || email)) return null\n\n const classEllipsisAndOverflow: React.ComponentProps<'div'>['className'] =\n 'text-ellipsis overflow-hidden'\n\n return (\n <div className=\"flex flex-col px-2\">\n {name && (\n <Typography\n variant=\"body4\"\n className={cn('text-light-1', classEllipsisAndOverflow)}\n >\n {name}\n </Typography>\n )}\n {email && (\n <Typography\n variant=\"body5\"\n className={cn('text-light-3', classEllipsisAndOverflow)}\n >\n {email}\n </Typography>\n )}\n </div>\n )\n}\n\nconst NavbarIcon: React.FC<IconProps> = ({\n alt,\n className,\n isActive = false,\n isNew = false,\n src,\n tooltipText = '',\n wrapper = null,\n onClick,\n}) => {\n // Wrap the icon with a link or a button\n const returnWrap = (children: React.ReactNode) =>\n wrapper?.(children) ?? children\n\n const navbarIcon = (\n <div\n className={cn(NavbarIconVariants({ isActive }), className)}\n {...(onClick && { onClick })}\n >\n <img {...{ src, alt }} />\n <NewBlink isNew={isNew} />\n </div>\n )\n\n if (tooltipText)\n return returnWrap(\n <div className=\"relative\">\n <Tooltip\n content=\"\"\n headerText={\n (\n <div className=\"flex gap-2 items-center\">\n {isNew && (\n <Badge variant=\"gradient\" size=\"sm\">\n NEW\n </Badge>\n )}\n <div>{tooltipText}</div>\n </div>\n ) as unknown as string\n }\n triggerElement={navbarIcon}\n delayDuration={100}\n side=\"right\"\n />\n </div>\n )\n\n return returnWrap(navbarIcon)\n}\n\nconst Separator = () => (\n <div className=\"my-1 h-[1px] w-10 bg-white opacity-20\" />\n)\n\nconst NewBlink: React.FC<Pick<IconProps, 'isNew'>> = ({ isNew }) =>\n isNew ? (\n <div className=\"absolute w-[6px] h-[6px] rounded-full bottom-1 right-1 bg-secondary-2\" />\n ) : null\n\nconst Profile: React.FC<NavbarProps['profile']> = ({\n src,\n popoverOptions,\n name = '',\n email = '',\n}) => (\n <Dropdown\n trigger={\n // div required as unable to open up the popup without it\n <div>\n <Avatar\n imageSrc={src ?? ''}\n size=\"md\"\n alt=\"avatar\"\n fallback={\n <img\n src=\"https://frontend-static-files.geoiq.io/strapi/Avatar_e5ab891e67.svg\"\n alt=\"avatar\"\n className=\"w-10 h-10 cursor-pointer\"\n />\n }\n />\n </div>\n }\n header={<ProfileHeader {...{ name, email }} />}\n optionGroups={popoverOptions}\n />\n)\n\nconst Login: React.FC<Pick<NavbarProps['login'], 'onClick'>> = ({\n onClick,\n}) => (\n <Typography\n variant=\"body4\"\n className=\"text-white text-center cursor-pointer\"\n onClick={onClick}\n >\n Login\n </Typography>\n)\n\nconst Logo: React.FC<NavbarProps['logo']> = ({ src, alt }) => (\n <img src={src} alt={alt} className=\"w-10 h-auto\" />\n)\n\nconst Credits: React.FC<Pick<NavbarProps, 'credits'>> = ({ credits }) =>\n credits >= 0 && (\n <div className=\"rounded brand-primary-secondary-gradient flex gap-[2px] h-auto box-border p-1 w-10 flex-wrap justify-center\">\n {credits > 9999 ? (\n <img\n src=\"https://frontend-static-files.geoiq.io/strapi/infinity_7d62ad2947.svg\"\n alt=\"infinity icon\"\n className=\"h-4 w-4\"\n />\n ) : (\n <Typography variant=\"body5\" className=\"text-white\">\n {credits}\n </Typography>\n )}\n\n <img\n src=\"https://frontend-static-files.geoiq.io/strapi/navbar_credits_247858e26a.svg\"\n alt=\"coin icon\"\n className=\"h-4 w-4\"\n />\n </div>\n )\n\nexport const Navbar: React.FC<NavbarProps> = ({\n login,\n icons,\n credits = -1,\n profile,\n logo,\n className = '',\n}) => {\n return (\n <div\n className={cn(\n 'w-16 bg-dark-2 px-3 py-4 h-full flex flex-col justify-between',\n className\n )}\n >\n {/* Top Part */}\n <div className=\"flex flex-col items-center gap-8\">\n <Logo {...logo} />\n\n {/* Main Icons */}\n <div className=\"flex flex-col gap-3\">\n {(icons?.list ?? []).map((icon, index) => (\n <NavbarIcon key={index} {...icon} />\n ))}\n </div>\n </div>\n\n {/* Bottom Part */}\n <div className=\"flex flex-col items-center gap-2\">\n {/* Help */}\n <NavbarIcon {...icons.help} />\n\n {/* Credits */}\n <Credits credits={credits} />\n\n <Separator />\n\n {/* Avatar and Login Part */}\n {login?.isLoggedIn ? <Profile {...profile} /> : <Login {...login} />}\n </div>\n </div>\n )\n}\n"],"names":["ProfileHeader","name","email","classEllipsisAndOverflow","React","Typography","cn","NavbarIcon","alt","className","isActive","isNew","src","tooltipText","wrapper","onClick","returnWrap","children","navbarIcon","NavbarIconVariants","NewBlink","Tooltip","Badge","Separator","Profile","popoverOptions","Dropdown","Avatar","Login","Logo","Credits","credits","Navbar","login","icons","profile","logo","icon","index"],"mappings":";;;;;;;;AAUA,MAAMA,IAAgB,CAAC,EAAE,MAAAC,IAAO,IAAI,OAAAC,IAAQ,SAAS;AAC/C,MAAA,EAAED,KAAQC,GAAe,QAAA;AAE7B,QAAMC,IACJ;AAEF,SACGC,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAU,qBAAA,GACZH,KACCG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAWC,EAAG,gBAAgBH,CAAwB;AAAA,IAAA;AAAA,IAErDF;AAAA,EAAA,GAGJC,KACCE,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAWC,EAAG,gBAAgBH,CAAwB;AAAA,IAAA;AAAA,IAErDD;AAAA,EAAA,CAGP;AAEJ,GAEMK,IAAkC,CAAC;AAAA,EACvC,KAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,OAAAC,IAAQ;AAAA,EACR,KAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC,IAAU;AAAA,EACV,SAAAC;AACF,MAAM;AAEJ,QAAMC,IAAa,CAACC,MAClBH,IAAUG,CAAQ,KAAKA,GAEnBC,IACJd,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWE,EAAGa,EAAmB,EAAE,UAAAT,EAAU,CAAA,GAAGD,CAAS;AAAA,MACxD,GAAIM,KAAW,EAAE,SAAAA,EAAQ;AAAA,IAAA;AAAA,oCAEz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GAGhBhC,gBAAAA,EAAA,cAAC,OAAI,EAAA,WAAU,sBACX,IAAA8B,GAAO,QAAQ,CAAA,GAAI,IAAI,CAACG,GAAMC,MAC9BlC,gBAAAA,EAAA,cAACG,GAAW,EAAA,KAAK+B,GAAQ,GAAGD,EAAM,CAAA,CACnC,CACH,CACF;AAAA,EAGCjC,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAU,mCAAA,GAEZA,gBAAAA,EAAA,cAAAG,GAAA,EAAY,GAAG2B,EAAM,MAAM,GAG3B9B,gBAAAA,EAAA,cAAA0B,GAAA,EAAQ,SAAAC,EAAkB,CAAA,GAE1B3B,gBAAAA,EAAA,cAAAmB,GAAA,IAAU,GAGVU,GAAO,aAAa7B,gBAAAA,EAAA,cAACoB,GAAS,EAAA,GAAGW,EAAS,CAAA,IAAM/B,gBAAAA,EAAA,cAAAwB,GAAA,EAAO,GAAGK,EAAA,CAAO,CACpE;AAAA;"}
|
|
1
|
+
{"version":3,"file":"index.es38.js","sources":["../src/components/organisms/navbar/navbar.tsx"],"sourcesContent":["import { Badge } from '@/components/atoms/badge'\nimport Tooltip from '@/components/atoms/tooltip'\nimport { Typography } from '@/components/atoms/typography'\nimport { Dropdown } from '@/components/molecules/dropdown-menu/dropdown-menu'\nimport { cn } from '@/lib/utils'\nimport React from 'react'\nimport { IconProps, NavbarProps } from './navbar.types'\nimport { NavbarIconVariants } from './navbar.styles'\nimport { Avatar } from '@/components/atoms/avatar'\n\nconst ProfileHeader = ({ name = '', email = '' }) => {\n if (!(name || email)) return null\n\n const classEllipsisAndOverflow: React.ComponentProps<'div'>['className'] =\n 'text-ellipsis overflow-hidden'\n\n return (\n <div className=\"flex flex-col px-2\">\n {name && (\n <Typography\n variant=\"body4\"\n className={cn('text-light-1', classEllipsisAndOverflow)}\n >\n {name}\n </Typography>\n )}\n {email && (\n <Typography\n variant=\"body5\"\n className={cn('text-light-3', classEllipsisAndOverflow)}\n >\n {email}\n </Typography>\n )}\n </div>\n )\n}\n\nconst NavbarIcon: React.FC<IconProps> = ({\n alt,\n className,\n isActive = false,\n isNew = false,\n src,\n tooltipText = '',\n wrapper = null,\n onClick,\n}) => {\n // Wrap the icon with a link or a button\n const returnWrap = (children: React.ReactNode) =>\n wrapper?.(children) ?? children\n\n const navbarIcon = (\n <div\n className={cn(NavbarIconVariants({ isActive }), className)}\n {...(onClick && { onClick })}\n >\n <img {...{ src, alt }} />\n <NewBlink isNew={isNew} />\n </div>\n )\n\n if (tooltipText)\n return returnWrap(\n <div className=\"relative\">\n <Tooltip\n content=\"\"\n headerText={\n (\n <div className=\"flex gap-2 items-center\">\n {isNew && (\n <Badge variant=\"gradient\" size=\"sm\">\n NEW\n </Badge>\n )}\n <div>{tooltipText}</div>\n </div>\n ) as unknown as string\n }\n sideOffset={24}\n triggerElement={navbarIcon}\n delayDuration={100}\n side=\"right\"\n />\n </div>\n )\n\n return returnWrap(navbarIcon)\n}\n\nconst Separator = () => (\n <div className=\"my-1 h-[1px] w-10 bg-white opacity-20\" />\n)\n\nconst NewBlink: React.FC<Pick<IconProps, 'isNew'>> = ({ isNew }) =>\n isNew ? (\n <div className=\"absolute w-[6px] h-[6px] rounded-full bottom-1 right-1 bg-secondary-2\" />\n ) : null\n\nconst Profile: React.FC<NavbarProps['profile']> = ({\n src,\n popoverOptions,\n name = '',\n email = '',\n}) => (\n <Dropdown\n dropdownContentProps={{ sideOffset: 24, side: 'right', align: 'end' }}\n trigger={\n // div required as unable to open up the popup without it\n <div>\n <Avatar\n imageSrc={src ?? ''}\n size=\"md\"\n alt=\"avatar\"\n fallback={\n <img\n src=\"https://frontend-static-files.geoiq.io/strapi/Avatar_e5ab891e67.svg\"\n alt=\"avatar\"\n className=\"w-10 h-10 cursor-pointer\"\n />\n }\n />\n </div>\n }\n header={<ProfileHeader {...{ name, email }} />}\n optionGroups={popoverOptions}\n />\n)\n\nconst Login: React.FC<Pick<NavbarProps['login'], 'onClick'>> = ({\n onClick,\n}) => (\n <Typography\n variant=\"body4\"\n className=\"text-white text-center cursor-pointer\"\n onClick={onClick}\n >\n Login\n </Typography>\n)\n\nconst Logo: React.FC<NavbarProps['logo']> = ({ src, alt }) => (\n <img src={src} alt={alt} className=\"w-10 h-auto\" />\n)\n\nconst Credits: React.FC<Pick<NavbarProps, 'credits'>> = ({ credits }) =>\n credits >= 0 && (\n <div className=\"rounded brand-primary-secondary-gradient flex gap-[2px] h-auto box-border p-1 w-10 flex-wrap justify-center\">\n {credits > 9999 ? (\n <img\n src=\"https://frontend-static-files.geoiq.io/strapi/infinity_7d62ad2947.svg\"\n alt=\"infinity icon\"\n className=\"h-4 w-4\"\n />\n ) : (\n <Typography variant=\"body5\" className=\"text-white\">\n {credits}\n </Typography>\n )}\n\n <img\n src=\"https://frontend-static-files.geoiq.io/strapi/navbar_credits_247858e26a.svg\"\n alt=\"coin icon\"\n className=\"h-4 w-4\"\n />\n </div>\n )\n\nexport const Navbar: React.FC<NavbarProps> = ({\n login,\n icons,\n credits = -1,\n profile,\n logo,\n className = '',\n}) => {\n return (\n <div\n className={cn(\n 'w-16 bg-dark-2 px-3 py-4 h-full flex flex-col justify-between',\n className\n )}\n >\n {/* Top Part */}\n <div className=\"flex flex-col items-center gap-8\">\n <Logo {...logo} />\n\n {/* Main Icons */}\n <div className=\"flex flex-col gap-3\">\n {(icons?.list ?? []).map((icon, index) => (\n <NavbarIcon key={index} {...icon} />\n ))}\n </div>\n </div>\n\n {/* Bottom Part */}\n <div className=\"flex flex-col items-center gap-2\">\n {/* Help */}\n <NavbarIcon {...icons.help} />\n\n {/* Credits */}\n <Credits credits={credits} />\n\n <Separator />\n\n {/* Avatar and Login Part */}\n {login?.isLoggedIn ? <Profile {...profile} /> : <Login {...login} />}\n </div>\n </div>\n )\n}\n"],"names":["ProfileHeader","name","email","classEllipsisAndOverflow","React","Typography","cn","NavbarIcon","alt","className","isActive","isNew","src","tooltipText","wrapper","onClick","returnWrap","children","navbarIcon","NavbarIconVariants","NewBlink","Tooltip","Badge","Separator","Profile","popoverOptions","Dropdown","Avatar","Login","Logo","Credits","credits","Navbar","login","icons","profile","logo","icon","index"],"mappings":";;;;;;;;AAUA,MAAMA,IAAgB,CAAC,EAAE,MAAAC,IAAO,IAAI,OAAAC,IAAQ,SAAS;AAC/C,MAAA,EAAED,KAAQC,GAAe,QAAA;AAE7B,QAAMC,IACJ;AAEF,SACGC,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAU,qBAAA,GACZH,KACCG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAWC,EAAG,gBAAgBH,CAAwB;AAAA,IAAA;AAAA,IAErDF;AAAA,EAAA,GAGJC,KACCE,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAWC,EAAG,gBAAgBH,CAAwB;AAAA,IAAA;AAAA,IAErDD;AAAA,EAAA,CAGP;AAEJ,GAEMK,IAAkC,CAAC;AAAA,EACvC,KAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,OAAAC,IAAQ;AAAA,EACR,KAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC,IAAU;AAAA,EACV,SAAAC;AACF,MAAM;AAEJ,QAAMC,IAAa,CAACC,MAClBH,IAAUG,CAAQ,KAAKA,GAEnBC,IACJd,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWE,EAAGa,EAAmB,EAAE,UAAAT,EAAU,CAAA,GAAGD,CAAS;AAAA,MACxD,GAAIM,KAAW,EAAE,SAAAA,EAAQ;AAAA,IAAA;AAAA,oCAEzB,OAAK,EAAK,KAAAH,GAAK,KAAAJ,GAAO;AAAA,IACvBJ,gBAAAA,EAAA,cAACgB,KAAS,OAAAT,EAAc,CAAA;AAAA,EAAA;AAIxB,SACKK;AAAA,IADLH,IAEAT,gBAAAA,EAAA,cAAC,OAAI,EAAA,WAAU,WACb,GAAAA,gBA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AA,EAAA,cAACG,GAAW,EAAA,KAAK+B,GAAQ,GAAGD,EAAM,CAAA,CACnC,CACH,CACF;AAAA,EAGCjC,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAU,mCAAA,GAEZA,gBAAAA,EAAA,cAAAG,GAAA,EAAY,GAAG2B,EAAM,MAAM,GAG3B9B,gBAAAA,EAAA,cAAA0B,GAAA,EAAQ,SAAAC,EAAkB,CAAA,GAE1B3B,gBAAAA,EAAA,cAAAmB,GAAA,IAAU,GAGVU,GAAO,aAAa7B,gBAAAA,EAAA,cAACoB,GAAS,EAAA,GAAGW,EAAS,CAAA,IAAM/B,gBAAAA,EAAA,cAAAwB,GAAA,EAAO,GAAGK,EAAA,CAAO,CACpE;AAAA;"}
|
package/dist/index.es53.js
CHANGED
package/dist/index.es67.js
CHANGED
|
@@ -1,52 +1,14 @@
|
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
text-light-2 px-3 py-2
|
|
5
|
-
file:border-0 file:bg-transparent
|
|
6
|
-
placeholder:font-normal placeholder:text-light-4`,
|
|
2
|
+
const i = r(
|
|
3
|
+
"relative h-2 w-full overflow-hidden rounded bg-primary-2 min-w-64 ",
|
|
7
4
|
{
|
|
8
5
|
variants: {
|
|
9
|
-
|
|
10
|
-
true: "",
|
|
11
|
-
false: ""
|
|
12
|
-
},
|
|
13
|
-
isFocused: {
|
|
14
|
-
true: "",
|
|
15
|
-
false: ""
|
|
16
|
-
},
|
|
17
|
-
disabled: {
|
|
18
|
-
true: "bg-light-3 border-neutral-2 cursor-not-allowed",
|
|
19
|
-
false: ""
|
|
20
|
-
}
|
|
6
|
+
variant: {}
|
|
21
7
|
},
|
|
22
|
-
defaultVariants: {
|
|
23
|
-
isError: !1
|
|
24
|
-
},
|
|
25
|
-
compoundVariants: [
|
|
26
|
-
{
|
|
27
|
-
isError: !0,
|
|
28
|
-
isFocused: !0,
|
|
29
|
-
className: "border-danger-2 ring-4 ring-danger-1"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
isError: !1,
|
|
33
|
-
isFocused: !0,
|
|
34
|
-
className: "border-primary-2 ring-4 ring-primary-1"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
isError: !0,
|
|
38
|
-
isFocused: !1,
|
|
39
|
-
className: "border-danger-2"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
isError: !1,
|
|
43
|
-
isFocused: !1,
|
|
44
|
-
className: "border-light-2"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
8
|
+
defaultVariants: {}
|
|
47
9
|
}
|
|
48
10
|
);
|
|
49
11
|
export {
|
|
50
|
-
|
|
12
|
+
i as ProgressVariants
|
|
51
13
|
};
|
|
52
14
|
//# sourceMappingURL=index.es67.js.map
|
package/dist/index.es67.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es67.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index.es67.js","sources":["../src/components/atoms/progress/progress.styles.ts"],"sourcesContent":["import { cva } from 'class-variance-authority'\n\nexport const ProgressVariants = cva(\n 'relative h-2 w-full overflow-hidden rounded bg-primary-2 min-w-64 ',\n {\n variants: {\n variant: {},\n },\n defaultVariants: {},\n }\n)\n"],"names":["ProgressVariants","cva"],"mappings":";AAEO,MAAMA,IAAmBC;AAAA,EAC9B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,iBAAiB,CAAC;AAAA,EACpB;AACF;"}
|