geoiq-frontend-ui-kit 1.2.1 → 1.2.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.
- package/dist/components/ui/animated-input/animated-input.d.ts +5 -0
- package/dist/components/ui/animated-input/animated-input.d.ts.map +1 -0
- package/dist/components/ui/animated-input/animated-input.styles.d.ts +12 -0
- package/dist/components/ui/animated-input/animated-input.styles.d.ts.map +1 -0
- package/dist/components/ui/animated-input/animated-input.types.d.ts +13 -0
- package/dist/components/ui/animated-input/animated-input.types.d.ts.map +1 -0
- package/dist/components/ui/animated-input/index.d.ts +2 -0
- package/dist/components/ui/animated-input/index.d.ts.map +1 -0
- package/dist/index.es10.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es18.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es29.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es61.js +1 -1
- package/dist/index.es77.js +124 -21
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +22 -11
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +21 -124
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +10 -24
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +8 -39
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +21 -10
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es85.js +45 -22
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es87.js +39 -37
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js +37 -39
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es9.js +5 -5
- package/dist/index.es9.js.map +1 -1
- package/dist/styles.css +9 -3
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnimatedInputProps } from './animated-input.types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const AnimatedInput: React.ForwardRefExoticComponent<AnimatedInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export { AnimatedInput };
|
|
5
|
+
//# sourceMappingURL=animated-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animated-input.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/animated-input/animated-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAQ3D,OAAO,sBAAsB,CAAA;AAE7B,QAAA,MAAM,aAAa,6FAkJlB,CAAA;AAID,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const AnimatedInputContainerVariants: (props?: ({
|
|
2
|
+
isError?: boolean | null | undefined;
|
|
3
|
+
isFocused?: boolean | null | undefined;
|
|
4
|
+
disabled?: boolean | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
6
|
+
export declare const AnimatedInputStyles: (props?: ({
|
|
7
|
+
isError?: boolean | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
9
|
+
export declare const DynamicComponentStyles: (props?: ({
|
|
10
|
+
animate?: boolean | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
12
|
+
//# sourceMappingURL=animated-input.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animated-input.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/animated-input/animated-input.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B;;;;mFA8C1C,CAAA;AAED,eAAO,MAAM,mBAAmB;;mFAU/B,CAAA;AAED,eAAO,MAAM,sBAAsB;;mFAalC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { AnimatedInputContainerVariants } from './animated-input.styles';
|
|
3
|
+
|
|
4
|
+
export interface AnimatedInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'disabled'>, VariantProps<typeof AnimatedInputContainerVariants> {
|
|
5
|
+
message?: string;
|
|
6
|
+
prefix?: React.ReactNode;
|
|
7
|
+
suffix?: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
id?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
placeholders?: string[];
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=animated-input.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animated-input.types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/animated-input/animated-input.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAA;AAExE,MAAM,WAAW,kBACf,SAAQ,IAAI,CACR,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,QAAQ,GAAG,UAAU,CACtB,EACD,YAAY,CAAC,OAAO,8BAA8B,CAAC;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/animated-input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,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 i } from "./index.es68.js";
|
|
4
|
-
import { ProgressVariants as n } from "./index.
|
|
4
|
+
import { ProgressVariants as n } from "./index.es80.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.es49.js";
|
|
|
6
6
|
import "./index.es69.js";
|
|
7
7
|
import "./index.es26.js";
|
|
8
8
|
import "./index.es32.js";
|
|
9
|
-
import { TextAreaVariants as m } from "./index.
|
|
9
|
+
import { TextAreaVariants as m } from "./index.es79.js";
|
|
10
10
|
const g = e.forwardRef(
|
|
11
11
|
({ className: o, inputLabel: i, showTextCount: l, maximumTextCount: a, id: d, ...t }, f) => {
|
|
12
12
|
const [r, s] = e.useState(!1), c = e.useRef(null);
|
package/dist/index.es18.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import { cn as n } from "./index.es68.js";
|
|
3
3
|
import { TypographyVariants as y } from "./index.es61.js";
|
|
4
|
-
import { defaultTypographyVariant as i, variantElementMap as c } from "./index.
|
|
4
|
+
import { defaultTypographyVariant as i, variantElementMap as c } from "./index.es78.js";
|
|
5
5
|
const f = o.forwardRef(({ className: t, variant: r = i, id: e, ...a }, p) => {
|
|
6
6
|
const m = c[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 s } from "./index.es68.js";
|
|
3
|
-
import { AlertVariants as d, AlertContentVariants as g, AlertButtonVariants as p } from "./index.
|
|
3
|
+
import { AlertVariants as d, AlertContentVariants as g, AlertButtonVariants as p } from "./index.es85.js";
|
|
4
4
|
import { Button as u } from "./index.es7.js";
|
|
5
5
|
import { Typography as h } from "./index.es18.js";
|
|
6
6
|
const c = e.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e.createElement(
|
package/dist/index.es20.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Breadcrumb as b, BreadcrumbList as h, BreadcrumbSeparator as o, BreadcrumbItem as s, BreadcrumbEllipsis as y, BreadcrumbLink as i } from "./index.es83.js";
|
|
2
|
-
import { DropdownMenu as d, DropdownMenuTrigger as f, DropdownMenuContent as B, DropdownMenuItem as w } from "./index.
|
|
2
|
+
import { DropdownMenu as d, DropdownMenuTrigger as f, DropdownMenuContent as B, DropdownMenuItem as w } from "./index.es77.js";
|
|
3
3
|
import e from "react";
|
|
4
4
|
import { Typography as N } from "./index.es18.js";
|
|
5
5
|
import { cn as D } from "./index.es68.js";
|
package/dist/index.es21.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "react";
|
|
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.
|
|
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.es77.js";
|
|
3
3
|
function v({
|
|
4
4
|
trigger: c,
|
|
5
5
|
optionGroups: r,
|
package/dist/index.es24.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as s } from "./index.es68.js";
|
|
2
2
|
import { useRanger as w } from "@tanstack/react-ranger";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { SliderBgColorVariants as a } from "./index.
|
|
4
|
+
import { SliderBgColorVariants as a } from "./index.es81.js";
|
|
5
5
|
const x = ({ left: t = 0, width: o = 0, index: l = -1 }) => /* @__PURE__ */ e.createElement(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
package/dist/index.es25.js
CHANGED
|
@@ -4,7 +4,7 @@ import { ChevronUp as N, ChevronDown as v, Check as y } from "lucide-react";
|
|
|
4
4
|
import { Command as w, CommandInput as k, CommandEmpty as S, CommandGroup as O, CommandList as P, CommandItem as R } from "./index.es49.js";
|
|
5
5
|
import { Popover as j, PopoverTrigger as B, PopoverContent as I } from "./index.es69.js";
|
|
6
6
|
import { Button as T } from "./index.es7.js";
|
|
7
|
-
import { ComboBoxStates as V } from "./index.
|
|
7
|
+
import { ComboBoxStates as V } from "./index.es82.js";
|
|
8
8
|
import { Typography as d } from "./index.es18.js";
|
|
9
9
|
import { cn as m } from "./index.es68.js";
|
|
10
10
|
function A({
|
package/dist/index.es29.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StepperProvider as p, StepGroup as m } from "./index.
|
|
1
|
+
import { StepperProvider as p, StepGroup as m } from "./index.es87.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
const a = ({ value: t, id: r }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(p, { steps: t, id: r }, /* @__PURE__ */ e.createElement(m, null)));
|
|
4
4
|
a.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.es68.js";
|
|
4
|
-
import { TabsVariants as T, TabTriggerVariants as u } from "./index.
|
|
4
|
+
import { TabsVariants as T, TabTriggerVariants as u } from "./index.es88.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.es61.js
CHANGED
package/dist/index.es77.js
CHANGED
|
@@ -1,25 +1,128 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
import { ChevronRight as l, Check as i, Circle as m } from "lucide-react";
|
|
4
|
+
import { cn as d } from "./index.es68.js";
|
|
5
|
+
const h = e.forwardRef(({ id: o, ...a }) => (
|
|
6
|
+
// <div id={id}>
|
|
7
|
+
/* @__PURE__ */ e.createElement(t.Root, { ...a })
|
|
8
|
+
)), E = t.Trigger, R = t.Group, D = t.Portal, M = t.Sub, c = e.forwardRef(({ className: o, inset: a, children: n, ...r }, s) => /* @__PURE__ */ e.createElement(
|
|
9
|
+
t.SubTrigger,
|
|
10
|
+
{
|
|
11
|
+
ref: s,
|
|
12
|
+
className: d(
|
|
13
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
14
|
+
a && "pl-8",
|
|
15
|
+
o
|
|
16
|
+
),
|
|
17
|
+
...r
|
|
18
|
+
},
|
|
19
|
+
n,
|
|
20
|
+
/* @__PURE__ */ e.createElement(l, { className: "w-4 h-4 ml-auto" })
|
|
21
|
+
));
|
|
22
|
+
c.displayName = t.SubTrigger.displayName;
|
|
23
|
+
const p = e.forwardRef(({ className: o, ...a }, n) => /* @__PURE__ */ e.createElement(
|
|
24
|
+
t.SubContent,
|
|
25
|
+
{
|
|
26
|
+
ref: n,
|
|
27
|
+
className: d(
|
|
28
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
29
|
+
o
|
|
30
|
+
),
|
|
31
|
+
...a
|
|
32
|
+
}
|
|
33
|
+
));
|
|
34
|
+
p.displayName = t.SubContent.displayName;
|
|
35
|
+
const u = e.forwardRef(({ className: o, sideOffset: a = 4, ...n }, r) => /* @__PURE__ */ e.createElement(t.Portal, null, /* @__PURE__ */ e.createElement(
|
|
36
|
+
t.Content,
|
|
37
|
+
{
|
|
38
|
+
ref: r,
|
|
39
|
+
sideOffset: a,
|
|
40
|
+
className: d(
|
|
41
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
42
|
+
o
|
|
43
|
+
),
|
|
44
|
+
...n
|
|
45
|
+
}
|
|
46
|
+
)));
|
|
47
|
+
u.displayName = t.Content.displayName;
|
|
48
|
+
const f = e.forwardRef(({ className: o, inset: a, ...n }, r) => /* @__PURE__ */ e.createElement(
|
|
49
|
+
t.Item,
|
|
50
|
+
{
|
|
51
|
+
ref: r,
|
|
52
|
+
className: d(
|
|
53
|
+
"relative flex select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50 cursor-pointer data-[disabled]:cursor-not-allowed",
|
|
54
|
+
a && "pl-8",
|
|
55
|
+
o
|
|
56
|
+
),
|
|
57
|
+
...n
|
|
58
|
+
}
|
|
59
|
+
));
|
|
60
|
+
f.displayName = t.Item.displayName;
|
|
61
|
+
const b = e.forwardRef(({ className: o, children: a, checked: n, ...r }, s) => /* @__PURE__ */ e.createElement(
|
|
62
|
+
t.CheckboxItem,
|
|
63
|
+
{
|
|
64
|
+
ref: s,
|
|
65
|
+
className: d(
|
|
66
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
67
|
+
o
|
|
68
|
+
),
|
|
69
|
+
checked: n,
|
|
70
|
+
disabled: !0,
|
|
71
|
+
...r
|
|
72
|
+
},
|
|
73
|
+
/* @__PURE__ */ e.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ e.createElement(t.ItemIndicator, null, /* @__PURE__ */ e.createElement(i, { className: "w-4 h-4" }))),
|
|
74
|
+
a
|
|
75
|
+
));
|
|
76
|
+
b.displayName = t.CheckboxItem.displayName;
|
|
77
|
+
const w = e.forwardRef(({ className: o, children: a, ...n }, r) => /* @__PURE__ */ e.createElement(
|
|
78
|
+
t.RadioItem,
|
|
79
|
+
{
|
|
80
|
+
ref: r,
|
|
81
|
+
className: d(
|
|
82
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
83
|
+
o
|
|
84
|
+
),
|
|
85
|
+
...n
|
|
86
|
+
},
|
|
87
|
+
/* @__PURE__ */ e.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ e.createElement(t.ItemIndicator, null, /* @__PURE__ */ e.createElement(m, { className: "w-2 h-2 fill-current" }))),
|
|
88
|
+
a
|
|
89
|
+
));
|
|
90
|
+
w.displayName = t.RadioItem.displayName;
|
|
91
|
+
const g = e.forwardRef(({ className: o, inset: a, ...n }, r) => /* @__PURE__ */ e.createElement(
|
|
92
|
+
t.Label,
|
|
93
|
+
{
|
|
94
|
+
ref: r,
|
|
95
|
+
className: d(
|
|
96
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
97
|
+
a && "pl-8",
|
|
98
|
+
o
|
|
99
|
+
),
|
|
100
|
+
...n
|
|
101
|
+
}
|
|
102
|
+
));
|
|
103
|
+
g.displayName = t.Label.displayName;
|
|
104
|
+
const N = e.forwardRef(({ className: o, ...a }, n) => /* @__PURE__ */ e.createElement(
|
|
105
|
+
t.Separator,
|
|
106
|
+
{
|
|
107
|
+
ref: n,
|
|
108
|
+
className: d("-mx-1 my-1 h-px bg-muted", o),
|
|
109
|
+
...a
|
|
20
110
|
}
|
|
21
|
-
);
|
|
111
|
+
));
|
|
112
|
+
N.displayName = t.Separator.displayName;
|
|
22
113
|
export {
|
|
23
|
-
|
|
114
|
+
h as DropdownMenu,
|
|
115
|
+
b as DropdownMenuCheckboxItem,
|
|
116
|
+
u as DropdownMenuContent,
|
|
117
|
+
R as DropdownMenuGroup,
|
|
118
|
+
f as DropdownMenuItem,
|
|
119
|
+
g as DropdownMenuLabel,
|
|
120
|
+
D as DropdownMenuPortal,
|
|
121
|
+
w as DropdownMenuRadioItem,
|
|
122
|
+
N as DropdownMenuSeparator,
|
|
123
|
+
M as DropdownMenuSub,
|
|
124
|
+
p as DropdownMenuSubContent,
|
|
125
|
+
c as DropdownMenuSubTrigger,
|
|
126
|
+
E as DropdownMenuTrigger
|
|
24
127
|
};
|
|
25
128
|
//# sourceMappingURL=index.es77.js.map
|
package/dist/index.es77.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es77.js","sources":["../src/components/atoms/textarea/textarea.styles.ts"],"sourcesContent":["import { cva } from 'class-variance-authority'\n\nexport const TextAreaVariants = cva(\n ` border flex items-center justify-between gap-1.5 relative mt-1.5 rounded-lg \n text-light-1 px-3 py-2\n file:border-0 file:bg-transparent\n placeholder:font-normal placeholder:text-light-4`,\n {\n variants: {\n isFocused: {\n true: 'border-primary-2 ring-4 ring-primary-1',\n false: 'border-light-2',\n },\n disabled: {\n true: 'bg-light-3 border-neutral-2 cursor-not-allowed',\n false: '',\n },\n },\n defaultVariants: {},\n compoundVariants: [],\n }\n)\n"],"names":["TextAreaVariants","cva"],"mappings":";AAEO,MAAMA,IAAmBC;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,IACE,UAAU;AAAA,MACR,WAAW;AAAA,QACT,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,MACA,UAAU;AAAA,QACR,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,iBAAiB,CAAC;AAAA,IAClB,kBAAkB,CAAC;AAAA,EACrB;AACF;"}
|
|
1
|
+
{"version":3,"file":"index.es77.js","sources":["../src/components/molecules/dropdown-menu/dropdown-menu-components.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\n\nimport { cn } from '@/lib/utils'\n\nconst DropdownMenu = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> & {\n id?: string\n }\n>(({ id, ...props }) => (\n // <div id={id}>\n <DropdownMenuPrimitive.Root {...props} />\n // {/* </div> */}\n))\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"w-4 h-4 ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => {\n return (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50 cursor-pointer data-[disabled]:cursor-not-allowed',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n )\n})\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n checked={checked}\n disabled\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"w-4 h-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"w-2 h-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n 'px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest opacity-60', className)}\n {...props}\n />\n )\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n}\n"],"names":["DropdownMenu","React","id","props","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuSubTrigger","className","inset","children","ref","cn","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator"],"mappings":"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"}
|
package/dist/index.es78.js
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
const p = {
|
|
2
|
+
display1: "p",
|
|
3
|
+
display2: "p",
|
|
4
|
+
display3: "p",
|
|
5
|
+
h1: "h1",
|
|
6
|
+
h2: "h2",
|
|
7
|
+
h3: "h3",
|
|
8
|
+
body1: "p",
|
|
9
|
+
body2: "p",
|
|
10
|
+
body3: "p",
|
|
11
|
+
body4: "p",
|
|
12
|
+
body5: "p",
|
|
13
|
+
body6: "p"
|
|
14
|
+
// overline1: 'p',
|
|
15
|
+
// overline2: 'p',
|
|
16
|
+
// overline3: 'p',
|
|
17
|
+
// 'cta-large': 'p',
|
|
18
|
+
// 'cta-normal': 'p',
|
|
19
|
+
// 'cta-small': 'p',
|
|
20
|
+
}, y = "body1";
|
|
11
21
|
export {
|
|
12
|
-
|
|
22
|
+
y as defaultTypographyVariant,
|
|
23
|
+
p as variantElementMap
|
|
13
24
|
};
|
|
14
25
|
//# sourceMappingURL=index.es78.js.map
|
package/dist/index.es78.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es78.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index.es78.js","sources":["../src/components/atoms/typography/typography.config.ts"],"sourcesContent":["export const variantElementMap = {\n display1: 'p',\n display2: 'p',\n display3: 'p',\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n body1: 'p',\n body2: 'p',\n body3: 'p',\n body4: 'p',\n body5: 'p',\n body6: 'p',\n // overline1: 'p',\n // overline2: 'p',\n // overline3: 'p',\n // 'cta-large': 'p',\n // 'cta-normal': 'p',\n // 'cta-small': 'p',\n}\n\nexport const defaultTypographyVariant = 'body1'\n"],"names":["variantElementMap","defaultTypographyVariant"],"mappings":"AAAO,MAAMA,IAAoB;AAAA,EAC/B,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOT,GAEaC,IAA2B;"}
|
package/dist/index.es79.js
CHANGED
|
@@ -1,128 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */ e.createElement(l, { className: "w-4 h-4 ml-auto" })
|
|
21
|
-
));
|
|
22
|
-
c.displayName = t.SubTrigger.displayName;
|
|
23
|
-
const p = e.forwardRef(({ className: o, ...a }, n) => /* @__PURE__ */ e.createElement(
|
|
24
|
-
t.SubContent,
|
|
25
|
-
{
|
|
26
|
-
ref: n,
|
|
27
|
-
className: d(
|
|
28
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
29
|
-
o
|
|
30
|
-
),
|
|
31
|
-
...a
|
|
32
|
-
}
|
|
33
|
-
));
|
|
34
|
-
p.displayName = t.SubContent.displayName;
|
|
35
|
-
const u = e.forwardRef(({ className: o, sideOffset: a = 4, ...n }, r) => /* @__PURE__ */ e.createElement(t.Portal, null, /* @__PURE__ */ e.createElement(
|
|
36
|
-
t.Content,
|
|
37
|
-
{
|
|
38
|
-
ref: r,
|
|
39
|
-
sideOffset: a,
|
|
40
|
-
className: d(
|
|
41
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
42
|
-
o
|
|
43
|
-
),
|
|
44
|
-
...n
|
|
45
|
-
}
|
|
46
|
-
)));
|
|
47
|
-
u.displayName = t.Content.displayName;
|
|
48
|
-
const f = e.forwardRef(({ className: o, inset: a, ...n }, r) => /* @__PURE__ */ e.createElement(
|
|
49
|
-
t.Item,
|
|
50
|
-
{
|
|
51
|
-
ref: r,
|
|
52
|
-
className: d(
|
|
53
|
-
"relative flex select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50 cursor-pointer data-[disabled]:cursor-not-allowed",
|
|
54
|
-
a && "pl-8",
|
|
55
|
-
o
|
|
56
|
-
),
|
|
57
|
-
...n
|
|
58
|
-
}
|
|
59
|
-
));
|
|
60
|
-
f.displayName = t.Item.displayName;
|
|
61
|
-
const b = e.forwardRef(({ className: o, children: a, checked: n, ...r }, s) => /* @__PURE__ */ e.createElement(
|
|
62
|
-
t.CheckboxItem,
|
|
63
|
-
{
|
|
64
|
-
ref: s,
|
|
65
|
-
className: d(
|
|
66
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
67
|
-
o
|
|
68
|
-
),
|
|
69
|
-
checked: n,
|
|
70
|
-
disabled: !0,
|
|
71
|
-
...r
|
|
72
|
-
},
|
|
73
|
-
/* @__PURE__ */ e.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ e.createElement(t.ItemIndicator, null, /* @__PURE__ */ e.createElement(i, { className: "w-4 h-4" }))),
|
|
74
|
-
a
|
|
75
|
-
));
|
|
76
|
-
b.displayName = t.CheckboxItem.displayName;
|
|
77
|
-
const w = e.forwardRef(({ className: o, children: a, ...n }, r) => /* @__PURE__ */ e.createElement(
|
|
78
|
-
t.RadioItem,
|
|
79
|
-
{
|
|
80
|
-
ref: r,
|
|
81
|
-
className: d(
|
|
82
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
83
|
-
o
|
|
84
|
-
),
|
|
85
|
-
...n
|
|
86
|
-
},
|
|
87
|
-
/* @__PURE__ */ e.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ e.createElement(t.ItemIndicator, null, /* @__PURE__ */ e.createElement(m, { className: "w-2 h-2 fill-current" }))),
|
|
88
|
-
a
|
|
89
|
-
));
|
|
90
|
-
w.displayName = t.RadioItem.displayName;
|
|
91
|
-
const g = e.forwardRef(({ className: o, inset: a, ...n }, r) => /* @__PURE__ */ e.createElement(
|
|
92
|
-
t.Label,
|
|
93
|
-
{
|
|
94
|
-
ref: r,
|
|
95
|
-
className: d(
|
|
96
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
97
|
-
a && "pl-8",
|
|
98
|
-
o
|
|
99
|
-
),
|
|
100
|
-
...n
|
|
101
|
-
}
|
|
102
|
-
));
|
|
103
|
-
g.displayName = t.Label.displayName;
|
|
104
|
-
const N = e.forwardRef(({ className: o, ...a }, n) => /* @__PURE__ */ e.createElement(
|
|
105
|
-
t.Separator,
|
|
106
|
-
{
|
|
107
|
-
ref: n,
|
|
108
|
-
className: d("-mx-1 my-1 h-px bg-muted", o),
|
|
109
|
-
...a
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const t = r(
|
|
3
|
+
` border flex items-center justify-between gap-1.5 relative mt-1.5 rounded-lg
|
|
4
|
+
text-light-1 px-3 py-2
|
|
5
|
+
file:border-0 file:bg-transparent
|
|
6
|
+
placeholder:font-normal placeholder:text-light-4`,
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
isFocused: {
|
|
10
|
+
true: "border-primary-2 ring-4 ring-primary-1",
|
|
11
|
+
false: "border-light-2"
|
|
12
|
+
},
|
|
13
|
+
disabled: {
|
|
14
|
+
true: "bg-light-3 border-neutral-2 cursor-not-allowed",
|
|
15
|
+
false: ""
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {},
|
|
19
|
+
compoundVariants: []
|
|
110
20
|
}
|
|
111
|
-
)
|
|
112
|
-
N.displayName = t.Separator.displayName;
|
|
21
|
+
);
|
|
113
22
|
export {
|
|
114
|
-
|
|
115
|
-
b as DropdownMenuCheckboxItem,
|
|
116
|
-
u as DropdownMenuContent,
|
|
117
|
-
R as DropdownMenuGroup,
|
|
118
|
-
f as DropdownMenuItem,
|
|
119
|
-
g as DropdownMenuLabel,
|
|
120
|
-
D as DropdownMenuPortal,
|
|
121
|
-
w as DropdownMenuRadioItem,
|
|
122
|
-
N as DropdownMenuSeparator,
|
|
123
|
-
M as DropdownMenuSub,
|
|
124
|
-
p as DropdownMenuSubContent,
|
|
125
|
-
c as DropdownMenuSubTrigger,
|
|
126
|
-
E as DropdownMenuTrigger
|
|
23
|
+
t as TextAreaVariants
|
|
127
24
|
};
|
|
128
25
|
//# sourceMappingURL=index.es79.js.map
|
package/dist/index.es79.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es79.js","sources":["../src/components/molecules/dropdown-menu/dropdown-menu-components.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\n\nimport { cn } from '@/lib/utils'\n\nconst DropdownMenu = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> & {\n id?: string\n }\n>(({ id, ...props }) => (\n // <div id={id}>\n <DropdownMenuPrimitive.Root {...props} />\n // {/* </div> */}\n))\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"w-4 h-4 ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => {\n return (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50 cursor-pointer data-[disabled]:cursor-not-allowed',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n )\n})\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n checked={checked}\n disabled\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"w-4 h-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"w-2 h-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n 'px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest opacity-60', className)}\n {...props}\n />\n )\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n}\n"],"names":["DropdownMenu","React","id","props","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuSubTrigger","className","inset","children","ref","cn","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.es79.js","sources":["../src/components/atoms/textarea/textarea.styles.ts"],"sourcesContent":["import { cva } from 'class-variance-authority'\n\nexport const TextAreaVariants = cva(\n ` border flex items-center justify-between gap-1.5 relative mt-1.5 rounded-lg \n text-light-1 px-3 py-2\n file:border-0 file:bg-transparent\n placeholder:font-normal placeholder:text-light-4`,\n {\n variants: {\n isFocused: {\n true: 'border-primary-2 ring-4 ring-primary-1',\n false: 'border-light-2',\n },\n disabled: {\n true: 'bg-light-3 border-neutral-2 cursor-not-allowed',\n false: '',\n },\n },\n defaultVariants: {},\n compoundVariants: [],\n }\n)\n"],"names":["TextAreaVariants","cva"],"mappings":";AAEO,MAAMA,IAAmBC;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,IACE,UAAU;AAAA,MACR,WAAW;AAAA,QACT,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,MACA,UAAU;AAAA,QACR,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,iBAAiB,CAAC;AAAA,IAClB,kBAAkB,CAAC;AAAA,EACrB;AACF;"}
|
package/dist/index.es80.js
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const i = r(
|
|
3
|
+
"relative h-2 w-full overflow-hidden rounded bg-primary-2 min-w-64 ",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {}
|
|
6
7
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
compoundVariants: [
|
|
13
|
-
// {
|
|
14
|
-
// isOpen: true,
|
|
15
|
-
// isValue: true,
|
|
16
|
-
// className: 'border-primary-2',
|
|
17
|
-
// },
|
|
18
|
-
{
|
|
19
|
-
isOpen: !1,
|
|
20
|
-
isValue: !0,
|
|
21
|
-
className: "border-neutral-2"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
});
|
|
8
|
+
defaultVariants: {}
|
|
9
|
+
}
|
|
10
|
+
);
|
|
25
11
|
export {
|
|
26
|
-
|
|
12
|
+
i as ProgressVariants
|
|
27
13
|
};
|
|
28
14
|
//# sourceMappingURL=index.es80.js.map
|
package/dist/index.es80.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es80.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es80.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;"}
|
package/dist/index.es81.js
CHANGED
|
@@ -1,48 +1,17 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const
|
|
3
|
-
"relative rounded-xl flex flex-row h-full items-start gap-2 border px-4 py-4 text-sm ",
|
|
4
|
-
{
|
|
5
|
-
variants: {
|
|
6
|
-
variant: {
|
|
7
|
-
info: " text-text4 dark:border-danger [&>svg]:text-danger bg-info-1",
|
|
8
|
-
success: "text-text4 dark:border-danger [&>svg]:text-danger bg-success-1",
|
|
9
|
-
warning: "text-text4 dark:border-danger [&>svg]:text-danger bg-warning-1 ",
|
|
10
|
-
error: " text-text4 dark:border-danger [&>svg]:text-danger bg-danger-1",
|
|
11
|
-
default: "text-text4 bg-background text-foreground"
|
|
12
|
-
},
|
|
13
|
-
shortContent: {
|
|
14
|
-
true: "items-center flex flex-row gap-3",
|
|
15
|
-
false: ""
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
variant: "info"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
), a = t("", {
|
|
23
|
-
variants: {
|
|
24
|
-
shortContent: {
|
|
25
|
-
true: "justify-between w-full items-center flex flex-row gap-3",
|
|
26
|
-
false: "flex flex-col gap-2 justify-start items-start"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
shortContent: !1
|
|
31
|
-
}
|
|
32
|
-
}), n = t(" max-w-[fit-content] ", {
|
|
1
|
+
import { cva as s } from "class-variance-authority";
|
|
2
|
+
const o = s("", {
|
|
33
3
|
variants: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
4
|
+
bgColor: {
|
|
5
|
+
success: "bg-success-2",
|
|
6
|
+
danger: "bg-danger-2",
|
|
7
|
+
stroke: "bg-light-4"
|
|
37
8
|
}
|
|
38
9
|
},
|
|
39
10
|
defaultVariants: {
|
|
40
|
-
|
|
11
|
+
bgColor: "success"
|
|
41
12
|
}
|
|
42
13
|
});
|
|
43
14
|
export {
|
|
44
|
-
|
|
45
|
-
a as AlertContentVariants,
|
|
46
|
-
r as AlertVariants
|
|
15
|
+
o as SliderBgColorVariants
|
|
47
16
|
};
|
|
48
17
|
//# sourceMappingURL=index.es81.js.map
|
package/dist/index.es81.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es81.js","sources":["../src/components/molecules/
|
|
1
|
+
{"version":3,"file":"index.es81.js","sources":["../src/components/molecules/range-slider/range-slider.styles.ts"],"sourcesContent":["import { cva } from 'class-variance-authority'\n\nexport const SliderBgColorVariants = cva('', {\n variants: {\n bgColor: {\n success: 'bg-success-2',\n danger: 'bg-danger-2',\n stroke: 'bg-light-4',\n },\n },\n defaultVariants: {\n bgColor: 'success',\n },\n})\n"],"names":["SliderBgColorVariants","cva"],"mappings":";AAEa,MAAAA,IAAwBC,EAAI,IAAI;AAAA,EAC3C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;"}
|
package/dist/index.es82.js
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
|
-
import { cva as
|
|
2
|
-
const
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const e = t("w-full", {
|
|
3
3
|
variants: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
isOpen: {
|
|
5
|
+
true: "ring-4 ring-primary-1 border-primary-2 text-light-1"
|
|
6
|
+
},
|
|
7
|
+
isValue: {
|
|
8
|
+
true: "text-light-1",
|
|
9
|
+
false: "text-light-4"
|
|
8
10
|
}
|
|
9
11
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
compoundVariants: [
|
|
13
|
+
// {
|
|
14
|
+
// isOpen: true,
|
|
15
|
+
// isValue: true,
|
|
16
|
+
// className: 'border-primary-2',
|
|
17
|
+
// },
|
|
18
|
+
{
|
|
19
|
+
isOpen: !1,
|
|
20
|
+
isValue: !0,
|
|
21
|
+
className: "border-neutral-2"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
13
24
|
});
|
|
14
25
|
export {
|
|
15
|
-
|
|
26
|
+
e as ComboBoxStates
|
|
16
27
|
};
|
|
17
28
|
//# sourceMappingURL=index.es82.js.map
|
package/dist/index.es82.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es82.js","sources":["../src/components/molecules/
|
|
1
|
+
{"version":3,"file":"index.es82.js","sources":["../src/components/molecules/single-combobox/single-combobox.styles.ts"],"sourcesContent":["import { cva } from 'class-variance-authority'\n\nexport const ComboBoxStates = cva('w-full', {\n variants: {\n isOpen: {\n true: 'ring-4 ring-primary-1 border-primary-2 text-light-1',\n },\n isValue: {\n true: 'text-light-1',\n false: 'text-light-4',\n },\n },\n compoundVariants: [\n // {\n // isOpen: true,\n // isValue: true,\n // className: 'border-primary-2',\n // },\n {\n isOpen: false,\n isValue: true,\n className: 'border-neutral-2',\n },\n ],\n})\n"],"names":["ComboBoxStates","cva"],"mappings":";AAEa,MAAAA,IAAiBC,EAAI,UAAU;AAAA,EAC1C,UAAU;AAAA,IACR,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMhB;AAAA,MACE,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,WAAW;AAAA,IACb;AAAA,EACF;AACF,CAAC;"}
|
package/dist/index.es85.js
CHANGED
|
@@ -1,25 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const r = t(
|
|
3
|
+
"relative rounded-xl flex flex-row h-full items-start gap-2 border px-4 py-4 text-sm ",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
info: " text-text4 dark:border-danger [&>svg]:text-danger bg-info-1",
|
|
8
|
+
success: "text-text4 dark:border-danger [&>svg]:text-danger bg-success-1",
|
|
9
|
+
warning: "text-text4 dark:border-danger [&>svg]:text-danger bg-warning-1 ",
|
|
10
|
+
error: " text-text4 dark:border-danger [&>svg]:text-danger bg-danger-1",
|
|
11
|
+
default: "text-text4 bg-background text-foreground"
|
|
12
|
+
},
|
|
13
|
+
shortContent: {
|
|
14
|
+
true: "items-center flex flex-row gap-3",
|
|
15
|
+
false: ""
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: "info"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
), a = t("", {
|
|
23
|
+
variants: {
|
|
24
|
+
shortContent: {
|
|
25
|
+
true: "justify-between w-full items-center flex flex-row gap-3",
|
|
26
|
+
false: "flex flex-col gap-2 justify-start items-start"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
shortContent: !1
|
|
31
|
+
}
|
|
32
|
+
}), n = t(" max-w-[fit-content] ", {
|
|
33
|
+
variants: {
|
|
34
|
+
shortContent: {
|
|
35
|
+
true: "bg-rest-s1",
|
|
36
|
+
false: "bg-rest-s1"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
shortContent: !1
|
|
41
|
+
}
|
|
42
|
+
});
|
|
21
43
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
44
|
+
n as AlertButtonVariants,
|
|
45
|
+
a as AlertContentVariants,
|
|
46
|
+
r as AlertVariants
|
|
24
47
|
};
|
|
25
48
|
//# sourceMappingURL=index.es85.js.map
|
package/dist/index.es85.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es85.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es85.js","sources":["../src/components/molecules/alert/alert.styles.ts"],"sourcesContent":["import { cva } from 'class-variance-authority'\n\nexport const AlertVariants = cva(\n 'relative rounded-xl flex flex-row h-full items-start gap-2 border px-4 py-4 text-sm ',\n {\n variants: {\n variant: {\n info: ' text-text4 dark:border-danger [&>svg]:text-danger bg-info-1',\n success:\n 'text-text4 dark:border-danger [&>svg]:text-danger bg-success-1',\n warning:\n 'text-text4 dark:border-danger [&>svg]:text-danger bg-warning-1 ',\n error:\n ' text-text4 dark:border-danger [&>svg]:text-danger bg-danger-1',\n default: 'text-text4 bg-background text-foreground',\n },\n shortContent: {\n true: 'items-center flex flex-row gap-3',\n false: '',\n },\n },\n defaultVariants: {\n variant: 'info',\n },\n }\n)\n\nexport const AlertContentVariants = cva('', {\n variants: {\n shortContent: {\n true: 'justify-between w-full items-center flex flex-row gap-3',\n false: 'flex flex-col gap-2 justify-start items-start',\n },\n },\n defaultVariants: {\n shortContent: false,\n },\n})\n\nexport const AlertButtonVariants = cva(' max-w-[fit-content] ', {\n variants: {\n shortContent: {\n true: 'bg-rest-s1',\n false: 'bg-rest-s1',\n },\n },\n defaultVariants: {\n shortContent: false,\n },\n})\n"],"names":["AlertVariants","cva","AlertContentVariants","AlertButtonVariants"],"mappings":";AAEO,MAAMA,IAAgBC;AAAA,EAC3B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,MAAM;AAAA,QACN,SACE;AAAA,QACF,SACE;AAAA,QACF,OACE;AAAA,QACF,SAAS;AAAA,MACX;AAAA,MACA,cAAc;AAAA,QACZ,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEaC,IAAuBD,EAAI,IAAI;AAAA,EAC1C,UAAU;AAAA,IACR,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,cAAc;AAAA,EAChB;AACF,CAAC,GAEYE,IAAsBF,EAAI,yBAAyB;AAAA,EAC9D,UAAU;AAAA,IACR,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,cAAc;AAAA,EAChB;AACF,CAAC;"}
|
package/dist/index.es87.js
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import e, { createContext as l, forwardRef as o, useContext as s } from "react";
|
|
2
|
+
import { StepItemStatus as n } from "./index.es28.js";
|
|
3
|
+
import { Typography as i } from "./index.es18.js";
|
|
4
|
+
import { cn as p } from "./index.es68.js";
|
|
5
|
+
import { StepItemVariants as u } from "./index.es91.js";
|
|
6
|
+
const m = l(null), h = o(
|
|
7
|
+
({ children: a, steps: t, id: r }, c) => /* @__PURE__ */ e.createElement(m.Provider, { value: t }, /* @__PURE__ */ e.createElement("div", { className: "w-[100%]", ref: c, id: r }, a))
|
|
8
|
+
), w = () => {
|
|
9
|
+
const a = s(m);
|
|
10
|
+
return /* @__PURE__ */ e.createElement("div", { className: "flex justify-between items-center w-[100%]" }, a?.map((t, r) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
11
|
+
E,
|
|
12
|
+
{
|
|
13
|
+
key: r,
|
|
14
|
+
value: t,
|
|
15
|
+
variant: t?.status ?? n.PENDING
|
|
16
|
+
}
|
|
17
|
+
), r !== a.length - 1 && /* @__PURE__ */ e.createElement(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: ` w-5 grow border-b-2 ${t?.status == n.COMPLETED ? "border-primary-2" : "border-neutral-2"}`
|
|
18
21
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
variant: {
|
|
29
|
-
primary: "rounded-lg data-[state=active]:bg-rest-s1 data-[state=active]:text-primary-1 data-[state=active]:border data-[state=active]:border-neutral-1 data-[state=active]:font-semibold data-[state=active]:shadow-sm ",
|
|
30
|
-
secondary: "data-[state=active]:bg-background data-[state=active]:text-primary-1 data-[state=active]:font-semibold data-[state=active]:border-b-2 data-[state=active]:border-primary-2 "
|
|
31
|
-
}
|
|
22
|
+
))));
|
|
23
|
+
}, E = ({ value: a, ...t }) => {
|
|
24
|
+
const { variant: r } = t;
|
|
25
|
+
return /* @__PURE__ */ e.createElement("div", { className: p(u({ variant: r })) }, r !== n.COMPLETED ? /* @__PURE__ */ e.createElement(
|
|
26
|
+
i,
|
|
27
|
+
{
|
|
28
|
+
variant: "body4",
|
|
29
|
+
style: { textAlign: "center", height: "max-content" }
|
|
32
30
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
a?.label
|
|
32
|
+
) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
33
|
+
"img",
|
|
34
|
+
{
|
|
35
|
+
src: "https://frontend-static-files.geoiq.io/strapi/check_white_e0c342eeb9.svg",
|
|
36
|
+
alt: "check-mark-icon"
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
))));
|
|
39
|
+
};
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
w as StepGroup,
|
|
42
|
+
m as StepperContext,
|
|
43
|
+
h as StepperProvider
|
|
42
44
|
};
|
|
43
45
|
//# sourceMappingURL=index.es87.js.map
|
package/dist/index.es87.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es87.js","sources":["../src/components/molecules/
|
|
1
|
+
{"version":3,"file":"index.es87.js","sources":["../src/components/molecules/stepper/stepper-components.tsx"],"sourcesContent":["import React, {\n PropsWithChildren,\n createContext,\n forwardRef,\n useContext,\n} from 'react'\nimport { StepItemStatus, StepperItemProps, StepperValue } from './stepper.type'\nimport { Typography } from '../../atoms/typography'\nimport { cn } from '@/lib/utils'\nimport { StepItemVariants } from './stepper.styles'\n\ninterface StepperProviderProps extends PropsWithChildren {\n steps: StepperValue[] // Add a steps prop to pass the steps array\n id?: string\n}\n\nconst StepperContext = createContext<StepperValue[] | null>(null) // Context will hold an array of strings\n\nconst StepperProvider = forwardRef<HTMLDivElement, StepperProviderProps>(\n ({ children, steps, id }, ref) => {\n return (\n <StepperContext.Provider value={steps}>\n <div className={'w-[100%]'} ref={ref} id={id}>\n {children}\n </div>\n </StepperContext.Provider>\n )\n }\n)\n\nconst StepGroup = () => {\n const steps = useContext(StepperContext) // Accessing the steps array from context\n\n return (\n <div className=\"flex justify-between items-center w-[100%]\">\n {steps?.map((step, index) => (\n <>\n <StepItem\n key={index}\n value={step}\n variant={step?.status ?? StepItemStatus.PENDING}\n />\n {index !== steps.length - 1 && (\n <div\n className={` w-5 grow border-b-2 ${step?.status == StepItemStatus.COMPLETED ? 'border-primary-2' : 'border-neutral-2'}`}\n />\n )}\n </>\n ))}\n </div>\n )\n}\n\n// individual step item and styles\nconst StepItem = ({ value, ...props }: StepperItemProps) => {\n const { variant } = props\n return (\n <div className={cn(StepItemVariants({ variant }))}>\n {variant !== StepItemStatus.COMPLETED ? (\n <Typography\n variant={'body4'}\n style={{ textAlign: 'center', height: 'max-content' }}\n >\n {value?.label}\n </Typography>\n ) : (\n <>\n <div>\n <img\n src=\"https://frontend-static-files.geoiq.io/strapi/check_white_e0c342eeb9.svg\"\n alt=\"check-mark-icon\"\n />\n </div>\n </>\n )}\n </div>\n )\n}\n\nexport { StepperProvider, StepperContext, StepGroup }\n"],"names":["StepperContext","createContext","StepperProvider","forwardRef","children","steps","id","ref","React","StepGroup","useContext","step","index","StepItem","StepItemStatus","value","props","variant","cn","StepItemVariants","Typography"],"mappings":";;;;;AAgBM,MAAAA,IAAiBC,EAAqC,IAAI,GAE1DC,IAAkBC;AAAA,EACtB,CAAC,EAAE,UAAAC,GAAU,OAAAC,GAAO,IAAAC,EAAA,GAAMC,MAErBC,gBAAAA,EAAA,cAAAR,EAAe,UAAf,EAAwB,OAAOK,EAAA,GAC7BG,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAW,YAAY,KAAAD,GAAU,IAAAD,EAAA,GACnCF,CACH,CACF;AAGN,GAEMK,IAAY,MAAM;AAChB,QAAAJ,IAAQK,EAAWV,CAAc;AAGrC,SAAAQ,gBAAAA,EAAA,cAAC,SAAI,WAAU,6CAAA,GACZH,GAAO,IAAI,CAACM,GAAMC,MAEfJ,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAA,gBAAAA,EAAA;AAAA,IAACK;AAAA,IAAA;AAAA,MACC,KAAKD;AAAA,MACL,OAAOD;AAAA,MACP,SAASA,GAAM,UAAUG,EAAe;AAAA,IAAA;AAAA,EAEzC,GAAAF,MAAUP,EAAM,SAAS,KACxBG,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,wBAAwBG,GAAM,UAAUG,EAAe,YAAY,qBAAqB,kBAAkB;AAAA,IAAA;AAAA,EAG3H,CAAA,CACD,CACH;AAEJ,GAGMD,IAAW,CAAC,EAAE,OAAAE,GAAO,GAAGC,QAA8B;AACpD,QAAA,EAAE,SAAAC,EAAY,IAAAD;AACpB,SACGR,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWU,EAAGC,EAAiB,EAAE,SAAAF,EAAS,CAAA,CAAC,EAAA,GAC7CA,MAAYH,EAAe,YAC1BN,gBAAAA,EAAA;AAAA,IAACY;AAAA,IAAA;AAAA,MACC,SAAS;AAAA,MACT,OAAO,EAAE,WAAW,UAAU,QAAQ,cAAc;AAAA,IAAA;AAAA,IAEnDL,GAAO;AAAA,EACV,IAGEP,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAA,gBAAAA,EAAA,cAAC,OACC,MAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAI;AAAA,MACJ,KAAI;AAAA,IAAA;AAAA,EAER,CAAA,CACF,CAEJ;AAEJ;"}
|
package/dist/index.es88.js
CHANGED
|
@@ -1,45 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"div",
|
|
19
|
-
{
|
|
20
|
-
className: ` w-5 grow border-b-2 ${t?.status == n.COMPLETED ? "border-primary-2" : "border-neutral-2"}`
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const e = t(
|
|
3
|
+
"inline-flex items-center justify-evenly p-1 text-muted-foreground",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
primary: "bg-light-3 border rounded-xl border-neutral-1",
|
|
8
|
+
secondary: "bg-background "
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
sm: "h-10 rounded-xl ",
|
|
12
|
+
md: "h-12 rounded-xl "
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "primary",
|
|
17
|
+
size: "md"
|
|
21
18
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
}
|
|
20
|
+
), i = t(
|
|
21
|
+
"inline-flex w-full items-center justify-center whitespace-nowrap text-sm text-light-2 font-medium disabled:pointer-events-none disabled:opacity-50 ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ",
|
|
22
|
+
{
|
|
23
|
+
variants: {
|
|
24
|
+
size: {
|
|
25
|
+
sm: "h-8 text-[14px] p-1.5 ",
|
|
26
|
+
md: "h-10 text-[16px] p-2 "
|
|
27
|
+
},
|
|
28
|
+
variant: {
|
|
29
|
+
primary: "rounded-lg data-[state=active]:bg-rest-s1 data-[state=active]:text-primary-1 data-[state=active]:border data-[state=active]:border-neutral-1 data-[state=active]:font-semibold data-[state=active]:shadow-sm ",
|
|
30
|
+
secondary: "data-[state=active]:bg-background data-[state=active]:text-primary-1 data-[state=active]:font-semibold data-[state=active]:border-b-2 data-[state=active]:border-primary-2 "
|
|
31
|
+
}
|
|
30
32
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
src: "https://frontend-static-files.geoiq.io/strapi/check_white_e0c342eeb9.svg",
|
|
36
|
-
alt: "check-mark-icon"
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "primary",
|
|
35
|
+
size: "md"
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
}
|
|
38
|
+
);
|
|
40
39
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
h as StepperProvider
|
|
40
|
+
i as TabTriggerVariants,
|
|
41
|
+
e as TabsVariants
|
|
44
42
|
};
|
|
45
43
|
//# sourceMappingURL=index.es88.js.map
|
package/dist/index.es88.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es88.js","sources":["../src/components/molecules/
|
|
1
|
+
{"version":3,"file":"index.es88.js","sources":["../src/components/molecules/tabs/tabs.styles.ts"],"sourcesContent":["import { cva } from 'class-variance-authority'\n\nexport const TabsVariants = cva(\n 'inline-flex items-center justify-evenly p-1 text-muted-foreground',\n {\n variants: {\n variant: {\n primary: 'bg-light-3 border rounded-xl border-neutral-1',\n secondary: 'bg-background ',\n },\n size: {\n sm: 'h-10 rounded-xl ',\n md: 'h-12 rounded-xl ',\n },\n },\n defaultVariants: {\n variant: 'primary',\n size: 'md',\n },\n }\n)\n\nexport const TabTriggerVariants = cva(\n 'inline-flex w-full items-center justify-center whitespace-nowrap text-sm text-light-2 font-medium disabled:pointer-events-none disabled:opacity-50 ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ',\n {\n variants: {\n size: {\n sm: 'h-8 text-[14px] p-1.5 ',\n md: 'h-10 text-[16px] p-2 ',\n },\n variant: {\n primary:\n 'rounded-lg data-[state=active]:bg-rest-s1 data-[state=active]:text-primary-1 data-[state=active]:border data-[state=active]:border-neutral-1 data-[state=active]:font-semibold data-[state=active]:shadow-sm ',\n secondary:\n 'data-[state=active]:bg-background data-[state=active]:text-primary-1 data-[state=active]:font-semibold data-[state=active]:border-b-2 data-[state=active]:border-primary-2 ',\n },\n },\n defaultVariants: {\n variant: 'primary',\n size: 'md',\n },\n }\n)\n"],"names":["TabsVariants","cva","TabTriggerVariants"],"mappings":";AAEO,MAAMA,IAAeC;AAAA,EAC1B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,WAAW;AAAA,MACb;AAAA,MACA,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF,GAEaC,IAAqBD;AAAA,EAChC;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,MACA,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;"}
|
package/dist/index.es9.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { cn as p } from "./index.es68.js";
|
|
3
|
-
import { InputVariants as
|
|
4
|
-
import { Typography as
|
|
3
|
+
import { InputVariants as g } from "./index.es76.js";
|
|
4
|
+
import { Typography as E } from "./index.es18.js";
|
|
5
5
|
import { XCircle as N } from "lucide-react";
|
|
6
6
|
const b = e.forwardRef(
|
|
7
7
|
({ className: i, type: m, isError: r, message: l, prefix: c, suffix: s, id: u, ...t }, d) => {
|
|
@@ -12,7 +12,7 @@ const b = e.forwardRef(
|
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
14
|
className: p(
|
|
15
|
-
|
|
15
|
+
g({
|
|
16
16
|
isError: r,
|
|
17
17
|
isFocused: a,
|
|
18
18
|
disabled: t.disabled,
|
|
@@ -62,11 +62,11 @@ const b = e.forwardRef(
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
/* @__PURE__ */ e.createElement(N, { size: 16, className: "stroke-
|
|
65
|
+
/* @__PURE__ */ e.createElement(N, { size: 16, className: "stroke-light-2" })
|
|
66
66
|
)
|
|
67
67
|
)
|
|
68
68
|
), l && /* @__PURE__ */ e.createElement(
|
|
69
|
-
|
|
69
|
+
E,
|
|
70
70
|
{
|
|
71
71
|
variant: "body2",
|
|
72
72
|
className: `${r ? "text-danger-1" : "text-light-3"} mt-1.5`
|
package/dist/index.es9.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es9.js","sources":["../src/components/atoms/input/input.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { InputProps } from './input.types'\nimport { InputVariants } from './input.styles'\nimport { Typography } from '../typography'\nimport { XCircle } from 'lucide-react'\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n { className, type, isError, message, prefix, suffix, id, ...props },\n ref\n ) => {\n const innerRef = React.useRef<HTMLInputElement>(null)\n const inputRef = (ref as React.RefObject<HTMLInputElement>) || innerRef\n const [isFocused, setIsFocused] = React.useState(false)\n\n React.useEffect(() => {\n if (isFocused) {\n inputRef.current?.focus()\n }\n }, [isFocused])\n return (\n <>\n <div\n className={cn(\n InputVariants({\n isError,\n isFocused,\n disabled: props.disabled,\n className,\n })\n )}\n id={id}\n >\n {prefix && (\n <div\n onClick={() => {\n setIsFocused(true)\n }}\n >\n {prefix}\n </div>\n )}\n\n <input\n type={type}\n className={`outline-0 w-full h-full disabled:bg-transparent disabled:cursor-not-allowed`}\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n ref={inputRef}\n {...props}\n ></input>\n\n <div\n className=\"flex items-center cursor-pointer\"\n onClick={() => {\n if (suffix) {\n setIsFocused(true)\n return\n }\n }}\n >\n {suffix ?? (\n <div\n className={!isFocused ? 'opacity-0' : ''}\n onClick={() => {\n if (props.onChange)\n props.onChange({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>)\n }}\n >\n <XCircle size={16} className=\"stroke-
|
|
1
|
+
{"version":3,"file":"index.es9.js","sources":["../src/components/atoms/input/input.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { InputProps } from './input.types'\nimport { InputVariants } from './input.styles'\nimport { Typography } from '../typography'\nimport { XCircle } from 'lucide-react'\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n { className, type, isError, message, prefix, suffix, id, ...props },\n ref\n ) => {\n const innerRef = React.useRef<HTMLInputElement>(null)\n const inputRef = (ref as React.RefObject<HTMLInputElement>) || innerRef\n const [isFocused, setIsFocused] = React.useState(false)\n\n React.useEffect(() => {\n if (isFocused) {\n inputRef.current?.focus()\n }\n }, [isFocused])\n return (\n <>\n <div\n className={cn(\n InputVariants({\n isError,\n isFocused,\n disabled: props.disabled,\n className,\n })\n )}\n id={id}\n >\n {prefix && (\n <div\n onClick={() => {\n setIsFocused(true)\n }}\n >\n {prefix}\n </div>\n )}\n\n <input\n type={type}\n className={`outline-0 w-full h-full disabled:bg-transparent disabled:cursor-not-allowed`}\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n ref={inputRef}\n {...props}\n ></input>\n\n <div\n className=\"flex items-center cursor-pointer\"\n onClick={() => {\n if (suffix) {\n setIsFocused(true)\n return\n }\n }}\n >\n {suffix ?? (\n <div\n className={!isFocused ? 'opacity-0' : ''}\n onClick={() => {\n if (props.onChange)\n props.onChange({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>)\n }}\n >\n <XCircle size={16} className=\"stroke-light-2\" />\n </div>\n )}\n </div>\n </div>\n\n {message && (\n <Typography\n variant={'body2'}\n className={`${isError ? 'text-danger-1' : 'text-light-3'} mt-1.5`}\n >\n {message}\n </Typography>\n )}\n </>\n )\n }\n)\nInput.displayName = 'Input'\n\nexport { Input }\n"],"names":["Input","React","className","type","isError","message","prefix","suffix","id","props","ref","innerRef","inputRef","isFocused","setIsFocused","cn","InputVariants","XCircle","Typography"],"mappings":";;;;;AAQA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CACE,EAAE,WAAAC,GAAW,MAAAC,GAAM,SAAAC,GAAS,SAAAC,GAAS,QAAAC,GAAQ,QAAAC,GAAQ,IAAAC,GAAI,GAAGC,EAAM,GAClEC,MACG;AACG,UAAAC,IAAWV,EAAM,OAAyB,IAAI,GAC9CW,IAAYF,KAA6CC,GACzD,CAACE,GAAWC,CAAY,IAAIb,EAAM,SAAS,EAAK;AAEtD,WAAAA,EAAM,UAAU,MAAM;AACpB,MAAIY,KACFD,EAAS,SAAS;IACpB,GACC,CAACC,CAAS,CAAC,GAGV,gBAAAZ,EAAA,cAAAA,EAAA,UAAA,MAAA,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWc;AAAA,UACTC,EAAc;AAAA,YACZ,SAAAZ;AAAA,YACA,WAAAS;AAAA,YACA,UAAUJ,EAAM;AAAA,YAChB,WAAAP;AAAA,UAAA,CACD;AAAA,QACH;AAAA,QACA,IAAAM;AAAA,MAAA;AAAA,MAECF,KACC,gBAAAL,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,SAAS,MAAM;AACb,YAAAa,EAAa,EAAI;AAAA,UACnB;AAAA,QAAA;AAAA,QAECR;AAAA,MACH;AAAA,MAGF,gBAAAL,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAAE;AAAA,UACA,WAAW;AAAA,UACX,SAAS,MAAMW,EAAa,EAAI;AAAA,UAChC,QAAQ,MAAMA,EAAa,EAAK;AAAA,UAChC,KAAKF;AAAA,UACJ,GAAGH;AAAA,QAAA;AAAA,MACL;AAAA,MAED,gBAAAR,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAS,MAAM;AACb,gBAAIM,GAAQ;AACV,cAAAO,EAAa,EAAI;AACjB;AAAA,YACF;AAAA,UACF;AAAA,QAAA;AAAA,QAECP,KACC,gBAAAN,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAYY,IAA0B,KAAd;AAAA,YACxB,SAAS,MAAM;AACb,cAAIJ,EAAM,YACRA,EAAM,SAAS;AAAA,gBACb,QAAQ,EAAE,OAAO,GAAG;AAAA,cAAA,CACkB;AAAA,YAC5C;AAAA,UAAA;AAAA,UAEC,gBAAAR,EAAA,cAAAgB,GAAA,EAAQ,MAAM,IAAI,WAAU,kBAAiB;AAAA,QAChD;AAAA,MAEJ;AAAA,IAAA,GAGDZ,KACC,gBAAAJ,EAAA;AAAA,MAACiB;AAAA,MAAA;AAAA,QACC,SAAS;AAAA,QACT,WAAW,GAAGd,IAAU,kBAAkB,cAAc;AAAA,MAAA;AAAA,MAEvDC;AAAA,IAAA,CAGP;AAAA,EAEJ;AACF;AACAL,EAAM,cAAc;"}
|
package/dist/styles.css
CHANGED
|
@@ -750,6 +750,9 @@ video {
|
|
|
750
750
|
.top-\[50\%\]{
|
|
751
751
|
top: 50%;
|
|
752
752
|
}
|
|
753
|
+
.top-\[7px\]{
|
|
754
|
+
top: 7px;
|
|
755
|
+
}
|
|
753
756
|
.z-0{
|
|
754
757
|
z-index: 0;
|
|
755
758
|
}
|
|
@@ -1610,9 +1613,6 @@ video {
|
|
|
1610
1613
|
.fill-current{
|
|
1611
1614
|
fill: currentColor;
|
|
1612
1615
|
}
|
|
1613
|
-
.stroke-\[\#B0B0B0\]{
|
|
1614
|
-
stroke: #B0B0B0;
|
|
1615
|
-
}
|
|
1616
1616
|
.stroke-brand{
|
|
1617
1617
|
stroke: rgb(var(--primary-600) / 1);
|
|
1618
1618
|
}
|
|
@@ -2041,6 +2041,9 @@ video {
|
|
|
2041
2041
|
.duration-300{
|
|
2042
2042
|
transition-duration: 300ms;
|
|
2043
2043
|
}
|
|
2044
|
+
.duration-500{
|
|
2045
|
+
transition-duration: 500ms;
|
|
2046
|
+
}
|
|
2044
2047
|
.ease-in-out{
|
|
2045
2048
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2046
2049
|
}
|
|
@@ -2079,6 +2082,9 @@ video {
|
|
|
2079
2082
|
.duration-300{
|
|
2080
2083
|
animation-duration: 300ms;
|
|
2081
2084
|
}
|
|
2085
|
+
.duration-500{
|
|
2086
|
+
animation-duration: 500ms;
|
|
2087
|
+
}
|
|
2082
2088
|
.ease-in-out{
|
|
2083
2089
|
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2084
2090
|
}
|