@schandlergarcia/sf-web-components 1.1.2 → 1.1.4

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.
Files changed (57) hide show
  1. package/dist/components/library/cards/ListCard.js +15 -15
  2. package/dist/components/library/cards/TableCard.js +22 -22
  3. package/dist/components/library/cards/TableCard.js.map +1 -1
  4. package/dist/components/library/cards/WidgetCard.js +4 -4
  5. package/dist/components/library/charts/D3Chart.js.map +1 -1
  6. package/dist/components/library/data/DataModeProvider.js +9 -9
  7. package/dist/components/library/data/DataModeProvider.js.map +1 -1
  8. package/dist/components/library/index.d.ts +17 -4
  9. package/dist/components/library/theme/AppThemeProvider.js +4 -4
  10. package/dist/components/library/theme/AppThemeProvider.js.map +1 -1
  11. package/dist/components/library/ui/Avatar.js +8 -8
  12. package/dist/components/library/ui/BreadcrumbExtras.d.ts +9 -0
  13. package/dist/components/library/ui/BreadcrumbExtras.js +109 -0
  14. package/dist/components/library/ui/BreadcrumbExtras.js.map +1 -0
  15. package/dist/components/library/ui/Card.d.ts +37 -11
  16. package/dist/components/library/ui/FieldGroup.d.ts +5 -0
  17. package/dist/components/library/ui/FieldGroup.js +19 -0
  18. package/dist/components/library/ui/FieldGroup.js.map +1 -0
  19. package/dist/components/library/ui/PaginationExtras.d.ts +11 -0
  20. package/dist/components/library/ui/PaginationExtras.js +138 -0
  21. package/dist/components/library/ui/PaginationExtras.js.map +1 -0
  22. package/dist/components/library/ui/alert.d.ts +21 -10
  23. package/dist/components/library/ui/alert.js +51 -56
  24. package/dist/components/library/ui/alert.js.map +1 -1
  25. package/dist/components/library/ui/card.js +72 -55
  26. package/dist/components/library/ui/card.js.map +1 -1
  27. package/dist/components/library/ui/checkbox.d.ts +4 -4
  28. package/dist/components/library/ui/checkbox.js +14 -26
  29. package/dist/components/library/ui/checkbox.js.map +1 -1
  30. package/dist/components/library/ui/collapsible.d.ts +5 -4
  31. package/dist/components/library/ui/collapsible.js +18 -24
  32. package/dist/components/library/ui/collapsible.js.map +1 -1
  33. package/dist/components/library/ui/datePicker.d.ts +10 -18
  34. package/dist/components/library/ui/datePicker.js +18 -85
  35. package/dist/components/library/ui/datePicker.js.map +1 -1
  36. package/dist/components/library/ui/dialog.d.ts +5 -7
  37. package/dist/components/library/ui/dialog.js +94 -108
  38. package/dist/components/library/ui/dialog.js.map +1 -1
  39. package/dist/components/library/ui/field.d.ts +6 -25
  40. package/dist/components/library/ui/field.js +52 -184
  41. package/dist/components/library/ui/field.js.map +1 -1
  42. package/dist/components/library/ui/label.d.ts +6 -4
  43. package/dist/components/library/ui/label.js +12 -15
  44. package/dist/components/library/ui/label.js.map +1 -1
  45. package/dist/components/library/ui/popover.d.ts +3 -7
  46. package/dist/components/library/ui/popover.js +24 -28
  47. package/dist/components/library/ui/popover.js.map +1 -1
  48. package/dist/components/library/ui/select.d.ts +5 -12
  49. package/dist/components/library/ui/select.js +79 -155
  50. package/dist/components/library/ui/select.js.map +1 -1
  51. package/dist/index.js +227 -153
  52. package/dist/index.js.map +1 -1
  53. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +25 -23
  54. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -1
  55. package/dist/node_modules/@radix-ui/react-select/dist/index.js +252 -257
  56. package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +1 -1
  57. package/package.json +1 -1
@@ -1,23 +1,20 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { cn as a } from "../../../lib/utils.js";
3
- import { Root as r } from "../../../node_modules/@radix-ui/react-label/dist/index.js";
4
- function l({
5
- className: e,
6
- ...t
7
- }) {
2
+ import "react";
3
+ function s({ children: t, htmlFor: e, className: a = "", ...l }) {
8
4
  return /* @__PURE__ */ o(
9
- r,
5
+ "label",
10
6
  {
11
- "data-slot": "label",
12
- className: a(
13
- "gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",
14
- e
15
- ),
16
- ...t
7
+ htmlFor: e,
8
+ className: [
9
+ "block text-sm font-medium text-slate-700 dark:text-slate-200",
10
+ a
11
+ ].filter(Boolean).join(" "),
12
+ ...l,
13
+ children: t
17
14
  }
18
15
  );
19
16
  }
20
17
  export {
21
- l as Label
18
+ s as default
22
19
  };
23
- //# sourceMappingURL=label.js.map
20
+ //# sourceMappingURL=Label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","sources":["../../../../src/components/library/ui/label.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Label as LabelPrimitive } from 'radix-ui';\n\nimport { cn } from '../../../lib/utils';\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed',\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Label };\n"],"names":["Label","className","props","jsx","LabelPrimitive.Root","cn"],"mappings":";;;AAKA,SAASA,EAAM;AAAA,EACb,WAAAC;AAAA,EACA,GAAGC;AACL,GAAqD;AACnD,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
1
+ {"version":3,"file":"Label.js","sources":["../../../../src/components/library/ui/Label.jsx"],"sourcesContent":["import React from \"react\";\n\nexport default function Label({ children, htmlFor, className = \"\", ...rest }) {\n return (\n <label\n htmlFor={htmlFor}\n className={[\n \"block text-sm font-medium text-slate-700 dark:text-slate-200\",\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n >\n {children}\n </label>\n );\n}\n"],"names":["Label","children","htmlFor","className","rest","jsx"],"mappings":";;AAEA,SAAwBA,EAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,WAAAC,IAAY,IAAI,GAAGC,KAAQ;AAC5E,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAAH;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACAC;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -1,10 +1,6 @@
1
- import * as React from 'react';
2
- import { Popover as PopoverPrimitive } from 'radix-ui';
1
+ import * as React from "react";
2
+ import { Popover as PopoverPrimitive } from "radix-ui";
3
3
  declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
5
  declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
- declare function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
- declare function PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>): import("react/jsx-runtime").JSX.Element;
9
- declare function PopoverDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
10
- export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
6
+ export { Popover, PopoverTrigger, PopoverContent, };
@@ -1,39 +1,35 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { cn as a } from "../../../lib/utils.js";
3
- import { Root as i, Portal as d, Content as p, Trigger as s } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
- function g({
5
- ...o
6
- }) {
7
- return /* @__PURE__ */ t(i, { "data-slot": "popover", ...o });
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Root as n, Portal as d, Content as s, Trigger as i } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
3
+ function u({ ...t }) {
4
+ return /* @__PURE__ */ e(n, { ...t });
8
5
  }
9
- function u({
10
- ...o
11
- }) {
12
- return /* @__PURE__ */ t(s, { "data-slot": "popover-trigger", ...o });
6
+ function p({ ...t }) {
7
+ return /* @__PURE__ */ e(i, { ...t });
13
8
  }
14
9
  function c({
15
- className: o,
16
- align: e = "center",
17
- sideOffset: r = 4,
18
- ...n
10
+ className: t,
11
+ align: o = "center",
12
+ sideOffset: a = 4,
13
+ ...r
19
14
  }) {
20
- return /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
21
- p,
15
+ return /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(
16
+ s,
22
17
  {
23
- "data-slot": "popover-content",
24
- align: e,
25
- sideOffset: r,
26
- className: a(
27
- "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",
28
- o
29
- ),
30
- ...n
18
+ align: o,
19
+ sideOffset: a,
20
+ className: [
21
+ "z-50 w-72 rounded-md border border-slate-200 bg-white p-4 text-slate-900 shadow-md outline-none",
22
+ "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",
23
+ "dark:border-slate-800 dark:bg-slate-900 dark:text-slate-50",
24
+ t
25
+ ].filter(Boolean).join(" "),
26
+ ...r
31
27
  }
32
28
  ) });
33
29
  }
34
30
  export {
35
- g as Popover,
31
+ u as Popover,
36
32
  c as PopoverContent,
37
- u as PopoverTrigger
33
+ p as PopoverTrigger
38
34
  };
39
- //# sourceMappingURL=popover.js.map
35
+ //# sourceMappingURL=Popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sources":["../../../../src/components/library/ui/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\n\nimport { cn } from '../../../lib/utils';\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"popover-header\"\n className={cn('flex flex-col gap-0.5 text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return (\n <div\n data-slot=\"popover-title\"\n className={cn('font-medium', className)}\n {...props}\n />\n );\n}\n\nfunction PopoverDescription({\n className,\n ...props\n}: React.ComponentProps<'p'>) {\n return (\n <p\n data-slot=\"popover-description\"\n className={cn('text-muted-foreground', className)}\n {...props}\n />\n );\n}\n\nexport {\n Popover,\n PopoverAnchor,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n};\n"],"names":["Popover","props","PopoverPrimitive.Root","PopoverTrigger","PopoverPrimitive.Trigger","PopoverContent","className","align","sideOffset","jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":";;;AAOA,SAASA,EAAQ;AAAA,EACf,GAAGC;AACL,GAAuD;AACrD,2BAAQC,GAAA,EAAsB,aAAU,WAAW,GAAGD,GAAO;AAC/D;AAEA,SAASE,EAAe;AAAA,EACtB,GAAGF;AACL,GAA0D;AACxD,2BAAQG,GAAA,EAAyB,aAAU,mBAAmB,GAAGH,GAAO;AAC1E;AAEA,SAASI,EAAe;AAAA,EACtB,WAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,YAAAC,IAAa;AAAA,EACb,GAAGP;AACL,GAA0D;AACxD,SACE,gBAAAQ,EAACC,GAAA,EACC,UAAA,gBAAAD;AAAA,IAACE;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,OAAAJ;AAAA,MACA,YAAAC;AAAA,MACA,WAAWI;AAAA,QACT;AAAA,QACAN;AAAA,MAAA;AAAA,MAED,GAAGL;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ;"}
1
+ {"version":3,"file":"Popover.js","sources":["../../../../src/components/library/ui/Popover.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Popover as PopoverPrimitive } from \"radix-ui\";\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = \"center\",\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n align={align}\n sideOffset={sideOffset}\n className={[\n \"z-50 w-72 rounded-md border border-slate-200 bg-white p-4 text-slate-900 shadow-md outline-none\",\n \"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\",\n \"dark:border-slate-800 dark:bg-slate-900 dark:text-slate-50\",\n className\n ].filter(Boolean).join(\" \")}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n};\n"],"names":["Popover","props","jsx","PopoverPrimitive.Root","PopoverTrigger","PopoverPrimitive.Trigger","PopoverContent","className","align","sideOffset","PopoverPrimitive.Portal","PopoverPrimitive.Content"],"mappings":";;AAGA,SAASA,EAAQ,EAAE,GAAGC,KAA6D;AACjF,SAAO,gBAAAC,EAACC,GAAA,EAAuB,GAAGF,EAAA,CAAO;AAC3C;AAEA,SAASG,EAAe,EAAE,GAAGH,KAAgE;AAC3F,SAAO,gBAAAC,EAACG,GAAA,EAA0B,GAAGJ,EAAA,CAAO;AAC9C;AAEA,SAASK,EAAe;AAAA,EACtB,WAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,YAAAC,IAAa;AAAA,EACb,GAAGR;AACL,GAA0D;AACxD,SACE,gBAAAC,EAACQ,GAAA,EACC,UAAA,gBAAAR;AAAA,IAACS;AAAAA,IAAA;AAAA,MACC,OAAAH;AAAA,MACA,YAAAC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACAF;AAAA,MAAA,EACA,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MACzB,GAAGN;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ;"}
@@ -1,15 +1,8 @@
1
- import * as React from 'react';
2
- import { Select as SelectPrimitive } from 'radix-ui';
1
+ import * as React from "react";
2
+ import { Select as SelectPrimitive } from "radix-ui";
3
3
  declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SelectTrigger({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
5
  declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
- declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
- size?: 'sm' | 'default';
8
- }): import("react/jsx-runtime").JSX.Element;
9
- declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
- declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
11
7
  declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
- declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
8
+ export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, };
@@ -1,182 +1,106 @@
1
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import { cn as n } from "../../../lib/utils.js";
3
- import { CheckIcon as d, ChevronDownIcon as i, ChevronUpIcon as c } from "lucide-react";
4
- import { Root as u, Portal as p, Content as g, Viewport as m, Group as f, Item as v, ItemIndicator as h, ItemText as x, Label as b, ScrollDownButton as z, ScrollUpButton as w, Separator as y, Trigger as S, Icon as N, Value as I } from "../../../node_modules/@radix-ui/react-select/dist/index.js";
5
- function T({
6
- ...e
7
- }) {
8
- return /* @__PURE__ */ t(u, { "data-slot": "select", ...e });
9
- }
10
- function U({
11
- className: e,
12
- ...a
13
- }) {
14
- return /* @__PURE__ */ t(
15
- f,
16
- {
17
- "data-slot": "select-group",
18
- className: n("scroll-my-1 p-1", e),
19
- ...a
20
- }
21
- );
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { Root as n, Portal as s, Content as d, Viewport as i, Item as c, ItemIndicator as f, ItemText as u, Trigger as h, Icon as m, Value as p } from "../../../node_modules/@radix-ui/react-select/dist/index.js";
3
+ function x({ ...t }) {
4
+ return /* @__PURE__ */ e(n, { ...t });
22
5
  }
23
- function V({
24
- ...e
25
- }) {
26
- return /* @__PURE__ */ t(I, { "data-slot": "select-value", ...e });
27
- }
28
- function G({
29
- className: e,
30
- size: a = "default",
6
+ function b({
7
+ className: t,
31
8
  children: r,
32
- ...o
9
+ ...a
33
10
  }) {
34
- return /* @__PURE__ */ s(
35
- S,
11
+ return /* @__PURE__ */ l(
12
+ h,
36
13
  {
37
- "data-slot": "select-trigger",
38
- "data-size": a,
39
- className: n(
40
- "border-input data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
41
- e
42
- ),
43
- ...o,
14
+ className: [
15
+ "flex h-10 w-full items-center justify-between rounded-lg border border-slate-200 bg-white px-3 py-2",
16
+ "text-sm text-slate-900 placeholder:text-slate-400",
17
+ "focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2",
18
+ "disabled:cursor-not-allowed disabled:opacity-50",
19
+ "dark:border-slate-800 dark:bg-slate-900 dark:text-slate-50 dark:focus:ring-offset-slate-950",
20
+ t
21
+ ].filter(Boolean).join(" "),
22
+ ...a,
44
23
  children: [
45
24
  r,
46
- /* @__PURE__ */ t(N, { asChild: !0, children: /* @__PURE__ */ t(i, { className: "text-muted-foreground size-4 pointer-events-none" }) })
47
- ]
48
- }
49
- );
50
- }
51
- function L({
52
- className: e,
53
- children: a,
54
- position: r = "item-aligned",
55
- align: o = "center",
56
- ...l
57
- }) {
58
- return /* @__PURE__ */ t(p, { children: /* @__PURE__ */ s(
59
- g,
60
- {
61
- "data-slot": "select-content",
62
- "data-align-trigger": r === "item-aligned",
63
- className: n(
64
- "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 min-w-36 rounded-lg shadow-md ring-1 duration-100 relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none",
65
- r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
66
- e
67
- ),
68
- position: r,
69
- align: o,
70
- ...l,
71
- children: [
72
- /* @__PURE__ */ t(_, {}),
73
- /* @__PURE__ */ t(
74
- m,
25
+ /* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", children: /* @__PURE__ */ e(
26
+ "path",
75
27
  {
76
- "data-position": r,
77
- className: n(
78
- "data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",
79
- r === "popper" && ""
80
- ),
81
- children: a
28
+ d: "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.26618 11.9026 7.38064 11.95 7.49999 11.95C7.61933 11.95 7.73379 11.9026 7.81819 11.8182L10.0682 9.56819Z",
29
+ fill: "currentColor"
82
30
  }
83
- ),
84
- /* @__PURE__ */ t(k, {})
85
- ]
86
- }
87
- ) });
88
- }
89
- function R({
90
- className: e,
91
- ...a
92
- }) {
93
- return /* @__PURE__ */ t(
94
- b,
95
- {
96
- "data-slot": "select-label",
97
- className: n("text-muted-foreground px-1.5 py-1 text-xs", e),
98
- ...a
99
- }
100
- );
101
- }
102
- function P({
103
- className: e,
104
- children: a,
105
- ...r
106
- }) {
107
- return /* @__PURE__ */ s(
108
- v,
109
- {
110
- "data-slot": "select-item",
111
- className: n(
112
- "focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
113
- e
114
- ),
115
- ...r,
116
- children: [
117
- /* @__PURE__ */ t("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(d, { className: "pointer-events-none" }) }) }),
118
- /* @__PURE__ */ t(x, { children: a })
31
+ ) }) })
119
32
  ]
120
33
  }
121
34
  );
122
35
  }
123
- function q({
124
- className: e,
125
- ...a
126
- }) {
127
- return /* @__PURE__ */ t(
128
- y,
129
- {
130
- "data-slot": "select-separator",
131
- className: n("bg-border -mx-1 my-1 h-px pointer-events-none", e),
132
- ...a
133
- }
134
- );
36
+ function w({ ...t }) {
37
+ return /* @__PURE__ */ e(p, { ...t });
135
38
  }
136
- function _({
137
- className: e,
138
- ...a
39
+ function L({
40
+ className: t,
41
+ children: r,
42
+ position: a = "popper",
43
+ ...o
139
44
  }) {
140
- return /* @__PURE__ */ t(
141
- w,
45
+ return /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(
46
+ d,
142
47
  {
143
- "data-slot": "select-scroll-up-button",
144
- className: n(
145
- "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4",
146
- e
147
- ),
148
- ...a,
149
- children: /* @__PURE__ */ t(c, {})
48
+ className: [
49
+ "relative z-50 min-w-[8rem] overflow-hidden rounded-md border border-slate-200 bg-white text-slate-900 shadow-md",
50
+ "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",
51
+ "dark:border-slate-800 dark:bg-slate-900 dark:text-slate-50",
52
+ a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
53
+ t
54
+ ].filter(Boolean).join(" "),
55
+ position: a,
56
+ ...o,
57
+ children: /* @__PURE__ */ e(
58
+ i,
59
+ {
60
+ className: [
61
+ "p-1",
62
+ a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
63
+ ].filter(Boolean).join(" "),
64
+ children: r
65
+ }
66
+ )
150
67
  }
151
- );
68
+ ) });
152
69
  }
153
- function k({
154
- className: e,
70
+ function v({
71
+ className: t,
72
+ children: r,
155
73
  ...a
156
74
  }) {
157
- return /* @__PURE__ */ t(
158
- z,
75
+ return /* @__PURE__ */ l(
76
+ c,
159
77
  {
160
- "data-slot": "select-scroll-down-button",
161
- className: n(
162
- "bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4",
163
- e
164
- ),
78
+ className: [
79
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
80
+ "focus:bg-slate-100 focus:text-slate-900",
81
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
82
+ "dark:focus:bg-slate-800 dark:focus:text-slate-50",
83
+ t
84
+ ].filter(Boolean).join(" "),
165
85
  ...a,
166
- children: /* @__PURE__ */ t(i, {})
86
+ children: [
87
+ /* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", children: /* @__PURE__ */ e(
88
+ "path",
89
+ {
90
+ d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
91
+ fill: "currentColor"
92
+ }
93
+ ) }) }) }),
94
+ /* @__PURE__ */ e(u, { children: r })
95
+ ]
167
96
  }
168
97
  );
169
98
  }
170
99
  export {
171
- T as Select,
100
+ x as Select,
172
101
  L as SelectContent,
173
- U as SelectGroup,
174
- P as SelectItem,
175
- R as SelectLabel,
176
- k as SelectScrollDownButton,
177
- _ as SelectScrollUpButton,
178
- q as SelectSeparator,
179
- G as SelectTrigger,
180
- V as SelectValue
102
+ v as SelectItem,
103
+ b as SelectTrigger,
104
+ w as SelectValue
181
105
  };
182
- //# sourceMappingURL=select.js.map
106
+ //# sourceMappingURL=Select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sources":["../../../../src/components/library/ui/select.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Select as SelectPrimitive } from 'radix-ui';\n\nimport { cn } from '../../../lib/utils';\nimport { ChevronDownIcon, CheckIcon, ChevronUpIcon } from 'lucide-react';\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nfunction SelectGroup({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return (\n <SelectPrimitive.Group\n data-slot=\"select-group\"\n className={cn('scroll-my-1 p-1', className)}\n {...props}\n />\n );\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nfunction SelectTrigger({\n className,\n size = 'default',\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: 'sm' | 'default';\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(\n \"border-input data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"text-muted-foreground size-4 pointer-events-none\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'item-aligned',\n align = 'center',\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n data-align-trigger={position === 'item-aligned'}\n className={cn(\n 'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 min-w-36 rounded-lg shadow-md ring-1 duration-100 relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className\n )}\n position={position}\n align={align}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n data-position={position}\n className={cn(\n 'data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)',\n position === 'popper' && ''\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('text-muted-foreground px-1.5 py-1 text-xs', className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute right-2 flex size-4 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"pointer-events-none\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn('bg-border -mx-1 my-1 h-px pointer-events-none', className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n \"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n \"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"names":["Select","props","SelectPrimitive.Root","SelectGroup","className","jsx","SelectPrimitive.Group","cn","SelectValue","SelectPrimitive.Value","SelectTrigger","size","children","jsxs","SelectPrimitive.Trigger","SelectPrimitive.Icon","ChevronDownIcon","SelectContent","position","align","SelectPrimitive.Portal","SelectPrimitive.Content","SelectScrollUpButton","SelectPrimitive.Viewport","SelectScrollDownButton","SelectLabel","SelectPrimitive.Label","SelectItem","SelectPrimitive.Item","SelectPrimitive.ItemIndicator","CheckIcon","SelectPrimitive.ItemText","SelectSeparator","SelectPrimitive.Separator","SelectPrimitive.ScrollUpButton","ChevronUpIcon","SelectPrimitive.ScrollDownButton"],"mappings":"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"}
1
+ {"version":3,"file":"Select.js","sources":["../../../../src/components/library/ui/Select.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Select as SelectPrimitive } from \"radix-ui\";\n\nfunction Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root {...props} />;\n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n className={[\n \"flex h-10 w-full items-center justify-between rounded-lg border border-slate-200 bg-white px-3 py-2\",\n \"text-sm text-slate-900 placeholder:text-slate-400\",\n \"focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2\",\n \"disabled:cursor-not-allowed disabled:opacity-50\",\n \"dark:border-slate-800 dark:bg-slate-900 dark:text-slate-50 dark:focus:ring-offset-slate-950\",\n className\n ].filter(Boolean).join(\" \")}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\">\n <path\n d=\"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.26618 11.9026 7.38064 11.95 7.49999 11.95C7.61933 11.95 7.73379 11.9026 7.81819 11.8182L10.0682 9.56819Z\"\n fill=\"currentColor\"\n />\n </svg>\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value {...props} />;\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n className={[\n \"relative z-50 min-w-[8rem] overflow-hidden rounded-md border border-slate-200 bg-white text-slate-900 shadow-md\",\n \"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\",\n \"dark:border-slate-800 dark:bg-slate-900 dark:text-slate-50\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className\n ].filter(Boolean).join(\" \")}\n position={position}\n {...props}\n >\n <SelectPrimitive.Viewport\n className={[\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\"\n ].filter(Boolean).join(\" \")}\n >\n {children}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n className={[\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none\",\n \"focus:bg-slate-100 focus:text-slate-900\",\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n \"dark:focus:bg-slate-800 dark:focus:text-slate-50\",\n className\n ].filter(Boolean).join(\" \")}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" fill=\"none\">\n <path\n d=\"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z\"\n fill=\"currentColor\"\n />\n </svg>\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nexport {\n Select,\n SelectTrigger,\n SelectValue,\n SelectContent,\n SelectItem,\n};\n"],"names":["Select","props","jsx","SelectPrimitive.Root","SelectTrigger","className","children","jsxs","SelectPrimitive.Trigger","SelectPrimitive.Icon","SelectValue","SelectPrimitive.Value","SelectContent","position","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Viewport","SelectItem","SelectPrimitive.Item","SelectPrimitive.ItemIndicator","SelectPrimitive.ItemText"],"mappings":";;AAGA,SAASA,EAAO,EAAE,GAAGC,KAA4D;AAC/E,SAAO,gBAAAC,EAACC,GAAA,EAAsB,GAAGF,EAAA,CAAO;AAC1C;AAEA,SAASG,EAAc;AAAA,EACrB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGL;AACL,GAAyD;AACvD,SACE,gBAAAM;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACAH;AAAA,MAAA,EACA,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MACzB,GAAGJ;AAAA,MAEH,UAAA;AAAA,QAAAK;AAAA,QACD,gBAAAJ,EAACO,GAAA,EAAqB,SAAO,IAC3B,UAAA,gBAAAP,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QACnD,UAAA,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA,GAET,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAEA,SAASQ,EAAY,EAAE,GAAGT,KAA6D;AACrF,SAAO,gBAAAC,EAACS,GAAA,EAAuB,GAAGV,EAAA,CAAO;AAC3C;AAEA,SAASW,EAAc;AAAA,EACrB,WAAAP;AAAA,EACA,UAAAC;AAAA,EACA,UAAAO,IAAW;AAAA,EACX,GAAGZ;AACL,GAAyD;AACvD,SACE,gBAAAC,EAACY,GAAA,EACC,UAAA,gBAAAZ;AAAA,IAACa;AAAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACAF,MAAa,YACX;AAAA,QACFR;AAAA,MAAA,EACA,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MAC1B,UAAAQ;AAAA,MACC,GAAGZ;AAAA,MAEJ,UAAA,gBAAAC;AAAA,QAACc;AAAAA,QAAA;AAAA,UACC,WAAW;AAAA,YACT;AAAA,YACAH,MAAa,YACX;AAAA,UAAA,EACF,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,UAEzB,UAAAP;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA,GAEJ;AAEJ;AAEA,SAASW,EAAW;AAAA,EAClB,WAAAZ;AAAA,EACA,UAAAC;AAAA,EACA,GAAGL;AACL,GAAsD;AACpD,SACE,gBAAAM;AAAA,IAACW;AAAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACAb;AAAA,MAAA,EACA,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MACzB,GAAGJ;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAC,EAAC,UAAK,WAAU,gEACd,UAAA,gBAAAA,EAACiB,GAAA,EACC,UAAA,gBAAAjB,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QACnD,UAAA,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA,EACP,CACF,GACF,GACF;AAAA,QACA,gBAAAA,EAACkB,GAAA,EAA0B,UAAAd,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG1C;"}