brd-ui-kit 0.1.92 → 0.1.94
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/{approval-log.view-DC5xl6KF.cjs → approval-log.view-BMiYO7Cf.cjs} +4 -4
- package/dist/approval-log.view-BMiYO7Cf.cjs.map +1 -0
- package/dist/{approval-log.view-CZoufOXF.js → approval-log.view-D_-VDB_3.js} +67 -72
- package/dist/approval-log.view-D_-VDB_3.js.map +1 -0
- package/dist/components/ui/icon/icon-map.d.ts +7 -0
- package/dist/components/ui/icon/icon.d.ts +1 -1
- package/dist/components-approval-log-approval-log.cjs +1 -1
- package/dist/components-approval-log-approval-log.js +1 -1
- package/dist/components-approval-log-approval-log.view.cjs +1 -1
- package/dist/components-approval-log-approval-log.view.js +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.cjs +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.js +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +3 -2
- package/dist/components-basic-avatar-basic-avatar.js.map +1 -1
- package/dist/components-basic-avatar.cjs +1 -1
- package/dist/components-basic-avatar.js +1 -1
- package/dist/components-checkbox-group-checkbox-group.cjs +1 -1
- package/dist/components-checkbox-group-checkbox-group.js +1 -1
- package/dist/components-input-contact-input-contact.cjs +1 -1
- package/dist/components-input-contact-input-contact.js +1 -1
- package/dist/components-input-search-input-search.cjs +1 -1
- package/dist/components-input-search-input-search.js +1 -1
- package/dist/components-story-drawer-story-drawer.cjs +1 -1
- package/dist/components-story-drawer-story-drawer.js +1 -1
- package/dist/components-ui-icon-icon-map.cjs +1 -1
- package/dist/components-ui-icon-icon-map.cjs.map +1 -1
- package/dist/components-ui-icon-icon-map.js +75 -68
- package/dist/components-ui-icon-icon-map.js.map +1 -1
- 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 +1 -1
- package/dist/components-ui-icon-icon.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/helpers.d.ts +1 -0
- package/dist/utils-helpers.cjs +1 -1
- package/dist/utils-helpers.cjs.map +1 -1
- package/dist/utils-helpers.js +23 -16
- package/dist/utils-helpers.js.map +1 -1
- package/package.json +1 -1
- package/dist/approval-log.view-CZoufOXF.js.map +0 -1
- package/dist/approval-log.view-DC5xl6KF.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";require('./brd-ui-kit.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";require('./brd-ui-kit.css');const e=require("react/jsx-runtime"),o=require("./lib-utils.cjs");require("class-variance-authority");require("./components-ui-badge-badge.styles.cjs");require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");require("./components-ui-card-card.cjs");require("./components-ui-checkbox-checkbox.cjs");require("brd-phosphor-strokes-icons/icons/CaretDown");const j=require("./hooks-usePopupControls.cjs");require("./calendar-BClkfQSD.cjs");const g=require("./components-ui-icon-icon.cjs");require("brd-phosphor-strokes-icons/icons");require("./components-ui-combobox-combobox.cjs");require("./components-ui-dialog-dialog.cjs");const n=require("react");require("./components-ui-label-label.cjs");require("./components-ui-separator-separator.cjs");require("./components-ui-field-field.styles.cjs");require("./components-ui-input-input.styles.cjs");require("./components-ui-textarea-textarea.cjs");require("./components-ui-input-group-input-group.styles.cjs");require("./components-ui-navigation-item-navigation-item.styles.cjs");require("./components-ui-navigation-menu-navigation-menu.styles.cjs");require("./components-ui-pagination-pagination.cjs");require("./components-ui-progress-progress.cjs");require("./components-ui-radio-group-radio-group.cjs");require("./components-ui-switch-switch.cjs");require("./components-ui-toggle-toggle.styles.cjs");require("./components-ui-toggle-group-toggle-group.cjs");require("./components-ui-table-table.cjs");require("./components-ui-tabs-tabs.cjs");require("./components-ui-tooltip-tooltip.cjs");const t=require("./components-ui-typography-typography.cjs");require("./components-ui-typography-typography.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretLeft");require("brd-phosphor-strokes-icons/icons/CaretRight");require("./components-app-pagination-app-pagination.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretUpDown");require("./components-app-sidebar-app-sidebar.styles.cjs");require("./components-data-table-data-table.styles.cjs");const _=require("./components-ui-dropdown-menu-dropdown-menu.cjs");require("brd-phosphor-strokes-icons/icons/Eye");require("brd-phosphor-strokes-icons/icons/EyeSlash");require("./components-select-field-select-field.cjs");require("./lodash-kqhtUJfz.cjs");require("./chart-9H_9wEfR.cjs");const m=require("./components-ui-avatar-avatar.cjs"),w=require("./utils-helpers.cjs");require("./components-ui-dropdown-menu-dropdown-menu.styles.cjs");require("brd-phosphor-strokes-icons/icons/CheckCircle");require("brd-phosphor-strokes-icons/icons/Info");require("brd-phosphor-strokes-icons/icons/SpinnerGap");require("brd-phosphor-strokes-icons/icons/Warning");require("brd-phosphor-strokes-icons/icons/X");require("brd-phosphor-strokes-icons/icons/XCircle");require("./index-DGxwh2Ms.cjs");require("./index-fTTv8YY8.cjs");require("brd-phosphor-strokes-icons/icons/Plus");require("brd-phosphor-strokes-icons/icons/CaretUp");require("brd-phosphor-strokes-icons/icons/EnvelopeSimple");require("brd-phosphor-strokes-icons/icons/MaxLogo");require("brd-phosphor-strokes-icons/icons/Phone");require("brd-phosphor-strokes-icons/icons/TelegramLogo");require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled");require("./components-input-phone-input-phone.cjs");require("./components-card-info-card-info.styles.cjs");const y=({initials:r,avatar:l,fallback:p,image:a,icon:c,showDeleteOnHover:d=!0,onClick:q=()=>{}})=>{const s=e.jsxs(m.Avatar,{...l,className:o.cn("h-18 w-18",l?.className),children:[e.jsx(m.AvatarImage,{...a,alt:"avatar",className:o.cn("h-full w-full border-0",a?.className)}),e.jsx(m.AvatarFallback,{...p,children:e.jsx(t.Typography,{variant:"body-xxl-medium",className:o.cn("text-info-new-text",r?.className),children:w.getInitials(r?.text??"")})})]});return d?e.jsxs("div",{className:"relative inline-block",children:[s,e.jsx("div",{className:`text-primary-bg bg-primary-inverse-bg/50 absolute inset-0 flex
|
|
2
2
|
cursor-pointer items-center justify-center rounded-full opacity-0
|
|
3
|
-
transition-opacity hover:opacity-100`,onClick:
|
|
4
|
-
shadow-[0_-2px_4px_0_rgba(0,0,0,0.05)]`,
|
|
5
|
-
//# sourceMappingURL=approval-log.view-
|
|
3
|
+
transition-opacity hover:opacity-100`,onClick:u=>u.stopPropagation(),children:e.jsx(g.Icon,{...c,type:"x",onClick:q})})]}):s},T=[{id:"select",label:"Выбрать",iconType:"check-circle"},{id:"edit",label:"Редактировать",iconType:"pencil-simple"},{id:"delete",label:"Удалить",iconType:"trash",alert:!0}],k={align:"end",side:"bottom",sideOffset:-72},b=n.memo(({item:r,isSelected:l,isEditing:p,isSelectMode:a,onAction:c,getBadge:d})=>{const{isOpened:q,openPopup:s,closePopup:u}=j.usePopupControls(),x=n.useCallback(i=>{r.id&&c(r.id,i)},[r.id,c]),f=n.useCallback(i=>{i.pointerType==="mouse"&&i.button===0&&i.preventDefault()},[]),N=n.useCallback(()=>{if(r.id){if(a){x({id:"select",label:"Выбрать"});return}s()}},[x,a,r.id,s]),v=n.useCallback(i=>{if(i){s();return}u()},[u,s]);return e.jsx(_.ConfigurableDropdownMenu,{items:T,onAction:x,contentProps:k,open:q,onOpenChange:v,trigger:e.jsxs("div",{onPointerDown:f,onClick:N,className:o.cn(`flex cursor-pointer flex-col gap-2.5 px-4 py-3
|
|
4
|
+
shadow-[0_-2px_4px_0_rgba(0,0,0,0.05)]`,l&&"bg-negotiation-bg",p&&"bg-confidence-bg"),children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("div",{className:"w-fit",children:[e.jsx(y,{initials:{text:r.userName,className:"text-primary-text"},avatar:{className:"h-12 w-12"},showDeleteOnHover:!1}),e.jsx(t.Typography,{variant:"body-xxs-medium",className:"text-secondary-text text-center",children:r.dateShort})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2.5",children:[e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsx(t.Typography,{variant:"body-md-medium",className:"text-primary-text",children:r.userName}),e.jsx(g.Icon,{type:"check-circle",className:"text-sub-label-text"})]}),e.jsx(t.Typography,{variant:"body-sm-regular",className:"text-primary-text",children:r.message}),r.imageUrl&&e.jsx("img",{src:r.imageUrl,alt:"Вложенное изображение",className:"max-h-65 w-full rounded-lg object-contain"})]})]}),e.jsx("div",{className:"flex gap-3 px-4",children:r.tags.map(i=>{const h=d(i);return e.jsxs("div",{className:o.cn("flex items-center gap-1.25 rounded-lg border px-3 py-1",h.bg,h.color),children:[e.jsx(t.Typography,{variant:"body-xxs-medium",children:i}),e.jsx(g.Icon,{type:"check-circle",size:15,strokeWidth:1.25})]},i)})})]})})});b.displayName="ApprovalLogRow";exports.ApprovalLogView=b;exports.BasicAvatar=y;
|
|
5
|
+
//# sourceMappingURL=approval-log.view-BMiYO7Cf.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-log.view-BMiYO7Cf.cjs","sources":["../src/components/basic-avatar/basic-avatar.tsx","../src/components/approval-log/approval-log.view.tsx"],"sourcesContent":["import { Icon, Typography, cn } from \"@/index\";\nimport { getInitials } from \"@/utils/helpers\";\nimport type { Avatar as AvatarPrimitive } from \"radix-ui\";\nimport { Avatar, AvatarFallback, AvatarImage } from \"../ui/avatar\";\nimport type { IconProps } from \"../ui/icon\";\n\ntype AvatarProps = React.ComponentProps<typeof AvatarPrimitive.Root> & {\n size?: \"default\" | \"sm\" | \"lg\";\n};\ntype AvatarFallbackProps = React.ComponentProps<typeof AvatarPrimitive.Fallback>;\ntype AvatarImageProps = React.ComponentProps<typeof AvatarPrimitive.Image>;\n\ntype Props = {\n initials?: {\n text?: string;\n className?: string;\n };\n hasBadge?: boolean;\n avatar?: AvatarProps;\n fallback?: AvatarFallbackProps;\n image?: AvatarImageProps;\n showDeleteOnHover?: boolean;\n icon?: IconProps;\n onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;\n};\n\nexport const BasicAvatar = ({\n initials,\n avatar,\n fallback,\n image,\n icon,\n showDeleteOnHover = true,\n onClick = () => {},\n}: Props) => {\n const content = (\n <Avatar\n {...avatar}\n className={cn(\"h-18 w-18\", avatar?.className)}\n >\n <AvatarImage\n {...image}\n alt=\"avatar\"\n className={cn(\"h-full w-full border-0\", image?.className)}\n />\n <AvatarFallback {...fallback}>\n <Typography\n variant=\"body-xxl-medium\"\n className={cn(\"text-info-new-text\", initials?.className)}\n >\n {getInitials(initials?.text ?? \"\")}\n </Typography>\n </AvatarFallback>\n </Avatar>\n );\n\n if (!showDeleteOnHover) {\n return content;\n }\n\n return (\n <div className=\"relative inline-block\">\n {content}\n <div\n className=\"text-primary-bg bg-primary-inverse-bg/50 absolute inset-0 flex\n cursor-pointer items-center justify-center rounded-full opacity-0\n transition-opacity hover:opacity-100\"\n onClick={(e) => e.stopPropagation()}\n >\n <Icon\n {...icon}\n type=\"x\"\n onClick={onClick}\n />\n </div>\n </div>\n );\n};\n\nexport type {\n AvatarFallbackProps,\n AvatarImageProps,\n AvatarProps,\n Props as BasicAvatarProps,\n};\n","import {\n BasicAvatar,\n cn,\n ConfigurableDropdownMenu,\n Icon,\n Typography,\n usePopupControls,\n type ApprovalLogItem,\n type DropdownMenuConfigItem,\n type DropdownMenuConfigNode,\n} from \"@/index\";\nimport { memo, useCallback, type PointerEvent } from \"react\";\n\ntype Props = {\n item: ApprovalLogItem;\n isSelected: boolean;\n isEditing: boolean;\n isSelectMode: boolean;\n onAction: (id: string, action: DropdownMenuConfigItem) => void;\n getBadge: (type: string) => {\n bg: string;\n color: string;\n };\n};\n\nconst NOTE_ACTIONS: DropdownMenuConfigNode[] = [\n { id: \"select\", label: \"Выбрать\", iconType: \"check-circle\" },\n { id: \"edit\", label: \"Редактировать\", iconType: \"pencil-simple\" },\n { id: \"delete\", label: \"Удалить\", iconType: \"trash\", alert: true },\n];\n\nconst NOTE_MENU_CONTENT_PROPS = {\n align: \"end\",\n side: \"bottom\",\n sideOffset: -72,\n} as const;\n\nexport const ApprovalLogView = memo(\n ({ item, isSelected, isEditing, isSelectMode, onAction, getBadge }: Props) => {\n const { isOpened, openPopup, closePopup } = usePopupControls();\n\n const handleAction = useCallback(\n (action: DropdownMenuConfigItem) => {\n if (!item.id) {\n return;\n }\n\n onAction(item.id, action);\n },\n [item.id, onAction],\n );\n\n const handleTriggerPointerDown = useCallback(\n (event: PointerEvent<HTMLDivElement>) => {\n if (event.pointerType === \"mouse\" && event.button === 0) {\n event.preventDefault();\n }\n },\n [],\n );\n\n const handleTriggerClick = useCallback(() => {\n if (!item.id) {\n return;\n }\n\n if (isSelectMode) {\n handleAction({ id: \"select\", label: \"Выбрать\" });\n return;\n }\n\n openPopup();\n }, [handleAction, isSelectMode, item.id, openPopup]);\n\n const handleOpenChange = useCallback(\n (open: boolean) => {\n if (open) {\n openPopup();\n return;\n }\n\n closePopup();\n },\n [closePopup, openPopup],\n );\n\n return (\n <ConfigurableDropdownMenu\n items={NOTE_ACTIONS}\n onAction={handleAction}\n contentProps={NOTE_MENU_CONTENT_PROPS}\n open={isOpened}\n onOpenChange={handleOpenChange}\n trigger={\n <div\n onPointerDown={handleTriggerPointerDown}\n onClick={handleTriggerClick}\n className={cn(\n `flex cursor-pointer flex-col gap-2.5 px-4 py-3\n shadow-[0_-2px_4px_0_rgba(0,0,0,0.05)]`,\n isSelected && \"bg-negotiation-bg\",\n isEditing && \"bg-confidence-bg\",\n )}\n >\n <div className=\"flex gap-3\">\n <div className=\"w-fit\">\n <BasicAvatar\n initials={{\n text: item.userName,\n className: \"text-primary-text\",\n }}\n avatar={{\n className: \"h-12 w-12\",\n }}\n showDeleteOnHover={false}\n />\n\n <Typography\n variant=\"body-xxs-medium\"\n className=\"text-secondary-text text-center\"\n >\n {item.dateShort}\n </Typography>\n </div>\n\n <div className=\"flex w-full flex-col gap-2.5\">\n <div className=\"flex w-full items-center justify-between\">\n <Typography\n variant=\"body-md-medium\"\n className=\"text-primary-text\"\n >\n {item.userName}\n </Typography>\n\n <Icon\n type=\"check-circle\"\n className=\"text-sub-label-text\"\n />\n </div>\n <Typography\n variant=\"body-sm-regular\"\n className=\"text-primary-text\"\n >\n {item.message}\n </Typography>\n {item.imageUrl && (\n <img\n src={item.imageUrl}\n alt=\"Вложенное изображение\"\n className=\"max-h-65 w-full rounded-lg object-contain\"\n />\n )}\n </div>\n </div>\n <div className=\"flex gap-3 px-4\">\n {item.tags.map((tag) => {\n const badge = getBadge(tag);\n return (\n <div\n key={tag}\n className={cn(\n \"flex items-center gap-1.25 rounded-lg border px-3 py-1\",\n badge.bg,\n badge.color,\n )}\n >\n <Typography variant=\"body-xxs-medium\">{tag}</Typography>\n\n <Icon\n type=\"check-circle\"\n size={15}\n strokeWidth={1.25}\n />\n </div>\n );\n })}\n </div>\n </div>\n }\n />\n );\n },\n);\n\nApprovalLogView.displayName = \"ApprovalLogRow\";\n"],"names":["BasicAvatar","initials","avatar","fallback","image","icon","showDeleteOnHover","onClick","content","jsxs","Avatar","cn","jsx","AvatarImage","AvatarFallback","Typography","getInitials","e","Icon","NOTE_ACTIONS","NOTE_MENU_CONTENT_PROPS","ApprovalLogView","memo","item","isSelected","isEditing","isSelectMode","onAction","getBadge","isOpened","openPopup","closePopup","usePopupControls","handleAction","useCallback","action","handleTriggerPointerDown","event","handleTriggerClick","handleOpenChange","open","ConfigurableDropdownMenu","tag","badge"],"mappings":"6xGA0BO,MAAMA,EAAc,CAAC,CAC1B,SAAAC,EACA,OAAAC,EACA,SAAAC,EACA,MAAAC,EACA,KAAAC,EACA,kBAAAC,EAAoB,GACpB,QAAAC,EAAU,IAAM,CAAC,CACnB,IAAa,CACX,MAAMC,EACJC,EAAAA,KAACC,EAAAA,OAAA,CACE,GAAGR,EACJ,UAAWS,EAAAA,GAAG,YAAaT,GAAQ,SAAS,EAE5C,SAAA,CAAAU,EAAAA,IAACC,EAAAA,YAAA,CACE,GAAGT,E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AAAA,IAACG,EAAAA,WAAA,CACC,QAAQ,kBACR,UAAU,oBAET,SAAAQ,EAAK,OAAA,CAAA,EAEPA,EAAK,UACJX,EAAAA,IAAC,MAAA,CACC,IAAKW,EAAK,SACV,IAAI,wBACJ,UAAU,2CAAA,CAAA,CACZ,CAAA,CAEJ,CAAA,EACF,EACAX,MAAC,OAAI,UAAU,kBACZ,WAAK,KAAK,IAAK8B,GAAQ,CACtB,MAAMC,EAAQf,EAASc,CAAG,EAC1B,OACEjC,EAAAA,KAAC,MAAA,CAEC,UAAWE,EAAAA,GACT,yDACAgC,EAAM,GACNA,EAAM,KAAA,EAGR,SAAA,CAAA/B,EAAAA,IAACG,EAAAA,WAAA,CAAW,QAAQ,kBAAmB,SAAA2B,EAAI,EAE3C9B,EAAAA,IAACM,EAAAA,KAAA,CACC,KAAK,eACL,KAAM,GACN,YAAa,IAAA,CAAA,CACf,CAAA,EAbKwB,CAAA,CAgBX,CAAC,CAAA,CACH,CAAA,CAAA,CAAA,CACF,CAAA,CAIR,CACF,EAEArB,EAAgB,YAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "./lib-utils.js";
|
|
3
3
|
import "class-variance-authority";
|
|
4
4
|
import "./components-ui-badge-badge.styles.js";
|
|
5
5
|
import "./components-ui-button-button.js";
|
|
@@ -13,7 +13,7 @@ import { Icon as g } from "./components-ui-icon-icon.js";
|
|
|
13
13
|
import "brd-phosphor-strokes-icons/icons";
|
|
14
14
|
import "./components-ui-combobox-combobox.js";
|
|
15
15
|
import "./components-ui-dialog-dialog.js";
|
|
16
|
-
import { memo as w, useCallback as
|
|
16
|
+
import { memo as w, useCallback as c } from "react";
|
|
17
17
|
import "./components-ui-label-label.js";
|
|
18
18
|
import "./components-ui-separator-separator.js";
|
|
19
19
|
import "./components-ui-field-field.styles.js";
|
|
@@ -31,7 +31,7 @@ import "./components-ui-toggle-group-toggle-group.js";
|
|
|
31
31
|
import "./components-ui-table-table.js";
|
|
32
32
|
import "./components-ui-tabs-tabs.js";
|
|
33
33
|
import "./components-ui-tooltip-tooltip.js";
|
|
34
|
-
import { Typography as
|
|
34
|
+
import { Typography as p } from "./components-ui-typography-typography.js";
|
|
35
35
|
import "./components-ui-typography-typography.styles.js";
|
|
36
36
|
import "brd-phosphor-strokes-icons/icons/CaretLeft";
|
|
37
37
|
import "brd-phosphor-strokes-icons/icons/CaretRight";
|
|
@@ -39,13 +39,14 @@ import "./components-app-pagination-app-pagination.styles.js";
|
|
|
39
39
|
import "brd-phosphor-strokes-icons/icons/CaretUpDown";
|
|
40
40
|
import "./components-app-sidebar-app-sidebar.styles.js";
|
|
41
41
|
import "./components-data-table-data-table.styles.js";
|
|
42
|
-
import { ConfigurableDropdownMenu as
|
|
42
|
+
import { ConfigurableDropdownMenu as T } from "./components-ui-dropdown-menu-dropdown-menu.js";
|
|
43
43
|
import "brd-phosphor-strokes-icons/icons/Eye";
|
|
44
44
|
import "brd-phosphor-strokes-icons/icons/EyeSlash";
|
|
45
45
|
import "./components-select-field-select-field.js";
|
|
46
46
|
import "./lodash-FemA_LCk.js";
|
|
47
47
|
import "./chart-DFbmMKiQ.js";
|
|
48
|
-
import { Avatar as
|
|
48
|
+
import { Avatar as k, AvatarImage as C, AvatarFallback as O } from "./components-ui-avatar-avatar.js";
|
|
49
|
+
import { getInitials as A } from "./utils-helpers.js";
|
|
49
50
|
import "./components-ui-dropdown-menu-dropdown-menu.styles.js";
|
|
50
51
|
import "brd-phosphor-strokes-icons/icons/CheckCircle";
|
|
51
52
|
import "brd-phosphor-strokes-icons/icons/Info";
|
|
@@ -64,127 +65,121 @@ import "brd-phosphor-strokes-icons/icons/TelegramLogo";
|
|
|
64
65
|
import "brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled";
|
|
65
66
|
import "./components-input-phone-input-phone.js";
|
|
66
67
|
import "./components-card-info-card-info.styles.js";
|
|
67
|
-
import './brd-ui-kit.css';const
|
|
68
|
-
const i = r.trim();
|
|
69
|
-
if (!i)
|
|
70
|
-
return "";
|
|
71
|
-
const [p = "", o = ""] = i.split(/\s+/);
|
|
72
|
-
return p && o ? `${p[0].toUpperCase()}${o[0].toUpperCase()}` : i.length <= 2 ? i.toUpperCase() : p[0].toUpperCase();
|
|
73
|
-
}, P = ({
|
|
68
|
+
import './brd-ui-kit.css';const P = ({
|
|
74
69
|
initials: r,
|
|
75
|
-
avatar:
|
|
76
|
-
fallback:
|
|
77
|
-
image:
|
|
78
|
-
icon:
|
|
70
|
+
avatar: l,
|
|
71
|
+
fallback: d,
|
|
72
|
+
image: a,
|
|
73
|
+
icon: n,
|
|
79
74
|
showDeleteOnHover: u = !0,
|
|
80
|
-
onClick:
|
|
75
|
+
onClick: x = () => {
|
|
81
76
|
}
|
|
82
77
|
}) => {
|
|
83
|
-
const
|
|
84
|
-
|
|
78
|
+
const o = /* @__PURE__ */ i(
|
|
79
|
+
k,
|
|
85
80
|
{
|
|
86
|
-
...
|
|
87
|
-
className:
|
|
81
|
+
...l,
|
|
82
|
+
className: m("h-18 w-18", l?.className),
|
|
88
83
|
children: [
|
|
89
84
|
/* @__PURE__ */ e(
|
|
90
|
-
|
|
85
|
+
C,
|
|
91
86
|
{
|
|
92
|
-
...
|
|
87
|
+
...a,
|
|
93
88
|
alt: "avatar",
|
|
94
|
-
className:
|
|
89
|
+
className: m("h-full w-full border-0", a?.className)
|
|
95
90
|
}
|
|
96
91
|
),
|
|
97
|
-
/* @__PURE__ */ e(O, { ...
|
|
98
|
-
|
|
92
|
+
/* @__PURE__ */ e(O, { ...d, children: /* @__PURE__ */ e(
|
|
93
|
+
p,
|
|
99
94
|
{
|
|
100
95
|
variant: "body-xxl-medium",
|
|
101
|
-
className:
|
|
96
|
+
className: m("text-info-new-text", r?.className),
|
|
102
97
|
children: A(r?.text ?? "")
|
|
103
98
|
}
|
|
104
99
|
) })
|
|
105
100
|
]
|
|
106
101
|
}
|
|
107
102
|
);
|
|
108
|
-
return u ? /* @__PURE__ */
|
|
109
|
-
|
|
103
|
+
return u ? /* @__PURE__ */ i("div", { className: "relative inline-block", children: [
|
|
104
|
+
o,
|
|
110
105
|
/* @__PURE__ */ e(
|
|
111
106
|
"div",
|
|
112
107
|
{
|
|
113
108
|
className: `text-primary-bg bg-primary-inverse-bg/50 absolute inset-0 flex
|
|
114
109
|
cursor-pointer items-center justify-center rounded-full opacity-0
|
|
115
110
|
transition-opacity hover:opacity-100`,
|
|
116
|
-
onClick: (
|
|
111
|
+
onClick: (s) => s.stopPropagation(),
|
|
117
112
|
children: /* @__PURE__ */ e(
|
|
118
113
|
g,
|
|
119
114
|
{
|
|
120
|
-
...
|
|
115
|
+
...n,
|
|
121
116
|
type: "x",
|
|
122
|
-
onClick:
|
|
117
|
+
onClick: x
|
|
123
118
|
}
|
|
124
119
|
)
|
|
125
120
|
}
|
|
126
121
|
)
|
|
127
|
-
] }) :
|
|
122
|
+
] }) : o;
|
|
128
123
|
}, _ = [
|
|
129
124
|
{ id: "select", label: "Выбрать", iconType: "check-circle" },
|
|
130
125
|
{ id: "edit", label: "Редактировать", iconType: "pencil-simple" },
|
|
131
126
|
{ id: "delete", label: "Удалить", iconType: "trash", alert: !0 }
|
|
132
|
-
],
|
|
127
|
+
], j = {
|
|
133
128
|
align: "end",
|
|
134
129
|
side: "bottom",
|
|
135
130
|
sideOffset: -72
|
|
136
|
-
},
|
|
137
|
-
({ item: r, isSelected:
|
|
138
|
-
const { isOpened:
|
|
131
|
+
}, D = w(
|
|
132
|
+
({ item: r, isSelected: l, isEditing: d, isSelectMode: a, onAction: n, getBadge: u }) => {
|
|
133
|
+
const { isOpened: x, openPopup: o, closePopup: s } = v(), f = c(
|
|
139
134
|
(t) => {
|
|
140
|
-
r.id &&
|
|
135
|
+
r.id && n(r.id, t);
|
|
141
136
|
},
|
|
142
|
-
[r.id,
|
|
143
|
-
),
|
|
137
|
+
[r.id, n]
|
|
138
|
+
), b = c(
|
|
144
139
|
(t) => {
|
|
145
140
|
t.pointerType === "mouse" && t.button === 0 && t.preventDefault();
|
|
146
141
|
},
|
|
147
142
|
[]
|
|
148
|
-
),
|
|
143
|
+
), N = c(() => {
|
|
149
144
|
if (r.id) {
|
|
150
|
-
if (
|
|
151
|
-
|
|
145
|
+
if (a) {
|
|
146
|
+
f({ id: "select", label: "Выбрать" });
|
|
152
147
|
return;
|
|
153
148
|
}
|
|
154
|
-
|
|
149
|
+
o();
|
|
155
150
|
}
|
|
156
|
-
}, [
|
|
151
|
+
}, [f, a, r.id, o]), y = c(
|
|
157
152
|
(t) => {
|
|
158
153
|
if (t) {
|
|
159
|
-
|
|
154
|
+
o();
|
|
160
155
|
return;
|
|
161
156
|
}
|
|
162
|
-
|
|
157
|
+
s();
|
|
163
158
|
},
|
|
164
|
-
[
|
|
159
|
+
[s, o]
|
|
165
160
|
);
|
|
166
161
|
return /* @__PURE__ */ e(
|
|
167
|
-
|
|
162
|
+
T,
|
|
168
163
|
{
|
|
169
164
|
items: _,
|
|
170
|
-
onAction:
|
|
171
|
-
contentProps:
|
|
172
|
-
open:
|
|
165
|
+
onAction: f,
|
|
166
|
+
contentProps: j,
|
|
167
|
+
open: x,
|
|
173
168
|
onOpenChange: y,
|
|
174
|
-
trigger: /* @__PURE__ */
|
|
169
|
+
trigger: /* @__PURE__ */ i(
|
|
175
170
|
"div",
|
|
176
171
|
{
|
|
177
|
-
onPointerDown:
|
|
178
|
-
onClick:
|
|
179
|
-
className:
|
|
172
|
+
onPointerDown: b,
|
|
173
|
+
onClick: N,
|
|
174
|
+
className: m(
|
|
180
175
|
`flex cursor-pointer flex-col gap-2.5 px-4 py-3
|
|
181
176
|
shadow-[0_-2px_4px_0_rgba(0,0,0,0.05)]`,
|
|
182
|
-
|
|
183
|
-
|
|
177
|
+
l && "bg-negotiation-bg",
|
|
178
|
+
d && "bg-confidence-bg"
|
|
184
179
|
),
|
|
185
180
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ i("div", { className: "flex gap-3", children: [
|
|
182
|
+
/* @__PURE__ */ i("div", { className: "w-fit", children: [
|
|
188
183
|
/* @__PURE__ */ e(
|
|
189
184
|
P,
|
|
190
185
|
{
|
|
@@ -199,7 +194,7 @@ import './brd-ui-kit.css';const A = (r) => {
|
|
|
199
194
|
}
|
|
200
195
|
),
|
|
201
196
|
/* @__PURE__ */ e(
|
|
202
|
-
|
|
197
|
+
p,
|
|
203
198
|
{
|
|
204
199
|
variant: "body-xxs-medium",
|
|
205
200
|
className: "text-secondary-text text-center",
|
|
@@ -207,10 +202,10 @@ import './brd-ui-kit.css';const A = (r) => {
|
|
|
207
202
|
}
|
|
208
203
|
)
|
|
209
204
|
] }),
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ i("div", { className: "flex w-full flex-col gap-2.5", children: [
|
|
206
|
+
/* @__PURE__ */ i("div", { className: "flex w-full items-center justify-between", children: [
|
|
212
207
|
/* @__PURE__ */ e(
|
|
213
|
-
|
|
208
|
+
p,
|
|
214
209
|
{
|
|
215
210
|
variant: "body-md-medium",
|
|
216
211
|
className: "text-primary-text",
|
|
@@ -226,7 +221,7 @@ import './brd-ui-kit.css';const A = (r) => {
|
|
|
226
221
|
)
|
|
227
222
|
] }),
|
|
228
223
|
/* @__PURE__ */ e(
|
|
229
|
-
|
|
224
|
+
p,
|
|
230
225
|
{
|
|
231
226
|
variant: "body-sm-regular",
|
|
232
227
|
className: "text-primary-text",
|
|
@@ -245,16 +240,16 @@ import './brd-ui-kit.css';const A = (r) => {
|
|
|
245
240
|
] }),
|
|
246
241
|
/* @__PURE__ */ e("div", { className: "flex gap-3 px-4", children: r.tags.map((t) => {
|
|
247
242
|
const h = u(t);
|
|
248
|
-
return /* @__PURE__ */
|
|
243
|
+
return /* @__PURE__ */ i(
|
|
249
244
|
"div",
|
|
250
245
|
{
|
|
251
|
-
className:
|
|
246
|
+
className: m(
|
|
252
247
|
"flex items-center gap-1.25 rounded-lg border px-3 py-1",
|
|
253
248
|
h.bg,
|
|
254
249
|
h.color
|
|
255
250
|
),
|
|
256
251
|
children: [
|
|
257
|
-
/* @__PURE__ */ e(
|
|
252
|
+
/* @__PURE__ */ e(p, { variant: "body-xxs-medium", children: t }),
|
|
258
253
|
/* @__PURE__ */ e(
|
|
259
254
|
g,
|
|
260
255
|
{
|
|
@@ -275,9 +270,9 @@ import './brd-ui-kit.css';const A = (r) => {
|
|
|
275
270
|
);
|
|
276
271
|
}
|
|
277
272
|
);
|
|
278
|
-
|
|
273
|
+
D.displayName = "ApprovalLogRow";
|
|
279
274
|
export {
|
|
280
|
-
|
|
275
|
+
D as A,
|
|
281
276
|
P as B
|
|
282
277
|
};
|
|
283
|
-
//# sourceMappingURL=approval-log.view-
|
|
278
|
+
//# sourceMappingURL=approval-log.view-D_-VDB_3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-log.view-D_-VDB_3.js","sources":["../src/components/basic-avatar/basic-avatar.tsx","../src/components/approval-log/approval-log.view.tsx"],"sourcesContent":["import { Icon, Typography, cn } from \"@/index\";\nimport { getInitials } from \"@/utils/helpers\";\nimport type { Avatar as AvatarPrimitive } from \"radix-ui\";\nimport { Avatar, AvatarFallback, AvatarImage } from \"../ui/avatar\";\nimport type { IconProps } from \"../ui/icon\";\n\ntype AvatarProps = React.ComponentProps<typeof AvatarPrimitive.Root> & {\n size?: \"default\" | \"sm\" | \"lg\";\n};\ntype AvatarFallbackProps = React.ComponentProps<typeof AvatarPrimitive.Fallback>;\ntype AvatarImageProps = React.ComponentProps<typeof AvatarPrimitive.Image>;\n\ntype Props = {\n initials?: {\n text?: string;\n className?: string;\n };\n hasBadge?: boolean;\n avatar?: AvatarProps;\n fallback?: AvatarFallbackProps;\n image?: AvatarImageProps;\n showDeleteOnHover?: boolean;\n icon?: IconProps;\n onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;\n};\n\nexport const BasicAvatar = ({\n initials,\n avatar,\n fallback,\n image,\n icon,\n showDeleteOnHover = true,\n onClick = () => {},\n}: Props) => {\n const content = (\n <Avatar\n {...avatar}\n className={cn(\"h-18 w-18\", avatar?.className)}\n >\n <AvatarImage\n {...image}\n alt=\"avatar\"\n className={cn(\"h-full w-full border-0\", image?.className)}\n />\n <AvatarFallback {...fallback}>\n <Typography\n variant=\"body-xxl-medium\"\n className={cn(\"text-info-new-text\", initials?.className)}\n >\n {getInitials(initials?.text ?? \"\")}\n </Typography>\n </AvatarFallback>\n </Avatar>\n );\n\n if (!showDeleteOnHover) {\n return content;\n }\n\n return (\n <div className=\"relative inline-block\">\n {content}\n <div\n className=\"text-primary-bg bg-primary-inverse-bg/50 absolute inset-0 flex\n cursor-pointer items-center justify-center rounded-full opacity-0\n transition-opacity hover:opacity-100\"\n onClick={(e) => e.stopPropagation()}\n >\n <Icon\n {...icon}\n type=\"x\"\n onClick={onClick}\n />\n </div>\n </div>\n );\n};\n\nexport type {\n AvatarFallbackProps,\n AvatarImageProps,\n AvatarProps,\n Props as BasicAvatarProps,\n};\n","import {\n BasicAvatar,\n cn,\n ConfigurableDropdownMenu,\n Icon,\n Typography,\n usePopupControls,\n type ApprovalLogItem,\n type DropdownMenuConfigItem,\n type DropdownMenuConfigNode,\n} from \"@/index\";\nimport { memo, useCallback, type PointerEvent } from \"react\";\n\ntype Props = {\n item: ApprovalLogItem;\n isSelected: boolean;\n isEditing: boolean;\n isSelectMode: boolean;\n onAction: (id: string, action: DropdownMenuConfigItem) => void;\n getBadge: (type: string) => {\n bg: string;\n color: string;\n };\n};\n\nconst NOTE_ACTIONS: DropdownMenuConfigNode[] = [\n { id: \"select\", label: \"Выбрать\", iconType: \"check-circle\" },\n { id: \"edit\", label: \"Редактировать\", iconType: \"pencil-simple\" },\n { id: \"delete\", label: \"Удалить\", iconType: \"trash\", alert: true },\n];\n\nconst NOTE_MENU_CONTENT_PROPS = {\n align: \"end\",\n side: \"bottom\",\n sideOffset: -72,\n} as const;\n\nexport const ApprovalLogView = memo(\n ({ item, isSelected, isEditing, isSelectMode, onAction, getBadge }: Props) => {\n const { isOpened, openPopup, closePopup } = usePopupControls();\n\n const handleAction = useCallback(\n (action: DropdownMenuConfigItem) => {\n if (!item.id) {\n return;\n }\n\n onAction(item.id, action);\n },\n [item.id, onAction],\n );\n\n const handleTriggerPointerDown = useCallback(\n (event: PointerEvent<HTMLDivElement>) => {\n if (event.pointerType === \"mouse\" && event.button === 0) {\n event.preventDefault();\n }\n },\n [],\n );\n\n const handleTriggerClick = useCallback(() => {\n if (!item.id) {\n return;\n }\n\n if (isSelectMode) {\n handleAction({ id: \"select\", label: \"Выбрать\" });\n return;\n }\n\n openPopup();\n }, [handleAction, isSelectMode, item.id, openPopup]);\n\n const handleOpenChange = useCallback(\n (open: boolean) => {\n if (open) {\n openPopup();\n return;\n }\n\n closePopup();\n },\n [closePopup, openPopup],\n );\n\n return (\n <ConfigurableDropdownMenu\n items={NOTE_ACTIONS}\n onAction={handleAction}\n contentProps={NOTE_MENU_CONTENT_PROPS}\n open={isOpened}\n onOpenChange={handleOpenChange}\n trigger={\n <div\n onPointerDown={handleTriggerPointerDown}\n onClick={handleTriggerClick}\n className={cn(\n `flex cursor-pointer flex-col gap-2.5 px-4 py-3\n shadow-[0_-2px_4px_0_rgba(0,0,0,0.05)]`,\n isSelected && \"bg-negotiation-bg\",\n isEditing && \"bg-confidence-bg\",\n )}\n >\n <div className=\"flex gap-3\">\n <div className=\"w-fit\">\n <BasicAvatar\n initials={{\n text: item.userName,\n className: \"text-primary-text\",\n }}\n avatar={{\n className: \"h-12 w-12\",\n }}\n showDeleteOnHover={false}\n />\n\n <Typography\n variant=\"body-xxs-medium\"\n className=\"text-secondary-text text-center\"\n >\n {item.dateShort}\n </Typography>\n </div>\n\n <div className=\"flex w-full flex-col gap-2.5\">\n <div className=\"flex w-full items-center justify-between\">\n <Typography\n variant=\"body-md-medium\"\n className=\"text-primary-text\"\n >\n {item.userName}\n </Typography>\n\n <Icon\n type=\"check-circle\"\n className=\"text-sub-label-text\"\n />\n </div>\n <Typography\n variant=\"body-sm-regular\"\n className=\"text-primary-text\"\n >\n {item.message}\n </Typography>\n {item.imageUrl && (\n <img\n src={item.imageUrl}\n alt=\"Вложенное изображение\"\n className=\"max-h-65 w-full rounded-lg object-contain\"\n />\n )}\n </div>\n </div>\n <div className=\"flex gap-3 px-4\">\n {item.tags.map((tag) => {\n const badge = getBadge(tag);\n return (\n <div\n key={tag}\n className={cn(\n \"flex items-center gap-1.25 rounded-lg border px-3 py-1\",\n badge.bg,\n badge.color,\n )}\n >\n <Typography variant=\"body-xxs-medium\">{tag}</Typography>\n\n <Icon\n type=\"check-circle\"\n size={15}\n strokeWidth={1.25}\n />\n </div>\n );\n })}\n </div>\n </div>\n }\n />\n );\n },\n);\n\nApprovalLogView.displayName = \"ApprovalLogRow\";\n"],"names":["BasicAvatar","initials","avatar","fallback","image","icon","showDeleteOnHover","onClick","content","jsxs","Avatar","cn","jsx","AvatarImage","AvatarFallback","Typography","getInitials","e","Icon","NOTE_ACTIONS","NOTE_MENU_CONTENT_PROPS","ApprovalLogView","memo","item","isSelected","isEditing","isSelectMode","onAction","getBadge","isOpened","openPopup","closePopup","usePopupControls","handleAction","useCallback","action","handleTriggerPointerDown","event","handleTriggerClick","handleOpenChange","open","ConfigurableDropdownMenu","tag","badge"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,MAAMA,IAAc,CAAC;AAAA,EAC1B,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,SAAAC,IAAU,MAAM;AAAA,EAAC;AACnB,MAAa;AACX,QAAMC,IACJ,gBAAAC;AAAA,IA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ACtB,sBAAMC,IAAQf,EAASc,CAAG;AAC1B,uBACE,gBAAAjC;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBAEC,WAAWE;AAAA,sBACT;AAAA,sBACAgC,EAAM;AAAA,sBACNA,EAAM;AAAA,oBAAA;AAAA,oBAGR,UAAA;AAAA,sBAAA,gBAAA/B,EAACG,GAAA,EAAW,SAAQ,mBAAmB,UAAA2B,GAAI;AAAA,sBAE3C,gBAAA9B;AAAA,wBAACM;AAAA,wBAAA;AAAA,0BACC,MAAK;AAAA,0BACL,MAAM;AAAA,0BACN,aAAa;AAAA,wBAAA;AAAA,sBAAA;AAAA,oBACf;AAAA,kBAAA;AAAA,kBAbKwB;AAAA,gBAAA;AAAA,cAgBX,CAAC,EAAA,CACH;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAIR;AACF;AAEArB,EAAgB,cAAc;"}
|
|
@@ -63,6 +63,13 @@ export declare const iconComponents: {
|
|
|
63
63
|
readonly wrench: StrokeIcon;
|
|
64
64
|
readonly x: StrokeIcon;
|
|
65
65
|
readonly "x-circle": StrokeIcon;
|
|
66
|
+
readonly "clipboard-text": StrokeIcon;
|
|
67
|
+
readonly "chart-line-up": StrokeIcon;
|
|
68
|
+
readonly "currency-circle-dollar": StrokeIcon;
|
|
69
|
+
readonly "shield-check": StrokeIcon;
|
|
70
|
+
readonly "users-three": StrokeIcon;
|
|
71
|
+
readonly "instagram-logo": StrokeIcon;
|
|
72
|
+
readonly "linkedin-logo": StrokeIcon;
|
|
66
73
|
};
|
|
67
74
|
export type IconType = keyof typeof iconComponents;
|
|
68
75
|
export declare const supportedIconTypes: IconType[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StrokeIconProps } from 'brd-phosphor-strokes-icons';
|
|
2
2
|
import { HTMLAttributes, SVGProps } from 'react';
|
|
3
|
-
import { IconPreset } from './icon-presets';
|
|
4
3
|
import { IconType } from './icon-map';
|
|
4
|
+
import { IconPreset } from './icon-presets';
|
|
5
5
|
type Props = HTMLAttributes<HTMLDivElement> & {
|
|
6
6
|
type: IconType;
|
|
7
7
|
size?: IconPreset | StrokeIconProps["size"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),z=require("./approval-log.view-DC5xl6KF.cjs"),Y=require("./lib-utils.cjs");require("class-variance-authority");require("./components-ui-badge-badge.styles.cjs");const g=require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");require("./components-ui-card-card.cjs");require("./components-ui-checkbox-checkbox.cjs");require("brd-phosphor-strokes-icons/icons/CaretDown");const s=require("react");require("./calendar-BClkfQSD.cjs");const x=require("./components-ui-icon-icon.cjs");require("brd-phosphor-strokes-icons/icons");require("./components-ui-combobox-combobox.cjs");require("./components-ui-dialog-dialog.cjs");require("./components-ui-label-label.cjs");require("./components-ui-separator-separator.cjs");require("./components-ui-field-field.styles.cjs");require("./components-ui-input-input.styles.cjs");require("./components-ui-textarea-textarea.cjs");require("./components-ui-input-group-input-group.styles.cjs");require("./components-ui-navigation-item-navigation-item.styles.cjs");require("./components-ui-navigation-menu-navigation-menu.styles.cjs");require("./components-ui-pagination-pagination.cjs");require("./components-ui-progress-progress.cjs");require("./components-ui-radio-group-radio-group.cjs");require("./components-ui-switch-switch.cjs");require("./components-ui-toggle-toggle.styles.cjs");require("./components-ui-toggle-group-toggle-group.cjs");require("./components-ui-table-table.cjs");require("./components-ui-tabs-tabs.cjs");require("./components-ui-tooltip-tooltip.cjs");const A=require("./components-ui-typography-typography.cjs");require("./components-ui-typography-typography.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretLeft");require("brd-phosphor-strokes-icons/icons/CaretRight");require("./components-app-pagination-app-pagination.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretUpDown");require("./components-app-sidebar-app-sidebar.styles.cjs");require("./components-data-table-data-table.styles.cjs");require("./components-ui-dropdown-menu-dropdown-menu.styles.cjs");require("brd-phosphor-strokes-icons/icons/Eye");require("brd-phosphor-strokes-icons/icons/EyeSlash");require("./components-select-field-select-field.cjs");const _=require("./components-textarea-field-textarea-field.cjs");require("./lodash-kqhtUJfz.cjs");require("./chart-9H_9wEfR.cjs");require("brd-phosphor-strokes-icons/icons/CheckCircle");require("brd-phosphor-strokes-icons/icons/Info");require("brd-phosphor-strokes-icons/icons/SpinnerGap");require("brd-phosphor-strokes-icons/icons/Warning");require("brd-phosphor-strokes-icons/icons/X");require("brd-phosphor-strokes-icons/icons/XCircle");require("./index-DGxwh2Ms.cjs");require("./index-fTTv8YY8.cjs");require("brd-phosphor-strokes-icons/icons/Plus");require("brd-phosphor-strokes-icons/icons/CaretUp");require("brd-phosphor-strokes-icons/icons/EnvelopeSimple");require("brd-phosphor-strokes-icons/icons/MaxLogo");require("brd-phosphor-strokes-icons/icons/Phone");require("brd-phosphor-strokes-icons/icons/TelegramLogo");require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled");require("./components-input-phone-input-phone.cjs");require("./components-card-info-card-info.styles.cjs");const $="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAC8CAYAAAA96+FJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAGLxJREFUeAHtnd2OFEUbxwtYP0F3IFkTjJFeSeRAk91NOMAD4nIghCPhCliuQLwClisQr8DlCuA9MrseMCSeSbK7RI0eCCMHGPWA2XVVUNT3+Tf1DDW9XT3dPf1RT039kqHnc5nprn89H1X11B4VqJXPP/88mpqauvDff/8t0cMo8XKPbt09e/Zc++CDD7oqJ+vr65fpsEi3TxcWFm6oQG3sUYFauH79eufAgQOXSRiXzOdffPHF+PjkyZP4ZnDjn3/++fjs2bO9rL9L4likw039sE8COagCtTGlApUDq7Fv376bJI4Ij19//fX4dvDgcFv+7bff1E8//a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mOGm2zMwbOJHatpiyAQx9EDmLN0u4SHKhAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAg4A9hPUiF6OJtRepM5Xm/WUpnJKGcTrV4LxBqtJG+y42RH6Pg8+C+rgOlEu9FraddjVjXhJJW6rOv61YNSG4RoZ7WCItB4Ty+r+tZxX9DPRNr/JzvghQnEN1LR/qGQmeR0bgjLnA2qUWe20JvecfF4vpaYFwsLn4NxyYLT1eB0wIhMSxOTU3FxZmNyubSeu7AMIPyrnQ9u0+ePNlsqzB1HpwUCKzEvn377qkghkkBNZAXXLQuzloQEsk5cp9QyWNOUoXyQH70nh+32tzeYBRiYhBdYDnSxZVnubiyjjk6Pu6PIRkuZK0TAYM9UkgMiE02pAT3XmWxdMaqY96MTBVENK0sGaoQ1D8jUaXdzHb19Otb+vWH1OC3jNfiz/mU2QrjICmkjGdEKW9Lew6pY4iwrdpVZoNN0ks8To6v9KVlmJrg/7EWbAnX+5A7AAAAAElFTkSuQmCC",ee=["edit","sum","term","materials"],re={edit:{bg:"bg-info-new-bg",color:"text-info-new-text"},materials:{bg:"bg-contract-bg",color:"text-contract-text"},sum:{bg:"bg-follow-up-bg",color:"text-follow-up-text"},term:{bg:"bg-warning-bg",color:"text-warning-text"}},K=l=>re[l]??{bg:"",color:""},te=l=>{const b=l%10,n=l%100;return b===1&&n!==11?"заметку":b>=2&&b<=4&&(n<12||n>14)?"заметки":"заметок"},se=({logs:l,className:b,onDelete:n,onCreate:j,onEdit:L})=>{const[m,I]=s.useState(""),[u,p]=s.useState(null),[R,k]=s.useState(""),[a,f]=s.useState(null),[d,C]=s.useState([]),[c,h]=s.useState([]),J=s.useRef(null),y=s.useMemo(()=>new Map(l.flatMap(e=>e.id?[[e.id,e]]:[])),[l]),T=s.useMemo(()=>new Set(d),[d]),P=s.useMemo(()=>new Set(c),[c]),B=d.length>0,S=m.trim().length>0||!!u,E=m.length<20?1:2,M=a?"Редактирование заметки...":"Напишите заметку...",N=s.useCallback(e=>{C(t=>t.includes(e)?t.filter(i=>i!==e):[...t,e])},[]),v=s.useCallback(e=>{C(t=>t.filter(i=>i!==e))},[]),q=s.useCallback(()=>{C([])},[]),W=s.useCallback(e=>{h(t=>t.includes(e)?t.filter(i=>i!==e):[...t,e])},[]),Q=s.useCallback(()=>{h([])},[]),H=s.useCallback((e,t)=>{switch(t.id){case"select":N(e),f(null);break;case"edit":{const i=y.get(e);if(!i)return;f(e),I(i.message),p(i.imageUrl??null),h(i.tags),k(i.message),q();break}case"delete":{n?.([e]),v(e);break}}},[y,q,n,v,N,h]),G=s.useCallback(e=>{const t=e.target.value;I(t)},[]),o=s.useCallback(()=>{p(null),q(),Q(),I(""),k(""),f(null)},[Q,q]),D=s.useCallback(()=>{n?.(d),o()},[n,o,d]),w=s.useCallback(e=>{const t={message:e,imageUrl:u??void 0,tags:c.length>0?c:[],rowState:"default"};j?.(t),o()},[u,o,j,c]),F=s.useCallback(e=>{if(!a)return;const t=y.get(a);if(!t)return;const i={...t,message:e,imageUrl:u??void 0,tags:c.length>0?c:t.tags};L?.(i),o()},[a,u,y,o,L,c]),V=s.useCallback(()=>{J.current?.click()},[]),X=s.useCallback(e=>{const t=e.target.files?.[0];if(!t?.type.startsWith("image/"))return;const i=new FileReader;i.onload=()=>{const U=i.result;typeof U=="string"&&p(U)},i.readAsDataURL(t),e.target.value=""},[]),Z=s.useCallback(()=>{p(null)},[]),O=s.useCallback(()=>{const e=m.trim();if(S){if(a){F(e);return}w(e)}},[S,a,w,F,m]);return r.jsxs("div",{className:Y.cn("bg-primary-bg flex h-full w-full flex-col rounded-xl",b),children:[r.jsx("div",{className:"border-delicate-border border-b px-18 py-2.5",children:r.jsx(A.Typography,{variant:"body-lg-medium",className:"text-primary-text",children:"Журнал согласования"})}),r.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:l.length>0?l.map((e,t)=>r.jsx(z.ApprovalLogView,{item:e,isSelected:!!(e.id&&T.has(e.id)),isEditing:a===e.id,isSelectMode:B,onAction:H,getBadge:K},e.id??t)):r.jsxs("div",{className:`flex h-full flex-col items-center justify-center gap-4 px-4
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),z=require("./approval-log.view-BMiYO7Cf.cjs"),Y=require("./lib-utils.cjs");require("class-variance-authority");require("./components-ui-badge-badge.styles.cjs");const g=require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");require("./components-ui-card-card.cjs");require("./components-ui-checkbox-checkbox.cjs");require("brd-phosphor-strokes-icons/icons/CaretDown");const s=require("react");require("./calendar-BClkfQSD.cjs");const x=require("./components-ui-icon-icon.cjs");require("brd-phosphor-strokes-icons/icons");require("./components-ui-combobox-combobox.cjs");require("./components-ui-dialog-dialog.cjs");require("./components-ui-label-label.cjs");require("./components-ui-separator-separator.cjs");require("./components-ui-field-field.styles.cjs");require("./components-ui-input-input.styles.cjs");require("./components-ui-textarea-textarea.cjs");require("./components-ui-input-group-input-group.styles.cjs");require("./components-ui-navigation-item-navigation-item.styles.cjs");require("./components-ui-navigation-menu-navigation-menu.styles.cjs");require("./components-ui-pagination-pagination.cjs");require("./components-ui-progress-progress.cjs");require("./components-ui-radio-group-radio-group.cjs");require("./components-ui-switch-switch.cjs");require("./components-ui-toggle-toggle.styles.cjs");require("./components-ui-toggle-group-toggle-group.cjs");require("./components-ui-table-table.cjs");require("./components-ui-tabs-tabs.cjs");require("./components-ui-tooltip-tooltip.cjs");const A=require("./components-ui-typography-typography.cjs");require("./components-ui-typography-typography.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretLeft");require("brd-phosphor-strokes-icons/icons/CaretRight");require("./components-app-pagination-app-pagination.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretUpDown");require("./components-app-sidebar-app-sidebar.styles.cjs");require("./components-data-table-data-table.styles.cjs");require("./components-ui-dropdown-menu-dropdown-menu.styles.cjs");require("brd-phosphor-strokes-icons/icons/Eye");require("brd-phosphor-strokes-icons/icons/EyeSlash");require("./components-select-field-select-field.cjs");const _=require("./components-textarea-field-textarea-field.cjs");require("./lodash-kqhtUJfz.cjs");require("./chart-9H_9wEfR.cjs");require("brd-phosphor-strokes-icons/icons/CheckCircle");require("brd-phosphor-strokes-icons/icons/Info");require("brd-phosphor-strokes-icons/icons/SpinnerGap");require("brd-phosphor-strokes-icons/icons/Warning");require("brd-phosphor-strokes-icons/icons/X");require("brd-phosphor-strokes-icons/icons/XCircle");require("./index-DGxwh2Ms.cjs");require("./index-fTTv8YY8.cjs");require("brd-phosphor-strokes-icons/icons/Plus");require("brd-phosphor-strokes-icons/icons/CaretUp");require("brd-phosphor-strokes-icons/icons/EnvelopeSimple");require("brd-phosphor-strokes-icons/icons/MaxLogo");require("brd-phosphor-strokes-icons/icons/Phone");require("brd-phosphor-strokes-icons/icons/TelegramLogo");require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled");require("./components-input-phone-input-phone.cjs");require("./components-card-info-card-info.styles.cjs");const $="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAC8CAYAAAA96+FJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAGLxJREFUeAHtnd2OFEUbxwtYP0F3IFkTjJFeSeRAk91NOMAD4nIghCPhCliuQLwClisQr8DlCuA9MrseMCSeSbK7RI0eCCMHGPWA2XVVUNT3+Tf1DDW9XT3dPf1RT039kqHnc5nprn89H1X11B4VqJXPP/88mpqauvDff/8t0cMo8XKPbt09e/Zc++CDD7oqJ+vr65fpsEi3TxcWFm6oQG3sUYFauH79eufAgQOXSRiXzOdffPHF+PjkyZP4ZnDjn3/++fjs2bO9rL9L4likw039sE8COagCtTGlApUDq7Fv376bJI4Ij19//fX4dvDgcFv+7bff1E8//aR+/vln9ejRo3P0mcXV1dWLZ86cyWsV+ipQK8GCVAyLg+5Gr7zyipqbm1Mvv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IBAIBAKBQCAQCAQCgUAg4A9hPUiF6OJtRepM5Xm/WUpnJKGcTrV4LxBqtJG+y42RH6Pg8+C+rgOlEu9FraddjVjXhJJW6rOv61YNSG4RoZ7WCItB4Ty+r+tZxX9DPRNr/JzvghQnEN1LR/qGQmeR0bgjLnA2qUWe20JvecfF4vpaYFwsLn4NxyYLT1eB0wIhMSxOTU3FxZmNyubSeu7AMIPyrnQ9u0+ePNlsqzB1HpwUCKzEvn377qkghkkBNZAXXLQuzloQEsk5cp9QyWNOUoXyQH70nh+32tzeYBRiYhBdYDnSxZVnubiyjjk6Pu6PIRkuZK0TAYM9UkgMiE02pAT3XmWxdMaqY96MTBVENK0sGaoQ1D8jUaXdzHb19Otb+vWH1OC3jNfiz/mU2QrjICmkjGdEKW9Lew6pY4iwrdpVZoNN0ks8To6v9KVlmJrg/7EWbAnX+5A7AAAAAElFTkSuQmCC",ee=["edit","sum","term","materials"],re={edit:{bg:"bg-info-new-bg",color:"text-info-new-text"},materials:{bg:"bg-contract-bg",color:"text-contract-text"},sum:{bg:"bg-follow-up-bg",color:"text-follow-up-text"},term:{bg:"bg-warning-bg",color:"text-warning-text"}},K=l=>re[l]??{bg:"",color:""},te=l=>{const b=l%10,n=l%100;return b===1&&n!==11?"заметку":b>=2&&b<=4&&(n<12||n>14)?"заметки":"заметок"},se=({logs:l,className:b,onDelete:n,onCreate:j,onEdit:L})=>{const[m,I]=s.useState(""),[u,p]=s.useState(null),[R,k]=s.useState(""),[a,f]=s.useState(null),[d,C]=s.useState([]),[c,h]=s.useState([]),J=s.useRef(null),y=s.useMemo(()=>new Map(l.flatMap(e=>e.id?[[e.id,e]]:[])),[l]),T=s.useMemo(()=>new Set(d),[d]),P=s.useMemo(()=>new Set(c),[c]),B=d.length>0,S=m.trim().length>0||!!u,E=m.length<20?1:2,M=a?"Редактирование заметки...":"Напишите заметку...",N=s.useCallback(e=>{C(t=>t.includes(e)?t.filter(i=>i!==e):[...t,e])},[]),v=s.useCallback(e=>{C(t=>t.filter(i=>i!==e))},[]),q=s.useCallback(()=>{C([])},[]),W=s.useCallback(e=>{h(t=>t.includes(e)?t.filter(i=>i!==e):[...t,e])},[]),Q=s.useCallback(()=>{h([])},[]),H=s.useCallback((e,t)=>{switch(t.id){case"select":N(e),f(null);break;case"edit":{const i=y.get(e);if(!i)return;f(e),I(i.message),p(i.imageUrl??null),h(i.tags),k(i.message),q();break}case"delete":{n?.([e]),v(e);break}}},[y,q,n,v,N,h]),G=s.useCallback(e=>{const t=e.target.value;I(t)},[]),o=s.useCallback(()=>{p(null),q(),Q(),I(""),k(""),f(null)},[Q,q]),D=s.useCallback(()=>{n?.(d),o()},[n,o,d]),w=s.useCallback(e=>{const t={message:e,imageUrl:u??void 0,tags:c.length>0?c:[],rowState:"default"};j?.(t),o()},[u,o,j,c]),F=s.useCallback(e=>{if(!a)return;const t=y.get(a);if(!t)return;const i={...t,message:e,imageUrl:u??void 0,tags:c.length>0?c:t.tags};L?.(i),o()},[a,u,y,o,L,c]),V=s.useCallback(()=>{J.current?.click()},[]),X=s.useCallback(e=>{const t=e.target.files?.[0];if(!t?.type.startsWith("image/"))return;const i=new FileReader;i.onload=()=>{const U=i.result;typeof U=="string"&&p(U)},i.readAsDataURL(t),e.target.value=""},[]),Z=s.useCallback(()=>{p(null)},[]),O=s.useCallback(()=>{const e=m.trim();if(S){if(a){F(e);return}w(e)}},[S,a,w,F,m]);return r.jsxs("div",{className:Y.cn("bg-primary-bg flex h-full w-full flex-col rounded-xl",b),children:[r.jsx("div",{className:"border-delicate-border border-b px-18 py-2.5",children:r.jsx(A.Typography,{variant:"body-lg-medium",className:"text-primary-text",children:"Журнал согласования"})}),r.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:l.length>0?l.map((e,t)=>r.jsx(z.ApprovalLogView,{item:e,isSelected:!!(e.id&&T.has(e.id)),isEditing:a===e.id,isSelectMode:B,onAction:H,getBadge:K},e.id??t)):r.jsxs("div",{className:`flex h-full flex-col items-center justify-center gap-4 px-4
|
|
2
2
|
text-center`,children:[r.jsx("img",{src:$,alt:"not-found"}),r.jsx(A.Typography,{variant:"body-sm-regular",className:"text-secondary-text",children:"Место для важных заметок по продвижению заявки. Любые комментарии, скриншоты и все, что может помочь Вам освободить голову."})]})}),r.jsx("div",{className:"mt-auto shrink-0",children:B?r.jsxs("div",{className:`bg-secondary-bg border-delicate-border flex items-center
|
|
3
3
|
justify-between rounded-b-xl border-t px-2 py-3`,children:[r.jsx(g.Button,{variant:"circleGhost",onClick:o,children:r.jsx(x.Icon,{type:"x-circle",className:"text-secondary-text",size:25,strokeWidth:1.5})}),r.jsxs(A.Typography,{variant:"body-sm-regular",className:"text-secondary-text",children:["Удалить ",d.length," ",te(d.length),"..."]}),r.jsx(g.Button,{variant:"circleGhost",onClick:D,children:r.jsx(x.Icon,{type:"trash",className:"text-error-text",size:25,strokeWidth:1.5})})]}):r.jsxs("div",{children:[r.jsx("div",{className:"border-delicate-border flex justify-center gap-1 border-t p-2",children:ee.map(e=>{const t=K(e);return r.jsx("div",{onClick:()=>W(e),className:Y.cn(`flex w-full cursor-pointer items-center gap-1.25 rounded-lg border
|
|
4
4
|
px-3 py-1`,t.bg,t.color,P.has(e)?"border-current":"border-transparent"),children:r.jsx(A.Typography,{variant:"body-xxs-medium",className:"w-full text-center",children:e})},e)})}),r.jsxs("div",{className:`border-delicate-border bg-secondary-bg rounded-b-xl border-t px-2
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { A as ee } from "./approval-log.view-
|
|
2
|
+
import { A as ee } from "./approval-log.view-D_-VDB_3.js";
|
|
3
3
|
import { cn as E } from "./lib-utils.js";
|
|
4
4
|
import "class-variance-authority";
|
|
5
5
|
import "./components-ui-badge-badge.styles.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("./approval-log.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("./approval-log.view-BMiYO7Cf.cjs");require("./lib-utils.cjs");require("class-variance-authority");require("./components-ui-badge-badge.styles.cjs");require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");require("./components-ui-card-card.cjs");require("./components-ui-checkbox-checkbox.cjs");require("brd-phosphor-strokes-icons/icons/CaretDown");require("./hooks-usePopupControls.cjs");require("./calendar-BClkfQSD.cjs");require("./components-ui-icon-icon.cjs");require("brd-phosphor-strokes-icons/icons");require("./components-ui-combobox-combobox.cjs");require("./components-ui-dialog-dialog.cjs");require("react");require("./components-ui-label-label.cjs");require("./components-ui-separator-separator.cjs");require("./components-ui-field-field.styles.cjs");require("./components-ui-input-input.styles.cjs");require("./components-ui-textarea-textarea.cjs");require("./components-ui-input-group-input-group.styles.cjs");require("./components-ui-navigation-item-navigation-item.styles.cjs");require("./components-ui-navigation-menu-navigation-menu.styles.cjs");require("./components-ui-pagination-pagination.cjs");require("./components-ui-progress-progress.cjs");require("./components-ui-radio-group-radio-group.cjs");require("./components-ui-switch-switch.cjs");require("./components-ui-toggle-toggle.styles.cjs");require("./components-ui-toggle-group-toggle-group.cjs");require("./components-ui-table-table.cjs");require("./components-ui-tabs-tabs.cjs");require("./components-ui-tooltip-tooltip.cjs");require("./components-ui-typography-typography.cjs");require("./components-ui-typography-typography.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretLeft");require("brd-phosphor-strokes-icons/icons/CaretRight");require("./components-app-pagination-app-pagination.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretUpDown");require("./components-app-sidebar-app-sidebar.styles.cjs");require("./components-data-table-data-table.styles.cjs");require("./components-ui-dropdown-menu-dropdown-menu.cjs");require("brd-phosphor-strokes-icons/icons/Eye");require("brd-phosphor-strokes-icons/icons/EyeSlash");require("./components-select-field-select-field.cjs");require("./lodash-kqhtUJfz.cjs");require("./chart-9H_9wEfR.cjs");require("brd-phosphor-strokes-icons/icons/CheckCircle");require("brd-phosphor-strokes-icons/icons/Info");require("brd-phosphor-strokes-icons/icons/SpinnerGap");require("brd-phosphor-strokes-icons/icons/Warning");require("brd-phosphor-strokes-icons/icons/X");require("brd-phosphor-strokes-icons/icons/XCircle");require("./index-DGxwh2Ms.cjs");require("./index-fTTv8YY8.cjs");require("brd-phosphor-strokes-icons/icons/Plus");require("brd-phosphor-strokes-icons/icons/CaretUp");require("brd-phosphor-strokes-icons/icons/EnvelopeSimple");require("brd-phosphor-strokes-icons/icons/MaxLogo");require("brd-phosphor-strokes-icons/icons/Phone");require("brd-phosphor-strokes-icons/icons/TelegramLogo");require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled");require("./components-input-phone-input-phone.cjs");require("./components-card-info-card-info.styles.cjs");exports.ApprovalLogView=e.ApprovalLogView;
|
|
2
2
|
//# sourceMappingURL=components-approval-log-approval-log.view.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),x=require("./approval-log.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),x=require("./approval-log.view-BMiYO7Cf.cjs"),v=require("./lib-utils.cjs");require("class-variance-authority");require("./components-ui-badge-badge.styles.cjs");require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");require("./components-ui-card-card.cjs");require("./components-ui-checkbox-checkbox.cjs");require("brd-phosphor-strokes-icons/icons/CaretDown");const A=require("react");require("./calendar-BClkfQSD.cjs");require("brd-phosphor-strokes-icons/icons");require("./components-ui-combobox-combobox.cjs");require("./components-ui-dialog-dialog.cjs");require("./components-ui-label-label.cjs");require("./components-ui-separator-separator.cjs");require("./components-ui-field-field.styles.cjs");require("./components-ui-input-input.styles.cjs");require("./components-ui-textarea-textarea.cjs");require("./components-ui-input-group-input-group.styles.cjs");require("./components-ui-navigation-item-navigation-item.styles.cjs");require("./components-ui-navigation-menu-navigation-menu.styles.cjs");require("./components-ui-pagination-pagination.cjs");require("./components-ui-progress-progress.cjs");require("./components-ui-radio-group-radio-group.cjs");require("./components-ui-switch-switch.cjs");require("./components-ui-toggle-toggle.styles.cjs");require("./components-ui-toggle-group-toggle-group.cjs");require("./components-ui-table-table.cjs");require("./components-ui-tabs-tabs.cjs");require("./components-ui-tooltip-tooltip.cjs");const y=require("./components-ui-typography-typography.cjs");require("./components-ui-typography-typography.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretLeft");require("brd-phosphor-strokes-icons/icons/CaretRight");require("./components-app-pagination-app-pagination.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretUpDown");require("./components-app-sidebar-app-sidebar.styles.cjs");require("./components-data-table-data-table.styles.cjs");require("./components-ui-dropdown-menu-dropdown-menu.styles.cjs");require("brd-phosphor-strokes-icons/icons/Eye");require("brd-phosphor-strokes-icons/icons/EyeSlash");require("./components-select-field-select-field.cjs");require("./lodash-kqhtUJfz.cjs");require("./chart-9H_9wEfR.cjs");require("brd-phosphor-strokes-icons/icons/CheckCircle");require("brd-phosphor-strokes-icons/icons/Info");require("brd-phosphor-strokes-icons/icons/SpinnerGap");require("brd-phosphor-strokes-icons/icons/Warning");require("brd-phosphor-strokes-icons/icons/X");require("brd-phosphor-strokes-icons/icons/XCircle");require("./index-DGxwh2Ms.cjs");require("./index-fTTv8YY8.cjs");const f=require("./index-DJD-8LQA.cjs");require("brd-phosphor-strokes-icons/icons/Plus");require("brd-phosphor-strokes-icons/icons/CaretUp");require("brd-phosphor-strokes-icons/icons/EnvelopeSimple");require("brd-phosphor-strokes-icons/icons/MaxLogo");require("brd-phosphor-strokes-icons/icons/Phone");require("brd-phosphor-strokes-icons/icons/TelegramLogo");require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled");require("./components-input-phone-input-phone.cjs");require("./components-card-info-card-info.styles.cjs");const h=1,j=[".jpg",".png"],b=({src:u,fullName:t,maxFiles:n=h,accept:s=j,avatarProps:a,containerClassName:c,onChange:q})=>{const o=A.useMemo(()=>{const[e="",i=""]=t.split(" "),g=e.charAt(0),m=i.charAt(0);return(g+m).toUpperCase()||"?"},[t]),{getRootProps:p,getInputProps:l}=f.useDropzone({accept:{"image/*":s},maxFiles:n,onDrop:e=>{if(e.length===0)return;const i=URL.createObjectURL(e[0]);q?.(i)}}),d=e=>{e.stopPropagation(),q?.(null)};return r.jsxs("div",{...p(),className:v.cn(`bg-info-new-bg flex h-18 w-18 cursor-pointer items-center justify-center
|
|
2
2
|
overflow-hidden rounded-full transition-colors`,c),children:[r.jsx("input",{...l()}),u?r.jsx(x.BasicAvatar,{...a,image:{src:u},initials:{text:o},hasBadge:!0,onClick:d}):r.jsx(y.Typography,{variant:"body-xxl-medium",className:"text-info-new-text flex items-center justify-center",children:o})]})};exports.AvatarUpload=b;
|
|
3
3
|
//# sourceMappingURL=components-avatar-uploader-avatar-uploader.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as x, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { B as A } from "./approval-log.view-
|
|
2
|
+
import { B as A } from "./approval-log.view-D_-VDB_3.js";
|
|
3
3
|
import { cn as h } from "./lib-utils.js";
|
|
4
4
|
import "class-variance-authority";
|
|
5
5
|
import "./components-ui-badge-badge.styles.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("./approval-log.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("./approval-log.view-BMiYO7Cf.cjs");require("./lib-utils.cjs");require("class-variance-authority");require("./components-ui-badge-badge.styles.cjs");require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");require("./components-ui-card-card.cjs");require("./components-ui-checkbox-checkbox.cjs");require("brd-phosphor-strokes-icons/icons/CaretDown");require("react");require("./calendar-BClkfQSD.cjs");require("./components-ui-icon-icon.cjs");require("brd-phosphor-strokes-icons/icons");require("./components-ui-combobox-combobox.cjs");require("./components-ui-dialog-dialog.cjs");require("./components-ui-label-label.cjs");require("./components-ui-separator-separator.cjs");require("./components-ui-field-field.styles.cjs");require("./components-ui-input-input.styles.cjs");require("./components-ui-textarea-textarea.cjs");require("./components-ui-input-group-input-group.styles.cjs");require("./components-ui-navigation-item-navigation-item.styles.cjs");require("./components-ui-navigation-menu-navigation-menu.styles.cjs");require("./components-ui-pagination-pagination.cjs");require("./components-ui-progress-progress.cjs");require("./components-ui-radio-group-radio-group.cjs");require("./components-ui-switch-switch.cjs");require("./components-ui-toggle-toggle.styles.cjs");require("./components-ui-toggle-group-toggle-group.cjs");require("./components-ui-table-table.cjs");require("./components-ui-tabs-tabs.cjs");require("./components-ui-tooltip-tooltip.cjs");require("./components-ui-typography-typography.cjs");require("./components-ui-typography-typography.styles.cjs");require("./components-ui-avatar-avatar.cjs");require("./utils-helpers.cjs");require("brd-phosphor-strokes-icons/icons/CaretLeft");require("brd-phosphor-strokes-icons/icons/CaretRight");require("./components-app-pagination-app-pagination.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretUpDown");require("./components-app-sidebar-app-sidebar.styles.cjs");require("./components-data-table-data-table.styles.cjs");require("./components-ui-dropdown-menu-dropdown-menu.styles.cjs");require("brd-phosphor-strokes-icons/icons/Eye");require("brd-phosphor-strokes-icons/icons/EyeSlash");require("./components-select-field-select-field.cjs");require("./lodash-kqhtUJfz.cjs");require("./chart-9H_9wEfR.cjs");require("brd-phosphor-strokes-icons/icons/CheckCircle");require("brd-phosphor-strokes-icons/icons/Info");require("brd-phosphor-strokes-icons/icons/SpinnerGap");require("brd-phosphor-strokes-icons/icons/Warning");require("brd-phosphor-strokes-icons/icons/X");require("brd-phosphor-strokes-icons/icons/XCircle");require("./index-DGxwh2Ms.cjs");require("./index-fTTv8YY8.cjs");require("brd-phosphor-strokes-icons/icons/Plus");require("brd-phosphor-strokes-icons/icons/CaretUp");require("brd-phosphor-strokes-icons/icons/EnvelopeSimple");require("brd-phosphor-strokes-icons/icons/MaxLogo");require("brd-phosphor-strokes-icons/icons/Phone");require("brd-phosphor-strokes-icons/icons/TelegramLogo");require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled");require("./components-input-phone-input-phone.cjs");require("./components-card-info-card-info.styles.cjs");exports.BasicAvatar=e.BasicAvatar;
|
|
2
2
|
//# sourceMappingURL=components-basic-avatar-basic-avatar.cjs.map
|