brd-ui-kit 0.1.54 → 0.1.57
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/.githooks/pre-commit +19 -0
- package/.prettierignore +13 -0
- package/components.json +25 -0
- package/dist/brd-ui-kit.css +1 -1
- package/dist/components/app-pagination.d.ts +2 -0
- package/dist/components/app-sidebar.d.ts +2 -0
- package/dist/components/avatar-uploader.d.ts +2 -0
- package/dist/components/basic-avatar.d.ts +2 -0
- package/dist/components/basic-chart.d.ts +2 -0
- package/dist/components/basic-checkbox.d.ts +2 -0
- package/dist/components/basic-drawer.d.ts +2 -0
- package/dist/components/basic-modal.d.ts +2 -0
- package/dist/components/basic-select.d.ts +2 -0
- package/dist/components/basic-table.d.ts +2 -0
- package/dist/components/basic-tooltip.d.ts +2 -0
- package/dist/components/files-uploader/files-uploader.d.ts +6 -3
- package/dist/components/files-uploader.d.ts +2 -0
- package/dist/components/input-field.d.ts +2 -0
- package/dist/components/input-password.d.ts +2 -0
- package/dist/components/popover-modal.d.ts +2 -0
- package/dist/components/radio-button.d.ts +2 -0
- package/dist/components/select-field.d.ts +2 -0
- package/dist/components/select-groups.d.ts +2 -0
- package/dist/components/textarea-field.d.ts +2 -0
- package/dist/components/ui/avatar.d.ts +2 -0
- package/dist/components/ui/badge.d.ts +2 -0
- package/dist/components/ui/button.d.ts +2 -0
- package/dist/components/ui/card.d.ts +2 -0
- package/dist/components/ui/chart.d.ts +2 -0
- package/dist/components/ui/checkbox.d.ts +2 -0
- package/dist/components/ui/combobox.d.ts +2 -0
- package/dist/components/ui/dialog.d.ts +2 -0
- package/dist/components/ui/drawer.d.ts +2 -0
- package/dist/components/ui/field.d.ts +2 -0
- package/dist/components/ui/icon.d.ts +2 -0
- package/dist/components/ui/input-group.d.ts +2 -0
- package/dist/components/ui/input.d.ts +2 -0
- package/dist/components/ui/label.d.ts +2 -0
- package/dist/components/ui/navigation-item.d.ts +2 -0
- package/dist/components/ui/navigation-menu.d.ts +2 -0
- package/dist/components/ui/pagination.d.ts +2 -0
- package/dist/components/ui/popover.d.ts +2 -0
- package/dist/components/ui/progress.d.ts +2 -0
- package/dist/components/ui/radio-group.d.ts +2 -0
- package/dist/components/ui/select.d.ts +2 -0
- package/dist/components/ui/separator.d.ts +2 -0
- package/dist/components/ui/sonner.d.ts +2 -0
- package/dist/components/ui/switch.d.ts +2 -0
- package/dist/components/ui/table.d.ts +2 -0
- package/dist/components/ui/tabs.d.ts +2 -0
- package/dist/components/ui/textarea.d.ts +2 -0
- package/dist/components/ui/tooltip.d.ts +2 -0
- package/dist/components/ui/typography.d.ts +2 -0
- package/dist/components-app-pagination-app-pagination.cjs +2 -0
- package/dist/components-app-pagination-app-pagination.cjs.map +1 -0
- package/dist/components-app-pagination-app-pagination.styles.cjs +3 -0
- package/dist/components-app-pagination-app-pagination.styles.cjs.map +1 -0
- package/dist/components-app-pagination.cjs +2 -0
- package/dist/components-app-pagination.cjs.map +1 -0
- package/dist/components-app-sidebar-app-sidebar.cjs +2 -0
- package/dist/components-app-sidebar-app-sidebar.cjs.map +1 -0
- package/dist/components-app-sidebar-app-sidebar.styles.cjs +2 -0
- package/dist/components-app-sidebar-app-sidebar.styles.cjs.map +1 -0
- package/dist/components-app-sidebar.cjs +2 -0
- package/dist/components-app-sidebar.cjs.map +1 -0
- package/dist/components-avatar-uploader-avatar-uploader.cjs +3 -0
- package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -0
- package/dist/components-avatar-uploader.cjs +2 -0
- package/dist/components-avatar-uploader.cjs.map +1 -0
- package/dist/components-basic-avatar-basic-avatar.cjs +4 -0
- package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -0
- package/dist/components-basic-avatar.cjs +2 -0
- package/dist/components-basic-avatar.cjs.map +1 -0
- package/dist/components-basic-chart-basic-chart.cjs +2 -0
- package/dist/components-basic-chart-basic-chart.cjs.map +1 -0
- package/dist/components-basic-chart.cjs +2 -0
- package/dist/components-basic-chart.cjs.map +1 -0
- package/dist/components-basic-checkbox-basic-checkbox.cjs +2 -0
- package/dist/components-basic-checkbox-basic-checkbox.cjs.map +1 -0
- package/dist/components-basic-checkbox.cjs +2 -0
- package/dist/components-basic-checkbox.cjs.map +1 -0
- package/dist/components-basic-drawer-basic-drawer.cjs +2 -0
- package/dist/components-basic-drawer-basic-drawer.cjs.map +1 -0
- package/dist/components-basic-drawer.cjs +2 -0
- package/dist/components-basic-drawer.cjs.map +1 -0
- package/dist/components-basic-modal-basic-modal.cjs +2 -0
- package/dist/components-basic-modal-basic-modal.cjs.map +1 -0
- package/dist/components-basic-modal.cjs +2 -0
- package/dist/components-basic-modal.cjs.map +1 -0
- package/dist/components-basic-select-basic-select.cjs +2 -0
- package/dist/components-basic-select-basic-select.cjs.map +1 -0
- package/dist/components-basic-select.cjs +2 -0
- package/dist/components-basic-select.cjs.map +1 -0
- package/dist/components-basic-table-basic-table.cjs +5 -0
- package/dist/components-basic-table-basic-table.cjs.map +1 -0
- package/dist/components-basic-table.cjs +2 -0
- package/dist/components-basic-table.cjs.map +1 -0
- package/dist/components-basic-tooltip-basic-tooltip.cjs +2 -0
- package/dist/components-basic-tooltip-basic-tooltip.cjs.map +1 -0
- package/dist/components-basic-tooltip.cjs +2 -0
- package/dist/components-basic-tooltip.cjs.map +1 -0
- package/dist/components-files-uploader-files-uploader.cjs +8 -0
- package/dist/components-files-uploader-files-uploader.cjs.map +1 -0
- package/dist/components-files-uploader.cjs +2 -0
- package/dist/components-files-uploader.cjs.map +1 -0
- package/dist/components-input-field-input-field.cjs +2 -0
- package/dist/components-input-field-input-field.cjs.map +1 -0
- package/dist/components-input-field.cjs +2 -0
- package/dist/components-input-field.cjs.map +1 -0
- package/dist/components-input-password-input-password.cjs +2 -0
- package/dist/components-input-password-input-password.cjs.map +1 -0
- package/dist/components-input-password.cjs +2 -0
- package/dist/components-input-password.cjs.map +1 -0
- package/dist/components-popover-modal-popover-modal.cjs +2 -0
- package/dist/components-popover-modal-popover-modal.cjs.map +1 -0
- package/dist/components-popover-modal.cjs +2 -0
- package/dist/components-popover-modal.cjs.map +1 -0
- package/dist/components-radio-button-radio-button.cjs +2 -0
- package/dist/components-radio-button-radio-button.cjs.map +1 -0
- package/dist/components-radio-button.cjs +2 -0
- package/dist/components-radio-button.cjs.map +1 -0
- package/dist/components-select-field-select-field.cjs +3 -0
- package/dist/components-select-field-select-field.cjs.map +1 -0
- package/dist/components-select-field.cjs +2 -0
- package/dist/components-select-field.cjs.map +1 -0
- package/dist/components-select-groups-select-groups.cjs +2 -0
- package/dist/components-select-groups-select-groups.cjs.map +1 -0
- package/dist/components-select-groups.cjs +2 -0
- package/dist/components-select-groups.cjs.map +1 -0
- package/dist/components-textarea-field-textarea-field.cjs +2 -0
- package/dist/components-textarea-field-textarea-field.cjs.map +1 -0
- package/dist/components-textarea-field.cjs +2 -0
- package/dist/components-textarea-field.cjs.map +1 -0
- package/dist/components-ui-avatar-avatar.cjs +15 -0
- package/dist/components-ui-avatar-avatar.cjs.map +1 -0
- package/dist/components-ui-avatar.cjs +2 -0
- package/dist/components-ui-avatar.cjs.map +1 -0
- package/dist/components-ui-badge-badge.cjs +2 -0
- package/dist/components-ui-badge-badge.cjs.map +1 -0
- package/dist/components-ui-badge-badge.styles.cjs +3 -0
- package/dist/components-ui-badge-badge.styles.cjs.map +1 -0
- package/dist/components-ui-badge.cjs +2 -0
- package/dist/components-ui-badge.cjs.map +1 -0
- package/dist/components-ui-button-button.cjs +2 -0
- package/dist/components-ui-button-button.cjs.map +1 -0
- package/dist/components-ui-button-button.styles.cjs +9 -0
- package/dist/components-ui-button-button.styles.cjs.map +1 -0
- package/dist/components-ui-button.cjs +2 -0
- package/dist/components-ui-button.cjs.map +1 -0
- package/dist/components-ui-card-card.cjs +2 -0
- package/dist/components-ui-card-card.cjs.map +1 -0
- package/dist/components-ui-card-card.styles.cjs +8 -0
- package/dist/components-ui-card-card.styles.cjs.map +1 -0
- package/dist/components-ui-card.cjs +2 -0
- package/dist/components-ui-card.cjs.map +1 -0
- package/dist/components-ui-chart-chart.cjs +22 -0
- package/dist/components-ui-chart-chart.cjs.map +1 -0
- package/dist/components-ui-chart.cjs +2 -0
- package/dist/components-ui-chart.cjs.map +1 -0
- package/dist/components-ui-checkbox-checkbox.cjs +2 -0
- package/dist/components-ui-checkbox-checkbox.cjs.map +1 -0
- package/dist/components-ui-checkbox-checkbox.styles.cjs +2 -0
- package/dist/components-ui-checkbox-checkbox.styles.cjs.map +1 -0
- package/dist/components-ui-checkbox.cjs +2 -0
- package/dist/components-ui-checkbox.cjs.map +1 -0
- package/dist/components-ui-combobox-combobox.cjs +16 -0
- package/dist/components-ui-combobox-combobox.cjs.map +1 -0
- package/dist/components-ui-combobox-combobox.styles.cjs +36 -0
- package/dist/components-ui-combobox-combobox.styles.cjs.map +1 -0
- package/dist/components-ui-combobox.cjs +2 -0
- package/dist/components-ui-combobox.cjs.map +1 -0
- package/dist/components-ui-dialog-dialog.cjs +2 -0
- package/dist/components-ui-dialog-dialog.cjs.map +1 -0
- package/dist/components-ui-dialog-dialog.styles.cjs +2 -0
- package/dist/components-ui-dialog-dialog.styles.cjs.map +1 -0
- package/dist/components-ui-dialog.cjs +2 -0
- package/dist/components-ui-dialog.cjs.map +1 -0
- package/dist/components-ui-drawer-drawer.cjs +30 -0
- package/dist/components-ui-drawer-drawer.cjs.map +1 -0
- package/dist/components-ui-drawer.cjs +2 -0
- package/dist/components-ui-drawer.cjs.map +1 -0
- package/dist/components-ui-field-field.cjs +2 -0
- package/dist/components-ui-field-field.cjs.map +1 -0
- package/dist/components-ui-field-field.styles.cjs +9 -0
- package/dist/components-ui-field-field.styles.cjs.map +1 -0
- package/dist/components-ui-field.cjs +2 -0
- package/dist/components-ui-field.cjs.map +1 -0
- package/dist/components-ui-icon-icon-dictionary.cjs +2 -0
- package/dist/components-ui-icon-icon-dictionary.cjs.map +1 -0
- package/dist/components-ui-icon-icon.cjs +2 -0
- package/dist/components-ui-icon-icon.cjs.map +1 -0
- package/dist/components-ui-icon-overrides.cjs +2 -0
- package/dist/components-ui-icon-overrides.cjs.map +1 -0
- package/dist/components-ui-icon.cjs +2 -0
- package/dist/components-ui-icon.cjs.map +1 -0
- package/dist/components-ui-input-group-input-group.cjs +14 -0
- package/dist/components-ui-input-group-input-group.cjs.map +1 -0
- package/dist/components-ui-input-group-input-group.styles.cjs +8 -0
- package/dist/components-ui-input-group-input-group.styles.cjs.map +1 -0
- package/dist/components-ui-input-group.cjs +2 -0
- package/dist/components-ui-input-group.cjs.map +1 -0
- package/dist/components-ui-input-input.cjs +2 -0
- package/dist/components-ui-input-input.cjs.map +1 -0
- package/dist/components-ui-input-input.styles.cjs +8 -0
- package/dist/components-ui-input-input.styles.cjs.map +1 -0
- package/dist/components-ui-input.cjs +2 -0
- package/dist/components-ui-input.cjs.map +1 -0
- package/dist/components-ui-label-label.cjs +2 -0
- package/dist/components-ui-label-label.cjs.map +1 -0
- package/dist/components-ui-label.cjs +2 -0
- package/dist/components-ui-label.cjs.map +1 -0
- package/dist/components-ui-navigation-item-navigation-item.cjs +2 -0
- package/dist/components-ui-navigation-item-navigation-item.cjs.map +1 -0
- package/dist/components-ui-navigation-item-navigation-item.styles.cjs +3 -0
- package/dist/components-ui-navigation-item-navigation-item.styles.cjs.map +1 -0
- package/dist/components-ui-navigation-item.cjs +2 -0
- package/dist/components-ui-navigation-item.cjs.map +1 -0
- package/dist/components-ui-navigation-menu-navigation-menu.cjs +2 -0
- package/dist/components-ui-navigation-menu-navigation-menu.cjs.map +1 -0
- package/dist/components-ui-navigation-menu-navigation-menu.styles.cjs +2 -0
- package/dist/components-ui-navigation-menu-navigation-menu.styles.cjs.map +1 -0
- package/dist/components-ui-navigation-menu.cjs +2 -0
- package/dist/components-ui-navigation-menu.cjs.map +1 -0
- package/dist/components-ui-pagination-pagination.cjs +2 -0
- package/dist/components-ui-pagination-pagination.cjs.map +1 -0
- package/dist/components-ui-pagination.cjs +2 -0
- package/dist/components-ui-pagination.cjs.map +1 -0
- package/dist/components-ui-popover-popover.cjs +2 -0
- package/dist/components-ui-popover-popover.cjs.map +1 -0
- package/dist/components-ui-popover-popover.styles.cjs +7 -0
- package/dist/components-ui-popover-popover.styles.cjs.map +1 -0
- package/dist/components-ui-popover.cjs +2 -0
- package/dist/components-ui-popover.cjs.map +1 -0
- package/dist/components-ui-progress-progress.cjs +2 -0
- package/dist/components-ui-progress-progress.cjs.map +1 -0
- package/dist/components-ui-progress.cjs +2 -0
- package/dist/components-ui-progress.cjs.map +1 -0
- package/dist/components-ui-radio-group-radio-group.cjs +2 -0
- package/dist/components-ui-radio-group-radio-group.cjs.map +1 -0
- package/dist/components-ui-radio-group-radio-group.styles.cjs +2 -0
- package/dist/components-ui-radio-group-radio-group.styles.cjs.map +1 -0
- package/dist/components-ui-radio-group.cjs +2 -0
- package/dist/components-ui-radio-group.cjs.map +1 -0
- package/dist/components-ui-select-select.cjs +2 -0
- package/dist/components-ui-select-select.cjs.map +1 -0
- package/dist/components-ui-select-select.styles.cjs +31 -0
- package/dist/components-ui-select-select.styles.cjs.map +1 -0
- package/dist/components-ui-select.cjs +2 -0
- package/dist/components-ui-select.cjs.map +1 -0
- package/dist/components-ui-separator-separator.cjs +2 -0
- package/dist/components-ui-separator-separator.cjs.map +1 -0
- package/dist/components-ui-separator.cjs +2 -0
- package/dist/components-ui-separator.cjs.map +1 -0
- package/dist/components-ui-sonner-sonner.cjs +2 -0
- package/dist/components-ui-sonner-sonner.cjs.map +1 -0
- package/dist/components-ui-sonner-sonner.styles.cjs +36 -0
- package/dist/components-ui-sonner-sonner.styles.cjs.map +1 -0
- package/dist/components-ui-sonner.cjs +2 -0
- package/dist/components-ui-sonner.cjs.map +1 -0
- package/dist/components-ui-switch-switch.cjs +2 -0
- package/dist/components-ui-switch-switch.cjs.map +1 -0
- package/dist/components-ui-switch-switch.styles.cjs +2 -0
- package/dist/components-ui-switch-switch.styles.cjs.map +1 -0
- package/dist/components-ui-switch.cjs +2 -0
- package/dist/components-ui-switch.cjs.map +1 -0
- package/dist/components-ui-table-table.cjs +5 -0
- package/dist/components-ui-table-table.cjs.map +1 -0
- package/dist/components-ui-table.cjs +2 -0
- package/dist/components-ui-table.cjs.map +1 -0
- package/dist/components-ui-tabs-tabs.cjs +3 -0
- package/dist/components-ui-tabs-tabs.cjs.map +1 -0
- package/dist/components-ui-tabs-tabs.styles.cjs +2 -0
- package/dist/components-ui-tabs-tabs.styles.cjs.map +1 -0
- package/dist/components-ui-tabs.cjs +2 -0
- package/dist/components-ui-tabs.cjs.map +1 -0
- package/dist/components-ui-textarea-textarea.cjs +2 -0
- package/dist/components-ui-textarea-textarea.cjs.map +1 -0
- package/dist/components-ui-textarea-textarea.styles.cjs +5 -0
- package/dist/components-ui-textarea-textarea.styles.cjs.map +1 -0
- package/dist/components-ui-textarea.cjs +2 -0
- package/dist/components-ui-textarea.cjs.map +1 -0
- package/dist/components-ui-tooltip-tooltip.cjs +2 -0
- package/dist/components-ui-tooltip-tooltip.cjs.map +1 -0
- package/dist/components-ui-tooltip-tooltip.styles.cjs +8 -0
- package/dist/components-ui-tooltip-tooltip.styles.cjs.map +1 -0
- package/dist/components-ui-tooltip.cjs +2 -0
- package/dist/components-ui-tooltip.cjs.map +1 -0
- package/dist/components-ui-typography-typography.cjs +2 -0
- package/dist/components-ui-typography-typography.cjs.map +1 -0
- package/dist/components-ui-typography-typography.styles.cjs +2 -0
- package/dist/components-ui-typography-typography.styles.cjs.map +1 -0
- package/dist/components-ui-typography.cjs +2 -0
- package/dist/components-ui-typography.cjs.map +1 -0
- package/dist/hooks-usePopupControls.cjs +2 -0
- package/dist/hooks-usePopupControls.cjs.map +1 -0
- package/dist/index.cjs +1 -370
- package/dist/index.cjs.map +1 -1
- package/dist/lib-utils.cjs +2 -0
- package/dist/lib-utils.cjs.map +1 -0
- package/dist/types-types.cjs +2 -0
- package/dist/types-types.cjs.map +1 -0
- package/dist/utils-helpers.cjs +2 -0
- package/dist/utils-helpers.cjs.map +1 -0
- package/package.json +639 -12
- package/prettier.config.mjs +28 -0
- package/public/vite.svg +1 -0
- package/scripts/generate-exports.js +76 -0
- package/scripts/get-entry-points.ts +102 -0
- package/tsconfig.app.json +40 -0
- package/tsconfig.node.json +26 -0
- package/tsconfig.storybook.json +7 -0
- package/dist/components/app-pagination/app-pagination.stories.d.ts +0 -52
- package/dist/components/app-sidebar/app-sidebar.stories.d.ts +0 -52
- package/dist/components/avatar-uploader/avatar-uploader.stories.d.ts +0 -7
- package/dist/components/basic-avatar/basic-avatar.stories.d.ts +0 -15
- package/dist/components/basic-chart/basic-chart.stories.d.ts +0 -23
- package/dist/components/basic-checkbox/basic-checkbox.stories.d.ts +0 -37
- package/dist/components/basic-drawer/basic-drawer.stories.d.ts +0 -7
- package/dist/components/basic-modal/basic-modal.stories.d.ts +0 -57
- package/dist/components/basic-select/basic-select.stories.d.ts +0 -10
- package/dist/components/basic-table/basic-table.stories.d.ts +0 -9
- package/dist/components/files-uploader/files-uploader.stories.d.ts +0 -70
- package/dist/components/input-field/input-field.stories.d.ts +0 -48
- package/dist/components/input-password/input-password.stories.d.ts +0 -57
- package/dist/components/popover-modal/popover-modal.stories.d.ts +0 -32
- package/dist/components/radio-button/radio-button.stories.d.ts +0 -28
- package/dist/components/select-field/select-field.stories.d.ts +0 -39
- package/dist/components/select-groups/select-groups.stories.d.ts +0 -50
- package/dist/components/textarea-field/textarea-field.stories.d.ts +0 -43
- package/dist/components/ui/badge/badge.stories.d.ts +0 -29
- package/dist/components/ui/button/button.stories.d.ts +0 -30
- package/dist/components/ui/card/card.stories.d.ts +0 -38
- package/dist/components/ui/checkbox/checkbox.stories.d.ts +0 -29
- package/dist/components/ui/combobox/combobox.stories.d.ts +0 -10
- package/dist/components/ui/dialog/dialog.stories.d.ts +0 -46
- package/dist/components/ui/field/field.stories.d.ts +0 -45
- package/dist/components/ui/icon/icon.stories.d.ts +0 -28
- package/dist/components/ui/input/input.stories.d.ts +0 -40
- package/dist/components/ui/input-group/input-group.stories.d.ts +0 -46
- package/dist/components/ui/label/label.stories.d.ts +0 -26
- package/dist/components/ui/navigation-item/navigation-item.stories.d.ts +0 -57
- package/dist/components/ui/navigation-menu/navigation-menu.stories.d.ts +0 -34
- package/dist/components/ui/pagination/pagination.stories.d.ts +0 -37
- package/dist/components/ui/popover/popover.stories.d.ts +0 -9
- package/dist/components/ui/progress/progress.stories.d.ts +0 -34
- package/dist/components/ui/radio-group/radio-group.stories.d.ts +0 -27
- package/dist/components/ui/select/select.stories.d.ts +0 -38
- package/dist/components/ui/separator/separator.stories.d.ts +0 -27
- package/dist/components/ui/sonner/sonner.stories.d.ts +0 -9
- package/dist/components/ui/switch/switch.stories.d.ts +0 -23
- package/dist/components/ui/table/table.stories.d.ts +0 -68
- package/dist/components/ui/tabs/tabs.stories.d.ts +0 -32
- package/dist/components/ui/textarea/textarea.stories.d.ts +0 -30
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +0 -42
- package/dist/components/ui/typography/typography.stories.d.ts +0 -304
- package/dist/index.js +0 -47251
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** @type {import('prettier').Config} */
|
|
2
|
+
const config = {
|
|
3
|
+
printWidth: 90,
|
|
4
|
+
tabWidth: 2,
|
|
5
|
+
useTabs: false,
|
|
6
|
+
semi: true,
|
|
7
|
+
singleQuote: false,
|
|
8
|
+
jsxSingleQuote: false,
|
|
9
|
+
trailingComma: "all",
|
|
10
|
+
quoteProps: "as-needed",
|
|
11
|
+
bracketSpacing: true,
|
|
12
|
+
objectWrap: "preserve",
|
|
13
|
+
bracketSameLine: false,
|
|
14
|
+
arrowParens: "always",
|
|
15
|
+
singleAttributePerLine: true,
|
|
16
|
+
endOfLine: "lf",
|
|
17
|
+
proseWrap: "preserve",
|
|
18
|
+
plugins: [
|
|
19
|
+
"prettier-plugin-tailwindcss",
|
|
20
|
+
"prettier-plugin-classnames",
|
|
21
|
+
"prettier-plugin-merge",
|
|
22
|
+
],
|
|
23
|
+
customFunctions: ["clsx", "cva", "cn", "tw"],
|
|
24
|
+
endingPosition: "absolute",
|
|
25
|
+
tailwindFunctions: ["clsx", "cva", "cn", "tw"],
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default config;
|
package/public/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// scripts/generate-package-exports.js
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import { dirname, resolve } from "path";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
5
|
+
|
|
6
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const distDir = resolve(__dirname, "../dist");
|
|
8
|
+
|
|
9
|
+
function generateExports() {
|
|
10
|
+
const exportsMap = {
|
|
11
|
+
".": {
|
|
12
|
+
types: "./dist/index.d.ts",
|
|
13
|
+
import: "./dist/index.js",
|
|
14
|
+
require: "./dist/index.cjs",
|
|
15
|
+
default: "./dist/index.js",
|
|
16
|
+
},
|
|
17
|
+
"./styles.css": {
|
|
18
|
+
import: "./dist/brd-ui-kit.css",
|
|
19
|
+
require: "./dist/brd-ui-kit.css",
|
|
20
|
+
},
|
|
21
|
+
"./style.css": {
|
|
22
|
+
import: "./dist/brd-ui-kit.css",
|
|
23
|
+
require: "./dist/brd-ui-kit.css",
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// Получаем все JS файлы из dist (не из папок chunks)
|
|
28
|
+
const files = fs.readdirSync(distDir);
|
|
29
|
+
|
|
30
|
+
for (const file of files) {
|
|
31
|
+
if (file.endsWith(".js") || file.endsWith(".cjs")) {
|
|
32
|
+
const baseName = file.replace(/\.(js|cjs)$/, "");
|
|
33
|
+
if (baseName === "index") continue;
|
|
34
|
+
|
|
35
|
+
// Восстанавливаем оригинальный путь из имени файла
|
|
36
|
+
const originalPath = baseName.replace(/-/g, "/");
|
|
37
|
+
|
|
38
|
+
const exportPath = `./${originalPath}`;
|
|
39
|
+
const typesPath = resolve(distDir, `${baseName}.d.ts`);
|
|
40
|
+
const hasTypes = fs.existsSync(typesPath);
|
|
41
|
+
|
|
42
|
+
exportsMap[exportPath] = {
|
|
43
|
+
types: hasTypes ? `./dist/${baseName}.d.ts` : undefined,
|
|
44
|
+
import: `./dist/${baseName}.js`,
|
|
45
|
+
require: `./dist/${baseName}.cjs`,
|
|
46
|
+
default: `./dist/${baseName}.js`,
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
if (!hasTypes) delete exportsMap[exportPath].types;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Удаляем временные артефакты
|
|
54
|
+
delete exportsMap["./_virtual"];
|
|
55
|
+
delete exportsMap["./node_modules"];
|
|
56
|
+
|
|
57
|
+
return exportsMap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Обновляем package.json
|
|
61
|
+
const pkgPath = resolve(__dirname, "../package.json");
|
|
62
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
|
|
63
|
+
|
|
64
|
+
pkg.exports = generateExports();
|
|
65
|
+
pkg.sideEffects = ["**/*.css", "./dist/brd-ui-kit.css"];
|
|
66
|
+
pkg.module = "./dist/index.js";
|
|
67
|
+
pkg.main = "./dist/index.cjs";
|
|
68
|
+
pkg.types = "./dist/index.d.ts";
|
|
69
|
+
|
|
70
|
+
// Удаляем нежелательные поля
|
|
71
|
+
delete pkg.files; // Убедимся что files не ограничивает
|
|
72
|
+
|
|
73
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2), "utf-8");
|
|
74
|
+
|
|
75
|
+
console.log("✅ Package.json exports updated");
|
|
76
|
+
console.log("📦 Exported entries:", Object.keys(pkg.exports).length);
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import { dirname, resolve } from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
|
|
5
|
+
// Для ES модулей нужно получить __dirname аналог
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = dirname(__filename);
|
|
8
|
+
|
|
9
|
+
export const getEntryPoints = () => {
|
|
10
|
+
// Явно указываем корневую директорию проекта
|
|
11
|
+
const rootDir = resolve(__dirname, ".."); // Поднимаемся на уровень выше из scripts/
|
|
12
|
+
const srcDir = resolve(rootDir, "src");
|
|
13
|
+
|
|
14
|
+
const entryPoints = {
|
|
15
|
+
index: resolve(srcDir, "index.ts"),
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Проверяем, существует ли index.ts, если нет - ищем index.tsx
|
|
19
|
+
if (!fs.existsSync(entryPoints.index)) {
|
|
20
|
+
const indexTsx = resolve(srcDir, "index.tsx");
|
|
21
|
+
if (fs.existsSync(indexTsx)) {
|
|
22
|
+
entryPoints.index = indexTsx;
|
|
23
|
+
} else {
|
|
24
|
+
console.warn(`⚠️ Main entry file not found at: ${entryPoints.index}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const folders = ["components/ui", "components", "hooks", "lib", "utils", "types"];
|
|
29
|
+
|
|
30
|
+
const shouldExclude = (filePath) => {
|
|
31
|
+
const excludePatterns = [
|
|
32
|
+
/\.stories\./,
|
|
33
|
+
/\.test\./,
|
|
34
|
+
/\.spec\./,
|
|
35
|
+
/__tests__/,
|
|
36
|
+
/__stories__/,
|
|
37
|
+
/\.storybook/,
|
|
38
|
+
];
|
|
39
|
+
return excludePatterns.some((pattern) => pattern.test(filePath));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
for (const folder of folders) {
|
|
43
|
+
const dir = resolve(srcDir, folder);
|
|
44
|
+
if (!fs.existsSync(dir)) continue;
|
|
45
|
+
|
|
46
|
+
const scanDir = (currentDir, basePath = "") => {
|
|
47
|
+
const items = fs.readdirSync(currentDir);
|
|
48
|
+
|
|
49
|
+
for (const item of items) {
|
|
50
|
+
const fullPath = resolve(currentDir, item);
|
|
51
|
+
const stat = fs.statSync(fullPath);
|
|
52
|
+
|
|
53
|
+
if (shouldExclude(fullPath)) continue;
|
|
54
|
+
|
|
55
|
+
if (stat.isDirectory()) {
|
|
56
|
+
const indexPath = resolve(fullPath, "index.ts");
|
|
57
|
+
const indexTsxPath = resolve(fullPath, "index.tsx");
|
|
58
|
+
|
|
59
|
+
let existingIndexPath = null;
|
|
60
|
+
if (fs.existsSync(indexPath) && !shouldExclude(indexPath)) {
|
|
61
|
+
existingIndexPath = indexPath;
|
|
62
|
+
} else if (fs.existsSync(indexTsxPath) && !shouldExclude(indexTsxPath)) {
|
|
63
|
+
existingIndexPath = indexTsxPath;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (existingIndexPath) {
|
|
67
|
+
const entryKey = basePath ? `${basePath}/${item}` : `${folder}/${item}`;
|
|
68
|
+
entryPoints[entryKey] = existingIndexPath;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const newBasePath = basePath ? `${basePath}/${item}` : `${folder}/${item}`;
|
|
72
|
+
scanDir(fullPath, newBasePath);
|
|
73
|
+
} else if (
|
|
74
|
+
stat.isFile() &&
|
|
75
|
+
(item.endsWith(".ts") || item.endsWith(".tsx")) &&
|
|
76
|
+
item !== "index.ts" &&
|
|
77
|
+
item !== "index.tsx" &&
|
|
78
|
+
!shouldExclude(fullPath)
|
|
79
|
+
) {
|
|
80
|
+
const name = item.replace(/\.(ts|tsx)$/, "");
|
|
81
|
+
const entryKey = basePath ? `${basePath}/${name}` : `${folder}/${name}`;
|
|
82
|
+
entryPoints[entryKey] = fullPath;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
scanDir(dir);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Для отладки - выведем найденные entry points
|
|
91
|
+
console.log(`✅ Found ${Object.keys(entryPoints).length} entry points:`);
|
|
92
|
+
Object.keys(entryPoints)
|
|
93
|
+
.slice(0, 5)
|
|
94
|
+
.forEach((key) => {
|
|
95
|
+
console.log(` - ${key} -> ${entryPoints[key]}`);
|
|
96
|
+
});
|
|
97
|
+
if (Object.keys(entryPoints).length > 5) {
|
|
98
|
+
console.log(` ... and ${Object.keys(entryPoints).length - 5} more`);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return entryPoints;
|
|
102
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"types": ["vite/client"],
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
|
|
11
|
+
/* Bundler mode */
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"verbatimModuleSyntax": true,
|
|
15
|
+
"moduleDetection": "force",
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"jsx": "react-jsx",
|
|
18
|
+
|
|
19
|
+
/* Linting */
|
|
20
|
+
"strict": true,
|
|
21
|
+
"noUnusedLocals": true,
|
|
22
|
+
"noUnusedParameters": true,
|
|
23
|
+
"erasableSyntaxOnly": true,
|
|
24
|
+
"noFallthroughCasesInSwitch": true,
|
|
25
|
+
"noUncheckedSideEffectImports": true,
|
|
26
|
+
"baseUrl": ".",
|
|
27
|
+
"paths": {
|
|
28
|
+
"@/*": ["./src/*"],
|
|
29
|
+
"@/app/*": ["./src/app/*"],
|
|
30
|
+
"@/assets/*": ["./src/assets/*"],
|
|
31
|
+
"@/components/*": ["./src/components/*"],
|
|
32
|
+
"@/types/*": ["./src/types/*"],
|
|
33
|
+
"@/constants/*": ["./src/constants/*"],
|
|
34
|
+
"@/styles/*": ["./src/styles/*"],
|
|
35
|
+
"@/hooks/*": ["./src/hooks/*"],
|
|
36
|
+
"@/lib/*": ["./src/lib/*"]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"include": ["src"]
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
+
"target": "ES2023",
|
|
5
|
+
"lib": ["ES2023"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"types": ["node"],
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
|
|
10
|
+
/* Bundler mode */
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"verbatimModuleSyntax": true,
|
|
14
|
+
"moduleDetection": "force",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"erasableSyntaxOnly": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true,
|
|
23
|
+
"noUncheckedSideEffectImports": true
|
|
24
|
+
},
|
|
25
|
+
"include": ["vite.config.ts"]
|
|
26
|
+
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ currentPage, totalPages, maxVisiblePages, className, showNavigation, prevLabel, nextLabel, size, ellipsisStep, onPageChange, }: {
|
|
5
|
-
currentPage: number;
|
|
6
|
-
totalPages: number;
|
|
7
|
-
maxVisiblePages?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
showNavigation?: boolean;
|
|
10
|
-
prevLabel?: string;
|
|
11
|
-
nextLabel?: string;
|
|
12
|
-
size?: import('./app-pagination.styles').AppPaginationSize;
|
|
13
|
-
ellipsisStep?: number;
|
|
14
|
-
onPageChange: (page: number) => void;
|
|
15
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
-
args: {
|
|
17
|
-
currentPage: number;
|
|
18
|
-
totalPages: number;
|
|
19
|
-
maxVisiblePages: number;
|
|
20
|
-
showNavigation: true;
|
|
21
|
-
size: "default";
|
|
22
|
-
ellipsisStep: number;
|
|
23
|
-
prevLabel: undefined;
|
|
24
|
-
nextLabel: undefined;
|
|
25
|
-
onPageChange: () => void;
|
|
26
|
-
};
|
|
27
|
-
argTypes: {
|
|
28
|
-
size: {
|
|
29
|
-
control: "select";
|
|
30
|
-
options: string[];
|
|
31
|
-
};
|
|
32
|
-
onPageChange: {
|
|
33
|
-
action: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
render: (args: {
|
|
37
|
-
currentPage: number;
|
|
38
|
-
totalPages: number;
|
|
39
|
-
maxVisiblePages?: number;
|
|
40
|
-
className?: string;
|
|
41
|
-
showNavigation?: boolean;
|
|
42
|
-
prevLabel?: string;
|
|
43
|
-
nextLabel?: string;
|
|
44
|
-
size?: import('./app-pagination.styles').AppPaginationSize;
|
|
45
|
-
ellipsisStep?: number;
|
|
46
|
-
onPageChange: (page: number) => void;
|
|
47
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
};
|
|
49
|
-
export default meta;
|
|
50
|
-
type Story = StoryObj<typeof meta>;
|
|
51
|
-
export declare const Overview: Story;
|
|
52
|
-
export declare const Playground: Story;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { AppSidebarGroup, AppSidebarState } from '.';
|
|
3
|
-
declare const menuPresetOptions: {
|
|
4
|
-
readonly crm: AppSidebarGroup[];
|
|
5
|
-
readonly settings: AppSidebarGroup[];
|
|
6
|
-
};
|
|
7
|
-
type MenuPreset = keyof typeof menuPresetOptions;
|
|
8
|
-
type AppSidebarPreviewProps = {
|
|
9
|
-
state: AppSidebarState;
|
|
10
|
-
title: string;
|
|
11
|
-
showToggle: boolean;
|
|
12
|
-
activeItemId: string;
|
|
13
|
-
menuPreset: MenuPreset;
|
|
14
|
-
};
|
|
15
|
-
declare const meta: {
|
|
16
|
-
title: string;
|
|
17
|
-
component: ({ state, title, showToggle, activeItemId, menuPreset, }: AppSidebarPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
args: {
|
|
19
|
-
state: "expanded";
|
|
20
|
-
title: string;
|
|
21
|
-
showToggle: true;
|
|
22
|
-
activeItemId: string;
|
|
23
|
-
menuPreset: "crm";
|
|
24
|
-
};
|
|
25
|
-
argTypes: {
|
|
26
|
-
state: {
|
|
27
|
-
control: "inline-radio";
|
|
28
|
-
options: string[];
|
|
29
|
-
};
|
|
30
|
-
title: {
|
|
31
|
-
control: "text";
|
|
32
|
-
};
|
|
33
|
-
showToggle: {
|
|
34
|
-
control: "boolean";
|
|
35
|
-
};
|
|
36
|
-
activeItemId: {
|
|
37
|
-
control: "select";
|
|
38
|
-
options: string[];
|
|
39
|
-
};
|
|
40
|
-
menuPreset: {
|
|
41
|
-
control: "inline-radio";
|
|
42
|
-
options: string[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export default meta;
|
|
47
|
-
type Story = StoryObj<typeof meta>;
|
|
48
|
-
export declare const Playground: Story;
|
|
49
|
-
export declare const Expanded: Story;
|
|
50
|
-
export declare const Collapsed: Story;
|
|
51
|
-
export declare const SettingsPreset: Story;
|
|
52
|
-
export declare const InShell: Story;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { AvatarUpload } from '.';
|
|
3
|
-
declare const meta: Meta<typeof AvatarUpload>;
|
|
4
|
-
export default meta;
|
|
5
|
-
export declare const WithoutImage: StoryObj<typeof AvatarUpload>;
|
|
6
|
-
export declare const WithImage: StoryObj<typeof AvatarUpload>;
|
|
7
|
-
export declare const Interactive: StoryObj<typeof AvatarUpload>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ initials, avatar, fallback, image, icon, showDeleteOnHover, onClick, }: import('./basic-avatar').BasicAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
type Story = StoryObj<typeof meta>;
|
|
12
|
-
export declare const WithoutDeleteIcon: Story;
|
|
13
|
-
export declare const WithDeleteIcon: Story;
|
|
14
|
-
export declare const WithImage: Story;
|
|
15
|
-
export declare const WithCustomIcon: Story;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ chartContainer, barChart, cartesianGrid, axis, hasTooltip, tooltip, bar, chartTooltipContent, fillContainer, minHeight, smoothResize, resizeDebounceMs, mobileBreakpoint, }: import('./basic-chart').ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
argTypes: {
|
|
10
|
-
cartesianGrid: {
|
|
11
|
-
control: "boolean";
|
|
12
|
-
description: string;
|
|
13
|
-
};
|
|
14
|
-
hasTooltip: {
|
|
15
|
-
control: "boolean";
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export default meta;
|
|
21
|
-
type Story = StoryObj<typeof meta>;
|
|
22
|
-
export declare const BrowserStats: Story;
|
|
23
|
-
export declare const OnlyBars: Story;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ name, orientation, label, disabled, classNames, isValid, ...rest }: import('./basic-checkbox').CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
args: {
|
|
6
|
-
name: string;
|
|
7
|
-
label: string;
|
|
8
|
-
orientation: "horizontal";
|
|
9
|
-
disabled: false;
|
|
10
|
-
checked: false;
|
|
11
|
-
};
|
|
12
|
-
argTypes: {
|
|
13
|
-
label: {
|
|
14
|
-
control: "text";
|
|
15
|
-
};
|
|
16
|
-
name: {
|
|
17
|
-
control: "text";
|
|
18
|
-
};
|
|
19
|
-
orientation: {
|
|
20
|
-
control: "inline-radio";
|
|
21
|
-
options: string[];
|
|
22
|
-
};
|
|
23
|
-
disabled: {
|
|
24
|
-
control: "boolean";
|
|
25
|
-
};
|
|
26
|
-
checked: {
|
|
27
|
-
control: "boolean";
|
|
28
|
-
};
|
|
29
|
-
onCheckedChange: {
|
|
30
|
-
action: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export default meta;
|
|
35
|
-
type Story = StoryObj<typeof meta>;
|
|
36
|
-
export declare const Overview: Story;
|
|
37
|
-
export declare const Playground: Story;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { BasicDrawer } from '.';
|
|
3
|
-
declare const meta: Meta<typeof BasicDrawer>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof BasicDrawer>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const NoFooter: Story;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
type BasicModalPreviewProps = {
|
|
3
|
-
title: string;
|
|
4
|
-
description: string;
|
|
5
|
-
showCloseButton: boolean;
|
|
6
|
-
confirmLabel: string;
|
|
7
|
-
cancelLabel: string;
|
|
8
|
-
defaultOpen?: boolean;
|
|
9
|
-
useCustomFooter?: boolean;
|
|
10
|
-
onConfirm?: () => void;
|
|
11
|
-
};
|
|
12
|
-
declare function BasicModalPreview({ title, description, showCloseButton, confirmLabel, cancelLabel, defaultOpen, useCustomFooter, onConfirm, }: BasicModalPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare const meta: {
|
|
14
|
-
title: string;
|
|
15
|
-
component: typeof BasicModalPreview;
|
|
16
|
-
args: {
|
|
17
|
-
title: string;
|
|
18
|
-
description: string;
|
|
19
|
-
showCloseButton: true;
|
|
20
|
-
confirmLabel: string;
|
|
21
|
-
cancelLabel: string;
|
|
22
|
-
defaultOpen: false;
|
|
23
|
-
useCustomFooter: false;
|
|
24
|
-
};
|
|
25
|
-
argTypes: {
|
|
26
|
-
title: {
|
|
27
|
-
control: "text";
|
|
28
|
-
};
|
|
29
|
-
description: {
|
|
30
|
-
control: "text";
|
|
31
|
-
};
|
|
32
|
-
showCloseButton: {
|
|
33
|
-
control: "boolean";
|
|
34
|
-
};
|
|
35
|
-
confirmLabel: {
|
|
36
|
-
control: "text";
|
|
37
|
-
};
|
|
38
|
-
cancelLabel: {
|
|
39
|
-
control: "text";
|
|
40
|
-
};
|
|
41
|
-
defaultOpen: {
|
|
42
|
-
control: "boolean";
|
|
43
|
-
};
|
|
44
|
-
useCustomFooter: {
|
|
45
|
-
control: "boolean";
|
|
46
|
-
};
|
|
47
|
-
onConfirm: {
|
|
48
|
-
action: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export default meta;
|
|
53
|
-
type Story = StoryObj<typeof meta>;
|
|
54
|
-
export declare const Overview: Story;
|
|
55
|
-
export declare const Playground: Story;
|
|
56
|
-
export declare const WithoutPassedFooter: Story;
|
|
57
|
-
export declare const WithPassedFooter: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { BasicSelect } from '.';
|
|
3
|
-
declare const meta: Meta<typeof BasicSelect>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof BasicSelect>;
|
|
6
|
-
export declare const WithoutGroups: Story;
|
|
7
|
-
export declare const WithGroups: Story;
|
|
8
|
-
export declare const SmallSize: Story;
|
|
9
|
-
export declare const Disabled: Story;
|
|
10
|
-
export declare const WithState: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
export declare function ClientsTableStory(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof ClientsTableStory;
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
type Story = StoryObj<typeof meta>;
|
|
9
|
-
export declare const ClientsWithSearch: Story;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { PropsFilesUploader } from './files-uploader';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ value, onChange, multiple, maxFiles, disabled, className, maxSize, variant, accepts, icon, title, text, }: PropsFilesUploader) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
tags: string[];
|
|
10
|
-
args: {
|
|
11
|
-
multiple: true;
|
|
12
|
-
maxFiles: number;
|
|
13
|
-
maxSize: number;
|
|
14
|
-
variant: "grid";
|
|
15
|
-
accepts: "all"[];
|
|
16
|
-
title: string;
|
|
17
|
-
text: string;
|
|
18
|
-
};
|
|
19
|
-
argTypes: {
|
|
20
|
-
variant: {
|
|
21
|
-
control: "select";
|
|
22
|
-
options: string[];
|
|
23
|
-
description: string;
|
|
24
|
-
};
|
|
25
|
-
accepts: {
|
|
26
|
-
control: "check";
|
|
27
|
-
options: readonly ["all", "image", "pdf", "doc", "excel", "text"];
|
|
28
|
-
description: string;
|
|
29
|
-
};
|
|
30
|
-
multiple: {
|
|
31
|
-
control: "boolean";
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
maxFiles: {
|
|
35
|
-
control: "number";
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
maxSize: {
|
|
39
|
-
control: "number";
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
disabled: {
|
|
43
|
-
control: "boolean";
|
|
44
|
-
description: string;
|
|
45
|
-
};
|
|
46
|
-
title: {
|
|
47
|
-
control: "text";
|
|
48
|
-
description: string;
|
|
49
|
-
};
|
|
50
|
-
text: {
|
|
51
|
-
control: "text";
|
|
52
|
-
description: string;
|
|
53
|
-
};
|
|
54
|
-
icon: {
|
|
55
|
-
control: "object";
|
|
56
|
-
description: string;
|
|
57
|
-
};
|
|
58
|
-
className: {
|
|
59
|
-
control: "object";
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
export default meta;
|
|
65
|
-
type Story = StoryObj<typeof meta>;
|
|
66
|
-
export declare const ImagesOnly: Story;
|
|
67
|
-
export declare const DocumentsOnly: Story;
|
|
68
|
-
export declare const AllSupportedTypes: Story;
|
|
69
|
-
export declare const CustomRemoveIcon: Story;
|
|
70
|
-
export declare const CustomStyles: Story;
|