geoiq-frontend-ui-kit 1.1.27 → 1.1.28

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.
@@ -1 +1 @@
1
- {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/responsive/responsive.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,eAAO,MAAM,UAAU,GAAI,CAAC;;;;;;UACnB,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC,yQAiC5C,CAAA"}
1
+ {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/responsive/responsive.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,eAAO,MAAM,UAAU,GAAI,CAAC;;;;;;UACnB,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC,yQAkC5C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-responsive.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/responsive/use-responsive.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,KAAK,UAAU,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAA;AAErC,eAAO,MAAM,aAAa,GACxB,CAAC,SAAS,iBAAiB,CAAC,eAAe;;;;;;oBAE1B,CAAC,KACjB,UAAU,CAAC,CAAC,CA+Bd,CAAA"}
1
+ {"version":3,"file":"use-responsive.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/responsive/use-responsive.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,KAAK,UAAU,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAA;AAErC,eAAO,MAAM,aAAa,GACxB,CAAC,SAAS,iBAAiB,CAAC,eAAe;;;;;;oBAE1B,CAAC,KACjB,UAAU,CAAC,CAAC,CAgCd,CAAA"}
@@ -6,7 +6,7 @@ import "./index.es44.js";
6
6
  import "./index.es63.js";
7
7
  import "./index.es26.js";
8
8
  import "./index.es32.js";
9
- import { TextAreaVariants as u } from "./index.es75.js";
9
+ import { TextAreaVariants as u } from "./index.es73.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);
@@ -1,7 +1,7 @@
1
1
  import * as o from "react";
2
2
  import { cn as m } from "./index.es62.js";
3
3
  import { TypographyVariants as n } from "./index.es56.js";
4
- import { defaultTypographyVariant as y, variantElementMap as i } from "./index.es72.js";
4
+ import { defaultTypographyVariant as y, variantElementMap as i } from "./index.es71.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(
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
2
  import { cn as s } from "./index.es62.js";
3
- import { AlertVariants as f, AlertContentVariants as d, AlertButtonVariants as g } from "./index.es78.js";
3
+ import { AlertVariants as f, AlertContentVariants as d, AlertButtonVariants as g } from "./index.es72.js";
4
4
  import { Button as p } from "./index.es7.js";
5
5
  import { Typography as u } from "./index.es18.js";
6
6
  const c = e.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e.createElement(
@@ -1,5 +1,5 @@
1
- import { Breadcrumb as E, BreadcrumbList as i, BreadcrumbSeparator as c, BreadcrumbItem as o, BreadcrumbEllipsis as b, BreadcrumbLink as u } from "./index.es76.js";
2
- import { DropdownMenu as g, DropdownMenuTrigger as y, DropdownMenuContent as d, DropdownMenuItem as h } from "./index.es74.js";
1
+ import { Breadcrumb as E, BreadcrumbList as i, BreadcrumbSeparator as c, BreadcrumbItem as o, BreadcrumbEllipsis as b, BreadcrumbLink as u } from "./index.es75.js";
2
+ import { DropdownMenu as g, DropdownMenuTrigger as y, DropdownMenuContent as d, DropdownMenuItem as h } from "./index.es76.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.es62.js";
@@ -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.es74.js";
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.es76.js";
3
3
  function k({
4
4
  trigger: c,
5
5
  optionGroups: r,
@@ -5,7 +5,7 @@ import { cn as m } from "./index.es62.js";
5
5
  import { Button as v } from "./index.es7.js";
6
6
  import { Command as w, CommandInput as k, CommandEmpty as S, CommandGroup as O, CommandList as P, CommandItem as R } from "./index.es44.js";
7
7
  import { Popover as j, PopoverTrigger as B, PopoverContent as I } from "./index.es63.js";
8
- import { ComboBoxStates as T } from "./index.es73.js";
8
+ import { ComboBoxStates as T } from "./index.es78.js";
9
9
  import { Typography as d } from "./index.es18.js";
10
10
  function z({
11
11
  options: n,
@@ -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.es62.js";
4
- import { SliderVariants as t } from "./index.es82.js";
4
+ import { SliderVariants as t } from "./index.es81.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(
@@ -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.es62.js";
4
- import { TabsVariants as d, TabTriggerVariants as T } from "./index.es81.js";
4
+ import { TabsVariants as d, TabTriggerVariants as T } from "./index.es82.js";
5
5
  const c = e.forwardRef(({ className: a, variant: r, size: s, ...o }, i) => /* @__PURE__ */ e.createElement(
6
6
  t.List,
7
7
  {
@@ -1,22 +1,25 @@
1
1
  import u from "react";
2
- import { Breakpoints as k } from "./index.es40.js";
3
- const f = (l) => {
4
- const { children: c, breakpoints: n = k, ...e } = l, r = window?.innerWidth ?? 0, o = u.useMemo(() => {
2
+ import { Breakpoints as c } from "./index.es40.js";
3
+ const b = (l) => {
4
+ const { children: d, breakpoints: r = c, ...e } = l;
5
+ let n = 0;
6
+ typeof window < "u" && (n = window?.innerWidth ?? 0);
7
+ const o = u.useMemo(() => {
5
8
  const i = Object.keys(e);
6
9
  if (i.length === 0) return null;
7
10
  {
8
- let s = null, a = 0;
9
- return i.forEach((p) => {
11
+ let s = null, p = 0;
12
+ return i.forEach((a) => {
10
13
  const t = parseInt(
11
- n[p]
14
+ r[a]
12
15
  );
13
- r >= t && t > a && (s = p, a = t);
16
+ n >= t && t > p && (s = a, p = t);
14
17
  }), s;
15
18
  }
16
- }, [r, n, e]);
17
- return o ? e[o] : c;
19
+ }, [n, r, e]);
20
+ return o ? e[o] : d;
18
21
  };
19
22
  export {
20
- f as Responsive
23
+ b as Responsive
21
24
  };
22
25
  //# sourceMappingURL=index.es39.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es39.js","sources":["../src/components/ui/responsive/responsive.tsx"],"sourcesContent":["import React from 'react'\nimport { Breakpoints } from './responsive.config'\nimport { type ResponsiveTypesNS } from './responsive.types'\n\nexport const Responsive = <T = typeof Breakpoints,>(\n props: ResponsiveTypesNS.ResponsiveProps<T>\n) => {\n const { children, breakpoints = Breakpoints, ...breakpointRenders } = props\n\n const innerWidth = window?.innerWidth ?? 0\n\n const toRenderBreakpoint = React.useMemo((): keyof T | null => {\n const keys = Object.keys(breakpointRenders)\n\n if (keys.length === 0) return null\n else {\n let breakpointReturn = null\n let breakpointLimit = 0\n\n keys.forEach((key) => {\n const breakpointValue = parseInt(\n breakpoints[key as keyof (T | typeof Breakpoints)] as string\n )\n if (\n innerWidth >= breakpointValue &&\n breakpointValue > breakpointLimit\n ) {\n breakpointReturn = key\n breakpointLimit = breakpointValue\n }\n })\n return breakpointReturn\n }\n }, [innerWidth, breakpoints, breakpointRenders])\n\n return toRenderBreakpoint\n ? breakpointRenders[toRenderBreakpoint as keyof typeof breakpointRenders]\n : children\n}\n"],"names":["Responsive","props","children","breakpoints","Breakpoints","breakpointRenders","innerWidth","toRenderBreakpoint","React","keys","breakpointReturn","breakpointLimit","key","breakpointValue"],"mappings":";;AAIa,MAAAA,IAAa,CACxBC,MACG;AACH,QAAM,EAAE,UAAAC,GAAU,aAAAC,IAAcC,GAAa,GAAGC,EAAsB,IAAAJ,GAEhEK,IAAa,QAAQ,cAAc,GAEnCC,IAAqBC,EAAM,QAAQ,MAAsB;AACvD,UAAAC,IAAO,OAAO,KAAKJ,CAAiB;AAEtC,QAAAI,EAAK,WAAW,EAAU,QAAA;AACzB;AACH,UAAIC,IAAmB,MACnBC,IAAkB;AAEjB,aAAAF,EAAA,QAAQ,CAACG,MAAQ;AACpB,cAAMC,IAAkB;AAAA,UACtBV,EAAYS,CAAqC;AAAA,QAAA;AAGjD,QAAAN,KAAcO,KACdA,IAAkBF,MAECD,IAAAE,GACDD,IAAAE;AAAA,MACpB,CACD,GACMH;AAAA,IACT;AAAA,EACC,GAAA,CAACJ,GAAYH,GAAaE,CAAiB,CAAC;AAExC,SAAAE,IACHF,EAAkBE,CAAoD,IACtEL;AACN;"}
1
+ {"version":3,"file":"index.es39.js","sources":["../src/components/ui/responsive/responsive.tsx"],"sourcesContent":["import React from 'react'\nimport { Breakpoints } from './responsive.config'\nimport { type ResponsiveTypesNS } from './responsive.types'\n\nexport const Responsive = <T = typeof Breakpoints,>(\n props: ResponsiveTypesNS.ResponsiveProps<T>\n) => {\n const { children, breakpoints = Breakpoints, ...breakpointRenders } = props\n\n let innerWidth = 0\n if (typeof window !== 'undefined') innerWidth = window?.innerWidth ?? 0\n\n const toRenderBreakpoint = React.useMemo((): keyof T | null => {\n const keys = Object.keys(breakpointRenders)\n\n if (keys.length === 0) return null\n else {\n let breakpointReturn = null\n let breakpointLimit = 0\n\n keys.forEach((key) => {\n const breakpointValue = parseInt(\n breakpoints[key as keyof (T | typeof Breakpoints)] as string\n )\n if (\n innerWidth >= breakpointValue &&\n breakpointValue > breakpointLimit\n ) {\n breakpointReturn = key\n breakpointLimit = breakpointValue\n }\n })\n return breakpointReturn\n }\n }, [innerWidth, breakpoints, breakpointRenders])\n\n return toRenderBreakpoint\n ? breakpointRenders[toRenderBreakpoint as keyof typeof breakpointRenders]\n : children\n}\n"],"names":["Responsive","props","children","breakpoints","Breakpoints","breakpointRenders","innerWidth","toRenderBreakpoint","React","keys","breakpointReturn","breakpointLimit","key","breakpointValue"],"mappings":";;AAIa,MAAAA,IAAa,CACxBC,MACG;AACH,QAAM,EAAE,UAAAC,GAAU,aAAAC,IAAcC,GAAa,GAAGC,EAAsB,IAAAJ;AAEtE,MAAIK,IAAa;AACjB,EAAI,OAAO,SAAW,QAAaA,IAAa,QAAQ,cAAc;AAEhE,QAAAC,IAAqBC,EAAM,QAAQ,MAAsB;AACvD,UAAAC,IAAO,OAAO,KAAKJ,CAAiB;AAEtC,QAAAI,EAAK,WAAW,EAAU,QAAA;AACzB;AACH,UAAIC,IAAmB,MACnBC,IAAkB;AAEjB,aAAAF,EAAA,QAAQ,CAACG,MAAQ;AACpB,cAAMC,IAAkB;AAAA,UACtBV,EAAYS,CAAqC;AAAA,QAAA;AAGjD,QAAAN,KAAcO,KACdA,IAAkBF,MAECD,IAAAE,GACDD,IAAAE;AAAA,MACpB,CACD,GACMH;AAAA,IACT;AAAA,EACC,GAAA,CAACJ,GAAYH,GAAaE,CAAiB,CAAC;AAExC,SAAAE,IACHF,EAAkBE,CAAoD,IACtEL;AACN;"}
@@ -1,22 +1,23 @@
1
1
  import p from "react";
2
- import { Breakpoints as c } from "./index.es40.js";
3
- const f = (a) => {
4
- const e = a ?? c, n = window?.innerWidth ?? 0;
5
- return p.useMemo(() => {
2
+ import { Breakpoints as u } from "./index.es40.js";
3
+ const b = (a) => {
4
+ const e = a ?? u;
5
+ let t = 0;
6
+ return typeof window < "u" && (t = window?.innerWidth ?? 0), p.useMemo(() => {
6
7
  const r = Object.keys(e);
7
8
  if (r.length === 0) return "base";
8
9
  {
9
10
  let o = "base", i = 0;
10
11
  return r.forEach((s) => {
11
- const t = parseInt(
12
+ const n = parseInt(
12
13
  e[s]
13
14
  );
14
- n >= t && t > i && (o = s, i = t);
15
+ t >= n && n > i && (o = s, i = n);
15
16
  }), o;
16
17
  }
17
- }, [n, e]);
18
+ }, [t, e]);
18
19
  };
19
20
  export {
20
- f as useResponsive
21
+ b as useResponsive
21
22
  };
22
23
  //# sourceMappingURL=index.es41.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es41.js","sources":["../src/components/ui/responsive/use-responsive.ts"],"sourcesContent":["import React from 'react'\nimport { Breakpoints } from './responsive.config'\nimport { ResponsiveTypesNS } from './responsive.types'\n\ntype ReturnType<T> = keyof T | 'base'\n\nexport const useResponsive = <\n T extends ResponsiveTypesNS.BreakpointsType = typeof Breakpoints,\n>(\n breakpointsObj?: T\n): ReturnType<T> => {\n const breakpoints = breakpointsObj ?? Breakpoints\n\n const innerWidth = window?.innerWidth ?? 0\n\n const currentBreakpoint = React.useMemo((): ReturnType<T> => {\n const keys = Object.keys(breakpoints)\n\n if (keys.length === 0) return 'base'\n else {\n let breakpointReturn: ReturnType<T> = 'base'\n let breakpointLimit = 0\n\n keys.forEach((key) => {\n const breakpointValue = parseInt(\n breakpoints[key as keyof (T | typeof Breakpoints)] as string\n )\n if (\n innerWidth >= breakpointValue &&\n breakpointValue > breakpointLimit\n ) {\n breakpointReturn = key as ReturnType<T>\n breakpointLimit = breakpointValue\n }\n })\n\n return breakpointReturn\n }\n }, [innerWidth, breakpoints])\n\n return currentBreakpoint\n}\n"],"names":["useResponsive","breakpointsObj","breakpoints","Breakpoints","innerWidth","React","keys","breakpointReturn","breakpointLimit","key","breakpointValue"],"mappings":";;AAMa,MAAAA,IAAgB,CAG3BC,MACkB;AAClB,QAAMC,IAAcD,KAAkBE,GAEhCC,IAAa,QAAQ,cAAc;AA2BlC,SAzBmBC,EAAM,QAAQ,MAAqB;AACrD,UAAAC,IAAO,OAAO,KAAKJ,CAAW;AAEhC,QAAAI,EAAK,WAAW,EAAU,QAAA;AACzB;AACH,UAAIC,IAAkC,QAClCC,IAAkB;AAEjB,aAAAF,EAAA,QAAQ,CAACG,MAAQ;AACpB,cAAMC,IAAkB;AAAA,UACtBR,EAAYO,CAAqC;AAAA,QAAA;AAGjD,QAAAL,KAAcM,KACdA,IAAkBF,MAECD,IAAAE,GACDD,IAAAE;AAAA,MACpB,CACD,GAEMH;AAAA,IACT;AAAA,EAAA,GACC,CAACH,GAAYF,CAAW,CAAC;AAG9B;"}
1
+ {"version":3,"file":"index.es41.js","sources":["../src/components/ui/responsive/use-responsive.ts"],"sourcesContent":["import React from 'react'\nimport { Breakpoints } from './responsive.config'\nimport { ResponsiveTypesNS } from './responsive.types'\n\ntype ReturnType<T> = keyof T | 'base'\n\nexport const useResponsive = <\n T extends ResponsiveTypesNS.BreakpointsType = typeof Breakpoints,\n>(\n breakpointsObj?: T\n): ReturnType<T> => {\n const breakpoints = breakpointsObj ?? Breakpoints\n\n let innerWidth = 0\n if (typeof window !== 'undefined') innerWidth = window?.innerWidth ?? 0\n\n const currentBreakpoint = React.useMemo((): ReturnType<T> => {\n const keys = Object.keys(breakpoints)\n\n if (keys.length === 0) return 'base'\n else {\n let breakpointReturn: ReturnType<T> = 'base'\n let breakpointLimit = 0\n\n keys.forEach((key) => {\n const breakpointValue = parseInt(\n breakpoints[key as keyof (T | typeof Breakpoints)] as string\n )\n if (\n innerWidth >= breakpointValue &&\n breakpointValue > breakpointLimit\n ) {\n breakpointReturn = key as ReturnType<T>\n breakpointLimit = breakpointValue\n }\n })\n\n return breakpointReturn\n }\n }, [innerWidth, breakpoints])\n\n return currentBreakpoint\n}\n"],"names":["useResponsive","breakpointsObj","breakpoints","Breakpoints","innerWidth","React","keys","breakpointReturn","breakpointLimit","key","breakpointValue"],"mappings":";;AAMa,MAAAA,IAAgB,CAG3BC,MACkB;AAClB,QAAMC,IAAcD,KAAkBE;AAEtC,MAAIC,IAAa;AACjB,SAAI,OAAO,SAAW,QAAaA,IAAa,QAAQ,cAAc,IAE5CC,EAAM,QAAQ,MAAqB;AACrD,UAAAC,IAAO,OAAO,KAAKJ,CAAW;AAEhC,QAAAI,EAAK,WAAW,EAAU,QAAA;AACzB;AACH,UAAIC,IAAkC,QAClCC,IAAkB;AAEjB,aAAAF,EAAA,QAAQ,CAACG,MAAQ;AACpB,cAAMC,IAAkB;AAAA,UACtBR,EAAYO,CAAqC;AAAA,QAAA;AAGjD,QAAAL,KAAcM,KACdA,IAAkBF,MAECD,IAAAE,GACDD,IAAAE;AAAA,MACpB,CACD,GAEMH;AAAA,IACT;AAAA,EAAA,GACC,CAACH,GAAYF,CAAW,CAAC;AAG9B;"}
@@ -1,5 +1,5 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- import { defaultTypographyVariant as t } from "./index.es72.js";
2
+ import { defaultTypographyVariant as t } from "./index.es71.js";
3
3
  const r = e("", {
4
4
  variants: {
5
5
  variant: {
@@ -1,52 +1,25 @@
1
- import { cva as r } from "class-variance-authority";
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`,
7
- {
8
- variants: {
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
- }
21
- },
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
- ]
47
- }
48
- );
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";
49
21
  export {
50
- s as InputVariants
22
+ y as defaultTypographyVariant,
23
+ p as variantElementMap
51
24
  };
52
25
  //# sourceMappingURL=index.es71.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es71.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;"}
1
+ {"version":3,"file":"index.es71.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;"}
@@ -1,25 +1,48 @@
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";
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: "justify-center 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-center 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
- y as defaultTypographyVariant,
23
- p as variantElementMap
44
+ n as AlertButtonVariants,
45
+ a as AlertContentVariants,
46
+ r as AlertVariants
24
47
  };
25
48
  //# sourceMappingURL=index.es72.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es72.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;"}
1
+ {"version":3,"file":"index.es72.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: 'justify-center 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-center 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;"}
@@ -1,28 +1,25 @@
1
- import { cva as t } from "class-variance-authority";
2
- const e = t("w-full", {
3
- variants: {
4
- isOpen: {
5
- true: "ring-4 ring-primary-1 border-primary-2 text-light-1"
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
+ }
6
17
  },
7
- isValue: {
8
- true: "text-light-1",
9
- false: "text-light-4"
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
- });
18
+ defaultVariants: {},
19
+ compoundVariants: []
20
+ }
21
+ );
25
22
  export {
26
- e as ComboBoxStates
23
+ t as TextAreaVariants
27
24
  };
28
25
  //# sourceMappingURL=index.es73.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es73.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;"}
1
+ {"version":3,"file":"index.es73.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,125 +1,52 @@
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.es62.js";
5
- const h = t.Root, E = t.Trigger, D = t.Group, M = t.Portal, R = t.Sub, c = e.forwardRef(({ className: a, inset: o, children: n, ...r }, s) => /* @__PURE__ */ e.createElement(
6
- t.SubTrigger,
7
- {
8
- ref: s,
9
- className: d(
10
- "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",
11
- o && "pl-8",
12
- a
13
- ),
14
- ...r
15
- },
16
- n,
17
- /* @__PURE__ */ e.createElement(l, { className: "ml-auto h-4 w-4" })
18
- ));
19
- c.displayName = t.SubTrigger.displayName;
20
- const p = e.forwardRef(({ className: a, ...o }, n) => /* @__PURE__ */ e.createElement(
21
- t.SubContent,
22
- {
23
- ref: n,
24
- className: d(
25
- "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",
26
- a
27
- ),
28
- ...o
29
- }
30
- ));
31
- p.displayName = t.SubContent.displayName;
32
- const u = e.forwardRef(({ className: a, sideOffset: o = 4, ...n }, r) => /* @__PURE__ */ e.createElement(t.Portal, null, /* @__PURE__ */ e.createElement(
33
- t.Content,
34
- {
35
- ref: r,
36
- sideOffset: o,
37
- className: d(
38
- "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",
39
- a
40
- ),
41
- ...n
42
- }
43
- )));
44
- u.displayName = t.Content.displayName;
45
- const f = e.forwardRef(({ className: a, inset: o, ...n }, r) => /* @__PURE__ */ e.createElement(
46
- t.Item,
47
- {
48
- ref: r,
49
- className: d(
50
- "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",
51
- o && "pl-8",
52
- a
53
- ),
54
- ...n
55
- }
56
- ));
57
- f.displayName = t.Item.displayName;
58
- const b = e.forwardRef(({ className: a, children: o, checked: n, ...r }, s) => /* @__PURE__ */ e.createElement(
59
- t.CheckboxItem,
60
- {
61
- ref: s,
62
- className: d(
63
- "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",
64
- a
65
- ),
66
- checked: n,
67
- disabled: !0,
68
- ...r
69
- },
70
- /* @__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: "h-4 w-4" }))),
71
- o
72
- ));
73
- b.displayName = t.CheckboxItem.displayName;
74
- const w = e.forwardRef(({ className: a, children: o, ...n }, r) => /* @__PURE__ */ e.createElement(
75
- t.RadioItem,
76
- {
77
- ref: r,
78
- className: d(
79
- "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",
80
- a
81
- ),
82
- ...n
83
- },
84
- /* @__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: "h-2 w-2 fill-current" }))),
85
- o
86
- ));
87
- w.displayName = t.RadioItem.displayName;
88
- const g = e.forwardRef(({ className: a, inset: o, ...n }, r) => /* @__PURE__ */ e.createElement(
89
- t.Label,
90
- {
91
- ref: r,
92
- className: d(
93
- "px-2 py-1.5 text-sm font-semibold",
94
- o && "pl-8",
95
- a
96
- ),
97
- ...n
98
- }
99
- ));
100
- g.displayName = t.Label.displayName;
101
- const N = e.forwardRef(({ className: a, ...o }, n) => /* @__PURE__ */ e.createElement(
102
- t.Separator,
103
- {
104
- ref: n,
105
- className: d("-mx-1 my-1 h-px bg-muted", a),
106
- ...o
1
+ import { cva as r } from "class-variance-authority";
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`,
7
+ {
8
+ variants: {
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
+ }
21
+ },
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
+ ]
107
47
  }
108
- ));
109
- N.displayName = t.Separator.displayName;
48
+ );
110
49
  export {
111
- h as DropdownMenu,
112
- b as DropdownMenuCheckboxItem,
113
- u as DropdownMenuContent,
114
- D as DropdownMenuGroup,
115
- f as DropdownMenuItem,
116
- g as DropdownMenuLabel,
117
- M as DropdownMenuPortal,
118
- w as DropdownMenuRadioItem,
119
- N as DropdownMenuSeparator,
120
- R as DropdownMenuSub,
121
- p as DropdownMenuSubContent,
122
- c as DropdownMenuSubTrigger,
123
- E as DropdownMenuTrigger
50
+ s as InputVariants
124
51
  };
125
52
  //# sourceMappingURL=index.es74.js.map