geoiq-frontend-ui-kit 1.1.12 → 1.1.13
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/molecules/single-combobox/single-combobox.d.ts.map +1 -1
- 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 +3 -3
- package/dist/index.es21.js +1 -1
- package/dist/index.es25.js +49 -39
- package/dist/index.es25.js.map +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.es52.js +1 -1
- package/dist/index.es66.js +35 -43
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +43 -5
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +11 -22
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +132 -20
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +22 -88
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +20 -132
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +84 -13
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +10 -34
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es75.js +10 -24
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +24 -10
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +37 -39
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +39 -37
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/styles.css +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/single-combobox/single-combobox.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"single-combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/single-combobox/single-combobox.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAOjE,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,KAAK,EACL,WAAqB,EACrB,iBAA4B,EAC5B,YAA2B,EAC3B,QAAQ,GACT,EAAE,uBAAuB,+CAyFzB"}
|
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.es58.js";
|
|
4
|
-
import { ProgressVariants as i } from "./index.
|
|
4
|
+
import { ProgressVariants as i } from "./index.es68.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.es40.js";
|
|
|
6
6
|
import "./index.es59.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.es71.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.es18.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import { cn as m } from "./index.es58.js";
|
|
3
3
|
import { TypographyVariants as n } from "./index.es52.js";
|
|
4
|
-
import { defaultTypographyVariant as y, variantElementMap as i } from "./index.
|
|
4
|
+
import { defaultTypographyVariant as y, variantElementMap as i } from "./index.es70.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.es58.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.es66.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.es72.js";
|
|
2
|
+
import { DropdownMenu as g, DropdownMenuTrigger as y, DropdownMenuContent as d, DropdownMenuItem as h } from "./index.es69.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.es58.js";
|
|
6
|
-
import { CrumbVariants as w } from "./index.
|
|
6
|
+
import { CrumbVariants as w } from "./index.es73.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,5 +1,5 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
import { DropdownMenu as m, DropdownMenuTrigger as u, DropdownMenuContent as b, DropdownMenuLabel as i, DropdownMenuSeparator as n, DropdownMenuGroup as p, DropdownMenuSub as g, DropdownMenuSubTrigger as h, DropdownMenuPortal as E, DropdownMenuSubContent as w, DropdownMenuItem as d, DropdownMenuShortcut as x } from "./index.
|
|
2
|
+
import { DropdownMenu as m, DropdownMenuTrigger as u, DropdownMenuContent as b, DropdownMenuLabel as i, DropdownMenuSeparator as n, DropdownMenuGroup as p, DropdownMenuSub as g, DropdownMenuSubTrigger as h, DropdownMenuPortal as E, DropdownMenuSubContent as w, DropdownMenuItem as d, DropdownMenuShortcut as x } from "./index.es69.js";
|
|
3
3
|
function N({
|
|
4
4
|
trigger: o,
|
|
5
5
|
optionGroups: r,
|
package/dist/index.es25.js
CHANGED
|
@@ -1,62 +1,72 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
2
|
+
import { useRef as u } from "react";
|
|
3
|
+
import { ChevronUp as E, ChevronDown as x, Check as b } from "lucide-react";
|
|
4
|
+
import { cn as m } from "./index.es58.js";
|
|
5
|
+
import { Button as C } from "./index.es7.js";
|
|
6
|
+
import { Command as N, CommandInput as y, CommandEmpty as v, CommandGroup as w, CommandList as k, CommandItem as S } from "./index.es40.js";
|
|
7
|
+
import { Popover as O, PopoverTrigger as P, PopoverContent as R } from "./index.es59.js";
|
|
8
|
+
import { ComboBoxStates as j } from "./index.es76.js";
|
|
9
|
+
import { Typography as c } from "./index.es18.js";
|
|
10
|
+
function W({
|
|
10
11
|
options: n,
|
|
11
12
|
value: a,
|
|
12
|
-
placeholder:
|
|
13
|
-
searchPlaceholder:
|
|
14
|
-
emptyMessage:
|
|
13
|
+
placeholder: i = "Empty",
|
|
14
|
+
searchPlaceholder: d = "Search",
|
|
15
|
+
emptyMessage: h = "No results",
|
|
15
16
|
onChange: g
|
|
16
17
|
}) {
|
|
17
|
-
const [l, o] = e.useState(!1),
|
|
18
|
+
const [l, o] = e.useState(!1), s = u(null), p = (t) => {
|
|
18
19
|
g(t), o(!1);
|
|
19
|
-
},
|
|
20
|
-
return /* @__PURE__ */ e.createElement(
|
|
21
|
-
|
|
20
|
+
}, r = n.find((t) => t.id === a);
|
|
21
|
+
return /* @__PURE__ */ e.createElement(O, { open: l, onOpenChange: o }, /* @__PURE__ */ e.createElement(P, { ref: s, asChild: !0 }, /* @__PURE__ */ e.createElement(
|
|
22
|
+
C,
|
|
22
23
|
{
|
|
23
24
|
variant: "secondary",
|
|
24
25
|
role: "combobox",
|
|
25
26
|
"aria-expanded": l,
|
|
26
|
-
className:
|
|
27
|
-
|
|
27
|
+
className: m(
|
|
28
|
+
j({ isOpen: l, isValue: !!a }),
|
|
28
29
|
"w-full justify-between px-3 py-2"
|
|
29
30
|
)
|
|
30
31
|
},
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
r ? /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-2" }, r.icon, /* @__PURE__ */ e.createElement(
|
|
33
|
+
c,
|
|
33
34
|
{
|
|
34
35
|
variant: "body2",
|
|
35
36
|
className: a ? "text-light-2" : "text-light-4"
|
|
36
37
|
},
|
|
37
|
-
|
|
38
|
-
)) : /* @__PURE__ */ e.createElement(
|
|
39
|
-
l ? /* @__PURE__ */ e.createElement(
|
|
40
|
-
)), /* @__PURE__ */ e.createElement(
|
|
41
|
-
|
|
38
|
+
r?.name
|
|
39
|
+
)) : /* @__PURE__ */ e.createElement(c, { variant: "body2", className: "text-light-4" }, i),
|
|
40
|
+
l ? /* @__PURE__ */ e.createElement(E, { className: "w-4 h-4 ml-2 stroke-light-2" }) : /* @__PURE__ */ e.createElement(x, { className: "w-4 h-4 ml-2 stroke-light-2" })
|
|
41
|
+
)), /* @__PURE__ */ e.createElement(
|
|
42
|
+
R,
|
|
42
43
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
className:
|
|
47
|
-
"justify-between gap-2 text-light-2 hover:bg-light-2 hover:text-light-1 focus:bg-light-2 focus:text-accent-foreground",
|
|
48
|
-
t.disabled ? "text-light-4" : "text-light-2",
|
|
49
|
-
a === t.id ? "bg-light-2" : ""
|
|
50
|
-
),
|
|
51
|
-
onSelect: (p) => {
|
|
52
|
-
h(p);
|
|
53
|
-
}
|
|
44
|
+
style: {
|
|
45
|
+
width: s.current?.clientWidth
|
|
46
|
+
},
|
|
47
|
+
className: "p-0 bg-light-1 mt-1 rounded-lg"
|
|
54
48
|
},
|
|
55
|
-
/* @__PURE__ */ e.createElement("
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
/* @__PURE__ */ e.createElement(N, null, /* @__PURE__ */ e.createElement(y, { placeholder: d, className: "" }), /* @__PURE__ */ e.createElement(v, { className: "text-light-4" }, h), /* @__PURE__ */ e.createElement(w, null, /* @__PURE__ */ e.createElement(k, null, n.map((t) => /* @__PURE__ */ e.createElement(
|
|
50
|
+
S,
|
|
51
|
+
{
|
|
52
|
+
key: t.id,
|
|
53
|
+
value: t.id,
|
|
54
|
+
disabled: t.disabled,
|
|
55
|
+
className: m(
|
|
56
|
+
"justify-between gap-2 text-light-2 hover:bg-light-2 hover:text-light-1 focus:bg-light-2 focus:text-accent-foreground",
|
|
57
|
+
t.disabled ? "text-light-4" : "text-light-2",
|
|
58
|
+
a === t.id ? "bg-light-2" : ""
|
|
59
|
+
),
|
|
60
|
+
onSelect: (f) => {
|
|
61
|
+
p(f);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
/* @__PURE__ */ e.createElement("div", { className: "flex flex-row gap-2 " }, t.icon, t.name),
|
|
65
|
+
a === t.id ? /* @__PURE__ */ e.createElement(b, { className: m("h-4 w-4 stroke-brand") }) : /* @__PURE__ */ e.createElement("div", null)
|
|
66
|
+
)))))
|
|
67
|
+
));
|
|
58
68
|
}
|
|
59
69
|
export {
|
|
60
|
-
|
|
70
|
+
W as SingleCombobox
|
|
61
71
|
};
|
|
62
72
|
//# sourceMappingURL=index.es25.js.map
|
package/dist/index.es25.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es25.js","sources":["../src/components/molecules/single-combobox/single-combobox.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react'\n\nimport { cn } from '@/lib/utils'\nimport { Button } from '../../atoms/button'\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from '../../unstyled/command'\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from '../../unstyled/popover/popover-components'\nimport { SingleComboboxPropsType } from './single-combobox.types'\nimport { ComboBoxStates } from './single-combobox.styles'\nimport { Typography } from '../../atoms/typography'\n\n// const frameworks =\n\nexport function SingleCombobox({\n options,\n value,\n placeholder = 'Empty',\n searchPlaceholder = 'Search',\n emptyMessage = 'No results',\n onChange,\n}: SingleComboboxPropsType) {\n const [open, setOpen] = React.useState(false)\n\n const handleChange = (newValue: string) => {\n onChange(newValue)\n setOpen(false)\n }\n const selectedOption = options.find((option) => option.id === value)\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button\n variant=\"secondary\"\n role=\"combobox\"\n aria-expanded={open}\n // className=\"w-[200px] justify-between\"\n className={cn(\n ComboBoxStates({ isOpen: open, isValue: !!value }),\n 'w-full justify-between px-3 py-2'\n )}\n >\n {selectedOption ? (\n <div className=\"flex items-center gap-2\">\n {selectedOption.icon}\n <Typography\n variant={'body2'}\n className={value ? 'text-light-2' : 'text-light-4'}\n >\n {selectedOption?.name}\n </Typography>\n </div>\n ) : (\n <Typography variant={'body2'} className=\"text-light-4\">\n {placeholder}\n </Typography>\n )}\n {open ? (\n <ChevronUp className=\"w-4 h-4 ml-2 stroke-light-2\" />\n ) : (\n <ChevronDown className=\"w-4 h-4 ml-2 stroke-light-2\" />\n )}\n </Button>\n </PopoverTrigger>\n <PopoverContent className=\"
|
|
1
|
+
{"version":3,"file":"index.es25.js","sources":["../src/components/molecules/single-combobox/single-combobox.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react'\n\nimport { cn } from '@/lib/utils'\nimport { Button } from '../../atoms/button'\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from '../../unstyled/command'\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from '../../unstyled/popover/popover-components'\nimport { SingleComboboxPropsType } from './single-combobox.types'\nimport { ComboBoxStates } from './single-combobox.styles'\nimport { Typography } from '../../atoms/typography'\nimport { useRef } from 'react'\n\n// const frameworks =\n\nexport function SingleCombobox({\n options,\n value,\n placeholder = 'Empty',\n searchPlaceholder = 'Search',\n emptyMessage = 'No results',\n onChange,\n}: SingleComboboxPropsType) {\n const [open, setOpen] = React.useState(false)\n const popoverRef = useRef<HTMLButtonElement>(null)\n\n const handleChange = (newValue: string) => {\n onChange(newValue)\n setOpen(false)\n }\n const selectedOption = options.find((option) => option.id === value)\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger ref={popoverRef} asChild>\n <Button\n variant=\"secondary\"\n role=\"combobox\"\n aria-expanded={open}\n // className=\"w-[200px] justify-between\"\n className={cn(\n ComboBoxStates({ isOpen: open, isValue: !!value }),\n 'w-full justify-between px-3 py-2'\n )}\n >\n {selectedOption ? (\n <div className=\"flex items-center gap-2\">\n {selectedOption.icon}\n <Typography\n variant={'body2'}\n className={value ? 'text-light-2' : 'text-light-4'}\n >\n {selectedOption?.name}\n </Typography>\n </div>\n ) : (\n <Typography variant={'body2'} className=\"text-light-4\">\n {placeholder}\n </Typography>\n )}\n {open ? (\n <ChevronUp className=\"w-4 h-4 ml-2 stroke-light-2\" />\n ) : (\n <ChevronDown className=\"w-4 h-4 ml-2 stroke-light-2\" />\n )}\n </Button>\n </PopoverTrigger>\n <PopoverContent\n style={{\n width: popoverRef.current?.clientWidth,\n }}\n className=\"p-0 bg-light-1 mt-1 rounded-lg\"\n >\n <Command>\n <CommandInput placeholder={searchPlaceholder} className=\"\" />\n <CommandEmpty className=\"text-light-4\">{emptyMessage}</CommandEmpty>\n <CommandGroup>\n <CommandList>\n {options.map((option) => {\n return (\n <CommandItem\n key={option.id}\n value={option.id}\n disabled={option.disabled}\n className={cn(\n 'justify-between gap-2 text-light-2 hover:bg-light-2 hover:text-light-1 focus:bg-light-2 focus:text-accent-foreground',\n option.disabled ? 'text-light-4' : 'text-light-2',\n value === option.id ? 'bg-light-2' : ''\n )}\n onSelect={(currentValue) => {\n handleChange(currentValue)\n }}\n >\n <div className=\"flex flex-row gap-2 \">\n {option.icon}\n {option.name}\n </div>\n {value === option.id ? (\n <Check className={cn('h-4 w-4 stroke-brand')} />\n ) : (\n <div />\n )}\n </CommandItem>\n )\n })}\n </CommandList>\n </CommandGroup>\n </Command>\n </PopoverContent>\n </Popover>\n )\n}\n"],"names":["SingleCombobox","options","value","placeholder","searchPlaceholder","emptyMessage","onChange","open","setOpen","React","popoverRef","useRef","handleChange","newValue","selectedOption","option","Popover","PopoverTrigger","Button","cn","ComboBoxStates","Typography","ChevronUp","ChevronDown","PopoverContent","Command","CommandInput","CommandEmpty","CommandGroup","CommandList","CommandItem","currentValue","Check"],"mappings":";;;;;;;;;AA2BO,SAASA,EAAe;AAAA,EAC7B,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,mBAAAC,IAAoB;AAAA,EACpB,cAAAC,IAAe;AAAA,EACf,UAAAC;AACF,GAA4B;AAC1B,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,EAAK,GACtCC,IAAaC,EAA0B,IAAI,GAE3CC,IAAe,CAACC,MAAqB;AACzC,IAAAP,EAASO,CAAQ,GACjBL,EAAQ,EAAK;AAAA,EAAA,GAETM,IAAiBb,EAAQ,KAAK,CAACc,MAAWA,EAAO,OAAOb,CAAK;AAGjE,SAAA,gBAAAO,EAAA,cAACO,GAAQ,EAAA,MAAAT,GAAY,cAAcC,qCAChCS,GAAe,EAAA,KAAKP,GAAY,SAAO,GACtC,GAAA,gBAAAD,EAAA;AAAA,IAACS;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,iBAAeX;AAAA,MAEf,WAAWY;AAAA,QACTC,EAAe,EAAE,QAAQb,GAAM,SAAS,CAAC,CAACL,GAAO;AAAA,QACjD;AAAA,MACF;AAAA,IAAA;AAAA,IAECY,IACE,gBAAAL,EAAA,cAAA,OAAA,EAAI,WAAU,0BAAA,GACZK,EAAe,MAChB,gBAAAL,EAAA;AAAA,MAACY;AAAA,MAAA;AAAA,QACC,SAAS;AAAA,QACT,WAAWnB,IAAQ,iBAAiB;AAAA,MAAA;AAAA,MAEnCY,GAAgB;AAAA,IAAA,CAErB,IAEC,gBAAAL,EAAA,cAAAY,GAAA,EAAW,SAAS,SAAS,WAAU,kBACrClB,CACH;AAAA,IAEDI,oCACEe,GAAU,EAAA,WAAU,+BAA8B,IAEnD,gBAAAb,EAAA,cAACc,GAAY,EAAA,WAAU,8BAA8B,CAAA;AAAA,EAAA,CAG3D,GACA,gBAAAd,EAAA;AAAA,IAACe;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,OAAOd,EAAW,SAAS;AAAA,MAC7B;AAAA,MACA,WAAU;AAAA,IAAA;AAAA,IAEV,gBAAAD,EAAA,cAACgB,SACE,gBAAAhB,EAAA,cAAAiB,GAAA,EAAa,aAAatB,GAAmB,WAAU,GAAG,CAAA,GAC1D,gBAAAK,EAAA,cAAAkB,GAAA,EAAa,WAAU,eAAgB,GAAAtB,CAAa,GACpD,gBAAAI,EAAA,cAAAmB,GAAA,sCACEC,GACE,MAAA5B,EAAQ,IAAI,CAACc,MAEV,gBAAAN,EAAA;AAAA,MAACqB;AAAA,MAAA;AAAA,QACC,KAAKf,EAAO;AAAA,QACZ,OAAOA,EAAO;AAAA,QACd,UAAUA,EAAO;AAAA,QACjB,WAAWI;AAAA,UACT;AAAA,UACAJ,EAAO,WAAW,iBAAiB;AAAA,UACnCb,MAAUa,EAAO,KAAK,eAAe;AAAA,QACvC;AAAA,QACA,UAAU,CAACgB,MAAiB;AAC1B,UAAAnB,EAAamB,CAAY;AAAA,QAC3B;AAAA,MAAA;AAAA,sCAEC,OAAI,EAAA,WAAU,0BACZhB,EAAO,MACPA,EAAO,IACV;AAAA,MACCb,MAAUa,EAAO,KACf,gBAAAN,EAAA,cAAAuB,GAAA,EAAM,WAAWb,EAAG,sBAAsB,EAAA,CAAG,IAE9C,gBAAAV,EAAA,cAAC,OAAI,IAAA;AAAA,IAAA,CAIZ,CACH,CACF,CACF;AAAA,EAAA,CAEJ;AAEJ;"}
|
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.es58.js";
|
|
4
|
-
import { SliderVariants as t } from "./index.
|
|
4
|
+
import { SliderVariants as t } from "./index.es75.js";
|
|
5
5
|
const s = e.forwardRef(({ className: r, ...l }, a) => (
|
|
6
6
|
// <div className='bg-light-3 h-[100px] w-full flex'>
|
|
7
7
|
/* @__PURE__ */ e.createElement(
|
package/dist/index.es29.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StepperProvider as r, StepGroup as p } from "./index.
|
|
1
|
+
import { StepperProvider as r, StepGroup as p } from "./index.es78.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
const m = ({ value: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(r, { steps: t }, /* @__PURE__ */ e.createElement(p, null)));
|
|
4
4
|
m.displayName = "Stepper";
|
package/dist/index.es30.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import * as t from "@radix-ui/react-tabs";
|
|
3
3
|
import { cn as n } from "./index.es58.js";
|
|
4
|
-
import { TabsVariants as p, TabTriggerVariants as d } from "./index.
|
|
4
|
+
import { TabsVariants as p, TabTriggerVariants as d } from "./index.es77.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.es52.js
CHANGED
package/dist/index.es66.js
CHANGED
|
@@ -1,52 +1,44 @@
|
|
|
1
|
-
import { cva as
|
|
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`,
|
|
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 ",
|
|
7
4
|
{
|
|
8
5
|
variants: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
false: ""
|
|
16
|
-
},
|
|
17
|
-
disabled: {
|
|
18
|
-
true: "bg-light-3 border-neutral-2 cursor-not-allowed",
|
|
19
|
-
false: ""
|
|
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"
|
|
20
12
|
}
|
|
21
13
|
},
|
|
22
14
|
defaultVariants: {
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
]
|
|
15
|
+
variant: "info"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
), a = t("", {
|
|
19
|
+
variants: {
|
|
20
|
+
shortContent: {
|
|
21
|
+
true: "flex flex-row gap-2 item-center",
|
|
22
|
+
false: "flex flex-col gap-2 justify-start items-start"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
shortContent: !1
|
|
27
|
+
}
|
|
28
|
+
}), n = t("", {
|
|
29
|
+
variants: {
|
|
30
|
+
shortContent: {
|
|
31
|
+
true: "bg-rest-s1",
|
|
32
|
+
false: "bg-rest-s1"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
shortContent: !1
|
|
47
37
|
}
|
|
48
|
-
);
|
|
38
|
+
});
|
|
49
39
|
export {
|
|
50
|
-
|
|
40
|
+
n as AlertButtonVariants,
|
|
41
|
+
a as AlertContentVariants,
|
|
42
|
+
r as AlertVariants
|
|
51
43
|
};
|
|
52
44
|
//# sourceMappingURL=index.es66.js.map
|
package/dist/index.es66.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es66.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es66.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 },\n defaultVariants: {\n variant: 'info',\n },\n }\n)\n\nexport const AlertContentVariants = cva('', {\n variants: {\n shortContent: {\n true: 'flex flex-row gap-2 item-center',\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('', {\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,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,IAAI;AAAA,EACzC,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.es67.js
CHANGED
|
@@ -1,14 +1,52 @@
|
|
|
1
1
|
import { cva as r } from "class-variance-authority";
|
|
2
|
-
const
|
|
3
|
-
|
|
2
|
+
const s = r(
|
|
3
|
+
` h-[38px] w-full border flex items-center justify-between gap-1.5 relative mt-1.5 rounded-lg
|
|
4
|
+
text-light-2 px-3 py-2
|
|
5
|
+
file:border-0 file:bg-transparent
|
|
6
|
+
placeholder:font-normal placeholder:text-light-4`,
|
|
4
7
|
{
|
|
5
8
|
variants: {
|
|
6
|
-
|
|
9
|
+
isError: {
|
|
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
|
+
}
|
|
7
21
|
},
|
|
8
|
-
defaultVariants: {
|
|
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
|
+
]
|
|
9
47
|
}
|
|
10
48
|
);
|
|
11
49
|
export {
|
|
12
|
-
|
|
50
|
+
s as InputVariants
|
|
13
51
|
};
|
|
14
52
|
//# 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/input/input.styles.ts"],"sourcesContent":["import { cva } from 'class-variance-authority'\n\nexport const InputVariants = cva(\n ` h-[38px] w-full border flex items-center justify-between gap-1.5 relative mt-1.5 rounded-lg \n text-light-2 px-3 py-2\n file:border-0 file:bg-transparent\n placeholder:font-normal placeholder:text-light-4`,\n {\n variants: {\n isError: {\n true: '',\n false: '',\n },\n isFocused: {\n true: '',\n false: '',\n },\n disabled: {\n true: 'bg-light-3 border-neutral-2 cursor-not-allowed',\n false: '',\n },\n },\n defaultVariants: {\n isError: false,\n },\n compoundVariants: [\n {\n isError: true,\n isFocused: true,\n className: 'border-danger-2 ring-4 ring-danger-1',\n },\n {\n isError: false,\n isFocused: true,\n className: 'border-primary-2 ring-4 ring-primary-1',\n },\n {\n isError: true,\n isFocused: false,\n className: 'border-danger-2',\n },\n {\n isError: false,\n isFocused: false,\n className: 'border-light-2',\n },\n ],\n }\n)\n"],"names":["InputVariants","cva"],"mappings":";AAEO,MAAMA,IAAgBC;AAAA,EAC3B;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,MACA,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;AAAA,MACf,SAAS;AAAA,IACX;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,WAAW;AAAA,QACX,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,WAAW;AAAA,QACX,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,WAAW;AAAA,QACX,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,WAAW;AAAA,QACX,WAAW;AAAA,MACb;AAAA,IACF;AAAA,EACF;AACF;"}
|
package/dist/index.es68.js
CHANGED
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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";
|
|
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: {}
|
|
7
|
+
},
|
|
8
|
+
defaultVariants: {}
|
|
9
|
+
}
|
|
10
|
+
);
|
|
21
11
|
export {
|
|
22
|
-
|
|
23
|
-
p as variantElementMap
|
|
12
|
+
i as ProgressVariants
|
|
24
13
|
};
|
|
25
14
|
//# sourceMappingURL=index.es68.js.map
|
package/dist/index.es68.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es68.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index.es68.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;"}
|