brd-ui-kit 0.1.83 → 0.1.85
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/{calendar-Cf3VkgyX.js → calendar-B78l3uF9.js} +2 -2
- package/dist/{calendar-Cf3VkgyX.js.map → calendar-B78l3uF9.js.map} +1 -1
- package/dist/calendar-BClkfQSD.cjs +2 -0
- package/dist/{calendar-DvDG9hIB.cjs.map → calendar-BClkfQSD.cjs.map} +1 -1
- package/dist/{calendar-locale-Br6M-e1P.cjs → calendar-locale-CbU8VmD3.cjs} +2 -2
- package/dist/{calendar-locale-Br6M-e1P.cjs.map → calendar-locale-CbU8VmD3.cjs.map} +1 -1
- package/dist/{calendar-locale-DivjTEYg.js → calendar-locale-CtuBfQOO.js} +2 -2
- package/dist/{calendar-locale-DivjTEYg.js.map → calendar-locale-CtuBfQOO.js.map} +1 -1
- package/dist/components/approval-log/approval-log.d.ts +1 -1
- package/dist/components/approval-log/index.d.ts +1 -1
- package/dist/components/card-info/card-info.d.ts +3 -2
- package/dist/components/icons/ArrowCounterClockwise.d.ts +1 -1
- package/dist/components/icons/BoundingBox.d.ts +1 -1
- package/dist/components/icons/Briefcase.d.ts +1 -1
- package/dist/components/icons/Building.d.ts +1 -1
- package/dist/components/icons/Buildings.d.ts +1 -1
- package/dist/components/icons/CaretDown.d.ts +1 -1
- package/dist/components/icons/CaretLeft.d.ts +1 -1
- package/dist/components/icons/CaretRight.d.ts +1 -1
- package/dist/components/icons/CaretUp.d.ts +1 -1
- package/dist/components/icons/CaretUpDown.d.ts +1 -1
- package/dist/components/icons/ChartLine.d.ts +1 -1
- package/dist/components/icons/Check.d.ts +1 -1
- package/dist/components/icons/CheckCircle.d.ts +1 -1
- package/dist/components/icons/Clock.d.ts +1 -1
- package/dist/components/icons/CreditCard.d.ts +1 -1
- package/dist/components/icons/DotsThree.d.ts +1 -1
- package/dist/components/icons/DownloadSimple.d.ts +1 -1
- package/dist/components/icons/EnvelopeSimple.d.ts +1 -1
- package/dist/components/icons/Eye.d.ts +1 -1
- package/dist/components/icons/EyeSlash.d.ts +1 -1
- package/dist/components/icons/FileText.d.ts +1 -1
- package/dist/components/icons/Folder.d.ts +1 -1
- package/dist/components/icons/Funnel.d.ts +1 -1
- package/dist/components/icons/Gear.d.ts +1 -1
- package/dist/components/icons/Info.d.ts +1 -1
- package/dist/components/icons/LockKey.d.ts +1 -1
- package/dist/components/icons/MagnifyingGlass.d.ts +1 -1
- package/dist/components/icons/MaxLogo.d.ts +1 -1
- package/dist/components/icons/Package.d.ts +1 -1
- package/dist/components/icons/Pencil.d.ts +1 -1
- package/dist/components/icons/Phone.d.ts +1 -1
- package/dist/components/icons/Plus.d.ts +1 -1
- package/dist/components/icons/PresentationChart.d.ts +1 -1
- package/dist/components/icons/SpinnerGap.d.ts +1 -1
- package/dist/components/icons/TelegramLogo.d.ts +1 -1
- package/dist/components/icons/Trash.d.ts +1 -1
- package/dist/components/icons/UserCircleGear.d.ts +1 -1
- package/dist/components/icons/Users.d.ts +1 -1
- package/dist/components/icons/UsersFour.d.ts +1 -1
- package/dist/components/icons/Warning.d.ts +1 -1
- package/dist/components/icons/WarningCircle.d.ts +1 -1
- package/dist/components/icons/WhatsAppLogoFilled.d.ts +1 -1
- package/dist/components/icons/Wrench.d.ts +1 -1
- package/dist/components/icons/X.d.ts +1 -1
- package/dist/components/icons/XCircle.d.ts +1 -1
- package/dist/components/icons/index.d.ts +46 -46
- package/dist/components/icons/stroke-icon.d.ts +1 -1
- package/dist/components/story-drawer/index.d.ts +1 -1
- package/dist/components/story-drawer/story-drawer.d.ts +2 -2
- package/dist/components/ui/icon/icon-map.d.ts +1 -1
- package/dist/components/ui/icon/icon.d.ts +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/components-approval-log-approval-log.cjs +1 -1
- package/dist/components-approval-log-approval-log.cjs.map +1 -1
- package/dist/components-approval-log-approval-log.js +21 -21
- package/dist/components-approval-log-approval-log.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 +21 -21
- package/dist/components-basic-avatar-basic-avatar.cjs +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +21 -21
- package/dist/components-card-info-card-info.cjs +1 -1
- package/dist/components-card-info-card-info.cjs.map +1 -1
- package/dist/components-card-info-card-info.js +15 -14
- package/dist/components-card-info-card-info.js.map +1 -1
- package/dist/components-checkbox-group-checkbox-group.cjs +1 -1
- package/dist/components-checkbox-group-checkbox-group.cjs.map +1 -1
- package/dist/components-checkbox-group-checkbox-group.js +21 -21
- package/dist/components-data-table-data-table-actions-column.cjs +1 -1
- package/dist/components-data-table-data-table-actions-column.cjs.map +1 -1
- package/dist/components-data-table-data-table-actions-column.js +1 -1
- package/dist/components-data-table-data-table-column-visibility.cjs +1 -1
- package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -1
- package/dist/components-data-table-data-table-column-visibility.js +1 -1
- package/dist/components-data-table-data-table-row-actions-column.cjs +1 -1
- package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -1
- package/dist/components-data-table-data-table-row-actions-column.js +1 -1
- package/dist/components-files-uploader-files-uploader.cjs +1 -1
- package/dist/components-files-uploader-files-uploader.cjs.map +1 -1
- package/dist/components-files-uploader-files-uploader.js +3 -3
- package/dist/components-icons-ArrowCounterClockwise.cjs +1 -1
- package/dist/components-icons-ArrowCounterClockwise.js +1 -1
- package/dist/components-icons-BoundingBox.cjs +1 -1
- package/dist/components-icons-BoundingBox.js +1 -1
- package/dist/components-icons-Briefcase.cjs +1 -1
- package/dist/components-icons-Briefcase.js +1 -1
- package/dist/components-icons-Building.cjs +1 -1
- package/dist/components-icons-Building.js +1 -1
- package/dist/components-icons-Buildings.cjs +1 -1
- package/dist/components-icons-Buildings.js +1 -1
- package/dist/components-icons-CaretDown.cjs +1 -1
- package/dist/components-icons-CaretDown.js +1 -1
- package/dist/components-icons-CaretLeft.cjs +1 -1
- package/dist/components-icons-CaretLeft.js +1 -1
- package/dist/components-icons-CaretRight.cjs +1 -1
- package/dist/components-icons-CaretRight.js +1 -1
- package/dist/components-icons-CaretUp.cjs +1 -1
- package/dist/components-icons-CaretUp.js +1 -1
- package/dist/components-icons-CaretUpDown.cjs +1 -1
- package/dist/components-icons-CaretUpDown.js +1 -1
- package/dist/components-icons-ChartLine.cjs +1 -1
- package/dist/components-icons-ChartLine.js +1 -1
- package/dist/components-icons-Check.cjs +1 -1
- package/dist/components-icons-Check.js +1 -1
- package/dist/components-icons-CheckCircle.cjs +1 -1
- package/dist/components-icons-CheckCircle.js +1 -1
- package/dist/components-icons-Clock.cjs +1 -1
- package/dist/components-icons-Clock.js +1 -1
- package/dist/components-icons-CreditCard.cjs +1 -1
- package/dist/components-icons-CreditCard.js +1 -1
- package/dist/components-icons-DotsThree.cjs +1 -1
- package/dist/components-icons-DotsThree.js +1 -1
- package/dist/components-icons-DownloadSimple.cjs +1 -1
- package/dist/components-icons-DownloadSimple.js +1 -1
- package/dist/components-icons-EnvelopeSimple.cjs +1 -1
- package/dist/components-icons-EnvelopeSimple.js +1 -1
- package/dist/components-icons-Eye.cjs +1 -1
- package/dist/components-icons-Eye.js +1 -1
- package/dist/components-icons-EyeSlash.cjs +1 -1
- package/dist/components-icons-EyeSlash.js +1 -1
- package/dist/components-icons-FileText.cjs +1 -1
- package/dist/components-icons-FileText.js +1 -1
- package/dist/components-icons-Folder.cjs +1 -1
- package/dist/components-icons-Folder.js +1 -1
- package/dist/components-icons-Funnel.cjs +1 -1
- package/dist/components-icons-Funnel.js +1 -1
- package/dist/components-icons-Gear.cjs +1 -1
- package/dist/components-icons-Gear.js +1 -1
- package/dist/components-icons-Info.cjs +1 -1
- package/dist/components-icons-Info.js +1 -1
- package/dist/components-icons-LockKey.cjs +1 -1
- package/dist/components-icons-LockKey.js +1 -1
- package/dist/components-icons-MagnifyingGlass.cjs +1 -1
- package/dist/components-icons-MagnifyingGlass.js +1 -1
- package/dist/components-icons-MaxLogo.cjs +1 -1
- package/dist/components-icons-MaxLogo.js +1 -1
- package/dist/components-icons-Package.cjs +1 -1
- package/dist/components-icons-Package.js +1 -1
- package/dist/components-icons-Pencil.cjs +1 -1
- package/dist/components-icons-Pencil.js +1 -1
- package/dist/components-icons-Phone.cjs +1 -1
- package/dist/components-icons-Phone.js +1 -1
- package/dist/components-icons-Plus.cjs +1 -1
- package/dist/components-icons-Plus.js +1 -1
- package/dist/components-icons-PresentationChart.cjs +1 -1
- package/dist/components-icons-PresentationChart.js +1 -1
- package/dist/components-icons-SpinnerGap.cjs +1 -1
- package/dist/components-icons-SpinnerGap.js +1 -1
- package/dist/components-icons-TelegramLogo.cjs +1 -1
- package/dist/components-icons-TelegramLogo.js +1 -1
- package/dist/components-icons-Trash.cjs +1 -1
- package/dist/components-icons-Trash.js +1 -1
- package/dist/components-icons-UserCircleGear.cjs +1 -1
- package/dist/components-icons-UserCircleGear.js +1 -1
- package/dist/components-icons-Users.cjs +1 -1
- package/dist/components-icons-Users.js +1 -1
- package/dist/components-icons-UsersFour.cjs +1 -1
- package/dist/components-icons-UsersFour.js +1 -1
- package/dist/components-icons-Warning.cjs +1 -1
- package/dist/components-icons-Warning.js +1 -1
- package/dist/components-icons-WarningCircle.cjs +1 -1
- package/dist/components-icons-WarningCircle.js +1 -1
- package/dist/components-icons-WhatsAppLogoFilled.cjs +1 -1
- package/dist/components-icons-WhatsAppLogoFilled.js +1 -1
- package/dist/components-icons-Wrench.cjs +1 -1
- package/dist/components-icons-Wrench.js +1 -1
- package/dist/components-icons-X.cjs +1 -1
- package/dist/components-icons-X.js +1 -1
- package/dist/components-icons-XCircle.cjs +1 -1
- package/dist/components-icons-XCircle.js +1 -1
- package/dist/components-icons-stroke-icon.cjs.map +1 -1
- package/dist/components-icons-stroke-icon.js.map +1 -1
- package/dist/components-icons.cjs +1 -1
- package/dist/components-icons.js +45 -45
- package/dist/components-input-contact-input-contact.cjs +1 -1
- package/dist/components-input-contact-input-contact.cjs.map +1 -1
- package/dist/components-input-contact-input-contact.js +21 -21
- 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-story-drawer-story-drawer.cjs +1 -1
- package/dist/components-story-drawer-story-drawer.cjs.map +1 -1
- package/dist/components-story-drawer-story-drawer.js +21 -21
- package/dist/components-story-drawer-story-drawer.js.map +1 -1
- package/dist/components-transfer-list-transfer-list-card.cjs +1 -1
- package/dist/components-transfer-list-transfer-list-card.cjs.map +1 -1
- package/dist/components-transfer-list-transfer-list-card.js +1 -1
- package/dist/components-transfer-list-transfer-list.cjs +1 -1
- package/dist/components-transfer-list-transfer-list.cjs.map +1 -1
- package/dist/components-transfer-list-transfer-list.js +1 -1
- package/dist/components-ui-calendar-calendar.cjs +1 -1
- package/dist/components-ui-calendar-calendar.js +2 -2
- package/dist/components-ui-calendar.cjs +1 -1
- package/dist/components-ui-calendar.js +2 -2
- 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 +1 -1
- package/dist/components-ui-combobox-combobox.cjs +1 -1
- package/dist/components-ui-combobox-combobox.cjs.map +1 -1
- package/dist/components-ui-combobox-combobox.js +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 +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.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 +1 -1
- 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 +23 -23
- package/dist/components-ui-icon-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 +3 -3
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +2 -2
- 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 +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 +6 -6
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +26 -25
- package/dist/index.js +17 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/calendar-DvDG9hIB.cjs +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("./calendar-
|
|
2
|
-
//# sourceMappingURL=calendar-locale-
|
|
1
|
+
"use strict";const r=require("./calendar-BClkfQSD.cjs"),n=require("./ru-t19YoSZw.cjs"),c={...n.ru,labels:{labelDayButton:(e,a,t,o)=>{let l=(o??new r.DateLib(t)).format(e,"PPPP");return a.today&&(l=`Сегодня, ${l}`),a.selected&&(l=`${l}, выбрано`),l},labelMonthDropdown:"Выберите месяц",labelNext:"Перейти к следующему месяцу",labelPrevious:"Перейти к предыдущему месяцу",labelWeekNumber:e=>`Неделя ${e}`,labelYearDropdown:"Выберите год",labelGrid:(e,a,t)=>(t??new r.DateLib(a)).formatMonthYear(e),labelGridcell:(e,a,t,o)=>{let l=(o??new r.DateLib(t)).format(e,"PPPP");return a?.today&&(l=`Сегодня, ${l}`),l},labelNav:"Панель навигации",labelWeekNumberHeader:"Номер недели",labelWeekday:(e,a,t)=>(t??new r.DateLib(a)).format(e,"cccc")}},i={ru:c,es:r.enUS};exports.localeMode=i;
|
|
2
|
+
//# sourceMappingURL=calendar-locale-CbU8VmD3.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-locale-
|
|
1
|
+
{"version":3,"file":"calendar-locale-CbU8VmD3.cjs","sources":["../node_modules/.pnpm/react-day-picker@9.14.0_react@19.2.4/node_modules/react-day-picker/dist/esm/locale/ru.js","../src/constants/calendar-locale.ts"],"sourcesContent":["import { ru as dateFnsRu } from \"date-fns/locale\";\nimport { DateLib } from \"../classes/DateLib.js\";\n/** Russian locale extended with DayPicker-specific translations. */\nexport const ru = {\n ...dateFnsRu,\n labels: {\n labelDayButton: (date, modifiers, options, dateLib) => {\n const lib = dateLib ?? new DateLib(options);\n let label = lib.format(date, \"PPPP\");\n if (modifiers.today)\n label = `Сегодня, ${label}`;\n if (modifiers.selected)\n label = `${label}, выбрано`;\n return label;\n },\n labelMonthDropdown: \"Выберите месяц\",\n labelNext: \"Перейти к следующему месяцу\",\n labelPrevious: \"Перейти к предыдущему месяцу\",\n labelWeekNumber: (weekNumber) => `Неделя ${weekNumber}`,\n labelYearDropdown: \"Выберите год\",\n labelGrid: (date, options, dateLib) => (dateLib ?? new DateLib(options)).formatMonthYear(date),\n labelGridcell: (date, modifiers, options, dateLib) => {\n const lib = dateLib ?? new DateLib(options);\n let label = lib.format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Сегодня, ${label}`;\n }\n return label;\n },\n labelNav: \"Панель навигации\",\n labelWeekNumberHeader: \"Номер недели\",\n labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, \"cccc\"),\n },\n};\n","import { enUS, ru } from \"react-day-picker/locale\";\n\nexport const localeMode = {\n ru,\n es: enUS,\n};\n"],"names":["ru","dateFnsRu","date","modifiers","options","dateLib","label","DateLib","weekNumber","localeMode","enUS"],"mappings":"uFAGaA,EAAK,CACd,GAAGC,EAAAA,GACH,OAAQ,CACJ,eAAgB,CAACC,EAAMC,EAAWC,EAASC,IAAY,CAEnD,IAAIC,GADQD,GAAW,IAAIE,EAAAA,QAAQH,CAAO,GAC1B,OAAOF,EAAM,MAAM,EACnC,OAAIC,EAAU,QACVG,EAAQ,YAAYA,CAAK,IACzBH,EAAU,WACVG,EAAQ,GAAGA,CAAK,aACbA,CACX,EACA,mBAAoB,iBACpB,UAAW,8BACX,cAAe,+BACf,gBAAkBE,GAAe,UAAUA,CAAU,GACrD,kBAAmB,eACnB,UAAW,CAACN,EAAME,EAASC,KAAaA,GAAW,IAAIE,UAAQH,CAAO,GAAG,gBAAgBF,CAAI,EAC7F,cAAe,CAACA,EAAMC,EAAWC,EAASC,IAAY,CAElD,IAAIC,GADQD,GAAW,IAAIE,EAAAA,QAAQH,CAAO,GAC1B,OAAOF,EAAM,MAAM,EACnC,OAAIC,GAAW,QACXG,EAAQ,YAAYA,CAAK,IAEtBA,CACX,EACA,SAAU,mBACV,sBAAuB,eACvB,aAAc,CAACJ,EAAME,EAASC,KAAaA,GAAW,IAAIE,EAAAA,QAAQH,CAAO,GAAG,OAAOF,EAAM,MAAM,CACvG,CACA,EC/BaO,EAAa,CACxB,GAAAT,EACA,GAAIU,EAAAA,IACN","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as o, e as n } from "./calendar-
|
|
1
|
+
import { D as o, e as n } from "./calendar-B78l3uF9.js";
|
|
2
2
|
import { r as c } from "./ru-DIeHL4OP.js";
|
|
3
3
|
const i = {
|
|
4
4
|
...c,
|
|
@@ -28,4 +28,4 @@ const i = {
|
|
|
28
28
|
export {
|
|
29
29
|
m as l
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=calendar-locale-
|
|
31
|
+
//# sourceMappingURL=calendar-locale-CtuBfQOO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-locale-
|
|
1
|
+
{"version":3,"file":"calendar-locale-CtuBfQOO.js","sources":["../node_modules/.pnpm/react-day-picker@9.14.0_react@19.2.4/node_modules/react-day-picker/dist/esm/locale/ru.js","../src/constants/calendar-locale.ts"],"sourcesContent":["import { ru as dateFnsRu } from \"date-fns/locale\";\nimport { DateLib } from \"../classes/DateLib.js\";\n/** Russian locale extended with DayPicker-specific translations. */\nexport const ru = {\n ...dateFnsRu,\n labels: {\n labelDayButton: (date, modifiers, options, dateLib) => {\n const lib = dateLib ?? new DateLib(options);\n let label = lib.format(date, \"PPPP\");\n if (modifiers.today)\n label = `Сегодня, ${label}`;\n if (modifiers.selected)\n label = `${label}, выбрано`;\n return label;\n },\n labelMonthDropdown: \"Выберите месяц\",\n labelNext: \"Перейти к следующему месяцу\",\n labelPrevious: \"Перейти к предыдущему месяцу\",\n labelWeekNumber: (weekNumber) => `Неделя ${weekNumber}`,\n labelYearDropdown: \"Выберите год\",\n labelGrid: (date, options, dateLib) => (dateLib ?? new DateLib(options)).formatMonthYear(date),\n labelGridcell: (date, modifiers, options, dateLib) => {\n const lib = dateLib ?? new DateLib(options);\n let label = lib.format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Сегодня, ${label}`;\n }\n return label;\n },\n labelNav: \"Панель навигации\",\n labelWeekNumberHeader: \"Номер недели\",\n labelWeekday: (date, options, dateLib) => (dateLib ?? new DateLib(options)).format(date, \"cccc\"),\n },\n};\n","import { enUS, ru } from \"react-day-picker/locale\";\n\nexport const localeMode = {\n ru,\n es: enUS,\n};\n"],"names":["ru","dateFnsRu","date","modifiers","options","dateLib","label","DateLib","weekNumber","localeMode","enUS"],"mappings":";;AAGO,MAAMA,IAAK;AAAA,EACd,GAAGC;AAAAA,EACH,QAAQ;AAAA,IACJ,gBAAgB,CAACC,GAAMC,GAAWC,GAASC,MAAY;AAEnD,UAAIC,KADQD,KAAW,IAAIE,EAAQH,CAAO,GAC1B,OAAOF,GAAM,MAAM;AACnC,aAAIC,EAAU,UACVG,IAAQ,YAAYA,CAAK,KACzBH,EAAU,aACVG,IAAQ,GAAGA,CAAK,cACbA;AAAA,IACX;AAAA,IACA,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,iBAAiB,CAACE,MAAe,UAAUA,CAAU;AAAA,IACrD,mBAAmB;AAAA,IACnB,WAAW,CAACN,GAAME,GAASC,OAAaA,KAAW,IAAIE,EAAQH,CAAO,GAAG,gBAAgBF,CAAI;AAAA,IAC7F,eAAe,CAACA,GAAMC,GAAWC,GAASC,MAAY;AAElD,UAAIC,KADQD,KAAW,IAAIE,EAAQH,CAAO,GAC1B,OAAOF,GAAM,MAAM;AACnC,aAAIC,GAAW,UACXG,IAAQ,YAAYA,CAAK,KAEtBA;AAAA,IACX;AAAA,IACA,UAAU;AAAA,IACV,uBAAuB;AAAA,IACvB,cAAc,CAACJ,GAAME,GAASC,OAAaA,KAAW,IAAIE,EAAQH,CAAO,GAAG,OAAOF,GAAM,MAAM;AAAA,EACvG;AACA,GC/BaO,IAAa;AAAA,EACxB,IAAAT;AAAA,EACA,IAAIU;AACN;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ApprovalLog } from './approval-log';
|
|
1
|
+
export { ApprovalLog, type ApprovalLogItem } from './approval-log';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { cardInfoHeaderVariants } from './card-info.styles';
|
|
3
3
|
export interface CardInfoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "className">, VariantProps<typeof cardInfoHeaderVariants> {
|
|
4
|
-
title:
|
|
4
|
+
title: string;
|
|
5
|
+
headerComponent?: React.ReactNode;
|
|
5
6
|
children: React.ReactNode;
|
|
6
7
|
className?: {
|
|
7
8
|
borderLeft?: string;
|
|
@@ -10,4 +11,4 @@ export interface CardInfoProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
10
11
|
content?: string;
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
|
-
export declare const CardInfo: ({ className, title, children, accent, size, ...props }: CardInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const CardInfo: ({ className, title, headerComponent, children, accent, size, ...props }: CardInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ArrowCounterClockwise } from 'phosphor-strokes-icons/icons/ArrowCounterClockwise';
|
|
1
|
+
export { ArrowCounterClockwise } from 'brd-phosphor-strokes-icons/icons/ArrowCounterClockwise';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BoundingBox } from 'phosphor-strokes-icons/icons/BoundingBox';
|
|
1
|
+
export { BoundingBox } from 'brd-phosphor-strokes-icons/icons/BoundingBox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Briefcase } from 'phosphor-strokes-icons/icons/Briefcase';
|
|
1
|
+
export { Briefcase } from 'brd-phosphor-strokes-icons/icons/Briefcase';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Building } from 'phosphor-strokes-icons/icons/Building';
|
|
1
|
+
export { Building } from 'brd-phosphor-strokes-icons/icons/Building';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Buildings } from 'phosphor-strokes-icons/icons/Buildings';
|
|
1
|
+
export { Buildings } from 'brd-phosphor-strokes-icons/icons/Buildings';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CaretDown } from 'phosphor-strokes-icons/icons/CaretDown';
|
|
1
|
+
export { CaretDown } from 'brd-phosphor-strokes-icons/icons/CaretDown';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CaretLeft } from 'phosphor-strokes-icons/icons/CaretLeft';
|
|
1
|
+
export { CaretLeft } from 'brd-phosphor-strokes-icons/icons/CaretLeft';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CaretRight } from 'phosphor-strokes-icons/icons/CaretRight';
|
|
1
|
+
export { CaretRight } from 'brd-phosphor-strokes-icons/icons/CaretRight';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CaretUp } from 'phosphor-strokes-icons/icons/CaretUp';
|
|
1
|
+
export { CaretUp } from 'brd-phosphor-strokes-icons/icons/CaretUp';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CaretUpDown } from 'phosphor-strokes-icons/icons/CaretUpDown';
|
|
1
|
+
export { CaretUpDown } from 'brd-phosphor-strokes-icons/icons/CaretUpDown';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ChartLine } from 'phosphor-strokes-icons/icons/ChartLine';
|
|
1
|
+
export { ChartLine } from 'brd-phosphor-strokes-icons/icons/ChartLine';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Check } from 'phosphor-strokes-icons/icons/Check';
|
|
1
|
+
export { Check } from 'brd-phosphor-strokes-icons/icons/Check';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CheckCircle } from 'phosphor-strokes-icons/icons/CheckCircle';
|
|
1
|
+
export { CheckCircle } from 'brd-phosphor-strokes-icons/icons/CheckCircle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Clock } from 'phosphor-strokes-icons/icons/Clock';
|
|
1
|
+
export { Clock } from 'brd-phosphor-strokes-icons/icons/Clock';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CreditCard } from 'phosphor-strokes-icons/icons/CreditCard';
|
|
1
|
+
export { CreditCard } from 'brd-phosphor-strokes-icons/icons/CreditCard';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DotsThree } from 'phosphor-strokes-icons/icons/DotsThree';
|
|
1
|
+
export { DotsThree } from 'brd-phosphor-strokes-icons/icons/DotsThree';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DownloadSimple } from 'phosphor-strokes-icons/icons/DownloadSimple';
|
|
1
|
+
export { DownloadSimple } from 'brd-phosphor-strokes-icons/icons/DownloadSimple';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EnvelopeSimple } from 'phosphor-strokes-icons/icons/EnvelopeSimple';
|
|
1
|
+
export { EnvelopeSimple } from 'brd-phosphor-strokes-icons/icons/EnvelopeSimple';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Eye } from 'phosphor-strokes-icons/icons/Eye';
|
|
1
|
+
export { Eye } from 'brd-phosphor-strokes-icons/icons/Eye';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EyeSlash } from 'phosphor-strokes-icons/icons/EyeSlash';
|
|
1
|
+
export { EyeSlash } from 'brd-phosphor-strokes-icons/icons/EyeSlash';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FileText } from 'phosphor-strokes-icons/icons/FileText';
|
|
1
|
+
export { FileText } from 'brd-phosphor-strokes-icons/icons/FileText';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Folder } from 'phosphor-strokes-icons/icons/Folder';
|
|
1
|
+
export { Folder } from 'brd-phosphor-strokes-icons/icons/Folder';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Funnel } from 'phosphor-strokes-icons/icons/Funnel';
|
|
1
|
+
export { Funnel } from 'brd-phosphor-strokes-icons/icons/Funnel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Gear } from 'phosphor-strokes-icons/icons/Gear';
|
|
1
|
+
export { Gear } from 'brd-phosphor-strokes-icons/icons/Gear';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Info } from 'phosphor-strokes-icons/icons/Info';
|
|
1
|
+
export { Info } from 'brd-phosphor-strokes-icons/icons/Info';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LockKey } from 'phosphor-strokes-icons/icons/LockKey';
|
|
1
|
+
export { LockKey } from 'brd-phosphor-strokes-icons/icons/LockKey';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MagnifyingGlass } from 'phosphor-strokes-icons/icons/MagnifyingGlass';
|
|
1
|
+
export { MagnifyingGlass } from 'brd-phosphor-strokes-icons/icons/MagnifyingGlass';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MaxLogo } from 'phosphor-strokes-icons/icons/MaxLogo';
|
|
1
|
+
export { MaxLogo } from 'brd-phosphor-strokes-icons/icons/MaxLogo';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Package } from 'phosphor-strokes-icons/icons/Package';
|
|
1
|
+
export { Package } from 'brd-phosphor-strokes-icons/icons/Package';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Pencil } from 'phosphor-strokes-icons/icons/Pencil';
|
|
1
|
+
export { Pencil } from 'brd-phosphor-strokes-icons/icons/Pencil';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Phone } from 'phosphor-strokes-icons/icons/Phone';
|
|
1
|
+
export { Phone } from 'brd-phosphor-strokes-icons/icons/Phone';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Plus } from 'phosphor-strokes-icons/icons/Plus';
|
|
1
|
+
export { Plus } from 'brd-phosphor-strokes-icons/icons/Plus';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PresentationChart } from 'phosphor-strokes-icons/icons/PresentationChart';
|
|
1
|
+
export { PresentationChart } from 'brd-phosphor-strokes-icons/icons/PresentationChart';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SpinnerGap } from 'phosphor-strokes-icons/icons/SpinnerGap';
|
|
1
|
+
export { SpinnerGap } from 'brd-phosphor-strokes-icons/icons/SpinnerGap';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TelegramLogo } from 'phosphor-strokes-icons/icons/TelegramLogo';
|
|
1
|
+
export { TelegramLogo } from 'brd-phosphor-strokes-icons/icons/TelegramLogo';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Trash } from 'phosphor-strokes-icons/icons/Trash';
|
|
1
|
+
export { Trash } from 'brd-phosphor-strokes-icons/icons/Trash';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { UserCircleGear } from 'phosphor-strokes-icons/icons/UserCircleGear';
|
|
1
|
+
export { UserCircleGear } from 'brd-phosphor-strokes-icons/icons/UserCircleGear';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Users } from 'phosphor-strokes-icons/icons/Users';
|
|
1
|
+
export { Users } from 'brd-phosphor-strokes-icons/icons/Users';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { UsersFour } from 'phosphor-strokes-icons/icons/UsersFour';
|
|
1
|
+
export { UsersFour } from 'brd-phosphor-strokes-icons/icons/UsersFour';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Warning } from 'phosphor-strokes-icons/icons/Warning';
|
|
1
|
+
export { Warning } from 'brd-phosphor-strokes-icons/icons/Warning';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { WarningCircle } from 'phosphor-strokes-icons/icons/WarningCircle';
|
|
1
|
+
export { WarningCircle } from 'brd-phosphor-strokes-icons/icons/WarningCircle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { WhatsAppLogoFilled } from 'phosphor-strokes-icons/icons/WhatsAppLogoFilled';
|
|
1
|
+
export { WhatsAppLogoFilled } from 'brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Wrench } from 'phosphor-strokes-icons/icons/Wrench';
|
|
1
|
+
export { Wrench } from 'brd-phosphor-strokes-icons/icons/Wrench';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { X } from 'phosphor-strokes-icons/icons/X';
|
|
1
|
+
export { X } from 'brd-phosphor-strokes-icons/icons/X';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { XCircle } from 'phosphor-strokes-icons/icons/XCircle';
|
|
1
|
+
export { XCircle } from 'brd-phosphor-strokes-icons/icons/XCircle';
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
export type { StrokeIconProps } from 'phosphor-strokes-icons';
|
|
2
|
-
export { ArrowCounterClockwise } from 'phosphor-strokes-icons/icons/ArrowCounterClockwise';
|
|
3
|
-
export { BoundingBox } from 'phosphor-strokes-icons/icons/BoundingBox';
|
|
4
|
-
export { Briefcase } from 'phosphor-strokes-icons/icons/Briefcase';
|
|
5
|
-
export { Building } from 'phosphor-strokes-icons/icons/Building';
|
|
6
|
-
export { Buildings } from 'phosphor-strokes-icons/icons/Buildings';
|
|
7
|
-
export { CaretDown } from 'phosphor-strokes-icons/icons/CaretDown';
|
|
8
|
-
export { CaretLeft } from 'phosphor-strokes-icons/icons/CaretLeft';
|
|
9
|
-
export { CaretRight } from 'phosphor-strokes-icons/icons/CaretRight';
|
|
10
|
-
export { CaretUp } from 'phosphor-strokes-icons/icons/CaretUp';
|
|
11
|
-
export { CaretUpDown } from 'phosphor-strokes-icons/icons/CaretUpDown';
|
|
12
|
-
export { ChartLine } from 'phosphor-strokes-icons/icons/ChartLine';
|
|
13
|
-
export { Check } from 'phosphor-strokes-icons/icons/Check';
|
|
14
|
-
export { CheckCircle } from 'phosphor-strokes-icons/icons/CheckCircle';
|
|
15
|
-
export { Clock } from 'phosphor-strokes-icons/icons/Clock';
|
|
16
|
-
export { CreditCard } from 'phosphor-strokes-icons/icons/CreditCard';
|
|
17
|
-
export { DotsThree } from 'phosphor-strokes-icons/icons/DotsThree';
|
|
18
|
-
export { DownloadSimple } from 'phosphor-strokes-icons/icons/DownloadSimple';
|
|
19
|
-
export { EnvelopeSimple } from 'phosphor-strokes-icons/icons/EnvelopeSimple';
|
|
20
|
-
export { Eye } from 'phosphor-strokes-icons/icons/Eye';
|
|
21
|
-
export { EyeSlash } from 'phosphor-strokes-icons/icons/EyeSlash';
|
|
22
|
-
export { FileText } from 'phosphor-strokes-icons/icons/FileText';
|
|
23
|
-
export { Folder } from 'phosphor-strokes-icons/icons/Folder';
|
|
24
|
-
export { Funnel } from 'phosphor-strokes-icons/icons/Funnel';
|
|
25
|
-
export { Gear } from 'phosphor-strokes-icons/icons/Gear';
|
|
26
|
-
export { Info } from 'phosphor-strokes-icons/icons/Info';
|
|
27
|
-
export { LockKey } from 'phosphor-strokes-icons/icons/LockKey';
|
|
28
|
-
export { MagnifyingGlass } from 'phosphor-strokes-icons/icons/MagnifyingGlass';
|
|
29
|
-
export { MaxLogo } from 'phosphor-strokes-icons/icons/MaxLogo';
|
|
30
|
-
export { Package } from 'phosphor-strokes-icons/icons/Package';
|
|
31
|
-
export { Pencil } from 'phosphor-strokes-icons/icons/Pencil';
|
|
32
|
-
export { Phone } from 'phosphor-strokes-icons/icons/Phone';
|
|
33
|
-
export { Plus } from 'phosphor-strokes-icons/icons/Plus';
|
|
34
|
-
export { PresentationChart } from 'phosphor-strokes-icons/icons/PresentationChart';
|
|
35
|
-
export { SpinnerGap } from 'phosphor-strokes-icons/icons/SpinnerGap';
|
|
36
|
-
export { TelegramLogo } from 'phosphor-strokes-icons/icons/TelegramLogo';
|
|
37
|
-
export { Trash } from 'phosphor-strokes-icons/icons/Trash';
|
|
38
|
-
export { UserCircleGear } from 'phosphor-strokes-icons/icons/UserCircleGear';
|
|
39
|
-
export { Users } from 'phosphor-strokes-icons/icons/Users';
|
|
40
|
-
export { UsersFour } from 'phosphor-strokes-icons/icons/UsersFour';
|
|
41
|
-
export { Warning } from 'phosphor-strokes-icons/icons/Warning';
|
|
42
|
-
export { WarningCircle } from 'phosphor-strokes-icons/icons/WarningCircle';
|
|
43
|
-
export { WhatsAppLogoFilled } from 'phosphor-strokes-icons/icons/WhatsAppLogoFilled';
|
|
44
|
-
export { Wrench } from 'phosphor-strokes-icons/icons/Wrench';
|
|
45
|
-
export { X } from 'phosphor-strokes-icons/icons/X';
|
|
46
|
-
export { XCircle } from 'phosphor-strokes-icons/icons/XCircle';
|
|
1
|
+
export type { StrokeIconProps } from 'brd-phosphor-strokes-icons';
|
|
2
|
+
export { ArrowCounterClockwise } from 'brd-phosphor-strokes-icons/icons/ArrowCounterClockwise';
|
|
3
|
+
export { BoundingBox } from 'brd-phosphor-strokes-icons/icons/BoundingBox';
|
|
4
|
+
export { Briefcase } from 'brd-phosphor-strokes-icons/icons/Briefcase';
|
|
5
|
+
export { Building } from 'brd-phosphor-strokes-icons/icons/Building';
|
|
6
|
+
export { Buildings } from 'brd-phosphor-strokes-icons/icons/Buildings';
|
|
7
|
+
export { CaretDown } from 'brd-phosphor-strokes-icons/icons/CaretDown';
|
|
8
|
+
export { CaretLeft } from 'brd-phosphor-strokes-icons/icons/CaretLeft';
|
|
9
|
+
export { CaretRight } from 'brd-phosphor-strokes-icons/icons/CaretRight';
|
|
10
|
+
export { CaretUp } from 'brd-phosphor-strokes-icons/icons/CaretUp';
|
|
11
|
+
export { CaretUpDown } from 'brd-phosphor-strokes-icons/icons/CaretUpDown';
|
|
12
|
+
export { ChartLine } from 'brd-phosphor-strokes-icons/icons/ChartLine';
|
|
13
|
+
export { Check } from 'brd-phosphor-strokes-icons/icons/Check';
|
|
14
|
+
export { CheckCircle } from 'brd-phosphor-strokes-icons/icons/CheckCircle';
|
|
15
|
+
export { Clock } from 'brd-phosphor-strokes-icons/icons/Clock';
|
|
16
|
+
export { CreditCard } from 'brd-phosphor-strokes-icons/icons/CreditCard';
|
|
17
|
+
export { DotsThree } from 'brd-phosphor-strokes-icons/icons/DotsThree';
|
|
18
|
+
export { DownloadSimple } from 'brd-phosphor-strokes-icons/icons/DownloadSimple';
|
|
19
|
+
export { EnvelopeSimple } from 'brd-phosphor-strokes-icons/icons/EnvelopeSimple';
|
|
20
|
+
export { Eye } from 'brd-phosphor-strokes-icons/icons/Eye';
|
|
21
|
+
export { EyeSlash } from 'brd-phosphor-strokes-icons/icons/EyeSlash';
|
|
22
|
+
export { FileText } from 'brd-phosphor-strokes-icons/icons/FileText';
|
|
23
|
+
export { Folder } from 'brd-phosphor-strokes-icons/icons/Folder';
|
|
24
|
+
export { Funnel } from 'brd-phosphor-strokes-icons/icons/Funnel';
|
|
25
|
+
export { Gear } from 'brd-phosphor-strokes-icons/icons/Gear';
|
|
26
|
+
export { Info } from 'brd-phosphor-strokes-icons/icons/Info';
|
|
27
|
+
export { LockKey } from 'brd-phosphor-strokes-icons/icons/LockKey';
|
|
28
|
+
export { MagnifyingGlass } from 'brd-phosphor-strokes-icons/icons/MagnifyingGlass';
|
|
29
|
+
export { MaxLogo } from 'brd-phosphor-strokes-icons/icons/MaxLogo';
|
|
30
|
+
export { Package } from 'brd-phosphor-strokes-icons/icons/Package';
|
|
31
|
+
export { Pencil } from 'brd-phosphor-strokes-icons/icons/Pencil';
|
|
32
|
+
export { Phone } from 'brd-phosphor-strokes-icons/icons/Phone';
|
|
33
|
+
export { Plus } from 'brd-phosphor-strokes-icons/icons/Plus';
|
|
34
|
+
export { PresentationChart } from 'brd-phosphor-strokes-icons/icons/PresentationChart';
|
|
35
|
+
export { SpinnerGap } from 'brd-phosphor-strokes-icons/icons/SpinnerGap';
|
|
36
|
+
export { TelegramLogo } from 'brd-phosphor-strokes-icons/icons/TelegramLogo';
|
|
37
|
+
export { Trash } from 'brd-phosphor-strokes-icons/icons/Trash';
|
|
38
|
+
export { UserCircleGear } from 'brd-phosphor-strokes-icons/icons/UserCircleGear';
|
|
39
|
+
export { Users } from 'brd-phosphor-strokes-icons/icons/Users';
|
|
40
|
+
export { UsersFour } from 'brd-phosphor-strokes-icons/icons/UsersFour';
|
|
41
|
+
export { Warning } from 'brd-phosphor-strokes-icons/icons/Warning';
|
|
42
|
+
export { WarningCircle } from 'brd-phosphor-strokes-icons/icons/WarningCircle';
|
|
43
|
+
export { WhatsAppLogoFilled } from 'brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled';
|
|
44
|
+
export { Wrench } from 'brd-phosphor-strokes-icons/icons/Wrench';
|
|
45
|
+
export { X } from 'brd-phosphor-strokes-icons/icons/X';
|
|
46
|
+
export { XCircle } from 'brd-phosphor-strokes-icons/icons/XCircle';
|
|
47
47
|
export { StrokeIcon } from './stroke-icon';
|
|
48
48
|
export type { StrokeIconComponent, StrokeIconComponentProps } from './stroke-icon';
|
|
49
49
|
export { iconPresets } from '../ui/icon/icon-presets';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrokeIconProps } from 'phosphor-strokes-icons';
|
|
1
|
+
import { StrokeIconProps } from 'brd-phosphor-strokes-icons';
|
|
2
2
|
import { ComponentType, DetailedHTMLProps, HTMLAttributes, SVGProps } from 'react';
|
|
3
3
|
import { IconPreset } from '../ui/icon/icon-presets';
|
|
4
4
|
export type StrokeIconComponent = ComponentType<StrokeIconProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { StoryDrawer } from './story-drawer';
|
|
1
|
+
export { StoryDrawer, type StoryData } from './story-drawer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BadgeProps } from '../../index';
|
|
2
|
-
type
|
|
2
|
+
export type StoryData = {
|
|
3
3
|
id: string;
|
|
4
4
|
userName: string;
|
|
5
5
|
date: string;
|
|
@@ -11,7 +11,7 @@ type Data = {
|
|
|
11
11
|
isDateDivider?: false;
|
|
12
12
|
};
|
|
13
13
|
type Props = {
|
|
14
|
-
data:
|
|
14
|
+
data: StoryData[];
|
|
15
15
|
open: boolean;
|
|
16
16
|
closePopup: (open: boolean) => void;
|
|
17
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrokeIconProps } from 'phosphor-strokes-icons';
|
|
1
|
+
import { StrokeIconProps } from 'brd-phosphor-strokes-icons';
|
|
2
2
|
import { HTMLAttributes, SVGProps } from 'react';
|
|
3
3
|
import { IconPreset } from './icon-presets';
|
|
4
4
|
import { IconType } from './icon-map';
|
|
@@ -15,5 +15,5 @@ type Props = HTMLAttributes<HTMLDivElement> & {
|
|
|
15
15
|
};
|
|
16
16
|
svgProps?: Omit<SVGProps<SVGSVGElement>, "size" | "strokeWidth" | "color" | "className">;
|
|
17
17
|
};
|
|
18
|
-
export declare const Icon: ({ type, size, strokeWidth, color, absoluteStrokeWidth, classes, className, svgProps, disabled, ...rest }: Props) => import("react/jsx-runtime").JSX.Element
|
|
18
|
+
export declare const Icon: ({ type, size, strokeWidth, color, absoluteStrokeWidth, classes, className, svgProps, disabled, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export type { Props as IconProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),C=require("./utils-helpers.cjs"),I=require("./lib-utils.cjs"),f=require("phosphor-strokes-icons/icons/CaretLeft"),q=require("phosphor-strokes-icons/icons/CaretRight"),d=require("./components-icons-stroke-icon.cjs"),u=require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");const s=require("./components-ui-pagination-pagination.cjs"),l=require("./components-app-pagination-app-pagination.styles.cjs"),v=5,k=5,h={sm:"x-small",default:"x-small",lg:"small"},N=({currentPage:t,totalPages:e,maxVisiblePages:x=v,className:_,showNavigation:m=!0,prevLabel:j,nextLabel:P,size:a="default",ellipsisStep:o=k,onPageChange:b})=>{if(e<=1)return null;const g=C.getPageNumbers(x,t,e),r=n=>{n>=1&&n<=e&&b(n)},p=n=>{if(n==="ellipsis-start"){const c=Math.max(1,t-o);r(c)}else{const c=Math.min(e,t+o);r(c)}};return i.jsx(s.Pagination,{className:"w-fit",children:i.jsxs(s.PaginationContent,{className:I.cn(l.appPaginationContentVariants({size:a}),_),children:[m&&i.jsx(s.PaginationItem,{children:i.jsx(u.Button,{variant:"ghost",disabled:t===1,onClick:()=>r(t-1),className:l.appPaginationNavigationButtonVariants({size:a,side:"prev"}),"aria-label":"Предыдущая страница",children:j||i.jsx(d.StrokeIcon,{icon:f.CaretLeft,size:h[a]})})}),g.map(n=>n==="ellipsis-start"||n==="ellipsis-end"?i.jsx(s.PaginationItem,{children:i.jsx(u.Button,{variant:"ghost",onClick:()=>p(n),className:l.appPaginationPageVariants({size:a}),"aria-label":n==="ellipsis-start"?`Перейти на ${o} страниц назад`:`Перейти на ${o} страниц вперед`,title:n==="ellipsis-start"?`Нажать чтобы перейти на ${o} страниц назад`:`Нажать чтобы перейти на ${o} страниц вперед`,children:"..."})},n):i.jsx(s.PaginationItem,{children:i.jsx(s.PaginationLink,{isActive:t===n,onClick:()=>r(n),className:l.appPaginationPageVariants({size:a,active:t===n}),"aria-label":`Страница ${n}`,"aria-current":t===n?"page":void 0,children:n})},n)),m&&i.jsx(s.PaginationItem,{children:i.jsx(u.Button,{variant:"ghost",disabled:t===e,onClick:()=>r(t+1),className:l.appPaginationNavigationButtonVariants({size:a,side:"next"}),"aria-label":"Следующая страница",children:P||i.jsx(d.StrokeIcon,{icon:q.CaretRight,size:h[a]})})})]})})};exports.AppPagination=N;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),C=require("./utils-helpers.cjs"),I=require("./lib-utils.cjs"),f=require("brd-phosphor-strokes-icons/icons/CaretLeft"),q=require("brd-phosphor-strokes-icons/icons/CaretRight"),d=require("./components-icons-stroke-icon.cjs"),u=require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");const s=require("./components-ui-pagination-pagination.cjs"),l=require("./components-app-pagination-app-pagination.styles.cjs"),v=5,k=5,h={sm:"x-small",default:"x-small",lg:"small"},N=({currentPage:t,totalPages:e,maxVisiblePages:x=v,className:_,showNavigation:m=!0,prevLabel:j,nextLabel:P,size:a="default",ellipsisStep:o=k,onPageChange:b})=>{if(e<=1)return null;const g=C.getPageNumbers(x,t,e),r=n=>{n>=1&&n<=e&&b(n)},p=n=>{if(n==="ellipsis-start"){const c=Math.max(1,t-o);r(c)}else{const c=Math.min(e,t+o);r(c)}};return i.jsx(s.Pagination,{className:"w-fit",children:i.jsxs(s.PaginationContent,{className:I.cn(l.appPaginationContentVariants({size:a}),_),children:[m&&i.jsx(s.PaginationItem,{children:i.jsx(u.Button,{variant:"ghost",disabled:t===1,onClick:()=>r(t-1),className:l.appPaginationNavigationButtonVariants({size:a,side:"prev"}),"aria-label":"Предыдущая страница",children:j||i.jsx(d.StrokeIcon,{icon:f.CaretLeft,size:h[a]})})}),g.map(n=>n==="ellipsis-start"||n==="ellipsis-end"?i.jsx(s.PaginationItem,{children:i.jsx(u.Button,{variant:"ghost",onClick:()=>p(n),className:l.appPaginationPageVariants({size:a}),"aria-label":n==="ellipsis-start"?`Перейти на ${o} страниц назад`:`Перейти на ${o} страниц вперед`,title:n==="ellipsis-start"?`Нажать чтобы перейти на ${o} страниц назад`:`Нажать чтобы перейти на ${o} страниц вперед`,children:"..."})},n):i.jsx(s.PaginationItem,{children:i.jsx(s.PaginationLink,{isActive:t===n,onClick:()=>r(n),className:l.appPaginationPageVariants({size:a,active:t===n}),"aria-label":`Страница ${n}`,"aria-current":t===n?"page":void 0,children:n})},n)),m&&i.jsx(s.PaginationItem,{children:i.jsx(u.Button,{variant:"ghost",disabled:t===e,onClick:()=>r(t+1),className:l.appPaginationNavigationButtonVariants({size:a,side:"next"}),"aria-label":"Следующая страница",children:P||i.jsx(d.StrokeIcon,{icon:q.CaretRight,size:h[a]})})})]})})};exports.AppPagination=N;
|
|
2
2
|
//# sourceMappingURL=components-app-pagination-app-pagination.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-app-pagination-app-pagination.cjs","sources":["../src/components/app-pagination/app-pagination.tsx"],"sourcesContent":["import { getPageNumbers } from \"@/utils/helpers\";\nimport { cn } from \"@/lib/utils\";\nimport { CaretLeft } from \"@/components/icons/CaretLeft\";\nimport { CaretRight } from \"@/components/icons/CaretRight\";\nimport { StrokeIcon } from \"@/components/icons/stroke-icon\";\nimport { Button } from \"../ui/button\";\nimport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n} from \"../ui/pagination\";\nimport {\n appPaginationContentVariants,\n appPaginationNavigationButtonVariants,\n appPaginationPageVariants,\n type AppPaginationSize,\n} from \"./app-pagination.styles\";\n\ntype Props = {\n currentPage: number;\n totalPages: number;\n maxVisiblePages?: number;\n className?: string;\n showNavigation?: boolean;\n prevLabel?: string;\n nextLabel?: string;\n size?: AppPaginationSize;\n ellipsisStep?: number;\n onPageChange: (page: number) => void;\n};\n\nconst DEFAULT_VISIBLE_PAGES = 5;\nconst DEFAULT_ELLIPSIS_STEP = 5;\nconst navigationIconSizeByPaginationSize: Record<AppPaginationSize, \"x-small\" | \"small\"> =\n {\n sm: \"x-small\",\n default: \"x-small\",\n lg: \"small\",\n };\n\nexport const AppPagination = ({\n currentPage,\n totalPages,\n maxVisiblePages = DEFAULT_VISIBLE_PAGES,\n className,\n showNavigation = true,\n prevLabel,\n nextLabel,\n size = \"default\",\n ellipsisStep = DEFAULT_ELLIPSIS_STEP,\n onPageChange,\n}: Props) => {\n if (totalPages <= 1) return null;\n\n const pageNumbers = getPageNumbers(maxVisiblePages, currentPage, totalPages);\n\n const handlePageChange = (page: number) => {\n if (page >= 1 && page <= totalPages) {\n onPageChange(page);\n }\n };\n\n const handleEllipsisClick = (type: \"ellipsis-start\" | \"ellipsis-end\") => {\n if (type === \"ellipsis-start\") {\n const newPage = Math.max(1, currentPage - ellipsisStep);\n handlePageChange(newPage);\n } else {\n const newPage = Math.min(totalPages, currentPage + ellipsisStep);\n handlePageChange(newPage);\n }\n };\n\n return (\n <Pagination className=\"w-fit\">\n <PaginationContent\n className={cn(appPaginationContentVariants({ size }), className)}\n >\n {showNavigation && (\n <PaginationItem>\n <Button\n variant=\"ghost\"\n disabled={currentPage === 1}\n onClick={() => handlePageChange(currentPage - 1)}\n className={appPaginationNavigationButtonVariants({\n size,\n side: \"prev\",\n })}\n aria-label=\"Предыдущая страница\"\n >\n {prevLabel || (\n <StrokeIcon\n icon={CaretLeft}\n size={navigationIconSizeByPaginationSize[size]}\n />\n )}\n </Button>\n </PaginationItem>\n )}\n\n {pageNumbers.map((page) => {\n if (page === \"ellipsis-start\" || page === \"ellipsis-end\") {\n return (\n <PaginationItem key={page}>\n <Button\n variant=\"ghost\"\n onClick={() => handleEllipsisClick(page)}\n className={appPaginationPageVariants({ size })}\n aria-label={\n page === \"ellipsis-start\"\n ? `Перейти на ${ellipsisStep} страниц назад`\n : `Перейти на ${ellipsisStep} страниц вперед`\n }\n title={\n page === \"ellipsis-start\"\n ? `Нажать чтобы перейти на ${ellipsisStep} страниц назад`\n : `Нажать чтобы перейти на ${ellipsisStep} страниц вперед`\n }\n >\n ...\n </Button>\n </PaginationItem>\n );\n }\n\n return (\n <PaginationItem key={page}>\n <PaginationLink\n isActive={currentPage === page}\n onClick={() => handlePageChange(page)}\n className={appPaginationPageVariants({\n size,\n active: currentPage === page,\n })}\n aria-label={`Страница ${page}`}\n aria-current={currentPage === page ? \"page\" : undefined}\n >\n {page}\n </PaginationLink>\n </PaginationItem>\n );\n })}\n\n {showNavigation && (\n <PaginationItem>\n <Button\n variant=\"ghost\"\n disabled={currentPage === totalPages}\n onClick={() => handlePageChange(currentPage + 1)}\n className={appPaginationNavigationButtonVariants({\n size,\n side: \"next\",\n })}\n aria-label=\"Следующая страница\"\n >\n {nextLabel || (\n <StrokeIcon\n icon={CaretRight}\n size={navigationIconSizeByPaginationSize[size]}\n />\n )}\n </Button>\n </PaginationItem>\n )}\n </PaginationContent>\n </Pagination>\n );\n};\n"],"names":["DEFAULT_VISIBLE_PAGES","DEFAULT_ELLIPSIS_STEP","navigationIconSizeByPaginationSize","AppPagination","currentPage","totalPages","maxVisiblePages","className","showNavigation","prevLabel","nextLabel","size","ellipsisStep","onPageChange","pageNumbers","getPageNumbers","handlePageChange","page","handleEllipsisClick","type","newPage","jsx","Pagination","jsxs","PaginationContent","cn","appPaginationContentVariants","PaginationItem","Button","appPaginationNavigationButtonVariants","StrokeIcon","CaretLeft","appPaginationPageVariants","PaginationLink","CaretRight"],"mappings":"
|
|
1
|
+
{"version":3,"file":"components-app-pagination-app-pagination.cjs","sources":["../src/components/app-pagination/app-pagination.tsx"],"sourcesContent":["import { getPageNumbers } from \"@/utils/helpers\";\nimport { cn } from \"@/lib/utils\";\nimport { CaretLeft } from \"@/components/icons/CaretLeft\";\nimport { CaretRight } from \"@/components/icons/CaretRight\";\nimport { StrokeIcon } from \"@/components/icons/stroke-icon\";\nimport { Button } from \"../ui/button\";\nimport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n} from \"../ui/pagination\";\nimport {\n appPaginationContentVariants,\n appPaginationNavigationButtonVariants,\n appPaginationPageVariants,\n type AppPaginationSize,\n} from \"./app-pagination.styles\";\n\ntype Props = {\n currentPage: number;\n totalPages: number;\n maxVisiblePages?: number;\n className?: string;\n showNavigation?: boolean;\n prevLabel?: string;\n nextLabel?: string;\n size?: AppPaginationSize;\n ellipsisStep?: number;\n onPageChange: (page: number) => void;\n};\n\nconst DEFAULT_VISIBLE_PAGES = 5;\nconst DEFAULT_ELLIPSIS_STEP = 5;\nconst navigationIconSizeByPaginationSize: Record<AppPaginationSize, \"x-small\" | \"small\"> =\n {\n sm: \"x-small\",\n default: \"x-small\",\n lg: \"small\",\n };\n\nexport const AppPagination = ({\n currentPage,\n totalPages,\n maxVisiblePages = DEFAULT_VISIBLE_PAGES,\n className,\n showNavigation = true,\n prevLabel,\n nextLabel,\n size = \"default\",\n ellipsisStep = DEFAULT_ELLIPSIS_STEP,\n onPageChange,\n}: Props) => {\n if (totalPages <= 1) return null;\n\n const pageNumbers = getPageNumbers(maxVisiblePages, currentPage, totalPages);\n\n const handlePageChange = (page: number) => {\n if (page >= 1 && page <= totalPages) {\n onPageChange(page);\n }\n };\n\n const handleEllipsisClick = (type: \"ellipsis-start\" | \"ellipsis-end\") => {\n if (type === \"ellipsis-start\") {\n const newPage = Math.max(1, currentPage - ellipsisStep);\n handlePageChange(newPage);\n } else {\n const newPage = Math.min(totalPages, currentPage + ellipsisStep);\n handlePageChange(newPage);\n }\n };\n\n return (\n <Pagination className=\"w-fit\">\n <PaginationContent\n className={cn(appPaginationContentVariants({ size }), className)}\n >\n {showNavigation && (\n <PaginationItem>\n <Button\n variant=\"ghost\"\n disabled={currentPage === 1}\n onClick={() => handlePageChange(currentPage - 1)}\n className={appPaginationNavigationButtonVariants({\n size,\n side: \"prev\",\n })}\n aria-label=\"Предыдущая страница\"\n >\n {prevLabel || (\n <StrokeIcon\n icon={CaretLeft}\n size={navigationIconSizeByPaginationSize[size]}\n />\n )}\n </Button>\n </PaginationItem>\n )}\n\n {pageNumbers.map((page) => {\n if (page === \"ellipsis-start\" || page === \"ellipsis-end\") {\n return (\n <PaginationItem key={page}>\n <Button\n variant=\"ghost\"\n onClick={() => handleEllipsisClick(page)}\n className={appPaginationPageVariants({ size })}\n aria-label={\n page === \"ellipsis-start\"\n ? `Перейти на ${ellipsisStep} страниц назад`\n : `Перейти на ${ellipsisStep} страниц вперед`\n }\n title={\n page === \"ellipsis-start\"\n ? `Нажать чтобы перейти на ${ellipsisStep} страниц назад`\n : `Нажать чтобы перейти на ${ellipsisStep} страниц вперед`\n }\n >\n ...\n </Button>\n </PaginationItem>\n );\n }\n\n return (\n <PaginationItem key={page}>\n <PaginationLink\n isActive={currentPage === page}\n onClick={() => handlePageChange(page)}\n className={appPaginationPageVariants({\n size,\n active: currentPage === page,\n })}\n aria-label={`Страница ${page}`}\n aria-current={currentPage === page ? \"page\" : undefined}\n >\n {page}\n </PaginationLink>\n </PaginationItem>\n );\n })}\n\n {showNavigation && (\n <PaginationItem>\n <Button\n variant=\"ghost\"\n disabled={currentPage === totalPages}\n onClick={() => handlePageChange(currentPage + 1)}\n className={appPaginationNavigationButtonVariants({\n size,\n side: \"next\",\n })}\n aria-label=\"Следующая страница\"\n >\n {nextLabel || (\n <StrokeIcon\n icon={CaretRight}\n size={navigationIconSizeByPaginationSize[size]}\n />\n )}\n </Button>\n </PaginationItem>\n )}\n </PaginationContent>\n </Pagination>\n );\n};\n"],"names":["DEFAULT_VISIBLE_PAGES","DEFAULT_ELLIPSIS_STEP","navigationIconSizeByPaginationSize","AppPagination","currentPage","totalPages","maxVisiblePages","className","showNavigation","prevLabel","nextLabel","size","ellipsisStep","onPageChange","pageNumbers","getPageNumbers","handlePageChange","page","handleEllipsisClick","type","newPage","jsx","Pagination","jsxs","PaginationContent","cn","appPaginationContentVariants","PaginationItem","Button","appPaginationNavigationButtonVariants","StrokeIcon","CaretLeft","appPaginationPageVariants","PaginationLink","CaretRight"],"mappings":"ujBAgCMA,EAAwB,EACxBC,EAAwB,EACxBC,EACJ,CACE,GAAI,UACJ,QAAS,UACT,GAAI,OACN,EAEWC,EAAgB,CAAC,CAC5B,YAAAC,EACA,WAAAC,EACA,gBAAAC,EAAkBN,EAClB,UAAAO,EACA,eAAAC,EAAiB,GACjB,UAAAC,EACA,UAAAC,EACA,KAAAC,EAAO,UACP,aAAAC,EAAeX,EACf,aAAAY,CACF,IAAa,CACX,GAAIR,GAAc,EAAG,OAAO,KAE5B,MAAMS,EAAcC,EAAAA,eAAeT,EAAiBF,EAAaC,CAAU,EAErEW,EAAoBC,GAAiB,CACrCA,GAAQ,GAAKA,GAAQZ,GACvBQ,EAAaI,CAAI,CAErB,EAEMC,EAAuBC,GAA4C,CACvE,GAAIA,IAAS,iBAAkB,CAC7B,MAAMC,EAAU,KAAK,IAAI,EAAGhB,EAAcQ,CAAY,EACtDI,EAAiBI,CAAO,CAC1B,KAAO,CACL,MAAMA,EAAU,KAAK,IAAIf,EAAYD,EAAcQ,CAAY,EAC/DI,EAAiBI,CAAO,CAC1B,CACF,EAEA,OACEC,EAAAA,IAACC,EAAAA,WAAA,CAAW,UAAU,QACpB,SAAAC,EAAAA,KAACC,EAAAA,kBAAA,CACC,UAAWC,EAAAA,GAAGC,EAAAA,6BAA6B,CAAE,KAAAf,CAAA,CAAM,EAAGJ,CAAS,EAE9D,SAAA,CAAAC,SACEmB,iBAAA,CACC,SAAAN,EAAAA,IAACO,EAAAA,OAAA,CACC,QAAQ,QACR,SAAUxB,IAAgB,EAC1B,QAAS,IAAMY,EAAiBZ,EAAc,CAAC,EAC/C,UAAWyB,EAAAA,sCAAsC,CAC/C,KAAAlB,EACA,KAAM,MAAA,CACP,EACD,aAAW,sBAEV,SAAAF,GACCY,EAAAA,IAACS,EAAAA,WAAA,CACC,KAAMC,EAAAA,UACN,KAAM7B,EAAmCS,CAAI,CAAA,CAAA,CAC/C,CAAA,EAGN,EAGDG,EAAY,IAAKG,GACZA,IAAS,kBAAoBA,IAAS,qBAErCU,EAAAA,eAAA,CACC,SAAAN,EAAAA,IAACO,EAAAA,OAAA,CACC,QAAQ,QACR,QAAS,IAAMV,EAAoBD,CAAI,EACvC,UAAWe,EAAAA,0BAA0B,CAAE,KAAArB,EAAM,EAC7C,aACEM,IAAS,iBACL,cAAcL,CAAY,iBAC1B,cAAcA,CAAY,kBAEhC,MACEK,IAAS,iBACL,2BAA2BL,CAAY,iBACvC,2BAA2BA,CAAY,kBAE9C,SAAA,KAAA,CAAA,GAfkBK,CAkBrB,QAKDU,EAAAA,eAAA,CACC,SAAAN,EAAAA,IAACY,EAAAA,eAAA,CACC,SAAU7B,IAAgBa,EAC1B,QAAS,IAAMD,EAAiBC,CAAI,EACpC,UAAWe,EAAAA,0BAA0B,CACnC,KAAArB,EACA,OAAQP,IAAgBa,CAAA,CACzB,EACD,aAAY,YAAYA,CAAI,GAC5B,eAAcb,IAAgBa,EAAO,OAAS,OAE7C,SAAAA,CAAA,CAAA,GAXgBA,CAarB,CAEH,EAEAT,SACEmB,iBAAA,CACC,SAAAN,EAAAA,IAACO,EAAAA,OAAA,CACC,QAAQ,QACR,SAAUxB,IAAgBC,EAC1B,QAAS,IAAMW,EAAiBZ,EAAc,CAAC,EAC/C,UAAWyB,EAAAA,sCAAsC,CAC/C,KAAAlB,EACA,KAAM,MAAA,CACP,EACD,aAAW,qBAEV,SAAAD,GACCW,EAAAA,IAACS,EAAAA,WAAA,CACC,KAAMI,EAAAA,WACN,KAAMhC,EAAmCS,CAAI,CAAA,CAAA,CAC/C,CAAA,CAEJ,CACF,CAAA,CAAA,CAAA,EAGN,CAEJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n, jsxs as L } from "react/jsx-runtime";
|
|
2
2
|
import { getPageNumbers as p } from "./utils-helpers.js";
|
|
3
3
|
import { cn as A } from "./lib-utils.js";
|
|
4
|
-
import { CaretLeft as $ } from "phosphor-strokes-icons/icons/CaretLeft";
|
|
5
|
-
import { CaretRight as u } from "phosphor-strokes-icons/icons/CaretRight";
|
|
4
|
+
import { CaretLeft as $ } from "brd-phosphor-strokes-icons/icons/CaretLeft";
|
|
5
|
+
import { CaretRight as u } from "brd-phosphor-strokes-icons/icons/CaretRight";
|
|
6
6
|
import { StrokeIcon as e } from "./components-icons-stroke-icon.js";
|
|
7
7
|
import { Button as c } from "./components-ui-button-button.js";
|
|
8
8
|
import "./components-ui-button-button.styles.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("./lib-utils.cjs"),q=require("phosphor-strokes-icons/icons/CaretUpDown"),x=require("./components-icons-stroke-icon.cjs"),k=require("./components-ui-navigation-item-navigation-item.cjs"),C=require("./components-ui-navigation-menu-navigation-menu.cjs"),o=require("./components-app-sidebar-app-sidebar.styles.cjs"),y=({groups:l,title:m="CRM",brandMark:h,state:s="expanded",activeItemId:c,showToggle:v=!0,onStateChange:d,onItemSelect:j,className:g,...N})=>{const n=s==="collapsed",S=l.filter(r=>r.placement!=="bottom"),p=l.filter(r=>r.placement==="bottom"),_=n?"expanded":"collapsed",f=()=>{d?.(_)},b=r=>r.map(t=>a.jsx(C.NavigationMenu,{title:t.title,collapsed:n,className:i.cn(t.divider&&"border-delicate-border border-b"),children:t.items.map(e=>{const u=c?c===e.id:!!e.active;return a.jsx(k.NavigationItem,{icon:a.jsx(x.StrokeIcon,{icon:e.icon}),label:e.label,badge:e.badge,active:u,collapsed:n,disabled:e.disabled,href:e.href,target:e.target,rel:e.rel,onAction:()=>{j?.(e),e.onClick?.(e)},"aria-current":u?"page":void 0},e.id)})},t.id));return a.jsxs("aside",{className:i.cn(o.appSidebarRootVariants({state:s}),g),"aria-label":"Боковая навигация",...N,children:[a.jsxs("header",{className:o.appSidebarHeaderVariants({state:s}),children:[a.jsxs("div",{className:o.appSidebarBrandVariants({state:s}),children:[h,a.jsx("p",{className:o.appSidebarBrandTitleClassName,children:m})]}),v&&a.jsx("button",{type:"button",className:o.appSidebarToggleButtonVariants(),onClick:f,"aria-label":n?"Развернуть боковую навигацию":"Свернуть боковую навигацию",disabled:!d,children:a.jsx(x.StrokeIcon,{icon:q.CaretUpDown,strokeWidth:1.5,className:i.cn("transition-transform duration-200",n?"-rotate-90":"rotate-90")})})]}),a.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[a.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:b(S)}),p.length>0&&a.jsx("div",{className:"mt-auto",children:b(p)})]})]})};exports.AppSidebar=y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("./lib-utils.cjs"),q=require("brd-phosphor-strokes-icons/icons/CaretUpDown"),x=require("./components-icons-stroke-icon.cjs"),k=require("./components-ui-navigation-item-navigation-item.cjs"),C=require("./components-ui-navigation-menu-navigation-menu.cjs"),o=require("./components-app-sidebar-app-sidebar.styles.cjs"),y=({groups:l,title:m="CRM",brandMark:h,state:s="expanded",activeItemId:c,showToggle:v=!0,onStateChange:d,onItemSelect:j,className:g,...N})=>{const n=s==="collapsed",S=l.filter(r=>r.placement!=="bottom"),p=l.filter(r=>r.placement==="bottom"),_=n?"expanded":"collapsed",f=()=>{d?.(_)},b=r=>r.map(t=>a.jsx(C.NavigationMenu,{title:t.title,collapsed:n,className:i.cn(t.divider&&"border-delicate-border border-b"),children:t.items.map(e=>{const u=c?c===e.id:!!e.active;return a.jsx(k.NavigationItem,{icon:a.jsx(x.StrokeIcon,{icon:e.icon}),label:e.label,badge:e.badge,active:u,collapsed:n,disabled:e.disabled,href:e.href,target:e.target,rel:e.rel,onAction:()=>{j?.(e),e.onClick?.(e)},"aria-current":u?"page":void 0},e.id)})},t.id));return a.jsxs("aside",{className:i.cn(o.appSidebarRootVariants({state:s}),g),"aria-label":"Боковая навигация",...N,children:[a.jsxs("header",{className:o.appSidebarHeaderVariants({state:s}),children:[a.jsxs("div",{className:o.appSidebarBrandVariants({state:s}),children:[h,a.jsx("p",{className:o.appSidebarBrandTitleClassName,children:m})]}),v&&a.jsx("button",{type:"button",className:o.appSidebarToggleButtonVariants(),onClick:f,"aria-label":n?"Развернуть боковую навигацию":"Свернуть боковую навигацию",disabled:!d,children:a.jsx(x.StrokeIcon,{icon:q.CaretUpDown,strokeWidth:1.5,className:i.cn("transition-transform duration-200",n?"-rotate-90":"rotate-90")})})]}),a.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[a.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:b(S)}),p.length>0&&a.jsx("div",{className:"mt-auto",children:b(p)})]})]})};exports.AppSidebar=y;
|
|
2
2
|
//# sourceMappingURL=components-app-sidebar-app-sidebar.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-app-sidebar-app-sidebar.cjs","sources":["../src/components/app-sidebar/app-sidebar.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport { CaretUpDown } from \"@/components/icons/CaretUpDown\";\nimport { StrokeIcon, type StrokeIconComponent } from \"@/components/icons/stroke-icon\";\nimport { NavigationItem } from \"../ui/navigation-item\";\nimport { NavigationMenu } from \"../ui/navigation-menu\";\nimport {\n appSidebarBrandTitleClassName,\n appSidebarBrandVariants,\n appSidebarHeaderVariants,\n appSidebarRootVariants,\n appSidebarToggleButtonVariants,\n type AppSidebarState,\n} from \"./app-sidebar.styles\";\n\nexport type AppSidebarItem = {\n id: string;\n label: string;\n icon: StrokeIconComponent;\n disabled?: boolean;\n active?: boolean;\n badge?: React.ReactNode;\n href?: string;\n target?: React.HTMLAttributeAnchorTarget;\n rel?: string;\n onClick?: (item: AppSidebarItem) => void;\n};\n\nexport type AppSidebarGroup = {\n id: string;\n title?: string;\n divider?: boolean;\n placement?: \"top\" | \"bottom\";\n items: AppSidebarItem[];\n};\n\ntype Props = React.HTMLAttributes<HTMLElement> & {\n groups: AppSidebarGroup[];\n title?: string;\n brandMark?: React.ReactNode;\n state?: AppSidebarState;\n activeItemId?: string;\n showToggle?: boolean;\n onStateChange?: (nextState: AppSidebarState) => void;\n onItemSelect?: (item: AppSidebarItem) => void;\n};\n\nconst AppSidebar = ({\n groups,\n title = \"CRM\",\n brandMark,\n state = \"expanded\",\n activeItemId,\n showToggle = true,\n onStateChange,\n onItemSelect,\n className,\n ...props\n}: Props) => {\n const isCollapsed = state === \"collapsed\";\n const topGroups = groups.filter((group) => group.placement !== \"bottom\");\n const bottomGroups = groups.filter((group) => group.placement === \"bottom\");\n const nextState = isCollapsed ? \"expanded\" : \"collapsed\";\n\n const handleToggle = () => {\n onStateChange?.(nextState);\n };\n\n const renderGroups = (items: AppSidebarGroup[]) => {\n return items.map((group) => (\n <NavigationMenu\n key={group.id}\n title={group.title}\n collapsed={isCollapsed}\n className={cn(group.divider && \"border-delicate-border border-b\")}\n >\n {group.items.map((item) => {\n const isActive = activeItemId ? activeItemId === item.id : Boolean(item.active);\n\n return (\n <NavigationItem\n key={item.id}\n icon={<StrokeIcon icon={item.icon} />}\n label={item.label}\n badge={item.badge}\n active={isActive}\n collapsed={isCollapsed}\n disabled={item.disabled}\n href={item.href}\n target={item.target}\n rel={item.rel}\n onAction={() => {\n onItemSelect?.(item);\n item.onClick?.(item);\n }}\n aria-current={isActive ? \"page\" : undefined}\n />\n );\n })}\n </NavigationMenu>\n ));\n };\n\n return (\n <aside\n className={cn(appSidebarRootVariants({ state }), className)}\n aria-label=\"Боковая навигация\"\n {...props}\n >\n <header className={appSidebarHeaderVariants({ state })}>\n <div className={appSidebarBrandVariants({ state })}>\n {brandMark}\n <p className={appSidebarBrandTitleClassName}>{title}</p>\n </div>\n\n {showToggle && (\n <button\n type=\"button\"\n className={appSidebarToggleButtonVariants()}\n onClick={handleToggle}\n aria-label={\n isCollapsed ? \"Развернуть боковую навигацию\" : \"Свернуть боковую навигацию\"\n }\n disabled={!onStateChange}\n >\n <StrokeIcon\n icon={CaretUpDown}\n strokeWidth={1.5}\n className={cn(\n \"transition-transform duration-200\",\n isCollapsed ? \"-rotate-90\" : \"rotate-90\",\n )}\n />\n </button>\n )}\n </header>\n\n <div className=\"flex min-h-0 flex-1 flex-col\">\n <div className=\"min-h-0 flex-1 overflow-y-auto\">{renderGroups(topGroups)}</div>\n\n {bottomGroups.length > 0 && (\n <div className=\"mt-auto\">{renderGroups(bottomGroups)}</div>\n )}\n </div>\n </aside>\n );\n};\n\nexport { AppSidebar };\n"],"names":["AppSidebar","groups","title","brandMark","state","activeItemId","showToggle","onStateChange","onItemSelect","className","props","isCollapsed","topGroups","group","bottomGroups","nextState","handleToggle","renderGroups","items","jsx","NavigationMenu","cn","item","isActive","NavigationItem","StrokeIcon","jsxs","appSidebarRootVariants","appSidebarHeaderVariants","appSidebarBrandVariants","appSidebarBrandTitleClassName","appSidebarToggleButtonVariants","CaretUpDown"],"mappings":"
|
|
1
|
+
{"version":3,"file":"components-app-sidebar-app-sidebar.cjs","sources":["../src/components/app-sidebar/app-sidebar.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport { CaretUpDown } from \"@/components/icons/CaretUpDown\";\nimport { StrokeIcon, type StrokeIconComponent } from \"@/components/icons/stroke-icon\";\nimport { NavigationItem } from \"../ui/navigation-item\";\nimport { NavigationMenu } from \"../ui/navigation-menu\";\nimport {\n appSidebarBrandTitleClassName,\n appSidebarBrandVariants,\n appSidebarHeaderVariants,\n appSidebarRootVariants,\n appSidebarToggleButtonVariants,\n type AppSidebarState,\n} from \"./app-sidebar.styles\";\n\nexport type AppSidebarItem = {\n id: string;\n label: string;\n icon: StrokeIconComponent;\n disabled?: boolean;\n active?: boolean;\n badge?: React.ReactNode;\n href?: string;\n target?: React.HTMLAttributeAnchorTarget;\n rel?: string;\n onClick?: (item: AppSidebarItem) => void;\n};\n\nexport type AppSidebarGroup = {\n id: string;\n title?: string;\n divider?: boolean;\n placement?: \"top\" | \"bottom\";\n items: AppSidebarItem[];\n};\n\ntype Props = React.HTMLAttributes<HTMLElement> & {\n groups: AppSidebarGroup[];\n title?: string;\n brandMark?: React.ReactNode;\n state?: AppSidebarState;\n activeItemId?: string;\n showToggle?: boolean;\n onStateChange?: (nextState: AppSidebarState) => void;\n onItemSelect?: (item: AppSidebarItem) => void;\n};\n\nconst AppSidebar = ({\n groups,\n title = \"CRM\",\n brandMark,\n state = \"expanded\",\n activeItemId,\n showToggle = true,\n onStateChange,\n onItemSelect,\n className,\n ...props\n}: Props) => {\n const isCollapsed = state === \"collapsed\";\n const topGroups = groups.filter((group) => group.placement !== \"bottom\");\n const bottomGroups = groups.filter((group) => group.placement === \"bottom\");\n const nextState = isCollapsed ? \"expanded\" : \"collapsed\";\n\n const handleToggle = () => {\n onStateChange?.(nextState);\n };\n\n const renderGroups = (items: AppSidebarGroup[]) => {\n return items.map((group) => (\n <NavigationMenu\n key={group.id}\n title={group.title}\n collapsed={isCollapsed}\n className={cn(group.divider && \"border-delicate-border border-b\")}\n >\n {group.items.map((item) => {\n const isActive = activeItemId ? activeItemId === item.id : Boolean(item.active);\n\n return (\n <NavigationItem\n key={item.id}\n icon={<StrokeIcon icon={item.icon} />}\n label={item.label}\n badge={item.badge}\n active={isActive}\n collapsed={isCollapsed}\n disabled={item.disabled}\n href={item.href}\n target={item.target}\n rel={item.rel}\n onAction={() => {\n onItemSelect?.(item);\n item.onClick?.(item);\n }}\n aria-current={isActive ? \"page\" : undefined}\n />\n );\n })}\n </NavigationMenu>\n ));\n };\n\n return (\n <aside\n className={cn(appSidebarRootVariants({ state }), className)}\n aria-label=\"Боковая навигация\"\n {...props}\n >\n <header className={appSidebarHeaderVariants({ state })}>\n <div className={appSidebarBrandVariants({ state })}>\n {brandMark}\n <p className={appSidebarBrandTitleClassName}>{title}</p>\n </div>\n\n {showToggle && (\n <button\n type=\"button\"\n className={appSidebarToggleButtonVariants()}\n onClick={handleToggle}\n aria-label={\n isCollapsed ? \"Развернуть боковую навигацию\" : \"Свернуть боковую навигацию\"\n }\n disabled={!onStateChange}\n >\n <StrokeIcon\n icon={CaretUpDown}\n strokeWidth={1.5}\n className={cn(\n \"transition-transform duration-200\",\n isCollapsed ? \"-rotate-90\" : \"rotate-90\",\n )}\n />\n </button>\n )}\n </header>\n\n <div className=\"flex min-h-0 flex-1 flex-col\">\n <div className=\"min-h-0 flex-1 overflow-y-auto\">{renderGroups(topGroups)}</div>\n\n {bottomGroups.length > 0 && (\n <div className=\"mt-auto\">{renderGroups(bottomGroups)}</div>\n )}\n </div>\n </aside>\n );\n};\n\nexport { AppSidebar };\n"],"names":["AppSidebar","groups","title","brandMark","state","activeItemId","showToggle","onStateChange","onItemSelect","className","props","isCollapsed","topGroups","group","bottomGroups","nextState","handleToggle","renderGroups","items","jsx","NavigationMenu","cn","item","isActive","NavigationItem","StrokeIcon","jsxs","appSidebarRootVariants","appSidebarHeaderVariants","appSidebarBrandVariants","appSidebarBrandTitleClassName","appSidebarToggleButtonVariants","CaretUpDown"],"mappings":"2bA8CMA,EAAa,CAAC,CAClB,OAAAC,EACA,MAAAC,EAAQ,MACR,UAAAC,EACA,MAAAC,EAAQ,WACR,aAAAC,EACA,WAAAC,EAAa,GACb,cAAAC,EACA,aAAAC,EACA,UAAAC,EACA,GAAGC,CACL,IAAa,CACX,MAAMC,EAAcP,IAAU,YACxBQ,EAAYX,EAAO,OAAQY,GAAUA,EAAM,YAAc,QAAQ,EACjEC,EAAeb,EAAO,OAAQY,GAAUA,EAAM,YAAc,QAAQ,EACpEE,EAAYJ,EAAc,WAAa,YAEvCK,EAAe,IAAM,CACzBT,IAAgBQ,CAAS,CAC3B,EAEME,EAAgBC,GACbA,EAAM,IAAKL,GAChBM,EAAAA,IAACC,EAAAA,eAAA,CAEC,MAAOP,EAAM,MACb,UAAWF,EACX,UAAWU,EAAAA,GAAGR,EAAM,SAAW,iCAAiC,EAE/D,SAAAA,EAAM,MAAM,IAAKS,GAAS,CACzB,MAAMC,EAAWlB,EAAeA,IAAiBiB,EAAK,GAAK,EAAQA,EAAK,OAExE,OACEH,EAAAA,IAACK,EAAAA,eAAA,CAEC,KAAML,EAAAA,IAACM,EAAAA,WAAA,CAAW,KAAMH,EAAK,KAAM,EACnC,MAAOA,EAAK,MACZ,MAAOA,EAAK,MACZ,OAAQC,EACR,UAAWZ,EACX,SAAUW,EAAK,SACf,KAAMA,EAAK,KACX,OAAQA,EAAK,OACb,IAAKA,EAAK,IACV,SAAU,IAAM,CACdd,IAAec,CAAI,EACnBA,EAAK,UAAUA,CAAI,CACrB,EACA,eAAcC,EAAW,OAAS,MAAA,EAd7BD,EAAK,EAAA,CAiBhB,CAAC,CAAA,EA3BIT,EAAM,EAAA,CA6Bd,EAGH,OACEa,EAAAA,KAAC,QAAA,CACC,UAAWL,EAAAA,GAAGM,EAAAA,uBAAuB,CAAE,MAAAvB,CAAA,CAAO,EAAGK,CAAS,EAC1D,aAAW,oBACV,GAAGC,EAEJ,SAAA,CAAAgB,EAAAA,KAAC,UAAO,UAAWE,EAAAA,yBAAyB,CAAE,MAAAxB,CAAA,CAAO,EACnD,SAAA,CAAAsB,EAAAA,KAAC,OAAI,UAAWG,EAAAA,wBAAwB,CAAE,MAAAzB,CAAA,CAAO,EAC9C,SAAA,CAAAD,EACDgB,EAAAA,IAAC,IAAA,CAAE,UAAWW,EAAAA,8BAAgC,SAAA5B,CAAA,CAAM,CAAA,EACtD,EAECI,GACCa,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAWY,EAAAA,+BAAA,EACX,QAASf,EACT,aACEL,EAAc,+BAAiC,6BAEjD,SAAU,CAACJ,EAEX,SAAAY,EAAAA,IAACM,EAAAA,WAAA,CACC,KAAMO,EAAAA,YACN,YAAa,IACb,UAAWX,EAAAA,GACT,oCACAV,EAAc,aAAe,WAAA,CAC/B,CAAA,CACF,CAAA,CACF,EAEJ,EAEAe,EAAAA,KAAC,MAAA,CAAI,UAAU,+BACb,SAAA,CAAAP,MAAC,MAAA,CAAI,UAAU,iCAAkC,SAAAF,EAAaL,CAAS,EAAE,EAExEE,EAAa,OAAS,GACrBK,EAAAA,IAAC,OAAI,UAAU,UAAW,SAAAF,EAAaH,CAAY,CAAA,CAAE,CAAA,CAAA,CAEzD,CAAA,CAAA,CAAA,CAGN"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as n } from "./lib-utils.js";
|
|
3
|
-
import { CaretUpDown as B } from "phosphor-strokes-icons/icons/CaretUpDown";
|
|
3
|
+
import { CaretUpDown as B } from "brd-phosphor-strokes-icons/icons/CaretUpDown";
|
|
4
4
|
import { StrokeIcon as f } from "./components-icons-stroke-icon.js";
|
|
5
5
|
import { NavigationItem as V } from "./components-ui-navigation-item-navigation-item.js";
|
|
6
6
|
import { NavigationMenu as A } from "./components-ui-navigation-menu-navigation-menu.js";
|