brd-ui-kit 0.1.70 → 0.1.72
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/brd-ui-kit.css +1 -1
- package/dist/components/basic-table/basic-table.d.ts +3 -1
- package/dist/components/input-contact/input-contact.d.ts +2 -2
- package/dist/components/ui/calendar/calendar.d.ts +19 -0
- package/dist/components/ui/calendar/calendar.styles.d.ts +4 -0
- package/dist/components/ui/calendar/index.d.ts +2 -0
- package/dist/components/ui/calendar.d.ts +2 -0
- package/dist/components/ui/icon/icon-presets.d.ts +35 -0
- package/dist/components/ui/icon/icon.d.ts +11 -7
- package/dist/components/ui/icon/index.d.ts +3 -1
- package/dist/components/ui/radio-group/radio-group.styles.d.ts +1 -1
- package/dist/components/ui/sonner/sonner.styles.d.ts +1 -1
- package/dist/components/ui/switch/switch.styles.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts +2 -1
- package/dist/components-app-pagination-app-pagination.cjs +1 -1
- package/dist/components-app-pagination-app-pagination.cjs.map +1 -1
- package/dist/components-app-pagination-app-pagination.js +35 -35
- package/dist/components-app-pagination-app-pagination.js.map +1 -1
- package/dist/components-app-sidebar-app-sidebar.cjs +1 -1
- package/dist/components-app-sidebar-app-sidebar.cjs.map +1 -1
- package/dist/components-app-sidebar-app-sidebar.js +16 -16
- package/dist/components-app-sidebar-app-sidebar.js.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.cjs +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.js +3 -4
- package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs +2 -2
- package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +12 -12
- package/dist/components-basic-avatar-basic-avatar.js.map +1 -1
- package/dist/components-basic-table-basic-table.cjs +2 -2
- package/dist/components-basic-table-basic-table.cjs.map +1 -1
- package/dist/components-basic-table-basic-table.js +259 -255
- package/dist/components-basic-table-basic-table.js.map +1 -1
- package/dist/components-files-uploader-files-uploader.cjs +3 -3
- package/dist/components-files-uploader-files-uploader.cjs.map +1 -1
- package/dist/components-files-uploader-files-uploader.js +29 -29
- package/dist/components-files-uploader-files-uploader.js.map +1 -1
- package/dist/components-input-contact-input-contact.cjs +4 -8
- package/dist/components-input-contact-input-contact.cjs.map +1 -1
- package/dist/components-input-contact-input-contact.js +92 -109
- package/dist/components-input-contact-input-contact.js.map +1 -1
- package/dist/components-input-password-input-password.cjs +1 -1
- package/dist/components-input-password-input-password.cjs.map +1 -1
- package/dist/components-input-password-input-password.js +2 -2
- package/dist/components-input-password-input-password.js.map +1 -1
- package/dist/components-input-phone-input-phone.cjs +1 -29
- package/dist/components-input-phone-input-phone.cjs.map +1 -1
- package/dist/components-input-phone-input-phone.js +469 -814
- package/dist/components-input-phone-input-phone.js.map +1 -1
- package/dist/components-ui-button-button.styles.cjs +4 -4
- package/dist/components-ui-button-button.styles.cjs.map +1 -1
- package/dist/components-ui-button-button.styles.js +5 -5
- package/dist/components-ui-button-button.styles.js.map +1 -1
- package/dist/components-ui-calendar-calendar.cjs +13 -0
- package/dist/components-ui-calendar-calendar.cjs.map +1 -0
- package/dist/components-ui-calendar-calendar.js +3761 -0
- package/dist/components-ui-calendar-calendar.js.map +1 -0
- package/dist/components-ui-calendar-calendar.styles.cjs +14 -0
- package/dist/components-ui-calendar-calendar.styles.cjs.map +1 -0
- package/dist/components-ui-calendar-calendar.styles.js +34 -0
- package/dist/components-ui-calendar-calendar.styles.js.map +1 -0
- package/dist/components-ui-calendar.cjs +2 -0
- package/dist/components-ui-calendar.cjs.map +1 -0
- package/dist/components-ui-calendar.js +6 -0
- package/dist/components-ui-calendar.js.map +1 -0
- package/dist/components-ui-card-card.styles.cjs +2 -2
- package/dist/components-ui-card-card.styles.cjs.map +1 -1
- package/dist/components-ui-card-card.styles.js +6 -6
- package/dist/components-ui-card-card.styles.js.map +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs.map +1 -1
- package/dist/components-ui-checkbox-checkbox.js +12 -11
- package/dist/components-ui-checkbox-checkbox.js.map +1 -1
- package/dist/components-ui-checkbox-checkbox.styles.cjs +1 -1
- package/dist/components-ui-checkbox-checkbox.styles.cjs.map +1 -1
- package/dist/components-ui-checkbox-checkbox.styles.js +2 -2
- package/dist/components-ui-checkbox-checkbox.styles.js.map +1 -1
- package/dist/components-ui-combobox-combobox.cjs +4 -4
- package/dist/components-ui-combobox-combobox.cjs.map +1 -1
- package/dist/components-ui-combobox-combobox.js +18 -18
- package/dist/components-ui-combobox-combobox.js.map +1 -1
- package/dist/components-ui-dialog-dialog.cjs +1 -1
- package/dist/components-ui-dialog-dialog.cjs.map +1 -1
- package/dist/components-ui-dialog-dialog.js +4 -10
- package/dist/components-ui-dialog-dialog.js.map +1 -1
- package/dist/components-ui-field-field.js +13 -13
- package/dist/components-ui-icon-icon-presets.cjs +2 -0
- package/dist/components-ui-icon-icon-presets.cjs.map +1 -0
- package/dist/components-ui-icon-icon-presets.js +14 -0
- package/dist/components-ui-icon-icon-presets.js.map +1 -0
- package/dist/components-ui-icon-icon.cjs +1 -1
- package/dist/components-ui-icon-icon.cjs.map +1 -1
- package/dist/components-ui-icon-icon.js +62714 -34
- package/dist/components-ui-icon-icon.js.map +1 -1
- package/dist/components-ui-icon.cjs +1 -1
- package/dist/components-ui-icon.js +4 -2
- package/dist/components-ui-icon.js.map +1 -1
- package/dist/components-ui-pagination-pagination.cjs +1 -1
- package/dist/components-ui-pagination-pagination.cjs.map +1 -1
- package/dist/components-ui-pagination-pagination.js +50 -50
- package/dist/components-ui-pagination-pagination.js.map +1 -1
- package/dist/components-ui-popover-popover.js +4 -4
- package/dist/components-ui-radio-group-radio-group.styles.cjs +1 -1
- package/dist/components-ui-radio-group-radio-group.styles.cjs.map +1 -1
- package/dist/components-ui-radio-group-radio-group.styles.js +2 -2
- package/dist/components-ui-radio-group-radio-group.styles.js.map +1 -1
- package/dist/components-ui-select-select.cjs +1 -1
- package/dist/components-ui-select-select.cjs.map +1 -1
- package/dist/components-ui-select-select.js +10 -10
- package/dist/components-ui-select-select.js.map +1 -1
- package/dist/components-ui-sonner-sonner.cjs +1 -1
- package/dist/components-ui-sonner-sonner.cjs.map +1 -1
- package/dist/components-ui-sonner-sonner.js +14 -14
- package/dist/components-ui-sonner-sonner.js.map +1 -1
- package/dist/components-ui-sonner-sonner.styles.cjs +1 -1
- package/dist/components-ui-sonner-sonner.styles.cjs.map +1 -1
- package/dist/components-ui-sonner-sonner.styles.js +1 -1
- package/dist/components-ui-sonner-sonner.styles.js.map +1 -1
- package/dist/components-ui-switch-switch.styles.cjs +1 -1
- package/dist/components-ui-switch-switch.styles.cjs.map +1 -1
- package/dist/components-ui-switch-switch.styles.js +2 -2
- package/dist/components-ui-switch-switch.styles.js.map +1 -1
- package/dist/components-ui-table-table.cjs +4 -4
- package/dist/components-ui-table-table.cjs.map +1 -1
- package/dist/components-ui-table-table.js +89 -85
- package/dist/components-ui-table-table.js.map +1 -1
- package/dist/components-ui-tabs-tabs.styles.cjs +1 -1
- package/dist/components-ui-tabs-tabs.styles.cjs.map +1 -1
- package/dist/components-ui-tabs-tabs.styles.js +1 -1
- package/dist/components-ui-tabs-tabs.styles.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +23 -20
- package/dist/index.js.map +1 -1
- package/dist/types/types.d.ts +2 -2
- package/package.json +13 -1
- package/dist/components/ui/icon/icon-dictionary.d.ts +0 -60
- package/dist/components/ui/icon/overrides.d.ts +0 -21
- package/dist/components-ui-icon-icon-dictionary.cjs +0 -2
- package/dist/components-ui-icon-icon-dictionary.cjs.map +0 -1
- package/dist/components-ui-icon-icon-dictionary.js +0 -63
- package/dist/components-ui-icon-icon-dictionary.js.map +0 -1
- package/dist/components-ui-icon-overrides.cjs +0 -2
- package/dist/components-ui-icon-overrides.cjs.map +0 -1
- package/dist/components-ui-icon-overrides.js +0 -175
- package/dist/components-ui-icon-overrides.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./components-ui-icon-icon.cjs");exports.Icon=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components-ui-icon-icon.cjs"),o=require("./components-ui-icon-icon-presets.cjs");exports.Icon=e.Icon;exports.iconPresets=o.iconPresets;
|
|
2
2
|
//# sourceMappingURL=components-ui-icon.cjs.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Icon as
|
|
1
|
+
import { Icon as e } from "./components-ui-icon-icon.js";
|
|
2
|
+
import { iconPresets as c } from "./components-ui-icon-icon-presets.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
e as Icon,
|
|
5
|
+
c as iconPresets
|
|
4
6
|
};
|
|
5
7
|
//# sourceMappingURL=components-ui-icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-icon.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components-ui-icon.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime");require("react");const e=require("./lib-utils.cjs"),o=require("./components-ui-icon-icon.cjs");require("./components-ui-button-button.cjs");const P=require("./components-ui-button-button.styles.cjs"),l=({className:a,...n})=>i.jsx("nav",{role:"navigation","aria-label":"pagination",className:e.cn("mx-auto flex w-full justify-center",a),...n});l.displayName="Pagination";const r=({className:a,ref:n,...s})=>i.jsx("ul",{ref:n,className:e.cn("flex flex-row items-center gap-1",a),...s});r.displayName="PaginationContent";const c=({className:a,ref:n,...s})=>i.jsx("li",{ref:n,className:e.cn("",a),...s});c.displayName="PaginationItem";const t=({className:a,isActive:n,size:s=null,...u})=>i.jsx("a",{"aria-current":n?"page":void 0,className:e.cn(P.buttonVariants({size:s}),a),...u});t.displayName="PaginationLink";const g=({className:a,...n})=>i.jsxs(t,{"aria-label":"Go to previous page",size:"md",className:e.cn("gap-1 pl-2.5",a),...n,children:[i.jsx(o.Icon,{type:"caret-left",size:"small"}),i.jsx("span",{children:"Previous"})]});g.displayName="PaginationPrevious";const p=({className:a,...n})=>i.jsxs(t,{"aria-label":"Go to next page",size:"md",className:e.cn("gap-1 pr-2.5",a),...n,children:[i.jsx("span",{children:"Next"}),i.jsx(o.Icon,{type:"caret-right",size:"small"})]});p.displayName="PaginationNext";const m=({className:a,...n})=>i.jsxs("span",{"aria-hidden":!0,className:e.cn("flex h-9 w-9 items-center justify-center",a),...n,children:[i.jsx(o.Icon,{type:"dots-three",size:"small"}),i.jsx("span",{className:"sr-only",children:"More pages"})]});m.displayName="PaginationEllipsis";exports.Pagination=l;exports.PaginationContent=r;exports.PaginationEllipsis=m;exports.PaginationItem=c;exports.PaginationLink=t;exports.PaginationNext=p;exports.PaginationPrevious=g;
|
|
2
2
|
//# sourceMappingURL=components-ui-pagination-pagination.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-pagination-pagination.cjs","sources":["../src/components/ui/pagination/pagination.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"components-ui-pagination-pagination.cjs","sources":["../src/components/ui/pagination/pagination.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Icon } from \"../icon\";\nimport { buttonVariants, type ButtonProps } from \"../button\";\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<\"nav\">) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n);\nPagination.displayName = \"Pagination\";\n\ntype PaginationContentProps = React.ComponentPropsWithRef<\"ul\">;\ntype PaginationItemProps = React.ComponentPropsWithRef<\"li\">;\n\nconst PaginationContent = ({ className, ref, ...props }: PaginationContentProps) => (\n <ul\n ref={ref}\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n);\nPaginationContent.displayName = \"PaginationContent\";\n\nconst PaginationItem = ({ className, ref, ...props }: PaginationItemProps) => (\n <li\n ref={ref}\n className={cn(\"\", className)}\n {...props}\n />\n);\nPaginationItem.displayName = \"PaginationItem\";\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, \"size\"> &\n React.ComponentProps<\"a\">;\n\nconst PaginationLink = ({\n className,\n isActive,\n size = null,\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n buttonVariants({\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = \"PaginationLink\";\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"md\"\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <Icon type=\"caret-left\" size=\"small\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = \"PaginationPrevious\";\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"md\"\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <Icon type=\"caret-right\" size=\"small\" />\n </PaginationLink>\n);\nPaginationNext.displayName = \"PaginationNext\";\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<\"span\">) => (\n <span\n aria-hidden\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <Icon type=\"dots-three\" size=\"small\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = \"PaginationEllipsis\";\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","Icon","PaginationNext","PaginationEllipsis"],"mappings":"6TAMMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAClCC,EAAAA,IAAC,MAAA,CACC,KAAK,aACL,aAAW,aACX,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACN,EAEFF,EAAW,YAAc,aAKzB,MAAMK,EAAoB,CAAC,CAAE,UAAAJ,EAAW,IAAAK,EAAK,GAAGJ,KAC9CC,EAAAA,IAAC,KAAA,CACC,IAAAG,EACA,UAAWF,EAAAA,GAAG,mCAAoCH,CAAS,EAC1D,GAAGC,CAAA,CACN,EAEFG,EAAkB,YAAc,oBAEhC,MAAME,EAAiB,CAAC,CAAE,UAAAN,EAAW,IAAAK,EAAK,GAAGJ,KAC3CC,EAAAA,IAAC,KAAA,CACC,IAAAG,EACA,UAAWF,EAAAA,GAAG,GAAIH,CAAS,EAC1B,GAAGC,CAAA,CACN,EAEFK,EAAe,YAAc,iBAO7B,MAAMC,EAAiB,CAAC,CACtB,UAAAP,EACA,SAAAQ,EACA,KAAAC,EAAO,KACP,GAAGR,CACL,IACEC,EAAAA,IAAC,IAAA,CACC,eAAcM,EAAW,OAAS,OAClC,UAAWL,EAAAA,GACTO,iBAAe,CACb,KAAAD,CAAA,CACD,EACDT,CAAA,EAED,GAAGC,CAAA,CACN,EAEFM,EAAe,YAAc,iBAE7B,MAAMI,EAAqB,CAAC,CAC1B,UAAAX,EACA,GAAGC,CACL,IACEW,EAAAA,KAACL,EAAA,CACC,aAAW,sBACX,KAAK,KACL,UAAWJ,EAAAA,GAAG,eAAgBH,CAAS,EACtC,GAAGC,EAEJ,SAAA,CAAAC,EAAAA,IAACW,EAAAA,KAAA,CAAK,KAAK,aAAa,KAAK,QAAQ,EACrCX,EAAAA,IAAC,QAAK,SAAA,UAAA,CAAQ,CAAA,CAAA,CAChB,EAEFS,EAAmB,YAAc,qBAEjC,MAAMG,EAAiB,CAAC,CACtB,UAAAd,EACA,GAAGC,CACL,IACEW,EAAAA,KAACL,EAAA,CACC,aAAW,kBACX,KAAK,KACL,UAAWJ,EAAAA,GAAG,eAAgBH,CAAS,EACtC,GAAGC,EAEJ,SAAA,CAAAC,EAAAA,IAAC,QAAK,SAAA,MAAA,CAAI,EACVA,EAAAA,IAACW,EAAAA,KAAA,CAAK,KAAK,cAAc,KAAK,OAAA,CAAQ,CAAA,CAAA,CACxC,EAEFC,EAAe,YAAc,iBAE7B,MAAMC,EAAqB,CAAC,CAAE,UAAAf,EAAW,GAAGC,KAC1CW,EAAAA,KAAC,OAAA,CACC,cAAW,GACX,UAAWT,EAAAA,GAAG,2CAA4CH,CAAS,EAClE,GAAGC,EAEJ,SAAA,CAAAC,EAAAA,IAACW,EAAAA,KAAA,CAAK,KAAK,aAAa,KAAK,QAAQ,EACrCX,EAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,YAAA,CAAU,CAAA,CAAA,CACtC,EAEFa,EAAmB,YAAc"}
|
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { MoreHorizontal as r, ChevronRight as m, ChevronLeft as p } from "lucide-react";
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
3
2
|
import "react";
|
|
4
|
-
import { cn as
|
|
3
|
+
import { cn as n } from "./lib-utils.js";
|
|
4
|
+
import { Icon as o } from "./components-ui-icon-icon.js";
|
|
5
5
|
import "./components-ui-button-button.js";
|
|
6
|
-
import { buttonVariants as
|
|
7
|
-
const
|
|
6
|
+
import { buttonVariants as m } from "./components-ui-button-button.styles.js";
|
|
7
|
+
const p = ({ className: a, ...i }) => /* @__PURE__ */ e(
|
|
8
8
|
"nav",
|
|
9
9
|
{
|
|
10
10
|
role: "navigation",
|
|
11
11
|
"aria-label": "pagination",
|
|
12
|
-
className:
|
|
12
|
+
className: n("mx-auto flex w-full justify-center", a),
|
|
13
13
|
...i
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
|
-
|
|
17
|
-
const
|
|
16
|
+
p.displayName = "Pagination";
|
|
17
|
+
const c = ({ className: a, ref: i, ...t }) => /* @__PURE__ */ e(
|
|
18
18
|
"ul",
|
|
19
19
|
{
|
|
20
20
|
ref: i,
|
|
21
|
-
className:
|
|
22
|
-
...
|
|
21
|
+
className: n("flex flex-row items-center gap-1", a),
|
|
22
|
+
...t
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
|
-
|
|
26
|
-
const
|
|
25
|
+
c.displayName = "PaginationContent";
|
|
26
|
+
const g = ({ className: a, ref: i, ...t }) => /* @__PURE__ */ e(
|
|
27
27
|
"li",
|
|
28
28
|
{
|
|
29
29
|
ref: i,
|
|
30
|
-
className:
|
|
31
|
-
...
|
|
30
|
+
className: n("", a),
|
|
31
|
+
...t
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
|
|
35
|
-
const
|
|
34
|
+
g.displayName = "PaginationItem";
|
|
35
|
+
const l = ({
|
|
36
36
|
className: a,
|
|
37
37
|
isActive: i,
|
|
38
|
-
size:
|
|
39
|
-
...
|
|
40
|
-
}) => /* @__PURE__ */
|
|
38
|
+
size: t = null,
|
|
39
|
+
...r
|
|
40
|
+
}) => /* @__PURE__ */ e(
|
|
41
41
|
"a",
|
|
42
42
|
{
|
|
43
43
|
"aria-current": i ? "page" : void 0,
|
|
44
|
-
className:
|
|
45
|
-
|
|
46
|
-
size:
|
|
44
|
+
className: n(
|
|
45
|
+
m({
|
|
46
|
+
size: t
|
|
47
47
|
}),
|
|
48
48
|
a
|
|
49
49
|
),
|
|
50
|
-
...
|
|
50
|
+
...r
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
|
|
54
|
-
const
|
|
53
|
+
l.displayName = "PaginationLink";
|
|
54
|
+
const d = ({
|
|
55
55
|
className: a,
|
|
56
56
|
...i
|
|
57
|
-
}) => /* @__PURE__ */
|
|
58
|
-
|
|
57
|
+
}) => /* @__PURE__ */ s(
|
|
58
|
+
l,
|
|
59
59
|
{
|
|
60
60
|
"aria-label": "Go to previous page",
|
|
61
61
|
size: "md",
|
|
62
|
-
className:
|
|
62
|
+
className: n("gap-1 pl-2.5", a),
|
|
63
63
|
...i,
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ e(o, { type: "caret-left", size: "small" }),
|
|
66
|
+
/* @__PURE__ */ e("span", { children: "Previous" })
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
|
-
|
|
71
|
-
const
|
|
70
|
+
d.displayName = "PaginationPrevious";
|
|
71
|
+
const N = ({
|
|
72
72
|
className: a,
|
|
73
73
|
...i
|
|
74
|
-
}) => /* @__PURE__ */
|
|
75
|
-
|
|
74
|
+
}) => /* @__PURE__ */ s(
|
|
75
|
+
l,
|
|
76
76
|
{
|
|
77
77
|
"aria-label": "Go to next page",
|
|
78
78
|
size: "md",
|
|
79
|
-
className:
|
|
79
|
+
className: n("gap-1 pr-2.5", a),
|
|
80
80
|
...i,
|
|
81
81
|
children: [
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ e("span", { children: "Next" }),
|
|
83
|
+
/* @__PURE__ */ e(o, { type: "caret-right", size: "small" })
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
|
-
|
|
88
|
-
const
|
|
87
|
+
N.displayName = "PaginationNext";
|
|
88
|
+
const P = ({ className: a, ...i }) => /* @__PURE__ */ s(
|
|
89
89
|
"span",
|
|
90
90
|
{
|
|
91
91
|
"aria-hidden": !0,
|
|
92
|
-
className:
|
|
92
|
+
className: n("flex h-9 w-9 items-center justify-center", a),
|
|
93
93
|
...i,
|
|
94
94
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ e(o, { type: "dots-three", size: "small" }),
|
|
96
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "More pages" })
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
99
|
);
|
|
100
|
-
|
|
100
|
+
P.displayName = "PaginationEllipsis";
|
|
101
101
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
p as Pagination,
|
|
103
|
+
c as PaginationContent,
|
|
104
|
+
P as PaginationEllipsis,
|
|
105
|
+
g as PaginationItem,
|
|
106
|
+
l as PaginationLink,
|
|
107
|
+
N as PaginationNext,
|
|
108
|
+
d as PaginationPrevious
|
|
109
109
|
};
|
|
110
110
|
//# sourceMappingURL=components-ui-pagination-pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-pagination-pagination.js","sources":["../src/components/ui/pagination/pagination.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"components-ui-pagination-pagination.js","sources":["../src/components/ui/pagination/pagination.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Icon } from \"../icon\";\nimport { buttonVariants, type ButtonProps } from \"../button\";\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<\"nav\">) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n);\nPagination.displayName = \"Pagination\";\n\ntype PaginationContentProps = React.ComponentPropsWithRef<\"ul\">;\ntype PaginationItemProps = React.ComponentPropsWithRef<\"li\">;\n\nconst PaginationContent = ({ className, ref, ...props }: PaginationContentProps) => (\n <ul\n ref={ref}\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n);\nPaginationContent.displayName = \"PaginationContent\";\n\nconst PaginationItem = ({ className, ref, ...props }: PaginationItemProps) => (\n <li\n ref={ref}\n className={cn(\"\", className)}\n {...props}\n />\n);\nPaginationItem.displayName = \"PaginationItem\";\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, \"size\"> &\n React.ComponentProps<\"a\">;\n\nconst PaginationLink = ({\n className,\n isActive,\n size = null,\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n buttonVariants({\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = \"PaginationLink\";\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"md\"\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <Icon type=\"caret-left\" size=\"small\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = \"PaginationPrevious\";\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"md\"\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <Icon type=\"caret-right\" size=\"small\" />\n </PaginationLink>\n);\nPaginationNext.displayName = \"PaginationNext\";\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<\"span\">) => (\n <span\n aria-hidden\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <Icon type=\"dots-three\" size=\"small\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = \"PaginationEllipsis\";\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","Icon","PaginationNext","PaginationEllipsis"],"mappings":";;;;;;AAMA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAClC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAKzB,MAAMK,IAAoB,CAAC,EAAE,WAAAJ,GAAW,KAAAK,GAAK,GAAGJ,QAC9C,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAG;AAAA,IACA,WAAWF,EAAG,oCAAoCH,CAAS;AAAA,IAC1D,GAAGC;AAAA,EAAA;AACN;AAEFG,EAAkB,cAAc;AAEhC,MAAME,IAAiB,CAAC,EAAE,WAAAN,GAAW,KAAAK,GAAK,GAAGJ,QAC3C,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAG;AAAA,IACA,WAAWF,EAAG,IAAIH,CAAS;AAAA,IAC1B,GAAGC;AAAA,EAAA;AACN;AAEFK,EAAe,cAAc;AAO7B,MAAMC,IAAiB,CAAC;AAAA,EACtB,WAAAP;AAAA,EACA,UAAAQ;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGR;AACL,MACE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,gBAAcM,IAAW,SAAS;AAAA,IAClC,WAAWL;AAAA,MACTO,EAAe;AAAA,QACb,MAAAD;AAAA,MAAA,CACD;AAAA,MACDT;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN;AAEFM,EAAe,cAAc;AAE7B,MAAMI,IAAqB,CAAC;AAAA,EAC1B,WAAAX;AAAA,EACA,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ib-utils.js";
|
|
39
|
-
import { popoverContentClassNames as n,
|
|
39
|
+
import { popoverContentClassNames as n, popoverDescriptionClassNames as a, popoverHeaderClassNames as s, popoverTitleClassNames as v } from "./components-ui-popover-popover.styles.js";
|
|
40
40
|
function X({
|
|
41
41
|
...o
|
|
42
42
|
}) {
|
|
@@ -77,7 +77,7 @@ function $({ className: o, ...t }) {
|
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
79
|
"data-slot": "popover-header",
|
|
80
|
-
className: i(
|
|
80
|
+
className: i(s, o),
|
|
81
81
|
...t
|
|
82
82
|
}
|
|
83
83
|
);
|
|
@@ -87,7 +87,7 @@ function oo({ className: o, ...t }) {
|
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
89
|
"data-slot": "popover-title",
|
|
90
|
-
className: i(
|
|
90
|
+
className: i(v, o),
|
|
91
91
|
...t
|
|
92
92
|
}
|
|
93
93
|
);
|
|
@@ -100,7 +100,7 @@ function ro({
|
|
|
100
100
|
"p",
|
|
101
101
|
{
|
|
102
102
|
"data-slot": "popover-description",
|
|
103
|
-
className: i(
|
|
103
|
+
className: i(a, o),
|
|
104
104
|
...t
|
|
105
105
|
}
|
|
106
106
|
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["grid gap-2"],r=["group size-5 cursor-pointer place-content-center rounded-full border transition-colors duration-200","border-inp-hover-border bg-primary-bg","data-[state=checked]:border-primary-text","enabled:hover:border-inp-hover-border enabled:hover:bg-tertiary-bg","enabled:hover:data-[state=checked]:border-inp-hover-border enabled:hover:data-[state=checked]:bg-tertiary-bg","disabled:cursor-not-allowed disabled:border-disabled-border disabled:bg-disabled-bg","disabled:data-[state=checked]:border-disabled-border disabled:data-[state=checked]:bg-disabled-bg","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border"],o=["flex items-center justify-center"],a=["size-2.5 rounded-full bg-primary-text transition-colors duration-200","group-hover:bg-secondary-text","group-disabled:bg-disabled-text"];exports.radioGroupIndicatorClassNames=o;exports.radioGroupIndicatorDotClassNames=a;exports.radioGroupItemClassNames=r;exports.radioGroupRootClassNames=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["grid gap-2"],r=["group size-5 cursor-pointer place-content-center rounded-full border transition-colors duration-200","border-inp-hover-border bg-primary-bg","data-[state=checked]:border-primary-text","enabled:hover:border-inp-hover-border enabled:hover:bg-tertiary-bg","enabled:hover:data-[state=checked]:border-inp-hover-border enabled:hover:data-[state=checked]:bg-tertiary-bg","disabled:cursor-not-allowed disabled:border-inp-disabled-border disabled:bg-disabled-bg","disabled:data-[state=checked]:border-inp-disabled-border disabled:data-[state=checked]:bg-disabled-bg","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border"],o=["flex items-center justify-center"],a=["size-2.5 rounded-full bg-primary-text transition-colors duration-200","group-hover:bg-secondary-text","group-disabled:bg-disabled-text"];exports.radioGroupIndicatorClassNames=o;exports.radioGroupIndicatorDotClassNames=a;exports.radioGroupItemClassNames=r;exports.radioGroupRootClassNames=e;
|
|
2
2
|
//# sourceMappingURL=components-ui-radio-group-radio-group.styles.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-radio-group-radio-group.styles.cjs","sources":["../src/components/ui/radio-group/radio-group.styles.ts"],"sourcesContent":["export const radioGroupRootClassNames = [\"grid gap-2\"] as const;\n\nexport const radioGroupItemClassNames = [\n \"group size-5 cursor-pointer place-content-center rounded-full border transition-colors duration-200\",\n \"border-inp-hover-border bg-primary-bg\",\n \"data-[state=checked]:border-primary-text\",\n \"enabled:hover:border-inp-hover-border enabled:hover:bg-tertiary-bg\",\n \"enabled:hover:data-[state=checked]:border-inp-hover-border enabled:hover:data-[state=checked]:bg-tertiary-bg\",\n \"disabled:cursor-not-allowed disabled:border-disabled-border disabled:bg-disabled-bg\",\n \"disabled:data-[state=checked]:border-disabled-border disabled:data-[state=checked]:bg-disabled-bg\",\n \"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border\",\n] as const;\n\nexport const radioGroupIndicatorClassNames = [\n \"flex items-center justify-center\",\n] as const;\n\nexport const radioGroupIndicatorDotClassNames = [\n \"size-2.5 rounded-full bg-primary-text transition-colors duration-200\",\n \"group-hover:bg-secondary-text\",\n \"group-disabled:bg-disabled-text\",\n] as const;\n"],"names":["radioGroupRootClassNames","radioGroupItemClassNames","radioGroupIndicatorClassNames","radioGroupIndicatorDotClassNames"],"mappings":"gFAAO,MAAMA,EAA2B,CAAC,YAAY,EAExCC,EAA2B,CACtC,sGACA,wCACA,2CACA,qEACA,+GACA,
|
|
1
|
+
{"version":3,"file":"components-ui-radio-group-radio-group.styles.cjs","sources":["../src/components/ui/radio-group/radio-group.styles.ts"],"sourcesContent":["export const radioGroupRootClassNames = [\"grid gap-2\"] as const;\n\nexport const radioGroupItemClassNames = [\n \"group size-5 cursor-pointer place-content-center rounded-full border transition-colors duration-200\",\n \"border-inp-hover-border bg-primary-bg\",\n \"data-[state=checked]:border-primary-text\",\n \"enabled:hover:border-inp-hover-border enabled:hover:bg-tertiary-bg\",\n \"enabled:hover:data-[state=checked]:border-inp-hover-border enabled:hover:data-[state=checked]:bg-tertiary-bg\",\n \"disabled:cursor-not-allowed disabled:border-inp-disabled-border disabled:bg-disabled-bg\",\n \"disabled:data-[state=checked]:border-inp-disabled-border disabled:data-[state=checked]:bg-disabled-bg\",\n \"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border\",\n] as const;\n\nexport const radioGroupIndicatorClassNames = [\n \"flex items-center justify-center\",\n] as const;\n\nexport const radioGroupIndicatorDotClassNames = [\n \"size-2.5 rounded-full bg-primary-text transition-colors duration-200\",\n \"group-hover:bg-secondary-text\",\n \"group-disabled:bg-disabled-text\",\n] as const;\n"],"names":["radioGroupRootClassNames","radioGroupItemClassNames","radioGroupIndicatorClassNames","radioGroupIndicatorDotClassNames"],"mappings":"gFAAO,MAAMA,EAA2B,CAAC,YAAY,EAExCC,EAA2B,CACtC,sGACA,wCACA,2CACA,qEACA,+GACA,0FACA,wGACA,qFACF,EAEaC,EAAgC,CAC3C,kCACF,EAEaC,EAAmC,CAC9C,uEACA,gCACA,iCACF"}
|
|
@@ -4,8 +4,8 @@ const e = ["grid gap-2"], r = [
|
|
|
4
4
|
"data-[state=checked]:border-primary-text",
|
|
5
5
|
"enabled:hover:border-inp-hover-border enabled:hover:bg-tertiary-bg",
|
|
6
6
|
"enabled:hover:data-[state=checked]:border-inp-hover-border enabled:hover:data-[state=checked]:bg-tertiary-bg",
|
|
7
|
-
"disabled:cursor-not-allowed disabled:border-disabled-border disabled:bg-disabled-bg",
|
|
8
|
-
"disabled:data-[state=checked]:border-disabled-border disabled:data-[state=checked]:bg-disabled-bg",
|
|
7
|
+
"disabled:cursor-not-allowed disabled:border-inp-disabled-border disabled:bg-disabled-bg",
|
|
8
|
+
"disabled:data-[state=checked]:border-inp-disabled-border disabled:data-[state=checked]:bg-disabled-bg",
|
|
9
9
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border"
|
|
10
10
|
], o = [
|
|
11
11
|
"flex items-center justify-center"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-radio-group-radio-group.styles.js","sources":["../src/components/ui/radio-group/radio-group.styles.ts"],"sourcesContent":["export const radioGroupRootClassNames = [\"grid gap-2\"] as const;\n\nexport const radioGroupItemClassNames = [\n \"group size-5 cursor-pointer place-content-center rounded-full border transition-colors duration-200\",\n \"border-inp-hover-border bg-primary-bg\",\n \"data-[state=checked]:border-primary-text\",\n \"enabled:hover:border-inp-hover-border enabled:hover:bg-tertiary-bg\",\n \"enabled:hover:data-[state=checked]:border-inp-hover-border enabled:hover:data-[state=checked]:bg-tertiary-bg\",\n \"disabled:cursor-not-allowed disabled:border-disabled-border disabled:bg-disabled-bg\",\n \"disabled:data-[state=checked]:border-disabled-border disabled:data-[state=checked]:bg-disabled-bg\",\n \"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border\",\n] as const;\n\nexport const radioGroupIndicatorClassNames = [\n \"flex items-center justify-center\",\n] as const;\n\nexport const radioGroupIndicatorDotClassNames = [\n \"size-2.5 rounded-full bg-primary-text transition-colors duration-200\",\n \"group-hover:bg-secondary-text\",\n \"group-disabled:bg-disabled-text\",\n] as const;\n"],"names":["radioGroupRootClassNames","radioGroupItemClassNames","radioGroupIndicatorClassNames","radioGroupIndicatorDotClassNames"],"mappings":"AAAO,MAAMA,IAA2B,CAAC,YAAY,GAExCC,IAA2B;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAgC;AAAA,EAC3C;AACF,GAEaC,IAAmC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF;"}
|
|
1
|
+
{"version":3,"file":"components-ui-radio-group-radio-group.styles.js","sources":["../src/components/ui/radio-group/radio-group.styles.ts"],"sourcesContent":["export const radioGroupRootClassNames = [\"grid gap-2\"] as const;\n\nexport const radioGroupItemClassNames = [\n \"group size-5 cursor-pointer place-content-center rounded-full border transition-colors duration-200\",\n \"border-inp-hover-border bg-primary-bg\",\n \"data-[state=checked]:border-primary-text\",\n \"enabled:hover:border-inp-hover-border enabled:hover:bg-tertiary-bg\",\n \"enabled:hover:data-[state=checked]:border-inp-hover-border enabled:hover:data-[state=checked]:bg-tertiary-bg\",\n \"disabled:cursor-not-allowed disabled:border-inp-disabled-border disabled:bg-disabled-bg\",\n \"disabled:data-[state=checked]:border-inp-disabled-border disabled:data-[state=checked]:bg-disabled-bg\",\n \"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border\",\n] as const;\n\nexport const radioGroupIndicatorClassNames = [\n \"flex items-center justify-center\",\n] as const;\n\nexport const radioGroupIndicatorDotClassNames = [\n \"size-2.5 rounded-full bg-primary-text transition-colors duration-200\",\n \"group-hover:bg-secondary-text\",\n \"group-disabled:bg-disabled-text\",\n] as const;\n"],"names":["radioGroupRootClassNames","radioGroupItemClassNames","radioGroupIndicatorClassNames","radioGroupIndicatorDotClassNames"],"mappings":"AAAO,MAAMA,IAA2B,CAAC,YAAY,GAExCC,IAA2B;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAgC;AAAA,EAC3C;AACF,GAEaC,IAAmC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("react");require("@radix-ui/react-accessible-icon");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-aspect-ratio");require("@radix-ui/react-avatar");require("@radix-ui/react-checkbox");require("@radix-ui/react-collapsible");require("@radix-ui/react-context-menu");require("@radix-ui/react-dialog");require("@radix-ui/react-direction");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-form");require("@radix-ui/react-hover-card");require("@radix-ui/react-label");require("@radix-ui/react-menubar");require("@radix-ui/react-navigation-menu");require("@radix-ui/react-one-time-password-field");require("@radix-ui/react-password-toggle-field");require("@radix-ui/react-popover");require("@radix-ui/react-portal");require("@radix-ui/react-progress");require("@radix-ui/react-radio-group");require("@radix-ui/react-scroll-area");const q=require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-slider");require("@radix-ui/react-slot");require("@radix-ui/react-switch");require("@radix-ui/react-tabs");require("@radix-ui/react-toast");require("@radix-ui/react-toggle");require("@radix-ui/react-toggle-group");require("@radix-ui/react-toolbar");require("@radix-ui/react-tooltip");require("@radix-ui/react-visually-hidden");const a=require("./lib-utils.cjs"),S=require("./components-ui-icon-icon.cjs"),s=require("./components-ui-select-select.styles.cjs");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("react");require("@radix-ui/react-accessible-icon");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-aspect-ratio");require("@radix-ui/react-avatar");require("@radix-ui/react-checkbox");require("@radix-ui/react-collapsible");require("@radix-ui/react-context-menu");require("@radix-ui/react-dialog");require("@radix-ui/react-direction");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-form");require("@radix-ui/react-hover-card");require("@radix-ui/react-label");require("@radix-ui/react-menubar");require("@radix-ui/react-navigation-menu");require("@radix-ui/react-one-time-password-field");require("@radix-ui/react-password-toggle-field");require("@radix-ui/react-popover");require("@radix-ui/react-portal");require("@radix-ui/react-progress");require("@radix-ui/react-radio-group");require("@radix-ui/react-scroll-area");const q=require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-slider");require("@radix-ui/react-slot");require("@radix-ui/react-switch");require("@radix-ui/react-tabs");require("@radix-ui/react-toast");require("@radix-ui/react-toggle");require("@radix-ui/react-toggle-group");require("@radix-ui/react-toolbar");require("@radix-ui/react-tooltip");require("@radix-ui/react-visually-hidden");const a=require("./lib-utils.cjs"),S=require("./components-ui-icon-icon.cjs"),s=require("./components-ui-select-select.styles.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const c in e)if(c!=="default"){const n=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(t,c,n.get?n:{enumerable:!0,get:()=>e[c]})}}return t.default=e,Object.freeze(t)}const l=d(q);function p({...e}){return r.jsx(l.Root,{"data-slot":"select",...e})}function j({className:e,...t}){return r.jsx(l.Group,{"data-slot":"select-group",className:a.cn(s.selectGroupClassName,e),...t})}function N({...e}){return r.jsx(l.Value,{"data-slot":"select-value",...e})}function g({className:e,size:t="default",children:c,...n}){return r.jsxs(l.Trigger,{"data-slot":"select-trigger","data-size":t,className:a.cn(s.selectTriggerClassName,e),...n,children:[c,r.jsx(l.Icon,{asChild:!0,children:r.jsx(S.Icon,{className:s.selectIconClassName,type:"caret-down"})})]})}function f({className:e,children:t,position:c="popper",align:n="center",sideOffset:i=10,...m}){return r.jsx(l.Portal,{children:r.jsxs(l.Content,{"data-slot":"select-content","data-align-trigger":c==="item-aligned",className:a.cn(s.selectContentClassName,c==="popper"&&"",e),position:c,align:n,sideOffset:i,...m,children:[r.jsx(u,{}),r.jsx(l.Viewport,{"data-position":c,className:a.cn(s.selectViewportClassName,c==="popper"&&""),children:t}),r.jsx(o,{})]})})}function x({className:e,...t}){return r.jsx(l.Label,{"data-slot":"select-label",className:a.cn(s.selectLabelClassName,e),...t})}function b({className:e,children:t,...c}){return r.jsxs(l.Item,{"data-slot":"select-item",className:a.cn(s.selectItemClassName,e),...c,children:[r.jsx("span",{className:s.selectItemIndicatorClassName,children:r.jsx(l.ItemIndicator,{})}),r.jsx(l.ItemText,{children:t})]})}function C({className:e,...t}){return r.jsx(l.Separator,{"data-slot":"select-separator",className:a.cn(s.selectSeparatorClassName,e),...t})}function u({className:e,...t}){return r.jsx(l.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:a.cn(s.selectScrollButtonClassName,e),...t})}function o({className:e,...t}){return r.jsx(l.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:a.cn(s.selectScrollButtonClassName,e),...t})}exports.Select=p;exports.SelectContent=f;exports.SelectGroup=j;exports.SelectItem=b;exports.SelectLabel=x;exports.SelectScrollDownButton=o;exports.SelectScrollUpButton=u;exports.SelectSeparator=C;exports.SelectTrigger=g;exports.SelectValue=N;
|
|
2
2
|
//# sourceMappingURL=components-ui-select-select.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-select-select.cjs","sources":["../src/components/ui/select/select.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Select as SelectPrimitive } from \"radix-ui\";\n\nimport { cn } from \"@/lib/utils\";\n// import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from \"lucide-react\";\nimport { Icon } from \"../icon\";\nimport {\n selectContentClassName,\n selectGroupClassName,\n selectIconClassName,\n selectItemClassName,\n selectItemIndicatorClassName,\n selectLabelClassName,\n selectScrollButtonClassName,\n selectSeparatorClassName,\n selectTriggerClassName,\n selectViewportClassName,\n} from \"./select.styles\";\n\ntype SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;\ntype SelectGroupProps = React.ComponentProps<typeof SelectPrimitive.Group>;\ntype SelectValueProps = React.ComponentProps<typeof SelectPrimitive.Value>;\ntype SelectTriggerProps = React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"sm\" | \"default\";\n};\ntype SelectContentProps = React.ComponentProps<typeof SelectPrimitive.Content>;\ntype SelectLabelProps = React.ComponentProps<typeof SelectPrimitive.Label>;\ntype SelectItemProps = React.ComponentProps<typeof SelectPrimitive.Item>;\ntype SelectSeparatorProps = React.ComponentProps<typeof SelectPrimitive.Separator>;\ntype SelectScrollUpButtonProps = React.ComponentProps<\n typeof SelectPrimitive.ScrollUpButton\n>;\ntype SelectScrollDownButtonProps = React.ComponentProps<\n typeof SelectPrimitive.ScrollDownButton\n>;\n\nfunction Select({ ...props }: SelectProps) {\n return (\n <SelectPrimitive.Root\n data-slot=\"select\"\n {...props}\n />\n );\n}\n\nfunction SelectGroup({ className, ...props }: SelectGroupProps) {\n return (\n <SelectPrimitive.Group\n data-slot=\"select-group\"\n className={cn(selectGroupClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectValue({ ...props }: SelectValueProps) {\n return (\n <SelectPrimitive.Value\n data-slot=\"select-value\"\n {...props}\n />\n );\n}\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n children,\n ...props\n}: SelectTriggerProps) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(selectTriggerClassName, className)}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <Icon\n className={selectIconClassName}\n type=\"
|
|
1
|
+
{"version":3,"file":"components-ui-select-select.cjs","sources":["../src/components/ui/select/select.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Select as SelectPrimitive } from \"radix-ui\";\n\nimport { cn } from \"@/lib/utils\";\n// import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from \"lucide-react\";\nimport { Icon } from \"../icon\";\nimport {\n selectContentClassName,\n selectGroupClassName,\n selectIconClassName,\n selectItemClassName,\n selectItemIndicatorClassName,\n selectLabelClassName,\n selectScrollButtonClassName,\n selectSeparatorClassName,\n selectTriggerClassName,\n selectViewportClassName,\n} from \"./select.styles\";\n\ntype SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;\ntype SelectGroupProps = React.ComponentProps<typeof SelectPrimitive.Group>;\ntype SelectValueProps = React.ComponentProps<typeof SelectPrimitive.Value>;\ntype SelectTriggerProps = React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"sm\" | \"default\";\n};\ntype SelectContentProps = React.ComponentProps<typeof SelectPrimitive.Content>;\ntype SelectLabelProps = React.ComponentProps<typeof SelectPrimitive.Label>;\ntype SelectItemProps = React.ComponentProps<typeof SelectPrimitive.Item>;\ntype SelectSeparatorProps = React.ComponentProps<typeof SelectPrimitive.Separator>;\ntype SelectScrollUpButtonProps = React.ComponentProps<\n typeof SelectPrimitive.ScrollUpButton\n>;\ntype SelectScrollDownButtonProps = React.ComponentProps<\n typeof SelectPrimitive.ScrollDownButton\n>;\n\nfunction Select({ ...props }: SelectProps) {\n return (\n <SelectPrimitive.Root\n data-slot=\"select\"\n {...props}\n />\n );\n}\n\nfunction SelectGroup({ className, ...props }: SelectGroupProps) {\n return (\n <SelectPrimitive.Group\n data-slot=\"select-group\"\n className={cn(selectGroupClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectValue({ ...props }: SelectValueProps) {\n return (\n <SelectPrimitive.Value\n data-slot=\"select-value\"\n {...props}\n />\n );\n}\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n children,\n ...props\n}: SelectTriggerProps) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(selectTriggerClassName, className)}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <Icon\n className={selectIconClassName}\n type=\"caret-down\"\n />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n align = \"center\",\n sideOffset = 10,\n ...props\n}: SelectContentProps) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n data-align-trigger={position === \"item-aligned\"}\n className={cn(selectContentClassName, position === \"popper\" && \"\", className)}\n position={position}\n align={align}\n sideOffset={sideOffset}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n data-position={position}\n className={cn(selectViewportClassName, position === \"popper\" && \"\")}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({ className, ...props }: SelectLabelProps) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(selectLabelClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({ className, children, ...props }: SelectItemProps) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(selectItemClassName, className)}\n {...props}\n >\n <span className={selectItemIndicatorClassName}>\n <SelectPrimitive.ItemIndicator>\n {/* <CheckIcon className=\"text-primary-text pointer-events-none size-4\" /> */}\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({ className, ...props }: SelectSeparatorProps) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(selectSeparatorClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({ className, ...props }: SelectScrollUpButtonProps) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(selectScrollButtonClassName, className)}\n {...props}\n >\n {/* <ChevronUpIcon /> */}\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({ className, ...props }: SelectScrollDownButtonProps) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(selectScrollButtonClassName, className)}\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 type SelectContentProps,\n type SelectGroupProps,\n type SelectItemProps,\n type SelectLabelProps,\n type SelectProps,\n type SelectScrollDownButtonProps,\n type SelectScrollUpButtonProps,\n type SelectSeparatorProps,\n type SelectTriggerProps,\n type SelectValueProps,\n};\n"],"names":["Select","props","jsx","SelectPrimitive","SelectGroup","className","cn","selectGroupClassName","SelectValue","SelectTrigger","size","children","jsxs","selectTriggerClassName","Icon","selectIconClassName","SelectContent","position","align","sideOffset","selectContentClassName","SelectScrollUpButton","selectViewportClassName","SelectScrollDownButton","SelectLabel","selectLabelClassName","SelectItem","selectItemClassName","selectItemIndicatorClassName","SelectSeparator","selectSeparatorClassName","selectScrollButtonClassName"],"mappings":"w0DAoCA,SAASA,EAAO,CAAE,GAAGC,GAAsB,CACzC,OACEC,EAAAA,IAACC,EAAgB,KAAhB,CACC,YAAU,SACT,GAAGF,CAAA,CAAA,CAGV,CAEA,SAASG,EAAY,CAAE,UAAAC,EAAW,GAAGJ,GAA2B,CAC9D,OACEC,EAAAA,IAACC,EAAgB,MAAhB,CACC,YAAU,eACV,UAAWG,EAAAA,GAAGC,EAAAA,qBAAsBF,CAAS,EAC5C,GAAGJ,CAAA,CAAA,CAGV,CAEA,SAASO,EAAY,CAAE,GAA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AAA,qBAAsBpB,CAAS,EAC5C,GAAGJ,CAAA,CAAA,CAGV,CAEA,SAASyB,EAAW,CAAE,UAAArB,EAAW,SAAAM,EAAU,GAAGV,GAA0B,CACtE,OACEW,EAAAA,KAACT,EAAgB,KAAhB,CACC,YAAU,cACV,UAAWG,EAAAA,GAAGqB,EAAAA,oBAAqBtB,CAAS,EAC3C,GAAGJ,EAEJ,SAAA,CAAAC,EAAAA,IAAC,QAAK,UAAW0B,+BACf,eAACzB,EAAgB,cAAhB,CAAA,CAED,EACF,EACAD,EAAAA,IAACC,EAAgB,SAAhB,CAA0B,SAAAQ,CAAA,CAAS,CAAA,CAAA,CAAA,CAG1C,CAEA,SAASkB,EAAgB,CAAE,UAAAxB,EAAW,GAAGJ,GAA+B,CACtE,OACEC,EAAAA,IAACC,EAAgB,UAAhB,CACC,YAAU,mBACV,UAAWG,EAAAA,GAAGwB,EAAAA,yBAA0BzB,CAAS,EAChD,GAAGJ,CAAA,CAAA,CAGV,CAEA,SAASoB,EAAqB,CAAE,UAAAhB,EAAW,GAAGJ,GAAoC,CAChF,OACEC,EAAAA,IAACC,EAAgB,eAAhB,CACC,YAAU,0BACV,UAAWG,EAAAA,GAAGyB,EAAAA,4BAA6B1B,CAAS,EACnD,GAAGJ,CAAA,CAAA,CAKV,CAEA,SAASsB,EAAuB,CAAE,UAAAlB,EAAW,GAAGJ,GAAsC,CACpF,OACEC,EAAAA,IAACC,EAAgB,iBAAhB,CACC,YAAU,4BACV,UAAWG,EAAAA,GAAGyB,EAAAA,4BAA6B1B,CAAS,EACnD,GAAGJ,CAAA,CAAA,CAKV"}
|
|
@@ -37,7 +37,7 @@ import "@radix-ui/react-tooltip";
|
|
|
37
37
|
import "@radix-ui/react-visually-hidden";
|
|
38
38
|
import { cn as a } from "./lib-utils.js";
|
|
39
39
|
import { Icon as p } from "./components-ui-icon-icon.js";
|
|
40
|
-
import { selectItemIndicatorClassName as u,
|
|
40
|
+
import { selectItemIndicatorClassName as u, selectItemClassName as d, selectViewportClassName as N, selectContentClassName as S, selectGroupClassName as f, selectLabelClassName as C, selectScrollButtonClassName as c, selectSeparatorClassName as g, selectIconClassName as I, selectTriggerClassName as h } from "./components-ui-select-select.styles.js";
|
|
41
41
|
function ct({ ...t }) {
|
|
42
42
|
return /* @__PURE__ */ e(
|
|
43
43
|
o.Root,
|
|
@@ -52,7 +52,7 @@ function it({ className: t, ...r }) {
|
|
|
52
52
|
o.Group,
|
|
53
53
|
{
|
|
54
54
|
"data-slot": "select-group",
|
|
55
|
-
className: a(
|
|
55
|
+
className: a(f, t),
|
|
56
56
|
...r
|
|
57
57
|
}
|
|
58
58
|
);
|
|
@@ -77,15 +77,15 @@ function pt({
|
|
|
77
77
|
{
|
|
78
78
|
"data-slot": "select-trigger",
|
|
79
79
|
"data-size": r,
|
|
80
|
-
className: a(
|
|
80
|
+
className: a(h, t),
|
|
81
81
|
...s,
|
|
82
82
|
children: [
|
|
83
83
|
l,
|
|
84
84
|
/* @__PURE__ */ e(o.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
85
85
|
p,
|
|
86
86
|
{
|
|
87
|
-
className:
|
|
88
|
-
type: "
|
|
87
|
+
className: I,
|
|
88
|
+
type: "caret-down"
|
|
89
89
|
}
|
|
90
90
|
) })
|
|
91
91
|
]
|
|
@@ -105,7 +105,7 @@ function ut({
|
|
|
105
105
|
{
|
|
106
106
|
"data-slot": "select-content",
|
|
107
107
|
"data-align-trigger": l === "item-aligned",
|
|
108
|
-
className: a(
|
|
108
|
+
className: a(S, l === "popper" && "", t),
|
|
109
109
|
position: l,
|
|
110
110
|
align: s,
|
|
111
111
|
sideOffset: i,
|
|
@@ -116,7 +116,7 @@ function ut({
|
|
|
116
116
|
o.Viewport,
|
|
117
117
|
{
|
|
118
118
|
"data-position": l,
|
|
119
|
-
className: a(
|
|
119
|
+
className: a(N, l === "popper" && ""),
|
|
120
120
|
children: r
|
|
121
121
|
}
|
|
122
122
|
),
|
|
@@ -130,7 +130,7 @@ function dt({ className: t, ...r }) {
|
|
|
130
130
|
o.Label,
|
|
131
131
|
{
|
|
132
132
|
"data-slot": "select-label",
|
|
133
|
-
className: a(
|
|
133
|
+
className: a(C, t),
|
|
134
134
|
...r
|
|
135
135
|
}
|
|
136
136
|
);
|
|
@@ -140,7 +140,7 @@ function Nt({ className: t, children: r, ...l }) {
|
|
|
140
140
|
o.Item,
|
|
141
141
|
{
|
|
142
142
|
"data-slot": "select-item",
|
|
143
|
-
className: a(
|
|
143
|
+
className: a(d, t),
|
|
144
144
|
...l,
|
|
145
145
|
children: [
|
|
146
146
|
/* @__PURE__ */ e("span", { className: u, children: /* @__PURE__ */ e(o.ItemIndicator, {}) }),
|
|
@@ -154,7 +154,7 @@ function St({ className: t, ...r }) {
|
|
|
154
154
|
o.Separator,
|
|
155
155
|
{
|
|
156
156
|
"data-slot": "select-separator",
|
|
157
|
-
className: a(
|
|
157
|
+
className: a(g, t),
|
|
158
158
|
...r
|
|
159
159
|
}
|
|
160
160
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-select-select.js","sources":["../src/components/ui/select/select.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Select as SelectPrimitive } from \"radix-ui\";\n\nimport { cn } from \"@/lib/utils\";\n// import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from \"lucide-react\";\nimport { Icon } from \"../icon\";\nimport {\n selectContentClassName,\n selectGroupClassName,\n selectIconClassName,\n selectItemClassName,\n selectItemIndicatorClassName,\n selectLabelClassName,\n selectScrollButtonClassName,\n selectSeparatorClassName,\n selectTriggerClassName,\n selectViewportClassName,\n} from \"./select.styles\";\n\ntype SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;\ntype SelectGroupProps = React.ComponentProps<typeof SelectPrimitive.Group>;\ntype SelectValueProps = React.ComponentProps<typeof SelectPrimitive.Value>;\ntype SelectTriggerProps = React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"sm\" | \"default\";\n};\ntype SelectContentProps = React.ComponentProps<typeof SelectPrimitive.Content>;\ntype SelectLabelProps = React.ComponentProps<typeof SelectPrimitive.Label>;\ntype SelectItemProps = React.ComponentProps<typeof SelectPrimitive.Item>;\ntype SelectSeparatorProps = React.ComponentProps<typeof SelectPrimitive.Separator>;\ntype SelectScrollUpButtonProps = React.ComponentProps<\n typeof SelectPrimitive.ScrollUpButton\n>;\ntype SelectScrollDownButtonProps = React.ComponentProps<\n typeof SelectPrimitive.ScrollDownButton\n>;\n\nfunction Select({ ...props }: SelectProps) {\n return (\n <SelectPrimitive.Root\n data-slot=\"select\"\n {...props}\n />\n );\n}\n\nfunction SelectGroup({ className, ...props }: SelectGroupProps) {\n return (\n <SelectPrimitive.Group\n data-slot=\"select-group\"\n className={cn(selectGroupClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectValue({ ...props }: SelectValueProps) {\n return (\n <SelectPrimitive.Value\n data-slot=\"select-value\"\n {...props}\n />\n );\n}\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n children,\n ...props\n}: SelectTriggerProps) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(selectTriggerClassName, className)}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <Icon\n className={selectIconClassName}\n type=\"
|
|
1
|
+
{"version":3,"file":"components-ui-select-select.js","sources":["../src/components/ui/select/select.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Select as SelectPrimitive } from \"radix-ui\";\n\nimport { cn } from \"@/lib/utils\";\n// import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from \"lucide-react\";\nimport { Icon } from \"../icon\";\nimport {\n selectContentClassName,\n selectGroupClassName,\n selectIconClassName,\n selectItemClassName,\n selectItemIndicatorClassName,\n selectLabelClassName,\n selectScrollButtonClassName,\n selectSeparatorClassName,\n selectTriggerClassName,\n selectViewportClassName,\n} from \"./select.styles\";\n\ntype SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;\ntype SelectGroupProps = React.ComponentProps<typeof SelectPrimitive.Group>;\ntype SelectValueProps = React.ComponentProps<typeof SelectPrimitive.Value>;\ntype SelectTriggerProps = React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"sm\" | \"default\";\n};\ntype SelectContentProps = React.ComponentProps<typeof SelectPrimitive.Content>;\ntype SelectLabelProps = React.ComponentProps<typeof SelectPrimitive.Label>;\ntype SelectItemProps = React.ComponentProps<typeof SelectPrimitive.Item>;\ntype SelectSeparatorProps = React.ComponentProps<typeof SelectPrimitive.Separator>;\ntype SelectScrollUpButtonProps = React.ComponentProps<\n typeof SelectPrimitive.ScrollUpButton\n>;\ntype SelectScrollDownButtonProps = React.ComponentProps<\n typeof SelectPrimitive.ScrollDownButton\n>;\n\nfunction Select({ ...props }: SelectProps) {\n return (\n <SelectPrimitive.Root\n data-slot=\"select\"\n {...props}\n />\n );\n}\n\nfunction SelectGroup({ className, ...props }: SelectGroupProps) {\n return (\n <SelectPrimitive.Group\n data-slot=\"select-group\"\n className={cn(selectGroupClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectValue({ ...props }: SelectValueProps) {\n return (\n <SelectPrimitive.Value\n data-slot=\"select-value\"\n {...props}\n />\n );\n}\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n children,\n ...props\n}: SelectTriggerProps) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(selectTriggerClassName, className)}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <Icon\n className={selectIconClassName}\n type=\"caret-down\"\n />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n align = \"center\",\n sideOffset = 10,\n ...props\n}: SelectContentProps) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n data-align-trigger={position === \"item-aligned\"}\n className={cn(selectContentClassName, position === \"popper\" && \"\", className)}\n position={position}\n align={align}\n sideOffset={sideOffset}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n data-position={position}\n className={cn(selectViewportClassName, position === \"popper\" && \"\")}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({ className, ...props }: SelectLabelProps) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(selectLabelClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({ className, children, ...props }: SelectItemProps) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(selectItemClassName, className)}\n {...props}\n >\n <span className={selectItemIndicatorClassName}>\n <SelectPrimitive.ItemIndicator>\n {/* <CheckIcon className=\"text-primary-text pointer-events-none size-4\" /> */}\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({ className, ...props }: SelectSeparatorProps) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(selectSeparatorClassName, className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({ className, ...props }: SelectScrollUpButtonProps) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(selectScrollButtonClassName, className)}\n {...props}\n >\n {/* <ChevronUpIcon /> */}\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({ className, ...props }: SelectScrollDownButtonProps) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(selectScrollButtonClassName, className)}\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 type SelectContentProps,\n type SelectGroupProps,\n type SelectItemProps,\n type SelectLabelProps,\n type SelectProps,\n type SelectScrollDownButtonProps,\n type SelectScrollUpButtonProps,\n type SelectSeparatorProps,\n type SelectTriggerProps,\n type SelectValueProps,\n};\n"],"names":["Select","props","jsx","SelectPrimitive","SelectGroup","className","cn","selectGroupClassName","SelectValue","SelectTrigger","size","children","jsxs","selectTriggerClassName","Icon","selectIconClassName","SelectContent","position","align","sideOffset","selectContentClassName","SelectScrollUpButton","selectViewportClassName","SelectScrollDownButton","SelectLabel","selectLabelClassName","SelectItem","selectItemClassName","selectItemIndicatorClassName","SelectSeparator","selectSeparatorClassName","selectScrollButtonClassName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAASA,GAAO,EAAE,GAAGC,KAAsB;AACzC,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASG,GAAY,EAAE,WAAAC,GAAW,GAAGJ,KAA2B;AAC9D,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWG,EAAGC,GAAsBF,CAAS;AAAA,MAC5C,GAAGJ;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASO,GAAY,EAAE,GAAGP,KAA2B;AACnD,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASQ,GAAc;AAAA,EACrB,WAAAJ;AAAA,EACA,MAAAK,IAAO;AAAA,EACP,UAAAC;AAAA,EACA,GAAGV;AACL,GAAuB;AACrB,SACE,gBAAAW;AAAA,IAACT,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MAC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ict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("./index-DGxwh2Ms.cjs"),a=require("./components-ui-icon-icon.cjs"),t=require("./lib-utils.cjs"),n=require("./components-ui-sonner-sonner.styles.cjs"),l=({className:c,...r})=>{const{theme:i="system"}=o.z(),e="size-4";return s.jsx(o.Toaster,{theme:i,className:n.toasterClassName,icons:{success:s.jsx(a.Icon,{type:"check-circle",className:e}),info:s.jsx(a.Icon,{type:"info",className:e}),warning:s.jsx(a.Icon,{type:"warning",className:e}),error:s.jsx(a.Icon,{type:"x-circle",className:e}),loading:s.jsx(a.Icon,{type:"spinner-gap",className:t.cn(e,"animate-spin")}),close:s.jsx(a.Icon,{type:"x",className:e})},toastOptions:{unstyled:!0,classNames:{toast:t.cn(n.toastBaseClassNames,c),loading:n.toastLoadingClassNames,loader:n.toastLoaderClassNames}},...r})};exports.Toaster=l;
|
|
2
2
|
//# sourceMappingURL=components-ui-sonner-sonner.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-sonner-sonner.cjs","sources":["../src/components/ui/sonner/sonner.tsx"],"sourcesContent":["import { useTheme } from \"next-themes\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\nimport { Icon } from \"../icon\";\nimport { cn } from \"@/lib/utils\";\nimport {\n toasterClassName,\n toastBaseClassNames,\n toastLoadingClassNames,\n toastLoaderClassNames,\n} from \"./sonner.styles\";\n\nconst Toaster = ({ className, ...props }: ToasterProps) => {\n const { theme = \"system\" } = useTheme();\n const iconClassName = \"size-4\";\n\n return (\n <Sonner\n theme={theme as ToasterProps[\"theme\"]}\n className={toasterClassName}\n icons={{\n success: (\n <Icon\n type=\"circle
|
|
1
|
+
{"version":3,"file":"components-ui-sonner-sonner.cjs","sources":["../src/components/ui/sonner/sonner.tsx"],"sourcesContent":["import { useTheme } from \"next-themes\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\nimport { Icon } from \"../icon\";\nimport { cn } from \"@/lib/utils\";\nimport {\n toasterClassName,\n toastBaseClassNames,\n toastLoadingClassNames,\n toastLoaderClassNames,\n} from \"./sonner.styles\";\n\nconst Toaster = ({ className, ...props }: ToasterProps) => {\n const { theme = \"system\" } = useTheme();\n const iconClassName = \"size-4\";\n\n return (\n <Sonner\n theme={theme as ToasterProps[\"theme\"]}\n className={toasterClassName}\n icons={{\n success: (\n <Icon\n type=\"check-circle\"\n className={iconClassName}\n />\n ),\n info: (\n <Icon\n type=\"info\"\n className={iconClassName}\n />\n ),\n warning: (\n <Icon\n type=\"warning\"\n className={iconClassName}\n />\n ),\n error: (\n <Icon\n type=\"x-circle\"\n className={iconClassName}\n />\n ),\n loading: (\n <Icon\n type=\"spinner-gap\"\n className={cn(iconClassName, \"animate-spin\")}\n />\n ),\n close: (\n <Icon\n type=\"x\"\n className={iconClassName}\n />\n ),\n }}\n toastOptions={{\n unstyled: true,\n classNames: {\n toast: cn(toastBaseClassNames, className),\n loading: toastLoadingClassNames,\n loader: toastLoaderClassNames,\n },\n }}\n {...props}\n />\n );\n};\n\nexport { Toaster };\n"],"names":["Toaster","className","props","theme","useTheme","iconClassName","jsx","Sonner","toasterClassName","Icon","cn","toastBaseClassNames","toastLoadingClassNames","toastLoaderClassNames"],"mappings":"qRAWMA,EAAU,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAA0B,CACzD,KAAM,CAAE,MAAAC,EAAQ,QAAA,EAAaC,IAAA,EACvBC,EAAgB,SAEtB,OACEC,EAAAA,IAACC,EAAAA,QAAA,CACC,MAAAJ,EACA,UAAWK,EAAAA,iBACX,MAAO,CACL,QACEF,EAAAA,IAACG,EAAAA,KAAA,CACC,KAAK,eACL,UAAWJ,CAAA,CAAA,EAGf,KACEC,EAAAA,IAACG,EAAAA,KAAA,CACC,KAAK,OACL,UAAWJ,CAAA,CAAA,EAGf,QACEC,EAAAA,IAACG,EAAAA,KAAA,CACC,KAAK,UACL,UAAWJ,CAAA,CAAA,EAGf,MACEC,EAAAA,IAACG,EAAAA,KAAA,CACC,KAAK,WACL,UAAWJ,CAAA,CAAA,EAGf,QACEC,EAAAA,IAACG,EAAAA,KAAA,CACC,KAAK,cACL,UAAWC,EAAAA,GAAGL,EAAe,cAAc,CAAA,CAAA,EAG/C,MACEC,EAAAA,IAACG,EAAAA,KAAA,CACC,KAAK,IACL,UAAWJ,CAAA,CAAA,CACb,EAGJ,aAAc,CACZ,SAAU,GACV,WAAY,CACV,MAAOK,EAAAA,GAAGC,EAAAA,oBAAqBV,CAAS,EACxC,QAASW,EAAAA,uBACT,OAAQC,EAAAA,qBAAA,CACV,EAED,GAAGX,CAAA,CAAA,CAGV"}
|