@pallasoft/ps-internal-components 1.0.0
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/LICENSE +32 -0
- package/README.md +21 -0
- package/dist/components/ps-alert-description.d.ts +3 -0
- package/dist/components/ps-alert-description.js +5 -0
- package/dist/components/ps-alert-dialog-action.d.ts +3 -0
- package/dist/components/ps-alert-dialog-action.js +8 -0
- package/dist/components/ps-alert-dialog-cancel.d.ts +3 -0
- package/dist/components/ps-alert-dialog-cancel.js +8 -0
- package/dist/components/ps-alert-dialog-content.d.ts +3 -0
- package/dist/components/ps-alert-dialog-content.js +9 -0
- package/dist/components/ps-alert-dialog-description.d.ts +3 -0
- package/dist/components/ps-alert-dialog-description.js +7 -0
- package/dist/components/ps-alert-dialog-footer.d.ts +5 -0
- package/dist/components/ps-alert-dialog-footer.js +5 -0
- package/dist/components/ps-alert-dialog-header.d.ts +5 -0
- package/dist/components/ps-alert-dialog-header.js +5 -0
- package/dist/components/ps-alert-dialog-overlay.d.ts +3 -0
- package/dist/components/ps-alert-dialog-overlay.js +7 -0
- package/dist/components/ps-alert-dialog-portal.d.ts +2 -0
- package/dist/components/ps-alert-dialog-portal.js +3 -0
- package/dist/components/ps-alert-dialog-title.d.ts +3 -0
- package/dist/components/ps-alert-dialog-title.js +7 -0
- package/dist/components/ps-alert-dialog-trigger.d.ts +2 -0
- package/dist/components/ps-alert-dialog-trigger.js +3 -0
- package/dist/components/ps-alert-dialog.d.ts +2 -0
- package/dist/components/ps-alert-dialog.js +3 -0
- package/dist/components/ps-alert-title.d.ts +3 -0
- package/dist/components/ps-alert-title.js +5 -0
- package/dist/components/ps-alert.d.ts +3 -0
- package/dist/components/ps-alert.js +6 -0
- package/dist/components/ps-app-header.d.ts +3 -0
- package/dist/components/ps-app-header.js +22 -0
- package/dist/components/ps-app-switcher-section.d.ts +2 -0
- package/dist/components/ps-app-switcher-section.js +3 -0
- package/dist/components/ps-app-switcher-tile.d.ts +3 -0
- package/dist/components/ps-app-switcher-tile.js +11 -0
- package/dist/components/ps-app-switcher.d.ts +3 -0
- package/dist/components/ps-app-switcher.js +16 -0
- package/dist/components/ps-avatar-fallback.d.ts +3 -0
- package/dist/components/ps-avatar-fallback.js +6 -0
- package/dist/components/ps-avatar-image.d.ts +3 -0
- package/dist/components/ps-avatar-image.js +6 -0
- package/dist/components/ps-avatar.d.ts +3 -0
- package/dist/components/ps-avatar.js +7 -0
- package/dist/components/ps-badge.d.ts +2 -0
- package/dist/components/ps-badge.js +9 -0
- package/dist/components/ps-breadcrumb-ellipsis.d.ts +5 -0
- package/dist/components/ps-breadcrumb-ellipsis.js +5 -0
- package/dist/components/ps-breadcrumb-item.d.ts +3 -0
- package/dist/components/ps-breadcrumb-item.js +5 -0
- package/dist/components/ps-breadcrumb-link.d.ts +3 -0
- package/dist/components/ps-breadcrumb-link.js +9 -0
- package/dist/components/ps-breadcrumb-list.d.ts +3 -0
- package/dist/components/ps-breadcrumb-list.js +5 -0
- package/dist/components/ps-breadcrumb-page.d.ts +3 -0
- package/dist/components/ps-breadcrumb-page.js +5 -0
- package/dist/components/ps-breadcrumb-separator.d.ts +5 -0
- package/dist/components/ps-breadcrumb-separator.js +5 -0
- package/dist/components/ps-breadcrumb.d.ts +3 -0
- package/dist/components/ps-breadcrumb.js +4 -0
- package/dist/components/ps-button.d.ts +3 -0
- package/dist/components/ps-button.js +10 -0
- package/dist/components/ps-calendar.d.ts +3 -0
- package/dist/components/ps-calendar.js +39 -0
- package/dist/components/ps-card-content.d.ts +3 -0
- package/dist/components/ps-card-content.js +5 -0
- package/dist/components/ps-card-description.d.ts +3 -0
- package/dist/components/ps-card-description.js +5 -0
- package/dist/components/ps-card-footer.d.ts +3 -0
- package/dist/components/ps-card-footer.js +5 -0
- package/dist/components/ps-card-header.d.ts +3 -0
- package/dist/components/ps-card-header.js +5 -0
- package/dist/components/ps-card-title.d.ts +3 -0
- package/dist/components/ps-card-title.js +5 -0
- package/dist/components/ps-card.d.ts +3 -0
- package/dist/components/ps-card.js +6 -0
- package/dist/components/ps-chart-container.d.ts +3 -0
- package/dist/components/ps-chart-container.js +13 -0
- package/dist/components/ps-chart-legend-content.d.ts +2 -0
- package/dist/components/ps-chart-legend-content.js +15 -0
- package/dist/components/ps-chart-legend.d.ts +2 -0
- package/dist/components/ps-chart-legend.js +2 -0
- package/dist/components/ps-chart-primitives.d.ts +678 -0
- package/dist/components/ps-chart-primitives.js +14 -0
- package/dist/components/ps-chart-style.d.ts +2 -0
- package/dist/components/ps-chart-style.js +8 -0
- package/dist/components/ps-chart-tooltip-content.d.ts +3 -0
- package/dist/components/ps-chart-tooltip-content.js +45 -0
- package/dist/components/ps-chart-tooltip.d.ts +2 -0
- package/dist/components/ps-chart-tooltip.js +2 -0
- package/dist/components/ps-checkbox.d.ts +3 -0
- package/dist/components/ps-checkbox.js +7 -0
- package/dist/components/ps-combobox.d.ts +3 -0
- package/dist/components/ps-combobox.js +23 -0
- package/dist/components/ps-command-dialog.d.ts +2 -0
- package/dist/components/ps-command-dialog.js +8 -0
- package/dist/components/ps-command-empty.d.ts +3 -0
- package/dist/components/ps-command-empty.js +6 -0
- package/dist/components/ps-command-group.d.ts +3 -0
- package/dist/components/ps-command-group.js +7 -0
- package/dist/components/ps-command-input.d.ts +3 -0
- package/dist/components/ps-command-input.js +8 -0
- package/dist/components/ps-command-item.d.ts +3 -0
- package/dist/components/ps-command-item.js +7 -0
- package/dist/components/ps-command-list.d.ts +3 -0
- package/dist/components/ps-command-list.js +7 -0
- package/dist/components/ps-command-separator.d.ts +3 -0
- package/dist/components/ps-command-separator.js +7 -0
- package/dist/components/ps-command-shortcut.d.ts +5 -0
- package/dist/components/ps-command-shortcut.js +7 -0
- package/dist/components/ps-command.d.ts +3 -0
- package/dist/components/ps-command.js +7 -0
- package/dist/components/ps-date-picker.d.ts +3 -0
- package/dist/components/ps-date-picker.js +24 -0
- package/dist/components/ps-dialog-close.d.ts +2 -0
- package/dist/components/ps-dialog-close.js +3 -0
- package/dist/components/ps-dialog-content.d.ts +3 -0
- package/dist/components/ps-dialog-content.js +10 -0
- package/dist/components/ps-dialog-description.d.ts +3 -0
- package/dist/components/ps-dialog-description.js +7 -0
- package/dist/components/ps-dialog-footer.d.ts +5 -0
- package/dist/components/ps-dialog-footer.js +5 -0
- package/dist/components/ps-dialog-header.d.ts +5 -0
- package/dist/components/ps-dialog-header.js +5 -0
- package/dist/components/ps-dialog-overlay.d.ts +3 -0
- package/dist/components/ps-dialog-overlay.js +7 -0
- package/dist/components/ps-dialog-portal.d.ts +2 -0
- package/dist/components/ps-dialog-portal.js +3 -0
- package/dist/components/ps-dialog-title.d.ts +3 -0
- package/dist/components/ps-dialog-title.js +7 -0
- package/dist/components/ps-dialog-trigger.d.ts +2 -0
- package/dist/components/ps-dialog-trigger.js +3 -0
- package/dist/components/ps-dialog.d.ts +2 -0
- package/dist/components/ps-dialog.js +3 -0
- package/dist/components/ps-dropdown-menu-checkbox-item.d.ts +3 -0
- package/dist/components/ps-dropdown-menu-checkbox-item.js +7 -0
- package/dist/components/ps-dropdown-menu-content.d.ts +3 -0
- package/dist/components/ps-dropdown-menu-content.js +6 -0
- package/dist/components/ps-dropdown-menu-group.d.ts +2 -0
- package/dist/components/ps-dropdown-menu-group.js +2 -0
- package/dist/components/ps-dropdown-menu-item.d.ts +3 -0
- package/dist/components/ps-dropdown-menu-item.js +6 -0
- package/dist/components/ps-dropdown-menu-label.d.ts +3 -0
- package/dist/components/ps-dropdown-menu-label.js +6 -0
- package/dist/components/ps-dropdown-menu-portal.d.ts +2 -0
- package/dist/components/ps-dropdown-menu-portal.js +2 -0
- package/dist/components/ps-dropdown-menu-radio-group.d.ts +2 -0
- package/dist/components/ps-dropdown-menu-radio-group.js +2 -0
- package/dist/components/ps-dropdown-menu-radio-item.d.ts +3 -0
- package/dist/components/ps-dropdown-menu-radio-item.js +7 -0
- package/dist/components/ps-dropdown-menu-separator.d.ts +3 -0
- package/dist/components/ps-dropdown-menu-separator.js +6 -0
- package/dist/components/ps-dropdown-menu-shortcut.d.ts +5 -0
- package/dist/components/ps-dropdown-menu-shortcut.js +6 -0
- package/dist/components/ps-dropdown-menu-sub-content.d.ts +3 -0
- package/dist/components/ps-dropdown-menu-sub-content.js +6 -0
- package/dist/components/ps-dropdown-menu-sub-trigger.d.ts +3 -0
- package/dist/components/ps-dropdown-menu-sub-trigger.js +7 -0
- package/dist/components/ps-dropdown-menu-sub.d.ts +2 -0
- package/dist/components/ps-dropdown-menu-sub.js +2 -0
- package/dist/components/ps-dropdown-menu-trigger.d.ts +2 -0
- package/dist/components/ps-dropdown-menu-trigger.js +2 -0
- package/dist/components/ps-dropdown-menu.d.ts +2 -0
- package/dist/components/ps-dropdown-menu.js +2 -0
- package/dist/components/ps-email-input.d.ts +3 -0
- package/dist/components/ps-email-input.js +12 -0
- package/dist/components/ps-empty-content.d.ts +3 -0
- package/dist/components/ps-empty-content.js +5 -0
- package/dist/components/ps-empty-description.d.ts +3 -0
- package/dist/components/ps-empty-description.js +5 -0
- package/dist/components/ps-empty-media.d.ts +3 -0
- package/dist/components/ps-empty-media.js +5 -0
- package/dist/components/ps-empty-panel.d.ts +3 -0
- package/dist/components/ps-empty-panel.js +5 -0
- package/dist/components/ps-empty-title.d.ts +3 -0
- package/dist/components/ps-empty-title.js +5 -0
- package/dist/components/ps-empty.d.ts +3 -0
- package/dist/components/ps-empty.js +5 -0
- package/dist/components/ps-field-content.d.ts +3 -0
- package/dist/components/ps-field-content.js +5 -0
- package/dist/components/ps-field-description.d.ts +3 -0
- package/dist/components/ps-field-description.js +5 -0
- package/dist/components/ps-field-error.d.ts +3 -0
- package/dist/components/ps-field-error.js +5 -0
- package/dist/components/ps-field-group.d.ts +3 -0
- package/dist/components/ps-field-group.js +5 -0
- package/dist/components/ps-field-label.d.ts +3 -0
- package/dist/components/ps-field-label.js +6 -0
- package/dist/components/ps-field.d.ts +3 -0
- package/dist/components/ps-field.js +8 -0
- package/dist/components/ps-file-picker.d.ts +3 -0
- package/dist/components/ps-file-picker.js +32 -0
- package/dist/components/ps-input-group.d.ts +2 -0
- package/dist/components/ps-input-group.js +3 -0
- package/dist/components/ps-input.d.ts +3 -0
- package/dist/components/ps-input.js +10 -0
- package/dist/components/ps-kbd.d.ts +3 -0
- package/dist/components/ps-kbd.js +5 -0
- package/dist/components/ps-label.d.ts +3 -0
- package/dist/components/ps-label.js +7 -0
- package/dist/components/ps-money-input.d.ts +3 -0
- package/dist/components/ps-money-input.js +27 -0
- package/dist/components/ps-navigation-progress.d.ts +3 -0
- package/dist/components/ps-navigation-progress.js +28 -0
- package/dist/components/ps-not-found.d.ts +2 -0
- package/dist/components/ps-not-found.js +4 -0
- package/dist/components/ps-option-select.d.ts +2 -0
- package/dist/components/ps-option-select.js +12 -0
- package/dist/components/ps-password-input.d.ts +3 -0
- package/dist/components/ps-password-input.js +14 -0
- package/dist/components/ps-percent-input.d.ts +3 -0
- package/dist/components/ps-percent-input.js +12 -0
- package/dist/components/ps-phone-input.d.ts +3 -0
- package/dist/components/ps-phone-input.js +40 -0
- package/dist/components/ps-popover-anchor.d.ts +2 -0
- package/dist/components/ps-popover-anchor.js +3 -0
- package/dist/components/ps-popover-content.d.ts +3 -0
- package/dist/components/ps-popover-content.js +7 -0
- package/dist/components/ps-popover-trigger.d.ts +2 -0
- package/dist/components/ps-popover-trigger.js +3 -0
- package/dist/components/ps-popover.d.ts +2 -0
- package/dist/components/ps-popover.js +3 -0
- package/dist/components/ps-progress.d.ts +3 -0
- package/dist/components/ps-progress.js +6 -0
- package/dist/components/ps-radio-group-item.d.ts +3 -0
- package/dist/components/ps-radio-group-item.js +10 -0
- package/dist/components/ps-radio-group.d.ts +3 -0
- package/dist/components/ps-radio-group.js +9 -0
- package/dist/components/ps-root-error.d.ts +2 -0
- package/dist/components/ps-root-error.js +4 -0
- package/dist/components/ps-scroll-area.d.ts +3 -0
- package/dist/components/ps-scroll-area.js +7 -0
- package/dist/components/ps-scroll-bar.d.ts +3 -0
- package/dist/components/ps-scroll-bar.js +6 -0
- package/dist/components/ps-select-content.d.ts +3 -0
- package/dist/components/ps-select-content.js +10 -0
- package/dist/components/ps-select-group.d.ts +2 -0
- package/dist/components/ps-select-group.js +2 -0
- package/dist/components/ps-select-item.d.ts +3 -0
- package/dist/components/ps-select-item.js +7 -0
- package/dist/components/ps-select-label.d.ts +3 -0
- package/dist/components/ps-select-label.js +6 -0
- package/dist/components/ps-select-scroll-down-button.d.ts +3 -0
- package/dist/components/ps-select-scroll-down-button.js +7 -0
- package/dist/components/ps-select-scroll-up-button.d.ts +3 -0
- package/dist/components/ps-select-scroll-up-button.js +7 -0
- package/dist/components/ps-select-separator.d.ts +3 -0
- package/dist/components/ps-select-separator.js +6 -0
- package/dist/components/ps-select-trigger.d.ts +3 -0
- package/dist/components/ps-select-trigger.js +8 -0
- package/dist/components/ps-select-value.d.ts +2 -0
- package/dist/components/ps-select-value.js +2 -0
- package/dist/components/ps-select.d.ts +2 -0
- package/dist/components/ps-select.js +2 -0
- package/dist/components/ps-separator.d.ts +3 -0
- package/dist/components/ps-separator.js +7 -0
- package/dist/components/ps-sheet-close.d.ts +2 -0
- package/dist/components/ps-sheet-close.js +2 -0
- package/dist/components/ps-sheet-content.d.ts +3 -0
- package/dist/components/ps-sheet-content.js +10 -0
- package/dist/components/ps-sheet-description.d.ts +3 -0
- package/dist/components/ps-sheet-description.js +6 -0
- package/dist/components/ps-sheet-footer.d.ts +5 -0
- package/dist/components/ps-sheet-footer.js +4 -0
- package/dist/components/ps-sheet-header.d.ts +5 -0
- package/dist/components/ps-sheet-header.js +4 -0
- package/dist/components/ps-sheet-overlay.d.ts +3 -0
- package/dist/components/ps-sheet-overlay.js +6 -0
- package/dist/components/ps-sheet-portal.d.ts +2 -0
- package/dist/components/ps-sheet-portal.js +2 -0
- package/dist/components/ps-sheet-title.d.ts +3 -0
- package/dist/components/ps-sheet-title.js +6 -0
- package/dist/components/ps-sheet-trigger.d.ts +2 -0
- package/dist/components/ps-sheet-trigger.js +2 -0
- package/dist/components/ps-sheet.d.ts +2 -0
- package/dist/components/ps-sheet.js +2 -0
- package/dist/components/ps-skeleton.d.ts +2 -0
- package/dist/components/ps-skeleton.js +5 -0
- package/dist/components/ps-spinner.d.ts +3 -0
- package/dist/components/ps-spinner.js +6 -0
- package/dist/components/ps-status-panel.d.ts +3 -0
- package/dist/components/ps-status-panel.js +5 -0
- package/dist/components/ps-switch.d.ts +3 -0
- package/dist/components/ps-switch.js +6 -0
- package/dist/components/ps-table-body.d.ts +3 -0
- package/dist/components/ps-table-body.js +5 -0
- package/dist/components/ps-table-caption.d.ts +3 -0
- package/dist/components/ps-table-caption.js +5 -0
- package/dist/components/ps-table-cell.d.ts +3 -0
- package/dist/components/ps-table-cell.js +5 -0
- package/dist/components/ps-table-footer.d.ts +3 -0
- package/dist/components/ps-table-footer.js +5 -0
- package/dist/components/ps-table-head.d.ts +3 -0
- package/dist/components/ps-table-head.js +5 -0
- package/dist/components/ps-table-header.d.ts +3 -0
- package/dist/components/ps-table-header.js +5 -0
- package/dist/components/ps-table-row.d.ts +3 -0
- package/dist/components/ps-table-row.js +5 -0
- package/dist/components/ps-table.d.ts +3 -0
- package/dist/components/ps-table.js +5 -0
- package/dist/components/ps-tabs-content.d.ts +3 -0
- package/dist/components/ps-tabs-content.js +6 -0
- package/dist/components/ps-tabs-list.d.ts +3 -0
- package/dist/components/ps-tabs-list.js +6 -0
- package/dist/components/ps-tabs-trigger.d.ts +3 -0
- package/dist/components/ps-tabs-trigger.js +6 -0
- package/dist/components/ps-tabs.d.ts +2 -0
- package/dist/components/ps-tabs.js +2 -0
- package/dist/components/ps-textarea.d.ts +3 -0
- package/dist/components/ps-textarea.js +7 -0
- package/dist/components/ps-toggle-group-item.d.ts +3 -0
- package/dist/components/ps-toggle-group-item.js +15 -0
- package/dist/components/ps-toggle-group.d.ts +4 -0
- package/dist/components/ps-toggle-group.js +8 -0
- package/dist/components/ps-toggle.d.ts +3 -0
- package/dist/components/ps-toggle.js +7 -0
- package/dist/components/ps-tooltip-content.d.ts +3 -0
- package/dist/components/ps-tooltip-content.js +6 -0
- package/dist/components/ps-tooltip-provider.d.ts +2 -0
- package/dist/components/ps-tooltip-provider.js +2 -0
- package/dist/components/ps-tooltip-trigger.d.ts +2 -0
- package/dist/components/ps-tooltip-trigger.js +2 -0
- package/dist/components/ps-tooltip.d.ts +2 -0
- package/dist/components/ps-tooltip.js +2 -0
- package/dist/components/ps-url-input.d.ts +3 -0
- package/dist/components/ps-url-input.js +22 -0
- package/dist/components/ps-workspace-badge.d.ts +2 -0
- package/dist/components/ps-workspace-badge.js +8 -0
- package/dist/components/ps-workspace-switcher.d.ts +3 -0
- package/dist/components/ps-workspace-switcher.js +18 -0
- package/dist/constants/pallasoft-font-size.d.ts +44 -0
- package/dist/constants/pallasoft-font-size.js +16 -0
- package/dist/constants/pallasoft-motion.d.ts +62 -0
- package/dist/constants/pallasoft-motion.js +62 -0
- package/dist/constants/pallasoft-screens.d.ts +8 -0
- package/dist/constants/pallasoft-screens.js +8 -0
- package/dist/constants/pallasoft-shared-scale.d.ts +17 -0
- package/dist/constants/pallasoft-shared-scale.js +9 -0
- package/dist/constants/ps-alert-variants.d.ts +3 -0
- package/dist/constants/ps-alert-variants.js +14 -0
- package/dist/constants/ps-app-category-labels.d.ts +2 -0
- package/dist/constants/ps-app-category-labels.js +8 -0
- package/dist/constants/ps-app-category.d.ts +7 -0
- package/dist/constants/ps-app-category.js +8 -0
- package/dist/constants/ps-app-key.d.ts +15 -0
- package/dist/constants/ps-app-key.js +16 -0
- package/dist/constants/ps-app-switcher-config.d.ts +11 -0
- package/dist/constants/ps-app-switcher-config.js +11 -0
- package/dist/constants/ps-badge-variants.d.ts +3 -0
- package/dist/constants/ps-badge-variants.js +16 -0
- package/dist/constants/ps-button-variants.d.ts +4 -0
- package/dist/constants/ps-button-variants.js +23 -0
- package/dist/constants/ps-chart-defaults.d.ts +7 -0
- package/dist/constants/ps-chart-defaults.js +7 -0
- package/dist/constants/ps-chart-themes.d.ts +4 -0
- package/dist/constants/ps-chart-themes.js +4 -0
- package/dist/constants/ps-date-picker-config.d.ts +6 -0
- package/dist/constants/ps-date-picker-config.js +6 -0
- package/dist/constants/ps-external-apps.d.ts +2 -0
- package/dist/constants/ps-external-apps.js +60 -0
- package/dist/constants/ps-field-input-config.d.ts +6 -0
- package/dist/constants/ps-field-input-config.js +6 -0
- package/dist/constants/ps-field-orientation.d.ts +4 -0
- package/dist/constants/ps-field-orientation.js +5 -0
- package/dist/constants/ps-file-picker-config.d.ts +5 -0
- package/dist/constants/ps-file-picker-config.js +5 -0
- package/dist/constants/ps-label-variants.d.ts +1 -0
- package/dist/constants/ps-label-variants.js +2 -0
- package/dist/constants/ps-navigation-progress-config.d.ts +8 -0
- package/dist/constants/ps-navigation-progress-config.js +8 -0
- package/dist/constants/ps-navigation-state.d.ts +5 -0
- package/dist/constants/ps-navigation-state.js +6 -0
- package/dist/constants/ps-option-select-config.d.ts +5 -0
- package/dist/constants/ps-option-select-config.js +5 -0
- package/dist/constants/ps-pallasoft-app-url-field.d.ts +7 -0
- package/dist/constants/ps-pallasoft-app-url-field.js +8 -0
- package/dist/constants/ps-pallasoft-apps.d.ts +2 -0
- package/dist/constants/ps-pallasoft-apps.js +37 -0
- package/dist/constants/ps-password-input-config.d.ts +4 -0
- package/dist/constants/ps-password-input-config.js +4 -0
- package/dist/constants/ps-phone-input-config.d.ts +6 -0
- package/dist/constants/ps-phone-input-config.js +6 -0
- package/dist/constants/ps-root-status-messages.d.ts +11 -0
- package/dist/constants/ps-root-status-messages.js +11 -0
- package/dist/constants/ps-sheet-variants.d.ts +3 -0
- package/dist/constants/ps-sheet-variants.js +14 -0
- package/dist/constants/ps-toggle-variants.d.ts +4 -0
- package/dist/constants/ps-toggle-variants.js +18 -0
- package/dist/contexts/ps-chart-context.d.ts +3 -0
- package/dist/contexts/ps-chart-context.js +2 -0
- package/dist/contexts/ps-toggle-group-context.d.ts +3 -0
- package/dist/contexts/ps-toggle-group-context.js +5 -0
- package/dist/hooks/use-ps-chart.d.ts +2 -0
- package/dist/hooks/use-ps-chart.js +9 -0
- package/dist/index.d.ts +348 -0
- package/dist/index.js +348 -0
- package/dist/models/ps-alert-description-props.d.ts +3 -0
- package/dist/models/ps-alert-description-props.js +1 -0
- package/dist/models/ps-alert-dialog-action-props.d.ts +4 -0
- package/dist/models/ps-alert-dialog-action-props.js +1 -0
- package/dist/models/ps-alert-dialog-cancel-props.d.ts +4 -0
- package/dist/models/ps-alert-dialog-cancel-props.js +1 -0
- package/dist/models/ps-alert-dialog-content-props.d.ts +4 -0
- package/dist/models/ps-alert-dialog-content-props.js +1 -0
- package/dist/models/ps-alert-dialog-description-props.d.ts +4 -0
- package/dist/models/ps-alert-dialog-description-props.js +1 -0
- package/dist/models/ps-alert-dialog-footer-props.d.ts +3 -0
- package/dist/models/ps-alert-dialog-footer-props.js +1 -0
- package/dist/models/ps-alert-dialog-header-props.d.ts +3 -0
- package/dist/models/ps-alert-dialog-header-props.js +1 -0
- package/dist/models/ps-alert-dialog-overlay-props.d.ts +4 -0
- package/dist/models/ps-alert-dialog-overlay-props.js +1 -0
- package/dist/models/ps-alert-dialog-title-props.d.ts +4 -0
- package/dist/models/ps-alert-dialog-title-props.js +1 -0
- package/dist/models/ps-alert-props.d.ts +5 -0
- package/dist/models/ps-alert-props.js +1 -0
- package/dist/models/ps-alert-title-props.d.ts +3 -0
- package/dist/models/ps-alert-title-props.js +1 -0
- package/dist/models/ps-app-header-link-data.d.ts +7 -0
- package/dist/models/ps-app-header-link-data.js +1 -0
- package/dist/models/ps-app-header-nav-item-data.d.ts +6 -0
- package/dist/models/ps-app-header-nav-item-data.js +1 -0
- package/dist/models/ps-app-header-props.d.ts +17 -0
- package/dist/models/ps-app-header-props.js +1 -0
- package/dist/models/ps-app-header-user-data.d.ts +4 -0
- package/dist/models/ps-app-header-user-data.js +1 -0
- package/dist/models/ps-app-switcher-link-data.d.ts +11 -0
- package/dist/models/ps-app-switcher-link-data.js +1 -0
- package/dist/models/ps-app-switcher-props.d.ts +6 -0
- package/dist/models/ps-app-switcher-props.js +1 -0
- package/dist/models/ps-app-switcher-section-data.d.ts +7 -0
- package/dist/models/ps-app-switcher-section-data.js +1 -0
- package/dist/models/ps-app-switcher-section-props.d.ts +4 -0
- package/dist/models/ps-app-switcher-section-props.js +1 -0
- package/dist/models/ps-app-switcher-tile-props.d.ts +4 -0
- package/dist/models/ps-app-switcher-tile-props.js +1 -0
- package/dist/models/ps-avatar-fallback-props.d.ts +4 -0
- package/dist/models/ps-avatar-fallback-props.js +1 -0
- package/dist/models/ps-avatar-image-props.d.ts +4 -0
- package/dist/models/ps-avatar-image-props.js +1 -0
- package/dist/models/ps-avatar-props.d.ts +5 -0
- package/dist/models/ps-avatar-props.js +1 -0
- package/dist/models/ps-badge-props.d.ts +6 -0
- package/dist/models/ps-badge-props.js +1 -0
- package/dist/models/ps-breadcrumb-ellipsis-props.d.ts +3 -0
- package/dist/models/ps-breadcrumb-ellipsis-props.js +1 -0
- package/dist/models/ps-breadcrumb-item-props.d.ts +3 -0
- package/dist/models/ps-breadcrumb-item-props.js +1 -0
- package/dist/models/ps-breadcrumb-link-props.d.ts +4 -0
- package/dist/models/ps-breadcrumb-link-props.js +1 -0
- package/dist/models/ps-breadcrumb-list-props.d.ts +3 -0
- package/dist/models/ps-breadcrumb-list-props.js +1 -0
- package/dist/models/ps-breadcrumb-page-props.d.ts +3 -0
- package/dist/models/ps-breadcrumb-page-props.js +1 -0
- package/dist/models/ps-breadcrumb-props.d.ts +4 -0
- package/dist/models/ps-breadcrumb-props.js +1 -0
- package/dist/models/ps-breadcrumb-separator-props.d.ts +3 -0
- package/dist/models/ps-breadcrumb-separator-props.js +1 -0
- package/dist/models/ps-button-props.d.ts +6 -0
- package/dist/models/ps-button-props.js +1 -0
- package/dist/models/ps-card-content-props.d.ts +3 -0
- package/dist/models/ps-card-content-props.js +1 -0
- package/dist/models/ps-card-description-props.d.ts +3 -0
- package/dist/models/ps-card-description-props.js +1 -0
- package/dist/models/ps-card-footer-props.d.ts +3 -0
- package/dist/models/ps-card-footer-props.js +1 -0
- package/dist/models/ps-card-header-props.d.ts +3 -0
- package/dist/models/ps-card-header-props.js +1 -0
- package/dist/models/ps-card-props.d.ts +4 -0
- package/dist/models/ps-card-props.js +1 -0
- package/dist/models/ps-card-title-props.d.ts +3 -0
- package/dist/models/ps-card-title-props.js +1 -0
- package/dist/models/ps-chart-config-item.d.ts +10 -0
- package/dist/models/ps-chart-config-item.js +1 -0
- package/dist/models/ps-chart-config.d.ts +4 -0
- package/dist/models/ps-chart-config.js +1 -0
- package/dist/models/ps-chart-container-props.d.ts +7 -0
- package/dist/models/ps-chart-container-props.js +1 -0
- package/dist/models/ps-chart-context-data.d.ts +4 -0
- package/dist/models/ps-chart-context-data.js +1 -0
- package/dist/models/ps-chart-legend-content-props.d.ts +6 -0
- package/dist/models/ps-chart-legend-content-props.js +1 -0
- package/dist/models/ps-chart-style-props.d.ts +5 -0
- package/dist/models/ps-chart-style-props.js +1 -0
- package/dist/models/ps-chart-tooltip-content-props.d.ts +9 -0
- package/dist/models/ps-chart-tooltip-content-props.js +1 -0
- package/dist/models/ps-checkbox-props.d.ts +4 -0
- package/dist/models/ps-checkbox-props.js +1 -0
- package/dist/models/ps-combobox-props.d.ts +13 -0
- package/dist/models/ps-combobox-props.js +1 -0
- package/dist/models/ps-command-dialog-props.d.ts +3 -0
- package/dist/models/ps-command-dialog-props.js +1 -0
- package/dist/models/ps-command-empty-props.d.ts +4 -0
- package/dist/models/ps-command-empty-props.js +1 -0
- package/dist/models/ps-command-group-props.d.ts +4 -0
- package/dist/models/ps-command-group-props.js +1 -0
- package/dist/models/ps-command-input-props.d.ts +4 -0
- package/dist/models/ps-command-input-props.js +1 -0
- package/dist/models/ps-command-item-props.d.ts +4 -0
- package/dist/models/ps-command-item-props.js +1 -0
- package/dist/models/ps-command-list-props.d.ts +4 -0
- package/dist/models/ps-command-list-props.js +1 -0
- package/dist/models/ps-command-props.d.ts +4 -0
- package/dist/models/ps-command-props.js +1 -0
- package/dist/models/ps-command-separator-props.d.ts +4 -0
- package/dist/models/ps-command-separator-props.js +1 -0
- package/dist/models/ps-command-shortcut-props.d.ts +3 -0
- package/dist/models/ps-command-shortcut-props.js +1 -0
- package/dist/models/ps-date-picker-props.d.ts +11 -0
- package/dist/models/ps-date-picker-props.js +1 -0
- package/dist/models/ps-dialog-content-props.d.ts +4 -0
- package/dist/models/ps-dialog-content-props.js +1 -0
- package/dist/models/ps-dialog-description-props.d.ts +4 -0
- package/dist/models/ps-dialog-description-props.js +1 -0
- package/dist/models/ps-dialog-footer-props.d.ts +3 -0
- package/dist/models/ps-dialog-footer-props.js +1 -0
- package/dist/models/ps-dialog-header-props.d.ts +3 -0
- package/dist/models/ps-dialog-header-props.js +1 -0
- package/dist/models/ps-dialog-overlay-props.d.ts +4 -0
- package/dist/models/ps-dialog-overlay-props.js +1 -0
- package/dist/models/ps-dialog-title-props.d.ts +4 -0
- package/dist/models/ps-dialog-title-props.js +1 -0
- package/dist/models/ps-dropdown-menu-checkbox-item-props.d.ts +4 -0
- package/dist/models/ps-dropdown-menu-checkbox-item-props.js +1 -0
- package/dist/models/ps-dropdown-menu-content-props.d.ts +4 -0
- package/dist/models/ps-dropdown-menu-content-props.js +1 -0
- package/dist/models/ps-dropdown-menu-item-props.d.ts +5 -0
- package/dist/models/ps-dropdown-menu-item-props.js +1 -0
- package/dist/models/ps-dropdown-menu-label-props.d.ts +5 -0
- package/dist/models/ps-dropdown-menu-label-props.js +1 -0
- package/dist/models/ps-dropdown-menu-radio-item-props.d.ts +4 -0
- package/dist/models/ps-dropdown-menu-radio-item-props.js +1 -0
- package/dist/models/ps-dropdown-menu-separator-props.d.ts +4 -0
- package/dist/models/ps-dropdown-menu-separator-props.js +1 -0
- package/dist/models/ps-dropdown-menu-shortcut-props.d.ts +3 -0
- package/dist/models/ps-dropdown-menu-shortcut-props.js +1 -0
- package/dist/models/ps-dropdown-menu-sub-content-props.d.ts +4 -0
- package/dist/models/ps-dropdown-menu-sub-content-props.js +1 -0
- package/dist/models/ps-dropdown-menu-sub-trigger-props.d.ts +5 -0
- package/dist/models/ps-dropdown-menu-sub-trigger-props.js +1 -0
- package/dist/models/ps-empty-content-props.d.ts +3 -0
- package/dist/models/ps-empty-content-props.js +1 -0
- package/dist/models/ps-empty-description-props.d.ts +3 -0
- package/dist/models/ps-empty-description-props.js +1 -0
- package/dist/models/ps-empty-media-props.d.ts +3 -0
- package/dist/models/ps-empty-media-props.js +1 -0
- package/dist/models/ps-empty-panel-props.d.ts +3 -0
- package/dist/models/ps-empty-panel-props.js +1 -0
- package/dist/models/ps-empty-props.d.ts +3 -0
- package/dist/models/ps-empty-props.js +1 -0
- package/dist/models/ps-empty-title-props.d.ts +3 -0
- package/dist/models/ps-empty-title-props.js +1 -0
- package/dist/models/ps-external-app-data.d.ts +9 -0
- package/dist/models/ps-external-app-data.js +1 -0
- package/dist/models/ps-field-content-props.d.ts +3 -0
- package/dist/models/ps-field-content-props.js +1 -0
- package/dist/models/ps-field-description-props.d.ts +3 -0
- package/dist/models/ps-field-description-props.js +1 -0
- package/dist/models/ps-field-error-props.d.ts +3 -0
- package/dist/models/ps-field-error-props.js +1 -0
- package/dist/models/ps-field-group-props.d.ts +3 -0
- package/dist/models/ps-field-group-props.js +1 -0
- package/dist/models/ps-field-input-props.d.ts +4 -0
- package/dist/models/ps-field-input-props.js +1 -0
- package/dist/models/ps-field-label-props.d.ts +4 -0
- package/dist/models/ps-field-label-props.js +1 -0
- package/dist/models/ps-field-props.d.ts +5 -0
- package/dist/models/ps-field-props.js +1 -0
- package/dist/models/ps-file-picker-props.d.ts +10 -0
- package/dist/models/ps-file-picker-props.js +1 -0
- package/dist/models/ps-input-group-props.d.ts +7 -0
- package/dist/models/ps-input-group-props.js +1 -0
- package/dist/models/ps-input-props.d.ts +4 -0
- package/dist/models/ps-input-props.js +1 -0
- package/dist/models/ps-kbd-props.d.ts +3 -0
- package/dist/models/ps-kbd-props.js +1 -0
- package/dist/models/ps-label-props.d.ts +6 -0
- package/dist/models/ps-label-props.js +1 -0
- package/dist/models/ps-money-input-props.d.ts +8 -0
- package/dist/models/ps-money-input-props.js +1 -0
- package/dist/models/ps-navigation-progress-props.d.ts +5 -0
- package/dist/models/ps-navigation-progress-props.js +1 -0
- package/dist/models/ps-not-found-props.d.ts +3 -0
- package/dist/models/ps-not-found-props.js +1 -0
- package/dist/models/ps-option-data.d.ts +5 -0
- package/dist/models/ps-option-data.js +1 -0
- package/dist/models/ps-option-select-props.d.ts +12 -0
- package/dist/models/ps-option-select-props.js +1 -0
- package/dist/models/ps-pallasoft-app-data.d.ts +11 -0
- package/dist/models/ps-pallasoft-app-data.js +1 -0
- package/dist/models/ps-pallasoft-app-urls-data.d.ts +7 -0
- package/dist/models/ps-pallasoft-app-urls-data.js +1 -0
- package/dist/models/ps-phone-input-props.d.ts +11 -0
- package/dist/models/ps-phone-input-props.js +1 -0
- package/dist/models/ps-popover-content-props.d.ts +4 -0
- package/dist/models/ps-popover-content-props.js +1 -0
- package/dist/models/ps-progress-props.d.ts +4 -0
- package/dist/models/ps-progress-props.js +1 -0
- package/dist/models/ps-radio-group-item-props.d.ts +4 -0
- package/dist/models/ps-radio-group-item-props.js +1 -0
- package/dist/models/ps-radio-group-props.d.ts +4 -0
- package/dist/models/ps-radio-group-props.js +1 -0
- package/dist/models/ps-root-error-props.d.ts +5 -0
- package/dist/models/ps-root-error-props.js +1 -0
- package/dist/models/ps-scroll-area-props.d.ts +4 -0
- package/dist/models/ps-scroll-area-props.js +1 -0
- package/dist/models/ps-scroll-bar-props.d.ts +4 -0
- package/dist/models/ps-scroll-bar-props.js +1 -0
- package/dist/models/ps-select-content-props.d.ts +4 -0
- package/dist/models/ps-select-content-props.js +1 -0
- package/dist/models/ps-select-item-props.d.ts +4 -0
- package/dist/models/ps-select-item-props.js +1 -0
- package/dist/models/ps-select-label-props.d.ts +4 -0
- package/dist/models/ps-select-label-props.js +1 -0
- package/dist/models/ps-select-scroll-down-button-props.d.ts +4 -0
- package/dist/models/ps-select-scroll-down-button-props.js +1 -0
- package/dist/models/ps-select-scroll-up-button-props.d.ts +4 -0
- package/dist/models/ps-select-scroll-up-button-props.js +1 -0
- package/dist/models/ps-select-separator-props.d.ts +4 -0
- package/dist/models/ps-select-separator-props.js +1 -0
- package/dist/models/ps-select-trigger-props.d.ts +5 -0
- package/dist/models/ps-select-trigger-props.js +1 -0
- package/dist/models/ps-separator-props.d.ts +4 -0
- package/dist/models/ps-separator-props.js +1 -0
- package/dist/models/ps-sheet-content-props.d.ts +6 -0
- package/dist/models/ps-sheet-content-props.js +1 -0
- package/dist/models/ps-sheet-description-props.d.ts +4 -0
- package/dist/models/ps-sheet-description-props.js +1 -0
- package/dist/models/ps-sheet-footer-props.d.ts +3 -0
- package/dist/models/ps-sheet-footer-props.js +1 -0
- package/dist/models/ps-sheet-header-props.d.ts +3 -0
- package/dist/models/ps-sheet-header-props.js +1 -0
- package/dist/models/ps-sheet-overlay-props.d.ts +4 -0
- package/dist/models/ps-sheet-overlay-props.js +1 -0
- package/dist/models/ps-sheet-title-props.d.ts +4 -0
- package/dist/models/ps-sheet-title-props.js +1 -0
- package/dist/models/ps-skeleton-props.d.ts +2 -0
- package/dist/models/ps-skeleton-props.js +1 -0
- package/dist/models/ps-spinner-props.d.ts +4 -0
- package/dist/models/ps-spinner-props.js +1 -0
- package/dist/models/ps-status-panel-props.d.ts +3 -0
- package/dist/models/ps-status-panel-props.js +1 -0
- package/dist/models/ps-switch-props.d.ts +4 -0
- package/dist/models/ps-switch-props.js +1 -0
- package/dist/models/ps-table-body-props.d.ts +3 -0
- package/dist/models/ps-table-body-props.js +1 -0
- package/dist/models/ps-table-caption-props.d.ts +3 -0
- package/dist/models/ps-table-caption-props.js +1 -0
- package/dist/models/ps-table-cell-props.d.ts +3 -0
- package/dist/models/ps-table-cell-props.js +1 -0
- package/dist/models/ps-table-footer-props.d.ts +3 -0
- package/dist/models/ps-table-footer-props.js +1 -0
- package/dist/models/ps-table-head-props.d.ts +3 -0
- package/dist/models/ps-table-head-props.js +1 -0
- package/dist/models/ps-table-header-props.d.ts +3 -0
- package/dist/models/ps-table-header-props.js +1 -0
- package/dist/models/ps-table-props.d.ts +3 -0
- package/dist/models/ps-table-props.js +1 -0
- package/dist/models/ps-table-row-props.d.ts +3 -0
- package/dist/models/ps-table-row-props.js +1 -0
- package/dist/models/ps-tabs-content-props.d.ts +4 -0
- package/dist/models/ps-tabs-content-props.js +1 -0
- package/dist/models/ps-tabs-list-props.d.ts +4 -0
- package/dist/models/ps-tabs-list-props.js +1 -0
- package/dist/models/ps-tabs-trigger-props.d.ts +4 -0
- package/dist/models/ps-tabs-trigger-props.js +1 -0
- package/dist/models/ps-textarea-props.d.ts +3 -0
- package/dist/models/ps-textarea-props.js +1 -0
- package/dist/models/ps-toggle-group-context-data.d.ts +4 -0
- package/dist/models/ps-toggle-group-context-data.js +1 -0
- package/dist/models/ps-toggle-group-item-props.d.ts +6 -0
- package/dist/models/ps-toggle-group-item-props.js +1 -0
- package/dist/models/ps-toggle-group-multiple-props.d.ts +5 -0
- package/dist/models/ps-toggle-group-multiple-props.js +1 -0
- package/dist/models/ps-toggle-group-single-props.d.ts +5 -0
- package/dist/models/ps-toggle-group-single-props.js +1 -0
- package/dist/models/ps-toggle-props.d.ts +6 -0
- package/dist/models/ps-toggle-props.js +1 -0
- package/dist/models/ps-tooltip-content-props.d.ts +4 -0
- package/dist/models/ps-tooltip-content-props.js +1 -0
- package/dist/models/ps-workspace-badge-props.d.ts +6 -0
- package/dist/models/ps-workspace-badge-props.js +1 -0
- package/dist/models/ps-workspace-item-data.d.ts +9 -0
- package/dist/models/ps-workspace-item-data.js +1 -0
- package/dist/models/ps-workspace-switcher-data.d.ts +6 -0
- package/dist/models/ps-workspace-switcher-data.js +1 -0
- package/dist/models/ps-workspace-switcher-props.d.ts +7 -0
- package/dist/models/ps-workspace-switcher-props.js +1 -0
- package/dist/pallasoft-internal-tailwind-preset.d.ts +2 -0
- package/dist/pallasoft-internal-tailwind-preset.js +90 -0
- package/dist/services/ps-app-switcher-service.d.ts +11 -0
- package/dist/services/ps-app-switcher-service.js +56 -0
- package/dist/services/ps-chart-service.d.ts +8 -0
- package/dist/services/ps-chart-service.js +42 -0
- package/dist/services/ps-class-name-service.d.ts +4 -0
- package/dist/services/ps-class-name-service.js +7 -0
- package/dist/services/ps-field-format-service.d.ts +6 -0
- package/dist/services/ps-field-format-service.js +31 -0
- package/dist/services/ps-file-size-service.d.ts +3 -0
- package/dist/services/ps-file-size-service.js +6 -0
- package/package.json +109 -0
- package/src/styles/theme.css +159 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Pallasoft Proprietary License
|
|
2
|
+
|
|
3
|
+
Version 1.0, 23-Jan-2024
|
|
4
|
+
|
|
5
|
+
1. Grant of License:
|
|
6
|
+
Pallasoft grants you a non-exclusive, non-transferable, revocable license to use the software, solely for internal business purposes.
|
|
7
|
+
|
|
8
|
+
2. Restrictions:
|
|
9
|
+
You may not:
|
|
10
|
+
a. Distribute or sublicense the software to third parties.
|
|
11
|
+
b. Reverse engineer, decompile, or disassemble the software.
|
|
12
|
+
c. Remove or alter any proprietary notices or labels on the software.
|
|
13
|
+
|
|
14
|
+
3. Ownership:
|
|
15
|
+
Pallasoft retains all right, title, and interest in and to the software, including all intellectual property rights.
|
|
16
|
+
|
|
17
|
+
4. Confidentiality:
|
|
18
|
+
You agree to keep the software confidential and not disclose it to third parties.
|
|
19
|
+
|
|
20
|
+
5. Support and Updates:
|
|
21
|
+
This license does not entitle you to support or updates. Pallasoft may, at its discretion, provide support and updates.
|
|
22
|
+
|
|
23
|
+
6. Termination:
|
|
24
|
+
This license is effective until terminated. Pallasoft may terminate the license at any time if you breach any terms. Upon termination, you must cease using the software.
|
|
25
|
+
|
|
26
|
+
7. Governing Law:
|
|
27
|
+
This license is governed by the Canadian Laws. Any disputes arising out of this license shall be resolved in the courts of Canada.
|
|
28
|
+
|
|
29
|
+
8. Contact Information:
|
|
30
|
+
For inquiries regarding this license, contact operations@pallasoft.com.
|
|
31
|
+
|
|
32
|
+
[End of License]
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @pallasoft/ps-internal-components
|
|
2
|
+
|
|
3
|
+
Pallasoft shared React components.
|
|
4
|
+
|
|
5
|
+
## Development
|
|
6
|
+
|
|
7
|
+
Use Node.js from `.nvmrc`, then install dependencies:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Available checks:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm run build
|
|
17
|
+
npm run format:check
|
|
18
|
+
npm run lint
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The package is published from `dist/`. Source code lives in `src/`; do not edit generated output directly.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsAlertDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: PsClassNameService.merge('text-sm [&_p]:leading-relaxed', className), ...props })));
|
|
5
|
+
PsAlertDescription.displayName = 'PsAlertDescription';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
5
|
+
import { PsButtonVariants } from '../constants/ps-button-variants.js';
|
|
6
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
7
|
+
export const PsAlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Action, { ref: ref, className: PsClassNameService.merge(PsButtonVariants(), className), ...props })));
|
|
8
|
+
PsAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
5
|
+
import { PsButtonVariants } from '../constants/ps-button-variants.js';
|
|
6
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
7
|
+
export const PsAlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Cancel, { ref: ref, className: PsClassNameService.merge(PsButtonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className), ...props })));
|
|
8
|
+
PsAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
5
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
6
|
+
import { PsAlertDialogOverlay } from './ps-alert-dialog-overlay.js';
|
|
7
|
+
import { PsAlertDialogPortal } from './ps-alert-dialog-portal.js';
|
|
8
|
+
export const PsAlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (_jsxs(PsAlertDialogPortal, { children: [_jsx(PsAlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, { ref: ref, className: PsClassNameService.merge('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className), ...props })] })));
|
|
9
|
+
PsAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PsAlertDialogDescriptionProps } from '../models/ps-alert-dialog-description-props.js';
|
|
3
|
+
export declare const PsAlertDialogDescription: React.ForwardRefExoticComponent<PsAlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
5
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
6
|
+
export const PsAlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Description, { ref: ref, className: PsClassNameService.merge('text-sm text-muted-foreground', className), ...props })));
|
|
7
|
+
PsAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsAlertDialogFooter = ({ className, ...props }) => (_jsx("div", { className: PsClassNameService.merge('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className), ...props }));
|
|
5
|
+
PsAlertDialogFooter.displayName = 'PsAlertDialogFooter';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsAlertDialogHeader = ({ className, ...props }) => (_jsx("div", { className: PsClassNameService.merge('flex flex-col space-y-2 text-center sm:text-left', className), ...props }));
|
|
5
|
+
PsAlertDialogHeader.displayName = 'PsAlertDialogHeader';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
5
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
6
|
+
export const PsAlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Overlay, { className: PsClassNameService.merge('fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className), ...props, ref: ref })));
|
|
7
|
+
PsAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
5
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
6
|
+
export const PsAlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Title, { ref: ref, className: PsClassNameService.merge('text-lg font-semibold', className), ...props })));
|
|
7
|
+
PsAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsAlertTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h5", { ref: ref, className: PsClassNameService.merge('mb-1 font-medium leading-none tracking-tight', className), ...props })));
|
|
5
|
+
PsAlertTitle.displayName = 'PsAlertTitle';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsAlertVariants } from '../constants/ps-alert-variants.js';
|
|
4
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
5
|
+
export const PsAlert = React.forwardRef(({ className, variant, ...props }, ref) => (_jsx("div", { ref: ref, role: 'alert', className: PsClassNameService.merge(PsAlertVariants({ variant }), className), ...props })));
|
|
6
|
+
PsAlert.displayName = 'PsAlert';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PsAppHeaderProps } from '../models/ps-app-header-props.js';
|
|
3
|
+
export declare const PsAppHeader: ({ appSwitcher, appTitle, logoAlt, logoSrc, logoutHref, navItems, renderLink, user, workspaceSwitcher, }: PsAppHeaderProps) => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { LogOut } from 'lucide-react';
|
|
4
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
5
|
+
import { PsAppSwitcher } from './ps-app-switcher.js';
|
|
6
|
+
import { PsAvatarFallback } from './ps-avatar-fallback.js';
|
|
7
|
+
import { PsAvatarImage } from './ps-avatar-image.js';
|
|
8
|
+
import { PsAvatar } from './ps-avatar.js';
|
|
9
|
+
import { PsButton } from './ps-button.js';
|
|
10
|
+
import { PsDropdownMenuContent } from './ps-dropdown-menu-content.js';
|
|
11
|
+
import { PsDropdownMenuItem } from './ps-dropdown-menu-item.js';
|
|
12
|
+
import { PsDropdownMenuLabel } from './ps-dropdown-menu-label.js';
|
|
13
|
+
import { PsDropdownMenuSeparator } from './ps-dropdown-menu-separator.js';
|
|
14
|
+
import { PsDropdownMenuTrigger } from './ps-dropdown-menu-trigger.js';
|
|
15
|
+
import { PsDropdownMenu } from './ps-dropdown-menu.js';
|
|
16
|
+
import { PsWorkspaceSwitcher } from './ps-workspace-switcher.js';
|
|
17
|
+
export const PsAppHeader = ({ appSwitcher, appTitle, logoAlt = 'Pallasoft logo', logoSrc, logoutHref, navItems = [], renderLink, user, workspaceSwitcher, }) => {
|
|
18
|
+
const link = (href, className, children, active) => renderLink ? (renderLink({ href, className, children, active })) : (_jsx("a", { href: href, className: className, "aria-current": active ? 'page' : undefined, children: children }));
|
|
19
|
+
return (_jsx("header", { className: 'sticky top-0 z-40 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80', children: _jsxs("div", { className: 'mx-auto flex w-full max-w-screen-2xl flex-col gap-3 px-4 py-3 sm:px-6', children: [_jsxs("div", { className: 'flex min-w-0 items-center justify-between gap-3', children: [_jsxs("div", { className: 'flex min-w-0 flex-1 items-center gap-2.5', children: [_jsx("div", { className: 'flex size-9 shrink-0 items-center justify-center rounded-lg border bg-muted', children: _jsx("img", { alt: logoAlt, className: 'size-5 object-contain', src: logoSrc }) }), _jsx("h1", { className: 'shrink-0 truncate text-sm font-semibold text-foreground', children: appTitle }), workspaceSwitcher ? (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": 'true', className: 'text-muted-foreground/60', children: "/" }), _jsx(PsWorkspaceSwitcher, { switcher: workspaceSwitcher, renderLink: renderLink })] })) : null] }), _jsxs("div", { className: 'flex shrink-0 items-center gap-1.5', children: [appSwitcher ? _jsx(PsAppSwitcher, { ...appSwitcher }) : null, user ? (_jsxs(PsDropdownMenu, { children: [_jsx(PsDropdownMenuTrigger, { asChild: true, children: _jsxs(PsButton, { variant: 'outline', className: 'h-9 max-w-[min(14rem,56vw)] gap-2 px-1.5 sm:pl-1.5 sm:pr-3', children: [_jsxs(PsAvatar, { className: 'size-6', children: [user.avatarUrl ? (_jsx(PsAvatarImage, { alt: user.displayName, src: user.avatarUrl })) : null, _jsx(PsAvatarFallback, { className: 'text-xs', children: user.displayName.slice(0, 1).toUpperCase() })] }), _jsx("span", { className: 'hidden min-w-0 truncate sm:inline', children: user.displayName })] }) }), _jsxs(PsDropdownMenuContent, { align: 'end', className: 'w-56', children: [_jsxs(PsDropdownMenuLabel, { className: 'flex flex-col gap-0.5', children: [_jsx("span", { children: "Account" }), _jsx("span", { className: 'truncate text-xs font-normal text-muted-foreground', children: user.displayName })] }), _jsx(PsDropdownMenuSeparator, {}), _jsx("form", { action: logoutHref, method: 'post', children: _jsx(PsDropdownMenuItem, { asChild: true, children: _jsxs("button", { className: 'flex w-full cursor-pointer items-center gap-2', type: 'submit', children: [_jsx(LogOut, {}), "Sign out"] }) }) })] })] })) : null] })] }), navItems.length ? (_jsx("nav", { "aria-label": 'Primary', className: '-mb-px flex max-w-full gap-1 overflow-x-auto', children: navItems.map((item) => (_jsx(React.Fragment, { children: link(item.href, PsClassNameService.merge('inline-flex h-9 shrink-0 items-center rounded-md px-3 text-sm font-medium transition-colors', item.active
|
|
20
|
+
? 'bg-secondary text-secondary-foreground'
|
|
21
|
+
: 'text-muted-foreground hover:bg-accent hover:text-accent-foreground'), item.label, item.active) }, item.id))) })) : null] }) }));
|
|
22
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PsAppSwitcherTile } from './ps-app-switcher-tile.js';
|
|
3
|
+
export const PsAppSwitcherSection = ({ section }) => (_jsxs("section", { className: 'flex flex-col gap-1', children: [_jsx("h3", { className: 'px-2 text-xs font-medium text-muted-foreground', children: section.label }), _jsx("div", { className: 'grid grid-cols-3 gap-1', children: section.links.map((link) => (_jsx(PsAppSwitcherTile, { link: link }, `${section.category}-${link.key}`))) })] }));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsAppSwitcherConfig } from '../constants/ps-app-switcher-config.js';
|
|
4
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
5
|
+
export const PsAppSwitcherTile = ({ link }) => {
|
|
6
|
+
const [iconIndex, setIconIndex] = React.useState(0);
|
|
7
|
+
const iconUrls = [link.iconUrl, link.fallbackIconUrl].filter((url) => Boolean(url));
|
|
8
|
+
const iconUrl = iconIndex < iconUrls.length ? iconUrls[iconIndex] : null;
|
|
9
|
+
return (_jsxs("a", { href: link.url, target: link.external ? PsAppSwitcherConfig.externalTarget : undefined, rel: link.external ? PsAppSwitcherConfig.externalRel : undefined, "aria-current": link.current ? 'page' : undefined, title: link.name, className: PsClassNameService.merge('group flex min-w-0 flex-col items-center gap-2 rounded-lg px-1 py-2.5 text-center transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', link.current && 'hover:bg-transparent'), children: [_jsx("span", { className: PsClassNameService.merge('flex size-10 items-center justify-center overflow-hidden rounded-full border bg-background text-xs font-semibold text-foreground transition-shadow', link.current &&
|
|
10
|
+
'border-primary ring-2 ring-primary/30 ring-offset-2 ring-offset-background'), children: iconUrl ? (_jsx("img", { alt: '', className: 'size-6 object-contain', loading: 'lazy', onError: () => setIconIndex((current) => current + 1), src: iconUrl })) : (link.initials) }), _jsx("span", { className: PsClassNameService.merge('line-clamp-2 w-full text-xs leading-tight text-foreground', link.current && 'font-medium text-primary'), children: link.name })] }));
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { LayoutGrid } from 'lucide-react';
|
|
4
|
+
import { PsAppSwitcherConfig } from '../constants/ps-app-switcher-config.js';
|
|
5
|
+
import { PsAppSwitcherService } from '../services/ps-app-switcher-service.js';
|
|
6
|
+
import { PsAppSwitcherSection } from './ps-app-switcher-section.js';
|
|
7
|
+
import { PsButton } from './ps-button.js';
|
|
8
|
+
import { PsPopoverContent } from './ps-popover-content.js';
|
|
9
|
+
import { PsPopoverTrigger } from './ps-popover-trigger.js';
|
|
10
|
+
import { PsPopover } from './ps-popover.js';
|
|
11
|
+
import { PsScrollArea } from './ps-scroll-area.js';
|
|
12
|
+
import { PsSeparator } from './ps-separator.js';
|
|
13
|
+
export const PsAppSwitcher = ({ currentAppKey, appUrls }) => {
|
|
14
|
+
const sections = React.useMemo(() => PsAppSwitcherService.sections(appUrls, currentAppKey), [appUrls, currentAppKey]);
|
|
15
|
+
return (_jsxs(PsPopover, { children: [_jsx(PsPopoverTrigger, { asChild: true, children: _jsx(PsButton, { variant: 'ghost', size: 'icon', "aria-label": PsAppSwitcherConfig.triggerLabel, title: PsAppSwitcherConfig.title, children: _jsx(LayoutGrid, {}) }) }), _jsx(PsPopoverContent, { align: 'end', sideOffset: 8, className: 'w-[min(22rem,calc(100vw-2rem))] p-0', children: _jsx(PsScrollArea, { className: 'h-[min(32rem,calc(100vh-6rem))]', children: _jsx("div", { className: 'flex flex-col gap-3 p-3', children: sections.map((section, index) => (_jsxs(React.Fragment, { children: [index > 0 ? _jsx(PsSeparator, {}) : null, _jsx(PsAppSwitcherSection, { section: section })] }, section.category))) }) }) })] }));
|
|
16
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
5
|
+
export const PsAvatarFallback = React.forwardRef(({ className, ...props }, ref) => (_jsx(AvatarPrimitive.Fallback, { ref: ref, className: PsClassNameService.merge('flex h-full w-full items-center justify-center rounded-full bg-muted', className), ...props })));
|
|
6
|
+
PsAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
5
|
+
export const PsAvatarImage = React.forwardRef(({ className, ...props }, ref) => (_jsx(AvatarPrimitive.Image, { ref: ref, className: PsClassNameService.merge('aspect-square h-full w-full', className), ...props })));
|
|
6
|
+
PsAvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
5
|
+
import { PsSkeleton } from './ps-skeleton.js';
|
|
6
|
+
export const PsAvatar = React.forwardRef(({ className, isLoading = false, ...props }, ref) => isLoading ? (_jsx(PsSkeleton, { className: PsClassNameService.merge('h-10 w-10 shrink-0 rounded-full', className) })) : (_jsx(AvatarPrimitive.Root, { ref: ref, className: PsClassNameService.merge('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className), ...props })));
|
|
7
|
+
PsAvatar.displayName = AvatarPrimitive.Root.displayName;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { PsBadgeVariants } from '../constants/ps-badge-variants.js';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
import { PsSkeleton } from './ps-skeleton.js';
|
|
5
|
+
export const PsBadge = ({ className, isLoading = false, variant, ...props }) => {
|
|
6
|
+
if (isLoading)
|
|
7
|
+
return _jsx(PsSkeleton, { className: PsClassNameService.merge('h-5 w-16 rounded-full', className) });
|
|
8
|
+
return (_jsx("div", { className: PsClassNameService.merge(PsBadgeVariants({ variant }), className), ...props }));
|
|
9
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { MoreHorizontal } from 'lucide-react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsBreadcrumbEllipsis = ({ className, ...props }) => (_jsxs("span", { role: 'presentation', "aria-hidden": 'true', className: PsClassNameService.merge('flex h-9 w-9 items-center justify-center', className), ...props, children: [_jsx(MoreHorizontal, { className: 'h-4 w-4' }), _jsx("span", { className: 'sr-only', children: "More" })] }));
|
|
5
|
+
PsBreadcrumbEllipsis.displayName = 'BreadcrumbElipssis';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsBreadcrumbItem = React.forwardRef(({ className, ...props }, ref) => (_jsx("li", { ref: ref, className: PsClassNameService.merge('inline-flex items-center gap-1.5', className), ...props })));
|
|
5
|
+
PsBreadcrumbItem.displayName = 'PsBreadcrumbItem';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
5
|
+
export const PsBreadcrumbLink = React.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
6
|
+
const Comp = asChild ? Slot : 'a';
|
|
7
|
+
return (_jsx(Comp, { ref: ref, className: PsClassNameService.merge('transition-colors hover:text-foreground', className), ...props }));
|
|
8
|
+
});
|
|
9
|
+
PsBreadcrumbLink.displayName = 'PsBreadcrumbLink';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsBreadcrumbList = React.forwardRef(({ className, ...props }, ref) => (_jsx("ol", { ref: ref, className: PsClassNameService.merge('flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5', className), ...props })));
|
|
5
|
+
PsBreadcrumbList.displayName = 'PsBreadcrumbList';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsBreadcrumbPage = React.forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, role: 'link', "aria-disabled": 'true', "aria-current": 'page', className: PsClassNameService.merge('font-normal text-foreground', className), ...props })));
|
|
5
|
+
PsBreadcrumbPage.displayName = 'PsBreadcrumbPage';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight } from 'lucide-react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsBreadcrumbSeparator = ({ children, className, ...props }) => (_jsx("li", { role: 'presentation', "aria-hidden": 'true', className: PsClassNameService.merge('[&>svg]:w-3.5 [&>svg]:h-3.5', className), ...props, children: children !== null && children !== undefined ? children : _jsx(ChevronRight, {}) }));
|
|
5
|
+
PsBreadcrumbSeparator.displayName = 'PsBreadcrumbSeparator';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
+
import { PsButtonVariants } from '../constants/ps-button-variants.js';
|
|
5
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
6
|
+
export const PsButton = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
7
|
+
const Comp = asChild ? Slot : 'button';
|
|
8
|
+
return (_jsx(Comp, { className: PsClassNameService.merge(PsButtonVariants({ variant, size, className })), ref: ref, ...props }));
|
|
9
|
+
});
|
|
10
|
+
PsButton.displayName = 'PsButton';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown, ChevronLeft, ChevronRight } from 'lucide-react';
|
|
3
|
+
import { DayPicker } from 'react-day-picker';
|
|
4
|
+
import { PsButtonVariants } from '../constants/ps-button-variants.js';
|
|
5
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
6
|
+
export const PsCalendar = ({ className, classNames, showOutsideDays = true, ...props }) => (_jsx(DayPicker, { className: PsClassNameService.merge('p-3', className), classNames: {
|
|
7
|
+
months: 'relative flex flex-col gap-4 sm:flex-row',
|
|
8
|
+
month: 'flex w-full flex-col gap-4',
|
|
9
|
+
nav: 'absolute inset-x-0 top-0 flex w-full items-center justify-between',
|
|
10
|
+
button_previous: PsClassNameService.merge(PsButtonVariants({ variant: 'ghost', size: 'icon' }), 'size-8 p-0 aria-disabled:opacity-50'),
|
|
11
|
+
button_next: PsClassNameService.merge(PsButtonVariants({ variant: 'ghost', size: 'icon' }), 'size-8 p-0 aria-disabled:opacity-50'),
|
|
12
|
+
month_caption: 'flex h-8 w-full items-center justify-center px-8',
|
|
13
|
+
caption_label: props.captionLayout === 'dropdown'
|
|
14
|
+
? 'flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm font-medium [&>svg]:size-3.5 [&>svg]:text-muted-foreground'
|
|
15
|
+
: 'text-sm font-medium',
|
|
16
|
+
dropdowns: 'flex h-8 w-full items-center justify-center gap-1.5 text-sm font-medium',
|
|
17
|
+
dropdown_root: 'relative rounded-md border border-input shadow-sm has-[:focus]:border-ring has-[:focus]:ring-1 has-[:focus]:ring-ring',
|
|
18
|
+
dropdown: 'absolute inset-0 cursor-pointer opacity-0',
|
|
19
|
+
month_grid: 'w-full border-collapse',
|
|
20
|
+
weekdays: 'flex',
|
|
21
|
+
weekday: 'flex-1 select-none text-[0.8rem] font-normal text-muted-foreground',
|
|
22
|
+
week: 'mt-2 flex w-full',
|
|
23
|
+
day: 'relative aspect-square w-full select-none p-0 text-center text-sm',
|
|
24
|
+
day_button: PsClassNameService.merge(PsButtonVariants({ variant: 'ghost', size: 'icon' }), 'size-8 w-full p-0 font-normal aria-selected:opacity-100'),
|
|
25
|
+
selected: '[&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground',
|
|
26
|
+
today: '[&>button]:bg-accent [&>button]:text-accent-foreground',
|
|
27
|
+
outside: 'text-muted-foreground opacity-50',
|
|
28
|
+
disabled: 'text-muted-foreground opacity-50',
|
|
29
|
+
hidden: 'invisible',
|
|
30
|
+
...classNames,
|
|
31
|
+
}, components: {
|
|
32
|
+
Chevron: ({ orientation }) => {
|
|
33
|
+
if (orientation === 'left')
|
|
34
|
+
return _jsx(ChevronLeft, { className: 'size-4' });
|
|
35
|
+
if (orientation === 'right')
|
|
36
|
+
return _jsx(ChevronRight, { className: 'size-4' });
|
|
37
|
+
return _jsx(ChevronDown, { className: 'size-3.5' });
|
|
38
|
+
},
|
|
39
|
+
}, showOutsideDays: showOutsideDays, ...props }));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsCardContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: PsClassNameService.merge('p-6 pt-0', className), ...props })));
|
|
5
|
+
PsCardContent.displayName = 'PsCardContent';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsCardDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: PsClassNameService.merge('text-sm text-muted-foreground', className), ...props })));
|
|
5
|
+
PsCardDescription.displayName = 'PsCardDescription';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
4
|
+
export const PsCardFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: PsClassNameService.merge('flex items-center p-6 pt-0', className), ...props })));
|
|
5
|
+
PsCardFooter.displayName = 'PsCardFooter';
|