brd-ui-kit 0.1.76 → 0.1.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brd-ui-kit.css +1 -1
- package/dist/calendar-PqChui7l.cjs +2 -0
- package/dist/{calendar-B5QCV34E.cjs.map → calendar-PqChui7l.cjs.map} +1 -1
- package/dist/{calendar-Ba3kHG6w.js → calendar-XWqEaWHP.js} +4 -3
- package/dist/{calendar-Ba3kHG6w.js.map → calendar-XWqEaWHP.js.map} +1 -1
- package/dist/{calendar-locale-BHyNJPb2.cjs → calendar-locale-CosU_VZY.cjs} +2 -2
- package/dist/{calendar-locale-BHyNJPb2.cjs.map → calendar-locale-CosU_VZY.cjs.map} +1 -1
- package/dist/{calendar-locale-DQ9wj0zF.js → calendar-locale-DqQZymBn.js} +2 -2
- package/dist/{calendar-locale-DQ9wj0zF.js.map → calendar-locale-DqQZymBn.js.map} +1 -1
- package/dist/components/app-sidebar/app-sidebar.d.ts +2 -2
- package/dist/components/checkbox-group/checkbox-group.d.ts +29 -0
- package/dist/components/checkbox-group/index.d.ts +2 -0
- package/dist/components/checkbox-group.d.ts +2 -0
- package/dist/components/data-table/data-table-row-actions-column.d.ts +2 -2
- package/dist/components/files-uploader/files-uploader.d.ts +2 -2
- package/dist/components/icons/ArrowCounterClockwise.d.ts +1 -0
- package/dist/components/icons/BoundingBox.d.ts +1 -0
- package/dist/components/icons/Briefcase.d.ts +1 -0
- package/dist/components/icons/Building.d.ts +1 -0
- package/dist/components/icons/Buildings.d.ts +1 -0
- package/dist/components/icons/CaretDown.d.ts +1 -0
- package/dist/components/icons/CaretLeft.d.ts +1 -0
- package/dist/components/icons/CaretRight.d.ts +1 -0
- package/dist/components/icons/CaretUp.d.ts +1 -0
- package/dist/components/icons/CaretUpDown.d.ts +1 -0
- package/dist/components/icons/ChartLine.d.ts +1 -0
- package/dist/components/icons/Check.d.ts +1 -0
- package/dist/components/icons/CheckCircle.d.ts +1 -0
- package/dist/components/icons/Clock.d.ts +1 -0
- package/dist/components/icons/CreditCard.d.ts +1 -0
- package/dist/components/icons/DotsThree.d.ts +1 -0
- package/dist/components/icons/DownloadSimple.d.ts +1 -0
- package/dist/components/icons/EnvelopeSimple.d.ts +1 -0
- package/dist/components/icons/Eye.d.ts +1 -0
- package/dist/components/icons/EyeSlash.d.ts +1 -0
- package/dist/components/icons/FileText.d.ts +1 -0
- package/dist/components/icons/Folder.d.ts +1 -0
- package/dist/components/icons/Funnel.d.ts +1 -0
- package/dist/components/icons/Gear.d.ts +1 -0
- package/dist/components/icons/Info.d.ts +1 -0
- package/dist/components/icons/LockKey.d.ts +1 -0
- package/dist/components/icons/MagnifyingGlass.d.ts +1 -0
- package/dist/components/icons/MaxLogo.d.ts +1 -0
- package/dist/components/icons/Package.d.ts +1 -0
- package/dist/components/icons/Pencil.d.ts +1 -0
- package/dist/components/icons/Phone.d.ts +1 -0
- package/dist/components/icons/Plus.d.ts +1 -0
- package/dist/components/icons/PresentationChart.d.ts +1 -0
- package/dist/components/icons/SpinnerGap.d.ts +1 -0
- package/dist/components/icons/TelegramLogo.d.ts +1 -0
- package/dist/components/icons/Trash.d.ts +1 -0
- package/dist/components/icons/UserCircleGear.d.ts +1 -0
- package/dist/components/icons/Users.d.ts +1 -0
- package/dist/components/icons/UsersFour.d.ts +1 -0
- package/dist/components/icons/Warning.d.ts +1 -0
- package/dist/components/icons/WarningCircle.d.ts +1 -0
- package/dist/components/icons/WhatsAppLogoFilled.d.ts +1 -0
- package/dist/components/icons/Wrench.d.ts +1 -0
- package/dist/components/icons/X.d.ts +1 -0
- package/dist/components/icons/XCircle.d.ts +1 -0
- package/dist/components/icons/index.d.ts +50 -0
- package/dist/components/icons/stroke-icon.d.ts +19 -0
- package/dist/components/icons.d.ts +2 -0
- package/dist/components/input-password/input-password.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/icon/icon-map.d.ts +68 -0
- package/dist/components/ui/icon/icon.d.ts +6 -6
- package/dist/components/ui/icon/index.d.ts +3 -1
- package/dist/components/ui/toggle-group/toggle-group.styles.d.ts +1 -1
- package/dist/components-app-pagination-app-pagination.cjs +1 -1
- package/dist/components-app-pagination-app-pagination.cjs.map +1 -1
- package/dist/components-app-pagination-app-pagination.js +34 -32
- package/dist/components-app-pagination-app-pagination.js.map +1 -1
- package/dist/components-app-sidebar-app-sidebar.cjs +1 -1
- package/dist/components-app-sidebar-app-sidebar.cjs.map +1 -1
- package/dist/components-app-sidebar-app-sidebar.js +33 -32
- package/dist/components-app-sidebar-app-sidebar.js.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
- package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.js +23 -4
- package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs +2 -2
- package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +24 -4
- package/dist/components-basic-avatar-basic-avatar.js.map +1 -1
- package/dist/components-checkbox-group-checkbox-group.cjs +4 -0
- package/dist/components-checkbox-group-checkbox-group.cjs.map +1 -0
- package/dist/components-checkbox-group-checkbox-group.js +305 -0
- package/dist/components-checkbox-group-checkbox-group.js.map +1 -0
- package/dist/components-checkbox-group.cjs +2 -0
- package/dist/components-checkbox-group.cjs.map +1 -0
- package/dist/components-checkbox-group.js +5 -0
- package/dist/components-checkbox-group.js.map +1 -0
- 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 +6 -5
- package/dist/components-data-table-data-table-actions-column.js.map +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 +10 -9
- package/dist/components-data-table-data-table-column-visibility.js.map +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 +20 -19
- package/dist/components-data-table-data-table-row-actions-column.js.map +1 -1
- package/dist/components-files-uploader-files-uploader.cjs +3 -3
- package/dist/components-files-uploader-files-uploader.cjs.map +1 -1
- package/dist/components-files-uploader-files-uploader.js +41 -38
- package/dist/components-files-uploader-files-uploader.js.map +1 -1
- package/dist/components-icons-ArrowCounterClockwise.cjs +2 -0
- package/dist/components-icons-ArrowCounterClockwise.cjs.map +1 -0
- package/dist/components-icons-ArrowCounterClockwise.js +5 -0
- package/dist/components-icons-ArrowCounterClockwise.js.map +1 -0
- package/dist/components-icons-BoundingBox.cjs +2 -0
- package/dist/components-icons-BoundingBox.cjs.map +1 -0
- package/dist/components-icons-BoundingBox.js +5 -0
- package/dist/components-icons-BoundingBox.js.map +1 -0
- package/dist/components-icons-Briefcase.cjs +2 -0
- package/dist/components-icons-Briefcase.cjs.map +1 -0
- package/dist/components-icons-Briefcase.js +5 -0
- package/dist/components-icons-Briefcase.js.map +1 -0
- package/dist/components-icons-Building.cjs +2 -0
- package/dist/components-icons-Building.cjs.map +1 -0
- package/dist/components-icons-Building.js +5 -0
- package/dist/components-icons-Building.js.map +1 -0
- package/dist/components-icons-Buildings.cjs +2 -0
- package/dist/components-icons-Buildings.cjs.map +1 -0
- package/dist/components-icons-Buildings.js +5 -0
- package/dist/components-icons-Buildings.js.map +1 -0
- package/dist/components-icons-CaretDown.cjs +2 -0
- package/dist/components-icons-CaretDown.cjs.map +1 -0
- package/dist/components-icons-CaretDown.js +5 -0
- package/dist/components-icons-CaretDown.js.map +1 -0
- package/dist/components-icons-CaretLeft.cjs +2 -0
- package/dist/components-icons-CaretLeft.cjs.map +1 -0
- package/dist/components-icons-CaretLeft.js +5 -0
- package/dist/components-icons-CaretLeft.js.map +1 -0
- package/dist/components-icons-CaretRight.cjs +2 -0
- package/dist/components-icons-CaretRight.cjs.map +1 -0
- package/dist/components-icons-CaretRight.js +5 -0
- package/dist/components-icons-CaretRight.js.map +1 -0
- package/dist/components-icons-CaretUp.cjs +2 -0
- package/dist/components-icons-CaretUp.cjs.map +1 -0
- package/dist/components-icons-CaretUp.js +5 -0
- package/dist/components-icons-CaretUp.js.map +1 -0
- package/dist/components-icons-CaretUpDown.cjs +2 -0
- package/dist/components-icons-CaretUpDown.cjs.map +1 -0
- package/dist/components-icons-CaretUpDown.js +5 -0
- package/dist/components-icons-CaretUpDown.js.map +1 -0
- package/dist/components-icons-ChartLine.cjs +2 -0
- package/dist/components-icons-ChartLine.cjs.map +1 -0
- package/dist/components-icons-ChartLine.js +5 -0
- package/dist/components-icons-ChartLine.js.map +1 -0
- package/dist/components-icons-Check.cjs +2 -0
- package/dist/components-icons-Check.cjs.map +1 -0
- package/dist/components-icons-Check.js +5 -0
- package/dist/components-icons-Check.js.map +1 -0
- package/dist/components-icons-CheckCircle.cjs +2 -0
- package/dist/components-icons-CheckCircle.cjs.map +1 -0
- package/dist/components-icons-CheckCircle.js +5 -0
- package/dist/components-icons-CheckCircle.js.map +1 -0
- package/dist/components-icons-Clock.cjs +2 -0
- package/dist/components-icons-Clock.cjs.map +1 -0
- package/dist/components-icons-Clock.js +5 -0
- package/dist/components-icons-Clock.js.map +1 -0
- package/dist/components-icons-CreditCard.cjs +2 -0
- package/dist/components-icons-CreditCard.cjs.map +1 -0
- package/dist/components-icons-CreditCard.js +5 -0
- package/dist/components-icons-CreditCard.js.map +1 -0
- package/dist/components-icons-DotsThree.cjs +2 -0
- package/dist/components-icons-DotsThree.cjs.map +1 -0
- package/dist/components-icons-DotsThree.js +5 -0
- package/dist/components-icons-DotsThree.js.map +1 -0
- package/dist/components-icons-DownloadSimple.cjs +2 -0
- package/dist/components-icons-DownloadSimple.cjs.map +1 -0
- package/dist/components-icons-DownloadSimple.js +5 -0
- package/dist/components-icons-DownloadSimple.js.map +1 -0
- package/dist/components-icons-EnvelopeSimple.cjs +2 -0
- package/dist/components-icons-EnvelopeSimple.cjs.map +1 -0
- package/dist/components-icons-EnvelopeSimple.js +5 -0
- package/dist/components-icons-EnvelopeSimple.js.map +1 -0
- package/dist/components-icons-Eye.cjs +2 -0
- package/dist/components-icons-Eye.cjs.map +1 -0
- package/dist/components-icons-Eye.js +5 -0
- package/dist/components-icons-Eye.js.map +1 -0
- package/dist/components-icons-EyeSlash.cjs +2 -0
- package/dist/components-icons-EyeSlash.cjs.map +1 -0
- package/dist/components-icons-EyeSlash.js +5 -0
- package/dist/components-icons-EyeSlash.js.map +1 -0
- package/dist/components-icons-FileText.cjs +2 -0
- package/dist/components-icons-FileText.cjs.map +1 -0
- package/dist/components-icons-FileText.js +5 -0
- package/dist/components-icons-FileText.js.map +1 -0
- package/dist/components-icons-Folder.cjs +2 -0
- package/dist/components-icons-Folder.cjs.map +1 -0
- package/dist/components-icons-Folder.js +5 -0
- package/dist/components-icons-Folder.js.map +1 -0
- package/dist/components-icons-Funnel.cjs +2 -0
- package/dist/components-icons-Funnel.cjs.map +1 -0
- package/dist/components-icons-Funnel.js +5 -0
- package/dist/components-icons-Funnel.js.map +1 -0
- package/dist/components-icons-Gear.cjs +2 -0
- package/dist/components-icons-Gear.cjs.map +1 -0
- package/dist/components-icons-Gear.js +5 -0
- package/dist/components-icons-Gear.js.map +1 -0
- package/dist/components-icons-Info.cjs +2 -0
- package/dist/components-icons-Info.cjs.map +1 -0
- package/dist/components-icons-Info.js +5 -0
- package/dist/components-icons-Info.js.map +1 -0
- package/dist/components-icons-LockKey.cjs +2 -0
- package/dist/components-icons-LockKey.cjs.map +1 -0
- package/dist/components-icons-LockKey.js +5 -0
- package/dist/components-icons-LockKey.js.map +1 -0
- package/dist/components-icons-MagnifyingGlass.cjs +2 -0
- package/dist/components-icons-MagnifyingGlass.cjs.map +1 -0
- package/dist/components-icons-MagnifyingGlass.js +5 -0
- package/dist/components-icons-MagnifyingGlass.js.map +1 -0
- package/dist/components-icons-MaxLogo.cjs +2 -0
- package/dist/components-icons-MaxLogo.cjs.map +1 -0
- package/dist/components-icons-MaxLogo.js +5 -0
- package/dist/components-icons-MaxLogo.js.map +1 -0
- package/dist/components-icons-Package.cjs +2 -0
- package/dist/components-icons-Package.cjs.map +1 -0
- package/dist/components-icons-Package.js +5 -0
- package/dist/components-icons-Package.js.map +1 -0
- package/dist/components-icons-Pencil.cjs +2 -0
- package/dist/components-icons-Pencil.cjs.map +1 -0
- package/dist/components-icons-Pencil.js +5 -0
- package/dist/components-icons-Pencil.js.map +1 -0
- package/dist/components-icons-Phone.cjs +2 -0
- package/dist/components-icons-Phone.cjs.map +1 -0
- package/dist/components-icons-Phone.js +5 -0
- package/dist/components-icons-Phone.js.map +1 -0
- package/dist/components-icons-Plus.cjs +2 -0
- package/dist/components-icons-Plus.cjs.map +1 -0
- package/dist/components-icons-Plus.js +5 -0
- package/dist/components-icons-Plus.js.map +1 -0
- package/dist/components-icons-PresentationChart.cjs +2 -0
- package/dist/components-icons-PresentationChart.cjs.map +1 -0
- package/dist/components-icons-PresentationChart.js +5 -0
- package/dist/components-icons-PresentationChart.js.map +1 -0
- package/dist/components-icons-SpinnerGap.cjs +2 -0
- package/dist/components-icons-SpinnerGap.cjs.map +1 -0
- package/dist/components-icons-SpinnerGap.js +5 -0
- package/dist/components-icons-SpinnerGap.js.map +1 -0
- package/dist/components-icons-TelegramLogo.cjs +2 -0
- package/dist/components-icons-TelegramLogo.cjs.map +1 -0
- package/dist/components-icons-TelegramLogo.js +5 -0
- package/dist/components-icons-TelegramLogo.js.map +1 -0
- package/dist/components-icons-Trash.cjs +2 -0
- package/dist/components-icons-Trash.cjs.map +1 -0
- package/dist/components-icons-Trash.js +5 -0
- package/dist/components-icons-Trash.js.map +1 -0
- package/dist/components-icons-UserCircleGear.cjs +2 -0
- package/dist/components-icons-UserCircleGear.cjs.map +1 -0
- package/dist/components-icons-UserCircleGear.js +5 -0
- package/dist/components-icons-UserCircleGear.js.map +1 -0
- package/dist/components-icons-Users.cjs +2 -0
- package/dist/components-icons-Users.cjs.map +1 -0
- package/dist/components-icons-Users.js +5 -0
- package/dist/components-icons-Users.js.map +1 -0
- package/dist/components-icons-UsersFour.cjs +2 -0
- package/dist/components-icons-UsersFour.cjs.map +1 -0
- package/dist/components-icons-UsersFour.js +5 -0
- package/dist/components-icons-UsersFour.js.map +1 -0
- package/dist/components-icons-Warning.cjs +2 -0
- package/dist/components-icons-Warning.cjs.map +1 -0
- package/dist/components-icons-Warning.js +5 -0
- package/dist/components-icons-Warning.js.map +1 -0
- package/dist/components-icons-WarningCircle.cjs +2 -0
- package/dist/components-icons-WarningCircle.cjs.map +1 -0
- package/dist/components-icons-WarningCircle.js +5 -0
- package/dist/components-icons-WarningCircle.js.map +1 -0
- package/dist/components-icons-WhatsAppLogoFilled.cjs +2 -0
- package/dist/components-icons-WhatsAppLogoFilled.cjs.map +1 -0
- package/dist/components-icons-WhatsAppLogoFilled.js +5 -0
- package/dist/components-icons-WhatsAppLogoFilled.js.map +1 -0
- package/dist/components-icons-Wrench.cjs +2 -0
- package/dist/components-icons-Wrench.cjs.map +1 -0
- package/dist/components-icons-Wrench.js +5 -0
- package/dist/components-icons-Wrench.js.map +1 -0
- package/dist/components-icons-X.cjs +2 -0
- package/dist/components-icons-X.cjs.map +1 -0
- package/dist/components-icons-X.js +5 -0
- package/dist/components-icons-X.js.map +1 -0
- package/dist/components-icons-XCircle.cjs +2 -0
- package/dist/components-icons-XCircle.cjs.map +1 -0
- package/dist/components-icons-XCircle.js +5 -0
- package/dist/components-icons-XCircle.js.map +1 -0
- package/dist/components-icons-stroke-icon.cjs +2 -0
- package/dist/components-icons-stroke-icon.cjs.map +1 -0
- package/dist/components-icons-stroke-icon.js +39 -0
- package/dist/components-icons-stroke-icon.js.map +1 -0
- package/dist/components-icons.cjs +2 -0
- package/dist/components-icons.cjs.map +1 -0
- package/dist/components-icons.js +97 -0
- package/dist/components-icons.js.map +1 -0
- package/dist/components-input-contact-input-contact.cjs +4 -4
- package/dist/components-input-contact-input-contact.cjs.map +1 -1
- package/dist/components-input-contact-input-contact.js +103 -74
- package/dist/components-input-contact-input-contact.js.map +1 -1
- package/dist/components-input-password-input-password.cjs +1 -1
- package/dist/components-input-password-input-password.cjs.map +1 -1
- package/dist/components-input-password-input-password.js +14 -52
- package/dist/components-input-password-input-password.js.map +1 -1
- package/dist/components-ui-calendar-calendar.cjs +1 -1
- package/dist/components-ui-calendar-calendar.js +4 -3
- package/dist/components-ui-calendar-calendar.js.map +1 -1
- 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 +15 -14
- package/dist/components-ui-checkbox-checkbox.js.map +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 +31 -30
- package/dist/components-ui-combobox-combobox.js.map +1 -1
- package/dist/components-ui-dialog-dialog.cjs +1 -1
- package/dist/components-ui-dialog-dialog.cjs.map +1 -1
- package/dist/components-ui-dialog-dialog.js +26 -25
- package/dist/components-ui-dialog-dialog.js.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +2 -2
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.js +46 -45
- package/dist/components-ui-dropdown-menu-dropdown-menu.js.map +1 -1
- package/dist/components-ui-icon-icon-map.cjs +2 -0
- package/dist/components-ui-icon-icon-map.cjs.map +1 -0
- package/dist/components-ui-icon-icon-map.js +71 -0
- package/dist/components-ui-icon-icon-map.js.map +1 -0
- package/dist/components-ui-icon-icon.cjs +1 -1
- package/dist/components-ui-icon-icon.cjs.map +1 -1
- package/dist/components-ui-icon-icon.js +27 -54
- package/dist/components-ui-icon-icon.js.map +1 -1
- package/dist/components-ui-icon.cjs +1 -1
- package/dist/components-ui-icon.js +3 -1
- package/dist/components-ui-icon.js.map +1 -1
- package/dist/components-ui-pagination-pagination.cjs +2 -2
- package/dist/components-ui-pagination-pagination.cjs.map +1 -1
- package/dist/components-ui-pagination-pagination.js +48 -45
- package/dist/components-ui-pagination-pagination.js.map +1 -1
- 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 +4 -3
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js.map +1 -1
- package/dist/components-ui-select-select.cjs +1 -1
- package/dist/components-ui-select-select.cjs.map +1 -1
- package/dist/components-ui-select-select.js +42 -41
- package/dist/components-ui-select-select.js.map +1 -1
- package/dist/components-ui-sonner-sonner.cjs +1 -1
- package/dist/components-ui-sonner-sonner.cjs.map +1 -1
- package/dist/components-ui-sonner-sonner.js +38 -32
- package/dist/components-ui-sonner-sonner.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.js +228 -225
- package/dist/index.js.map +1 -1
- package/package.json +33 -16
- package/dist/calendar-B5QCV34E.cjs +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CaretLeft } from 'phosphor-strokes-icons/icons/CaretLeft';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CaretRight } from 'phosphor-strokes-icons/icons/CaretRight';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CaretUp } from 'phosphor-strokes-icons/icons/CaretUp';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CaretUpDown } from 'phosphor-strokes-icons/icons/CaretUpDown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChartLine } from 'phosphor-strokes-icons/icons/ChartLine';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Check } from 'phosphor-strokes-icons/icons/Check';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckCircle } from 'phosphor-strokes-icons/icons/CheckCircle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Clock } from 'phosphor-strokes-icons/icons/Clock';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreditCard } from 'phosphor-strokes-icons/icons/CreditCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DotsThree } from 'phosphor-strokes-icons/icons/DotsThree';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DownloadSimple } from 'phosphor-strokes-icons/icons/DownloadSimple';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EnvelopeSimple } from 'phosphor-strokes-icons/icons/EnvelopeSimple';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Eye } from 'phosphor-strokes-icons/icons/Eye';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EyeSlash } from 'phosphor-strokes-icons/icons/EyeSlash';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FileText } from 'phosphor-strokes-icons/icons/FileText';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Folder } from 'phosphor-strokes-icons/icons/Folder';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Funnel } from 'phosphor-strokes-icons/icons/Funnel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Gear } from 'phosphor-strokes-icons/icons/Gear';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Info } from 'phosphor-strokes-icons/icons/Info';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LockKey } from 'phosphor-strokes-icons/icons/LockKey';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MagnifyingGlass } from 'phosphor-strokes-icons/icons/MagnifyingGlass';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MaxLogo } from 'phosphor-strokes-icons/icons/MaxLogo';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Package } from 'phosphor-strokes-icons/icons/Package';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pencil } from 'phosphor-strokes-icons/icons/Pencil';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Phone } from 'phosphor-strokes-icons/icons/Phone';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Plus } from 'phosphor-strokes-icons/icons/Plus';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PresentationChart } from 'phosphor-strokes-icons/icons/PresentationChart';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SpinnerGap } from 'phosphor-strokes-icons/icons/SpinnerGap';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TelegramLogo } from 'phosphor-strokes-icons/icons/TelegramLogo';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Trash } from 'phosphor-strokes-icons/icons/Trash';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserCircleGear } from 'phosphor-strokes-icons/icons/UserCircleGear';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Users } from 'phosphor-strokes-icons/icons/Users';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UsersFour } from 'phosphor-strokes-icons/icons/UsersFour';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Warning } from 'phosphor-strokes-icons/icons/Warning';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WarningCircle } from 'phosphor-strokes-icons/icons/WarningCircle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WhatsAppLogoFilled } from 'phosphor-strokes-icons/icons/WhatsAppLogoFilled';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Wrench } from 'phosphor-strokes-icons/icons/Wrench';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { X } from 'phosphor-strokes-icons/icons/X';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { XCircle } from 'phosphor-strokes-icons/icons/XCircle';
|
|
@@ -0,0 +1,50 @@
|
|
|
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';
|
|
47
|
+
export { StrokeIcon } from './stroke-icon';
|
|
48
|
+
export type { StrokeIconComponent, StrokeIconComponentProps } from './stroke-icon';
|
|
49
|
+
export { iconPresets } from '../ui/icon/icon-presets';
|
|
50
|
+
export type { IconPreset } from '../ui/icon/icon-presets';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StrokeIconProps } from 'phosphor-strokes-icons';
|
|
2
|
+
import { ComponentType, DetailedHTMLProps, HTMLAttributes, SVGProps } from 'react';
|
|
3
|
+
import { IconPreset } from '../ui/icon/icon-presets';
|
|
4
|
+
export type StrokeIconComponent = ComponentType<StrokeIconProps>;
|
|
5
|
+
type StrokeIconComponentProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
6
|
+
icon: StrokeIconComponent;
|
|
7
|
+
size?: IconPreset | StrokeIconProps["size"];
|
|
8
|
+
strokeWidth?: StrokeIconProps["strokeWidth"];
|
|
9
|
+
color?: StrokeIconProps["color"];
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
absoluteStrokeWidth?: StrokeIconProps["absoluteStrokeWidth"];
|
|
12
|
+
classes?: {
|
|
13
|
+
wrapper?: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
};
|
|
16
|
+
svgProps?: Omit<SVGProps<SVGSVGElement>, "size" | "strokeWidth" | "color" | "className">;
|
|
17
|
+
};
|
|
18
|
+
export declare const StrokeIcon: ({ icon: IconComponent, size, strokeWidth, color, absoluteStrokeWidth, classes, className, svgProps, disabled, ...rest }: StrokeIconComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export type { StrokeIconComponentProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ComponentRef, ReactNode, Ref } from 'react';
|
|
2
2
|
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
3
|
-
import {
|
|
3
|
+
import { IconType } from '../icon';
|
|
4
4
|
type DropdownMenuRef = ComponentRef<typeof DropdownMenuPrimitive.Root>;
|
|
5
5
|
type DropdownMenuProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> & {
|
|
6
6
|
ref?: Ref<DropdownMenuRef>;
|
|
@@ -84,7 +84,7 @@ type DropdownMenuConfigItem = DropdownMenuConfigBase & {
|
|
|
84
84
|
type?: "item";
|
|
85
85
|
label: string;
|
|
86
86
|
icon?: ReactNode;
|
|
87
|
-
iconType?:
|
|
87
|
+
iconType?: IconType;
|
|
88
88
|
shortcut?: string;
|
|
89
89
|
alert?: boolean;
|
|
90
90
|
children?: DropdownMenuConfigNode[];
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { StrokeIcon } from 'phosphor-strokes-icons';
|
|
2
|
+
export declare const iconComponents: {
|
|
3
|
+
readonly "arrow-counter-clockwise": StrokeIcon;
|
|
4
|
+
readonly "arrow-down-left": StrokeIcon;
|
|
5
|
+
readonly "arrow-u-down-left": StrokeIcon;
|
|
6
|
+
readonly "bell-ringing": StrokeIcon;
|
|
7
|
+
readonly "bounding-box": StrokeIcon;
|
|
8
|
+
readonly briefcase: StrokeIcon;
|
|
9
|
+
readonly building: StrokeIcon;
|
|
10
|
+
readonly buildings: StrokeIcon;
|
|
11
|
+
readonly "calendar-dots": StrokeIcon;
|
|
12
|
+
readonly "caret-down": StrokeIcon;
|
|
13
|
+
readonly "caret-left": StrokeIcon;
|
|
14
|
+
readonly "caret-left-filled": StrokeIcon;
|
|
15
|
+
readonly "caret-right": StrokeIcon;
|
|
16
|
+
readonly "caret-right-filled": StrokeIcon;
|
|
17
|
+
readonly "caret-up": StrokeIcon;
|
|
18
|
+
readonly "caret-up-down": StrokeIcon;
|
|
19
|
+
readonly "chart-line": StrokeIcon;
|
|
20
|
+
readonly "chat-circle": StrokeIcon;
|
|
21
|
+
readonly check: StrokeIcon;
|
|
22
|
+
readonly "check-circle": StrokeIcon;
|
|
23
|
+
readonly clock: StrokeIcon;
|
|
24
|
+
readonly "columns-plus-right": StrokeIcon;
|
|
25
|
+
readonly copy: StrokeIcon;
|
|
26
|
+
readonly "credit-card": StrokeIcon;
|
|
27
|
+
readonly "dots-three": StrokeIcon;
|
|
28
|
+
readonly "download-simple": StrokeIcon;
|
|
29
|
+
readonly envelope: StrokeIcon;
|
|
30
|
+
readonly "envelope-simple": StrokeIcon;
|
|
31
|
+
readonly eye: StrokeIcon;
|
|
32
|
+
readonly "eye-slash": StrokeIcon;
|
|
33
|
+
readonly "file-text": StrokeIcon;
|
|
34
|
+
readonly folder: StrokeIcon;
|
|
35
|
+
readonly funnel: StrokeIcon;
|
|
36
|
+
readonly gear: StrokeIcon;
|
|
37
|
+
readonly hash: StrokeIcon;
|
|
38
|
+
readonly info: StrokeIcon;
|
|
39
|
+
readonly link: StrokeIcon;
|
|
40
|
+
readonly "list-bullets": StrokeIcon;
|
|
41
|
+
readonly "lock-key": StrokeIcon;
|
|
42
|
+
readonly "magnifying-glass": StrokeIcon;
|
|
43
|
+
readonly "max-logo": StrokeIcon;
|
|
44
|
+
readonly package: StrokeIcon;
|
|
45
|
+
readonly "paper-plane-tilt": StrokeIcon;
|
|
46
|
+
readonly pencil: StrokeIcon;
|
|
47
|
+
readonly "pencil-simple": StrokeIcon;
|
|
48
|
+
readonly phone: StrokeIcon;
|
|
49
|
+
readonly plus: StrokeIcon;
|
|
50
|
+
readonly "presentation-chart": StrokeIcon;
|
|
51
|
+
readonly question: StrokeIcon;
|
|
52
|
+
readonly "share-network": StrokeIcon;
|
|
53
|
+
readonly "spinner-gap": StrokeIcon;
|
|
54
|
+
readonly "squares-four": StrokeIcon;
|
|
55
|
+
readonly "telegram-logo": StrokeIcon;
|
|
56
|
+
readonly trash: StrokeIcon;
|
|
57
|
+
readonly "user-circle-gear": StrokeIcon;
|
|
58
|
+
readonly users: StrokeIcon;
|
|
59
|
+
readonly "users-four": StrokeIcon;
|
|
60
|
+
readonly warning: StrokeIcon;
|
|
61
|
+
readonly "warning-circle": StrokeIcon;
|
|
62
|
+
readonly "whats-app-logo-filled": StrokeIcon;
|
|
63
|
+
readonly wrench: StrokeIcon;
|
|
64
|
+
readonly x: StrokeIcon;
|
|
65
|
+
readonly "x-circle": StrokeIcon;
|
|
66
|
+
};
|
|
67
|
+
export type IconType = keyof typeof iconComponents;
|
|
68
|
+
export declare const supportedIconTypes: IconType[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { StrokeIconProps } from 'phosphor-strokes-icons';
|
|
2
|
-
import {
|
|
2
|
+
import { HTMLAttributes, SVGProps } from 'react';
|
|
3
3
|
import { IconPreset } from './icon-presets';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { IconType } from './icon-map';
|
|
5
|
+
type Props = HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
type: IconType;
|
|
6
7
|
size?: IconPreset | StrokeIconProps["size"];
|
|
7
8
|
strokeWidth?: StrokeIconProps["strokeWidth"];
|
|
8
9
|
color?: StrokeIconProps["color"];
|
|
@@ -12,8 +13,7 @@ type Props = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLD
|
|
|
12
13
|
wrapper?: string;
|
|
13
14
|
icon?: string;
|
|
14
15
|
};
|
|
15
|
-
svgProps?: Omit<
|
|
16
|
+
svgProps?: Omit<SVGProps<SVGSVGElement>, "size" | "strokeWidth" | "color" | "className">;
|
|
16
17
|
};
|
|
17
|
-
export declare const Icon: ({ type, size, strokeWidth, color, absoluteStrokeWidth, classes, className, svgProps, disabled, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export type IconType = DynamicIconName;
|
|
18
|
+
export declare const Icon: ({ type, size, strokeWidth, color, absoluteStrokeWidth, classes, className, svgProps, disabled, ...rest }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
19
19
|
export type { Props as IconProps };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { Icon } from './icon';
|
|
2
|
-
export type { IconProps
|
|
2
|
+
export type { IconProps } from './icon';
|
|
3
|
+
export { supportedIconTypes } from './icon-map';
|
|
4
|
+
export type { IconType } from './icon-map';
|
|
3
5
|
export { iconPresets } from './icon-presets';
|
|
4
6
|
export type { IconPreset } from './icon-presets';
|
|
@@ -7,7 +7,7 @@ export declare const toggleGroupItemKindVariants: (props?: ({
|
|
|
7
7
|
kind?: "status" | "default" | "custom" | null | undefined;
|
|
8
8
|
} & ClassProp) | undefined) => string;
|
|
9
9
|
export declare const toggleGroupItemStatusVariants: (props?: ({
|
|
10
|
-
statusVariant?: "
|
|
10
|
+
statusVariant?: "precise" | "precalc" | "lowData" | "empty" | null | undefined;
|
|
11
11
|
} & ClassProp) | undefined) => string;
|
|
12
12
|
export type ToggleGroupItemStatusVariantProps = VariantProps<typeof toggleGroupItemStatusVariants>;
|
|
13
13
|
export type ToggleGroupRootVariantProps = VariantProps<typeof toggleGroupRootVariants>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),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;
|
|
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 {
|
|
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":"+iBAgCMA,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,43 +1,45 @@
|
|
|
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 {
|
|
4
|
+
import { CaretLeft as $ } from "phosphor-strokes-icons/icons/CaretLeft";
|
|
5
|
+
import { CaretRight as u } from "phosphor-strokes-icons/icons/CaretRight";
|
|
6
|
+
import { StrokeIcon as e } from "./components-icons-stroke-icon.js";
|
|
5
7
|
import { Button as c } from "./components-ui-button-button.js";
|
|
6
8
|
import "./components-ui-button-button.styles.js";
|
|
7
|
-
import { Pagination as
|
|
8
|
-
import { appPaginationNavigationButtonVariants as h, appPaginationPageVariants as f, appPaginationContentVariants as
|
|
9
|
-
const
|
|
9
|
+
import { Pagination as B, PaginationContent as P, PaginationItem as s, PaginationLink as V } from "./components-ui-pagination-pagination.js";
|
|
10
|
+
import { appPaginationNavigationButtonVariants as h, appPaginationPageVariants as f, appPaginationContentVariants as _ } from "./components-app-pagination-app-pagination.styles.js";
|
|
11
|
+
const S = 5, T = 5, C = {
|
|
10
12
|
sm: "x-small",
|
|
11
13
|
default: "x-small",
|
|
12
14
|
lg: "small"
|
|
13
|
-
},
|
|
15
|
+
}, H = ({
|
|
14
16
|
currentPage: a,
|
|
15
|
-
totalPages:
|
|
16
|
-
maxVisiblePages:
|
|
17
|
-
className:
|
|
17
|
+
totalPages: l,
|
|
18
|
+
maxVisiblePages: b = S,
|
|
19
|
+
className: v,
|
|
18
20
|
showNavigation: d = !0,
|
|
19
21
|
prevLabel: N,
|
|
20
|
-
nextLabel:
|
|
22
|
+
nextLabel: k,
|
|
21
23
|
size: t = "default",
|
|
22
|
-
ellipsisStep:
|
|
23
|
-
onPageChange:
|
|
24
|
+
ellipsisStep: o = T,
|
|
25
|
+
onPageChange: x
|
|
24
26
|
}) => {
|
|
25
|
-
if (
|
|
26
|
-
const
|
|
27
|
-
i >= 1 && i <=
|
|
28
|
-
},
|
|
27
|
+
if (l <= 1) return null;
|
|
28
|
+
const E = p(b, a, l), r = (i) => {
|
|
29
|
+
i >= 1 && i <= l && x(i);
|
|
30
|
+
}, I = (i) => {
|
|
29
31
|
if (i === "ellipsis-start") {
|
|
30
|
-
const m = Math.max(1, a -
|
|
32
|
+
const m = Math.max(1, a - o);
|
|
31
33
|
r(m);
|
|
32
34
|
} else {
|
|
33
|
-
const m = Math.min(
|
|
35
|
+
const m = Math.min(l, a + o);
|
|
34
36
|
r(m);
|
|
35
37
|
}
|
|
36
38
|
};
|
|
37
|
-
return /* @__PURE__ */ n(
|
|
38
|
-
|
|
39
|
+
return /* @__PURE__ */ n(B, { className: "w-fit", children: /* @__PURE__ */ L(
|
|
40
|
+
P,
|
|
39
41
|
{
|
|
40
|
-
className: A(
|
|
42
|
+
className: A(_({ size: t }), v),
|
|
41
43
|
children: [
|
|
42
44
|
d && /* @__PURE__ */ n(s, { children: /* @__PURE__ */ n(
|
|
43
45
|
c,
|
|
@@ -53,24 +55,24 @@ const V = 5, _ = 5, b = {
|
|
|
53
55
|
children: N || /* @__PURE__ */ n(
|
|
54
56
|
e,
|
|
55
57
|
{
|
|
56
|
-
|
|
57
|
-
size:
|
|
58
|
+
icon: $,
|
|
59
|
+
size: C[t]
|
|
58
60
|
}
|
|
59
61
|
)
|
|
60
62
|
}
|
|
61
63
|
) }),
|
|
62
|
-
|
|
64
|
+
E.map((i) => i === "ellipsis-start" || i === "ellipsis-end" ? /* @__PURE__ */ n(s, { children: /* @__PURE__ */ n(
|
|
63
65
|
c,
|
|
64
66
|
{
|
|
65
67
|
variant: "ghost",
|
|
66
|
-
onClick: () =>
|
|
68
|
+
onClick: () => I(i),
|
|
67
69
|
className: f({ size: t }),
|
|
68
|
-
"aria-label": i === "ellipsis-start" ? `Перейти на ${
|
|
69
|
-
title: i === "ellipsis-start" ? `Нажать чтобы перейти на ${
|
|
70
|
+
"aria-label": i === "ellipsis-start" ? `Перейти на ${o} страниц назад` : `Перейти на ${o} страниц вперед`,
|
|
71
|
+
title: i === "ellipsis-start" ? `Нажать чтобы перейти на ${o} страниц назад` : `Нажать чтобы перейти на ${o} страниц вперед`,
|
|
70
72
|
children: "..."
|
|
71
73
|
}
|
|
72
74
|
) }, i) : /* @__PURE__ */ n(s, { children: /* @__PURE__ */ n(
|
|
73
|
-
|
|
75
|
+
V,
|
|
74
76
|
{
|
|
75
77
|
isActive: a === i,
|
|
76
78
|
onClick: () => r(i),
|
|
@@ -87,18 +89,18 @@ const V = 5, _ = 5, b = {
|
|
|
87
89
|
c,
|
|
88
90
|
{
|
|
89
91
|
variant: "ghost",
|
|
90
|
-
disabled: a ===
|
|
92
|
+
disabled: a === l,
|
|
91
93
|
onClick: () => r(a + 1),
|
|
92
94
|
className: h({
|
|
93
95
|
size: t,
|
|
94
96
|
side: "next"
|
|
95
97
|
}),
|
|
96
98
|
"aria-label": "Следующая страница",
|
|
97
|
-
children:
|
|
99
|
+
children: k || /* @__PURE__ */ n(
|
|
98
100
|
e,
|
|
99
101
|
{
|
|
100
|
-
|
|
101
|
-
size:
|
|
102
|
+
icon: u,
|
|
103
|
+
size: C[t]
|
|
102
104
|
}
|
|
103
105
|
)
|
|
104
106
|
}
|
|
@@ -108,6 +110,6 @@ const V = 5, _ = 5, b = {
|
|
|
108
110
|
) });
|
|
109
111
|
};
|
|
110
112
|
export {
|
|
111
|
-
|
|
113
|
+
H as AppPagination
|
|
112
114
|
};
|
|
113
115
|
//# sourceMappingURL=components-app-pagination-app-pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-app-pagination-app-pagination.js","sources":["../src/components/app-pagination/app-pagination.tsx"],"sourcesContent":["import { getPageNumbers } from \"@/utils/helpers\";\nimport { cn } from \"@/lib/utils\";\nimport {
|
|
1
|
+
{"version":3,"file":"components-app-pagination-app-pagination.js","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":";;;;;;;;;;AAgCA,MAAMA,IAAwB,GACxBC,IAAwB,GACxBC,IACJ;AAAA,EACE,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,IAAI;AACN,GAEWC,IAAgB,CAAC;AAAA,EAC5B,aAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC,IAAkBN;AAAA,EAClB,WAAAO;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,cAAAC,IAAeX;AAAA,EACf,cAAAY;AACF,MAAa;AACX,MAAIR,KAAc,EAAG,QAAO;AAE5B,QAAMS,IAAcC,EAAeT,GAAiBF,GAAaC,CAAU,GAErEW,IAAmB,CAACC,MAAiB;AACzC,IAAIA,KAAQ,KAAKA,KAAQZ,KACvBQ,EAAaI,CAAI;AAAA,EAErB,GAEMC,IAAsB,CAACC,MAA4C;AACvE,QAAIA,MAAS,kBAAkB;AAC7B,YAAMC,IAAU,KAAK,IAAI,GAAGhB,IAAcQ,CAAY;AACtD,MAAAI,EAAiBI,CAAO;AAAA,IAC1B,OAAO;AACL,YAAMA,IAAU,KAAK,IAAIf,GAAYD,IAAcQ,CAAY;AAC/D,MAAAI,EAAiBI,CAAO;AAAA,IAC1B;AAAA,EACF;AAEA,SACE,gBAAAC,EAACC,GAAA,EAAW,WAAU,SACpB,UAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAA6B,EAAE,MAAAf,EAAA,CAAM,GAAGJ,CAAS;AAAA,MAE9D,UAAA;AAAA,QAAAC,uBACEmB,GAAA,EACC,UAAA,gBAAAN;AAAA,UAACO;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,UAAUxB,MAAgB;AAAA,YAC1B,SAAS,MAAMY,EAAiBZ,IAAc,CAAC;AAAA,YAC/C,WAAWyB,EAAsC;AAAA,cAC/C,MAAAlB;AAAA,cACA,MAAM;AAAA,YAAA,CACP;AAAA,YACD,cAAW;AAAA,YAEV,UAAAF,KACC,gBAAAY;AAAA,cAACS;AAAA,cAAA;AAAA,gBACC,MAAMC;AAAA,gBACN,MAAM7B,EAAmCS,CAAI;AAAA,cAAA;AAAA,YAAA;AAAA,UAC/C;AAAA,QAAA,GAGN;AAAA,QAGDG,EAAY,IAAI,CAACG,MACZA,MAAS,oBAAoBA,MAAS,mCAErCU,GAAA,EACC,UAAA,gBAAAN;AAAA,UAACO;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,SAAS,MAAMV,EAAoBD,CAAI;AAAA,YACvC,WAAWe,EAA0B,EAAE,MAAArB,GAAM;AAAA,YAC7C,cACEM,MAAS,mBACL,cAAcL,CAAY,mBAC1B,cAAcA,CAAY;AAAA,YAEhC,OACEK,MAAS,mBACL,2BAA2BL,CAAY,mBACvC,2BAA2BA,CAAY;AAAA,YAE9C,UAAA;AAAA,UAAA;AAAA,QAAA,KAfkBK,CAkBrB,sBAKDU,GAAA,EACC,UAAA,gBAAAN;AAAA,UAACY;AAAA,UAAA;AAAA,YACC,UAAU7B,MAAgBa;AAAA,YAC1B,SAAS,MAAMD,EAAiBC,CAAI;AAAA,YACpC,WAAWe,EAA0B;AAAA,cACnC,MAAArB;AAAA,cACA,QAAQP,MAAgBa;AAAA,YAAA,CACzB;AAAA,YACD,cAAY,YAAYA,CAAI;AAAA,YAC5B,gBAAcb,MAAgBa,IAAO,SAAS;AAAA,YAE7C,UAAAA;AAAA,UAAA;AAAA,QAAA,KAXgBA,CAarB,CAEH;AAAA,QAEAT,uBACEmB,GAAA,EACC,UAAA,gBAAAN;AAAA,UAACO;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,UAAUxB,MAAgBC;AAAA,YAC1B,SAAS,MAAMW,EAAiBZ,IAAc,CAAC;AAAA,YAC/C,WAAWyB,EAAsC;AAAA,cAC/C,MAAAlB;AAAA,cACA,MAAM;AAAA,YAAA,CACP;AAAA,YACD,cAAW;AAAA,YAEV,UAAAD,KACC,gBAAAW;AAAA,cAACS;AAAA,cAAA;AAAA,gBACC,MAAMI;AAAA,gBACN,MAAMhC,EAAmCS,CAAI;AAAA,cAAA;AAAA,YAAA;AAAA,UAC/C;AAAA,QAAA,EAEJ,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAGN;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),
|
|
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;
|
|
2
2
|
//# sourceMappingURL=components-app-sidebar-app-sidebar.cjs.map
|